MATLAB Answers

LCH to RGB conversion

44 views (last 30 days)
danielle dan
danielle dan on 29 May 2017
Edited: John D'Errico on 29 May 2017
How do i create an image in LCH color space and convert it to RGB through Lab color space?
if true
C_lch2lab= makecform('lch2lab');
C_lab2srgb= makecform('lab2srgb');

  1 Comment

John D'Errico
John D'Errico on 29 May 2017
Since you already know how to do the transformation, then why are you asking? My guess is your question is to understand how those tools work.
lch2lab is just a conversion from cylindrical to cartesian coordinates.
lab2srgb is a conversion from lab to xyz (easy to find the equations online) then a conversion into srgb (also findable online).

Sign in to comment.

Answers (1)

MathReallyWorks on 29 May 2017
Hello danielle dan,
Have a look at this: LCH to RGB Conversion Tools


Sign in to comment.

Community Treasure Hunt

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

Start Hunting!