This function converts a gray image to RGB based on the colors of the source image.
This code was originally inspired by the code gray2rgb by Jeny Rajan and Chandrashekar P.S. The code was optimized and rewritten to more closely achieve what was described in the paper "Transfering Color to Grayscale Images" by Welsh, Ashikhmin and Mueller. Identical results to Rajan's code are achieved much more quickly, especially for large images.
David Mills (2021). Gray to color image conversion (https://www.mathworks.com/matlabcentral/fileexchange/61722-gray-to-color-image-conversion), MATLAB Central File Exchange. Retrieved .
Inspired by: Gray image to Color image conversion
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Thank you very much