필터 지우기
필터 지우기

why I got very low IoU compaired with ssim?

조회 수: 2 (최근 30일)
yasmin ismail
yasmin ismail 2023년 10월 19일
편집: yasmin ismail 2023년 10월 19일
%%SSim
A = imread('new7027-157.png');
BW_groundTruth =imread('Label7027_157.png');
[ssimval,ssimmap] = ssim(A,BW_groundTruth);
imshow(ssimmap,[])
title("Local SSIM Map with Global SSIM Value: "+num2str(ssimval))
0.93
%%IoU
A = logical(imread('new7027-157.png'));
BW_groundTruth =logical(imread('Label7027_157.png'));
similarity = jaccard(A, BW_groundTruth)
similarity =
0.2822
I created GroundTuth by using Image segmenter App and export it to work space and i got high result 0.93 when I applied ssim , then i used jaccrad index(IoU) and I got 0.2822 , why I got very law result although both images seem same by eye vision, how to fix it, is it related to the way of creating groundtruth or I missed something to do after labeling before calculationg the similarity? can you help me to fix it please?
I attached the original image (70027-157.jpg) which used in Image segmenter App for labeling, the labeled image is(label7027-157), the the model output(new7027-157) which is needed to be evaluated

답변 (0개)

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by