Calculates color difference delta E of a set of sRGB data pairs

Version 1.1.0.0 (5.04 KB) by Qiu
sRGB2CIEDeltaE Calculates color difference deltaE of a set of sRGB data pairs
368 Downloads
Updated 23 Sep 2015

View License

function deltaE = sRGB2CIEDeltaE(SamplesRGB1,SamplesRGB2,formula)
Calculates color difference, deltaE, of a set of sRGB data pairs, SamplesRGB1 and
SamplesRGB2(both within[0 1]).
CIEDE1994, CIEDE2000 and CIELAB are alternative according to user input
formula, which can be 'cie94', 'cie00' and 'cielab'(case sensitive).
SamplesRGB1 and SamplesRGB2 should have the same size, N*3, with each row
denoting a sRGB triplet and N for the number of sRGB pairs to be
compared. Generally, but not always, SamplesRGB1 is regarded as standard
references
Example1:
>> sRGB2CIEDeltaE([0.42 0.77 0.37],[0.50 0.83 0.46],'cie00')
ans =
4.4351
Example2:
>> sRGBpairs1 = [0.1743,0.0819,0.0541;...
0.5565,0.3047,0.2208;...
0.1091,0.1999,0.3428];
>> sRGBpairs2 = [0.1225,0.1388,0.1083;...
0.3423,0.3626,0.2826;...
0.1365,0.2390,0.3095];
>> sRGB2CIEDeltaE(sRGBpairs1,sRGBpairs2,'cie94')
ans =
11.5193
19.4527
32.0004

Copyright(C) 2015 QiuJueqin All rights reserved
Created by QiuJueqin at 23/09/2015 12:59
Contact: jqx1991@gmail.com

Cite As

Qiu (2024). Calculates color difference delta E of a set of sRGB data pairs (https://www.mathworks.com/matlabcentral/fileexchange/53156-calculates-color-difference-delta-e-of-a-set-of-srgb-data-pairs), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Fix some mistakes in description.
--

1.0.0.0

--