Main module headers are moved 1 level up
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Wed, 13 Mar 2013 12:22:44 +0000 (16:22 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Wed, 13 Mar 2013 13:26:56 +0000 (17:26 +0400)
e.g. <opencv2/core/core.hpp> become <opencv2/core.hpp>

Also renamed <opencv2/core/opengl_interop.hpp> to <opencv2/core/opengl.hpp>

266 files changed:
apps/CMakeLists.txt
apps/haartraining/_cvcommon.h
apps/haartraining/performance.cpp
apps/sft/dataset.cpp
apps/sft/include/sft/common.hpp
apps/traincascade/HOGfeatures.cpp
apps/traincascade/boost.cpp
apps/traincascade/cascadeclassifier.cpp
apps/traincascade/features.cpp
apps/traincascade/haarfeatures.cpp
apps/traincascade/imagestorage.cpp
apps/traincascade/lbpfeatures.cpp
apps/traincascade/traincascade.cpp
cmake/OpenCVModule.cmake
doc/check_docs.py
doc/tutorials/core/interoperability_with_OpenCV_1/interoperability_with_OpenCV_1.rst
doc/tutorials/features2d/feature_description/feature_description.rst
doc/tutorials/features2d/feature_detection/feature_detection.rst
doc/tutorials/features2d/feature_flann_matcher/feature_flann_matcher.rst
doc/tutorials/features2d/feature_homography/feature_homography.rst
doc/tutorials/features2d/trackingmotion/corner_subpixeles/corner_subpixeles.rst
doc/tutorials/features2d/trackingmotion/good_features_to_track/good_features_to_track.rst
doc/tutorials/features2d/trackingmotion/harris_detector/harris_detector.rst
doc/tutorials/gpu/gpu-basics-similarity/gpu-basics-similarity.rst
doc/tutorials/imgproc/erosion_dilatation/erosion_dilatation.rst
doc/tutorials/imgproc/gausian_median_blur_bilateral_filter/gausian_median_blur_bilateral_filter.rst
doc/tutorials/imgproc/histograms/back_projection/back_projection.rst
doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.rst
doc/tutorials/imgproc/histograms/histogram_comparison/histogram_comparison.rst
doc/tutorials/imgproc/histograms/histogram_equalization/histogram_equalization.rst
doc/tutorials/imgproc/histograms/template_matching/template_matching.rst
doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.rst
doc/tutorials/imgproc/imgtrans/copyMakeBorder/copyMakeBorder.rst
doc/tutorials/imgproc/imgtrans/filter_2d/filter_2d.rst
doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.rst
doc/tutorials/imgproc/imgtrans/hough_lines/hough_lines.rst
doc/tutorials/imgproc/imgtrans/laplace_operator/laplace_operator.rst
doc/tutorials/imgproc/imgtrans/remap/remap.rst
doc/tutorials/imgproc/imgtrans/sobel_derivatives/sobel_derivatives.rst
doc/tutorials/imgproc/imgtrans/warp_affine/warp_affine.rst
doc/tutorials/imgproc/opening_closing_hats/opening_closing_hats.rst
doc/tutorials/imgproc/pyramids/pyramids.rst
doc/tutorials/imgproc/shapedescriptors/bounding_rects_circles/bounding_rects_circles.rst
doc/tutorials/imgproc/shapedescriptors/bounding_rotated_ellipses/bounding_rotated_ellipses.rst
doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.rst
doc/tutorials/imgproc/shapedescriptors/hull/hull.rst
doc/tutorials/imgproc/shapedescriptors/moments/moments.rst
doc/tutorials/imgproc/shapedescriptors/point_polygon_test/point_polygon_test.rst
doc/tutorials/imgproc/threshold/threshold.rst
doc/tutorials/objdetect/cascade_classifier/cascade_classifier.rst
include/opencv/cv.h
include/opencv/cvaux.h
include/opencv/cxcore.h
include/opencv/highgui.h
include/opencv/ml.h
include/opencv2/opencv.hpp
modules/CMakeLists.txt
modules/androidcamera/include/camera_activity.hpp
modules/calib3d/include/opencv2/calib3d.hpp [moved from modules/calib3d/include/opencv2/calib3d/calib3d.hpp with 98% similarity]
modules/calib3d/perf/perf_precomp.hpp
modules/calib3d/src/calibinit.cpp
modules/calib3d/src/checkchessboard.cpp
modules/calib3d/src/circlesgrid.cpp
modules/calib3d/src/precomp.hpp
modules/calib3d/test/test_chessboardgenerator.hpp
modules/calib3d/test/test_precomp.hpp
modules/contrib/doc/facerec/colormaps.rst
modules/contrib/doc/facerec/src/facerec_demo.cpp
modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp
modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp
modules/contrib/doc/facerec/src/facerec_lbph.cpp
modules/contrib/doc/facerec/src/facerec_save_load.cpp
modules/contrib/doc/facerec/src/facerec_video.cpp
modules/contrib/include/opencv2/contrib.hpp [moved from modules/contrib/include/opencv2/contrib/contrib.hpp with 99% similarity]
modules/contrib/include/opencv2/contrib/detection_based_tracker.hpp
modules/contrib/include/opencv2/contrib/hybridtracker.hpp
modules/contrib/include/opencv2/contrib/openfabmap.hpp
modules/contrib/include/opencv2/contrib/retina.hpp
modules/contrib/src/ba.cpp
modules/contrib/src/chamfermatching.cpp
modules/contrib/src/featuretracker.cpp
modules/contrib/src/gencolors.cpp
modules/contrib/src/inputoutput.cpp
modules/contrib/src/precomp.hpp
modules/contrib/src/rgbdodometry.cpp
modules/contrib/test/test_precomp.hpp
modules/core/doc/basic_structures.rst
modules/core/doc/intro.rst
modules/core/include/opencv2/core.hpp [moved from modules/core/include/opencv2/core/core.hpp with 99% similarity]
modules/core/include/opencv2/core/eigen.hpp
modules/core/include/opencv2/core/gpumat.hpp
modules/core/include/opencv2/core/opengl.hpp [moved from modules/core/include/opencv2/core/opengl_interop.hpp with 99% similarity]
modules/core/perf/perf_precomp.hpp
modules/core/src/gl_core_3_1.cpp
modules/core/src/matrix.cpp
modules/core/src/opengl_interop.cpp
modules/core/src/precomp.hpp
modules/core/test/test_precomp.hpp
modules/features2d/include/opencv2/features2d.hpp [moved from modules/features2d/include/opencv2/features2d/features2d.hpp with 99% similarity]
modules/features2d/perf/perf_precomp.hpp
modules/features2d/src/blobdetector.cpp
modules/features2d/src/brisk.cpp
modules/features2d/src/precomp.hpp
modules/features2d/test/test_descriptors_regression.cpp
modules/features2d/test/test_detectors_regression.cpp
modules/features2d/test/test_keypoints.cpp
modules/features2d/test/test_matchers_algorithmic.cpp
modules/features2d/test/test_orb.cpp
modules/features2d/test/test_precomp.hpp
modules/features2d/test/test_rotation_and_scale_invariance.cpp
modules/flann/include/opencv2/flann.hpp [moved from modules/flann/include/opencv2/flann/flann.hpp with 99% similarity]
modules/flann/include/opencv2/flann/miniflann.hpp
modules/flann/include/opencv2/flann/timer.h
modules/flann/src/flann.cpp
modules/flann/src/precomp.hpp
modules/flann/test/test_precomp.hpp
modules/gpu/CMakeLists.txt
modules/gpu/app/nv_perf_test/main.cpp
modules/gpu/include/opencv2/gpu.hpp [moved from modules/gpu/include/opencv2/gpu/gpu.hpp with 99% similarity]
modules/gpu/include/opencv2/gpu/stream_accessor.hpp
modules/gpu/perf/perf_precomp.hpp
modules/gpu/perf/utility.hpp
modules/gpu/perf4au/main.cpp
modules/gpu/src/precomp.hpp
modules/gpu/test/interpolation.hpp
modules/gpu/test/nvidia/NCVTestSourceProvider.hpp
modules/gpu/test/test_precomp.hpp
modules/gpu/test/utility.hpp
modules/highgui/CMakeLists.txt
modules/highgui/include/opencv2/highgui.hpp [moved from modules/highgui/include/opencv2/highgui/highgui.hpp with 99% similarity]
modules/highgui/include/opencv2/highgui/cap_ios.h
modules/highgui/perf/perf_precomp.hpp
modules/highgui/src/cap_android.cpp
modules/highgui/src/cap_avfoundation.mm
modules/highgui/src/cap_ffmpeg_impl.hpp
modules/highgui/src/cap_openni.cpp
modules/highgui/src/cap_qtkit.mm
modules/highgui/src/grfmt_webp.cpp
modules/highgui/src/precomp.hpp
modules/highgui/src/window.cpp
modules/highgui/src/window_w32.cpp
modules/highgui/test/test_drawing.cpp
modules/highgui/test/test_ffmpeg.cpp
modules/highgui/test/test_fourcc.cpp
modules/highgui/test/test_framecount.cpp
modules/highgui/test/test_grfmt.cpp
modules/highgui/test/test_gui.cpp
modules/highgui/test/test_positioning.cpp
modules/highgui/test/test_precomp.hpp
modules/highgui/test/test_video_io.cpp
modules/highgui/test/test_video_pos.cpp
modules/imgproc/include/opencv2/imgproc.hpp [moved from modules/imgproc/include/opencv2/imgproc/imgproc.hpp with 99% similarity]
modules/imgproc/perf/perf_precomp.hpp
modules/imgproc/src/precomp.hpp
modules/imgproc/test/test_precomp.hpp
modules/java/generator/config/core.filelist
modules/java/generator/gen_java.py
modules/java/generator/src/cpp/Mat.cpp
modules/java/generator/src/cpp/VideoCapture.cpp
modules/java/generator/src/cpp/converters.h
modules/java/generator/src/cpp/core_manual.hpp
modules/java/generator/src/cpp/features2d_manual.hpp
modules/java/generator/src/cpp/jni_part.cpp
modules/java/generator/src/cpp/utils.cpp
modules/legacy/include/opencv2/legacy.hpp [moved from modules/legacy/include/opencv2/legacy/legacy.hpp with 99% similarity]
modules/legacy/src/oneway.cpp
modules/legacy/src/precomp.hpp
modules/legacy/test/test_precomp.hpp
modules/ml/include/opencv2/ml.hpp [moved from modules/ml/include/opencv2/ml/ml.hpp with 99% similarity]
modules/ml/src/precomp.hpp
modules/ml/test/test_precomp.hpp
modules/nonfree/include/opencv2/nonfree.hpp [moved from modules/nonfree/include/opencv2/nonfree/nonfree.hpp with 100% similarity]
modules/nonfree/include/opencv2/nonfree/features2d.hpp
modules/nonfree/perf/perf_precomp.hpp
modules/nonfree/src/precomp.hpp
modules/nonfree/test/test_features2d.cpp
modules/nonfree/test/test_keypoints.cpp
modules/nonfree/test/test_precomp.hpp
modules/nonfree/test/test_rotation_and_scale_invariance.cpp
modules/objdetect/include/opencv2/objdetect.hpp [moved from modules/objdetect/include/opencv2/objdetect/objdetect.hpp with 99% similarity]
modules/objdetect/perf/perf_cascadeclassifier.cpp
modules/objdetect/perf/perf_precomp.hpp
modules/objdetect/src/datamatrix.cpp
modules/objdetect/src/precomp.hpp
modules/objdetect/test/test_cascadeandhog.cpp
modules/objdetect/test/test_precomp.hpp
modules/ocl/include/opencv2/ocl.hpp [moved from modules/ocl/include/opencv2/ocl/ocl.hpp with 99% similarity]
modules/ocl/perf/perf_haar.cpp
modules/ocl/perf/perf_pyrup.cpp
modules/ocl/perf/precomp.hpp
modules/ocl/src/precomp.hpp
modules/ocl/src/surf.cpp
modules/ocl/test/precomp.hpp
modules/ocl/test/test_haar.cpp
modules/ocl/test/test_hog.cpp
modules/ocl/test/test_pyrup.cpp
modules/photo/include/opencv2/photo.hpp [moved from modules/photo/include/opencv2/photo/photo.hpp with 98% similarity]
modules/photo/perf/perf_precomp.hpp
modules/photo/src/denoising.cpp
modules/photo/src/fast_nlmeans_denoising_invoker.hpp
modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp
modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp
modules/photo/src/precomp.hpp
modules/photo/test/test_denoising.cpp
modules/photo/test/test_precomp.hpp
modules/python/CMakeLists.txt
modules/python/src2/cv2.cpp
modules/python/src2/cv2.cv.hpp
modules/python/src2/hdr_parser.py
modules/softcascade/include/opencv2/softcascade.hpp [moved from modules/softcascade/include/opencv2/softcascade/softcascade.hpp with 99% similarity]
modules/softcascade/perf/perf_precomp.hpp
modules/softcascade/perf/perf_softcascade.cpp
modules/softcascade/src/precomp.hpp
modules/softcascade/test/test_precomp.hpp
modules/stitching/include/opencv2/stitching.hpp [moved from modules/stitching/include/opencv2/stitching/stitcher.hpp with 98% similarity]
modules/stitching/include/opencv2/stitching/detail/autocalib.hpp
modules/stitching/include/opencv2/stitching/detail/blenders.hpp
modules/stitching/include/opencv2/stitching/detail/camera.hpp
modules/stitching/include/opencv2/stitching/detail/exposure_compensate.hpp
modules/stitching/include/opencv2/stitching/detail/matchers.hpp
modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp
modules/stitching/include/opencv2/stitching/detail/seam_finders.hpp
modules/stitching/include/opencv2/stitching/detail/util.hpp
modules/stitching/include/opencv2/stitching/detail/util_inl.hpp
modules/stitching/include/opencv2/stitching/detail/warpers.hpp
modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp
modules/stitching/perf/perf_precomp.hpp
modules/stitching/perf/perf_stich.cpp
modules/stitching/src/matchers.cpp
modules/stitching/src/precomp.hpp
modules/stitching/test/test_precomp.hpp
modules/ts/include/opencv2/ts.hpp [moved from modules/ts/include/opencv2/ts/ts.hpp with 99% similarity]
modules/ts/include/opencv2/ts/ts_perf.hpp
modules/ts/src/precomp.hpp
modules/video/doc/motion_analysis_and_object_tracking.rst
modules/video/include/opencv2/video.hpp [moved from modules/video/include/opencv2/video/video.hpp with 100% similarity]
modules/video/include/opencv2/video/background_segm.hpp
modules/video/include/opencv2/video/tracking.hpp
modules/video/perf/perf_precomp.hpp
modules/video/src/video_init.cpp
modules/video/test/test_precomp.hpp
modules/videostab/include/opencv2/videostab.hpp [moved from modules/videostab/include/opencv2/videostab/videostab.hpp with 100% similarity]
modules/videostab/include/opencv2/videostab/deblurring.hpp
modules/videostab/include/opencv2/videostab/fast_marching.hpp
modules/videostab/include/opencv2/videostab/frame_source.hpp
modules/videostab/include/opencv2/videostab/global_motion.hpp
modules/videostab/include/opencv2/videostab/inpainting.hpp
modules/videostab/include/opencv2/videostab/log.hpp
modules/videostab/include/opencv2/videostab/motion_core.hpp
modules/videostab/include/opencv2/videostab/motion_stabilizing.hpp
modules/videostab/include/opencv2/videostab/optical_flow.hpp
modules/videostab/include/opencv2/videostab/outlier_rejection.hpp
modules/videostab/include/opencv2/videostab/ring_buffer.hpp
modules/videostab/include/opencv2/videostab/stabilizer.hpp
modules/videostab/include/opencv2/videostab/wobble_suppression.hpp
modules/videostab/src/frame_source.cpp
modules/videostab/src/optical_flow.cpp
modules/videostab/src/outlier_rejection.cpp
modules/videostab/src/precomp.hpp
modules/world/include/opencv2/world.hpp [moved from modules/world/include/opencv2/world/world.hpp with 98% similarity]
modules/world/src/precomp.hpp
samples/cpp/stitching.cpp
samples/cpp/videostab.cpp
samples/gpu/alpha_comp.cpp
samples/gpu/opengl.cpp
samples/gpu/video_reader.cpp

index a5db31f..4652d92 100644 (file)
@@ -1,3 +1,5 @@
+add_definition(-D__OPENCV_BUILD=1)
+
 add_subdirectory(haartraining)
 add_subdirectory(traincascade)
 add_subdirectory(sft)
index e4f1081..5b363f1 100644 (file)
@@ -42,7 +42,7 @@
 #ifndef __CVCOMMON_H_
 #define __CVCOMMON_H_
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "cxcore.h"
index 2fe98f8..0620f21 100644 (file)
@@ -44,7 +44,7 @@
  *
  * Measure performance of classifier
  */
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "cv.h"
index d89a38e..dd4ba59 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include <sft/dataset.hpp>
-#include <opencv2/highgui/highgui.hpp>
+#include <opencv2/highgui.hpp>
 
 #include <iostream>
 #include <queue>
@@ -74,4 +74,4 @@ int sft::ScaledDataset::available(SampleType type) const
     return (int)((type == POSITIVE)? pos.size():neg.size());
 }
 
-sft::ScaledDataset::~ScaledDataset(){}
\ No newline at end of file
+sft::ScaledDataset::~ScaledDataset(){}
index 6f020ee..93439a4 100644 (file)
@@ -43,8 +43,8 @@
 #ifndef __SFT_COMMON_HPP__
 #define __SFT_COMMON_HPP__
 
-#include <opencv2/core/core.hpp>
-#include <opencv2/softcascade/softcascade.hpp>
+#include <opencv2/core.hpp>
+#include <opencv2/softcascade.hpp>
 
 namespace cv {using namespace softcascade;}
 namespace sft
index 8bbdee6..eaf4bd7 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "HOGfeatures.h"
index ea12c19..1b0f390 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "boost.h"
index 66f6876..f6752da 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "cascadeclassifier.h"
index 9629509..4aebc80 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "traincascade_features.h"
index 9f8bce0..59f1fd4 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "haarfeatures.h"
index 9faf84a..e7922a9 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "cv.h"
index cf9bb7b..5e23d9e 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "lbpfeatures.h"
index dfb49b5..c85046e 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "cv.h"
index bac3fe3..48aa713 100644 (file)
@@ -429,7 +429,7 @@ endmacro()
 macro(ocv_glob_module_sources)
   file(GLOB lib_srcs     "src/*.cpp")
   file(GLOB lib_int_hdrs "src/*.hpp" "src/*.h")
-  file(GLOB lib_hdrs     "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h")
+  file(GLOB lib_hdrs     "include/opencv2/*.hpp" "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h")
   file(GLOB lib_hdrs_detail "include/opencv2/${name}/detail/*.hpp" "include/opencv2/${name}/detail/*.h")
 
   file(GLOB lib_device_srcs "src/cuda/*.cu")
index 2d87993..487b390 100755 (executable)
@@ -6,15 +6,15 @@ sys.path.append("../modules/python/src2/")
 import hdr_parser as hp
 
 opencv_hdr_list = [
-"../modules/core/include/opencv2/core/core.hpp",
-"../modules/ml/include/opencv2/ml/ml.hpp",
-"../modules/imgproc/include/opencv2/imgproc/imgproc.hpp",
-"../modules/calib3d/include/opencv2/calib3d/calib3d.hpp",
-"../modules/features2d/include/opencv2/features2d/features2d.hpp",
+"../modules/core/include/opencv2/core.hpp",
+"../modules/ml/include/opencv2/ml.hpp",
+"../modules/imgproc/include/opencv2/imgproc.hpp",
+"../modules/calib3d/include/opencv2/calib3d.hpp",
+"../modules/features2d/include/opencv2/features2d.hpp",
 "../modules/video/include/opencv2/video/tracking.hpp",
 "../modules/video/include/opencv2/video/background_segm.hpp",
-"../modules/objdetect/include/opencv2/objdetect/objdetect.hpp",
-"../modules/highgui/include/opencv2/highgui/highgui.hpp",
+"../modules/objdetect/include/opencv2/objdetect.hpp",
+"../modules/highgui/include/opencv2/highgui.hpp",
 ]
 
 opencv_module_list = [
index 9340a7c..99d6692 100644 (file)
@@ -23,9 +23,9 @@ OpenCV 2 received reorganization. No longer are all the functions crammed into a
 
 .. code-block:: cpp
 
-   #include <opencv2/core/core.hpp>
-   #include <opencv2/imgproc/imgproc.hpp>
-   #include <opencv2/highgui/highgui.hpp>
+   #include <opencv2/core.hpp>
+   #include <opencv2/imgproc.hpp>
+   #include <opencv2/highgui.hpp>
 
 
 All the OpenCV related stuff is put into the *cv* namespace to avoid name conflicts with other libraries data structures and functions. Therefore, either you need to prepend the *cv::* keyword before everything that comes from OpenCV or after the includes, you just add a directive to use this:
index fe9b7cd..aa1a4a8 100644 (file)
@@ -29,10 +29,10 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
    #include <stdio.h>
    #include <iostream>
-   #include "opencv2/core/core.hpp"
-   #include "opencv2/features2d/features2d.hpp"
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/nonfree/features2d.hpp"
+   #include "opencv2/core.hpp"
+   #include "opencv2/features2d.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/nonfree.hpp"
 
    using namespace cv;
 
index 26798f8..1c9ca7c 100644 (file)
@@ -28,9 +28,9 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
    #include <stdio.h>
    #include <iostream>
-   #include "opencv2/core/core.hpp"
-   #include "opencv2/features2d/features2d.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/core.hpp"
+   #include "opencv2/features2d.hpp"
+   #include "opencv2/highgui.hpp"
 
    using namespace cv;
 
index 47eafed..9309b05 100644 (file)
@@ -25,9 +25,9 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
    #include <stdio.h>
    #include <iostream>
-   #include "opencv2/core/core.hpp"
-   #include "opencv2/features2d/features2d.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/core.hpp"
+   #include "opencv2/features2d.hpp"
+   #include "opencv2/highgui.hpp"
 
    using namespace cv;
 
index ad764ce..0d78229 100644 (file)
@@ -26,10 +26,10 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
    #include <stdio.h>
    #include <iostream>
-   #include "opencv2/core/core.hpp"
-   #include "opencv2/features2d/features2d.hpp"
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/calib3d/calib3d.hpp"
+   #include "opencv2/core.hpp"
+   #include "opencv2/features2d.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/calib3d.hpp"
 
    using namespace cv;
 
index afb74f2..a267b13 100644 (file)
@@ -23,8 +23,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index e69937e..9f71e98 100644 (file)
@@ -22,8 +22,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index 05025cc..0f6bb33 100644 (file)
@@ -155,8 +155,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index cc59084..86400bf 100644 (file)
@@ -1 +1 @@
-.. _gpuBasicsSimilarity:\r\rSimilarity check (PNSR and SSIM) on the GPU\r*******************************************\r\rGoal\r====\r\rIn the :ref:`videoInputPSNRMSSIM` tutorial I already presented the PSNR and SSIM methods for checking the similarity between the two images. And as you could see there performing these takes quite some time, especially in the case of the SSIM. However, if the performance numbers of an OpenCV implementation for the CPU do not satisfy you and you happen to have an NVidia CUDA GPU device in your system all is not lost. You may try to port or write your algorithm for the video card. \r\rThis tutorial will give a good grasp on how to approach coding by using the GPU module of OpenCV. As a prerequisite you should already know how to handle the core, highgui and imgproc modules. So, our goals are: \r\r.. container:: enumeratevisibleitemswithsquare\r\r   + What's different compared to the CPU?\r   + Create the GPU code for the PSNR and SSIM \r   + Optimize the code for maximal performance\r\rThe source code\r===============\r\rYou may also find the source code and these video file in the :file:`samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity` folder of the OpenCV source library or :download:`download it from here <../../../../samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp>`. The full source code is quite long (due to the controlling of the application via the command line arguments and performance measurement). Therefore, to avoid cluttering up these sections with those you'll find here only the functions itself. \r\rThe PSNR returns a float number, that if the two inputs are similar between 30 and 50 (higher is better). \r\r.. literalinclude:: ../../../../samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp\r   :language: cpp\r   :linenos:\r   :tab-width: 4\r   :lines: 165-210, 18-23, 210-235\r\rThe SSIM returns the MSSIM of the images. This is too a float number between zero and one (higher is better), however we have one for each channel. Therefore, we return a *Scalar* OpenCV data structure:\r\r.. literalinclude:: ../../../../samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp\r   :language: cpp\r   :linenos:\r   :tab-width: 4\r   :lines: 235-355, 26-42, 357-\r\rHow to do it? - The GPU\r=======================\r\rNow as you can see we have three types of functions for each operation. One for the CPU and two for the GPU. The reason I made two for the GPU is too illustrate that often simple porting your CPU to GPU will actually make it slower. If you want some performance gain you will need to remember a few rules, whose I'm going to detail later on.\r\rThe development of the GPU module was made so that it resembles as much as possible its CPU counterpart. This is to make porting easy. The first thing you need to do before writing any code is to link the GPU module to your project, and include the header file for the module. All the functions and data structures of the GPU are in a *gpu* sub namespace of the *cv* namespace. You may add this to the default one via the *use namespace* keyword, or mark it everywhere explicitly via the cv:: to avoid confusion. I'll do the later. \r\r.. code-block:: cpp\r\r   #include <opencv2/gpu/gpu.hpp>        // GPU structures and methods\r\rGPU stands for **g**\ raphics **p**\ rocessing **u**\ nit. It was originally build to render graphical scenes. These scenes somehow build on a lot of data. Nevertheless, these aren't all dependent one from another in a sequential way and as it is possible a parallel processing of them. Due to this a GPU will contain multiple smaller processing units. These aren't the state of the art processors and on a one on one test with a CPU it will fall behind. However, its strength lies in its numbers. In the last years there has been an increasing trend to harvest these massive parallel powers of the GPU in non-graphical scene rendering too. This gave birth to the general-purpose computation on graphics processing units (GPGPU). \r\rThe GPU has its own memory. When you read data from the hard drive with OpenCV into a *Mat* object that takes place in your systems memory. The CPU works somehow directly on this (via its cache), however the GPU cannot. He has too transferred the information he will use for calculations from the system memory to its own. This is done via an upload process and takes time. In the end the result will have to be downloaded back to your system memory for your CPU to see it and use it. Porting small functions to GPU is not recommended as the upload/download time will be larger than the amount you gain by a parallel execution. \r\r*Mat* objects are stored **only** in the system memory (or the CPU cache). For getting an OpenCV matrix to the GPU you'll need to use its GPU counterpart :gpudatastructure:`GpuMat <gpu-gpumat>`. It works similar to the *Mat* with a 2D only limitation and no reference returning for its functions (cannot mix GPU references with CPU ones). To upload a *Mat* object to the *GPU* you need to call the *upload* function after creating an instance of the class. To download you may use simple assignment to a *Mat* object or use the *download* function.\r\r.. code-block:: cpp \r\r   Mat I1;         // Main memory item - read image into with imread for example\r   gpu::GpuMat gI; // GPU matrix - for now empty\r   gI1.upload(I1); // Upload a data from the system memory to the GPU memory\r\r   I1 = gI1;       // Download, gI1.download(I1) will work too\r\rOnce you have your data up in the GPU memory you may call GPU enabled functions of OpenCV. Most of the functions keep the same name just as on the CPU, with the difference that they only accept *GpuMat* inputs. A full list of these you will find in the documentation: `online here <http://opencv.itseez.com/modules/gpu/doc/gpu.html>`_ or the OpenCV reference manual that comes with the source code.\r\rAnother thing to keep in mind is that not for all channel numbers you can make efficient algorithms on the GPU. Generally, I found that the input images for the GPU images need to be either one or four channel ones and one of the char or float type for the item sizes. No double support on the GPU, sorry. Passing other types of objects for some functions will result in an exception thrown, and an error message on the error output. The documentation details in most of the places the types accepted for the inputs. If you have three channel images as an input you can do two things: either adds a new channel (and use char elements) or split up the image and call the function for each image. The first one isn't really recommended as you waste memory. \r\rFor some functions, where the position of the elements (neighbor items) doesn't matter quick solution is to just reshape it into a single channel image. This is the case for the PSNR implementation where for the *absdiff* method the value of the neighbors is not important. However, for the *GaussianBlur* this isn't an option and such need to use the split method for the SSIM. With this knowledge you can already make a GPU viable code (like mine GPU one) and run it. You'll be surprised to see that it might turn out slower than your CPU implementation. \r\rOptimization\r============\r\rThe reason for this is that you're throwing out on the window the price for memory allocation and data transfer. And on the GPU this is damn high. Another possibility for optimization is to introduce asynchronous OpenCV GPU calls too with the help of the :gpudatastructure:`gpu::Stream <gpu-stream>`. \r\r1. Memory allocation on the GPU is considerable. Therefore, if it’s possible allocate new memory as few times as possible. If you create a function what you intend to call multiple times it is a good idea to allocate any local parameters for the function only once, during the first call. To do this you create a data structure containing all the local variables you will use. For instance in case of the PSNR these are: \r\r   .. code-block:: cpp \r\r      struct BufferPSNR                                     // Optimized GPU versions\r        {   // Data allocations are very expensive on GPU. Use a buffer to solve: allocate once reuse later.\r        gpu::GpuMat gI1, gI2, gs, t1,t2;\r\r        gpu::GpuMat buf;\r      };\r\r   Then create an instance of this in the main program: \r\r   .. code-block:: cpp\r\r      BufferPSNR bufferPSNR;\r\r   And finally pass this to the function each time you call it: \r\r   .. code-block:: cpp\r\r      double getPSNR_GPU_optimized(const Mat& I1, const Mat& I2, BufferPSNR& b)\r\r   Now you access these local parameters as: *b.gI1*, *b.buf* and so on. The GpuMat will only reallocate itself on a new call if the new matrix size is different from the previous one. \r\r#. Avoid unnecessary function data transfers. Any small data transfer will be significant one once you go to the GPU. Therefore, if possible make all calculations in-place (in other words do not create new memory objects - for reasons explained at the previous point). For example, although expressing arithmetical operations may be easier to express in one line formulas, it will be slower. In case of the SSIM at one point I need to calculate:\r\r   .. code-block:: cpp \r\r      b.t1 = 2 * b.mu1_mu2 + C1;  \r\r   Although the upper call will succeed observe that there is a hidden data transfer present. Before it makes the addition it needs to store somewhere the multiplication. Therefore, it will create a local matrix in the background, add to that the *C1* value and finally assign that to *t1*. To avoid this we use the gpu functions, instead of the arithmetic operators: \r\r   .. code-block:: cpp\r\r      gpu::multiply(b.mu1_mu2, 2, b.t1); //b.t1 = 2 * b.mu1_mu2 + C1; \r      gpu::add(b.t1, C1, b.t1);\r\r#. Use asynchronous calls (the :gpudatastructure:`gpu::Stream <gpu-stream>`). By default whenever you call a gpu function it will wait for the call to finish and return with the result afterwards. However, it is possible to make asynchronous calls, meaning it will call for the operation execution, make the costly data allocations for the algorithm and return back right away. Now you can call another function if you wish to do so. For the MSSIM this is a small optimization point. In our default implementation we split up the image into channels and call then for each channel the gpu functions. A small degree of parallelization is possible with the stream. By using a stream we can make the data allocation, upload operations while the GPU is already executing a given method. For example we need to upload two images. We queue these one after another and call already the function that processes it. The functions will wait for the upload to finish, however while that happens makes the output buffer allocations for the function to be executed next. \r\r   .. code-block:: cpp \r\r      gpu::Stream stream;\r\r      stream.enqueueConvert(b.gI1, b.t1, CV_32F);    // Upload\r\r      gpu::split(b.t1, b.vI1, stream);              // Methods (pass the stream as final parameter).\r      gpu::multiply(b.vI1[i], b.vI1[i], b.I1_2, stream);        // I1^2\r\rResult and conclusion\r=====================\r\rOn an Intel P8700 laptop CPU paired with a low end NVidia GT220M here are the performance numbers: \r\r.. code-block:: cpp\r\r   Time of PSNR CPU (averaged for 10 runs): 41.4122 milliseconds. With result of: 19.2506\r   Time of PSNR GPU (averaged for 10 runs): 158.977 milliseconds. With result of: 19.2506\r   Initial call GPU optimized:              31.3418 milliseconds. With result of: 19.2506\r   Time of PSNR GPU OPTIMIZED ( / 10 runs): 24.8171 milliseconds. With result of: 19.2506\r\r   Time of MSSIM CPU (averaged for 10 runs): 484.343 milliseconds. With result of B0.890964 G0.903845 R0.936934\r   Time of MSSIM GPU (averaged for 10 runs): 745.105 milliseconds. With result of B0.89922 G0.909051 R0.968223\r   Time of MSSIM GPU Initial Call            357.746 milliseconds. With result of B0.890964 G0.903845 R0.936934\r   Time of MSSIM GPU OPTIMIZED ( / 10 runs): 203.091 milliseconds. With result of B0.890964 G0.903845 R0.936934\r\rIn both cases we managed a performance increase of almost 100% compared to the CPU implementation. It may be just the improvement needed for your application to work. You may observe a runtime instance of this on the `YouTube here <https://www.youtube.com/watch?v=3_ESXmFlnvY>`_. \r\r.. raw:: html\r\r  <div align="center">\r  <iframe title="Similarity check (PNSR and SSIM) on the GPU" width="560" height="349" src="http://www.youtube.com/embed/3_ESXmFlnvY?rel=0&loop=1" frameborder="0" allowfullscreen align="middle"></iframe>\r  </div>
\ No newline at end of file
+.. _gpuBasicsSimilarity:\r\rSimilarity check (PNSR and SSIM) on the GPU\r*******************************************\r\rGoal\r====\r\rIn the :ref:`videoInputPSNRMSSIM` tutorial I already presented the PSNR and SSIM methods for\rchecking the similarity between the two images. And as you could see there performing these takes\rquite some time, especially in the case of the SSIM. However, if the performance numbers of an\rOpenCV implementation for the CPU do not satisfy you and you happen to have an NVidia CUDA GPU\rdevice in your system all is not lost. You may try to port or write your algorithm for the video\rcard.\r\rThis tutorial will give a good grasp on how to approach coding by using the GPU module of OpenCV. As\ra prerequisite you should already know how to handle the core, highgui and imgproc modules. So, our\rgoals are:\r\r.. container:: enumeratevisibleitemswithsquare\r\r   + What's different compared to the CPU?\r   + Create the GPU code for the PSNR and SSIM\r   + Optimize the code for maximal performance\r\rThe source code\r===============\r\rYou may also find the source code and these video file in the\r:file:`samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity` folder of the\rOpenCV source library or :download:`download it from here\r<../../../../samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp>`. The\rfull source code is quite long (due to the controlling of the application via the command line\rarguments and performance measurement). Therefore, to avoid cluttering up these sections with those\ryou'll find here only the functions itself.\r\rThe PSNR returns a float number, that if the two inputs are similar between 30 and 50 (higher is\rbetter).\r\r.. literalinclude:: ../../../../samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp\r   :language: cpp\r   :linenos:\r   :tab-width: 4\r   :lines: 165-210, 18-23, 210-235\r\rThe SSIM returns the MSSIM of the images. This is too a float number between zero and one (higher is\rbetter), however we have one for each channel. Therefore, we return a *Scalar* OpenCV data\rstructure:\r\r.. literalinclude:: ../../../../samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp\r   :language: cpp\r   :linenos:\r   :tab-width: 4\r   :lines: 235-355, 26-42, 357-\r\rHow to do it? - The GPU\r=======================\r\rNow as you can see we have three types of functions for each operation. One for the CPU and two for\rthe GPU. The reason I made two for the GPU is too illustrate that often simple porting your CPU to\rGPU will actually make it slower. If you want some performance gain you will need to remember a few\rrules, whose I'm going to detail later on.\r\rThe development of the GPU module was made so that it resembles as much as possible its CPU\rcounterpart. This is to make porting easy. The first thing you need to do before writing any code is\rto link the GPU module to your project, and include the header file for the module. All the\rfunctions and data structures of the GPU are in a *gpu* sub namespace of the *cv* namespace. You may\radd this to the default one via the *use namespace* keyword, or mark it everywhere explicitly via\rthe cv:: to avoid confusion. I'll do the later.\r\r.. code-block:: cpp\r\r   #include <opencv2/gpu.hpp>        // GPU structures and methods\r\rGPU stands for **g**\ raphics **p**\ rocessing **u**\ nit. It was originally build to render\rgraphical scenes. These scenes somehow build on a lot of data. Nevertheless, these aren't all\rdependent one from another in a sequential way and as it is possible a parallel processing of them.\rDue to this a GPU will contain multiple smaller processing units. These aren't the state of the art\rprocessors and on a one on one test with a CPU it will fall behind. However, its strength lies in\rits numbers. In the last years there has been an increasing trend to harvest these massive parallel\rpowers of the GPU in non-graphical scene rendering too. This gave birth to the general-purpose\rcomputation on graphics processing units (GPGPU).\r\rThe GPU has its own memory. When you read data from the hard drive with OpenCV into a *Mat* object\rthat takes place in your systems memory. The CPU works somehow directly on this (via its cache),\rhowever the GPU cannot. He has too transferred the information he will use for calculations from the\rsystem memory to its own. This is done via an upload process and takes time. In the end the result\rwill have to be downloaded back to your system memory for your CPU to see it and use it. Porting\rsmall functions to GPU is not recommended as the upload/download time will be larger than the amount\ryou gain by a parallel execution.\r\rMat objects are stored only in the system memory (or the CPU cache). For getting an OpenCV matrix\rto the GPU you'll need to use its GPU counterpart :gpudatastructure:`GpuMat <gpu-gpumat>`. It works\rsimilar to the Mat with a 2D only limitation and no reference returning for its functions (cannot\rmix GPU references with CPU ones). To upload a Mat object to the GPU you need to call the upload\rfunction after creating an instance of the class. To download you may use simple assignment to a\rMat object or use the download function.\r\r.. code-block:: cpp\r\r   Mat I1;         // Main memory item - read image into with imread for example\r   gpu::GpuMat gI; // GPU matrix - for now empty\r   gI1.upload(I1); // Upload a data from the system memory to the GPU memory\r\r   I1 = gI1;       // Download, gI1.download(I1) will work too\r\rOnce you have your data up in the GPU memory you may call GPU enabled functions of OpenCV. Most of\rthe functions keep the same name just as on the CPU, with the difference that they only accept\r*GpuMat* inputs. A full list of these you will find in the documentation: `online here\r<http://opencv.itseez.com/modules/gpu/doc/gpu.html>`_ or the OpenCV reference manual that comes with\rthe source code.\r\rAnother thing to keep in mind is that not for all channel numbers you can make efficient algorithms\ron the GPU. Generally, I found that the input images for the GPU images need to be either one or\rfour channel ones and one of the char or float type for the item sizes. No double support on the\rGPU, sorry. Passing other types of objects for some functions will result in an exception thrown,\rand an error message on the error output. The documentation details in most of the places the types\raccepted for the inputs. If you have three channel images as an input you can do two things: either\radds a new channel (and use char elements) or split up the image and call the function for each\rimage. The first one isn't really recommended as you waste memory.\r\rFor some functions, where the position of the elements (neighbor items) doesn't matter quick\rsolution is to just reshape it into a single channel image. This is the case for the PSNR\rimplementation where for the *absdiff* method the value of the neighbors is not important. However,\rfor the *GaussianBlur* this isn't an option and such need to use the split method for the SSIM. With\rthis knowledge you can already make a GPU viable code (like mine GPU one) and run it. You'll be\rsurprised to see that it might turn out slower than your CPU implementation.\r\rOptimization\r============\r\rThe reason for this is that you're throwing out on the window the price for memory allocation and\rdata transfer. And on the GPU this is damn high. Another possibility for optimization is to\rintroduce asynchronous OpenCV GPU calls too with the help of the\r:gpudatastructure:`gpu::Stream<gpu-stream>`.\r\r1. Memory allocation on the GPU is considerable. Therefore, if it’s possible allocate new memory as\r   few times as possible. If you create a function what you intend to call multiple times it is a\r   good idea to allocate any local parameters for the function only once, during the first call.\r   To do this you create a data structure containing all the local variables you will use. For\r   instance in case of the PSNR these are:\r\r   .. code-block:: cpp\r\r      struct BufferPSNR                                     // Optimized GPU versions\r        {   // Data allocations are very expensive on GPU. Use a buffer to solve: allocate once reuse later.\r        gpu::GpuMat gI1, gI2, gs, t1,t2;\r\r        gpu::GpuMat buf;\r      };\r\r   Then create an instance of this in the main program:\r\r   .. code-block:: cpp\r\r      BufferPSNR bufferPSNR;\r\r   And finally pass this to the function each time you call it:\r\r   .. code-block:: cpp\r\r      double getPSNR_GPU_optimized(const Mat& I1, const Mat& I2, BufferPSNR& b)\r\r   Now you access these local parameters as: *b.gI1*, *b.buf* and so on. The GpuMat will only\r   reallocate itself on a new call if the new matrix size is different from the previous one.\r\r#. Avoid unnecessary function data transfers. Any small data transfer will be significant one once\r   you go to the GPU. Therefore, if possible make all calculations in-place (in other words do not\r   create new memory objects - for reasons explained at the previous point). For example, although\r   expressing arithmetical operations may be easier to express in one line formulas, it will be\r   slower. In case of the SSIM at one point I need to calculate:\r\r   .. code-block:: cpp\r\r      b.t1 = 2 * b.mu1_mu2 + C1;\r\r   Although the upper call will succeed observe that there is a hidden data transfer present. Before\r   it makes the addition it needs to store somewhere the multiplication. Therefore, it will create a\r   local matrix in the background, add to that the *C1* value and finally assign that to *t1*. To\r   avoid this we use the gpu functions, instead of the arithmetic operators:\r\r   .. code-block:: cpp\r\r      gpu::multiply(b.mu1_mu2, 2, b.t1); //b.t1 = 2 * b.mu1_mu2 + C1;\r      gpu::add(b.t1, C1, b.t1);\r\r#. Use asynchronous calls (the :gpudatastructure:`gpu::Stream <gpu-stream>`). By default whenever\r   you call a gpu function it will wait for the call to finish and return with the result\r   afterwards. However, it is possible to make asynchronous calls, meaning it will call for the\r   operation execution, make the costly data allocations for the algorithm and return back right\r   away. Now you can call another function if you wish to do so. For the MSSIM this is a small\r   optimization point. In our default implementation we split up the image into channels and call\r   then for each channel the gpu functions. A small degree of parallelization is possible with the\r   stream. By using a stream we can make the data allocation, upload operations while the GPU is\r   already executing a given method. For example we need to upload two images. We queue these one\r   after another and call already the function that processes it. The functions will wait for the\r   upload to finish, however while that happens makes the output buffer allocations for the function\r   to be executed next.\r\r   .. code-block:: cpp\r\r      gpu::Stream stream;\r\r      stream.enqueueConvert(b.gI1, b.t1, CV_32F);    // Upload\r\r      gpu::split(b.t1, b.vI1, stream);              // Methods (pass the stream as final parameter).\r      gpu::multiply(b.vI1[i], b.vI1[i], b.I1_2, stream);        // I1^2\r\rResult and conclusion\r=====================\r\rOn an Intel P8700 laptop CPU paired with a low end NVidia GT220M here are the performance numbers:\r\r.. code-block:: cpp\r\r   Time of PSNR CPU (averaged for 10 runs): 41.4122 milliseconds. With result of: 19.2506\r   Time of PSNR GPU (averaged for 10 runs): 158.977 milliseconds. With result of: 19.2506\r   Initial call GPU optimized:              31.3418 milliseconds. With result of: 19.2506\r   Time of PSNR GPU OPTIMIZED ( / 10 runs): 24.8171 milliseconds. With result of: 19.2506\r\r   Time of MSSIM CPU (averaged for 10 runs): 484.343 milliseconds. With result of B0.890964 G0.903845 R0.936934\r   Time of MSSIM GPU (averaged for 10 runs): 745.105 milliseconds. With result of B0.89922 G0.909051 R0.968223\r   Time of MSSIM GPU Initial Call            357.746 milliseconds. With result of B0.890964 G0.903845 R0.936934\r   Time of MSSIM GPU OPTIMIZED ( / 10 runs): 203.091 milliseconds. With result of B0.890964 G0.903845 R0.936934\r\rIn both cases we managed a performance increase of almost 100% compared to the CPU implementation.\rIt may be just the improvement needed for your application to work. You may observe a runtime\rinstance of this on the `YouTube here <https://www.youtube.com/watch?v=3_ESXmFlnvY>`_.\r\r.. raw:: html\r\r  <div align="center">\r  <iframe title="Similarity check (PNSR and SSIM) on the GPU" width="560" height="349" src="http://www.youtube.com/embed/3_ESXmFlnvY?rel=0&loop=1" frameborder="0" allowfullscreen align="middle"></iframe>\r  </div>
\ No newline at end of file
index ff5a4d9..e163348 100644 (file)
@@ -74,8 +74,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include "highgui.h"
    #include <stdlib.h>
    #include <stdio.h>
index 0e82e50..b470d51 100644 (file)
@@ -122,8 +122,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
 
    using namespace std;
    using namespace cv;
index 9231372..c456c9e 100644 (file)
@@ -107,8 +107,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
 
    #include <iostream>
 
index de1567a..133a613 100644 (file)
@@ -88,8 +88,8 @@ Code
 
 .. code-block:: cpp
 
-    #include "opencv2/highgui/highgui.hpp"
-    #include "opencv2/imgproc/imgproc.hpp"
+    #include "opencv2/highgui.hpp"
+    #include "opencv2/imgproc.hpp"
     #include <iostream>
     #include <stdio.h>
 
index be9dc7f..1b1df19 100644 (file)
@@ -86,8 +86,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
 
index 24534a7..8f0c96f 100644 (file)
@@ -89,8 +89,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
 
index e0c643d..d8a9156 100644 (file)
@@ -131,8 +131,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
 
index 52b1046..01c9050 100644 (file)
@@ -90,8 +90,8 @@ Code
 
 .. code-block::  cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <stdlib.h>
    #include <stdio.h>
 
index 337ecd7..1f72f13 100644 (file)
@@ -52,8 +52,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <stdlib.h>
    #include <stdio.h>
 
index 1c81ba3..5ea70cc 100644 (file)
@@ -77,8 +77,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <stdlib.h>
    #include <stdio.h>
 
index 6d307be..ecd4ba2 100644 (file)
@@ -48,8 +48,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
 
index dfb57c0..6b872bf 100644 (file)
@@ -104,8 +104,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
 
    #include <iostream>
 
index da93732..5f2d0d0 100644 (file)
@@ -59,8 +59,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <stdlib.h>
    #include <stdio.h>
 
index 1aa3b38..a8b9fdf 100644 (file)
@@ -63,8 +63,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
 
index 625ca16..fe25937 100644 (file)
@@ -125,8 +125,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <stdlib.h>
    #include <stdio.h>
 
index 8c08d22..b601929 100644 (file)
@@ -97,8 +97,8 @@ Code
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
 
index 4fe6323..6baa3a3 100644 (file)
@@ -115,8 +115,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <stdlib.h>
    #include <stdio.h>
 
index 8b8d11a..00baae2 100644 (file)
@@ -84,8 +84,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <math.h>
    #include <stdlib.h>
    #include <stdio.h>
index d073a1b..f91730e 100644 (file)
@@ -25,8 +25,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index 894df86..0986e1e 100644 (file)
@@ -25,8 +25,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index decdf31..1fca7df 100644 (file)
@@ -23,8 +23,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index c6abdd2..c1ed79c 100644 (file)
@@ -23,8 +23,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index 6ef2de6..15ac2f5 100644 (file)
@@ -25,8 +25,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index a73a8e9..b7f72c8 100644 (file)
@@ -23,8 +23,8 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
index d76c057..c4e8ddf 100644 (file)
@@ -134,8 +134,8 @@ The tutorial code's is shown lines below. You can also download it from `here <h
 
 .. code-block:: cpp
 
-   #include "opencv2/imgproc/imgproc.hpp"
-   #include "opencv2/highgui/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
+   #include "opencv2/highgui.hpp"
    #include <stdlib.h>
    #include <stdio.h>
 
index cabb81c..146a0ec 100644 (file)
@@ -26,9 +26,9 @@ This tutorial code's is shown lines below. You can also download it from `here <
 
 .. code-block:: cpp
 
-   #include "opencv2/objdetect/objdetect.hpp"
-   #include "opencv2/highgui/highgui.hpp"
-   #include "opencv2/imgproc/imgproc.hpp"
+   #include "opencv2/objdetect.hpp"
+   #include "opencv2/highgui.hpp"
+   #include "opencv2/imgproc.hpp"
 
    #include <iostream>
    #include <stdio.h>
index f9831cf..c878e68 100644 (file)
 //CV_WARNING("This is a deprecated opencv header provided for compatibility. Please include a header from a corresponding opencv module")
 
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/video/tracking.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/flann/flann.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/flann.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/objdetect.hpp"
 #include "opencv2/legacy/compat.hpp"
 
 #if !defined(CV_IMPL)
index b15d068..52d4f0b 100644 (file)
 //#endif
 
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/video/tracking.hpp"
-#include "opencv2/video/background_segm.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/legacy/legacy.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/legacy.hpp"
 #include "opencv2/legacy/compat.hpp"
 #include "opencv2/legacy/blobtrack.hpp"
-#include "opencv2/contrib/contrib.hpp"
+#include "opencv2/contrib.hpp"
 
 #endif
 
index d52ad4f..9be80ae 100644 (file)
@@ -48,6 +48,6 @@
 //#endif
 
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 #endif
index 9725c9f..56874e7 100644 (file)
@@ -43,8 +43,8 @@
 #define __OPENCV_OLD_HIGHGUI_H__
 
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/highgui/highgui_c.h"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 #endif
index 0383a2f..ac21f3c 100644 (file)
@@ -42,7 +42,7 @@
 #define __OPENCV_OLD_ML_H__
 
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/core.hpp"
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/ml.hpp"
 
 #endif
index f89547c..f9c15df 100644 (file)
 #define __OPENCV_ALL_HPP__
 
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/flann/miniflann.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/photo/photo.hpp"
-#include "opencv2/video/video.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/photo.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/ml.hpp"
 #include "opencv2/highgui/highgui_c.h"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/contrib/contrib.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/contrib.hpp"
 
 #endif
index 4a6ed6d..9d41ebe 100644 (file)
@@ -1,3 +1,5 @@
+add_definition(-D__OPENCV_BUILD=1)
+
 if(NOT OPENCV_MODULES_PATH)
   set(OPENCV_MODULES_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
 endif()
index 76a63b0..8aa25b6 100644 (file)
@@ -2,7 +2,6 @@
 #define _CAMERAACTIVITY_H_
 
 #include <camera_properties.h>
-//#include <opencv2/core/core.hpp>
 
 class CameraActivity
 {
@@ -43,8 +43,8 @@
 #ifndef __OPENCV_CALIB3D_HPP__
 #define __OPENCV_CALIB3D_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/features2d.hpp"
 
 #ifdef __cplusplus
 extern "C" {
@@ -644,18 +644,18 @@ CV_EXPORTS Mat findFundamentalMat( InputArray points1, InputArray points2,
                                    double param1=3., double param2=0.99);
 
 //! finds essential matrix from a set of corresponding 2D points using five-point algorithm
-CV_EXPORTS Mat findEssentialMat( InputArray points1, InputArray points2, double focal = 1.0, Point2d pp = Point2d(0, 0), 
-                                 int method = CV_RANSAC, 
-                                 double prob = 0.999, double threshold = 1.0, OutputArray mask = noArray() ); 
+CV_EXPORTS Mat findEssentialMat( InputArray points1, InputArray points2, double focal = 1.0, Point2d pp = Point2d(0, 0),
+                                 int method = CV_RANSAC,
+                                 double prob = 0.999, double threshold = 1.0, OutputArray mask = noArray() );
 
 //! decompose essential matrix to possible rotation matrix and one translation vector
-CV_EXPORTS void decomposeEssentialMat( InputArray E, OutputArray R1, OutputArray R2, OutputArray t ); 
+CV_EXPORTS void decomposeEssentialMat( InputArray E, OutputArray R1, OutputArray R2, OutputArray t );
 
 //! recover relative camera pose from a set of corresponding 2D points
-CV_EXPORTS int recoverPose( InputArray E, InputArray points1, InputArray points2, OutputArray R, OutputArray t, 
-                            double focal = 1.0, Point2d pp = Point2d(0, 0), 
-                            InputOutputArray mask = noArray()); 
-                                   
+CV_EXPORTS int recoverPose( InputArray E, InputArray points1, InputArray points2, OutputArray R, OutputArray t,
+                            double focal = 1.0, Point2d pp = Point2d(0, 0),
+                            InputOutputArray mask = noArray());
+
 
 //! finds coordinates of epipolar lines corresponding the specified points
 CV_EXPORTS void computeCorrespondEpilines( InputArray points,
@@ -680,7 +680,7 @@ public:
 enum { STEREO_DISP_SCALE=16, STEREO_PREFILTER_NORMALIZED_RESPONSE = 0, STEREO_PREFILTER_XSOBEL = 1 };
 
 CV_EXPORTS Ptr<StereoMatcher> createStereoBM(int numDisparities=0, int SADWindowSize=21);
-    
+
 CV_EXPORTS Ptr<StereoMatcher> createStereoSGBM(int minDisparity, int numDisparities, int SADWindowSize,
                                                int P1=0, int P2=0, int disp12MaxDiff=0,
                                                int preFilterCap=0, int uniquenessRatio=0,
index 6cee5b9..86312de 100644 (file)
@@ -9,10 +9,10 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/imgproc.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 44ef0fa..0a34958 100644 (file)
@@ -69,7 +69,7 @@
 #ifdef DEBUG_CHESSBOARD
 #  include "opencv2/opencv_modules.hpp"
 #  ifdef HAVE_OPENCV_HIGHGUI
-#    include "opencv2/highgui/highgui.hpp"
+#    include "opencv2/highgui.hpp"
 #  else
 #    undef DEBUG_CHESSBOARD
 #  endif
index 60e275d..9191fc8 100644 (file)
@@ -49,7 +49,7 @@
 #if defined(DEBUG_WINDOWS)
 #  include "opencv2/opencv_modules.hpp"
 #  ifdef HAVE_OPENCV_HIGHGUI
-#    include "opencv2/highgui/highgui.hpp"
+#    include "opencv2/highgui.hpp"
 #  else
 #    undef DEBUG_WINDOWS
 #  endif
index 5cf77a9..9d893ff 100644 (file)
@@ -46,7 +46,7 @@
 #ifdef DEBUG_CIRCLES
 #  include "opencv2/opencv_modules.hpp"
 #  ifdef HAVE_OPENCV_HIGHGUI
-#    include "opencv2/highgui/highgui.hpp"
+#    include "opencv2/highgui.hpp"
 #  else
 #    undef DEBUG_CIRCLES
 #  endif
index b1b92d2..5951ea1 100644 (file)
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/internal.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/features2d.hpp"
 #include <vector>
 
 #ifdef HAVE_TEGRA_OPTIMIZATION
index dbd9213..97d0fed 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef CV_CHESSBOARDGENERATOR_H143KJTVYM389YTNHKFDHJ89NYVMO3VLMEJNTBGUEIYVCM203P
 #define CV_CHESSBOARDGENERATOR_H143KJTVYM389YTNHKFDHJ89NYVMO3VLMEJNTBGUEIYVCM203P
 
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/calib3d.hpp"
 
 namespace cv
 {
index e0fcd48..fee6551 100644 (file)
@@ -9,11 +9,11 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/highgui.hpp"
 #include <iostream>
 
 namespace cvtest
index babd0ac..beba413 100644 (file)
@@ -42,9 +42,9 @@ In OpenCV 2.4 you only need :ocv:func:`applyColorMap` to apply a colormap on a g
 
 .. code-block:: cpp
 
-    #include <opencv2/contrib/contrib.hpp>
-    #include <opencv2/core/core.hpp>
-    #include <opencv2/highgui/highgui.hpp>
+    #include <opencv2/contrib.hpp>
+    #include <opencv2/core.hpp>
+    #include <opencv2/highgui.hpp>
 
     using namespace cv;
 
index b1f3bde..e3d82b6 100644 (file)
@@ -16,9 +16,9 @@
  *   See <http://www.opensource.org/licenses/bsd-license>
  */
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/contrib/contrib.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/contrib.hpp"
+#include "opencv2/highgui.hpp"
 
 
 #include <iostream>
index b3d5f4d..9d28476 100644 (file)
@@ -16,9 +16,9 @@
  *   See <http://www.opensource.org/licenses/bsd-license>
  */
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/contrib/contrib.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/contrib.hpp"
+#include "opencv2/highgui.hpp"
 
 #include <iostream>
 #include <fstream>
index b88d90e..9e8988a 100644 (file)
@@ -16,9 +16,9 @@
  *   See <http://www.opensource.org/licenses/bsd-license>
  */
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/contrib/contrib.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/contrib.hpp"
+#include "opencv2/highgui.hpp"
 
 #include <iostream>
 #include <fstream>
index 03fe76d..1477777 100644 (file)
@@ -16,9 +16,9 @@
  *   See <http://www.opensource.org/licenses/bsd-license>
  */
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/contrib/contrib.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/contrib.hpp"
+#include "opencv2/highgui.hpp"
 
 #include <iostream>
 #include <fstream>
index d8e3104..583b893 100644 (file)
@@ -16,9 +16,9 @@
  *   See <http://www.opensource.org/licenses/bsd-license>
  */
 
-#include "opencv2/contrib/contrib.hpp"
-#include "opencv2/core/core.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/contrib.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/highgui.hpp"
 
 #include <iostream>
 #include <fstream>
index 7fc7cfa..c22e416 100644 (file)
  *   See <http://www.opensource.org/licenses/bsd-license>
  */
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/contrib/contrib.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/contrib.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/objdetect.hpp"
 
 #include <iostream>
 #include <fstream>
 #ifndef __OPENCV_CONTRIB_HPP__
 #define __OPENCV_CONTRIB_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/objdetect.hpp"
 
 #ifdef __cplusplus
 
@@ -972,4 +972,3 @@ namespace cv
 #endif
 
 #endif
-
index be122a6..c3db03a 100644 (file)
@@ -2,8 +2,8 @@
 
 #if defined(__linux__) || defined(LINUX) || defined(__APPLE__) || defined(ANDROID)
 
-#include <opencv2/core/core.hpp>
-#include <opencv2/objdetect/objdetect.hpp>
+#include <opencv2/core.hpp>
+#include <opencv2/objdetect.hpp>
 
 #include <vector>
 
index cd99b73..20f9224 100644 (file)
 #ifndef __OPENCV_HYBRIDTRACKER_H_
 #define __OPENCV_HYBRIDTRACKER_H_
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/core/operations.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/features2d.hpp"
 #include "opencv2/video/tracking.hpp"
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/ml.hpp"
 
 #ifdef __cplusplus
 
index e73bbb9..3859775 100644 (file)
@@ -52,8 +52,8 @@
 #ifndef __OPENCV_OPENFABMAP_H_
 #define __OPENCV_OPENFABMAP_H_
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/features2d.hpp"
 
 #include <vector>
 #include <list>
index 6f660ef..456daab 100644 (file)
@@ -72,7 +72,7 @@
  *      Author: Alexandre Benoit
  */
 
-#include "opencv2/core/core.hpp" // for all OpenCV core functionalities access, including cv::Exception support
+#include "opencv2/core.hpp" // for all OpenCV core functionalities access, including cv::Exception support
 #include <valarray>
 
 namespace cv
index 9b64ba4..39acd45 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/calib3d.hpp"
 #include <iostream>
 
 using namespace cv;
index a23ca8a..bd30ad9 100644 (file)
@@ -46,7 +46,7 @@
 #include "precomp.hpp"
 #include "opencv2/opencv_modules.hpp"
 #ifdef HAVE_OPENCV_HIGHGUI
-#  include "opencv2/highgui/highgui.hpp"
+#  include "opencv2/highgui.hpp"
 #endif
 #include <iostream>
 #include <queue>
index 712b2d5..575f69a 100644 (file)
@@ -42,7 +42,7 @@
 #include "precomp.hpp"
 #include <stdio.h>
 #include <iostream>
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/calib3d.hpp"
 #include "opencv2/contrib/hybridtracker.hpp"
 
 using namespace cv;
index 42fc411..5040153 100644 (file)
@@ -39,7 +39,6 @@
 // the use of this software, even if advised of the possibility of such damage.
 //
 //M*/
-#include "opencv2/core/core.hpp"
 #include "precomp.hpp"
 
 #include <iostream>
index d10d884..ee97e12 100644 (file)
@@ -1,5 +1,5 @@
 
-#include "opencv2/contrib/contrib.hpp"
+#include "opencv2/contrib.hpp"
 
 #ifdef WIN32
     #include <windows.h>
index 7c8e6bd..7819148 100644 (file)
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/contrib/contrib.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/contrib.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/internal.hpp"
 
index 3289b35..1fa800b 100644 (file)
 
 #define SHOW_DEBUG_IMAGES 0
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/calib3d.hpp"
 
 #if SHOW_DEBUG_IMAGES
-#  include "opencv2/highgui/highgui.hpp"
+#  include "opencv2/highgui.hpp"
 #endif
 
 #include <iostream>
index d477edd..de9e283 100644 (file)
@@ -9,8 +9,8 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/contrib/contrib.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/contrib.hpp"
 #include <iostream>
 
 #endif
index ca9f5e2..d9cc303 100644 (file)
@@ -2425,7 +2425,7 @@ The class provides the following features for all derived classes:
 Here is example of SIFT use in your application via Algorithm interface: ::
 
     #include "opencv2/opencv.hpp"
-    #include "opencv2/nonfree/nonfree.hpp"
+    #include "opencv2/nonfree.hpp"
 
     ...
 
index a672365..806f434 100644 (file)
@@ -30,14 +30,14 @@ All the OpenCV classes and functions are placed into the ``cv`` namespace. There
 
 .. code-block:: c
 
-    #include "opencv2/core/core.hpp"
+    #include "opencv2/core.hpp"
     ...
     cv::Mat H = cv::findHomography(points1, points2, CV_RANSAC, 5);
     ...
 
 or ::
 
-    #include "opencv2/core/core.hpp"
+    #include "opencv2/core.hpp"
     using namespace cv;
     ...
     Mat H = findHomography(points1, points2, CV_RANSAC, 5 );
similarity index 99%
rename from modules/core/include/opencv2/core/core.hpp
rename to modules/core/include/opencv2/core.hpp
index 1efd4c8..556a306 100644 (file)
@@ -3143,8 +3143,8 @@ public:
     void deallocate();
     //! resizes the buffer and preserves the content
     void resize(size_t _size);
-       //! returns the current buffer size
-       size_t size() const;
+    //! returns the current buffer size
+    size_t size() const;
     //! returns pointer to the real buffer, stack-allocated or head-allocated
     operator _Tp* ();
     //! returns read-only pointer to the real buffer, stack-allocated or head-allocated
index 49bd36b..6e47206 100644 (file)
@@ -46,7 +46,7 @@
 #ifdef __cplusplus
 
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 #if defined _MSC_VER && _MSC_VER >= 1200
 #pragma warning( disable: 4714 ) //__forceinline is not inlined
index d39f0a8..be757a9 100644 (file)
@@ -45,7 +45,7 @@
 
 #ifdef __cplusplus
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/cuda_devptrs.hpp"
 
 namespace cv { namespace gpu
@@ -45,7 +45,7 @@
 
 #ifdef __cplusplus
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv { namespace ogl {
 
index 4d5d988..cea1c13 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
+#include "opencv2/ts.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 3bc74fa..61006f5 100644 (file)
@@ -1,7 +1,7 @@
 #include <string>
 #include <sstream>
 #include "cvconfig.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "gl_core_3_1.hpp"
 
 #ifdef HAVE_OPENGL
index 4409581..8336a28 100644 (file)
@@ -42,7 +42,7 @@
 
 #include "precomp.hpp"
 #include "opencv2/core/gpumat.hpp"
-#include "opencv2/core/opengl_interop.hpp"
+#include "opencv2/core/opengl.hpp"
 
 /****************************************************************************************\
 *                           [scaled] Identity matrix initialization                      *
index 4c05f9f..cf2cc47 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/core/opengl_interop.hpp"
+#include "opencv2/core/opengl.hpp"
 #include "opencv2/core/gpumat.hpp"
 
 #ifdef HAVE_OPENGL
index 84f7f5e..edfbda6 100644 (file)
@@ -47,7 +47,7 @@
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/core_c.h"
 #include "opencv2/core/internal.hpp"
 
index 5cbe1c8..6c0f493 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
+#include "opencv2/ts.hpp"
 #include "opencv2/core/core_c.h"
 #include <iostream>
 
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_FEATURES_2D_HPP__
 #define __OPENCV_FEATURES_2D_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/flann/miniflann.hpp"
 
 #ifdef __cplusplus
index c3f98c2..30607da 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/features2d.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 735fe6e..3f50f3c 100644 (file)
@@ -48,7 +48,7 @@
 #ifdef DEBUG_BLOB_DETECTOR
 #  include "opencv2/opencv_modules.hpp"
 #  ifdef HAVE_OPENCV_HIGHGUI
-#    include "opencv2/highgui/highgui.hpp"
+#    include "opencv2/highgui.hpp"
 #  else
 #    undef DEBUG_BLOB_DETECTOR
 #  endif
index 0e67e4d..6709449 100644 (file)
@@ -42,9 +42,9 @@
  the IEEE International Conference on Computer Vision (ICCV2011).
  */
 
-#include <opencv2/features2d/features2d.hpp>
-#include <opencv2/core/core.hpp>
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/features2d.hpp>
+#include <opencv2/core.hpp>
+#include <opencv2/imgproc.hpp>
 #include <fstream>
 #include <stdlib.h>
 
index cbc1eb6..62936b4 100644 (file)
@@ -47,8 +47,8 @@
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/internal.hpp"
 
index 2185625..1935451 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
index e5e8712..9a88c42 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
index b5d01a7..7bc5c6e 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
index d76715d..a15578a 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
index 4ec841a..aa8cdbd 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
index bc2d8be..979e7c7 100644 (file)
@@ -9,11 +9,11 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/highgui.hpp"
 #include <iostream>
 
 #endif
index e843ffe..1f67da1 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
similarity index 99%
rename from modules/flann/include/opencv2/flann/flann.hpp
rename to modules/flann/include/opencv2/flann.hpp
index 8a23893..d5eedcc 100644 (file)
@@ -46,7 +46,7 @@
 #ifdef __cplusplus
 
 #include "opencv2/core/types_c.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/flann/flann_base.hpp"
 #include "opencv2/flann/miniflann.hpp"
 
index 18c9081..475335c 100644 (file)
@@ -45,7 +45,7 @@
 
 #ifdef __cplusplus
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/flann/defines.h"
 
 namespace cv
index 6428b0a..58354e7 100644 (file)
@@ -32,7 +32,7 @@
 #define OPENCV_FLANN_TIMER_H
 
 #include <time.h>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cvflann
 {
index fa1fdaf..43d0e1f 100644 (file)
@@ -27,7 +27,7 @@
  *************************************************************************/
 
 #include "precomp.hpp"
-#include "opencv2/flann/flann.hpp"
+#include "opencv2/flann.hpp"
 
 namespace cvflann
 {
index fb5ee3f..0d26479 100644 (file)
@@ -8,7 +8,7 @@
 #ifdef HAVE_CVCONFIG_H
 # include "cvconfig.h"
 #endif
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
 
 #include "opencv2/flann/miniflann.hpp"
index 809a97e..b5cd174 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/core/core.hpp"
-#include "opencv2/flann/flann.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/flann.hpp"
 #include <iostream>
 
 #endif
index 26bf624..26f806f 100644 (file)
@@ -7,7 +7,7 @@ ocv_add_module(gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video o
 
 ocv_module_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/cuda")
 
-file(GLOB lib_hdrs               "include/opencv2/${name}/*.hpp"               "include/opencv2/${name}/*.h")
+file(GLOB lib_hdrs               "include/opencv2/*.hpp"                       "include/opencv2/${name}/*.hpp"               "include/opencv2/${name}/*.h")
 file(GLOB lib_device_hdrs        "include/opencv2/${name}/device/*.hpp"        "include/opencv2/${name}/device/*.h")
 file(GLOB lib_device_hdrs_detail "include/opencv2/${name}/device/detail/*.hpp" "include/opencv2/${name}/device/detail/*.h")
 file(GLOB lib_int_hdrs           "src/*.hpp"      "src/*.h")
index ff15581..4bdf387 100644 (file)
@@ -1,12 +1,11 @@
 #include <cstdio>
 #define HAVE_CUDA 1
-#include <opencv2/core/core.hpp>
-#include <opencv2/gpu/gpu.hpp>
-#include <opencv2/highgui/highgui.hpp>
-#include <opencv2/video/video.hpp>
-#include <opencv2/legacy/legacy.hpp>
-#include <opencv2/ts/ts.hpp>
-#include <opencv2/ts/ts_perf.hpp>
+#include <opencv2/core.hpp>
+#include <opencv2/gpu.hpp>
+#include <opencv2/highgui.hpp>
+#include <opencv2/video.hpp>
+#include <opencv2/legacy.hpp>
+#include <opencv2/ts.hpp>
 
 static void printOsInfo()
 {
similarity index 99%
rename from modules/gpu/include/opencv2/gpu/gpu.hpp
rename to modules/gpu/include/opencv2/gpu.hpp
index 96d028a..ebf764f 100644 (file)
@@ -50,9 +50,9 @@
 #endif
 
 #include "opencv2/core/gpumat.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/features2d.hpp"
 
 namespace cv { namespace gpu {
 
index 6a1a0bd..abafc61 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_GPU_STREAM_ACCESSOR_HPP__
 #define __OPENCV_GPU_STREAM_ACCESSOR_HPP__
 
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpu.hpp"
 #include "cuda_runtime_api.h"
 
 namespace cv
index 4dca93c..71fe9e7 100644 (file)
 #include <cuda_runtime.h>
 #endif
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/ts/ts_perf.hpp"
-
-#include "opencv2/core/core.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/gpu/gpu.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/video/video.hpp"
-#include "opencv2/nonfree/nonfree.hpp"
-#include "opencv2/legacy/legacy.hpp"
-#include "opencv2/photo/photo.hpp"
+#include "opencv2/ts.hpp"
+
+#include "opencv2/core.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/gpu.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/nonfree.hpp"
+#include "opencv2/legacy.hpp"
+#include "opencv2/photo.hpp"
 
 #include "utility.hpp"
 
index cff4cdd..18c8585 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef __OPENCV_PERF_GPU_UTILITY_HPP__
 #define __OPENCV_PERF_GPU_UTILITY_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/ts/ts_perf.hpp"
 
 cv::Mat readImage(const std::string& fileName, int flags = cv::IMREAD_COLOR);
index 80d97ea..f4a0443 100644 (file)
@@ -2,13 +2,12 @@
 #ifdef HAVE_CVCONFIG_H
 #include "cvconfig.h"
 #endif
-#include "opencv2/core/core.hpp"
-#include "opencv2/gpu/gpu.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/video/video.hpp"
-#include "opencv2/legacy/legacy.hpp"
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/ts/ts_perf.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/gpu.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/legacy.hpp"
+#include "opencv2/ts.hpp"
 
 static void printOsInfo()
 {
index 7c53185..1aa442b 100644 (file)
 #include <memory>
 #include <string>
 
-#include "opencv2/gpu/gpu.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/gpu.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/calib3d.hpp"
 #include "opencv2/core/internal.hpp"
-#include "opencv2/video/video.hpp"
+#include "opencv2/video.hpp"
 
 #if defined WIN32 || defined WINCE
     #include <windows.h>
index 8e723c5..9ad08b1 100644 (file)
@@ -42,8 +42,8 @@
 #ifndef __OPENCV_TEST_INTERPOLATION_HPP__
 #define __OPENCV_TEST_INTERPOLATION_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 
 template <typename T> T readVal(const cv::Mat& src, int y, int x, int c, int border_type, cv::Scalar borderVal = cv::Scalar())
 {
index 0413fa5..0ae104c 100644 (file)
@@ -14,7 +14,7 @@
 #include <memory>
 
 #include "NCV.hpp"
-#include <opencv2/highgui/highgui.hpp>
+#include <opencv2/highgui.hpp>
 
 
 template <class T>
index e7ade6a..93c1df0 100644 (file)
     #include <cuda.h>
     #include <cuda_runtime.h>
 
-    #include "opencv2/core/core.hpp"
-    #include "opencv2/core/opengl_interop.hpp"
-    #include "opencv2/highgui/highgui.hpp"
-    #include "opencv2/calib3d/calib3d.hpp"
-    #include "opencv2/imgproc/imgproc.hpp"
-    #include "opencv2/video/video.hpp"
-    #include "opencv2/ts/ts.hpp"
-    #include "opencv2/ts/ts_perf.hpp"
-    #include "opencv2/gpu/gpu.hpp"
-    #include "opencv2/nonfree/nonfree.hpp"
-    #include "opencv2/legacy/legacy.hpp"
+    #include "opencv2/core.hpp"
+    #include "opencv2/core/opengl.hpp"
+    #include "opencv2/highgui.hpp"
+    #include "opencv2/calib3d.hpp"
+    #include "opencv2/imgproc.hpp"
+    #include "opencv2/video.hpp"
+    #include "opencv2/ts.hpp"
+    #include "opencv2/gpu.hpp"
+    #include "opencv2/nonfree.hpp"
+    #include "opencv2/legacy.hpp"
 
     #include "utility.hpp"
     #include "interpolation.hpp"
index 674e9a1..fa0cd93 100644 (file)
 #ifndef __OPENCV_GPU_TEST_UTILITY_HPP__
 #define __OPENCV_GPU_TEST_UTILITY_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/gpumat.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/ts/ts_perf.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/ts.hpp"
 
 //////////////////////////////////////////////////////////////////////
 // random generators
index bc6d0e9..8d30567 100644 (file)
@@ -74,7 +74,7 @@ set(highgui_srcs
     src/window.cpp
     )
 
-file(GLOB highgui_ext_hdrs "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h")
+file(GLOB highgui_ext_hdrs "include/opencv2/*.hpp" "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h")
 
 if(HAVE_QT)
   if (HAVE_QT_OPENGL)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_HIGHGUI_HPP__
 #define __OPENCV_HIGHGUI_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/highgui/highgui_c.h"
 
 #ifdef __cplusplus
index 5bd5fe3..97d9a08 100644 (file)
@@ -32,7 +32,7 @@
 #import <Accelerate/Accelerate.h>
 #import <AVFoundation/AVFoundation.h>
 #import <ImageIO/ImageIO.h>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 /////////////////////////////////////// CvAbstractCamera /////////////////////////////////////
 
index ec8a447..30e9b7f 100644 (file)
@@ -9,8 +9,8 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/highgui.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 2f3f388..082a12f 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifdef HAVE_ANDROID_NATIVE_CAMERA
 
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/imgproc.hpp>
 #include <pthread.h>
 #include <android/log.h>
 #include <camera_activity.hpp>
index a2451a1..c7471e2 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 #include "precomp.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/imgproc.hpp"
 #include <iostream>
 #import <AVFoundation/AVFoundation.h>
 #import <Foundation/NSException.h>
index cfb2e4f..870804d 100644 (file)
@@ -59,11 +59,11 @@ extern "C" {
 
 #include "ffmpeg_codecs.hpp"
 
-#include <libavutil/opt.h>
 #include <libavutil/mathematics.h>
 
 #ifdef WIN32
   #define HAVE_FFMPEG_SWSCALE 1
+  #include <libavutil/opt.h>
   #include <libavcodec/avcodec.h>
   #include <libswscale/swscale.h>
 #else
index 59e19d1..fed59de 100644 (file)
@@ -39,8 +39,8 @@
 //
 //M*/
 #include "precomp.hpp"
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 
 #ifdef HAVE_OPENNI
 
index 34d1518..d44b763 100644 (file)
@@ -29,7 +29,7 @@
  */
 
 #include "precomp.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/imgproc.hpp"
 #include <iostream>
 #import <QTKit/QTKit.h>
 
index b2722cc..39a7a2a 100644 (file)
@@ -51,7 +51,7 @@
 
 #include "grfmt_webp.hpp"
 
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/imgproc.hpp"
 
 namespace cv
 {
index 9572e30..d83401c 100644 (file)
@@ -44,7 +44,7 @@
 
 #include "cvconfig.h"
 
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 #include "opencv2/highgui/highgui_c.h"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/internal.hpp"
index b039045..c89a0a5 100644 (file)
@@ -41,7 +41,7 @@
 
 #include "precomp.hpp"
 #include <map>
-#include "opencv2/core/opengl_interop.hpp"
+#include "opencv2/core/opengl.hpp"
 
 // in later times, use this file as a dispatcher to implementations like cvcap.cpp
 
index 0948197..7144529 100644 (file)
@@ -75,7 +75,7 @@
 #include <algorithm>
 #include <vector>
 #include <functional>
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 #include <GL\gl.h>
 #endif
 
index a23df6b..0769f0c 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
index 5306546..ca22ca0 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace cv;
 
index 4a2757c..584b8c5 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 #undef DEFINE_GUID
 #define DEFINE_GUID(n, fourcc, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) fourcc,
index 80bcfaf..69ebf5c 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 #include <stdio.h>
 
 using namespace cv;
index 43198f5..57b48a2 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace cv;
 using namespace std;
index 285203c..9ca0aaf 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 #if defined HAVE_GTK  || defined HAVE_QT || defined WIN32 || defined _WIN32 || defined HAVE_CARBON || defined HAVE_COCOA
 
index 9f022ca..a13aab0 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 #include <stdio.h>
 
 using namespace cv;
index 3286c0f..ba4241e 100644 (file)
@@ -13,8 +13,8 @@
 # include "cvconfig.h"
 #endif
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include <iostream>
 
index b0c2e53..b91acf7 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace cv;
 using namespace std;
index ce0df40..a9fa36c 100644 (file)
@@ -41,7 +41,7 @@
  //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace cv;
 using namespace std;
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_IMGPROC_HPP__
 #define __OPENCV_IMGPROC_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/imgproc/types_c.h"
 
 #ifdef __cplusplus
index 3048024..19f6271 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/highgui.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 4d8e1da..c3e693c 100644 (file)
@@ -47,7 +47,7 @@
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/internal.hpp"
 #include <math.h>
index 4c973c1..9e937b9 100644 (file)
@@ -9,10 +9,10 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 #include "opencv2/highgui/highgui_c.h"
 #include <iostream>
 
index 1bdc030..96c3777 100644 (file)
@@ -1,2 +1,2 @@
-include/opencv2/core/core.hpp
+include/opencv2/core.hpp
 ../java/generator/src/cpp/core_manual.hpp
index a703fb8..030f6c8 100755 (executable)
@@ -884,7 +884,7 @@ public class %(jc)s {
 #define LOG_TAG "org.opencv.%(m)s"
 
 #include "common.h"
-#include "opencv2/%(m)s/%(m)s.hpp"
+#include "opencv2/%(m)s.hpp"
 
 using namespace cv;
 
index 726dcaf..6b1d100 100644 (file)
@@ -1,7 +1,7 @@
 #define LOG_TAG "org.opencv.core.Mat"
 
 #include "common.h"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 using namespace cv;
 
index 5b92666..f0e5c23 100644 (file)
@@ -5,7 +5,7 @@
 #ifdef HAVE_OPENCV_HIGHGUI
 
 #include "opencv2/highgui/highgui_c.h"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 using namespace cv;
 
 
index bdffe92..27651bc 100644 (file)
@@ -1,5 +1,5 @@
 #include "opencv2/opencv_modules.hpp"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "features2d_manual.hpp"
 
 void Mat_to_vector_int(cv::Mat& mat, std::vector<int>& v_int);
index a2fc627..82d460f 100644 (file)
@@ -1,6 +1,6 @@
 #pragma once
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv
 {
index 4c43757..39fcafa 100644 (file)
@@ -4,7 +4,7 @@
 #include "opencv2/opencv_modules.hpp"
 
 #ifdef HAVE_OPENCV_FEATURES2D
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/features2d.hpp"
 
 #undef SIMPLEBLOB // to solve conflict with wincrypt.h on windows
 
index df1bd14..8f6eb81 100644 (file)
@@ -3,23 +3,23 @@
 #include "opencv2/opencv_modules.hpp"
 
 #ifdef HAVE_OPENCV_NONFREE
-#  include "opencv2/nonfree/nonfree.hpp"
+#  include "opencv2/nonfree.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_FEATURES2D
-#  include "opencv2/features2d/features2d.hpp"
+#  include "opencv2/features2d.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_VIDEO
-#  include "opencv2/video/video.hpp"
+#  include "opencv2/video.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_ML
-#  include "opencv2/ml/ml.hpp"
+#  include "opencv2/ml.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_CONTRIB
-#  include "opencv2/contrib/contrib.hpp"
+#  include "opencv2/contrib.hpp"
 #endif
 
 extern "C" {
index 9f6b1bf..ed964e3 100644 (file)
@@ -1,8 +1,8 @@
 #define LOG_TAG "org.opencv.android.Utils"
 #include "common.h"
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 
 #ifdef __ANDROID__
 #include <android/bitmap.h>
similarity index 99%
rename from modules/legacy/include/opencv2/legacy/legacy.hpp
rename to modules/legacy/include/opencv2/legacy.hpp
index 104aace..7b765b0 100644 (file)
 #ifndef __OPENCV_LEGACY_HPP__
 #define __OPENCV_LEGACY_HPP__
 
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/ml.hpp"
 
 #ifdef __cplusplus
 extern "C" {
index f4c0a99..eae17a5 100644 (file)
@@ -10,7 +10,7 @@
 #include "precomp.hpp"
 #include "opencv2/opencv_modules.hpp"
 #ifdef HAVE_OPENCV_HIGHGUI
-#  include "opencv2/highgui/highgui.hpp"
+#  include "opencv2/highgui.hpp"
 #endif
 #include <stdio.h>
 
index 48b9e4a..6e40e3f 100644 (file)
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/legacy/legacy.hpp"
+#include "opencv2/legacy.hpp"
 
 #include "opencv2/core/internal.hpp"
-#include "opencv2/video/tracking.hpp"
-#include "opencv2/video/background_segm.hpp"
+#include "opencv2/video.hpp"
 
 #include "opencv2/legacy/blobtrack.hpp"
 #include "opencv2/legacy/compat.hpp"
index b4ac3f5..ccfb359 100644 (file)
@@ -9,12 +9,12 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 #include "opencv2/highgui/highgui_c.h"
-#include "opencv2/legacy/legacy.hpp"
+#include "opencv2/legacy.hpp"
 #include <iostream>
 
 #endif
similarity index 99%
rename from modules/ml/include/opencv2/ml/ml.hpp
rename to modules/ml/include/opencv2/ml.hpp
index 71dc541..9592fe7 100644 (file)
@@ -41,7 +41,7 @@
 #ifndef __OPENCV_ML_HPP__
 #define __OPENCV_ML_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include <limits.h>
 
 #ifdef __cplusplus
@@ -327,7 +327,7 @@ struct CV_EXPORTS CvSVMKernel
                                     const float* another, float* results,
                                     double alpha, double beta );
     virtual void calc_intersec( int vcount, int var_count, const float** vecs,
-                            const float* another, float* results );    
+                            const float* another, float* results );
     virtual void calc_chi2( int vec_count, int vec_size, const float** vecs,
                               const float* another, float* results );
     virtual void calc_linear( int vec_count, int vec_size, const float** vecs,
index 63002a8..112e077 100644 (file)
@@ -45,7 +45,7 @@
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/ml.hpp"
 #include "opencv2/core/core_c.h"
 #include "opencv2/core/internal.hpp"
 
index 3ccf10a..f311d48 100644 (file)
@@ -9,8 +9,8 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/ml.hpp"
 #include "opencv2/core/core_c.h"
 #include <iostream>
 #include <map>
index 0c95829..57b9f1e 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_NONFREE_FEATURES_2D_HPP__
 #define __OPENCV_NONFREE_FEATURES_2D_HPP__
 
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/features2d.hpp"
 
 #ifdef __cplusplus
 
index 79a368d..bb03c28 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/nonfree/nonfree.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/nonfree.hpp"
+#include "opencv2/highgui.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 1730b8b..ea0aa6b 100644 (file)
@@ -47,8 +47,8 @@
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/nonfree/nonfree.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/nonfree.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/core/internal.hpp"
 
 #endif
index 3408207..5de09f2 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/calib3d.hpp"
 
 using namespace std;
 using namespace cv;
index 16ae2dc..3984f19 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
index 062ab7b..daa79c9 100644 (file)
@@ -9,10 +9,10 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/nonfree/nonfree.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/nonfree.hpp"
 #include <iostream>
 
 #endif
index 7ca9e3d..9ca0225 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 
 using namespace std;
 using namespace cv;
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_OBJDETECT_HPP__
 #define __OPENCV_OBJDETECT_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 #ifdef __cplusplus
 #include <map>
index 27b4226..2823302 100644 (file)
@@ -1,5 +1,5 @@
 #include "perf_precomp.hpp"
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/imgproc.hpp>
 
 using namespace std;
 using namespace cv;
index d1a7e44..29427f7 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/highgui.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 374d73b..325032c 100644 (file)
@@ -483,7 +483,7 @@ endo: ; // end search for this o
 #endif
 }
 
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/imgproc.hpp>
 
 namespace cv
 {
index 560ed45..2b237a1 100644 (file)
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/core_c.h"
 #include "opencv2/core/internal.hpp"
 
 #include "opencv2/opencv_modules.hpp"
 #ifdef HAVE_OPENCV_HIGHGUI
-#  include "opencv2/highgui/highgui.hpp"
+#  include "opencv2/highgui.hpp"
 #endif
 
 #ifdef HAVE_TEGRA_OPTIMIZATION
index 41ecb3f..38a9e21 100644 (file)
@@ -40,7 +40,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/imgproc.hpp"
 
 using namespace cv;
 using namespace std;
index 9100ab0..cd0fbe4 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/highgui.hpp"
 
 #endif
similarity index 99%
rename from modules/ocl/include/opencv2/ocl/ocl.hpp
rename to modules/ocl/include/opencv2/ocl.hpp
index 9144d13..3cf09dc 100644 (file)
 #include <memory>
 #include <vector>
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/features2d.hpp"
 
 namespace cv
 {
index 525b8fb..08c066a 100644 (file)
@@ -43,7 +43,6 @@
 //
 //M*/
 
-#include "opencv2/objdetect/objdetect.hpp"
 #include "precomp.hpp"
 
 #ifdef HAVE_OPENCL
index a023353..f240061 100644 (file)
@@ -43,7 +43,6 @@
 //
 //M*/
 
-#include "opencv2/core/core.hpp"
 #include "precomp.hpp"
 #include <iomanip>
 #ifdef HAVE_OPENCL
index 34eea55..ac7bd8b 100644 (file)
 #include <string>
 #include <cstdarg>
 #include "cvconfig.h"
-#include "opencv2/core/core.hpp"
-#include "opencv2/highgui/highgui.hpp"
-//#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/video/video.hpp"
-#include "opencv2/ts/ts.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/highgui.hpp"
+//#include "opencv2/calib3d.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/ts.hpp"
 #include "opencv2/ts/ts_perf.hpp"
-#include "opencv2/ocl/ocl.hpp"
-//#include "opencv2/nonfree/nonfree.hpp"
+#include "opencv2/ocl.hpp"
+//#include "opencv2/nonfree.hpp"
 
 #include "utility.hpp"
 #include "interpolation.hpp"
index 73ff267..5cbc536 100644 (file)
 #include <exception>
 #include <stdio.h>
 
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ocl.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/core_c.h"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/ocl/ocl.hpp"
 
 #include "opencv2/core/internal.hpp"
-//#include "opencv2/highgui/highgui.hpp"
+//#include "opencv2/highgui.hpp"
 
 #define __ATI__
 
index a69b008..5d14392 100644 (file)
@@ -45,7 +45,6 @@
 #include <iomanip>
 #include "precomp.hpp"
 #include "mcwutil.hpp"
-//#include "opencv2/highgui/highgui.hpp"
 
 using namespace cv;
 using namespace cv::ocl;
index c630871..25c95eb 100644 (file)
 #include <string>
 #include <cstdarg>
 #include "cvconfig.h"
-#include "opencv2/core/core.hpp"
-#include "opencv2/highgui/highgui.hpp"
-//#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/video/video.hpp"
-#include "opencv2/ts/ts.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/highgui.hpp"
+//#include "opencv2/calib3d.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/ts.hpp"
 #include "opencv2/ts/ts_perf.hpp"
-#include "opencv2/ocl/ocl.hpp"
-//#include "opencv2/nonfree/nonfree.hpp"
+#include "opencv2/ocl.hpp"
+//#include "opencv2/nonfree.hpp"
 
 #include "utility.hpp"
 #include "interpolation.hpp"
index 9bff324..6d2a912 100644 (file)
@@ -43,7 +43,7 @@
 //
 //M*/
 
-#include "opencv2/objdetect/objdetect.hpp"
+#include "opencv2/objdetect.hpp"
 #include "precomp.hpp"
 
 #ifdef HAVE_OPENCL
index 02cfe65..9c27c88 100644 (file)
@@ -44,7 +44,7 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 using namespace std;
 #ifdef HAVE_OPENCL
 
index 9889b92..2e0cb92 100644 (file)
@@ -45,7 +45,6 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/core/core.hpp"
 
 #ifdef HAVE_OPENCL
 
similarity index 98%
rename from modules/photo/include/opencv2/photo/photo.hpp
rename to modules/photo/include/opencv2/photo.hpp
index 6697377..07e7e09 100644 (file)
@@ -43,8 +43,8 @@
 #ifndef __OPENCV_PHOTO_HPP__
 #define __OPENCV_PHOTO_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 
 #include "opencv2/photo/photo_c.h"
 
index 1172333..1fd0c81 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/photo/photo.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/photo.hpp"
+#include "opencv2/highgui.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index df7bcc2..299390f 100644 (file)
@@ -40,8 +40,8 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/photo/photo.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/photo.hpp"
+#include "opencv2/imgproc.hpp"
 #include "fast_nlmeans_denoising_invoker.hpp"
 #include "fast_nlmeans_multi_denoising_invoker.hpp"
 
index c00f9ab..c2e240b 100644 (file)
@@ -43,9 +43,9 @@
 #define __OPENCV_FAST_NLMEANS_DENOISING_INVOKER_HPP__
 
 #include "precomp.hpp"
-#include <opencv2/core/core.hpp>
+#include <opencv2/core.hpp>
 #include <opencv2/core/internal.hpp>
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/imgproc.hpp>
 #include <limits>
 
 #include "fast_nlmeans_denoising_invoker_commons.hpp"
index 7dceec2..fd2b835 100644 (file)
@@ -42,9 +42,9 @@
 #ifndef __OPENCV_FAST_NLMEANS_DENOISING_INVOKER_COMMONS_HPP__
 #define __OPENCV_FAST_NLMEANS_DENOISING_INVOKER_COMMONS_HPP__
 
-#include <opencv2/core/core.hpp>
+#include <opencv2/core.hpp>
 #include <opencv2/core/internal.hpp>
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/imgproc.hpp>
 
 using namespace cv;
 
index 73e0171..037c128 100644 (file)
@@ -43,9 +43,9 @@
 #define __OPENCV_FAST_NLMEANS_MULTI_DENOISING_INVOKER_HPP__
 
 #include "precomp.hpp"
-#include <opencv2/core/core.hpp>
+#include <opencv2/core.hpp>
 #include <opencv2/core/internal.hpp>
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/imgproc.hpp>
 #include <limits>
 
 #include "fast_nlmeans_denoising_invoker_commons.hpp"
index 3185a18..d397ded 100644 (file)
@@ -47,7 +47,7 @@
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/photo/photo.hpp"
+#include "opencv2/photo.hpp"
 
 #ifdef HAVE_TEGRA_OPTIMIZATION
 #include "opencv2/photo/photo_tegra.hpp"
index 55e876c..57248c7 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/photo/photo.hpp"
+#include "opencv2/photo.hpp"
 #include <string>
 
 using namespace cv;
index d1f3dca..278abb4 100644 (file)
@@ -9,9 +9,9 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/photo/photo.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/photo.hpp"
+#include "opencv2/highgui.hpp"
 #include <iostream>
 
 #endif
index d36b6d8..d39e919 100644 (file)
@@ -23,23 +23,23 @@ ocv_module_include_directories(
 
 
 set(opencv_hdrs
-    "${OPENCV_MODULE_opencv_core_LOCATION}/include/opencv2/core/core.hpp"
+    "${OPENCV_MODULE_opencv_core_LOCATION}/include/opencv2/core.hpp"
     "${OPENCV_MODULE_opencv_flann_LOCATION}/include/opencv2/flann/miniflann.hpp"
-    "${OPENCV_MODULE_opencv_imgproc_LOCATION}/include/opencv2/imgproc/imgproc.hpp"
+    "${OPENCV_MODULE_opencv_imgproc_LOCATION}/include/opencv2/imgproc.hpp"
     "${OPENCV_MODULE_opencv_video_LOCATION}/include/opencv2/video/background_segm.hpp"
     "${OPENCV_MODULE_opencv_video_LOCATION}/include/opencv2/video/tracking.hpp"
-    "${OPENCV_MODULE_opencv_photo_LOCATION}/include/opencv2/photo/photo.hpp"
-    "${OPENCV_MODULE_opencv_highgui_LOCATION}/include/opencv2/highgui/highgui.hpp"
-    "${OPENCV_MODULE_opencv_ml_LOCATION}/include/opencv2/ml/ml.hpp"
-    "${OPENCV_MODULE_opencv_features2d_LOCATION}/include/opencv2/features2d/features2d.hpp"
-    "${OPENCV_MODULE_opencv_calib3d_LOCATION}/include/opencv2/calib3d/calib3d.hpp"
-    "${OPENCV_MODULE_opencv_objdetect_LOCATION}/include/opencv2/objdetect/objdetect.hpp"
-    "${OPENCV_MODULE_opencv_softcascade_LOCATION}/include/opencv2/softcascade/softcascade.hpp"
-    "${OPENCV_MODULE_opencv_contrib_LOCATION}/include/opencv2/contrib/contrib.hpp")
+    "${OPENCV_MODULE_opencv_photo_LOCATION}/include/opencv2/photo.hpp"
+    "${OPENCV_MODULE_opencv_highgui_LOCATION}/include/opencv2/highgui.hpp"
+    "${OPENCV_MODULE_opencv_ml_LOCATION}/include/opencv2/ml.hpp"
+    "${OPENCV_MODULE_opencv_features2d_LOCATION}/include/opencv2/features2d.hpp"
+    "${OPENCV_MODULE_opencv_calib3d_LOCATION}/include/opencv2/calib3d.hpp"
+    "${OPENCV_MODULE_opencv_objdetect_LOCATION}/include/opencv2/objdetect.hpp"
+    "${OPENCV_MODULE_opencv_softcascade_LOCATION}/include/opencv2/softcascade.hpp"
+    "${OPENCV_MODULE_opencv_contrib_LOCATION}/include/opencv2/contrib.hpp")
 
 if(HAVE_opencv_nonfree)
   list(APPEND opencv_hdrs     "${OPENCV_MODULE_opencv_nonfree_LOCATION}/include/opencv2/nonfree/features2d.hpp"
-                              "${OPENCV_MODULE_opencv_nonfree_LOCATION}/include/opencv2/nonfree/nonfree.hpp")
+                              "${OPENCV_MODULE_opencv_nonfree_LOCATION}/include/opencv2/nonfree.hpp")
 endif()
 
 set(cv2_generated_hdrs
index 29a9b71..bbdd5ab 100644 (file)
@@ -8,24 +8,24 @@
 
 #include "numpy/ndarrayobject.h"
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/contrib/contrib.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/contrib.hpp"
 #include "opencv2/flann/miniflann.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
-#include "opencv2/ml/ml.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/softcascade/softcascade.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/calib3d.hpp"
+#include "opencv2/ml.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/softcascade.hpp"
 #include "opencv2/video/tracking.hpp"
 #include "opencv2/video/background_segm.hpp"
-#include "opencv2/photo/photo.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/photo.hpp"
+#include "opencv2/highgui.hpp"
 
 #include "opencv2/opencv_modules.hpp"
 
 #ifdef HAVE_OPENCV_NONFREE
-#  include "opencv2/nonfree/nonfree.hpp"
+#  include "opencv2/nonfree.hpp"
 #endif
 
 using cv::flann::IndexParams;
index 06c37cb..f7a6f73 100644 (file)
@@ -1,4 +1,4 @@
-#include "opencv2/legacy/legacy.hpp"
+#include "opencv2/legacy.hpp"
 #include "opencv2/legacy/compat.hpp"
 
 #define OLD_MODULESTR "cv2.cv"
@@ -3882,23 +3882,23 @@ static PyMethodDef old_methods[] = {
 #include "opencv2/opencv_modules.hpp"
 
 #ifdef HAVE_OPENCV_NONFREE
-#  include "opencv2/nonfree/nonfree.hpp"
+#  include "opencv2/nonfree.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_FEATURES2D
-#  include "opencv2/features2d/features2d.hpp"
+#  include "opencv2/features2d.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_VIDEO
-#  include "opencv2/video/video.hpp"
+#  include "opencv2/video.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_ML
-#  include "opencv2/ml/ml.hpp"
+#  include "opencv2/ml.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_CONTRIB
-#  include "opencv2/contrib/contrib.hpp"
+#  include "opencv2/contrib.hpp"
 #endif
 
 static PyObject* init_cv()
index 4c81b04..77597ab 100755 (executable)
@@ -4,17 +4,17 @@ import os, sys, re, string
 
 # the list only for debugging. The real list, used in the real OpenCV build, is specified in CMakeLists.txt
 opencv_hdr_list = [
-"../../core/include/opencv2/core/core.hpp",
+"../../core/include/opencv2/core.hpp",
 "../../flann/include/opencv2/flann/miniflann.hpp",
-"../../ml/include/opencv2/ml/ml.hpp",
-"../../imgproc/include/opencv2/imgproc/imgproc.hpp",
-"../../calib3d/include/opencv2/calib3d/calib3d.hpp",
-"../../features2d/include/opencv2/features2d/features2d.hpp",
+"../../ml/include/opencv2/ml.hpp",
+"../../imgproc/include/opencv2/imgproc.hpp",
+"../../calib3d/include/opencv2/calib3d.hpp",
+"../../features2d/include/opencv2/features2d.hpp",
 "../../video/include/opencv2/video/tracking.hpp",
 "../../video/include/opencv2/video/background_segm.hpp",
-"../../objdetect/include/opencv2/objdetect/objdetect.hpp",
-"../../contrib/include/opencv2/contrib/contrib.hpp",
-"../../highgui/include/opencv2/highgui/highgui.hpp"
+"../../objdetect/include/opencv2/objdetect.hpp",
+"../../contrib/include/opencv2/contrib.hpp",
+"../../highgui/include/opencv2/highgui.hpp"
 ]
 
 """
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_SOFTCASCADE_HPP__
 #define __OPENCV_SOFTCASCADE_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv { namespace softcascade {
 
index b761c88..667e30a 100644 (file)
@@ -51,9 +51,9 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-# include "opencv2/ts/ts.hpp"
-# include "opencv2/softcascade/softcascade.hpp"
-# include "opencv2/highgui/highgui.hpp"
+# include "opencv2/ts.hpp"
+# include "opencv2/softcascade.hpp"
+# include "opencv2/highgui.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 # error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index e694697..2e9d003 100644 (file)
@@ -1,5 +1,5 @@
 #include "perf_precomp.hpp"
-#include <opencv2/imgproc/imgproc.hpp>
+#include <opencv2/imgproc.hpp>
 
 using cv::Rect;
 using std::tr1::get;
index a4eeb59..e72b77d 100644 (file)
 #include "cvconfig.h"
 #endif
 
-#include "opencv2/softcascade/softcascade.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/softcascade.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
 #include "opencv2/core/core_c.h"
 #include "opencv2/core/internal.hpp"
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/ml.hpp"
 
 namespace cv { namespace softcascade { namespace internal
 {
index 6abcbea..03d049b 100644 (file)
@@ -51,9 +51,9 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-# include "opencv2/ts/ts.hpp"
-# include "opencv2/softcascade/softcascade.hpp"
-# include "opencv2/imgproc/imgproc.hpp"
-# include "opencv2/highgui/highgui.hpp"
+# include "opencv2/ts.hpp"
+# include "opencv2/softcascade.hpp"
+# include "opencv2/imgproc.hpp"
+# include "opencv2/highgui.hpp"
 
 #endif
@@ -43,8 +43,8 @@
 #ifndef __OPENCV_STITCHING_STITCHER_HPP__
 #define __OPENCV_STITCHING_STITCHER_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/features2d.hpp"
 #include "opencv2/stitching/warpers.hpp"
 #include "opencv2/stitching/detail/matchers.hpp"
 #include "opencv2/stitching/detail/motion_estimators.hpp"
index feb5349..519ed80 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_STITCHING_AUTOCALIB_HPP__
 #define __OPENCV_STITCHING_AUTOCALIB_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "matchers.hpp"
 
 namespace cv {
index bd93a71..8d47d32 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_STITCHING_BLENDERS_HPP__
 #define __OPENCV_STITCHING_BLENDERS_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv {
 namespace detail {
index a74abcb..00ae4eb 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_STITCHING_CAMERA_HPP__
 #define __OPENCV_STITCHING_CAMERA_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv {
 namespace detail {
index 49676fe..f39785f 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_STITCHING_EXPOSURE_COMPENSATE_HPP__
 #define __OPENCV_STITCHING_EXPOSURE_COMPENSATE_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv {
 namespace detail {
index f9a53ef..d6e3b78 100644 (file)
 #ifndef __OPENCV_STITCHING_MATCHERS_HPP__
 #define __OPENCV_STITCHING_MATCHERS_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/features2d.hpp"
 
 #include "opencv2/opencv_modules.hpp"
 #ifdef HAVE_OPENCV_GPU
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpu.hpp"
 #endif
 
 namespace cv {
index 9ae1102..0d08b09 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_STITCHING_MOTION_ESTIMATORS_HPP__
 #define __OPENCV_STITCHING_MOTION_ESTIMATORS_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "matchers.hpp"
 #include "util.hpp"
 #include "camera.hpp"
index 09a1a10..0587d5a 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_STITCHING_SEAM_FINDERS_HPP__
 
 #include <set>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/opencv_modules.hpp"
 
 namespace cv {
index a8ba816..5c00fa3 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_STITCHING_UTIL_HPP__
 
 #include <list>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 #define ENABLE_LOG 0
 
index ab5d94b..3ff6c9d 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_STITCHING_UTIL_INL_HPP__
 
 #include <queue>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "util.hpp" // Make your IDE see declarations
 
 namespace cv {
index 3627d42..5a6393a 100644 (file)
 #ifndef __OPENCV_STITCHING_WARPERS_HPP__
 #define __OPENCV_STITCHING_WARPERS_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/opencv_modules.hpp"
 #ifdef HAVE_OPENCV_GPU
-# include "opencv2/gpu/gpu.hpp"
+# include "opencv2/gpu.hpp"
 #endif
 
 namespace cv {
index b112123..c5f79f1 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_STITCHING_WARPERS_INL_HPP__
 #define __OPENCV_STITCHING_WARPERS_INL_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "warpers.hpp" // Make your IDE see declarations
 
 namespace cv {
index 559891f..ba34acb 100644 (file)
@@ -9,9 +9,8 @@
 #ifndef __OPENCV_PERF_PRECOMP_HPP__
 #define __OPENCV_PERF_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-
-#include "opencv2/stitching/stitcher.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/stitching.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index fff134c..5afe217 100644 (file)
@@ -1,7 +1,7 @@
 #include "perf_precomp.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/highgui.hpp"
 #include "opencv2/core/internal.hpp"
-#include "opencv2/flann/flann.hpp"
+#include "opencv2/flann.hpp"
 #include "opencv2/opencv_modules.hpp"
 
 using namespace std;
index 9584d48..ebc0709 100644 (file)
@@ -50,7 +50,7 @@ using namespace cv::gpu;
 #endif
 
 #ifdef HAVE_OPENCV_NONFREE
-#include "opencv2/nonfree/nonfree.hpp"
+#include "opencv2/nonfree.hpp"
 
 static bool makeUseOfNonfree = initModule_nonfree();
 #endif
index 80eb186..7d75786 100644 (file)
@@ -55,9 +55,9 @@
 #include <functional>
 #include <sstream>
 #include <cmath>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/core/internal.hpp"
-#include "opencv2/stitching/stitcher.hpp"
+#include "opencv2/stitching.hpp"
 #include "opencv2/stitching/detail/autocalib.hpp"
 #include "opencv2/stitching/detail/blenders.hpp"
 #include "opencv2/stitching/detail/camera.hpp"
 #include "opencv2/stitching/detail/seam_finders.hpp"
 #include "opencv2/stitching/detail/util.hpp"
 #include "opencv2/stitching/detail/warpers.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/calib3d.hpp"
 #ifdef HAVE_OPENCV_GPU
-# include "opencv2/gpu/gpu.hpp"
+# include "opencv2/gpu.hpp"
 #endif
 
 #include "../../imgproc/src/gcgraph.hpp"
index 5509d1c..60d6b3f 100644 (file)
@@ -11,9 +11,9 @@
 
 #include <iostream>
 #include <string>
-#include <opencv2/ts/ts.hpp>
-#include <opencv2/highgui/highgui.hpp>
-#include <opencv2/stitching/stitcher.hpp>
+#include <opencv2/ts.hpp>
+#include <opencv2/highgui.hpp>
+#include <opencv2/stitching.hpp>
 #include <opencv2/stitching/detail/matchers.hpp>
 #include <opencv2/stitching/detail/blenders.hpp>
 
similarity index 99%
rename from modules/ts/include/opencv2/ts/ts.hpp
rename to modules/ts/include/opencv2/ts.hpp
index a10251d..61e75be 100644 (file)
@@ -35,7 +35,7 @@
 #  define GTEST_USES_POSIX_RE 0
 #endif
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cvtest
 {
@@ -578,4 +578,4 @@ int main(int argc, char **argv) \
 
 #endif
 
-#include "ts_perf.hpp"
+#include "opencv2/ts/ts_perf.hpp"
index 0af6718..cd8209f 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef __OPENCV_TS_PERF_HPP__
 #define __OPENCV_TS_PERF_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/features2d.hpp"
 #include "ts_gtest.h"
 
 #ifdef HAVE_TBB
index 10acd7a..0bc0763 100644 (file)
@@ -1,5 +1,5 @@
 #include "opencv2/core/core_c.h"
-#include "opencv2/ts/ts.hpp"
+#include "opencv2/ts.hpp"
 
 #ifdef GTEST_LINKED_AS_SHARED_LIBRARY
 #error ts module should not have GTEST_LINKED_AS_SHARED_LIBRARY defined
index 39ff3df..53922a5 100644 (file)
@@ -179,8 +179,7 @@ The function estimates the optimum transformation (``warpMatrix``) with respect
 
 ..math::
 
-\texttt{warpMatrix} =
-  \texttt{warpMatrix} = \arg\max_{W} \texttt{ECC}(\texttt{templateImage}(x,y),\texttt{inputImage}(x',y'))
+    \texttt{warpMatrix} = \texttt{warpMatrix} = \arg\max_{W} \texttt{ECC}(\texttt{templateImage}(x,y),\texttt{inputImage}(x',y'))
 
 where
 
index 5d298d4..91e9900 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_BACKGROUND_SEGM_HPP__
 #define __OPENCV_BACKGROUND_SEGM_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include <list>
 namespace cv
 {
index b4270d1..509ecda 100644 (file)
@@ -43,8 +43,8 @@
 #ifndef __OPENCV_TRACKING_HPP__
 #define __OPENCV_TRACKING_HPP__
 
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 
 #ifdef __cplusplus
 extern "C" {
index e1c2b56..94f8d92 100644 (file)
@@ -9,10 +9,10 @@
 #ifndef __OPENCV_VIDEO_PRECOMP_HPP__
 #define __OPENCV_VIDEO_PRECOMP_HPP__
 
-#include <opencv2/imgproc/imgproc.hpp>
-#include <opencv2/video/video.hpp>
-#include <opencv2/highgui/highgui.hpp>
-#include "opencv2/ts/ts.hpp"
+#include <opencv2/imgproc.hpp>
+#include <opencv2/video.hpp>
+#include <opencv2/highgui.hpp>
+#include "opencv2/ts.hpp"
 
 #ifdef GTEST_CREATE_SHARED_LIBRARY
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
index 0f3cec1..189f4a3 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/video/video.hpp"
+#include "opencv2/video.hpp"
 
 namespace cv
 {
index a4b869a..7025dff 100644 (file)
@@ -9,12 +9,11 @@
 #ifndef __OPENCV_TEST_PRECOMP_HPP__
 #define __OPENCV_TEST_PRECOMP_HPP__
 
-#include "opencv2/ts/ts.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/ts.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/imgproc/imgproc_c.h"
-#include "opencv2/video/tracking.hpp"
-#include "opencv2/video/background_segm.hpp"
-#include "opencv2/highgui/highgui.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/highgui.hpp"
 #include <iostream>
 
 #endif
index d2ab438..7359f8e 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_VIDEOSTAB_DEBLURRING_HPP__
 
 #include <vector>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv
 {
index 23c5df3..b948c88 100644 (file)
@@ -46,7 +46,7 @@
 #include <cmath>
 #include <queue>
 #include <algorithm>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv
 {
index 4e0fec2..1198231 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <vector>
 #include <string>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv
 {
index 647e6ec..5e57081 100644 (file)
 #include <vector>
 #include <string>
 #include <fstream>
-#include "opencv2/core/core.hpp"
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/features2d.hpp"
 #include "opencv2/opencv_modules.hpp"
 #include "opencv2/videostab/optical_flow.hpp"
 #include "opencv2/videostab/motion_core.hpp"
 #include "opencv2/videostab/outlier_rejection.hpp"
 
 #ifdef HAVE_OPENCV_GPU
-  #include "opencv2/gpu/gpu.hpp"
+  #include "opencv2/gpu.hpp"
 #endif
 
 namespace cv
index 6455b14..402745e 100644 (file)
 #define __OPENCV_VIDEOSTAB_INPAINTINT_HPP__
 
 #include <vector>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/videostab/optical_flow.hpp"
 #include "opencv2/videostab/fast_marching.hpp"
 #include "opencv2/videostab/global_motion.hpp"
-#include "opencv2/photo/photo.hpp"
+#include "opencv2/photo.hpp"
 
 namespace cv
 {
index ce6fadf..9dfed52 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_VIDEOSTAB_LOG_HPP__
 #define __OPENCV_VIDEOSTAB_LOG_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv
 {
index 7d9981d..c72e34f 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_VIDEOSTAB_MOTION_CORE_HPP__
 
 #include <cmath>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 namespace cv
 {
index eb31994..6b8895f 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <vector>
 #include <utility>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/videostab/global_motion.hpp"
 
 namespace cv
index e11b081..61f38fd 100644 (file)
 #ifndef __OPENCV_VIDEOSTAB_OPTICAL_FLOW_HPP__
 #define __OPENCV_VIDEOSTAB_OPTICAL_FLOW_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/opencv_modules.hpp"
 
 #ifdef HAVE_OPENCV_GPU
-  #include "opencv2/gpu/gpu.hpp"
+  #include "opencv2/gpu.hpp"
 #endif
 
 namespace cv
index a21c05d..a9c7578 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_VIDEOSTAB_OUTLIER_REJECTION_HPP__
 
 #include <vector>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/videostab/motion_core.hpp"
 
 namespace cv
index c03052c..a820ede 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_VIDEOSTAB_RING_BUFFER_HPP__
 
 #include <vector>
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/imgproc.hpp"
 
 namespace cv
 {
index 4707d70..c13718f 100644 (file)
@@ -45,8 +45,8 @@
 
 #include <vector>
 #include <ctime>
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
 #include "opencv2/videostab/global_motion.hpp"
 #include "opencv2/videostab/motion_stabilizing.hpp"
 #include "opencv2/videostab/frame_source.hpp"
index 48fa4de..f38de85 100644 (file)
 #define __OPENCV_VIDEOSTAB_WOBBLE_SUPPRESSION_HPP__
 
 #include <vector>
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 #include "opencv2/videostab/global_motion.hpp"
 #include "opencv2/videostab/log.hpp"
 
 #ifdef HAVE_OPENCV_GPU
-  #include "opencv2/gpu/gpu.hpp"
+  #include "opencv2/gpu.hpp"
 #endif
 
 namespace cv
index 5037213..b1dc972 100644 (file)
@@ -46,7 +46,7 @@
 
 #include "opencv2/opencv_modules.hpp"
 #ifdef HAVE_OPENCV_HIGHGUI
-#  include "opencv2/highgui/highgui.hpp"
+#  include "opencv2/highgui.hpp"
 #endif
 
 namespace cv
index 90aa7b5..f5c8288 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/video/video.hpp"
+#include "opencv2/video.hpp"
 #include "opencv2/videostab/optical_flow.hpp"
 #include "opencv2/videostab/ring_buffer.hpp"
 
index 6509a87..ee37a93 100644 (file)
@@ -41,7 +41,6 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/core/core.hpp"
 #include "opencv2/videostab/outlier_rejection.hpp"
 
 namespace cv
index 848c548..bf2d211 100644 (file)
 #include <iostream>
 #include <ctime>
 #include <algorithm>
-#include "opencv2/core/core.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/video/video.hpp"
-#include "opencv2/features2d/features2d.hpp"
-#include "opencv2/calib3d/calib3d.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/features2d.hpp"
+#include "opencv2/calib3d.hpp"
 
 // some aux. functions
 
similarity index 98%
rename from modules/world/include/opencv2/world/world.hpp
rename to modules/world/include/opencv2/world.hpp
index b4bff33..2442f2c 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_WORLD_HPP__
 #define __OPENCV_WORLD_HPP__
 
-#include "opencv2/core/core.hpp"
+#include "opencv2/core.hpp"
 
 #ifdef __cplusplus
 namespace cv
index 2630957..343b875 100644 (file)
 
 #include "opencv2/opencv_modules.hpp"
 #ifdef HAVE_OPENCV_VIDEO
-#include "opencv2/video/video.hpp"
+#include "opencv2/video.hpp"
 #endif
 #ifdef HAVE_OPENCV_FEATURES2D
-#include "opencv2/features2d/features2d.hpp"
+#include "opencv2/features2d.hpp"
 #endif
 #ifdef HAVE_OPENCV_NONFREE
-#include "opencv2/nonfree/nonfree.hpp"
+#include "opencv2/nonfree.hpp"
 #endif
 #ifdef HAVE_OPENCV_ML
-#include "opencv2/ml/ml.hpp"
+#include "opencv2/ml.hpp"
 #endif
 
-#include "opencv2/world/world.hpp"
+#include "opencv2/world.hpp"
 
 #endif
index b498050..1ee6bdb 100644 (file)
@@ -42,8 +42,8 @@
 
 #include <iostream>
 #include <fstream>
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/stitching/stitcher.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/stitching.hpp"
 
 using namespace std;
 using namespace cv;
index ee967be..effd9e6 100644 (file)
@@ -3,11 +3,11 @@
 #include <fstream>
 #include <sstream>
 #include <stdexcept>
-#include "opencv2/core/core.hpp"
-#include "opencv2/video/video.hpp"
-#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/videostab/videostab.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/video.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/videostab.hpp"
 #include "opencv2/opencv_modules.hpp"
 
 #define arg(name) cmd.get<string>(name)
index 8426cca..ca6937e 100644 (file)
@@ -1,6 +1,6 @@
 #include <iostream>
 
-#include "opencv2/core/opengl_interop.hpp"
+#include "opencv2/core/opengl.hpp"
 #include "opencv2/highgui/highgui.hpp"
 #include "opencv2/gpu/gpu.hpp"
 
index 5b84a5b..80eb44b 100644 (file)
@@ -24,7 +24,7 @@ int main()
 #endif
 
 #include "opencv2/core/core.hpp"
-#include "opencv2/core/opengl_interop.hpp"
+#include "opencv2/core/opengl.hpp"
 #include "opencv2/core/gpumat.hpp"
 #include "opencv2/highgui/highgui.hpp"
 
index 9676104..a4c0685 100644 (file)
@@ -5,7 +5,7 @@
 #include <numeric>
 
 #include <opencv2/core/core.hpp>
-#include <opencv2/core/opengl_interop.hpp>
+#include <opencv2/core/opengl.hpp>
 #include <opencv2/gpu/gpu.hpp>
 #include <opencv2/highgui/highgui.hpp>
 #include <opencv2/contrib/contrib.hpp>