Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
BallDetectionGenerator Class Reference#include <BallDetectionGenerator.h>
Inheritance diagram for BallDetectionGenerator:
![]() Detailed DescriptionUses segmented color region information to detect round objects.This expects its events to come from a RegionGenerator (or a compatable subclass) Sends a VisionObjectEvent only for the largest ball found (if one is found) You can set the index of the color of the ball to look for in the constructor, so you can have several of these running looking for balls of different colors. This is one of our oldest code segments, and has been hacked on a lot, so apologies for a bit of a mess... Definition at line 25 of file BallDetectionGenerator.h.
Member Typedef Documentation
Constructor & Destructor Documentation
don't call
Member Function Documentation
Gives a short description of what this class of behaviors does... you should override this (but don't have to). If you do override this, also consider overriding getDescription() to return it Reimplemented from BehaviorBase. Definition at line 30 of file BallDetectionGenerator.h.
see class notes above for what data this can handle
Reimplemented from EventGeneratorBase. Definition at line 19 of file BallDetectionGenerator.cc.
decides wether to actually send the event based on confidence threshold.
Definition at line 248 of file BallDetectionGenerator.cc. Referenced by processEvent().
does the actual event sending
Definition at line 295 of file BallDetectionGenerator.cc. Referenced by processEvent(), and testSendEvent().
returns a bit mask corresponding to edges touched by the coordinates passed
Definition at line 302 of file BallDetectionGenerator.cc. Referenced by processEvent().
don't call
Member Data Documentation
bitmask for calcEdgeMask results
Definition at line 39 of file BallDetectionGenerator.h. Referenced by calcEdgeMask().
bitmask for calcEdgeMask results
Definition at line 40 of file BallDetectionGenerator.h. Referenced by calcEdgeMask().
bitmask for calcEdgeMask results
Definition at line 41 of file BallDetectionGenerator.h. Referenced by calcEdgeMask().
bitmask for calcEdgeMask results
Definition at line 42 of file BallDetectionGenerator.h. Referenced by calcEdgeMask().
the number of regions to check (from largest to smallest)
Definition at line 45 of file BallDetectionGenerator.h. Referenced by processEvent().
the index of the color of the ball we're looking for
Definition at line 68 of file BallDetectionGenerator.h. Referenced by processEvent().
the index of the theshold map (channel) of the FilterBankEvent
Definition at line 69 of file BallDetectionGenerator.h. Referenced by processEvent().
information about the best ball found
Definition at line 70 of file BallDetectionGenerator.h. Referenced by processEvent().
if true, we think we have a ball in front of us
Definition at line 71 of file BallDetectionGenerator.h. Referenced by processEvent(), and testSendEvent().
for each frame where we don't agree with present's value, this is incremented and compared against noiseFilter.
Definition at line 72 of file BallDetectionGenerator.h. Referenced by processEvent(), and testSendEvent().
the number of frames to wait to make sure an object has dissappeared/reappeared
Definition at line 73 of file BallDetectionGenerator.h. Referenced by processEvent(), and testSendEvent().
how sure we should be it's a ball before declaring it as such.
Definition at line 74 of file BallDetectionGenerator.h. Referenced by testSendEvent().
The documentation for this class was generated from the following files: |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:09 2007 by Doxygen 1.5.4 |