How do I make MATLAB to recognize the deltaE function?

7 views (last 30 days)
I have two images A and B. When running the code that I am using to find colour differences between two images, it keeps telling me: "Unrecognized function or variable 'deltaE'. I tried to read about how to make this function recognized and I believe I have to convert the RGB images into lab values. Yet I keep failing to understand how to do so.

Answers (3)

Walter Roberson
Walter Roberson on 15 Nov 2020
needs R2020b

Image Analyst
Image Analyst on 15 Nov 2020
You can use sqrt() of the lab colors. There is also an rgb2lab() function that is pretty old.
de = sqrt((L1-L2).^2 + (A1-A2).^2 + (B1-B2).^2)
See attached demos.
Image Analyst
Image Analyst on 16 Nov 2020
I think the best book is "The Image Processing Handbook" by John Russ.
Another free online book is by RIchard Szeliski:

Sign in to comment.

Ameer Hamza
Ameer Hamza on 15 Nov 2020
deltaE() function is available in Image processing toolbox. This error message indicates that, most likely, you don't have that toolbox installed. You can run the following line in the command window
ver images
and if you get a warning, it means that you don't have the toolbox installed.
Borys Bulka
Borys Bulka on 15 Nov 2020
They are in this previous post of mine

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!