Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting Drop Outline

Hi,

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.

Thank you very much for your help!

(this is a repost from the Main Labview Forum)
0 Kudos
Message 1 of 3
(3,227 Views)
Actually, my question was answered in a different thread. Thank you for your effort though.

Turns out I was using the wrong row and column search step sizes with IMAQ Extract Curves.vi
0 Kudos
Message 2 of 3
(3,218 Views)
0 Kudos
Message 3 of 3
(3,205 Views)