Commit f94610a0 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1455 from alalek:ximgproc_fix_namespace

parents a30fb44d 2700b7d4
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#include <opencv2/core.hpp> #include <opencv2/core.hpp>
namespace cv namespace cv { namespace ximgproc {
{
//! @addtogroup ximgproc //! @addtogroup ximgproc
//! @{ //! @{
...@@ -26,6 +26,7 @@ namespace cv ...@@ -26,6 +26,7 @@ namespace cv
CV_EXPORTS Matx23d PeiLinNormalization ( InputArray I ); CV_EXPORTS Matx23d PeiLinNormalization ( InputArray I );
/** @overload */ /** @overload */
CV_EXPORTS_W void PeiLinNormalization ( InputArray I, OutputArray T ); CV_EXPORTS_W void PeiLinNormalization ( InputArray I, OutputArray T );
}
}} // namespace
#endif #endif
...@@ -48,8 +48,8 @@ int main(int argc, char** argv) ...@@ -48,8 +48,8 @@ int main(int argc, char** argv)
std::cout << "Couldn't open image " << filename2 << std::endl; std::cout << "Couldn't open image " << filename2 << std::endl;
return 0; return 0;
} }
cv::Mat N = I & cv::PeiLinNormalization ( I ); cv::Mat N = I & cv::ximgproc::PeiLinNormalization ( I );
cv::Mat D = cv::PeiLinNormalization ( J ) & I; cv::Mat D = cv::ximgproc::PeiLinNormalization ( J ) & I;
cv::imshow ( "I", I ); cv::imshow ( "I", I );
cv::imshow ( "N", N ); cv::imshow ( "N", N );
cv::imshow ( "J", J ); cv::imshow ( "J", J );
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
#include "precomp.hpp" #include "precomp.hpp"
namespace cv namespace cv { namespace ximgproc {
{
static inline Moments operator& ( const Moments & lhs, const Matx22d & rhs ) static inline Moments operator& ( const Moments & lhs, const Matx22d & rhs )
{ {
...@@ -54,4 +53,4 @@ namespace cv ...@@ -54,4 +53,4 @@ namespace cv
T.assign ( Mat ( PeiLinNormalization ( I ) ) ); T.assign ( Mat ( PeiLinNormalization ( I ) ) );
} }
} }} // namespace
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment