How to determine spatial color contrast and error for a resultant image
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, The answer will be useful for evaluating the segmentation that i use K means clustering algorithm
0 Kommentare
Antworten (1)
Image Analyst
am 26 Apr. 2013
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 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!