View Single Post
  #2   Spotlight this post!  
Unread 06-02-2010, 21:02
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: imaqDetectCircles

You are correct that IMAQ has an ellipse, circle and even a rectangle detection routine, and of course they are there for you to use.

As for whether this is a good idea or not, it should work pretty well assuming you are lined up directly in front of the target. As the robot moves to the side, the circle gets squished and becomes an ellipse. As the angle, changes, the circle score will fall until it is no longer reported as a valid circle.

As for the false positives, you may want to check out the white paper on the NI site. The quick things to improve the situation is to change the threshold so that weaker edges are ignored. Also, the medium sized image tends to have a much sharper edge. Small images blend the pixels and are essentially blurred. Blurred shapes make corners disappear and many shapes become more circular, and at the same time, the circle's edge is less crisp and the score falls.

Greg McKaskle