How to quantify color difference between two similar images?
3 次查看(过去 30 天)
显示 更早的评论
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 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!