I have a set of images of biological cells, which look like this:
How do I find the edge of these cells in a robust way (i.e. without having to manually tweak each one. I have three images here:
img1 = Import["https://i.stack.imgur.com/hZ5Vt.jpg"] img2 = Import["https://i.stack.imgur.com/tQ5wd.jpg"] img3 = Import["https://i.stack.imgur.com/wjfvW.jpg"]
and I'm looking for ways to deliminate the outer edge. I need the actual edge (accurately), not a bounding box. The background should be relatively constant between images.
This does reasonably on the first image, but not on the others:
HighlightImage[img1, DeleteSmallComponents@EdgeDetect[CurvatureFlowFilter[img1, 10], 15]]