필터 지우기
필터 지우기

How do I make MATLAB to recognize the deltaE function?

조회 수: 9 (최근 30일)
Borys Bulka
Borys Bulka 2020년 11월 15일
댓글: Borys Bulka 2020년 11월 16일
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.

답변 (3개)

Walter Roberson
Walter Roberson 2020년 11월 15일
https://www.mathworks.com/help/images/ref/deltae.html
needs R2020b

Image Analyst
Image Analyst 2020년 11월 15일
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.
  댓글 수: 9
Image Analyst
Image Analyst 2020년 11월 16일
I think the best book is "The Image Processing Handbook" by John Russ.
Another free online book is by RIchard Szeliski:
Borys Bulka
Borys Bulka 2020년 11월 16일
Thank you so much!

댓글을 달려면 로그인하십시오.


Ameer Hamza
Ameer Hamza 2020년 11월 15일
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.
  댓글 수: 7
Ameer Hamza
Ameer Hamza 2020년 11월 15일
Can you attach the image A.png?
Borys Bulka
Borys Bulka 2020년 11월 15일
They are in this previous post of mine https://www.mathworks.com/matlabcentral/answers/644365-how-to-transform-a-rgb-matrix-to-a-weighted-adjacency-matrix?s_tid=prof_contriblnk

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by