Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Attributes
jafar::facetsmap::FacetsAnalyser Class Reference

Detailed Description

Definition at line 34 of file facetsanalyser.hpp.

Inheritance diagram for jafar::facetsmap::FacetsAnalyser:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FacetsAnalyser (const FacetsParams *params)
virtual void processImage (jblas::mat44 &robotpos, jblas::mat44 &robotmovement, const boost::numeric::ublas::bounded_matrix< double, 4, 4 > &leftToRight, const jafar::image::Image &imgl, const jafar::image::Image &imgr, const jafar::camera::StereoBench &stereoBench, int time, bool updateFacet, std::map< int, jblas::vec > predictions)=0
 You need to implement this function.
void dumpProcessStats ()
 This function display on the screen all the stats of the processing.

Protected Member Functions

vFacets analyseImage (const jafar::image::Image &imgl, const jafar::image::Image &imgr, const camera::StereoBench &stereoBench, int time, bool updateFacet)
 This function is called by processImage to get the lists of new facets, all the facets that are found are stored in m_recentFacets.
FacetfindRecentFacetContaining (jblas::vec3 v)
 This function return a facet containing the point v, the function only look in the recents facets.
void insertFacet (uint id, Facet *f, bool lookneigh=false)
 This function insert a facet, and look for its neighborhood.
const FacetsParamsparams ()

Private Attributes

const FacetsParamsm_params
std::vector< ProcessStatsm_processStats
vFacets m_recentFacets
gfm::Enginem_matchingEngine
FacetsDetectorm_facetsDetector

Member Function Documentation

vFacets jafar::facetsmap::FacetsAnalyser::analyseImage ( const jafar::image::Image imgl,
const jafar::image::Image imgr,
const camera::StereoBench stereoBench,
int  time,
bool  updateFacet 
) [protected]

This function is called by processImage to get the lists of new facets, all the facets that are found are stored in m_recentFacets.

Returns:
the list of new facets

This function return a facet containing the point v, the function only look in the recents facets.

Parameters:
vmust given in the global repere
void jafar::facetsmap::FacetsAnalyser::insertFacet ( uint  id,
Facet f,
bool  lookneigh = false 
) [inline, protected]

This function insert a facet, and look for its neighborhood.

Parameters:
idthe identifiant of the facet (should be equal to f->id())
fa pointer to the facet
lookneightells the function if we need to look for the facets which might be close to the facet we are adding

Reimplemented from jafar::facetsmap::FacetsContainer.

Definition at line 67 of file facetsanalyser.hpp.

virtual void jafar::facetsmap::FacetsAnalyser::processImage ( jblas::mat44 robotpos,
jblas::mat44 robotmovement,
const boost::numeric::ublas::bounded_matrix< double, 4, 4 > &  leftToRight,
const jafar::image::Image imgl,
const jafar::image::Image imgr,
const jafar::camera::StereoBench stereoBench,
int  time,
bool  updateFacet,
std::map< int, jblas::vec predictions 
) [pure virtual]

You need to implement this function.

Parameters:
robotposthe estimated movement of the robot
im3dthe result of the stereovision
pointsa vector of Harris point
imgthe image

Implemented in jafar::facetsmap::AmersMap, and jafar::facetsmap::FacetsMap.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:35 for Jafar by doxygen 1.7.6.1
LAAS-CNRS