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
>> sRGB2CIEDeltaE([0.42 0.77 0.37],[0.50 0.83 0.46],'cie00')
>> sRGBpairs1 = [0.1743,0.0819,0.0541;...
>> sRGBpairs2 = [0.1225,0.1388,0.1083;...
Copyright(C) 2015 QiuJueqin All rights reserved
Created by QiuJueqin at 23/09/2015 12:59
Qiu (2021). 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
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!