LCH to RGB conversion
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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');
im_lab=applycform(im_lch,C_lch2lab);
C_lab2srgb= makecform('lab2srgb');
im_rgb=applycform(im_lab,C_lab2srgb);
end
1 comentario
John D'Errico
el 29 de Mayo de 2017
Editada: John D'Errico
el 29 de Mayo de 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).
Respuestas (1)
MathReallyWorks
el 29 de Mayo de 2017
Hello danielle dan,
1 comentario
DGM
el 9 de Mayo de 2021
Editada: DGM
el 10 de Mayo de 2021
That link no longer works because I deleted that FEX submission when I consolidated things a while back:
This offers bidirectional tools between sRGB and:
HSI
HSL
HSY/HSYp
HuSL/HuSLp
LCH ( LUV, LAB, SRLAB2, OKLAB, YPbPr)
as well as a boundary chroma calculation tool for the cylindrical models.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!