Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
781d8982
Commit
781d8982
authored
Oct 22, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #79 from taka-no-me:warnings
parents
bfa466dc
2e914058
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
76 additions
and
38 deletions
+76
-38
OpenCVPCHSupport.cmake
cmake/OpenCVPCHSupport.cmake
+14
-4
rgbdodometry.cpp
modules/contrib/src/rgbdodometry.cpp
+3
-0
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+9
-0
matmul.cpp
modules/core/src/matmul.cpp
+2
-2
parallel.cpp
modules/core/src/parallel.cpp
+2
-2
test_mat.cpp
modules/core/test/test_mat.cpp
+1
-1
miniflann.cpp
modules/flann/src/miniflann.cpp
+1
-1
cap_qtkit.mm
modules/highgui/src/cap_qtkit.mm
+6
-0
grfmt_exr.cpp
modules/highgui/src/grfmt_exr.cpp
+4
-0
grfmt_exr.hpp
modules/highgui/src/grfmt_exr.hpp
+4
-0
window_cocoa.mm
modules/highgui/src/window_cocoa.mm
+4
-2
color.cpp
modules/imgproc/src/color.cpp
+6
-6
_kdtree.hpp
modules/legacy/src/_kdtree.hpp
+13
-14
dpstereo.cpp
modules/legacy/src/dpstereo.cpp
+1
-1
testseq.cpp
modules/legacy/src/testseq.cpp
+3
-3
cv2.cv.hpp
modules/python/src2/cv2.cv.hpp
+3
-2
No files found.
cmake/OpenCVPCHSupport.cmake
View file @
781d8982
...
@@ -182,10 +182,20 @@ MACRO(ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use )
...
@@ -182,10 +182,20 @@ MACRO(ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use )
_PCH_GET_TARGET_COMPILE_FLAGS
(
_target_cflags
${
_name
}
${
_pch_output_to_use
}
${
_dowarn
}
)
_PCH_GET_TARGET_COMPILE_FLAGS
(
_target_cflags
${
_name
}
${
_pch_output_to_use
}
${
_dowarn
}
)
#MESSAGE("Add flags ${_target_cflags} to ${_targetName} " )
#MESSAGE("Add flags ${_target_cflags} to ${_targetName} " )
SET_TARGET_PROPERTIES
(
${
_targetName
}
PROPERTIES
GET_TARGET_PROPERTY
(
_sources
${
_targetName
}
SOURCES
)
COMPILE_FLAGS
${
_target_cflags
}
FOREACH
(
src
${
_sources
}
)
)
if
(
NOT
"
${
src
}
"
MATCHES
"
\\
.mm$"
)
get_source_file_property
(
_flags
"
${
src
}
"
COMPILE_FLAGS
)
if
(
_flags
)
set
(
_flags
"
${
_flags
}
${
_target_cflags
}
"
)
else
()
set
(
_flags
"
${
_target_cflags
}
"
)
endif
()
set_source_files_properties
(
"
${
src
}
"
PROPERTIES COMPILE_FLAGS
"
${
_flags
}
"
)
endif
()
ENDFOREACH
()
ADD_CUSTOM_TARGET
(
pch_Generate_
${
_targetName
}
ADD_CUSTOM_TARGET
(
pch_Generate_
${
_targetName
}
DEPENDS
${
_pch_output_to_use
}
DEPENDS
${
_pch_output_to_use
}
...
...
modules/contrib/src/rgbdodometry.cpp
View file @
781d8982
...
@@ -59,6 +59,9 @@
...
@@ -59,6 +59,9 @@
# ifdef ANDROID
# ifdef ANDROID
template
<
typename
Scalar
>
Scalar
log2
(
Scalar
v
)
{
using
std
::
log
;
return
log
(
v
)
/
log
(
Scalar
(
2
));
}
template
<
typename
Scalar
>
Scalar
log2
(
Scalar
v
)
{
using
std
::
log
;
return
log
(
v
)
/
log
(
Scalar
(
2
));
}
# endif
# endif
# if defined __GNUC__ && defined __APPLE__
# pragma GCC diagnostic ignored "-Wshadow"
# endif
# include <unsupported/Eigen/MatrixFunctions>
# include <unsupported/Eigen/MatrixFunctions>
# include <Eigen/Dense>
# include <Eigen/Dense>
#endif
#endif
...
...
modules/core/include/opencv2/core/operations.hpp
View file @
781d8982
...
@@ -86,6 +86,11 @@
...
@@ -86,6 +86,11 @@
#include <limits>
#include <limits>
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable:4127) //conditional expression is constant
#endif
namespace
cv
namespace
cv
{
{
...
@@ -3950,5 +3955,9 @@ template<typename _Tp> inline void AlgorithmInfo::addParam(Algorithm& algo, cons
...
@@ -3950,5 +3955,9 @@ template<typename _Tp> inline void AlgorithmInfo::addParam(Algorithm& algo, cons
}
}
#ifdef _MSC_VER
# pragma warning(pop)
#endif
#endif // __cplusplus
#endif // __cplusplus
#endif
#endif
modules/core/src/matmul.cpp
View file @
781d8982
...
@@ -2813,7 +2813,7 @@ PCA::PCA(InputArray data, InputArray _mean, int flags, int maxComponents)
...
@@ -2813,7 +2813,7 @@ PCA::PCA(InputArray data, InputArray _mean, int flags, int maxComponents)
PCA
::
PCA
(
InputArray
data
,
InputArray
_mean
,
int
flags
,
double
retainedVariance
)
PCA
::
PCA
(
InputArray
data
,
InputArray
_mean
,
int
flags
,
double
retainedVariance
)
{
{
operator
()
(
data
,
_mean
,
flags
,
retainedVariance
);
computeVar
(
data
,
_mean
,
flags
,
retainedVariance
);
}
}
PCA
&
PCA
::
operator
()(
InputArray
_data
,
InputArray
__mean
,
int
flags
,
int
maxComponents
)
PCA
&
PCA
::
operator
()(
InputArray
_data
,
InputArray
__mean
,
int
flags
,
int
maxComponents
)
...
@@ -3077,7 +3077,7 @@ void cv::PCAComputeVar(InputArray data, InputOutputArray mean,
...
@@ -3077,7 +3077,7 @@ void cv::PCAComputeVar(InputArray data, InputOutputArray mean,
OutputArray
eigenvectors
,
double
retainedVariance
)
OutputArray
eigenvectors
,
double
retainedVariance
)
{
{
PCA
pca
;
PCA
pca
;
pca
(
data
,
mean
,
0
,
retainedVariance
);
pca
.
computeVar
(
data
,
mean
,
0
,
retainedVariance
);
pca
.
mean
.
copyTo
(
mean
);
pca
.
mean
.
copyTo
(
mean
);
pca
.
eigenvectors
.
copyTo
(
eigenvectors
);
pca
.
eigenvectors
.
copyTo
(
eigenvectors
);
}
}
...
...
modules/core/src/parallel.cpp
View file @
781d8982
...
@@ -362,8 +362,8 @@ void cv::setNumThreads( int threads )
...
@@ -362,8 +362,8 @@ void cv::setNumThreads( int threads )
else
if
(
pplScheduler
==
0
||
1
+
pplScheduler
->
GetNumberOfVirtualProcessors
()
!=
(
unsigned
int
)
threads
)
else
if
(
pplScheduler
==
0
||
1
+
pplScheduler
->
GetNumberOfVirtualProcessors
()
!=
(
unsigned
int
)
threads
)
{
{
pplScheduler
=
Concurrency
::
Scheduler
::
Create
(
Concurrency
::
SchedulerPolicy
(
2
,
pplScheduler
=
Concurrency
::
Scheduler
::
Create
(
Concurrency
::
SchedulerPolicy
(
2
,
Concurrency
::
PolicyElementKey
::
MinConcurrency
,
threads
-
1
,
Concurrency
::
MinConcurrency
,
threads
-
1
,
Concurrency
::
PolicyElementKey
::
MaxConcurrency
,
threads
-
1
));
Concurrency
::
MaxConcurrency
,
threads
-
1
));
}
}
#endif
#endif
...
...
modules/core/test/test_mat.cpp
View file @
781d8982
...
@@ -426,7 +426,7 @@ protected:
...
@@ -426,7 +426,7 @@ protected:
}
}
// 3. check C++ PCA w/retainedVariance
// 3. check C++ PCA w/retainedVariance
cPCA
(
rPoints
.
t
(),
Mat
(),
CV_PCA_DATA_AS_COL
,
retainedVariance
);
cPCA
.
computeVar
(
rPoints
.
t
(),
Mat
(),
CV_PCA_DATA_AS_COL
,
retainedVariance
);
diffPrjEps
=
1
,
diffBackPrjEps
=
1
;
diffPrjEps
=
1
,
diffBackPrjEps
=
1
;
Mat
rvPrjTestPoints
=
cPCA
.
project
(
rTestPoints
.
t
());
Mat
rvPrjTestPoints
=
cPCA
.
project
(
rTestPoints
.
t
());
...
...
modules/flann/src/miniflann.cpp
View file @
781d8982
...
@@ -500,7 +500,7 @@ int runRadiusSearch_(void* index, const Mat& query, Mat& indices, Mat& dists,
...
@@ -500,7 +500,7 @@ int runRadiusSearch_(void* index, const Mat& query, Mat& indices, Mat& dists,
::
cvflann
::
Matrix
<
DistanceType
>
_dists
((
DistanceType
*
)
dists
.
data
,
dists
.
rows
,
dists
.
cols
);
::
cvflann
::
Matrix
<
DistanceType
>
_dists
((
DistanceType
*
)
dists
.
data
,
dists
.
rows
,
dists
.
cols
);
return
((
IndexType
*
)
index
)
->
radiusSearch
(
_query
,
_indices
,
_dists
,
return
((
IndexType
*
)
index
)
->
radiusSearch
(
_query
,
_indices
,
_dists
,
saturate_cast
<
DistanceType
>
(
radius
),
saturate_cast
<
float
>
(
radius
),
(
const
::
cvflann
::
SearchParams
&
)
get_params
(
params
));
(
const
::
cvflann
::
SearchParams
&
)
get_params
(
params
));
}
}
...
...
modules/highgui/src/cap_qtkit.mm
View file @
781d8982
...
@@ -503,6 +503,9 @@ bool CvCaptureCAM::setProperty(int property_id, double value) {
...
@@ -503,6 +503,9 @@ bool CvCaptureCAM::setProperty(int property_id, double value) {
didOutputVideoFrame:(CVImageBufferRef)videoFrame
didOutputVideoFrame:(CVImageBufferRef)videoFrame
withSampleBuffer:(QTSampleBuffer *)sampleBuffer
withSampleBuffer:(QTSampleBuffer *)sampleBuffer
fromConnection:(QTCaptureConnection *)connection {
fromConnection:(QTCaptureConnection *)connection {
(void)captureOutput;
(void)sampleBuffer;
(void)connection;
CVBufferRetain(videoFrame);
CVBufferRetain(videoFrame);
CVImageBufferRef imageBufferToRelease = mCurrentImageBuffer;
CVImageBufferRef imageBufferToRelease = mCurrentImageBuffer;
...
@@ -519,6 +522,9 @@ bool CvCaptureCAM::setProperty(int property_id, double value) {
...
@@ -519,6 +522,9 @@ bool CvCaptureCAM::setProperty(int property_id, double value) {
- (void)captureOutput:(QTCaptureOutput *)captureOutput
- (void)captureOutput:(QTCaptureOutput *)captureOutput
didDropVideoFrameWithSampleBuffer:(QTSampleBuffer *)sampleBuffer
didDropVideoFrameWithSampleBuffer:(QTSampleBuffer *)sampleBuffer
fromConnection:(QTCaptureConnection *)connection {
fromConnection:(QTCaptureConnection *)connection {
(void)captureOutput;
(void)sampleBuffer;
(void)connection;
cout << "Camera dropped frame!" << endl;
cout << "Camera dropped frame!" << endl;
}
}
...
...
modules/highgui/src/grfmt_exr.cpp
View file @
781d8982
...
@@ -48,6 +48,10 @@
...
@@ -48,6 +48,10 @@
# pragma warning( disable: 4100 4244 4267 )
# pragma warning( disable: 4100 4244 4267 )
#endif
#endif
#if defined __GNUC__ && defined __APPLE__
# pragma GCC diagnostic ignored "-Wshadow"
#endif
#include <ImfHeader.h>
#include <ImfHeader.h>
#include <ImfInputFile.h>
#include <ImfInputFile.h>
#include <ImfOutputFile.h>
#include <ImfOutputFile.h>
...
...
modules/highgui/src/grfmt_exr.hpp
View file @
781d8982
...
@@ -45,6 +45,10 @@
...
@@ -45,6 +45,10 @@
#ifdef HAVE_OPENEXR
#ifdef HAVE_OPENEXR
#if defined __GNUC__ && defined __APPLE__
# pragma GCC diagnostic ignored "-Wshadow"
#endif
#include <ImfChromaticities.h>
#include <ImfChromaticities.h>
#include <ImfInputFile.h>
#include <ImfInputFile.h>
#include <ImfChannelList.h>
#include <ImfChannelList.h>
...
...
modules/highgui/src/window_cocoa.mm
View file @
781d8982
...
@@ -136,7 +136,7 @@ static bool wasInitialized = false;
...
@@ -136,7 +136,7 @@ static bool wasInitialized = false;
}
}
}*/
}*/
CV_IMPL int cvInitSystem( int
argc, char** argv
)
CV_IMPL int cvInitSystem( int
, char**
)
{
{
//cout << "cvInitSystem" << endl;
//cout << "cvInitSystem" << endl;
wasInitialized = true;
wasInitialized = true;
...
@@ -159,7 +159,7 @@ CV_IMPL int cvInitSystem( int argc, char** argv)
...
@@ -159,7 +159,7 @@ CV_IMPL int cvInitSystem( int argc, char** argv)
return 0;
return 0;
}
}
CVWindow *cvGetWindow(const char *name) {
static
CVWindow *cvGetWindow(const char *name) {
//cout << "cvGetWindow" << endl;
//cout << "cvGetWindow" << endl;
NSAutoreleasePool* localpool = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool* localpool = [[NSAutoreleasePool alloc] init];
NSString *cvname = [NSString stringWithFormat:@"%s", name];
NSString *cvname = [NSString stringWithFormat:@"%s", name];
...
@@ -614,6 +614,7 @@ void cvSetModeWindow_COCOA( const char* name, double prop_value )
...
@@ -614,6 +614,7 @@ void cvSetModeWindow_COCOA( const char* name, double prop_value )
@synthesize status;
@synthesize status;
- (void)cvSendMouseEvent:(NSEvent *)event type:(int)type flags:(int)flags {
- (void)cvSendMouseEvent:(NSEvent *)event type:(int)type flags:(int)flags {
(void)event;
//cout << "cvSendMouseEvent" << endl;
//cout << "cvSendMouseEvent" << endl;
NSPoint mp = [NSEvent mouseLocation];
NSPoint mp = [NSEvent mouseLocation];
//NSRect visible = [[self contentView] frame];
//NSRect visible = [[self contentView] frame];
...
@@ -924,6 +925,7 @@ void cvSetModeWindow_COCOA( const char* name, double prop_value )
...
@@ -924,6 +925,7 @@ void cvSetModeWindow_COCOA( const char* name, double prop_value )
}
}
- (void)sliderChanged:(NSNotification *)notification {
- (void)sliderChanged:(NSNotification *)notification {
(void)notification;
int pos = [slider intValue];
int pos = [slider intValue];
if(value)
if(value)
*value = pos;
*value = pos;
...
...
modules/imgproc/src/color.cpp
View file @
781d8982
...
@@ -1387,8 +1387,8 @@ struct RGB2Lab_f
...
@@ -1387,8 +1387,8 @@ struct RGB2Lab_f
C6
=
coeffs
[
6
],
C7
=
coeffs
[
7
],
C8
=
coeffs
[
8
];
C6
=
coeffs
[
6
],
C7
=
coeffs
[
7
],
C8
=
coeffs
[
8
];
n
*=
3
;
n
*=
3
;
static
const
float
_1_3
=
1.0
/
3.0
;
static
const
float
_1_3
=
1.0
f
/
3.0
f
;
static
const
double
_a
=
16.0
/
116
;
static
const
float
_a
=
16.0
f
/
116.0
f
;
for
(
i
=
0
;
i
<
n
;
i
+=
3
,
src
+=
scn
)
for
(
i
=
0
;
i
<
n
;
i
+=
3
,
src
+=
scn
)
{
{
float
R
=
clip
(
src
[
0
]);
float
R
=
clip
(
src
[
0
]);
...
@@ -1409,11 +1409,11 @@ struct RGB2Lab_f
...
@@ -1409,11 +1409,11 @@ struct RGB2Lab_f
float
Y
=
R
*
C3
+
G
*
C4
+
B
*
C5
;
float
Y
=
R
*
C3
+
G
*
C4
+
B
*
C5
;
float
Z
=
R
*
C6
+
G
*
C7
+
B
*
C8
;
float
Z
=
R
*
C6
+
G
*
C7
+
B
*
C8
;
float
FX
=
X
>
0.008856
?
pow
(
X
,
_1_3
)
:
(
7.787
f
*
X
+
_a
);
float
FX
=
X
>
0.008856
f
?
pow
(
X
,
_1_3
)
:
(
7.787
f
*
X
+
_a
);
float
FY
=
Y
>
0.008856
?
pow
(
Y
,
_1_3
)
:
(
7.787
f
*
Y
+
_a
);
float
FY
=
Y
>
0.008856
f
?
pow
(
Y
,
_1_3
)
:
(
7.787
f
*
Y
+
_a
);
float
FZ
=
Z
>
0.008856
?
pow
(
Z
,
_1_3
)
:
(
7.787
f
*
Z
+
_a
);
float
FZ
=
Z
>
0.008856
f
?
pow
(
Z
,
_1_3
)
:
(
7.787
f
*
Z
+
_a
);
float
L
=
Y
>
0.008856
?
(
116.
f
*
FY
-
16.
f
)
:
(
903.3
*
Y
);
float
L
=
Y
>
0.008856
f
?
(
116.
f
*
FY
-
16.
f
)
:
(
903.3
f
*
Y
);
float
a
=
500.
f
*
(
FX
-
FY
);
float
a
=
500.
f
*
(
FX
-
FY
);
float
b
=
200.
f
*
(
FY
-
FZ
);
float
b
=
200.
f
*
(
FY
-
FZ
);
...
...
modules/legacy/src/_kdtree.hpp
View file @
781d8982
...
@@ -169,7 +169,7 @@ private:
...
@@ -169,7 +169,7 @@ private:
__instype
*
split
=
median
;
__instype
*
split
=
median
;
for
(;
split
!=
last
&&
deref
(
ctor
(
*
split
),
dim
)
==
for
(;
split
!=
last
&&
deref
(
ctor
(
*
split
),
dim
)
==
deref
(
ctor
(
*
median
),
dim
);
++
split
)
;
deref
(
ctor
(
*
median
),
dim
);
++
split
)
{}
if
(
split
==
last
)
{
// leaf
if
(
split
==
last
)
{
// leaf
int
nexti
=
-
1
;
int
nexti
=
-
1
;
...
@@ -387,9 +387,8 @@ public:
...
@@ -387,9 +387,8 @@ public:
// ret_nn_pq is an array containing the (at most) k nearest neighbors
// ret_nn_pq is an array containing the (at most) k nearest neighbors
// (see bbf_nn structure def above).
// (see bbf_nn structure def above).
template
<
class
__desctype
>
template
<
class
__desctype
>
int
find_nn_bbf
(
const
__desctype
*
d
,
int
find_nn_bbf
(
const
__desctype
*
d
,
int
k
,
int
emax
,
bbf_nn_pqueue
&
ret_nn_pq
)
const
int
k
,
int
emax
,
{
bbf_nn_pqueue
&
ret_nn_pq
)
const
{
assert
(
k
>
0
);
assert
(
k
>
0
);
ret_nn_pq
.
clear
();
ret_nn_pq
.
clear
();
...
@@ -400,7 +399,8 @@ public:
...
@@ -400,7 +399,8 @@ public:
// iterate while queue non-empty and emax>0
// iterate while queue non-empty and emax>0
tmp_pq
.
clear
();
tmp_pq
.
clear
();
tmp_pq
.
push_back
(
bbf_node
(
root_node
,
0
));
tmp_pq
.
push_back
(
bbf_node
(
root_node
,
0
));
while
(
tmp_pq
.
size
()
&&
emax
>
0
)
{
while
(
tmp_pq
.
size
()
&&
emax
>
0
)
{
// from node nearest query point d, run to leaf
// from node nearest query point d, run to leaf
std
::
pop_heap
(
tmp_pq
.
begin
(),
tmp_pq
.
end
());
std
::
pop_heap
(
tmp_pq
.
begin
(),
tmp_pq
.
end
());
...
@@ -408,18 +408,17 @@ public:
...
@@ -408,18 +408,17 @@ public:
tmp_pq
.
erase
(
tmp_pq
.
end
()
-
1
);
tmp_pq
.
erase
(
tmp_pq
.
end
()
-
1
);
int
i
;
int
i
;
for
(
i
=
bbf
.
node
;
for
(
i
=
bbf
.
node
;
i
!=
-
1
&&
nodes
[
i
].
dim
>=
0
;
i
=
bbf_branch
(
i
,
d
,
tmp_pq
))
{}
i
!=
-
1
&&
nodes
[
i
].
dim
>=
0
;
i
=
bbf_branch
(
i
,
d
,
tmp_pq
));
if
(
i
!=
-
1
)
{
if
(
i
!=
-
1
)
{
// add points in leaf/bin to ret_nn_pq
// add points in leaf/bin to ret_nn_pq
do
{
do
{
bbf_new_nn
(
ret_nn_pq
,
k
,
d
,
nodes
[
i
].
value
);
bbf_new_nn
(
ret_nn_pq
,
k
,
d
,
nodes
[
i
].
value
);
}
while
(
-
1
!=
(
i
=
nodes
[
i
].
right
));
}
while
(
-
1
!=
(
i
=
nodes
[
i
].
right
));
--
emax
;
--
emax
;
}
}
}
}
...
...
modules/legacy/src/dpstereo.cpp
View file @
781d8982
...
@@ -414,7 +414,7 @@ static void icvFindStereoCorrespondenceByBirchfieldDP( uchar* src1, uchar* src2,
...
@@ -414,7 +414,7 @@ static void icvFindStereoCorrespondenceByBirchfieldDP( uchar* src1, uchar* src2,
for
(
x
=
1
;
x
<
imgW
;
x
++
)
for
(
x
=
1
;
x
<
imgW
;
x
++
)
{
{
i
=
x
-
1
;
i
=
x
-
1
;
for
(
;
x
<
imgW
&&
dest
[
y
*
widthStep
+
x
]
==
dest
[
y
*
widthStep
+
x
-
1
];
x
++
)
;
for
(
;
x
<
imgW
&&
dest
[
y
*
widthStep
+
x
]
==
dest
[
y
*
widthStep
+
x
-
1
];
x
++
)
{}
s
=
x
-
i
;
s
=
x
-
i
;
for
(
;
i
<
x
;
i
++
)
for
(
;
i
<
x
;
i
++
)
{
{
...
...
modules/legacy/src/testseq.cpp
View file @
781d8982
...
@@ -633,7 +633,7 @@ static CvTestSeqElem* icvTestSeqReadElemOne(CvTestSeq_* pTS, CvFileStorage* fs,
...
@@ -633,7 +633,7 @@ static CvTestSeqElem* icvTestSeqReadElemOne(CvTestSeq_* pTS, CvFileStorage* fs,
for
(
i0
=
0
,
i1
=
1
;
i1
<
KeyFrameNum
;)
for
(
i0
=
0
,
i1
=
1
;
i1
<
KeyFrameNum
;)
{
{
for
(
i1
=
i0
+
1
;
i1
<
KeyFrameNum
&&
KeyFrames
[
i1
]
<
0
;
i1
++
)
;
for
(
i1
=
i0
+
1
;
i1
<
KeyFrameNum
&&
KeyFrames
[
i1
]
<
0
;
i1
++
)
{}
assert
(
i1
<
KeyFrameNum
);
assert
(
i1
<
KeyFrameNum
);
assert
(
i1
>
i0
);
assert
(
i1
>
i0
);
...
@@ -779,7 +779,7 @@ static CvTestSeqElem* icvTestSeqReadElemAll(CvTestSeq_* pTS, CvFileStorage* fs,
...
@@ -779,7 +779,7 @@ static CvTestSeqElem* icvTestSeqReadElemAll(CvTestSeq_* pTS, CvFileStorage* fs,
}
}
/* Find last element: */
/* Find last element: */
for
(
pElemLast
=
pElemNew
;
pElemLast
&&
pElemLast
->
next
;
pElemLast
=
pElemLast
->
next
)
;
for
(
pElemLast
=
pElemNew
;
pElemLast
&&
pElemLast
->
next
;
pElemLast
=
pElemLast
->
next
)
{}
}
/* Next element. */
}
/* Next element. */
}
/* Read all element in sequence. */
}
/* Read all element in sequence. */
...
@@ -842,7 +842,7 @@ CvTestSeq* cvCreateTestSeq(char* pConfigfile, char** videos, int numvideo, float
...
@@ -842,7 +842,7 @@ CvTestSeq* cvCreateTestSeq(char* pConfigfile, char** videos, int numvideo, float
else
else
{
{
CvTestSeqElem
*
p
=
NULL
;
CvTestSeqElem
*
p
=
NULL
;
for
(
p
=
pTS
->
pElemList
;
p
->
next
;
p
=
p
->
next
)
;
for
(
p
=
pTS
->
pElemList
;
p
->
next
;
p
=
p
->
next
)
{}
p
->
next
=
pElemNew
;
p
->
next
=
pElemNew
;
}
}
}
/* Read all videos. */
}
/* Read all videos. */
...
...
modules/python/src2/cv2.cv.hpp
View file @
781d8982
...
@@ -3829,8 +3829,9 @@ static int zero = 0;
...
@@ -3829,8 +3829,9 @@ static int zero = 0;
coeff_usage = CV_VALUE; \
coeff_usage = CV_VALUE; \
else if ((length == alpha.count) && (alpha.count == beta.count) && (beta.count == gamma.count)) \
else if ((length == alpha.count) && (alpha.count == beta.count) && (beta.count == gamma.count)) \
coeff_usage = CV_ARRAY; \
coeff_usage = CV_ARRAY; \
else \
else { \
return (PyObject*)failmsg("SnakeImage weights invalid"); \
failmsg("SnakeImage weights invalid"); \
return (PyObject*)0; } \
cvSnakeImage(image, points, length, a, b, g, coeff_usage, win, criteria, calc_gradient); \
cvSnakeImage(image, points, length, a, b, g, coeff_usage, win, criteria, calc_gradient); \
} while (0)
} while (0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment