View Single Post
  #7   Spotlight this post!  
Unread 15-02-2010, 22:54
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
Re: Ellipse Detection

The default ellipse detection method gets the luminance plane and passes that to imaqdetectEllipse. I found out last year that the conversion from RGB is HSL is very time-consuming. The math isn't hard, but every single pixel of every single frame has to be converted, which takes a significant amount of time. Passing one of the red/green/blue planes to imaqdetectEllipse should decrease processing time dramatically.

Also, you probably don't want to find ellipses only 3 pixels across. Try setting the minimum minor & major axes to 10. Otherwise, the code will pick up a lot of false positives.

Another thing: what do you want the code to do? If it's just picking up the vision target, the edge threshold can be set much higher. If you want to pick up soccer balls, your current edge threshold is fine.