ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Public Attributes | List of all members
OpticalFlow::Particle Class Reference

position of an edge in the image More...

#include <OpticalFlow.h>

Inheritance diagram for OpticalFlow::Particle:
Inheritance graph
Collaboration diagram for OpticalFlow::Particle:
Collaboration graph

Public Member Functions

 Particle ()
 
 Particle (const CvPoint2D32f &p)
 
bool Found (const CvPoint2D32f &p)
 
bool ToTheOutside (const CvPoint &focus) const
 
- Public Member Functions inherited from ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void IncRefCount ()
 
void DecRefCount ()
 

Public Attributes

Pos< 2, double > pos
 position More...
 
Pos< 2, double > vec
 (cumulated) flow vector More...
 
int numFound
 number of times that this edge has been found More...
 

Detailed Description

position of an edge in the image

used for the calculation of optical flow

this is not really a particle filter ;)

Definition at line 104 of file OpticalFlow.h.

Constructor & Destructor Documentation

OpticalFlow::Particle::Particle ( )

Definition at line 113 of file OpticalFlow.h.

OpticalFlow::Particle::Particle ( const CvPoint2D32f &  p)
explicit

Definition at line 114 of file OpticalFlow.h.

Member Function Documentation

bool OpticalFlow::Particle::Found ( const CvPoint2D32f &  p)
Returns
true if found in the right direction

Definition at line 570 of file OpticalFlow.cpp.

References GetWinkelDiff(), M_PI, numFound, pos, and vec.

bool OpticalFlow::Particle::ToTheOutside ( const CvPoint &  focus) const

Definition at line 119 of file OpticalFlow.h.

References pos, ScalProd(), and vec.

Member Data Documentation

int OpticalFlow::Particle::numFound

number of times that this edge has been found

Definition at line 111 of file OpticalFlow.h.

Referenced by Found().

Pos<2,double> OpticalFlow::Particle::pos

position

Definition at line 107 of file OpticalFlow.h.

Referenced by Found(), and ToTheOutside().

Pos<2,double> OpticalFlow::Particle::vec

(cumulated) flow vector

Definition at line 109 of file OpticalFlow.h.

Referenced by Found(), and ToTheOutside().


The documentation for this class was generated from the following files:


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)