Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test accuracy of segmentation algorithm?

I am dealing with a image classification problem. Before classification, images should be segmented. I tried several methods. My question is "how can i test accuracy of segmentation ?". I plan to compare final binary image with correct binary image based on pixel differences in order to get a success rate. Is there a more efficient way to compare edges of two binary image, instead of this?

like image 892
Can Guney Aksakalli Avatar asked Dec 20 '12 14:12

Can Guney Aksakalli


Video Answer


2 Answers

You can use jaccard_similarity_score as shown here: http://scikit-learn.org/stable/modules/generated/sklearn.metrics.jaccard_similarity_score.html But for images needs flattening the images for converting it into 1-D

like image 92
Suleiman Avatar answered Sep 28 '22 00:09

Suleiman


Measuring the quality of image segmentation is a topic well studied in the computer vision community.

You can see this method that is suitable for binary segmentations. There is also this method for multiple segments and also for boundary accuracy.

like image 27
Shai Avatar answered Sep 28 '22 01:09

Shai