フィルターのクリア

Code to calculate the color difference using euclidean distance of an image?

1 回表示 (過去 30 日間)
Purbankan
Purbankan 2013 年 12 月 31 日
回答済み: Image Analyst 2013 年 12 月 31 日
I want to calculate the color difference in an image which is in CIE L*a*b* color space. For that I want to utilise euclidean distance method. In this CIE L*a*b* clolor space, the color difference between two colors, ( L1*,a1*,b1* )and ( L2* a2* b2* ) is required. But I m facing problem to compute it. Help will be very much appreciated. Thanks.

回答 (2 件)

Walter Roberson
Walter Roberson 2013 年 12 月 31 日
sqrt((L1-L2).^2 + (a1-a2).^2 + (b1-b2).^2)

Image Analyst
Image Analyst 2013 年 12 月 31 日
There are a whole bunch of different flavors of delta E in this toolbox created by one of the worlds leading experts in color, Stephen Westland: http://www.mathworks.com/matlabcentral/fileexchange/40640-computational-colour-science-using-matlab-2e. That said, for most simple situations I use the simple formula Walter gave.

Community Treasure Hunt

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

Start Hunting!

Translated by