i would like to know if there is a method to extract the upper and lower profiles of a connected component.
One could first extract the contour and then split it to two sets of pixels, those in top and those in bottom, but i dont know how to decide a set of a given contour-pixel
Thanks in advance.