Classes | |
struct | GeonOutline |
struct | GeonState |
struct | GHTAcc |
struct | RTableEntry |
Public Types | |
enum | GEON_TYPE { TRIANGLE, SQUARE, CIRCLE } |
Public Member Functions | |
V4 (OptionManager &mgr, const std::string &descrName="V4", const std::string &tagName="V4") | |
~V4 () | |
Destructor. | |
void | buildRTables () |
void | init (Dims dims) |
void | setInput (const std::vector< V1::EdgeState > &edgesState) |
void | setInput (const std::vector< V4d::NAFState > &nafStates) |
std::vector< V4::GeonState > | getOutput () |
std::vector< V4d::NAFState > | getBias () |
void | showGeon (GeonOutline &object) |
void | evolve () |
void | alignToCenterOfMass (GeonOutline &featureTemplate) |
Align template so that center of mass is at 0,0. | |
Layout< PixRGB< byte > > | getDebugImage () |
void | getOutlineLikelihood (GeonState &geon) |
void | getGeonLikelihood (GeonState &geon) |
double | getLineProbability (const Point2D< int > &p1, const Point2D< int > &p2) |
void | resampleParticles (std::vector< GeonState > &geonParticles) |
void | resampleParticles2 (std::vector< GeonState > &geonParticles) |
void | proposeParticles (std::vector< GeonState > &geonParticles, const double Neff) |
std::vector< Point2D< int > > | getImageGeonOutline (GeonState &geon) |
float | evaluateGeonParticles (std::vector< GeonState > &geonParticles) |
void | GHT (std::vector< GHTAcc > &accRet, GeonOutline &geonOutline) |
void | normalizeAcc (std::vector< GHTAcc > &acc) |
void | voteForFeature (Image< float > &acc, int angIdx, std::vector< RTableEntry > &rTable) |
Image< PixRGB< byte > > | showParticles (const std::vector< GeonState > &geonParticles) |
Protected Member Functions | |
SIMCALLBACK_DECLARE (V4, SimEventV2Output) | |
Callback for when a new ganglion output is ready. | |
SIMCALLBACK_DECLARE (V4, SimEventV4dOutput) | |
Callback for when a new ganglion output is ready. | |
SIMCALLBACK_DECLARE (V4, SimEventUserInput) | |
Callback for every time we have a user event. | |
SIMCALLBACK_DECLARE (V4, SimEventSaveOutput) | |
Callback for every time we should save our outputs. | |
Protected Attributes | |
OModelParam< bool > | itsShowDebug |
Should we show our debug info. |
Definition at line 60 of file V4.H.
V4::V4 | ( | OptionManager & | mgr, | |
const std::string & | descrName = "V4" , |
|||
const std::string & | tagName = "V4" | |||
) |
Geons
Definition at line 103 of file V4.C.
References alignToCenterOfMass(), rutz::shared_ptr< T >::reset(), and ZEROS.
void V4::alignToCenterOfMass | ( | GeonOutline & | featureTemplate | ) |
V4::SIMCALLBACK_DECLARE | ( | V4 | , | |
SimEventSaveOutput | ||||
) | [protected] |
Callback for every time we should save our outputs.
V4::SIMCALLBACK_DECLARE | ( | V4 | , | |
SimEventUserInput | ||||
) | [protected] |
Callback for every time we have a user event.
V4::SIMCALLBACK_DECLARE | ( | V4 | , | |
SimEventV4dOutput | ||||
) | [protected] |
Callback for when a new ganglion output is ready.
V4::SIMCALLBACK_DECLARE | ( | V4 | , | |
SimEventV2Output | ||||
) | [protected] |
Callback for when a new ganglion output is ready.
OModelParam<bool> V4::itsShowDebug [protected] |