- True positive
- True negative
- False positive
- False negative
What criteria should be used to select the number of images used in image processing for detection the drawbacks of any surfaces?
2 views (last 30 days)
Show older comments
What are the criteria that must be considered to select the number of images in image processing techniques to make sure the proposed method is working well, and to trust the results of that model used based on image processing in detecting any drawbacks of the surfaces?
0 Comments
Answers (1)
Image Analyst
on 22 Sep 2023
It depends on your situation. So I'm presuming you have some ground truth that tells you whether the algorithm gave the correct answer or not. So you have four situations:
So which of the 4 is most important depends on the context. Let's say it's a cancer diagnosis. Is the risk of a false negative (you have cancer but we didn't detect it) worse than a false positive (we told you that you have cancer but you really don't)?
You might want to look up ROC Curve : https://en.wikipedia.org/wiki/Receiver_operating_characteristic
Maybe you look at multiple images before making a decision so each point on the ROC curve could be for a different number of images used in the final decision.
but where on the curve you say is the "optimal" number of images to use is a judgment call. Maybe you just simply want to say that if the true positive ("correct") rate is more than 90% you're happy with that. Or maybe if the risk of being wrong is really high you want the true positive rate to be >99%.
5 Comments
Image Analyst
on 25 Sep 2023
FN is the number of true positives that your algorithm mistakenly called negative. But what you can do is simply count P, the number of positive cases. If you have numImages, and you know the actual, true results for them all, then you know the number that are Positive and the number that are negative. So numImages = P + N. So just get the true positive rate by the fraction of images that were correctly identified. TPR = TP/P.
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!