Displaying images using different color spaces

3 Ansichten (letzte 30 Tage)
Megan
Megan am 30 Okt. 2014
Kommentiert: Image Analyst am 30 Okt. 2014
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.)

Antworten (1)

Image Analyst
Image Analyst am 30 Okt. 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 Kommentare
Megan
Megan am 30 Okt. 2014
That's what I would normally do myself, but I have been specifically asked to create color images. I assume converting to RGB is my only option?
Image Analyst
Image Analyst am 30 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by