#include "OmniCallback.hh"
#include "OmniConfig.hh"
#include <vector>
Include dependency graph for OmniCallback.cpp:
Go to the source code of this file.
Namespaces | |
namespace | std |
Functions | |
static void | os_store_and_replace (IplImage *image, int image_id) |
void | omnistuff_create_image_context (char *window_id, void *callback_data) |
Create image context. | |
void | omnistuff_image_do_action (IplImage *image, int track_id, char *window_id, void *callback_data) |
Show the images. | |
void | omnistuff_destroy_image_context (char *window_id, void *callback_data) |
Destroy the images' windows. | |
Variables | |
static vector< IplImage * > * | displayed_images = NULL |
void omnistuff_create_image_context | ( | char * | window_id, | |
void * | callback_data | |||
) |
I.e. create the opencv windows that will display our images. The window, as from OpenCv, is identified by a char* string we don't have specific template needs now. If we'll have to display other image formats, just change/update the functions below here
window_id | Window id. | |
callback_data | User data. |
Definition at line 66 of file OmniCallback.cpp.
References DEBUG_PRINT.
Referenced by CvFaceTrack< ConverterT, AngleT >::CvFaceTrack(), OmniAlgoSimpleDetection< ConverterT, AngleT, ImageT, PointT >::OmniAlgoSimpleDetection(), OmniAlgoVRFilterDetection< ConverterT, AngleT, ImageT, PointT >::OmniAlgoVRFilterDetection(), OmniMotionDetecting< ConverterT, AngleT >::OmniMotionDetecting(), and OmniTracking< ConverterT, AngleT, ImageT, PointT >::OmniTracking().
Here is the caller graph for this function:
void omnistuff_destroy_image_context | ( | char * | window_id, | |
void * | callback_data | |||
) |
window_id | Window id. | |
callback_data | User data. |
Definition at line 85 of file OmniCallback.cpp.
References DEBUG_PRINT.
Referenced by CvFaceTrack< ConverterT, AngleT >::CvFaceTrack(), OmniAlgoSimpleDetection< ConverterT, AngleT, ImageT, PointT >::OmniAlgoSimpleDetection(), OmniAlgoVRFilterDetection< ConverterT, AngleT, ImageT, PointT >::OmniAlgoVRFilterDetection(), OmniMotionDetecting< ConverterT, AngleT >::OmniMotionDetecting(), and OmniTracking< ConverterT, AngleT, ImageT, PointT >::OmniTracking().
Here is the caller graph for this function:
void omnistuff_image_do_action | ( | IplImage * | image, | |
int | track_id, | |||
char * | window_id, | |||
void * | callback_data | |||
) |
image | E.g. tracked face | |
track_id | Optional id (int) of the tracked face | |
window_id | Optional id (char*) of the tracked face | |
callback_data | Usually the title of the opencv window |
Definition at line 72 of file OmniCallback.cpp.
References CV_WAIT_KEY, os_store_and_replace(), and WAIT_KEY_VALUE.
Referenced by CvFaceTrack< ConverterT, AngleT >::CvFaceTrack(), OmniAlgoSimpleDetection< ConverterT, AngleT, ImageT, PointT >::OmniAlgoSimpleDetection(), OmniAlgoVRFilterDetection< ConverterT, AngleT, ImageT, PointT >::OmniAlgoVRFilterDetection(), OmniMotionDetecting< ConverterT, AngleT >::OmniMotionDetecting(), and OmniTracking< ConverterT, AngleT, ImageT, PointT >::OmniTracking().
Here is the call graph for this function:
Here is the caller graph for this function:
static void os_store_and_replace | ( | IplImage * | image, | |
int | image_id | |||
) | [static] |
Definition at line 40 of file OmniCallback.cpp.
References DEBUG_PRINT, displayed_images, and NULL.
Referenced by omnistuff_image_do_action().
Here is the caller graph for this function:
vector<IplImage*>* displayed_images = NULL [static] |