Filter löschen
Filter löschen

How to determine the threshold for SSIM of images?

13 Ansichten (letzte 30 Tage)
yasmin ismail
yasmin ismail am 23 Okt. 2023
Kommentiert: Image Analyst am 1 Nov. 2023
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?

Antworten (1)

Image Analyst
Image Analyst am 23 Okt. 2023
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 Kommentare
yasmin ismail
yasmin ismail am 1 Nov. 2023
@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 am 1 Nov. 2023
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by