Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
05e7c29d
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,发现更多精彩内容 >>
提交
05e7c29d
编写于
8月 10, 2014
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed various warnings and obvious errors reported by clang compiler and the coverity tool.
上级
09907eeb
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
15 addition
and
21 deletion
+15
-21
modules/core/src/dxt.cpp
modules/core/src/dxt.cpp
+2
-2
modules/core/src/ocl.cpp
modules/core/src/ocl.cpp
+3
-4
modules/features2d/src/freak.cpp
modules/features2d/src/freak.cpp
+0
-1
modules/imgproc/src/templmatch.cpp
modules/imgproc/src/templmatch.cpp
+0
-1
modules/ml/src/ann_mlp.cpp
modules/ml/src/ann_mlp.cpp
+1
-1
modules/ml/src/data.cpp
modules/ml/src/data.cpp
+4
-4
modules/ml/src/svm.cpp
modules/ml/src/svm.cpp
+2
-2
modules/shape/test/test_emdl1.cpp
modules/shape/test/test_emdl1.cpp
+0
-2
modules/shape/test/test_shape.cpp
modules/shape/test/test_shape.cpp
+0
-2
modules/video/test/test_tvl1optflow.cpp
modules/video/test/test_tvl1optflow.cpp
+3
-1
modules/videoio/src/cap_qtkit.mm
modules/videoio/src/cap_qtkit.mm
+0
-1
未找到文件。
modules/core/src/dxt.cpp
浏览文件 @
05e7c29d
...
...
@@ -1801,11 +1801,11 @@ private:
UMat
twiddles
;
String
buildOptions
;
int
thread_count
;
bool
status
;
int
dft_size
;
bool
status
;
public:
OCL_FftPlan
(
int
_size
)
:
dft_size
(
_size
),
status
(
true
)
OCL_FftPlan
(
int
_size
)
:
dft_size
(
_size
),
status
(
true
)
{
int
min_radix
;
std
::
vector
<
int
>
radixes
,
blocks
;
...
...
modules/core/src/ocl.cpp
浏览文件 @
05e7c29d
...
...
@@ -1324,6 +1324,9 @@ OCL_FUNC(cl_int, clReleaseEvent, (cl_event event), (event))
#endif
#ifdef _DEBUG
#define CV_OclDbgAssert CV_DbgAssert
#else
static
bool
isRaiseError
()
{
static
bool
initialized
=
false
;
...
...
@@ -1335,10 +1338,6 @@ static bool isRaiseError()
}
return
value
;
}
#ifdef _DEBUG
#define CV_OclDbgAssert CV_DbgAssert
#else
#define CV_OclDbgAssert(expr) do { if (isRaiseError()) { CV_Assert(expr); } else { (void)(expr); } } while ((void)0, 0)
#endif
...
...
modules/features2d/src/freak.cpp
浏览文件 @
05e7c29d
...
...
@@ -45,7 +45,6 @@ namespace cv
{
static
const
double
FREAK_SQRT2
=
1.4142135623731
;
static
const
double
FREAK_INV_SQRT2
=
1.0
/
FREAK_SQRT2
;
static
const
double
FREAK_LOG2
=
0.693147180559945
;
static
const
int
FREAK_NB_ORIENTATION
=
256
;
static
const
int
FREAK_NB_POINTS
=
43
;
...
...
modules/imgproc/src/templmatch.cpp
浏览文件 @
05e7c29d
...
...
@@ -450,7 +450,6 @@ static bool matchTemplate_CCOEFF(InputArray _image, InputArray _templ, OutputArr
UMat
templ
=
_templ
.
getUMat
();
UMat
result
=
_result
.
getUMat
();
Size
tsize
=
templ
.
size
();
if
(
cn
==
1
)
{
...
...
modules/ml/src/ann_mlp.cpp
浏览文件 @
05e7c29d
...
...
@@ -431,7 +431,7 @@ public:
break
;
case
GAUSSIAN
:
for
(
i
=
0
;
i
<
n
;
j
++
)
for
(
i
=
0
;
i
<
n
;
i
++
)
{
double
*
data
=
sums
.
ptr
<
double
>
(
i
);
for
(
j
=
0
;
j
<
cols
;
j
++
)
...
...
modules/ml/src/data.cpp
浏览文件 @
05e7c29d
...
...
@@ -861,9 +861,9 @@ public:
void
getValues
(
int
vi
,
InputArray
_sidx
,
float
*
values
)
const
{
Mat
sidx
=
_sidx
.
getMat
();
int
i
,
n
,
nsamples
=
getNSamples
();
int
i
,
n
=
sidx
.
checkVector
(
1
,
CV_32S
)
,
nsamples
=
getNSamples
();
CV_Assert
(
0
<=
vi
&&
vi
<
getNAllVars
()
);
CV_Assert
(
(
n
=
sidx
.
checkVector
(
1
,
CV_32S
))
>=
0
);
CV_Assert
(
n
>=
0
);
const
int
*
s
=
n
>
0
?
sidx
.
ptr
<
int
>
()
:
0
;
if
(
n
==
0
)
n
=
nsamples
;
...
...
@@ -938,8 +938,8 @@ public:
{
CV_Assert
(
buf
!=
0
&&
0
<=
sidx
&&
sidx
<
getNSamples
());
Mat
vidx
=
_vidx
.
getMat
();
int
i
,
n
,
nvars
=
getNAllVars
();
CV_Assert
(
(
n
=
vidx
.
checkVector
(
1
,
CV_32S
))
>=
0
);
int
i
,
n
=
vidx
.
checkVector
(
1
,
CV_32S
)
,
nvars
=
getNAllVars
();
CV_Assert
(
n
>=
0
);
const
int
*
vptr
=
n
>
0
?
vidx
.
ptr
<
int
>
()
:
0
;
if
(
n
==
0
)
n
=
nvars
;
...
...
modules/ml/src/svm.cpp
浏览文件 @
05e7c29d
...
...
@@ -1335,9 +1335,9 @@ public:
_responses
.
convertTo
(
_yf
,
CV_32F
);
bool
ok
=
(
svmType
==
ONE_CLASS
?
Solver
::
solve_one_class
(
_samples
,
params
.
nu
,
kernel
,
_alpha
,
sinfo
,
termCrit
)
:
svmType
==
ONE_CLASS
?
Solver
::
solve_one_class
(
_samples
,
params
.
nu
,
kernel
,
_alpha
,
sinfo
,
termCrit
)
:
svmType
==
EPS_SVR
?
Solver
::
solve_eps_svr
(
_samples
,
_yf
,
params
.
p
,
params
.
C
,
kernel
,
_alpha
,
sinfo
,
termCrit
)
:
svmType
==
NU_SVR
?
Solver
::
solve_nu_svr
(
_samples
,
_yf
,
params
.
nu
,
params
.
C
,
kernel
,
_alpha
,
sinfo
,
termCrit
)
:
false
)
;
svmType
==
NU_SVR
?
Solver
::
solve_nu_svr
(
_samples
,
_yf
,
params
.
nu
,
params
.
C
,
kernel
,
_alpha
,
sinfo
,
termCrit
)
:
false
;
if
(
!
ok
)
return
false
;
...
...
modules/shape/test/test_emdl1.cpp
浏览文件 @
05e7c29d
...
...
@@ -50,8 +50,6 @@ const float minRad=0.2f;
const
float
maxRad
=
2
;
const
int
NSN
=
5
;
//10;//20; //number of shapes per class
const
int
NP
=
100
;
//number of points sympliying the contour
const
float
outlierWeight
=
0.1
f
;
const
int
numOutliers
=
20
;
const
float
CURRENT_MAX_ACCUR
=
95
;
//98% and 99% reached in several tests, 95 is fixed as minimum boundary
class
CV_ShapeEMDTest
:
public
cvtest
::
BaseTest
...
...
modules/shape/test/test_shape.cpp
浏览文件 @
05e7c29d
...
...
@@ -50,8 +50,6 @@ const float minRad=0.2f;
const
float
maxRad
=
2
;
const
int
NSN
=
5
;
//10;//20; //number of shapes per class
const
int
NP
=
120
;
//number of points sympliying the contour
const
float
outlierWeight
=
0.1
f
;
const
int
numOutliers
=
20
;
const
float
CURRENT_MAX_ACCUR
=
95
;
//99% and 100% reached in several tests, 95 is fixed as minimum boundary
class
CV_ShapeTest
:
public
cvtest
::
BaseTest
...
...
modules/video/test/test_tvl1optflow.cpp
浏览文件 @
05e7c29d
...
...
@@ -52,12 +52,13 @@ namespace
{
// first four bytes, should be the same in little endian
const
float
FLO_TAG_FLOAT
=
202021.25
f
;
// check for this when READING the file
const
char
FLO_TAG_STRING
[]
=
"PIEH"
;
// use this when WRITING the file
#ifdef DUMP
// binary file format for flow data specified here:
// http://vision.middlebury.edu/flow/data/
void
writeOpticalFlowToFile
(
const
Mat_
<
Point2f
>&
flow
,
const
string
&
fileName
)
{
const
char
FLO_TAG_STRING
[]
=
"PIEH"
;
// use this when WRITING the file
ofstream
file
(
fileName
.
c_str
(),
ios_base
::
binary
);
file
<<
FLO_TAG_STRING
;
...
...
@@ -76,6 +77,7 @@ namespace
}
}
}
#endif
// binary file format for flow data specified here:
// http://vision.middlebury.edu/flow/data/
...
...
modules/videoio/src/cap_qtkit.mm
浏览文件 @
05e7c29d
...
...
@@ -199,7 +199,6 @@ public:
private:
IplImage
*
argbimage
;
QTMovie
*
mMovie
;
unsigned
char
*
imagedata
;
NSString
*
path
;
NSString
*
codec
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录