Skip to content

Instantly share code, notes, and snippets.

@jnkather
Last active August 29, 2015 14:21
Show Gist options
  • Save jnkather/9ac16c232a9c12f292b7 to your computer and use it in GitHub Desktop.
Save jnkather/9ac16c232a9c12f292b7 to your computer and use it in GitHub Desktop.
Show the RGB gamut in CIELAB space
% 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