Public Member Functions | Private Member Functions | Private Attributes
Tracking::TextureTracker Class Reference

class TextureTracker More...

#include <TextureTracker.h>

Inheritance diagram for Tracking::TextureTracker:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void drawModelEntry (ModelEntry *modelEntry, float linewidth=1.0f)
virtual void drawResult (float linewidth=2.0f)
 Draw all models.
void drawResult (int id, float linewidth)
virtual void drawTrackerModel (int id, const TomGine::tgPose &p, float linewidth=1.0f)
virtual float evaluateParticle (ModelEntry *modelEntry)
virtual float evaluateParticle (ModelEntry *modelEntry, Shader *shader)
virtual void evaluatePDF (int id, float x_min, float y_min, float x_max, float y_max, int res, const char *meshfile, const char *xfile)
cv::Mat getModelTexture ()
virtual std::vector< float > getPDFxy (ModelEntry *modelEntry, float x_min, float y_min, float x_max, float y_max, int res)
virtual void image_processing (unsigned char *image, GLenum format=GL_BGR)
 Perform image processing with edge detection.
virtual void image_processing (unsigned char *image, const TomGine::tgModel &m, const TomGine::tgPose &p, GLenum format=GL_BGR)
 Perform image processing with edge detection, painting a virtual object into the image.
virtual void image_processing (unsigned char *image, int model_id, const TomGine::tgPose &p, GLenum format=GL_BGR)
 Perform image processing with edge detection, painting the model with id as virtual object into image.
virtual bool initInternal ()
virtual void savePDF (std::vector< float > vPDFMap, float x_min, float y_min, float x_max, float y_max, unsigned res, const char *meshfile, const char *xfile)
virtual void setColorShader ()
virtual void setEdgeShader ()
virtual void setKernelSize (int val)
virtual void textureFromImage (bool use_num_pixels=true)
 Captures image and attaches it to model as texture.
virtual void textureFromImage (int id, const TomGine::tgPose &pose, bool use_num_pixels=true)
 TextureTracker ()
virtual bool track ()
 Tracks all models by matching their edges against edges of images.
bool track (const std::vector< bool > &tracking_objects)
bool track (ModelEntry *modelEntry)
virtual bool track (int id)
 Tracks model by id by matching their edges against edges of images.
virtual void untextureModels ()
 Remove textures from model.
 ~TextureTracker ()

Private Member Functions

void model_processing (ModelEntry *modelEntry)
void particle_filtering (ModelEntry *modelEntry)

Private Attributes

Shaderm_shadeCompare
Shaderm_shadeConfidenceMM
Shaderm_shadeTexColorTest
Shaderm_shadeTexEdgeTest
Texturem_tex_frame_cmp
Texturem_tex_model
Texturem_tex_model_cmp
std::vector< Texture * > m_tex_model_ip

Detailed Description

class TextureTracker

Definition at line 18 of file TextureTracker.h.


Constructor & Destructor Documentation

Definition at line 174 of file TextureTracker.cpp.

Definition at line 183 of file TextureTracker.cpp.


Member Function Documentation

void TextureTracker::drawModelEntry ( ModelEntry modelEntry,
float  linewidth = 1.0f 
) [virtual]

Definition at line 653 of file TextureTracker.cpp.

void TextureTracker::drawResult ( float  linewidth = 2.0f) [virtual]

Draw all models.

Implements Tracking::Tracker.

Definition at line 604 of file TextureTracker.cpp.

void TextureTracker::drawResult ( int  id,
float  linewidth 
)

Definition at line 628 of file TextureTracker.cpp.

void TextureTracker::drawTrackerModel ( int  id,
const TomGine::tgPose p,
float  linewidth = 1.0f 
) [virtual]

Reimplemented from Tracking::Tracker.

Definition at line 699 of file TextureTracker.cpp.

float TextureTracker::evaluateParticle ( ModelEntry modelEntry) [virtual]

Definition at line 273 of file TextureTracker.cpp.

float TextureTracker::evaluateParticle ( ModelEntry modelEntry,
Shader shader 
) [virtual]

Definition at line 279 of file TextureTracker.cpp.

void TextureTracker::evaluatePDF ( int  id,
float  x_min,
float  y_min,
float  x_max,
float  y_max,
int  res,
const char *  meshfile,
const char *  xfile 
) [virtual]

Reimplemented from Tracking::Tracker.

Definition at line 736 of file TextureTracker.cpp.

Definition at line 948 of file TextureTracker.cpp.

vector< float > TextureTracker::getPDFxy ( ModelEntry modelEntry,
float  x_min,
float  y_min,
float  x_max,
float  y_max,
int  res 
) [virtual]

Definition at line 755 of file TextureTracker.cpp.

void TextureTracker::image_processing ( unsigned char *  image,
GLenum  format = GL_BGR 
) [virtual]

Perform image processing with edge detection.

Parameters:
imageimage data
formatdata format

Implements Tracking::Tracker.

Definition at line 342 of file TextureTracker.cpp.

void TextureTracker::image_processing ( unsigned char *  image,
const TomGine::tgModel model,
const TomGine::tgPose pose,
GLenum  format = GL_BGR 
) [virtual]

Perform image processing with edge detection, painting a virtual object into the image.

Parameters:
imageimage data
modelgeometry of virtual object
poseposition and orientation of the virtual object in world space
formatdata format

Implements Tracking::Tracker.

Definition at line 365 of file TextureTracker.cpp.

void TextureTracker::image_processing ( unsigned char *  image,
int  model_id,
const TomGine::tgPose pose,
GLenum  format = GL_BGR 
) [virtual]

Perform image processing with edge detection, painting the model with id as virtual object into image.

Parameters:
imageimage data
model_idid of the model
poseposition and orientation of the virtual object in world space
formatdata format

Implements Tracking::Tracker.

Definition at line 395 of file TextureTracker.cpp.

bool TextureTracker::initInternal ( ) [virtual]

Implements Tracking::Tracker.

Definition at line 191 of file TextureTracker.cpp.

void TextureTracker::model_processing ( ModelEntry modelEntry) [private]

Definition at line 15 of file TextureTracker.cpp.

void TextureTracker::particle_filtering ( ModelEntry modelEntry) [private]

Definition at line 81 of file TextureTracker.cpp.

void TextureTracker::savePDF ( std::vector< float >  vPDFMap,
float  x_min,
float  y_min,
float  x_max,
float  y_max,
unsigned  res,
const char *  meshfile,
const char *  xfile 
) [virtual]

Definition at line 812 of file TextureTracker.cpp.

virtual void Tracking::TextureTracker::setColorShader ( ) [inline, virtual]

Reimplemented from Tracking::Tracker.

Definition at line 52 of file TextureTracker.h.

virtual void Tracking::TextureTracker::setEdgeShader ( ) [inline, virtual]

Reimplemented from Tracking::Tracker.

Definition at line 49 of file TextureTracker.h.

virtual void Tracking::TextureTracker::setKernelSize ( int  val) [inline, virtual]

Reimplemented from Tracking::Tracker.

Definition at line 42 of file TextureTracker.h.

void TextureTracker::textureFromImage ( bool  force = true) [virtual]

Captures image and attaches it to model as texture.

Reimplemented from Tracking::Tracker.

Definition at line 522 of file TextureTracker.cpp.

void TextureTracker::textureFromImage ( int  id,
const TomGine::tgPose pose,
bool  use_num_pixels = true 
) [virtual]

Reimplemented from Tracking::Tracker.

Definition at line 562 of file TextureTracker.cpp.

bool TextureTracker::track ( ) [virtual]

Tracks all models by matching their edges against edges of images.

Implements Tracking::Tracker.

Definition at line 443 of file TextureTracker.cpp.

bool TextureTracker::track ( const std::vector< bool > &  tracking_objects)

Definition at line 449 of file TextureTracker.cpp.

bool TextureTracker::track ( ModelEntry modelEntry)

Definition at line 470 of file TextureTracker.cpp.

bool TextureTracker::track ( int  id) [virtual]

Tracks model by id by matching their edges against edges of images.

Parameters:
idthe id of the model given by addModel() or addModelFromFile()

Implements Tracking::Tracker.

Definition at line 500 of file TextureTracker.cpp.

void TextureTracker::untextureModels ( ) [virtual]

Remove textures from model.

Reimplemented from Tracking::Tracker.

Definition at line 597 of file TextureTracker.cpp.


Member Data Documentation

Definition at line 26 of file TextureTracker.h.

Definition at line 25 of file TextureTracker.h.

Definition at line 24 of file TextureTracker.h.

Definition at line 23 of file TextureTracker.h.

Definition at line 29 of file TextureTracker.h.

Definition at line 27 of file TextureTracker.h.

Definition at line 30 of file TextureTracker.h.

Definition at line 28 of file TextureTracker.h.


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


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:13