How to use the lab2rgb function
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
Ganapathi Subramanian
il 1 Mar 2023
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
0 Commenti
Vedere anche
Categorie
Scopri di più su Color in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!