Displaying images using different color spaces
3 views (last 30 days)
Show older comments
Hello,
I have images that are defined by u'v'L or L*u*v*. Is there a way to display these images using either of these color spaces, or do I have to convert to RGB?
(I tried using makecform and applycform to go from u'v'L --> XYX --> RGB, but I'm not sure what I'm looking at is correct.)
0 Comments
Answers (1)
Image Analyst
on 30 Oct 2014
If you display a 3D array with one of the image display functions it assumes it's RGB. So displaying an LAB or HSV image as RGB doesn't make sense. L or H would show up in the red channel, A or S would show up in the Green channel, and B or V would show up in the blue channel. It really doesn't make much sense and you can't really interpret anything meaningful from this type of display. I never do it. What I always do is to display the L,A,B,H,S, or V channels as a monochrome/grayscale image.
2 Comments
Image Analyst
on 30 Oct 2014
A color image of what? You can convert the LAB or HSV image to a 3D uint8 image in the range 0-255, but like I said, and your said, it doesn't mean much. Maybe they just want you to see that hte images look different, unlike in Photoshop where the RGB and LAB images look the same because they never display the L, A, or B image expect when you're looking at only 1 or 2 channels.
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!