Merge branch 'perf-optimization'

This commit is contained in:
Kenneth Keiter 2012-12-13 14:19:48 -08:00
commit 16583ca5b7
3 changed files with 3 additions and 4 deletions

View file

@ -944,7 +944,6 @@ void motionFunc( int x, int y)
void *poll_marker_capture(void *threadarg){
while(1){
marker_capturer.tick();
usleep(1000 * MARKER_CAPTURE_INTERVAL);
}
}

View file

@ -50,7 +50,7 @@ void MarkerCapture::acquire_color(CvScalar color){
/* Fetch a frame (if available) and process it, calling appropriate
callbacks when data becomes available. */
void MarkerCapture::tick(){
IplImage *thresh_frame;
IplImage *thresh_frame = NULL;
CBlobResult blobs;
// Acquire the lock, update the current frame.

View file

@ -50,12 +50,12 @@ public:
MarkerCapture(int source_index);
~MarkerCapture();
int init_capture();
void tick();
void end_capture();
void tick();
void acquire_color(CvScalar color);
void frame_updated(void (*callback)(MarkerCapture* inst, IplImage* image, IplImage* thresh_image));
void position_updated(void (*callback)(MarkerCapture* inst, MarkerPositionEstimate position));
void glDrawIplImage(IplImage *img, int x, int, GLfloat xZoom, GLfloat yZoom);