HOW TO CALCULATE THE PRECISION AND RECALL AND IoU

5 ビュー (過去 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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by