From 87ad9b1c3e9e8ba448997c3419b65040b02c13dc Mon Sep 17 00:00:00 2001 From: Kirill Kornyakov Date: Thu, 14 Jul 2011 12:50:07 +0000 Subject: [PATCH] samples C/C++: fixed compilation problem on Ubuntu --- samples/c/find_obj.cpp | 1 + samples/c/find_obj_ferns.cpp | 1 + samples/c/mser_sample.cpp | 1 + samples/c/one_way_sample.cpp | 2 ++ samples/cpp/calibration_artificial.cpp | 10 ++++++---- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/samples/c/find_obj.cpp b/samples/c/find_obj.cpp index cd88b8a..693e16b 100644 --- a/samples/c/find_obj.cpp +++ b/samples/c/find_obj.cpp @@ -12,6 +12,7 @@ #include #include +#include using namespace std; void help() diff --git a/samples/c/find_obj_ferns.cpp b/samples/c/find_obj_ferns.cpp index e944acb..efb6670 100644 --- a/samples/c/find_obj_ferns.cpp +++ b/samples/c/find_obj_ferns.cpp @@ -7,6 +7,7 @@ #include #include #include +#include using namespace cv; void help() diff --git a/samples/c/mser_sample.cpp b/samples/c/mser_sample.cpp index 94519d6..9aa0e33 100644 --- a/samples/c/mser_sample.cpp +++ b/samples/c/mser_sample.cpp @@ -6,6 +6,7 @@ #include "opencv2/features2d/features2d.hpp" #include "opencv2/imgproc/imgproc_c.h" +#include void help() { diff --git a/samples/c/one_way_sample.cpp b/samples/c/one_way_sample.cpp index 476be22..8907cbf 100644 --- a/samples/c/one_way_sample.cpp +++ b/samples/c/one_way_sample.cpp @@ -13,6 +13,8 @@ #include "opencv2/imgproc/imgproc_c.h" #include +#include + void help() { printf("\nThis program demonstrates the one way interest point descriptor found in features2d.hpp\n" diff --git a/samples/cpp/calibration_artificial.cpp b/samples/cpp/calibration_artificial.cpp index 2f683ff..9952ff1 100644 --- a/samples/cpp/calibration_artificial.cpp +++ b/samples/cpp/calibration_artificial.cpp @@ -1,14 +1,16 @@ +#include "opencv2/calib3d/calib3d.hpp" +#include "opencv2/imgproc/imgproc.hpp" +#include "opencv2/highgui/highgui.hpp" + #include #include #include #include - -#include "opencv2/calib3d/calib3d.hpp" -#include "opencv2/imgproc/imgproc.hpp" -#include "opencv2/highgui/highgui.hpp" +#include using namespace cv; using namespace std; + void help() { printf( "\nThis code generates an artificial camera and artificial chessboard images,\n" -- 2.7.4