Is there a function to draw the cie chromaticity diagram ?

조회 수: 63 (최근 30일)
Ole
Ole 2018년 3월 13일
댓글: Youngkyu Bae 2019년 6월 5일
Is there a function to draw the CIE chromaticity diagram ?
How to use plotChromaticity ?

답변 (2개)

Vishnu Baba Sundaresan
Vishnu Baba Sundaresan 2018년 8월 10일
편집: Vishnu Baba Sundaresan 2018년 8월 10일
Use plotChromaticity() function in MATLAB 2017b and above. If you would loci of data, use plot command where variables cie_x and cie_y contain data relevant to your image.
figure(1);
plotChromaticity();
hold on;
h1 = plot(cie_x, cie_y);
legend(h1,{'legend_text1'})
  댓글 수: 2
Thomas Hoffend
Thomas Hoffend 2019년 1월 17일
The built-in function plotChromaticity as well as other submissions to the file exchange (e.g. the Computational Color Science package linked below) create plots that have distortion at the edge of and extending outside of the color gamut.
Distorted figure from plotChromaticity:
Distorted.png
Better figure (custom color space for a specific device illuminated by a RGB LED):
Better.png
There is still some distortion outside the gamut for the "better" plot that becomes more visible depending on the color space used. I think there is a way to improve this (working on it). Some of the visible distortion along the CMY radial lines is from the way that I meshed the xy color space and becomes less visible with a higher number of triangles in my mesh. Also it might be desired to decrease saturation a bit going from the white point out to the edges of the gamut.
Anything outside the gamut is really am employment of artistic license. The point is to try to make something that looks good and natural for plotting color data.
Youngkyu Bae
Youngkyu Bae 2019년 6월 5일
May I ask you how can I make a better color gamut image in MATLAB?

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


KSSV
KSSV 2018년 3월 13일
  댓글 수: 1
Ole
Ole 2018년 3월 13일
Looks like the the chromaticity diagram is not generated there but read from image.

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

Community Treasure Hunt

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

Start Hunting!

Translated by