Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
32eb38ec
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,发现更多精彩内容 >>
提交
32eb38ec
编写于
2月 23, 2014
作者:
I
Ilya Lavrenov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed defects from coverity.com
上级
0a90d6dd
变更
27
隐藏空白更改
内联
并排
Showing
27 changed file
with
72 addition
and
26 deletion
+72
-26
modules/calib3d/src/calibinit.cpp
modules/calib3d/src/calibinit.cpp
+1
-1
modules/calib3d/src/compat_ptsetreg.cpp
modules/calib3d/src/compat_ptsetreg.cpp
+2
-1
modules/calib3d/src/epnp.h
modules/calib3d/src/epnp.h
+0
-1
modules/calib3d/src/ptsetreg.cpp
modules/calib3d/src/ptsetreg.cpp
+0
-1
modules/calib3d/test/test_cameracalibration.cpp
modules/calib3d/test/test_cameracalibration.cpp
+1
-0
modules/calib3d/test/test_cameracalibration_artificial.cpp
modules/calib3d/test/test_cameracalibration_artificial.cpp
+2
-1
modules/calib3d/test/test_chesscorners.cpp
modules/calib3d/test/test_chesscorners.cpp
+2
-1
modules/calib3d/test/test_chesscorners_badarg.cpp
modules/calib3d/test/test_chesscorners_badarg.cpp
+8
-1
modules/calib3d/test/test_cornerssubpix.cpp
modules/calib3d/test/test_cornerssubpix.cpp
+1
-0
modules/calib3d/test/test_fundam.cpp
modules/calib3d/test/test_fundam.cpp
+3
-2
modules/calib3d/test/test_undistort.cpp
modules/calib3d/test/test_undistort.cpp
+11
-0
modules/calib3d/test/test_undistort_badarg.cpp
modules/calib3d/test/test_undistort_badarg.cpp
+6
-0
modules/contrib/include/opencv2/contrib.hpp
modules/contrib/include/opencv2/contrib.hpp
+1
-1
modules/core/include/opencv2/core/utility.hpp
modules/core/include/opencv2/core/utility.hpp
+2
-0
modules/core/src/command_line_parser.cpp
modules/core/src/command_line_parser.cpp
+5
-0
modules/core/src/ocl.cpp
modules/core/src/ocl.cpp
+2
-2
modules/core/test/test_arithm.cpp
modules/core/test/test_arithm.cpp
+5
-7
modules/core/test/test_math.cpp
modules/core/test/test_math.cpp
+4
-1
modules/features2d/src/bagofwords.cpp
modules/features2d/src/bagofwords.cpp
+1
-1
modules/features2d/src/brisk.cpp
modules/features2d/src/brisk.cpp
+2
-0
modules/imgproc/src/deriv.cpp
modules/imgproc/src/deriv.cpp
+0
-2
modules/imgproc/src/filter.cpp
modules/imgproc/src/filter.cpp
+5
-1
modules/imgproc/test/test_color.cpp
modules/imgproc/test/test_color.cpp
+2
-0
modules/ml/src/precomp.hpp
modules/ml/src/precomp.hpp
+1
-1
modules/ts/src/ts_func.cpp
modules/ts/src/ts_func.cpp
+1
-1
modules/ts/src/ts_perf.cpp
modules/ts/src/ts_perf.cpp
+3
-0
modules/video/src/simpleflow.cpp
modules/video/src/simpleflow.cpp
+1
-0
未找到文件。
modules/calib3d/src/calibinit.cpp
浏览文件 @
32eb38ec
...
...
@@ -1998,7 +1998,7 @@ bool cv::findCirclesGrid( InputArray _image, Size patternSize,
{
isFound
=
boxFinder
.
findHoles
();
}
catch
(
c
v
::
Exception
)
catch
(
c
onst
cv
::
Exception
&
)
{
}
...
...
modules/calib3d/src/compat_ptsetreg.cpp
浏览文件 @
32eb38ec
...
...
@@ -57,6 +57,7 @@ CvLevMarq::CvLevMarq()
criteria
=
cvTermCriteria
(
0
,
0
,
0
);
iters
=
0
;
completeSymmFlag
=
false
;
errNorm
=
prevErrNorm
=
DBL_MAX
;
}
CvLevMarq
::
CvLevMarq
(
int
nparams
,
int
nerrs
,
CvTermCriteria
criteria0
,
bool
_completeSymmFlag
)
...
...
@@ -101,7 +102,7 @@ void CvLevMarq::init( int nparams, int nerrs, CvTermCriteria criteria0, bool _co
J
.
reset
(
cvCreateMat
(
nerrs
,
nparams
,
CV_64F
));
err
.
reset
(
cvCreateMat
(
nerrs
,
1
,
CV_64F
));
}
prevErrNorm
=
DBL_MAX
;
errNorm
=
prevErrNorm
=
DBL_MAX
;
lambdaLg10
=
-
3
;
criteria
=
criteria0
;
if
(
criteria
.
type
&
CV_TERMCRIT_ITER
)
...
...
modules/calib3d/src/epnp.h
浏览文件 @
32eb38ec
...
...
@@ -74,7 +74,6 @@ class epnp {
int
number_of_correspondences
;
double
cws
[
4
][
3
],
ccs
[
4
][
3
];
double
cws_determinant
;
int
max_nr
;
double
*
A1
,
*
A2
;
};
...
...
modules/calib3d/src/ptsetreg.cpp
浏览文件 @
32eb38ec
...
...
@@ -260,7 +260,6 @@ public:
Ptr
<
PointSetRegistrator
::
Callback
>
cb
;
int
modelPoints
;
int
maxBasicSolutions
;
bool
checkPartialSubsets
;
double
threshold
;
double
confidence
;
...
...
modules/calib3d/test/test_cameracalibration.cpp
浏览文件 @
32eb38ec
...
...
@@ -1393,6 +1393,7 @@ void CV_StereoCalibrationTest::run( int )
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"The file %s can not be opened or has invalid content
\n
"
,
filepath
.
c_str
()
);
ts
->
set_failed_test_info
(
f
?
cvtest
::
TS
::
FAIL_INVALID_TEST_DATA
:
cvtest
::
TS
::
FAIL_MISSING_TEST_DATA
);
fclose
(
f
);
return
;
}
...
...
modules/calib3d/test/test_cameracalibration_artificial.cpp
浏览文件 @
32eb38ec
...
...
@@ -85,7 +85,8 @@ Mat calcRvec(const vector<Point3f>& points, const Size& cornerSize)
class
CV_CalibrateCameraArtificialTest
:
public
cvtest
::
BaseTest
{
public:
CV_CalibrateCameraArtificialTest
()
CV_CalibrateCameraArtificialTest
()
:
r
(
0
)
{
}
~
CV_CalibrateCameraArtificialTest
()
{}
...
...
modules/calib3d/test/test_chesscorners.cpp
浏览文件 @
32eb38ec
...
...
@@ -309,7 +309,8 @@ void CV_ChessboardDetectorTest::run_batch( const string& filename )
progress
=
update_progress
(
progress
,
idx
,
max_idx
,
0
);
}
sum_error
/=
count
;
if
(
count
!=
0
)
sum_error
/=
count
;
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Average error is %f
\n
"
,
sum_error
);
}
...
...
modules/calib3d/test/test_chesscorners_badarg.cpp
浏览文件 @
32eb38ec
...
...
@@ -89,7 +89,14 @@ protected:
}
};
CV_ChessboardDetectorBadArgTest
::
CV_ChessboardDetectorBadArgTest
()
{}
CV_ChessboardDetectorBadArgTest
::
CV_ChessboardDetectorBadArgTest
()
{
cpp
=
false
;
flags
=
0
;
out_corners
=
NULL
;
out_corner_count
=
NULL
;
drawCorners
=
was_found
=
false
;
}
/* ///////////////////// chess_corner_test ///////////////////////// */
void
CV_ChessboardDetectorBadArgTest
::
run
(
int
/*start_from */
)
...
...
modules/calib3d/test/test_cornerssubpix.cpp
浏览文件 @
32eb38ec
...
...
@@ -211,6 +211,7 @@ void CV_ChessboardSubpixelTest::run( int )
progress
=
update_progress
(
progress
,
i
-
1
,
runs_count
,
0
);
}
ASSERT_NE
(
0
,
count
);
sum_dist
/=
count
;
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Average error after findCornerSubpix: %f
\n
"
,
sum_dist
);
...
...
modules/calib3d/test/test_fundam.cpp
浏览文件 @
32eb38ec
...
...
@@ -808,6 +808,7 @@ CV_FundamentalMatTest::CV_FundamentalMatTest()
method
=
0
;
img_size
=
10
;
cube_size
=
10
;
dims
=
0
;
min_f
=
1
;
max_f
=
3
;
sigma
=
0
;
//0.1;
...
...
@@ -1086,7 +1087,6 @@ protected:
int
img_size
;
int
cube_size
;
int
dims
;
int
e_result
;
double
min_f
,
max_f
;
double
sigma
;
};
...
...
@@ -1124,9 +1124,10 @@ CV_EssentialMatTest::CV_EssentialMatTest()
method
=
0
;
img_size
=
10
;
cube_size
=
10
;
dims
=
0
;
min_f
=
1
;
max_f
=
3
;
sigma
=
0
;
}
...
...
modules/calib3d/test/test_undistort.cpp
浏览文件 @
32eb38ec
...
...
@@ -75,6 +75,9 @@ CV_DefaultNewCameraMatrixTest::CV_DefaultNewCameraMatrixTest()
test_array
[
INPUT
].
push_back
(
NULL
);
test_array
[
OUTPUT
].
push_back
(
NULL
);
test_array
[
REF_OUTPUT
].
push_back
(
NULL
);
matrix_type
=
0
;
center_principal_point
=
false
;
}
void
CV_DefaultNewCameraMatrixTest
::
get_test_array_types_and_sizes
(
int
test_case_idx
,
vector
<
vector
<
Size
>
>&
sizes
,
vector
<
vector
<
int
>
>&
types
)
...
...
@@ -200,6 +203,9 @@ CV_UndistortPointsTest::CV_UndistortPointsTest()
test_array
[
OUTPUT
].
push_back
(
NULL
);
// distorted dst points
test_array
[
TEMP
].
push_back
(
NULL
);
// dst points
test_array
[
REF_OUTPUT
].
push_back
(
NULL
);
useCPlus
=
useDstMat
=
false
;
zero_new_cam
=
zero_distortion
=
zero_R
=
false
;
}
void
CV_UndistortPointsTest
::
get_test_array_types_and_sizes
(
int
test_case_idx
,
vector
<
vector
<
Size
>
>&
sizes
,
vector
<
vector
<
int
>
>&
types
)
...
...
@@ -605,6 +611,11 @@ CV_InitUndistortRectifyMapTest::CV_InitUndistortRectifyMapTest()
test_array
[
INPUT
].
push_back
(
NULL
);
// new camera matrix
test_array
[
OUTPUT
].
push_back
(
NULL
);
// distorted dst points
test_array
[
REF_OUTPUT
].
push_back
(
NULL
);
useCPlus
=
false
;
zero_distortion
=
zero_new_cam
=
zero_R
=
false
;
_mapx
=
_mapy
=
NULL
;
mat_type
=
0
;
}
void
CV_InitUndistortRectifyMapTest
::
get_test_array_types_and_sizes
(
int
test_case_idx
,
vector
<
vector
<
Size
>
>&
sizes
,
vector
<
vector
<
int
>
>&
types
)
...
...
modules/calib3d/test/test_undistort_badarg.cpp
浏览文件 @
32eb38ec
...
...
@@ -78,6 +78,8 @@ private:
CV_UndistortPointsBadArgTest
::
CV_UndistortPointsBadArgTest
()
{
useCPlus
=
false
;
_camera_mat
=
matR
=
matP
=
_distortion_coeffs
=
_src_points
=
_dst_points
=
NULL
;
}
void
CV_UndistortPointsBadArgTest
::
run_func
()
...
...
@@ -311,6 +313,8 @@ private:
CV_InitUndistortRectifyMapBadArgTest
::
CV_InitUndistortRectifyMapBadArgTest
()
{
useCPlus
=
false
;
_camera_mat
=
matR
=
_new_camera_mat
=
_distortion_coeffs
=
_mapx
=
_mapy
=
NULL
;
}
void
CV_InitUndistortRectifyMapBadArgTest
::
run_func
()
...
...
@@ -431,6 +435,8 @@ private:
CV_UndistortBadArgTest
::
CV_UndistortBadArgTest
()
{
useCPlus
=
false
;
_camera_mat
=
_new_camera_mat
=
_distortion_coeffs
=
_src
=
_dst
=
NULL
;
}
void
CV_UndistortBadArgTest
::
run_func
()
...
...
modules/contrib/include/opencv2/contrib.hpp
浏览文件 @
32eb38ec
...
...
@@ -55,7 +55,7 @@ class CV_EXPORTS Octree
public:
struct
Node
{
Node
()
{}
Node
()
{
memset
(
this
,
0
,
sizeof
(
Node
));
}
int
begin
,
end
;
float
x_min
,
x_max
,
y_min
,
y_max
,
z_min
,
z_max
;
int
maxLevels
;
...
...
modules/core/include/opencv2/core/utility.hpp
浏览文件 @
32eb38ec
...
...
@@ -340,6 +340,8 @@ class CV_EXPORTS CommandLineParser
CommandLineParser
(
const
CommandLineParser
&
parser
);
CommandLineParser
&
operator
=
(
const
CommandLineParser
&
parser
);
~
CommandLineParser
();
String
getPathToApplication
()
const
;
template
<
typename
T
>
...
...
modules/core/src/command_line_parser.cpp
浏览文件 @
32eb38ec
...
...
@@ -237,6 +237,11 @@ CommandLineParser::CommandLineParser(int argc, const char* const argv[], const S
impl
->
sort_params
();
}
CommandLineParser
::~
CommandLineParser
()
{
if
(
CV_XADD
(
&
impl
->
refcount
,
-
1
)
==
1
)
delete
impl
;
}
CommandLineParser
::
CommandLineParser
(
const
CommandLineParser
&
parser
)
{
...
...
modules/core/src/ocl.cpp
浏览文件 @
32eb38ec
...
...
@@ -2641,9 +2641,9 @@ KernelArg KernelArg::Constant(const Mat& m)
struct
Kernel
::
Impl
{
Impl
(
const
char
*
kname
,
const
Program
&
prog
)
Impl
(
const
char
*
kname
,
const
Program
&
prog
)
:
refcount
(
1
),
e
(
0
),
nu
(
0
)
{
e
=
0
;
refcount
=
1
;
cl_program
ph
=
(
cl_program
)
prog
.
ptr
();
cl_int
retval
=
0
;
handle
=
ph
!=
0
?
...
...
modules/core/test/test_arithm.cpp
浏览文件 @
32eb38ec
...
...
@@ -18,7 +18,7 @@ struct BaseElemWiseOp
BaseElemWiseOp
(
int
_ninputs
,
int
_flags
,
double
_alpha
,
double
_beta
,
Scalar
_gamma
=
Scalar
::
all
(
0
),
int
_context
=
1
)
:
ninputs
(
_ninputs
),
flags
(
_flags
),
alpha
(
_alpha
),
beta
(
_beta
),
gamma
(
_gamma
),
context
(
_context
)
{}
BaseElemWiseOp
()
{
flags
=
0
;
alpha
=
beta
=
0
;
gamma
=
Scalar
::
all
(
0
);
}
BaseElemWiseOp
()
{
flags
=
0
;
alpha
=
beta
=
0
;
gamma
=
Scalar
::
all
(
0
);
ninputs
=
0
;
context
=
1
;
}
virtual
~
BaseElemWiseOp
()
{}
virtual
void
op
(
const
vector
<
Mat
>&
,
Mat
&
,
const
Mat
&
)
{}
virtual
void
refop
(
const
vector
<
Mat
>&
,
Mat
&
,
const
Mat
&
)
{}
...
...
@@ -89,7 +89,6 @@ struct BaseElemWiseOp
double
alpha
;
double
beta
;
Scalar
gamma
;
int
maxErr
;
int
context
;
};
...
...
@@ -409,7 +408,7 @@ struct MaxSOp : public BaseElemWiseOp
struct
CmpOp
:
public
BaseElemWiseOp
{
CmpOp
()
:
BaseElemWiseOp
(
2
,
FIX_ALPHA
+
FIX_BETA
+
FIX_GAMMA
,
1
,
1
,
Scalar
::
all
(
0
))
{}
CmpOp
()
:
BaseElemWiseOp
(
2
,
FIX_ALPHA
+
FIX_BETA
+
FIX_GAMMA
,
1
,
1
,
Scalar
::
all
(
0
))
{
cmpop
=
0
;
}
void
generateScalars
(
int
depth
,
RNG
&
rng
)
{
BaseElemWiseOp
::
generateScalars
(
depth
,
rng
);
...
...
@@ -437,7 +436,7 @@ struct CmpOp : public BaseElemWiseOp
struct
CmpSOp
:
public
BaseElemWiseOp
{
CmpSOp
()
:
BaseElemWiseOp
(
1
,
FIX_ALPHA
+
FIX_BETA
+
REAL_GAMMA
,
1
,
1
,
Scalar
::
all
(
0
))
{}
CmpSOp
()
:
BaseElemWiseOp
(
1
,
FIX_ALPHA
+
FIX_BETA
+
REAL_GAMMA
,
1
,
1
,
Scalar
::
all
(
0
))
{
cmpop
=
0
;
}
void
generateScalars
(
int
depth
,
RNG
&
rng
)
{
BaseElemWiseOp
::
generateScalars
(
depth
,
rng
);
...
...
@@ -467,7 +466,7 @@ struct CmpSOp : public BaseElemWiseOp
struct
CopyOp
:
public
BaseElemWiseOp
{
CopyOp
()
:
BaseElemWiseOp
(
1
,
FIX_ALPHA
+
FIX_BETA
+
FIX_GAMMA
+
SUPPORT_MASK
,
1
,
1
,
Scalar
::
all
(
0
))
{}
CopyOp
()
:
BaseElemWiseOp
(
1
,
FIX_ALPHA
+
FIX_BETA
+
FIX_GAMMA
+
SUPPORT_MASK
,
1
,
1
,
Scalar
::
all
(
0
))
{
}
void
op
(
const
vector
<
Mat
>&
src
,
Mat
&
dst
,
const
Mat
&
mask
)
{
src
[
0
].
copyTo
(
dst
,
mask
);
...
...
@@ -484,7 +483,6 @@ struct CopyOp : public BaseElemWiseOp
{
return
0
;
}
int
cmpop
;
};
...
...
@@ -810,7 +808,7 @@ static void setIdentity(Mat& dst, const Scalar& s)
struct
FlipOp
:
public
BaseElemWiseOp
{
FlipOp
()
:
BaseElemWiseOp
(
1
,
FIX_ALPHA
+
FIX_BETA
+
FIX_GAMMA
,
1
,
1
,
Scalar
::
all
(
0
))
{}
FlipOp
()
:
BaseElemWiseOp
(
1
,
FIX_ALPHA
+
FIX_BETA
+
FIX_GAMMA
,
1
,
1
,
Scalar
::
all
(
0
))
{
flipcode
=
0
;
}
void
getRandomSize
(
RNG
&
rng
,
vector
<
int
>&
size
)
{
cvtest
::
randomSize
(
rng
,
2
,
2
,
cvtest
::
ARITHM_MAX_SIZE_LOG
,
size
);
...
...
modules/core/test/test_math.cpp
浏览文件 @
32eb38ec
...
...
@@ -617,6 +617,7 @@ Core_GEMMTest::Core_GEMMTest() : Core_MatrixTest( 5, 1, false, false, 2 )
{
test_case_count
=
100
;
max_log_array_size
=
10
;
tabc_flag
=
0
;
alpha
=
beta
=
0
;
}
...
...
@@ -821,6 +822,8 @@ protected:
Core_TransformTest
::
Core_TransformTest
()
:
Core_MatrixTest
(
3
,
1
,
true
,
false
,
4
)
{
scale
=
1
;
diagMtx
=
false
;
}
...
...
@@ -1154,7 +1157,7 @@ protected:
Core_CovarMatrixTest
::
Core_CovarMatrixTest
()
:
Core_MatrixTest
(
1
,
1
,
true
,
false
,
1
),
flags
(
0
),
t_flag
(
0
),
are_images
(
false
)
flags
(
0
),
t_flag
(
0
),
len
(
0
),
count
(
0
),
are_images
(
false
)
{
test_case_count
=
100
;
test_array
[
INPUT_OUTPUT
].
push_back
(
NULL
);
...
...
modules/features2d/src/bagofwords.cpp
浏览文件 @
32eb38ec
...
...
@@ -44,7 +44,7 @@
namespace
cv
{
BOWTrainer
::
BOWTrainer
()
BOWTrainer
::
BOWTrainer
()
:
size
(
0
)
{}
BOWTrainer
::~
BOWTrainer
()
...
...
modules/features2d/src/brisk.cpp
浏览文件 @
32eb38ec
...
...
@@ -224,6 +224,8 @@ BRISK::BRISK(std::vector<float> &radiusList, std::vector<int> &numberList, float
std
::
vector
<
int
>
indexChange
)
{
generateKernel
(
radiusList
,
numberList
,
dMax
,
dMin
,
indexChange
);
threshold
=
20
;
octaves
=
3
;
}
void
...
...
modules/imgproc/src/deriv.cpp
浏览文件 @
32eb38ec
...
...
@@ -540,8 +540,6 @@ void cv::Laplacian( InputArray _src, OutputArray _dst, int ddepth, int ksize,
int
wtype
=
CV_MAKETYPE
(
wdepth
,
src
.
channels
());
Mat
kd
,
ks
;
getSobelKernels
(
kd
,
ks
,
2
,
0
,
ksize
,
false
,
ktype
);
if
(
ddepth
<
0
)
ddepth
=
src
.
depth
();
int
dtype
=
CV_MAKETYPE
(
ddepth
,
src
.
channels
());
int
dy0
=
std
::
min
(
std
::
max
((
int
)(
STRIPE_SIZE
/
(
getElemSize
(
src
.
type
())
*
src
.
cols
)),
1
),
src
.
rows
);
...
...
modules/imgproc/src/filter.cpp
浏览文件 @
32eb38ec
...
...
@@ -1405,7 +1405,11 @@ struct SymmColumnVec_32f16s
struct
RowVec_32f
{
RowVec_32f
()
{}
RowVec_32f
()
{
haveSSE
=
checkHardwareSupport
(
CV_CPU_SSE
);
}
RowVec_32f
(
const
Mat
&
_kernel
)
{
kernel
=
_kernel
;
...
...
modules/imgproc/test/test_color.cpp
浏览文件 @
32eb38ec
...
...
@@ -99,6 +99,8 @@ CV_ColorCvtBaseTest::CV_ColorCvtBaseTest( bool _custom_inv_transform, bool _allo
test_cpp
=
false
;
hue_range
=
0
;
blue_idx
=
0
;
inplace
=
false
;
}
...
...
modules/ml/src/precomp.hpp
浏览文件 @
32eb38ec
...
...
@@ -351,7 +351,7 @@ namespace cv
{
struct
DTreeBestSplitFinder
{
DTreeBestSplitFinder
(){
tree
=
0
;
node
=
0
;
}
DTreeBestSplitFinder
(){
splitSize
=
0
,
tree
=
0
;
node
=
0
;
}
DTreeBestSplitFinder
(
CvDTree
*
_tree
,
CvDTreeNode
*
_node
);
DTreeBestSplitFinder
(
const
DTreeBestSplitFinder
&
finder
,
Split
);
virtual
~
DTreeBestSplitFinder
()
{}
...
...
modules/ts/src/ts_func.cpp
浏览文件 @
32eb38ec
...
...
@@ -2897,7 +2897,7 @@ static std::ostream& operator << (std::ostream& out, const MatPart& m)
}
MatComparator
::
MatComparator
(
double
_maxdiff
,
int
_context
)
:
maxdiff
(
_maxdiff
),
context
(
_context
)
{}
:
maxdiff
(
_maxdiff
),
realmaxdiff
(
DBL_MAX
),
context
(
_context
)
{}
::
testing
::
AssertionResult
MatComparator
::
operator
()(
const
char
*
expr1
,
const
char
*
expr2
,
...
...
modules/ts/src/ts_perf.cpp
浏览文件 @
32eb38ec
...
...
@@ -855,6 +855,9 @@ int64 TestBase::_calibrate()
#endif
TestBase
::
TestBase
()
:
testStrategy
(
PERF_STRATEGY_DEFAULT
),
declare
(
this
)
{
lastTime
=
totalTime
=
timeLimit
=
0
;
nIters
=
currentIter
=
runsPerIteration
=
0
;
verified
=
false
;
}
#ifdef _MSC_VER
# pragma warning(pop)
...
...
modules/video/src/simpleflow.cpp
浏览文件 @
32eb38ec
...
...
@@ -429,6 +429,7 @@ static inline float extrapolateValueInRect(int height, int width,
if
(
r
==
height
&&
c
==
0
)
{
return
v21
;}
if
(
r
==
height
&&
c
==
width
)
{
return
v22
;}
CV_Assert
(
height
>
0
&&
width
>
0
);
float
qr
=
float
(
r
)
/
height
;
float
pr
=
1.0
f
-
qr
;
float
qc
=
float
(
c
)
/
width
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录