Visualize 4 band .tif image

10 views (last 30 days)
I have tried several methods including imread, multibandread, imadjust to read and visualize the attached image with no success in showing its real colors. Looking forward for your support.

Accepted Answer

Walter Roberson
Walter Roberson on 21 Jul 2017
Tricky without guidance as to the expected output.
cmyk = imread('testPatch1.tif');
C = makecform('cmyk2srgb');
rgb = applycform(cmyk, C);
rescaled_rgb = mat2gray(rgb);
imshow(rescaled_rgb);
  9 Comments
Walter Roberson
Walter Roberson on 25 Jul 2017
It turns out the image was only similar to what I dealt with before. See https://www.mathworks.com/matlabcentral/answers/346170-how-to-get-rgb-from-this-tiff-image-file#comment_464334 for the calculation technique.
Abedelkarim Jezzini
Abedelkarim Jezzini on 12 Aug 2017
Dear Mr. Walter..
I have read your previous answer and successfully processed the tiff image, but i notice that its brightness is dark a little bit. I tried to apply histogram equalization to the image but it seems to be un acceptable solution, so my question is: How can i enhance the brightness of the RGB tiff image after reading it?. Thanks

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!