I am trying to get the pixel positions of the outer edge and the inner edge of the image separately.
I am trying to do so by using the edge function (with sobel method) which gives good results. Here are the problems I am facing:
- I want the outer most edge and the inner edge. All the other noises/separated islands in the images are something I would like to filter out. Is there any way to run the edge detection/any other function to do that?
- I want to get the pixel positions of the outermost edge and the inner most edge separately. Is there anyway to label the continuous edges so that I can store them separately?
I am open to suggestion about any other way to achieve the above mentioned goals. Thank you.