필터 지우기
필터 지우기

How to determine the threshold for SSIM of images?

조회 수: 13 (최근 30일)
yasmin ismail
yasmin ismail 2023년 10월 23일
댓글: Image Analyst 2023년 11월 1일
I created detected crack model based on image segmenation and ssim value for my images 0.95 and above , so how to decide the threshold?
I attached the original image 7027-157 and the groundTruth(label7027-157) and the output image (new7027-157) from the created model (which is created to detect crack) to compaire with groundTruth. so if I have 100 images how can i determine the threshold for ssim?

답변 (1개)

Image Analyst
Image Analyst 2023년 10월 23일
You can set the threshold for whatever you want. I have no idea how you'd even use it. I'm not sure what you did. You cannot sensibly use ssim to compare any of those three images to each other - it just doesn't make sense. Just think about it. They're far too different. So setting a threshold for it would also not make sense. At best you might judge how good a job your segmenter did by comparing your ground truth to the "new" image, but even that is not good. That's because your "new Image" doesn't look like your ground truth image. It looks like it's been skeletonized so you'd have to use something like dice to compare the skeleton of your ground truth image to the "new" skeletonized image. Or else you can use dice to compare a binarized version of the ground truth image to the "new" image before you binarized it.
Again, ssim would not be used here. It's meant for comparing two similar images, such as a gray scale image and one that underwent a round trip compression and decompression for example.
  댓글 수: 12
yasmin ismail
yasmin ismail 2023년 11월 1일
@Image Analyst I appreciate your help thanks alot , first I clicked on PredictMask.fig then the Interface is opened, then I click on Step 1 Select RGB Image folder and i got the following error :
Error in predictMask (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)predictMask('btnSelectRGBFolder_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
How it works?
Image Analyst
Image Analyst 2023년 11월 1일
You need to run the training app first and save a model .mat file. Then you can use the predict app to read that model and apply it to images.
It's possible some of my utilities might be called so you should save the utilities folder in the attachment and set a path to it.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by