Last active
August 29, 2015 14:21
-
-
Save jnkather/9ac16c232a9c12f292b7 to your computer and use it in GitHub Desktop.
Show the RGB gamut in CIELAB space
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% JN Kather, 2015 | |
% Show the RGB gamut in CIELAB space | |
figure(); | |
[X,Y,Z] = meshgrid(linspace(0,1,25)); | |
colors = ([X(:),Y(:),Z(:)]); | |
colorsLAB = rgb2lab(colors); | |
scatter3(colorsLAB(:,1),colorsLAB(:,2),colorsLAB(:,3),100,colors,'filled'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment