HOW TO CALCULATE THE PRECISION AND RECALL AND IoU

조회 수: 4 (최근 30일)
mohd akmal masud
mohd akmal masud 2022년 6월 27일
답변: Muskan 2023년 9월 6일
Dear all,
I have the groundTruthlabel(g.mat) and prediction (tempSeg1.mat). all attached.
Anyone know how to calculate the precision, recall and IoU for my data?
I tried used this one but error.
[precision,recall] = bboxPrecisionRecall(idxx,tempSeg1)
Error using bboxPrecisionRecall
Expected boundingBoxes to be one of these types:
double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64
Instead its type was logical.
Error in bboxPrecisionRecall>validateNonTableInput (line 153)
validateattributes(bbox, {'numeric'},...
Error in bboxPrecisionRecall (line 110)
validateNonTableInput(boundingBoxes, 'boundingBoxes');
My data is 3D.

채택된 답변

Muskan
Muskan 2023년 9월 6일
Hi Akmal,
I understand that you are trying to calculate the precision, recall and IoU metrics and you are getting errors while doing that.
I also see from the .mat files attached that the type of “tempSeg1” is logical while the expected input type should be either of double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64.
You can refer to the following documentation for a better understanding of the issue:
I hope the above information helps resolve your query.
Thanks

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning for Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by