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

class EdgeTracker More...

#include <EdgeTracker.h>

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

List of all members.

Public Member Functions

virtual void drawResult (float linewidth=1.0f)
 Draw all models.
 EdgeTracker ()
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 bool track ()
 Tracks all models by matching their edges against edges of images.
virtual bool track (int id)
 Tracks model by id by matching their edges against edges of images.

Private Member Functions

void particle_filtering (ModelEntry *modelEntry)

Private Attributes

Shaderm_shadeEdgeCompare

Detailed Description

class EdgeTracker

Definition at line 17 of file EdgeTracker.h.


Constructor & Destructor Documentation

Definition at line 85 of file EdgeTracker.cpp.


Member Function Documentation

void EdgeTracker::drawResult ( float  linewidth = 1.0f) [virtual]

Draw all models.

Implements Tracking::Tracker.

Definition at line 144 of file EdgeTracker.cpp.

void EdgeTracker::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 10 of file EdgeTracker.cpp.

void EdgeTracker::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 26 of file EdgeTracker.cpp.

virtual void Tracking::EdgeTracker::image_processing ( unsigned char *  image,
int  model_id,
const TomGine::tgPose pose,
GLenum  format = GL_BGR 
) [inline, 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 35 of file EdgeTracker.h.

Implements Tracking::Tracker.

Definition at line 94 of file EdgeTracker.cpp.

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

Definition at line 51 of file EdgeTracker.cpp.

bool EdgeTracker::track ( ) [virtual]

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

Implements Tracking::Tracker.

Definition at line 111 of file EdgeTracker.cpp.

bool EdgeTracker::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 129 of file EdgeTracker.cpp.


Member Data Documentation

Definition at line 22 of file EdgeTracker.h.


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


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:27