How to have different threshold for different images?
Ältere Kommentare anzeigen
I am doing edge detection of microcell images directly taken form microscope. One image has 25 microwells containing the cells. I am cropping the 25 automatically and trying to do edge detection. The code is working. However, because of the threshold the edge detection (outilne formed on the cell spheroid) is not perfect, missing the actual outer edge of the spehroid.
Radius of diamond/ length of line does make a difference but Threshold is the main factor.
I treid adpatthresh and graythresh but they hardly made any difference.
It will be very good if anyone can guide me on how to have variable threshold that suits different images for proper edge detection.
Thanks
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 7 Dez. 2022
0 Stimmen
You can use the interactive thresholding utility in my File Exchange:
It may be possible to have the threshold automatically determined. I don't know because you forgot to attach any images.
One major obstacle to using a global threshold is that the images have not been background corrected. All lenses have shading so your image will be darker at the corners and edges than at the middle. Unless you correct for that, you won't have a good binary image.
And you may or may not need edge detection. Beginners often do it unnecessarily. Just because you can see edges in the image does not mean edge detection is a necessary step in the segmentation algorithm. Again, I won't know until I see your pictures.
I'm attaching a few demos that may interest you.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
1 Kommentar
Amlan basu
am 7 Dez. 2022
Kategorien
Mehr zu Display and Exploration finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!