Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Member Functions | Private Attributes
jafar::modeler::Taylor Class Reference

Taylor has nothing to do with the mathematician. More...


Detailed Description

Taylor has nothing to do with the mathematician.

It permits [retouching] of an existing mesh i.e. adding vertices or updating existing from at least two images.

Two images are the minimum required number since we need at least 2 images to compute new vertices coordinates.

Definition at line 26 of file taylor.hpp.

#include <taylor.hpp>

Inheritance diagram for jafar::modeler::Taylor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Taylor (JfrMesh &_mesh, camera::CameraType _type, const jblas::vec &_params, fdetect_v2::Detector< Feature > *_detector, gfm_v2::Matcher< Feature > *_matcher)
 Full parameters constructor for a single camera.
 Taylor (JfrMesh &_mesh, fdetect_v2::Detector< Feature > *_detector, gfm_v2::Matcher< Feature > *_matcher)
 Full parameters constructor for multi cameras.
 Taylor (JfrMesh &_mesh, camera::CameraType _type, const jblas::vec &_params)
 Taylor (const std::string &ply_mesh_file, camera::CameraType _type, const jblas::vec &_params)
 Taylor (JfrMesh &_mesh)
 Taylor (const std::string &ply_mesh_file)
void setDetector (fdetect_v2::Detector< Feature > *_detector)
 set the detector to _detector
void setMatcher (gfm_v2::Matcher< Feature > *_matcher)
 set the matcher to _matcher
void retouch (const image::Image &rqst, geom::T3D *pose)
 retouchs the mesh may be inserting new vertices else updates existing
void retouch (camera::CameraType type, const jblas::vec &intrinsics, geom::T3D *extrinsics, const image::Image &rqst)
 retouchs the mesh may be inserting new vertices else updates existing in multi camera mode
void update ()
 If a mesh can be updated then.

Private Types

typedef
fdetect_v2::InterestFeature
< fdetect_v2::FloatDescriptor
Feature
typedef std::map< unsigned int,
fdetect_v2::DetectionResult
< Feature > >::iterator 
detections_iter

Private Member Functions

void populate ()
 populate the detection results from the mesh
int add (fdetect_v2::DetectionResult< Feature > &dr)
 Adds a detection result to the tracker for processing.

Private Attributes

std::map< unsigned int,
fdetect_v2::DetectionResult
< Feature > > 
sequence_detect
 storage of detection results
bool is_updatable
 tells if a mesh needs to be updated
gfm_v2::MatchingResult< Featurecurrent_result
 the current matching result
unsigned int first_new_vertex_id
 the first new id for vertices and features
unsigned int first_new_shot_id
 the first new id for poses, shots and detections
std::vector< unsigned int > transient_vertices

Constructor & Destructor Documentation

jafar::modeler::Taylor::Taylor ( JfrMesh _mesh,
camera::CameraType  _type,
const jblas::vec _params,
fdetect_v2::Detector< Feature > *  _detector,
gfm_v2::Matcher< Feature > *  _matcher 
) [inline]

Full parameters constructor for a single camera.

Parameters:
_meshexisting mesh to update
_typecamera type
_paramscamera intrinsics
_detectordetector that will process images to find interest features
_matcherinterest feature matching engine

Definition at line 51 of file taylor.hpp.

References populate().

jafar::modeler::Taylor::Taylor ( JfrMesh _mesh,
fdetect_v2::Detector< Feature > *  _detector,
gfm_v2::Matcher< Feature > *  _matcher 
) [inline]

Full parameters constructor for multi cameras.

Parameters:
_meshexisting mesh to update
_detectordetector that will process images to find interest features
_matcherinterest feature matching engine

Definition at line 66 of file taylor.hpp.

References populate().

jafar::modeler::Taylor::Taylor ( JfrMesh _mesh,
camera::CameraType  _type,
const jblas::vec _params 
) [inline]
Parameters:
_meshexisting mesh to update
_typecamera type
_paramscamera intrinsics

Definition at line 79 of file taylor.hpp.

References populate().

jafar::modeler::Taylor::Taylor ( const std::string &  ply_mesh_file,
camera::CameraType  _type,
const jblas::vec _params 
) [inline]
Parameters:
ply_mesh_fileexisting mesh to update saved in a ply file format
_typecamera type
_paramscamera intrinsics

Definition at line 90 of file taylor.hpp.

References populate().

jafar::modeler::Taylor::Taylor ( JfrMesh _mesh) [inline]
Parameters:
_meshexisting mesh to update

Definition at line 100 of file taylor.hpp.

References populate().

jafar::modeler::Taylor::Taylor ( const std::string &  ply_mesh_file) [inline]
Parameters:
ply_mesh_fileexisting mesh to update saved in a ply file format

Definition at line 109 of file taylor.hpp.

References populate().


Member Function Documentation

Adds a detection result to the tracker for processing.

Parameters:
drdetection result to be passed to the tracker
Returns:
  • 0 if no match where found or when initializing the tracker
  • 1 if an interest features matches previously known one
  • 2 if this is a new formed couple of features

If a mesh can be updated then.

  • insert new vertices into the existing mesh
  • update the origines of ancient ones

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:43 for Jafar by doxygen 1.7.6.1
LAAS-CNRS