How do I transform HCL to RGB colormap?

조회 수: 8 (최근 30일)
Guy Nir
Guy Nir 2018년 3월 8일
답변: Guy Nir 2018년 3월 12일
Hi,
I'd like to write a script to generate HCL colormap, and then transform it to RGB. Can anyone help with the transformation?
Thank you, Guy
  댓글 수: 1
Guillaume
Guillaume 2018년 3월 12일
Can you please clarify that you are actually talking about this HCL colour space and not HSL or HSV or some other colour space.
As far as I know, HCL is not used much. It's not a colour space directly supported by matlab although nothing stops you from writing your own conversion formula.

댓글을 달려면 로그인하십시오.

답변 (2개)

Guy Nir
Guy Nir 2018년 3월 12일
Hi all,
Sorry, already answered myself. I am using this great function, and specific for me (CIELCH->RGB)
https://www.mathworks.com/matlabcentral/fileexchange/28790-colorspace-transformations

Abhishek Ballaney
Abhishek Ballaney 2018년 3월 12일
https://in.mathworks.com/help/matlab/ref/hsv2rgb.html
  댓글 수: 1
Guillaume
Guillaume 2018년 3월 12일
편집: Guillaume 2018년 3월 12일
@Abishek, all your answers appear to be (non-working) links to the doc with no comment whatsoever. That's fairly low quality in my opinion, and you could at least make them hyperlink.
Additionally in this case, your answer is not remotely helpful because the HCL colour space is not the same at all as the HSV colour space.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Orange에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by