Skip to content

Commit ac9ef6c

Browse files
authored
Merge pull request #3870 from vrabaud:remove_c
Remove useless C headers
2 parents 0e5254e + 45c8664 commit ac9ef6c

File tree

9 files changed

+6
-14
lines changed

9 files changed

+6
-14
lines changed

modules/cnn_3dobj/include/opencv2/cnn_3dobj.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ the use of this software, even if advised of the possibility of such damage.
6666

6767
#include "opencv2/viz/vizcore.hpp"
6868
#include "opencv2/highgui.hpp"
69-
#include "opencv2/highgui/highgui_c.h"
7069
#include "opencv2/imgproc.hpp"
7170

7271
/** @defgroup cnn_3dobj 3D object recognition and pose estimation API

modules/cvv/src/qtutil/filter/sobelfilterwidget.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "sobelfilterwidget.hpp"
22

33
#include "opencv2/imgproc.hpp"
4-
#include "opencv2/imgproc/types_c.h"
54

65
#include <QVBoxLayout>
76
#include <QLabel>

modules/dpm/src/dpm_cascade.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void DPMCascade::loadCascadeModel(const string &modelPath)
6262
if (!is_success)
6363
{
6464
string errorMessage = format("Unable to parse the model: %s", modelPath.c_str());
65-
CV_Error(CV_StsBadArg, errorMessage);
65+
CV_Error(Error::StsBadArg, errorMessage);
6666
}
6767

6868
model.initModel();

modules/dpm/src/dpm_feature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void ParalComputePyramid::initialize()
8181

8282
if (params.maxScale < params.interval)
8383
{
84-
CV_Error(CV_StsBadArg, "The image is too small to create a pyramid");
84+
CV_Error(Error::StsBadArg, "The image is too small to create a pyramid");
8585
return;
8686
}
8787

modules/dpm/src/dpm_feature.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#define __DPM_FEATURE__
4444

4545
#include "opencv2/core.hpp"
46-
#include "opencv2/core/core_c.h"
4746
#include "opencv2/imgproc.hpp"
4847

4948
#include <string>

modules/img_hash/src/precomp.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "opencv2/core.hpp"
99
#include "opencv2/core/base.hpp"
1010
#include "opencv2/imgproc.hpp"
11-
#include "opencv2/imgproc/types_c.h"
1211
#include "opencv2/img_hash.hpp"
1312

1413
#include <bitset>

modules/xfeatures2d/src/affine_feature2d.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "precomp.hpp"
1010
#include "opencv2/imgproc.hpp"
11-
#include "opencv2/imgproc/types_c.h"
1211

1312
namespace {
1413

modules/xphoto/samples/dct_image_denoising.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "opencv2/highgui.hpp"
55

66
#include "opencv2/core/utility.hpp"
7-
#include "opencv2/imgproc/types_c.h"
87

98
const char* keys =
109
{

modules/xphoto/src/dct_image_denoising.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@
4747
#include "opencv2/imgproc.hpp"
4848

4949
#include "opencv2/core.hpp"
50-
#include "opencv2/core/core_c.h"
5150

5251
#include "opencv2/core/types.hpp"
53-
#include "opencv2/core/types_c.h"
5452

5553
namespace cv
5654
{
@@ -137,9 +135,9 @@ namespace xphoto
137135
{
138136
CV_Assert( src.type() == CV_MAKE_TYPE(CV_32F, 3) );
139137

140-
cv::Matx33f mt(cvInvSqrt(3.0f), cvInvSqrt(3.0f), cvInvSqrt(3.0f),
141-
cvInvSqrt(2.0f), 0.0f, -cvInvSqrt(2.0f),
142-
cvInvSqrt(6.0f), -2.0f*cvInvSqrt(6.0f), cvInvSqrt(6.0f));
138+
cv::Matx33f mt(pow(3.0f, -0.5f), pow(3.0f, -0.5f), pow(3.0f, -0.5f),
139+
pow(2.0f, -0.5f), 0.0f, -pow(2.0f, -0.5f),
140+
pow(6.0f, -0.5f), -2.0f*pow(6.0f, -0.5f), pow(6.0f, -0.5f));
143141

144142
cv::transform(src, dst, mt);
145143

@@ -175,7 +173,7 @@ namespace xphoto
175173
else if ( img.type() == CV_32FC1 )
176174
grayDctDenoising( img, img, sigma, psize );
177175
else
178-
CV_Error_( CV_StsNotImplemented,
176+
CV_Error_( Error::StsNotImplemented,
179177
("Unsupported source image format (=%d)", img.type()) );
180178

181179
img.convertTo( dst, src.type() );

0 commit comments

Comments
 (0)