gray2rgb - function R=gray2rgb(img1,img2)

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function R=gray2rgb(img1,img2) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %This Program converts a gray image ro RGB image based on the colors of the destination image. The better the destination image match with the source % %gray image, the better the coloring will be. The program takes some time as the searching time is high. You can decrease the searching time by taking % %only samples from the used color image but quality may decrease. U can use jittered sampling for improving running speed. % % % % You can use also use the attahed test images, Use the following combinations for better result nature1.jpg(as img1) and nature2.jpg(as img2) or % % test1.jpg(as img1) and test2.jpg (as img2) % % % % % Usage % % gray2rgb('nature1.jpg','nature2.jpg'); % % % % Authors : Jeny Rajan % % Chandrashekar P.S % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
View Full Document

This note was uploaded on 03/29/2010 for the course EE ELEN340 taught by Professor Kim during the Spring '10 term at N.C. A&T.

Page1 / 2

gray2rgb - function R=gray2rgb(img1,img2)

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online