This tool helps to visualize color volume by constructing a 3D gamut given point cloud of color values. Please see gamutview.m for more detailed descriptions.
[r, g, b] = meshgrid(linspace(0, 1, 8));
rgb = [r(:), g(:), b(:)];
gamutview(rgb, rgb, 'srgb', 'facecolor', 'none');
The animation was created by animated-gif creator.
[r, g, b] = meshgrid(linspace(0, 1, 8));
rgb = [r(:), g(:), b(:)];
[~, ~, hax] = gamutview(rgb, [], 'srgb2xyz', 'edgecolor', 'none');
load('visible_spectra.mat');
xyz = spectra2colors(visible_spectra, wavelengths, 'spd', 'd65');
vol_visible = gamutview(xyz, [], 'xyz2xyz', 'facecolor', 'none', 'parent', hax);
[r, g, b] = meshgrid(linspace(0, 1, 16));
rgb = [r(:), g(:), b(:)];
[~, ~, hax] = gamutview(rgb, rgb, 'srgb2luv', 'edgecolor', 'none');
gamutview(rgb, rgb, 'argb2luv', 'facecolor', 'none', 'edgecolor', 'k', 'edgealpha', .25, 'parent', hax);
Please see demo/gamutview_demo.m for more usage guides.
Copyright 2019 Qiu Jueqin
Licensed under MIT.