#include <math.h>
#include <gst/gst.h>
#include "MotionCells.h"
+#include <opencv2/imgproc/imgproc_c.h>
MotionCells::MotionCells ()
{
#ifndef MOTIONCELLS_H_
#define MOTIONCELLS_H_
-#include <cv.h> // includes OpenCV definitions
+#include <opencv2/core/core_c.h>
#ifdef HAVE_HIGHGUI_H
#include <highgui.h> // includes highGUI definitions
#endif
#include <gst/gst.h>
#include "gstcvdilate.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_cv_dilate_debug);
#define GST_CAT_DEFAULT gst_cv_dilate_debug
#define __GST_CV_DILATE_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include "gstcvdilateerode.h"
G_BEGIN_DECLS
#define __GST_CV_DILATE_ERODE_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include <gstopencvvideofilter.h>
G_BEGIN_DECLS
#include "gstopencvutils.h"
#include "gstcvequalizehist.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_cv_equalize_hist_debug);
#define GST_CAT_DEFAULT gst_cv_equalize_hist_debug
#define __GST_CV_EQUALIZE_HIST_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include <gstopencvvideofilter.h>
G_BEGIN_DECLS
#include <gst/gst.h>
#include "gstcverode.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_cv_erode_debug);
#define GST_CAT_DEFAULT gst_cv_erode_debug
#define __GST_CV_ERODE_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include "gstcvdilateerode.h"
G_BEGIN_DECLS
#include "gstopencvutils.h"
#include "gstcvlaplace.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_cv_laplace_debug);
#define GST_CAT_DEFAULT gst_cv_laplace_debug
#define __GST_CV_LAPLACE_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include <gstopencvvideofilter.h>
G_BEGIN_DECLS
#include "gstopencvutils.h"
#include "gstcvsmooth.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_cv_smooth_debug);
#define GST_CAT_DEFAULT gst_cv_smooth_debug
#define __GST_CV_SMOOTH_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include <gstopencvvideofilter.h>
G_BEGIN_DECLS
#include "gstopencvutils.h"
#include "gstcvsobel.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_cv_sobel_debug);
#define GST_CAT_DEFAULT gst_cv_sobel_debug
#define __GST_CV_SOBEL_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include <gstopencvvideofilter.h>
G_BEGIN_DECLS
#define __GST_DISPARITY_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include <opencv2/legacy/legacy.hpp>
G_BEGIN_DECLS
#include "gstopencvutils.h"
#include "gstedgedetect.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_edge_detect_debug);
#define GST_CAT_DEFAULT gst_edge_detect_debug
#define __GST_EDGE_DETECT_H__
#include <gst/gst.h>
-#include <cv.h>
+#include <opencv2/core/core_c.h>
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */
#include "gstopencvutils.h"
#include "gstfaceblur.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_face_blur_debug);
#define GST_CAT_DEFAULT gst_face_blur_debug
#define __GST_FACE_BLUR_H__
#include <gst/gst.h>
-#include <cv.h>
+#include <opencv2/core/version.hpp>
#include "gstopencvvideofilter.h"
#include "gstopencvutils.h"
#include "gstfacedetect.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_face_detect_debug);
#define GST_CAT_DEFAULT gst_face_detect_debug
#define __GST_FACE_DETECT_H__
#include <gst/gst.h>
-#include <cv.h>
+#include <opencv2/core/version.hpp>
#include "gstopencvvideofilter.h"
#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
extern "C"
{
#include <gst/video/gstvideometa.h>
+#include <opencv2/imgproc/imgproc_c.h>
}
+#include <opencv2/imgproc/imgproc.hpp>
GST_DEBUG_CATEGORY_STATIC (gst_grabcut_debug);
#define GST_CAT_DEFAULT gst_grabcut_debug
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
+#include <opencv2/core/core_c.h>
+
-#include <cv.h>
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */
/* element header */
#include "gsthanddetect.h"
#include "gstopencvutils.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_handdetect_debug);
#define GST_CAT_DEFAULT gst_handdetect_debug
#include "gstopencvvideofilter.h"
/* opencv */
-#include <cv.h>
-#include <cxcore.h>
-#include <highgui.h>
+#include <opencv2/core/version.hpp>
+#ifdef HAVE_HIGHGUI_H
+#include <highgui.h> // includes highGUI definitions
+#endif
+#ifdef HAVE_OPENCV2_HIGHGUI_HIGHGUI_C_H
+#include <opencv2/highgui/highgui_c.h> // includes highGUI definitions
+#endif
#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
#include <opencv2/objdetect/objdetect.hpp>
#endif
#define __GST_MOTIONCELLS_H__
#include <gst/gst.h>
-#include <cv.h>
+#include <opencv2/core/core_c.h>
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */
#endif
#include "gstopencvutils.h"
+#include <opencv2/core/types_c.h>
static gboolean
gst_opencv_get_ipl_depth_and_channels (GstStructure * structure,
#include <gst/gst.h>
#include <gst/video/video.h>
-#include <cv.h>
+
gboolean
gst_opencv_get_ipldepth (gint depth, gint bpp, gint * ipldepth);
#include <gst/gst.h>
#include <gst/video/gstvideofilter.h>
-#include <cv.h>
+#include <opencv2/core/core_c.h>
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */
#define __GST_PYRAMID_SEGMENT_H__
#include <gst/gst.h>
-#include <cv.h>
+#include <opencv2/core/version.hpp>
#if CV_MAJOR_VERSION * 100 + CV_MINOR_VERSION >= 204
#include <opencv2/legacy/legacy.hpp>
#include <gst/gst.h>
#include "gstretinex.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_retinex_debug);
#define GST_CAT_DEFAULT gst_retinex_debug
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
+#include <opencv2/core/core_c.h>
-#include <cv.h>
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */
#include "gstsegmentation.h"
#include <opencv2/video/background_segm.hpp>
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_segmentation_debug);
#define GST_CAT_DEFAULT gst_segmentation_debug
#include <gst/gst.h>
#include <gst/video/gstvideofilter.h>
+#include <opencv2/core/core_c.h>
+
-#include <cv.h>
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */
#include "gstopencvutils.h"
#include "gstskindetect.h"
+#include <opencv2/imgproc/imgproc_c.h>
+#include <opencv2/legacy/compat.hpp>
GST_DEBUG_CATEGORY_STATIC (gst_skin_detect_debug);
#define GST_CAT_DEFAULT gst_skin_detect_debug
#define __GST_SKIN_DETECT_H__
#include <gst/gst.h>
-#include <cv.h>
+
#include <gstopencvvideofilter.h>
G_BEGIN_DECLS
#include "../../gst-libs/gst/gst-i18n-plugin.h"
#include "gstopencvutils.h"
#include "gsttemplatematch.h"
+#include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_template_match_debug);
#define GST_CAT_DEFAULT gst_template_match_debug
#define __GST_TEMPLATE_MATCH_H__
#include <gst/gst.h>
-#include <cv.h>
+
#ifdef HAVE_HIGHGUI_H
#include <highgui.h> // includes highGUI definitions
#endif
#include <gst/gst.h>
#include "gstopencvutils.h"
+#include <opencv2/core/core_c.h>
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */