Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
042271f5
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
042271f5
编写于
11月 26, 2010
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use the new-style headers in the samples to improve OpenCV build time.
上级
54ef4c08
变更
55
展开全部
隐藏空白更改
内联
并排
Showing
55 changed file
with
795 addition
and
370 deletion
+795
-370
samples/c/adaptiveskindetector.cpp
samples/c/adaptiveskindetector.cpp
+2
-2
samples/c/bgfg_codebook.cpp
samples/c/bgfg_codebook.cpp
+5
-4
samples/c/bgfg_segm.cpp
samples/c/bgfg_segm.cpp
+3
-2
samples/c/blobtrack_sample.cpp
samples/c/blobtrack_sample.cpp
+5
-2
samples/c/calibration_artificial.cpp
samples/c/calibration_artificial.cpp
+3
-2
samples/c/camshiftdemo.c
samples/c/camshiftdemo.c
+2
-9
samples/c/contours.c
samples/c/contours.c
+2
-11
samples/c/convert_cascade.c
samples/c/convert_cascade.c
+3
-9
samples/c/convexhull.c
samples/c/convexhull.c
+2
-11
samples/c/delaunay.c
samples/c/delaunay.c
+2
-11
samples/c/demhist.c
samples/c/demhist.c
+2
-11
samples/c/dft.c
samples/c/dft.c
+2
-5
samples/c/distrans.c
samples/c/distrans.c
+2
-9
samples/c/drawing.c
samples/c/drawing.c
+2
-12
samples/c/edge.c
samples/c/edge.c
+2
-10
samples/c/facedetect.cpp
samples/c/facedetect.cpp
+3
-9
samples/c/fback.cpp
samples/c/fback.cpp
+3
-4
samples/c/fback_c.c
samples/c/fback_c.c
+2
-4
samples/c/ffilldemo.c
samples/c/ffilldemo.c
+2
-12
samples/c/find_obj.cpp
samples/c/find_obj.cpp
+5
-6
samples/c/find_obj_ferns.cpp
samples/c/find_obj_ferns.cpp
+4
-3
samples/c/fitellipse.cpp
samples/c/fitellipse.cpp
+2
-10
samples/c/houghlines.c
samples/c/houghlines.c
+2
-7
samples/c/image.cpp
samples/c/image.cpp
+624
-20
samples/c/inpaint.cpp
samples/c/inpaint.cpp
+2
-8
samples/c/kalman.c
samples/c/kalman.c
+2
-11
samples/c/kmeans.c
samples/c/kmeans.c
+2
-11
samples/c/laplace.c
samples/c/laplace.c
+2
-9
samples/c/latentsvmdetect.cpp
samples/c/latentsvmdetect.cpp
+3
-4
samples/c/letter_recog.cpp
samples/c/letter_recog.cpp
+2
-2
samples/c/lkdemo.c
samples/c/lkdemo.c
+3
-13
samples/c/minarea.c
samples/c/minarea.c
+2
-11
samples/c/morphology.c
samples/c/morphology.c
+2
-6
samples/c/motempl.c
samples/c/motempl.c
+3
-14
samples/c/mser_sample.cpp
samples/c/mser_sample.cpp
+31
-33
samples/c/mushroom.cpp
samples/c/mushroom.cpp
+2
-1
samples/c/one_way_sample.cpp
samples/c/one_way_sample.cpp
+4
-3
samples/c/peopledetect.cpp
samples/c/peopledetect.cpp
+4
-2
samples/c/polar_transforms.c
samples/c/polar_transforms.c
+2
-10
samples/c/pyramid_segmentation.c
samples/c/pyramid_segmentation.c
+2
-11
samples/c/squares.c
samples/c/squares.c
+2
-8
samples/c/stereo_calib.cpp
samples/c/stereo_calib.cpp
+3
-4
samples/c/stereo_match.cpp
samples/c/stereo_match.cpp
+4
-2
samples/c/tree_engine.cpp
samples/c/tree_engine.cpp
+1
-1
samples/c/watershed.cpp
samples/c/watershed.cpp
+2
-8
samples/cpp/3calibration.cpp
samples/cpp/3calibration.cpp
+4
-1
samples/cpp/brief_match_test.cpp
samples/cpp/brief_match_test.cpp
+4
-1
samples/cpp/connected_components.cpp
samples/cpp/connected_components.cpp
+4
-2
samples/cpp/contours2.cpp
samples/cpp/contours2.cpp
+3
-2
samples/cpp/generic_descriptor_match.cpp
samples/cpp/generic_descriptor_match.cpp
+1
-0
samples/cpp/morphology2.cpp
samples/cpp/morphology2.cpp
+2
-2
samples/cpp/segment_objects.cpp
samples/cpp/segment_objects.cpp
+3
-2
samples/cpp/starter_imagelist.cpp
samples/cpp/starter_imagelist.cpp
+2
-1
samples/cpp/starter_video.cpp
samples/cpp/starter_video.cpp
+2
-1
samples/cpp/video_homography.cpp
samples/cpp/video_homography.cpp
+4
-1
未找到文件。
samples/c/adaptiveskindetector.cpp
浏览文件 @
042271f5
...
...
@@ -39,8 +39,8 @@
#include <cstdio>
#include <cstring>
#include <ctime>
#include <
cvaux.h
>
#include <
highgui.h
>
#include <
opencv2/contrib/contrib.hpp
>
#include <
opencv2/highgui/highgui.hpp
>
class
ASDFrameHolder
{
...
...
samples/c/bgfg_codebook.cpp
浏览文件 @
042271f5
...
...
@@ -21,13 +21,14 @@
ISBN-10: 0596516134 or: ISBN-13: 978-0596516130
************************************************** */
#include "cvaux.h"
#include "cxmisc.h"
#include "highgui.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <opencv2/video/background_segm.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/highgui/highgui.hpp>
//VARIABLES for CODEBOOK METHOD:
CvBGCodeBookModel
*
model
=
0
;
const
int
NCHANNELS
=
3
;
...
...
@@ -220,7 +221,7 @@ int main(int argc, char** argv)
if
(
ch
[
n
]
)
{
int
v
=
ptr
[
n
]
+
(
c
==
'i'
||
c
==
'l'
?
1
:
-
1
);
ptr
[
n
]
=
CV_CAST_8U
(
v
);
ptr
[
n
]
=
cv
::
saturate_cast
<
uchar
>
(
v
);
}
printf
(
"%d,"
,
ptr
[
n
]);
}
...
...
samples/c/bgfg_segm.cpp
浏览文件 @
042271f5
#include "cvaux.h"
#include "highgui.h"
#include <opencv2/video/background_segm.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <stdio.h>
//this is a sample for foreground detection functions
...
...
samples/c/blobtrack_sample.cpp
浏览文件 @
042271f5
#include "cvaux.h"
#include "highgui.h"
#include <opencv2/video/background_segm.hpp>
#include <opencv2/legacy/blobtrack.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <stdio.h>
/* Select appropriate case insensitive string comparison function: */
...
...
samples/c/calibration_artificial.cpp
浏览文件 @
042271f5
...
...
@@ -3,8 +3,9 @@
#include <algorithm>
#include <iterator>
#include "cv.h"
#include "highgui.h"
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
using
namespace
cv
;
using
namespace
std
;
...
...
samples/c/camshiftdemo.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#include <opencv2/video/tracking.hpp>
#include <opencv2/highgui/highgui.hpp>
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <ctype.h>
#endif
IplImage
*
image
=
0
,
*
hsv
=
0
,
*
hue
=
0
,
*
mask
=
0
,
*
backproject
=
0
,
*
histimg
=
0
;
CvHistogram
*
hist
=
0
;
...
...
samples/c/contours.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <math.h>
#endif
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#define w 500
int
levels
=
3
;
...
...
samples/c/convert_cascade.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <ctype.h>
#include <stdio.h>
#endif
int
main
(
int
argc
,
char
**
argv
)
{
...
...
samples/c/convexhull.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdlib.h>
#endif
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#define ARRAY 1
...
...
samples/c/delaunay.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#endif
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
/* the script demostrates iterative construction of
delaunay triangulation and voronoi tesselation */
...
...
samples/c/demhist.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#endif
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
char
file_name
[]
=
"baboon.jpg"
;
...
...
samples/c/dft.c
浏览文件 @
042271f5
#define CV_NO_BACKWARD_COMPATIBILITY
#include <cxcore.h>
#include <cv.h>
#include <highgui.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
// Rearrange the quadrants of Fourier image so that the origin is at
// the image center
...
...
samples/c/distrans.c
浏览文件 @
042271f5
#define CV_NO_BACKWARD_COMPATIBILITY
#ifdef _CH_
#pragma package <opencv>
#endif
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
char
wndname
[]
=
"Distance transform"
;
char
tbarname
[]
=
"Threshold"
;
...
...
samples/c/drawing.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdlib.h>
#include <stdio.h>
#endif
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#define NUMBER 100
#define DELAY 5
...
...
samples/c/edge.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#endif
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
char
wndname
[]
=
"Edge"
;
char
tbarname
[]
=
"Threshold"
;
...
...
samples/c/facedetect.cpp
浏览文件 @
042271f5
#define CV_NO_BACKWARD_COMPATIBILITY
#include "cv.h"
#include "highgui.h"
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <cstdio>
#ifdef _EiC
#define WIN32
#endif
using
namespace
std
;
using
namespace
cv
;
...
...
samples/c/fback.cpp
浏览文件 @
042271f5
#undef _GLIBCXX_DEBUG
#include "cv.h"
#include "highgui.h"
#include <opencv2/video/tracking.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
using
namespace
cv
;
...
...
samples/c/fback_c.c
浏览文件 @
042271f5
#undef _GLIBCXX_DEBUG
#include "cv.h"
#include "highgui.h"
#include <opencv2/video/tracking.hpp>
#include <opencv2/highgui/highgui.hpp>
void
drawOptFlowMap
(
const
CvMat
*
flow
,
CvMat
*
cflowmap
,
int
step
,
double
scale
,
CvScalar
color
)
...
...
samples/c/ffilldemo.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <stdlib.h>
#endif
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
IplImage
*
color_img0
;
IplImage
*
mask
;
...
...
samples/c/find_obj.cpp
浏览文件 @
042271f5
...
...
@@ -4,12 +4,11 @@
* Author: Liu Liu
* liuliu.1987+opencv@gmail.com
*/
#include <cv.h>
#include <highgui.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <iostream>
#include <vector>
...
...
samples/c/find_obj_ferns.cpp
浏览文件 @
042271f5
#include <cv.h>
#include <cvaux.h>
#include <highgui.h>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include <algorithm>
#include <iostream>
...
...
samples/c/fitellipse.cpp
浏览文件 @
042271f5
...
...
@@ -14,16 +14,8 @@
*
*
********************************************************************************/
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#endif
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/highgui/highgui.hpp"
int
slider_pos
=
70
;
...
...
samples/c/houghlines.c
浏览文件 @
042271f5
#define CV_NO_BACKWARD_COMPATIBILITY
/* This is a standalone program. Pass an image name as a first parameter of the program.
Switch between standard and probabilistic Hough transform by changing "#if 1" to "#if 0" and back */
#include <cv.h>
#include <highgui.h>
#include <math.h>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
...
...
samples/c/image.cpp
浏览文件 @
042271f5
此差异已折叠。
点击以展开。
samples/c/inpaint.cpp
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <stdlib.h>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
IplImage
*
inpaint_mask
=
0
;
IplImage
*
img0
=
0
,
*
img
=
0
,
*
inpainted
=
0
;
...
...
samples/c/kalman.c
浏览文件 @
042271f5
...
...
@@ -11,17 +11,8 @@
Pressing ESC will stop the program.
*/
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <math.h>
#endif
#include "opencv2/video/tracking.hpp"
#include "opencv2/highgui/highgui.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
...
...
samples/c/kmeans.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#endif
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
...
...
samples/c/laplace.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <ctype.h>
#include <stdio.h>
#endif
int
sigma
=
3
;
int
smoothType
=
CV_GAUSSIAN
;
...
...
samples/c/latentsvmdetect.cpp
浏览文件 @
042271f5
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/core/core_c.h"
#include "opencv2/highgui/highgui_c.h"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
using
namespace
cv
;
...
...
@@ -43,14 +42,14 @@ int main(int argc, char* argv[])
IplImage
*
image
=
cvLoadImage
(
image_filename
);
if
(
!
image
)
{
printf
(
"Unable to load the image
\n
"
printf
(
"Unable to load the image
\n
"
"Pass it as the first parameter: latentsvmdetect <path to cat.jpg> <path to cat.xml>
\n
"
);
return
-
1
;
}
CvLatentSvmDetector
*
detector
=
cvLoadLatentSvmDetector
(
model_filename
);
if
(
!
detector
)
{
printf
(
"Unable to load the model
\n
"
printf
(
"Unable to load the model
\n
"
"Pass it as the second parameter: latentsvmdetect <path to cat.jpg> <path to cat.xml>
\n
"
);
cvReleaseImage
(
&
image
);
return
-
1
;
...
...
samples/c/letter_recog.cpp
浏览文件 @
042271f5
#include "
ml
.h"
#include
<stdio.h>
#include "
opencv2/core/core_c
.h"
#include
"opencv2/ml/ml.hpp"
/*
The sample demonstrates how to train Random Trees classifier
...
...
samples/c/lkdemo.c
浏览文件 @
042271f5
/* Demo of modified Lucas-Kanade optical flow algorithm.
See the printf below */
#include "opencv2/video/tracking.hpp"
#include "opencv2/highgui/highgui.hpp"
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <ctype.h>
#
endif
#
include <stdio.h>
IplImage
*
image
=
0
,
*
grey
=
0
,
*
prev_grey
=
0
,
*
pyramid
=
0
,
*
prev_pyramid
=
0
,
*
swap_temp
;
...
...
samples/c/minarea.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdlib.h>
#endif
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#define ARRAY 1
...
...
samples/c/morphology.c
浏览文件 @
042271f5
#define CV_NO_BACKWARD_COMPATIBILITY
#include <cv.h>
#include <highgui.h>
#include <stdlib.h>
#include <stdio.h>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
IplImage
*
src
=
0
;
IplImage
*
dst
=
0
;
...
...
samples/c/motempl.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
// motion templates sample code
#include "cv.h"
#include "highgui.h"
#include "opencv2/video/tracking.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <time.h>
#include <math.h>
#include <ctype.h>
#include <stdio.h>
#endif
// various tracking parameters (in seconds)
const
double
MHI_DURATION
=
1
;
...
...
samples/c/mser_sample.cpp
浏览文件 @
042271f5
/* This sample code was originally provided by Liu Liu
* Copyright 2009, Liu Liu All rights reserved.
* Copyright
�
2009, Liu Liu All rights reserved.
*/
#include <iostream>
#include <cstdio>
#include <stdio.h>
#include "cv.h"
#include "highgui.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/imgproc/imgproc_c.h"
static
CvScalar
colors
[]
=
{
{{
0
,
0
,
255
}},
{{
0
,
128
,
255
}},
{{
0
,
255
,
255
}},
{{
0
,
255
,
0
}},
{{
255
,
128
,
0
}},
{{
255
,
255
,
0
}},
{{
255
,
0
,
0
}},
{{
255
,
0
,
255
}},
{{
255
,
255
,
255
}},
{{
196
,
255
,
255
}},
{{
255
,
255
,
196
}}
};
static
uchar
bcolors
[][
3
]
=
{
{
0
,
0
,
255
},
{
0
,
128
,
255
},
{
0
,
255
,
255
},
{
0
,
255
,
0
},
{
255
,
128
,
0
},
{
255
,
255
,
0
},
{
255
,
0
,
0
},
{
255
,
0
,
255
},
{
255
,
255
,
255
}
};
static
CvScalar
colors
[]
=
{
{{
0
,
0
,
255
}},
{{
0
,
128
,
255
}},
{{
0
,
255
,
255
}},
{{
0
,
255
,
0
}},
{{
255
,
128
,
0
}},
{{
255
,
255
,
0
}},
{{
255
,
0
,
0
}},
{{
255
,
0
,
255
}},
{{
255
,
255
,
255
}},
{{
196
,
255
,
255
}},
{{
255
,
255
,
196
}}
};
static
uchar
bcolors
[][
3
]
=
{
{
0
,
0
,
255
},
{
0
,
128
,
255
},
{
0
,
255
,
255
},
{
0
,
255
,
0
},
{
255
,
128
,
0
},
{
255
,
255
,
0
},
{
255
,
0
,
0
},
{
255
,
0
,
255
},
{
255
,
255
,
255
}
};
int
main
(
int
argc
,
char
**
argv
)
{
...
...
samples/c/mushroom.cpp
浏览文件 @
042271f5
#include "ml.h"
#include "opencv2/core/core_c.h"
#include "opencv2/ml/ml.hpp"
#include <stdio.h>
/*
...
...
samples/c/one_way_sample.cpp
浏览文件 @
042271f5
...
...
@@ -7,9 +7,10 @@
*
*/
#include <cv.h>
#include <cvaux.h>
#include <highgui.h>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include <string>
...
...
samples/c/peopledetect.cpp
浏览文件 @
042271f5
#include "cvaux.h"
#include "highgui.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
...
...
samples/c/polar_transforms.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <ctype.h>
#include <stdio.h>
#endif
int
main
(
int
argc
,
char
**
argv
)
{
...
...
samples/c/pyramid_segmentation.c
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <math.h>
#endif
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
IplImage
*
image
[
2
]
=
{
0
,
0
},
*
image0
=
0
,
*
image1
=
0
;
CvSize
size
;
...
...
samples/c/squares.c
浏览文件 @
042271f5
...
...
@@ -3,14 +3,8 @@
// It loads several images subsequentally and tries to find squares in
// each image
//
#ifdef _CH_
#pragma package <opencv>
#endif
#define CV_NO_BACKWARD_COMPATIBILITY
#include "cv.h"
#include "highgui.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
#include <math.h>
#include <string.h>
...
...
samples/c/stereo_calib.cpp
浏览文件 @
042271f5
...
...
@@ -25,11 +25,10 @@
http://pr.willowgarage.com/wiki/OpenCV
************************************************** */
#undef _GLIBCXX_DEBUG
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include "cv.h"
#include "cxmisc.h"
#include "highgui.h"
#include <vector>
#include <string>
#include <algorithm>
...
...
samples/c/stereo_match.cpp
浏览文件 @
042271f5
...
...
@@ -7,8 +7,10 @@
*
*/
#include <cv.h>
#include <highgui.h>
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
using
namespace
cv
;
...
...
samples/c/tree_engine.cpp
浏览文件 @
042271f5
#include "
ml.h
"
#include "
opencv2/ml/ml.hpp
"
#include <stdio.h>
/*
The sample demonstrates how to use different decision trees.
...
...
samples/c/watershed.cpp
浏览文件 @
042271f5
#ifdef _CH_
#pragma package <opencv>
#endif
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
#include <stdlib.h>
#endif
IplImage
*
marker_mask
=
0
;
IplImage
*
markers
=
0
;
...
...
samples/cpp/3calibration.cpp
浏览文件 @
042271f5
...
...
@@ -2,7 +2,10 @@
* 3calibration.cpp -- Calibrate 3 cameras in a horizontal line together.
*/
#include "opencv2/opencv.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
#include <string.h>
#include <time.h>
...
...
samples/cpp/brief_match_test.cpp
浏览文件 @
042271f5
...
...
@@ -4,7 +4,10 @@
* Created on: Oct 17, 2010
* Author: ethan
*/
#include <opencv2/opencv.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <vector>
#include <iostream>
...
...
samples/cpp/connected_components.cpp
浏览文件 @
042271f5
#include
"cv.h"
#include
"highgui.h"
#include
<opencv2/imgproc/imgproc.hpp>
#include
<opencv2/highgui/highgui.hpp>
#include <iostream>
using
namespace
cv
;
using
namespace
std
;
Mat
img
;
int
threshval
=
100
;
...
...
samples/cpp/contours2.cpp
浏览文件 @
042271f5
#include
"cv.h"
#include
"highgui.h"
#include
<opencv2/imgproc/imgproc.hpp>
#include
<opencv2/highgui/highgui.hpp>
#include <math.h>
#include <iostream>
using
namespace
cv
;
using
namespace
std
;
void
help
()
{
...
...
samples/cpp/generic_descriptor_match.cpp
浏览文件 @
042271f5
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include <cstdio>
...
...
samples/cpp/morphology2.cpp
浏览文件 @
042271f5
#define CV_NO_BACKWARD_COMPATIBILITY
#include <
cv.h
>
#include <
highgui.h
>
#include <
opencv2/imgproc/imgproc.hpp
>
#include <
opencv2/highgui/highgui.hpp
>
#include <stdlib.h>
#include <stdio.h>
...
...
samples/cpp/segment_objects.cpp
浏览文件 @
042271f5
#include "cvaux.h"
#include "highgui.h"
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/background_segm.hpp>
#include <stdio.h>
#include <string>
...
...
samples/cpp/starter_imagelist.cpp
浏览文件 @
042271f5
...
...
@@ -8,7 +8,8 @@
* that was generated with imagelist_creator.cpp
* easy as CV_PI right?
*/
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <vector>
using
namespace
cv
;
...
...
samples/cpp/starter_video.cpp
浏览文件 @
042271f5
...
...
@@ -7,7 +7,8 @@
* A starter sample for using opencv, get a video stream and display the images
* easy as CV_PI right?
*/
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <vector>
using
namespace
cv
;
...
...
samples/cpp/video_homography.cpp
浏览文件 @
042271f5
...
...
@@ -5,7 +5,10 @@
* Author: erublee
*/
#include <opencv2/opencv.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <iostream>
#include <list>
#include <vector>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录