Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can i calculate over segmentation and under segmentation

1 回表示 (過去 30 日間)
rahul verma
rahul verma 2017 年 2 月 23 日
コメント済み: Rik 2017 年 2 月 27 日
i am working on image-segmentation, now i have to calculate over and under segmentation percentage of my result. can anyone please help me how to calculate these ?
  4 件のコメント
rahul verma
rahul verma 2017 年 2 月 24 日
編集済み: rahul verma 2017 年 2 月 24 日
Can't i do like this !! by calculating volume,
Vauto = regionprops(Mask, 'Area'); Vmanual = regionprops(groundTruth, 'Area');
where Vauto - volume of My code segmented image. Vmanual = volume of groundTruth image.
even i am trying to do this but i am getting error saying
_______________________Error_______________
Undefined function 'mldivide' for input arguments of type 'struct'.
Error in Over_Under_Seg (line 13) overSegmentation = ((Vauto\Vmanual)\Vmanual);
Rik
Rik 2017 年 2 月 27 日
You are trying to divide two struct, which is not possible. Furthermore, you are aware that you are using after-division? The difference is 1/3=0.3333 and 1\3=3.
If you refuse to use my code, you can use regionprops, but you should still extract the area from the struct. So your line should look like
overSegmentation = ((Vauto.Area\Vmanual.Area)\Vmanual.Area);
This line will only work if there is only a single connected mass in your image.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by