How to colorspace to RGB ?

1 view (last 30 days)
Eko Yoga Prasetia
Eko Yoga Prasetia on 27 May 2016
Answered: DGM on 29 Oct 2021
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

Answers (2)

Image Analyst
Image Analyst on 27 May 2016

DGM
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.

Categories

Find more on Modify Image Colors in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!