aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_motempl.h
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2009-07-02 15:55:46 +0000
committerN.N. <sevyves@users.sourceforge.net>2009-07-02 15:55:46 +0000
commit6fd1ac37999d856979dad2b9a863b69f42689646 (patch)
treef5cf8bcdcc6f20acdaa2689e727efe5f96894128 /pix_opencv_motempl.h
parent11ec35baaa2ee0d44f88c5ecab2a3ea71d3c4105 (diff)
update little details
svn path=/trunk/externals/pix_opencv/; revision=11842
Diffstat (limited to 'pix_opencv_motempl.h')
-rw-r--r--pix_opencv_motempl.h137
1 files changed, 69 insertions, 68 deletions
diff --git a/pix_opencv_motempl.h b/pix_opencv_motempl.h
index c4783d8..e50d635 100644
--- a/pix_opencv_motempl.h
+++ b/pix_opencv_motempl.h
@@ -46,80 +46,81 @@ class GEM_EXTERN pix_opencv_motempl : public GemPixObj
public:
- //////////
- // Constructor
- pix_opencv_motempl();
+ //////////
+ // Constructor
+ pix_opencv_motempl();
protected:
- //////////
- // Destructor
- virtual ~pix_opencv_motempl();
-
- //////////
- // Do the processing
- virtual void processRGBAImage(imageStruct &image);
- virtual void processRGBImage(imageStruct &image);
- virtual void processYUVImage(imageStruct &image);
- virtual void processGrayImage(imageStruct &image);
+ //////////
+ // Destructor
+ virtual ~pix_opencv_motempl();
+
+ //////////
+ // Do the processing
+ virtual void processRGBAImage(imageStruct &image);
+ virtual void processRGBImage(imageStruct &image);
+ virtual void processYUVImage(imageStruct &image);
+ virtual void processGrayImage(imageStruct &image);
- //////////
- // Set the new edge threshold
- void floatThreshMess(float thresh);
- void floatMhiDuration(float duration);
- void floatmin_time_delta(float min_time_delta);
- void floatmax_time_delta(float max_time_delta);
- void floatframe_buffer_num(float frame_buffer_num);
- void floatmax_size(float max_size);
- void floatmin_size(float min_size);
-
- // to detect changes in the image size
- int comp_xsize;
- int comp_ysize;
+ //////////
+ // Set the new edge threshold
+ void floatThreshMess(float thresh);
+ void floatMhiDuration(float duration);
+ void floatmin_time_delta(float min_time_delta);
+ void floatmax_time_delta(float max_time_delta);
+ void floatframe_buffer_num(float frame_buffer_num);
+ void floatmax_size(float max_size);
+ void floatmin_size(float min_size);
+ void apertureMess(float aperture);
+
+ // to detect changes in the image size
+ int comp_xsize;
+ int comp_ysize;
- // Some varibales to control mophology mhi_duration
- int mhi_duration;
- int diff_threshold;
- int mask_size;
- int last;
+ // Some varibales to control mophology mhi_duration
+ double mhi_duration;
+ int diff_threshold;
+ int mask_size;
+ int last;
+ int aperture;
+
+ // various tracking parameters (in seconds)
+ double max_time_delta;
+ double min_time_delta;
+ // number of cyclic frame buffer used for motion detection
+ // (should, probably, depend on FPS)
+ int frame_buffer_num;
+
+ int max_size;
+ int min_size;
+
+ private:
+
+ //////////
+ // Static member functions
+ static void thresholdMessCallback(void *data, t_floatarg pos);
+ static void mhi_durationMessCallback(void *data, t_floatarg mhi_duration);
+ static void max_time_deltaMessCallback(void *data, t_floatarg max_time_delta);
+ static void min_time_deltaMessCallback(void *data, t_floatarg min_time_delta);
+ static void frame_buffer_numMessCallback(void *data, t_floatarg frame_buffer_num);
+ static void min_sizeMessCallback(void *data, t_floatarg min_size);
+ static void max_sizeMessCallback(void *data, t_floatarg max_size);
+ static void apertureMessCallback(void *data, t_floatarg aperture);
+
+ // The output and temporary images
+ IplImage *img, *motion, *rgba, *alpha;
-
- // various tracking parameters (in seconds)
- double max_time_delta;
- double min_time_delta;
- // number of cyclic frame buffer used for motion detection
- // (should, probably, depend on FPS)
- int frame_buffer_num;
-
- int max_size;
- int min_size;
-
-
- private:
-
- //////////
- // Static member functions
- static void thresholdMessCallback(void *data, t_floatarg pos);
- static void mhi_durationMessCallback(void *data, t_floatarg mhi_duration);
- static void max_time_deltaMessCallback(void *data, t_floatarg max_time_delta);
- static void min_time_deltaMessCallback(void *data, t_floatarg min_time_delta);
- static void frame_buffer_numMessCallback(void *data, t_floatarg frame_buffer_num);
- static void min_sizeMessCallback(void *data, t_floatarg min_size);
- static void max_sizeMessCallback(void *data, t_floatarg max_size);
-
- // The output and temporary images
- IplImage *img, *motion, *rgba, *alpha;
-
- // ring image buffer
- IplImage **buf;
-
- // temporary images
- IplImage *mhi; // MHI
- IplImage *orient; // orientation
- IplImage *mask; // valid orientation mask
- IplImage *segmask; // motion segmentation map
- CvMemStorage* storage; // temporary storage
- t_outlet *m_dataout;
+ // ring image buffer
+ IplImage **buf;
+
+ // temporary images
+ IplImage *mhi; // MHI
+ IplImage *orient; // orientation
+ IplImage *mask; // valid orientation mask
+ IplImage *segmask; // motion segmentation map
+ CvMemStorage* storage; // temporary storage
+ t_outlet *m_dataout;
};
#endif // for header file