How to use image labeled resulted from Image labeler App (black image) to calculate jaccard Index?
1 次查看(过去 30 天)
显示 更早的评论
I used pixel label from image labeler App and after I finished labeling I used Export to file . Then I opened the file which created called PixelLabeData and I found the labeled image is totally black and the label not shown, I undertsand that I have to use the following code to let label appear
figure;
[i, m] = imread('Label_1.png');
imshow(i,m)
but then I want to use this labeled image in the following equation to calculate jaccrad index, but the image is totally black
A = logical(imread('7001-236.png'));
BW_groundTruth =logical(imread('Label_1.png'));
similarity = jaccard(squeeze(A(:,:,1)), BW_groundTruth)
similarity =
0.0925 because label image is black
so how to fix it?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!