필터 지우기
필터 지우기

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