#include <featureTrack.h>
Public Member Functions | |
| featureTrack (int width, int height) | |
| height of the images upon which it will operate. | |
| Scene * | getScene (GLuint texIn) |
| int | width () |
| Get the width of images upon which the feature track object is set to operate. | |
| int | height () |
| Get the height of images upon which the feature track object is set to operate. | |
Public Attributes | |
| GLuint | tex [10] |
Finds features in an image and returns unique vectors for each. Implemnetation is based upon SIFT keys.
Typical usage:
//create the feature tracking object. give it the size of the images it will operate on. ft = new featureTrack(sourcewidth, sourceheight );
// make a texture
glGenTextures(1, &tex); // texture
glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE );
glBindTexture(GL_TEXTURE_RECTANGLE_NV, tex);
glTexImage2D(GL_TEXTURE_RECTANGLE_NV, 0, GL_RGBA, sourcewidth,
sourceheight, 0, GL_RGB, GL_UNSIGNED_BYTE,NULL );
//rendering loop
while(1) {
//update the image frame...
glBindTexture(GL_TEXTURE_RECTANGLE_NV, tex );
glTexSubImage2D(GL_TEXTURE_RECTANGLE_NV, 0, 0,0, sourcewidth, sourceheight,
GL_RGB, GL_UNSIGNED_BYTE, sourcedata );
// retrieve features from the image.
Scene *s = ft->getScene(tex);
// scene is a STL vector of features.
cerr<<"Scene with "<< s->features.size() <<" features.\n";
//operate on the scene, s
...
// toss the scene away after we're done to avoid memory leak
delete(s);
}
|
||||||||||||
|
height of the images upon which it will operate. The constructor for the feature track object is passed in the width and height of the images upon which it will operate.
|
|
|
Returns a pointer to a newly created scene from the input texture image. When the returned scene is no longer needed it should be deleted.
|
|
|
Get the height of images upon which the feature track object is set to operate.
|
|
|
Get the width of images upon which the feature track object is set to operate.
|
|
|
OpenGL textures which hold intermediate results. Can be used to view intermediate processing. |
1.4.0