How to determine the threshold for SSIM of images?
조회 수: 20 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
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
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 Center 및 File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!