Go to Post To be blunt: how many motorized carts do you see parked on the side of Einstein? - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2010, 17:24
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
NIVision EllipseMatch Problems

There are several fields in EllipseMatch struct that seems less than useful (though, they shouldn't be).

First are the majorRadius and minorRadius fields. They are almost useless because no information is given on which axis they lie on. Is there someway to tell what axis each lie on (either accounting for rotation of ellipse or not)? If the NIVision library provided the axis that each were on it would be very easy to tell if ellipse matches were concentric.

My other problems pertain to the score field. Is a low score or high score good? If a high score is good, how large can this value be? Also, in the example code given for this year they're calculating their own score value, but it's not obviously clear what exactly they're doing means. Can anyone shed some light on this?

Thanks!
  #2   Spotlight this post!  
Unread 20-01-2010, 07:59
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,748
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: 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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nivision linking error 451Programmer Programming 4 10-03-2009 21:01
NiVision.cpp nickmagus Programming 4 26-01-2009 08:55
DS Problems popo308 FRC Control System 3 05-01-2009 22:16
IR Problems Tottanka Electrical 3 13-01-2008 15:07
Labview problems and code problems ajsetter Programming 25 18-01-2006 17:07


All times are GMT -5. The time now is 10:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi