class EdgeTracker More...
#include <EdgeTracker.h>
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 | |
Shader * | m_shadeEdgeCompare |
class EdgeTracker
Definition at line 17 of file EdgeTracker.h.
Definition at line 85 of file EdgeTracker.cpp.
void EdgeTracker::drawResult | ( | float | linewidth = 1.0f | ) | [virtual] |
void EdgeTracker::image_processing | ( | unsigned char * | image, |
GLenum | format = GL_BGR |
||
) | [virtual] |
Perform image processing with edge detection.
image | image data |
format | data 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.
image | image data |
model | geometry of virtual object |
pose | position and orientation of the virtual object in world space |
format | data 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.
image | image data |
model_id | id of the model |
pose | position and orientation of the virtual object in world space |
format | data format |
Implements Tracking::Tracker.
Definition at line 35 of file EdgeTracker.h.
bool EdgeTracker::initInternal | ( | ) | [virtual] |
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.
id | the id of the model given by addModel() or addModelFromFile() |
Implements Tracking::Tracker.
Definition at line 129 of file EdgeTracker.cpp.
Shader* Tracking::EdgeTracker::m_shadeEdgeCompare [private] |
Definition at line 22 of file EdgeTracker.h.