diff --git a/modules/cnn_3dobj/include/opencv2/cnn_3dobj.hpp b/modules/cnn_3dobj/include/opencv2/cnn_3dobj.hpp index 36d799f8f3c..43dc6e0cc58 100644 --- a/modules/cnn_3dobj/include/opencv2/cnn_3dobj.hpp +++ b/modules/cnn_3dobj/include/opencv2/cnn_3dobj.hpp @@ -66,7 +66,6 @@ the use of this software, even if advised of the possibility of such damage. #include "opencv2/viz/vizcore.hpp" #include "opencv2/highgui.hpp" -#include "opencv2/highgui/highgui_c.h" #include "opencv2/imgproc.hpp" /** @defgroup cnn_3dobj 3D object recognition and pose estimation API diff --git a/modules/cvv/src/qtutil/filter/sobelfilterwidget.cpp b/modules/cvv/src/qtutil/filter/sobelfilterwidget.cpp index c9f0a8aec0c..d4f67369c74 100644 --- a/modules/cvv/src/qtutil/filter/sobelfilterwidget.cpp +++ b/modules/cvv/src/qtutil/filter/sobelfilterwidget.cpp @@ -1,7 +1,6 @@ #include "sobelfilterwidget.hpp" #include "opencv2/imgproc.hpp" -#include "opencv2/imgproc/types_c.h" #include #include diff --git a/modules/dpm/src/dpm_cascade.cpp b/modules/dpm/src/dpm_cascade.cpp index e64f7a50557..542cef7d94a 100644 --- a/modules/dpm/src/dpm_cascade.cpp +++ b/modules/dpm/src/dpm_cascade.cpp @@ -62,7 +62,7 @@ void DPMCascade::loadCascadeModel(const string &modelPath) if (!is_success) { string errorMessage = format("Unable to parse the model: %s", modelPath.c_str()); - CV_Error(CV_StsBadArg, errorMessage); + CV_Error(Error::StsBadArg, errorMessage); } model.initModel(); diff --git a/modules/dpm/src/dpm_feature.cpp b/modules/dpm/src/dpm_feature.cpp index c4fb7c75b59..4670f686d1e 100644 --- a/modules/dpm/src/dpm_feature.cpp +++ b/modules/dpm/src/dpm_feature.cpp @@ -81,7 +81,7 @@ void ParalComputePyramid::initialize() if (params.maxScale < params.interval) { - CV_Error(CV_StsBadArg, "The image is too small to create a pyramid"); + CV_Error(Error::StsBadArg, "The image is too small to create a pyramid"); return; } diff --git a/modules/dpm/src/dpm_feature.hpp b/modules/dpm/src/dpm_feature.hpp index 1c06d95af99..0a83507ea8c 100644 --- a/modules/dpm/src/dpm_feature.hpp +++ b/modules/dpm/src/dpm_feature.hpp @@ -43,7 +43,6 @@ #define __DPM_FEATURE__ #include "opencv2/core.hpp" -#include "opencv2/core/core_c.h" #include "opencv2/imgproc.hpp" #include diff --git a/modules/img_hash/src/precomp.hpp b/modules/img_hash/src/precomp.hpp index 24bb8168a8f..1fa7c0cb8fa 100644 --- a/modules/img_hash/src/precomp.hpp +++ b/modules/img_hash/src/precomp.hpp @@ -8,7 +8,6 @@ #include "opencv2/core.hpp" #include "opencv2/core/base.hpp" #include "opencv2/imgproc.hpp" -#include "opencv2/imgproc/types_c.h" #include "opencv2/img_hash.hpp" #include diff --git a/modules/xfeatures2d/src/affine_feature2d.cpp b/modules/xfeatures2d/src/affine_feature2d.cpp index 7c7e1873210..d6dd00b7c92 100644 --- a/modules/xfeatures2d/src/affine_feature2d.cpp +++ b/modules/xfeatures2d/src/affine_feature2d.cpp @@ -8,7 +8,6 @@ #include "precomp.hpp" #include "opencv2/imgproc.hpp" -#include "opencv2/imgproc/types_c.h" namespace { diff --git a/modules/xphoto/samples/dct_image_denoising.cpp b/modules/xphoto/samples/dct_image_denoising.cpp index e305a23efbf..387ded0f486 100644 --- a/modules/xphoto/samples/dct_image_denoising.cpp +++ b/modules/xphoto/samples/dct_image_denoising.cpp @@ -4,7 +4,6 @@ #include "opencv2/highgui.hpp" #include "opencv2/core/utility.hpp" -#include "opencv2/imgproc/types_c.h" const char* keys = { diff --git a/modules/xphoto/src/dct_image_denoising.cpp b/modules/xphoto/src/dct_image_denoising.cpp index c43bbb43c1c..31159068b7a 100644 --- a/modules/xphoto/src/dct_image_denoising.cpp +++ b/modules/xphoto/src/dct_image_denoising.cpp @@ -47,10 +47,8 @@ #include "opencv2/imgproc.hpp" #include "opencv2/core.hpp" -#include "opencv2/core/core_c.h" #include "opencv2/core/types.hpp" -#include "opencv2/core/types_c.h" namespace cv { @@ -137,9 +135,9 @@ namespace xphoto { CV_Assert( src.type() == CV_MAKE_TYPE(CV_32F, 3) ); - cv::Matx33f mt(cvInvSqrt(3.0f), cvInvSqrt(3.0f), cvInvSqrt(3.0f), - cvInvSqrt(2.0f), 0.0f, -cvInvSqrt(2.0f), - cvInvSqrt(6.0f), -2.0f*cvInvSqrt(6.0f), cvInvSqrt(6.0f)); + cv::Matx33f mt(pow(3.0f, -0.5f), pow(3.0f, -0.5f), pow(3.0f, -0.5f), + pow(2.0f, -0.5f), 0.0f, -pow(2.0f, -0.5f), + pow(6.0f, -0.5f), -2.0f*pow(6.0f, -0.5f), pow(6.0f, -0.5f)); cv::transform(src, dst, mt); @@ -175,7 +173,7 @@ namespace xphoto else if ( img.type() == CV_32FC1 ) grayDctDenoising( img, img, sigma, psize ); else - CV_Error_( CV_StsNotImplemented, + CV_Error_( Error::StsNotImplemented, ("Unsupported source image format (=%d)", img.type()) ); img.convertTo( dst, src.type() );