フィルターのクリア

How to quantify color difference between two similar images?

3 ビュー (過去 30 日間)
Prachi Joshi
Prachi Joshi 2022 年 5 月 26 日
回答済み: Chandrika 2022 年 6 月 9 日
I converted two similar images from RGB to LAB color space, after conversation the images are showing color difference. How to quantify that color difference? Which parameters can be used for that?
  1 件のコメント
Prahlad Gowtham Katte
Prahlad Gowtham Katte 2022 年 6 月 8 日
Could you please provide the images used..

サインインしてコメントする。

回答 (1 件)

Chandrika
Chandrika 2022 年 6 月 9 日
As per my understanding, you want to compute the color difference between two L*a*b images.
In MATLAB, we can do this using the 'deltaE' function. It quantifies the color difference based on CIE76 standard.
dE = deltaE(I1,I2,'isInputLab',isLab)
Here, 'isLab' corresponds to logical false or logical true indicating if the color values are in L*a*b color space.
In your case, you can try out the following code:
dE = imcolordiff(lab1,lab2,'isInputLab',true);
For better accuarcy, you can try using the 'imcolordiff' function
dE = imcolordiff(lab1,lab2,'isInputLab',true);
These above functions on two input L*a*b images, returns the color difference 'dE' in a m-by-n matrix format.
For viewing the color difference as an image, use:
imshow(dE,[])
For better understanding, please refer to the documentaion on imcolordiff
Further, if your requirement is somthing different, do attach the images for reproducing the issue.

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by