mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
fixed warnings and errors reported by VS2010
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* the script demostrates iterative construction of
|
||||
delaunay triangulation and voronoi tesselation */
|
||||
|
||||
|
||||
+3
-1
@@ -1,6 +1,8 @@
|
||||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
char file_name[] = "baboon.jpg";
|
||||
|
||||
int _brightness = 100;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
char wndname[] = "Distance transform";
|
||||
char tbarname[] = "Threshold";
|
||||
int mask_size = CV_DIST_MASK_5;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
|
||||
char wndname[] = "Edge";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
|
||||
IplImage* color_img0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "opencv2/highgui/highgui.hpp"
|
||||
#include "opencv2/imgproc/imgproc.hpp"
|
||||
#include "opencv2/imgproc/imgproc_c.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "opencv2/highgui/highgui.hpp"
|
||||
#include "opencv2/imgproc/imgproc.hpp"
|
||||
#include "opencv2/imgproc/imgproc_c.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
IplImage* src = 0;
|
||||
IplImage* dst = 0;
|
||||
|
||||
@@ -67,7 +67,6 @@ int main(int argc, char** argv)
|
||||
// run the detector with default parameters. to get a higher hit-rate
|
||||
// (and more false alarms, respectively), decrease the hitThreshold and
|
||||
// groupThreshold (set groupThreshold to 0 to turn off the grouping completely).
|
||||
int can = img.channels();
|
||||
hog.detectMultiScale(img, found, 0, Size(8,8), Size(32,32), 1.05, 2);
|
||||
t = (double)getTickCount() - t;
|
||||
printf("tdetection time = %gms\n", t*1000./cv::getTickFrequency());
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// It loads several images subsequentally and tries to find squares in
|
||||
// each image
|
||||
//
|
||||
#include "opencv2/imgproc/imgproc.hpp"
|
||||
#include "opencv2/imgproc/imgproc_c.h"
|
||||
#include "opencv2/highgui/highgui.hpp"
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
Reference in New Issue
Block a user