|
Re: NIVision EllipseMatch Problems
The ellipse descriptor from IMAQ contains the rotation of the ellipse. You'll have to reference the documentation or experiment to determine where zero is and which way positive rotates.
The ellipse score ranges form 0 to 1000 with higher meaning better. In fact, the score starts at 1000 and points are deducted each time a pixel doesn't fall on the mathematical ellipse. Note that this means that the same quality shape scaled up has more pixels, and even though it is really the same, it will score lower because it has more pixels to subtract for. For this reason, the sample code computes a normalized score that corrects for size and will remain more constant as the size the image up and down. The sample code will also scale the centers and sizes to be a ratio of the image size so that it is not relying on a particular camera resolution.
By the way, are you reading through the C, Java, or LV source? They were done similarly, but the comments and style may differ. You may find it useful to look at the algorithm in the different languages and compare.
Greg McKaskle
|