How to determine spatial color contrast and error for a resultant image

3 次查看(过去 30 天)
Hi, The answer will be useful for evaluating the segmentation that i use K means clustering algorithm

回答(1 个)

Image Analyst
Image Analyst 2013-4-26
I'm not sure of your definition of spatial color contrast, but you could construct a delta E image. Convert the image from RGB to LAB with makecform. Then convolve each L, A, and B image with a kernel like [1 1 1; 1 0 1; 1 1 1]/8 to get the average L, A, or B in the 8 neighbors surrounding each pixel. Then calculate deltaL image, deltaA image, and the deltaB image by subtracting the convolved image from the original LAB image. Square then add them all together and take the square root. That will give you an image which is the Delta E (color difference) between each pixel and it's neighbors. Would that be what you were thinking of?
  3 个评论
parveen regina
parveen regina 2013-5-2
Hi,I am trying out this and please send your demo that might me useful for me Thank You,

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by