1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-16 05:17:39 +08:00

added namespace ximgproc

This commit is contained in:
Alexander Shishkov
2014-08-15 13:08:32 +04:00
parent 6ebd07b299
commit e06ef978f2
5 changed files with 27 additions and 23 deletions

View File

@@ -1,10 +1,9 @@
#include "opencv2/ximpgroc/structured_edge_detection.hpp"
#include "opencv2/imgproc.hpp"
#include <opencv2/ximgproc.hpp>
#include "opencv2/highgui.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/imgproc/types_c.h"
using namespace cv;
using namespace cv::ximgproc;
const char* keys =
{
@@ -49,8 +48,8 @@ int main( int argc, const char** argv )
cv::Mat edges(image.size(), image.type());
cv::Ptr<cv::StructuredEdgeDetection> pDollar =
cv::createStructuredEdgeDetection(modelFilename);
cv::Ptr<StructuredEdgeDetection> pDollar =
createStructuredEdgeDetection(modelFilename);
pDollar->detectEdges(image, edges);
if ( outFilename == "" )