Ellipse/Shape Detection with Java

The WPI Library Users Guide has a small section on detecting shapes for this years game. Last year, there were methods to threshold the colors from the image to make it processing easier and more accurate. Obviously, this year, the camera is intended to find the target above the goals. The logic flow for this task is to take a black and white image through the getLuminancePlane method and find the elliptical shapes from this.

The C++ method to do this, DetectEllipses, is found in the MonoImage class. However, there is no equivalent method found in the MonoImage class in the Java API. Are there any ways to work around this? Or is there an eventual update that includes this method?

The javadocs on the website do not show the detectEllipses method on MonoImage however when I open the source file (lib/WPILibJ/src/edu/wpi/first/wpilibj/image/MonoImage.java) installed by the NetBeans plugin I do see that method.

One thing you might want to check is the update URL for the NetBeans plugin changed between the initial release and now. The new update URL is: http://first.wpi.edu/FRC/java/netbeans/update/updates.xml according to http://first.wpi.edu/FRC/frcjava.html. This caused me to not get any of the updates until recently.