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

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


Detailed Description

Mixer 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 29 of file mixer.hpp.

#include <mixer.hpp>

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

List of all members.

Public Types

typedef
fdetect_v2::InterestFeature
< fdetect_v2::FloatDescriptor
Feature

Public Member Functions

 Mixer (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.
 Mixer (JfrMesh &_mesh, fdetect_v2::Detector< Feature > *_detector, gfm_v2::Matcher< Feature > *_matcher)
 Full parameters constructor for multi cameras.
 Mixer (JfrMesh &_mesh, camera::CameraType _type, const jblas::vec &_params)
 Mixer (const std::string &ply_mesh_file, camera::CameraType _type, const jblas::vec &_params)
 Mixer (JfrMesh &_mesh)
 Mixer (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
bool update ()
 If a mesh can be updated then.

Private Attributes

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
vcg::tri::FourPCS< JfrMeshicp
JfrMesh m_model

Constructor & Destructor Documentation

jafar::modeler::Mixer::Mixer ( 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 53 of file mixer.hpp.

References JFR_POSTCOND.

jafar::modeler::Mixer::Mixer ( 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 68 of file mixer.hpp.

References JFR_POSTCOND.

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

Definition at line 82 of file mixer.hpp.

References JFR_POSTCOND.

jafar::modeler::Mixer::Mixer ( 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 94 of file mixer.hpp.

References jafar::modeler::ModelerException::FILE_READING_ERROR, JFR_ERROR, and JFR_POSTCOND.

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

Definition at line 110 of file mixer.hpp.

References JFR_POSTCOND.

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

Definition at line 120 of file mixer.hpp.

References jafar::modeler::ModelerException::FILE_READING_ERROR, JFR_ERROR, and JFR_POSTCOND.


Member Function Documentation

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