Confusion matrix to validate image segmentation

조회 수: 4 (최근 30일)
Ishara Nipuni
Ishara Nipuni 2018년 12월 23일
편집: Ishara Nipuni 2019년 1월 9일
I have a segmented image of an xray image. I need to make a confusion matrix to validate that segmentation. Can anyone tell me please how can I apply a confusion matrix to validate image segmentation?
The origial image and te segmented image are shown below.
The first one is the original image and the second one is the segmented image.
152.bmp
skullOnly2.bmp
  댓글 수: 3
Image Analyst
Image Analyst 2018년 12월 23일
Plus (you probably already know this) you can't make a confusion matrix on just one image. You'd need at least two and preferably hundreds or thousands.
Ishara Nipuni
Ishara Nipuni 2018년 12월 27일
편집: Ishara Nipuni 2019년 1월 9일
I already have a large set of ground truth images and their segmented images( actually two hundred of images). Can you help me on making a confusion matrix with those images?
And also I want to know how to make classes for the confusion matrix with pixel values.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2018년 12월 23일
If you have the Statistics and Machine Learning Toolbox, you can use confusionmat() and confusionchart(). Of course you still have to do a bunch of experiments to determine true positive, true negatives, false positives, and false negatives. I assume you know how to do that. It's basically a list of whether you got the diagnosis right or wrong. You have to decide how to determine if the segmentation is right or wrong, like use the Sorensen-Dice metric to see how much of your segmentation overlaps a hand drawn segmentation by the radiologist.
  댓글 수: 5
Image Analyst
Image Analyst 2018년 12월 27일
What parameters do you have available for you to vary? The threshold and minimum blob size for example? So you pick one set of parameters and determine if the image is a true positive, true negative, false positive, or false negative. Do it on a bunch of images and determine the counts for those, so the sum of those 4 results will sum to 200 if you had 200 images. Then you vary the parameters and try again. Each time you vary the parameters, you will get a point on the ROC cuve and two values you can add to your confusion matrix.
Ishara Nipuni
Ishara Nipuni 2019년 1월 9일
편집: Ishara Nipuni 2019년 1월 9일
Can I use pixel counts of some specific plot points of the above image as segmentation parameters to build a confusion matrix ?
And I also like to know whether there are any other methods rather than confusion matrices to validate the segmentation. If there are any other method, please tell me.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by