aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_motempl.h
diff options
context:
space:
mode:
authorAntoine Villeret <avilleret@users.sourceforge.net>2014-07-10 14:39:22 +0000
committerAntoine Villeret <avilleret@users.sourceforge.net>2014-07-10 14:39:22 +0000
commitba994f4404b6eadcab4e0ead46ef4d3ffeceb024 (patch)
tree099dcc6caf1391cf23947317287623c389b9982d /pix_opencv_motempl.h
parente44f63152eb063b5e2e1e05e332439d7c4b7f828 (diff)
lots of changes !
1. switch to a new build system based on automake (because we need to check for some lib on ./configure before make) 2. sort files in different directory 3. add some new features (some of them need OpenCV >= 2.4.5) svn path=/trunk/externals/pix_opencv/; revision=17324
Diffstat (limited to 'pix_opencv_motempl.h')
-rw-r--r--pix_opencv_motempl.h132
1 files changed, 0 insertions, 132 deletions
diff --git a/pix_opencv_motempl.h b/pix_opencv_motempl.h
deleted file mode 100644
index 187cd22..0000000
--- a/pix_opencv_motempl.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/*-----------------------------------------------------------------
-LOG
- GEM - Graphics Environment for Multimedia
-
- Motion detection based on motion history
-
- Copyright (c) 1997-1999 Mark Danks. mark@danks.org
- Copyright (c) Günther Geiger. geiger@epy.co.at
- Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute. IEM. zmoelnig@iem.kug.ac.at
- Copyright (c) 2002 James Tittle & Chris Clepper
- For information on usage and redistribution, and for a DISCLAIMER OF ALL
- WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
-
------------------------------------------------------------------*/
-
-#ifndef INCLUDE_PIX_OPENCV_MOTEMPL_H_
-#define INCLUDE_PIX_OPENCV_MOTEMPL_H_
-
-#ifndef _EiC
-#include "opencv2/legacy/legacy.hpp"
-#include "opencv2/legacy/compat.hpp"
-#include "opencv2/video/tracking.hpp"
-
-#include <time.h>
-#include <math.h>
-#include <ctype.h>
-#endif
-#include <stdio.h>
-
-#include "Base/GemPixObj.h"
-
-
-/*-----------------------------------------------------------------
--------------------------------------------------------------------
-CLASS
- pix_opencv_motempl
-
- Motion detection based on motion history
-
-KEYWORDS
- pix
-
-DESCRIPTION
-
------------------------------------------------------------------*/
-class GEM_EXTERN pix_opencv_motempl : public GemPixObj
-{
- CPPEXTERN_HEADER(pix_opencv_motempl, GemPixObj)
-
- public:
-
- //////////
- // 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);
-
- //////////
- // 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
- 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 *rgb, *motion, *rgba, *grey;
-
- // 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;
- CvFont font;
- t_atom rlist[6];
-
-};
-
-#endif // for header file