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