Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
8ebff41c
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
8ebff41c
编写于
5月 07, 2011
作者:
A
Anatoly Baksheev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more warnings fixed. +some warnings in examples
上级
927dccb4
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
22 addition
and
18 deletion
+22
-18
modules/calib3d/src/calibinit.cpp
modules/calib3d/src/calibinit.cpp
+2
-2
modules/ml/src/svm.cpp
modules/ml/src/svm.cpp
+1
-0
samples/c/adaptiveskindetector.cpp
samples/c/adaptiveskindetector.cpp
+1
-1
samples/c/find_obj_ferns.cpp
samples/c/find_obj_ferns.cpp
+1
-1
samples/c/one_way_sample.cpp
samples/c/one_way_sample.cpp
+1
-1
samples/c/polar_transforms.c
samples/c/polar_transforms.c
+2
-0
samples/c/pyramid_segmentation.c
samples/c/pyramid_segmentation.c
+1
-0
samples/cpp/bagofwords_classification.cpp
samples/cpp/bagofwords_classification.cpp
+4
-4
samples/cpp/kinect_maps.cpp
samples/cpp/kinect_maps.cpp
+2
-2
samples/cpp/letter_recog.cpp
samples/cpp/letter_recog.cpp
+5
-5
samples/cpp/multicascadeclassifier.cpp
samples/cpp/multicascadeclassifier.cpp
+1
-1
samples/cpp/points_classifier.cpp
samples/cpp/points_classifier.cpp
+1
-1
未找到文件。
modules/calib3d/src/calibinit.cpp
浏览文件 @
8ebff41c
...
...
@@ -1929,8 +1929,8 @@ void cv::drawChessboardCorners( InputOutputArray _image, Size patternSize,
bool
cv
::
findCirclesGrid
(
const
InputArray
&
_image
,
Size
patternSize
,
OutputArray
_centers
,
int
flags
,
const
Ptr
<
FeatureDetector
>
&
blobDetector
)
{
bool
isAsymmetricGrid
=
(
bool
)(
flags
&
CALIB_CB_ASYMMETRIC_GRID
)
;
bool
isSymmetricGrid
=
(
bool
)(
flags
&
CALIB_CB_SYMMETRIC_GRID
)
;
bool
isAsymmetricGrid
=
(
flags
&
CALIB_CB_ASYMMETRIC_GRID
)
?
true
:
false
;
bool
isSymmetricGrid
=
(
flags
&
CALIB_CB_SYMMETRIC_GRID
)
?
true
:
false
;
CV_Assert
(
isAsymmetricGrid
^
isSymmetricGrid
);
Mat
image
=
_image
.
getMat
();
...
...
modules/ml/src/svm.cpp
浏览文件 @
8ebff41c
...
...
@@ -2001,6 +2001,7 @@ float CvSVM::predict( const float* row_sample, int row_len, bool returnDFVal ) c
int
var_count
=
get_var_count
();
assert
(
row_len
==
var_count
);
(
void
)
row_len
;
int
class_count
=
class_labels
?
class_labels
->
cols
:
params
.
svm_type
==
ONE_CLASS
?
1
:
0
;
...
...
samples/c/adaptiveskindetector.cpp
浏览文件 @
8ebff41c
...
...
@@ -180,7 +180,7 @@ bool ASDFrameSequencer::isOpen()
return
false
;
};
void
ASDFrameSequencer
::
getFrameCaption
(
char
*
caption
)
{
void
ASDFrameSequencer
::
getFrameCaption
(
char
*
/*caption*/
)
{
return
;
};
...
...
samples/c/find_obj_ferns.cpp
浏览文件 @
8ebff41c
...
...
@@ -120,7 +120,7 @@ int main(int argc, char** argv)
for
(
i
=
0
;
i
<
(
int
)
pairs
.
size
();
i
+=
2
)
{
line
(
correspond
,
objKeypoints
[
pairs
[
i
]].
pt
,
imgKeypoints
[
pairs
[
i
+
1
]].
pt
+
Point2f
(
0
,
object
.
rows
),
imgKeypoints
[
pairs
[
i
+
1
]].
pt
+
Point2f
(
0
,
(
float
)
object
.
rows
),
Scalar
(
0
,
255
,
0
)
);
}
...
...
samples/c/one_way_sample.cpp
浏览文件 @
8ebff41c
...
...
@@ -108,7 +108,7 @@ IplImage* DrawCorrespondences(IplImage* img1, const vector<KeyPoint>& features1,
for
(
size_t
i
=
0
;
i
<
features2
.
size
();
i
++
)
{
CvPoint
pt
=
cvPoint
(
features2
[
i
].
pt
.
x
+
img1
->
width
,
features2
[
i
].
pt
.
y
);
CvPoint
pt
=
cvPoint
(
(
int
)
features2
[
i
].
pt
.
x
+
img1
->
width
,
(
int
)
features2
[
i
].
pt
.
y
);
cvCircle
(
img_corr
,
pt
,
3
,
CV_RGB
(
255
,
0
,
0
));
cvLine
(
img_corr
,
features1
[
desc_idx
[
i
]].
pt
,
pt
,
CV_RGB
(
0
,
255
,
0
));
}
...
...
samples/c/polar_transforms.c
浏览文件 @
8ebff41c
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include <ctype.h>
#include <stdio.h>
...
...
samples/c/pyramid_segmentation.c
浏览文件 @
8ebff41c
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include <stdio.h>
void
help
()
...
...
samples/cpp/bagofwords_classification.cpp
浏览文件 @
8ebff41c
...
...
@@ -855,7 +855,7 @@ void VocData::calcPrecRecall_impl(const vector<char>& ground_truth, const vector
{
recall_norm
=
recall_normalization
;
}
else
{
recall_norm
=
(
int
)
std
::
count_if
(
ground_truth
.
begin
(),
ground_truth
.
end
(),
std
::
bind2nd
(
std
::
equal_to
<
bool
>
(),
true
));
recall_norm
=
(
int
)
std
::
count_if
(
ground_truth
.
begin
(),
ground_truth
.
end
(),
std
::
bind2nd
(
std
::
equal_to
<
char
>
(),(
char
)
1
));
}
ap
=
0
;
...
...
@@ -985,7 +985,7 @@ void VocData::calcClassifierConfMatRow(const string& obj_class, const vector<Obd
/* in order to calculate the total number of relevant images for normalization of recall
it's necessary to extract the ground truth for the images under consideration */
getClassifierGroundTruth
(
obj_class
,
images
,
ground_truth
);
total_relevant
=
std
::
count_if
(
ground_truth
.
begin
(),
ground_truth
.
end
(),
std
::
bind2nd
(
std
::
equal_to
<
bool
>
(),
true
));
total_relevant
=
std
::
count_if
(
ground_truth
.
begin
(),
ground_truth
.
end
(),
std
::
bind2nd
(
std
::
equal_to
<
char
>
(),(
char
)
1
));
}
/* iterate through images */
...
...
@@ -2292,8 +2292,8 @@ void removeBowImageDescriptorsByCount( vector<ObdImage>& images, vector<Mat> bow
const
SVMTrainParamsExt
&
svmParamsExt
,
int
descsToDelete
)
{
RNG
&
rng
=
theRNG
();
int
pos_ex
=
std
::
count
(
objectPresent
.
begin
(),
objectPresent
.
end
(),
true
);
int
neg_ex
=
std
::
count
(
objectPresent
.
begin
(),
objectPresent
.
end
(),
false
);
int
pos_ex
=
std
::
count
(
objectPresent
.
begin
(),
objectPresent
.
end
(),
(
char
)
1
);
int
neg_ex
=
std
::
count
(
objectPresent
.
begin
(),
objectPresent
.
end
(),
(
char
)
0
);
while
(
descsToDelete
!=
0
)
{
...
...
samples/cpp/kinect_maps.cpp
浏览文件 @
8ebff41c
...
...
@@ -79,8 +79,8 @@ void colorizeDisparity( const Mat& gray, Mat& rgb, double maxDisp=-1.f, float S=
float
getMaxDisparity
(
VideoCapture
&
capture
)
{
const
int
minDistance
=
400
;
// mm
float
b
=
capture
.
get
(
CV_CAP_OPENNI_DEPTH_GENERATOR_BASELINE
);
// mm
float
F
=
capture
.
get
(
CV_CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH
);
// pixels
float
b
=
(
float
)
capture
.
get
(
CV_CAP_OPENNI_DEPTH_GENERATOR_BASELINE
);
// mm
float
F
=
(
float
)
capture
.
get
(
CV_CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH
);
// pixels
return
b
*
F
/
minDistance
;
}
...
...
samples/cpp/letter_recog.cpp
浏览文件 @
8ebff41c
...
...
@@ -495,8 +495,8 @@ int build_knearest_classifier( char* data_filename, int K )
int
ok
=
read_num_class_data
(
data_filename
,
16
,
&
data
,
&
responses
);
int
nsamples_all
=
0
,
ntrain_samples
=
0
;
int
i
,
j
;
double
train_hr
=
0
,
test_hr
=
0
;
//
int i, j;
//double /*train_hr = 0,*/
test_hr = 0;
CvANN_MLP
mlp
;
if
(
!
ok
)
...
...
@@ -572,8 +572,8 @@ int build_nbayes_classifier( char* data_filename )
int
ok
=
read_num_class_data
(
data_filename
,
16
,
&
data
,
&
responses
);
int
nsamples_all
=
0
,
ntrain_samples
=
0
;
int
i
,
j
;
double
train_hr
=
0
,
test_hr
=
0
;
//
int i, j;
//double /*train_hr = 0, */
test_hr = 0;
CvANN_MLP
mlp
;
if
(
!
ok
)
...
...
@@ -612,7 +612,7 @@ int build_nbayes_classifier( char* data_filename )
CvMat
*
result
=
cvCreateMat
(
1
,
nsamples_all
-
ntrain_samples
,
CV_32FC1
);
(
int
)
nbayes
.
predict
(
&
sample
,
result
);
int
true_resp
=
0
;
int
accuracy
=
0
;
//
int accuracy = 0;
for
(
int
i
=
0
;
i
<
nsamples_all
-
ntrain_samples
;
i
++
)
{
if
(
result
->
data
.
fl
[
i
]
==
true_results
[
i
])
...
...
samples/cpp/multicascadeclassifier.cpp
浏览文件 @
8ebff41c
...
...
@@ -155,7 +155,7 @@ void DetectAndDraw( Mat& img, CascadeClassifier& cascade)
int
radius
;
center
.
x
=
cvRound
(
r
->
x
+
r
->
width
*
0.5
);
center
.
y
=
cvRound
(
r
->
y
+
r
->
height
*
0.5
);
radius
=
cvRound
(
r
->
width
+
r
->
height
)
*
0.25
;
radius
=
(
int
)(
cvRound
(
r
->
width
+
r
->
height
)
*
0.25
)
;
circle
(
img
,
center
,
radius
,
color
,
3
,
8
,
0
);
}
...
...
samples/cpp/points_classifier.cpp
浏览文件 @
8ebff41c
...
...
@@ -493,7 +493,7 @@ int main()
for
(;;)
{
uchar
key
=
waitKey
();
uchar
key
=
(
uchar
)
waitKey
();
if
(
key
==
27
)
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录