MATLAB: How to recover to original image after i changed to gray level colormapgrayimage processingImage Processing Toolbox Img=imread('image1.jpg');Gray=rgb2gray(img); How convert Gray to original color now???? Best Answer Very simple in fact trivial:Gray = Img; Related SolutionsMATLAB: Recovered the color watermark Here's a grayscale example (attached). Hopefully you can adapt it. Good luck. MATLAB: How to recover the barcode after the use of imdilate() Did I already give you code for that in your prior question on this subject? Anyway, just multiply your "block" by "rgb" - here's a new and different way for you (Sean's method):% Mask the image.maskedRgbImage = bsxfun(@times, rgb, cast(block,class(rgb))); Related QuestionHow to create a white imageCameraman.tif is an indexed image
Best Answer