How to use the lab2rgb function

4 ビュー (過去 30 日間)
Chaoer Xu
Chaoer Xu 2023 年 2 月 21 日
回答済み: Ganapathi Subramanian 2023 年 3 月 1 日
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
Ganapathi Subramanian 2023 年 3 月 1 日
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