opencv: clean includes

The opencv element includes were full of duplicates and uneeded headers.
For example a few elements that stopped using gstcvopencvutils still
included that header file.
This commit is contained in:
Luis de Bethencourt 2015-12-12 20:07:32 +00:00
parent 892d8d515f
commit 447c1b1395
36 changed files with 151 additions and 220 deletions

View File

@ -45,8 +45,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstcvdilate.h" #include "gstcvdilate.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -50,8 +50,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h" #include "gstopencvutils.h"
#include "gstcvdilateerode.h" #include "gstcvdilateerode.h"

View File

@ -44,8 +44,6 @@
#ifndef __GST_CV_DILATE_ERODE_H__ #ifndef __GST_CV_DILATE_ERODE_H__
#define __GST_CV_DILATE_ERODE_H__ #define __GST_CV_DILATE_ERODE_H__
#include <gst/gst.h>
#include <gstopencvvideofilter.h> #include <gstopencvvideofilter.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View File

@ -45,9 +45,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gstcvequalizehist.h" #include "gstcvequalizehist.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -44,8 +44,6 @@
#ifndef __GST_CV_EQUALIZE_HIST_H__ #ifndef __GST_CV_EQUALIZE_HIST_H__
#define __GST_CV_EQUALIZE_HIST_H__ #define __GST_CV_EQUALIZE_HIST_H__
#include <gst/gst.h>
#include <gstopencvvideofilter.h> #include <gstopencvvideofilter.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View File

@ -45,8 +45,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstcverode.h" #include "gstcverode.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -45,9 +45,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gstcvlaplace.h" #include "gstcvlaplace.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -44,8 +44,6 @@
#ifndef __GST_CV_LAPLACE_H__ #ifndef __GST_CV_LAPLACE_H__
#define __GST_CV_LAPLACE_H__ #define __GST_CV_LAPLACE_H__
#include <gst/gst.h>
#include <gstopencvvideofilter.h> #include <gstopencvvideofilter.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View File

@ -45,8 +45,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h" #include "gstopencvutils.h"
#include "gstcvsmooth.h" #include "gstcvsmooth.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -44,8 +44,6 @@
#ifndef __GST_CV_SMOOTH_H__ #ifndef __GST_CV_SMOOTH_H__
#define __GST_CV_SMOOTH_H__ #define __GST_CV_SMOOTH_H__
#include <gst/gst.h>
#include <gstopencvvideofilter.h> #include <gstopencvvideofilter.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View File

@ -45,9 +45,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gstcvsobel.h" #include "gstcvsobel.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -44,8 +44,6 @@
#ifndef __GST_CV_SOBEL_H__ #ifndef __GST_CV_SOBEL_H__
#define __GST_CV_SOBEL_H__ #define __GST_CV_SOBEL_H__
#include <gst/gst.h>
#include <gstopencvvideofilter.h> #include <gstopencvvideofilter.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View File

@ -119,8 +119,6 @@ gst-launch-1.0 multifilesrc location=~/im3.png ! pngdec ! videoconvert ! di
#include <config.h> #include <config.h>
#endif #endif
#include <gst/gst.h>
#include <gst/video/video.h>
#include <opencv2/contrib/contrib.hpp> #include <opencv2/contrib/contrib.hpp>
#include "gstdisparity.h" #include "gstdisparity.h"

View File

@ -45,6 +45,7 @@
#define __GST_DISPARITY_H__ #define __GST_DISPARITY_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/video.h>
#include <opencv2/legacy/legacy.hpp> #include <opencv2/legacy/legacy.hpp>

View File

@ -60,9 +60,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gstedgedetect.h" #include "gstedgedetect.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -47,6 +47,7 @@
#define __GST_EDGE_DETECT_H__ #define __GST_EDGE_DETECT_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/video.h>
#include <opencv2/core/core_c.h> #include <opencv2/core/core_c.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View File

@ -61,10 +61,8 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include <vector> #include <vector>
#include "gstopencvutils.h"
#include "gstfaceblur.h" #include "gstfaceblur.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/imgproc/imgproc.hpp> #include <opencv2/imgproc/imgproc.hpp>

View File

@ -76,11 +76,8 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include <gst/video/gstvideometa.h>
#include <vector> #include <vector>
#include "gstopencvutils.h"
#include "gstfacedetect.h" #include "gstfacedetect.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -84,11 +84,9 @@
#include <config.h> #include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstgrabcut.h" #include "gstgrabcut.h"
extern "C" extern "C"
{ {
#include <gst/video/gstvideometa.h>
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>
} }
#include <opencv2/imgproc/imgproc.hpp> #include <opencv2/imgproc/imgproc.hpp>

View File

@ -62,7 +62,6 @@
/* element header */ /* element header */
#include "gsthanddetect.h" #include "gsthanddetect.h"
#include "gstopencvutils.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>
GST_DEBUG_CATEGORY_STATIC (gst_handdetect_debug); GST_DEBUG_CATEGORY_STATIC (gst_handdetect_debug);

View File

@ -45,10 +45,6 @@
#ifndef __GST_HANDDETECT_H__ #ifndef __GST_HANDDETECT_H__
#define __GST_HANDDETECT_H__ #define __GST_HANDDETECT_H__
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/navigation.h>
#include <cv.h> #include <cv.h>
#include "gstopencvvideofilter.h" #include "gstopencvvideofilter.h"

View File

@ -59,15 +59,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <limits.h>
#include <glib.h>
#include "gstmotioncells.h" #include "gstmotioncells.h"
#include <gst/video/video.h>
GST_DEBUG_CATEGORY_STATIC (gst_motion_cells_debug); GST_DEBUG_CATEGORY_STATIC (gst_motion_cells_debug);
#define GST_CAT_DEFAULT gst_motion_cells_debug #define GST_CAT_DEFAULT gst_motion_cells_debug

View File

@ -46,6 +46,7 @@
#define __GST_MOTIONCELLS_H__ #define __GST_MOTIONCELLS_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/video.h>
#include <opencv2/core/core_c.h> #include <opencv2/core/core_c.h>
#include "motioncells_wrapper.h" #include "motioncells_wrapper.h"

View File

@ -47,8 +47,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvvideofilter.h" #include "gstopencvvideofilter.h"
#include "gstopencvutils.h" #include "gstopencvutils.h"

View File

@ -60,9 +60,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gstpyramidsegment.h" #include "gstpyramidsegment.h"
#define BLOCK_SIZE 1000 #define BLOCK_SIZE 1000

View File

@ -47,6 +47,7 @@
#define __GST_PYRAMID_SEGMENT_H__ #define __GST_PYRAMID_SEGMENT_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/video.h>
#include <opencv2/core/version.hpp> #include <opencv2/core/version.hpp>
#if CV_MAJOR_VERSION * 100 + CV_MINOR_VERSION >= 204 #if CV_MAJOR_VERSION * 100 + CV_MINOR_VERSION >= 204

View File

@ -62,7 +62,6 @@
#include <config.h> #include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstretinex.h" #include "gstretinex.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/imgproc/imgproc.hpp> #include <opencv2/imgproc/imgproc.hpp>

View File

@ -44,9 +44,6 @@
#ifndef __GST_RETINEX_H__ #ifndef __GST_RETINEX_H__
#define __GST_RETINEX_H__ #define __GST_RETINEX_H__
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include <opencv2/core/core_c.h> #include <opencv2/core/core_c.h>
#include <gstopencvvideofilter.h> #include <gstopencvvideofilter.h>

View File

@ -90,8 +90,6 @@
#include <config.h> #include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstsegmentation.h" #include "gstsegmentation.h"
#include <opencv2/video/background_segm.hpp> #include <opencv2/video/background_segm.hpp>
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -58,9 +58,6 @@
#include <config.h> #include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gstskindetect.h" #include "gstskindetect.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/legacy/compat.hpp> #include <opencv2/legacy/compat.hpp>

View File

@ -46,8 +46,6 @@
#ifndef __GST_SKIN_DETECT_H__ #ifndef __GST_SKIN_DETECT_H__
#define __GST_SKIN_DETECT_H__ #define __GST_SKIN_DETECT_H__
#include <gst/gst.h>
#include <gstopencvvideofilter.h> #include <gstopencvvideofilter.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View File

@ -61,10 +61,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "../../gst-libs/gst/gst-i18n-plugin.h" #include "../../gst-libs/gst/gst-i18n-plugin.h"
#include "gstopencvutils.h"
#include "gsttemplatematch.h" #include "gsttemplatematch.h"
#include <opencv2/imgproc/imgproc_c.h> #include <opencv2/imgproc/imgproc_c.h>

View File

@ -47,6 +47,7 @@
#define __GST_TEMPLATE_MATCH_H__ #define __GST_TEMPLATE_MATCH_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/video.h>
#ifdef HAVE_HIGHGUI_H #ifdef HAVE_HIGHGUI_H
#include <highgui.h> // includes highGUI definitions #include <highgui.h> // includes highGUI definitions

View File

@ -60,9 +60,6 @@
# include <config.h> # include <config.h>
#endif #endif
#include <gst/gst.h>
#include "gstopencvutils.h"
#include "gsttextoverlay.h" #include "gsttextoverlay.h"
GST_DEBUG_CATEGORY_STATIC (gst_opencv_text_overlay_debug); GST_DEBUG_CATEGORY_STATIC (gst_opencv_text_overlay_debug);

View File

@ -47,7 +47,7 @@
#define __GST_OPENCV_TEXT_OVERLAY_H__ #define __GST_OPENCV_TEXT_OVERLAY_H__
#include <gst/gst.h> #include <gst/gst.h>
#include "gstopencvutils.h" #include <gst/video/video.h>
#include <opencv2/core/core_c.h> #include <opencv2/core/core_c.h>
G_BEGIN_DECLS G_BEGIN_DECLS