Skip to content

Commit 2700b7d

Browse files
committed
ximgproc: fix namespace
1 parent a30fb44 commit 2700b7d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

modules/ximgproc/include/opencv2/ximgproc/peilin.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <opencv2/core.hpp>
99

10-
namespace cv
11-
{
10+
namespace cv { namespace ximgproc {
11+
1212
//! @addtogroup ximgproc
1313
//! @{
1414

@@ -26,6 +26,7 @@ namespace cv
2626
CV_EXPORTS Matx23d PeiLinNormalization ( InputArray I );
2727
/** @overload */
2828
CV_EXPORTS_W void PeiLinNormalization ( InputArray I, OutputArray T );
29-
}
29+
30+
}} // namespace
3031

3132
#endif

modules/ximgproc/samples/peilin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ int main(int argc, char** argv)
4848
std::cout << "Couldn't open image " << filename2 << std::endl;
4949
return 0;
5050
}
51-
cv::Mat N = I & cv::PeiLinNormalization ( I );
52-
cv::Mat D = cv::PeiLinNormalization ( J ) & I;
51+
cv::Mat N = I & cv::ximgproc::PeiLinNormalization ( I );
52+
cv::Mat D = cv::ximgproc::PeiLinNormalization ( J ) & I;
5353
cv::imshow ( "I", I );
5454
cv::imshow ( "N", N );
5555
cv::imshow ( "J", J );

modules/ximgproc/src/peilin.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
#include "precomp.hpp"
66

7-
namespace cv
8-
{
7+
namespace cv { namespace ximgproc {
98

109
static inline Moments operator& ( const Moments & lhs, const Matx22d & rhs )
1110
{
@@ -54,4 +53,4 @@ namespace cv
5453
T.assign ( Mat ( PeiLinNormalization ( I ) ) );
5554
}
5655

57-
}
56+
}} // namespace

0 commit comments

Comments
 (0)