View Single Post
  #10   Spotlight this post!  
Unread 17-02-2010, 12:50
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: Ellipse Detection

Quote:
Originally Posted by bronxbomber92 View Post
EllipseDescriptor
minMajorRadius - 3.0
maxMajorRadius - 160.0
minMinorRadius - 3.0
maxMajorRadius - 160.0

CurveOptions
extractionMode - IMAQ_NORMAL_IMAGE
threshold - 50
filterSize - IMAQ_NORMAL
minLength - 20
rowStepSize - 20
columnStepSize - 20
maxEndPointGap - 10
onlyClosed - false
subPixelAccuracy - false

ShapeDetectionOptions
mode - IMAQ_GEOMETRIC_MATCH_SHIFT_INVARIANT
anglesRanges - null
numAngleRanges - 0
scaleRange - 0
minMatchScore - 800
These parameters seem to be set by the following Java statements:
Code:
    static EllipseDescriptor ellipseDescriptor = new EllipseDescriptor(3, 200, 3, 100);
    static CurveOptions curveOptions = new CurveOptions(0, 40, 1, 25, 15, 15, 10, 1, 0);
    static ShapeDetectionOptions shapeOptions = new ShapeDetectionOptions(ShapeDetectionOptions.IMAQ_GEOMETRIC_MATCH_SHIFT_INVARIANT, 0, 0, 75, 125, 500);
But these classes aren't in the FRC javadocs, so I can see which value is which. Is there a javadoc or reference for these somewhere?
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics