Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

featureTrack Class Reference

finds features in an image and returns unique vectors for each. More...

#include <featureTrack.h>

List of all members.

Public Member Functions

 featureTrack (int width, int height)
 height of the images upon which it will operate.
ScenegetScene (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]


Detailed Description

finds features in an image and returns unique vectors for each.

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);
   }


Constructor & Destructor Documentation

featureTrack::featureTrack int  width,
int  height
 

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.

Parameters:
width  width of the images upon which it will operate.


Member Function Documentation

Scene* featureTrack::getScene GLuint  texIn  )  [inline]
 

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.

Parameters:
texIn  OpenGL texture object name upon which it will operate.

int featureTrack::height  )  [inline]
 

Get the height of images upon which the feature track object is set to operate.

int featureTrack::width  )  [inline]
 

Get the width of images upon which the feature track object is set to operate.


Member Data Documentation

GLuint featureTrack::tex[10]
 

OpenGL textures which hold intermediate results. Can be used to view intermediate processing.


The documentation for this class was generated from the following file:
Generated on Mon Jun 27 14:54:29 2005 for OPENVIDIA by  doxygen 1.4.0