hminle / Yet-Another-Color-Gamut-Visualizer

Yet Another Color Gamut Visualizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Descriptions

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.

Examples

Visualization of sRGB gamut in CIELAB color space

[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.

Comparison of visible gamut and sRGB gamut in CIE1931 XYZ color space

[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);


Gamuts comparison for sRGB (solid) and Adobe RGB (black grid) in CIELUV color space

[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.

License

Copyright 2019 Qiu Jueqin

Licensed under MIT.

About

Yet Another Color Gamut Visualizer

License:MIT License


Languages

Language:MATLAB 98.8%Language:Objective-C 1.2%