How to use the lab2rgb function

4 次查看(过去 30 天)
I want to render some color blocks in MATLAB, the colors are selected from the CIELAB color space. I have calibrated the monitor with an i1 pro3 chromaticity meter and set the ICC profile to default.
Can I do this directly using MATLAB's lab2rgb function? I noticed that the rgb in the lab2rgb function refers to srgb, and I'm not quite sure if this is different from the monitor's rgb color space.
Anyone knows how to solve this problem? Many Thanks

回答(1 个)

Ganapathi Subramanian
It is my understanding that you have an uncertainty in using lab2rgb function to render some color blocks from CIELAB color space to RGB color space. By default lab2rgb converts the CIELAB color to sRGB color. sRGB and RGB have equal amount of colors but the range of sRGB is narrower.
lab2rgb with more than one name-value argument can be used to convert it into a specific color space. To convert CIELAB to RGB
lab2rgb(input,'ColorSpace','adobe-rgb-1998')
Refer to Adobe RGB in this link
rgb2lin function can also be used to convert to RGB. Refer the below link

产品

Community Treasure Hunt

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

Start Hunting!

Translated by