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>
#endif
#include <gst/gst.h>
#include "gstcvdilate.h"
#include <opencv2/imgproc/imgproc_c.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -45,10 +45,6 @@
#ifndef __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 "gstopencvvideofilter.h"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -44,9 +44,6 @@
#ifndef __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 <gstopencvvideofilter.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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