How to quantify color difference between two similar images?

3 visualizaciones (últimos 30 días)
Prachi Joshi
Prachi Joshi el 26 de Mayo de 2022
Respondida: Chandrika el 9 de Jun. de 2022
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?

Respuestas (1)

Chandrika
Chandrika el 9 de Jun. de 2022
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.

Categorías

Más información sobre Modify Image Colors en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by