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.                              %%                                &nbsp ...