I am trying to extract the outline of a hanging drop. (see attached images for outline and original images) I want to extract the data to an array containing the outline's (x,y) pixel-coordinates. The array needs to be ordered so that going through the array, goes through the pixels of the curve.
I have converted a greyscale image of a hanging drop to a binary image of its contour (See attached Image) After
the image processing, I tried using "IMAQ Extract Curves.vi" and "IMAQ
GetPointsOnContour.vi" but they don't consistently result in one single
curve. In some cases, I get several incomplete and overlapping
sections of the curve - even though to the eye, the curve is almost
identical to examples which work.
Is there a way to extract the coordinates of a curve as a single ordered data set?
Unless
there happens to be a better Curve Detection function, I was thinking
of listing all the black pixels in an image (how - is there a way to extract an array of all the black pixels, without necessarily ordering them???) and then sorting
them so that they are arranged in the proper order to follow the drop.
I've attached some of the sample contours and drops that I'm using.