How to colorspace to RGB ?
1 view (last 30 days)
Show older comments
How to convert color image with GUI CMY to RGB YCB to RGB YIQ to RGB HSV to RGB HSI to RGB HSL To RGB CIELab To RGB and RGB To CIELab RGB To HSL
0 Comments
Answers (2)
Image Analyst
on 27 May 2016
There are functions for that, like rgb2lab(), rgb2ycbcr(), rgb2hsv().
Or file Exchange functions: http://www.mathworks.com/matlabcentral/fileexchange/28790-colorspace-transformations
0 Comments
DGM
on 29 Oct 2021
Pascal Getreuer's Colorspace Transformations tools on the FEX are good, but they haven't been maintained for a decade now. There are some issues which won't be fixed. If you need HSI (as I did), beware that the m-code implementations of the HSI conversions are incorrect (the mex versions should be ok if you can compile them).
This offers a handful of bidirectional conversion tools for HSL/HSI and some uncommon models:
Includes:
- HSI
- HSL
- HSY (chroma-normalized polar YPbPr)
- HuSL (chroma-normalized LCHab and LCHuv)
- HSYp (rotationally-symmetric subset of HSY)
- HuSLp (rotationally-symmetric subset of HuSL)
- LCH (polar variants of LAB, LUV, OKLAB, and SRLAB)
Common stuff (HSV, LAB, YCbCr, XYZ) can be found in base MATLAB/IPT tools.
0 Comments
See Also
Categories
Find more on Modify Image Colors 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!