Evaluation Metrics for k-means Image Segmentation

조회 수: 3 (최근 30일)
ioannisbaptista
ioannisbaptista 2019년 7월 26일
댓글: engineer 2020년 4월 2일
Hi everyone!
When I used CNNs to segment an image base, I had available the evaluateSemanticSegmentation( ) function and its ClassMetrics and ImageMetrics objects, which provided me with metrics such as IoU, Accuracy, and so on.
However, when using k-means clustering, there is no equivalent function to obtain the desired metrics. Since I'm quite new to Matlab, I still am not able to write code to get these metrics. Basically there is a folder with test images and another one with their associated labels, and what I want is to get the IoUs and Accuracies between what was segmented by k-means and what is determined by the label for each image.
Could someone help me with this? =(
I am very grateful!
  댓글 수: 1
engineer
engineer 2020년 4월 2일
To calculate IoU;
you can use the following function;
bboxOverlapRatio

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Recognition, Object Detection, and Semantic Segmentation에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by