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
de4f1aeb
Commit
de4f1aeb
authored
Nov 20, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some GCC 4.4 warnings
parent
752c4bc4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
18 deletions
+15
-18
CMakeLists.txt
CMakeLists.txt
+3
-3
lapack.cpp
modules/core/src/lapack.cpp
+1
-2
matrix.cpp
modules/core/src/matrix.cpp
+8
-2
featureselect.cpp
modules/imgproc/src/featureselect.cpp
+1
-2
histogram.cpp
modules/imgproc/src/histogram.cpp
+1
-2
knearest.cpp
modules/ml/src/knearest.cpp
+1
-1
opencv2x.h
modules/python/opencv2x.h
+0
-6
No files found.
CMakeLists.txt
View file @
de4f1aeb
...
@@ -562,10 +562,10 @@ if (WITH_TBB)
...
@@ -562,10 +562,10 @@ if (WITH_TBB)
if
(
TBB_FOUND
)
if
(
TBB_FOUND
)
set
(
HAVE_TBB 1
)
set
(
HAVE_TBB 1
)
if
(
NOT
"
${
TBB_INCLUDE_DIRS
}
"
STREQUAL
""
)
if
(
NOT
${
TBB_INCLUDE_DIRS
}
STREQUAL
""
)
include_directories
(
"
${
TBB_INCLUDE_DIRS
}
"
)
include_directories
(
${
TBB_INCLUDE_DIRS
}
)
endif
()
endif
()
link_directories
(
"
${
TBB_LIBRARY_DIRS
}
"
)
link_directories
(
${
TBB_LIBRARY_DIRS
}
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
${
TBB_LIBRARIES
}
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
${
TBB_LIBRARIES
}
)
else
()
else
()
set
(
TBB_DEFAULT_INCLUDE_DIRS
set
(
TBB_DEFAULT_INCLUDE_DIRS
...
...
modules/core/src/lapack.cpp
View file @
de4f1aeb
...
@@ -1454,8 +1454,7 @@ void SVD::backSubst( const Mat& w, const Mat& u, const Mat& vt, const Mat& rhs,
...
@@ -1454,8 +1454,7 @@ void SVD::backSubst( const Mat& w, const Mat& u, const Mat& vt, const Mat& rhs,
AutoBuffer
<
double
>
buffer
(
nb
);
AutoBuffer
<
double
>
buffer
(
nb
);
CV_Assert
(
u
.
data
&&
vt
.
data
&&
w
.
data
);
CV_Assert
(
u
.
data
&&
vt
.
data
&&
w
.
data
);
if
(
rhs
.
data
)
CV_Assert
(
rhs
.
data
==
0
||
(
rhs
.
type
()
==
type
&&
rhs
.
rows
==
m
)
);
CV_Assert
(
rhs
.
type
()
==
type
&&
rhs
.
rows
==
m
);
dst
.
create
(
n
,
nb
,
type
);
dst
.
create
(
n
,
nb
,
type
);
if
(
type
==
CV_32F
)
if
(
type
==
CV_32F
)
...
...
modules/core/src/matrix.cpp
View file @
de4f1aeb
...
@@ -686,7 +686,10 @@ void extractImageCOI(const CvArr* arr, Mat& ch, int coi)
...
@@ -686,7 +686,10 @@ void extractImageCOI(const CvArr* arr, Mat& ch, int coi)
Mat
mat
=
cvarrToMat
(
arr
,
false
,
true
,
1
);
Mat
mat
=
cvarrToMat
(
arr
,
false
,
true
,
1
);
ch
.
create
(
mat
.
dims
,
mat
.
size
,
mat
.
depth
());
ch
.
create
(
mat
.
dims
,
mat
.
size
,
mat
.
depth
());
if
(
coi
<
0
)
if
(
coi
<
0
)
CV_Assert
(
CV_IS_IMAGE
(
arr
)
&&
(
coi
=
cvGetImageCOI
((
const
IplImage
*
)
arr
)
-
1
)
>=
0
);
{
CV_Assert
(
CV_IS_IMAGE
(
arr
)
);
coi
=
cvGetImageCOI
((
const
IplImage
*
)
arr
)
-
1
;
}
CV_Assert
(
0
<=
coi
&&
coi
<
mat
.
channels
());
CV_Assert
(
0
<=
coi
&&
coi
<
mat
.
channels
());
int
_pairs
[]
=
{
coi
,
0
};
int
_pairs
[]
=
{
coi
,
0
};
mixChannels
(
&
mat
,
1
,
&
ch
,
1
,
_pairs
,
1
);
mixChannels
(
&
mat
,
1
,
&
ch
,
1
,
_pairs
,
1
);
...
@@ -696,7 +699,10 @@ void insertImageCOI(const Mat& ch, CvArr* arr, int coi)
...
@@ -696,7 +699,10 @@ void insertImageCOI(const Mat& ch, CvArr* arr, int coi)
{
{
Mat
mat
=
cvarrToMat
(
arr
,
false
,
true
,
1
);
Mat
mat
=
cvarrToMat
(
arr
,
false
,
true
,
1
);
if
(
coi
<
0
)
if
(
coi
<
0
)
CV_Assert
(
CV_IS_IMAGE
(
arr
)
&&
(
coi
=
cvGetImageCOI
((
const
IplImage
*
)
arr
)
-
1
)
>=
0
);
{
CV_Assert
(
CV_IS_IMAGE
(
arr
)
);
coi
=
cvGetImageCOI
((
const
IplImage
*
)
arr
)
-
1
;
}
CV_Assert
(
ch
.
size
==
mat
.
size
&&
ch
.
depth
()
==
mat
.
depth
()
&&
0
<=
coi
&&
coi
<
mat
.
channels
());
CV_Assert
(
ch
.
size
==
mat
.
size
&&
ch
.
depth
()
==
mat
.
depth
()
&&
0
<=
coi
&&
coi
<
mat
.
channels
());
int
_pairs
[]
=
{
0
,
coi
};
int
_pairs
[]
=
{
0
,
coi
};
mixChannels
(
&
ch
,
1
,
&
mat
,
1
,
_pairs
,
1
);
mixChannels
(
&
ch
,
1
,
&
mat
,
1
,
_pairs
,
1
);
...
...
modules/imgproc/src/featureselect.cpp
View file @
de4f1aeb
...
@@ -57,8 +57,7 @@ void goodFeaturesToTrack( const Mat& image, vector<Point2f>& corners,
...
@@ -57,8 +57,7 @@ void goodFeaturesToTrack( const Mat& image, vector<Point2f>& corners,
{
{
CV_Assert
(
qualityLevel
>
0
&&
minDistance
>=
0
&&
maxCorners
>=
0
);
CV_Assert
(
qualityLevel
>
0
&&
minDistance
>=
0
&&
maxCorners
>=
0
);
if
(
mask
.
data
)
CV_Assert
(
mask
.
empty
()
||
(
mask
.
type
()
==
CV_8UC1
&&
mask
.
size
()
==
image
.
size
())
);
CV_Assert
(
mask
.
type
()
==
CV_8UC1
&&
mask
.
size
()
==
image
.
size
()
);
Mat
eig
,
tmp
;
Mat
eig
,
tmp
;
if
(
useHarrisDetector
)
if
(
useHarrisDetector
)
...
...
modules/imgproc/src/histogram.cpp
View file @
de4f1aeb
...
@@ -117,8 +117,7 @@ static void histPrepareImages( const Mat* images, int nimages, const int* channe
...
@@ -117,8 +117,7 @@ static void histPrepareImages( const Mat* images, int nimages, const int* channe
Size
&
imsize
,
vector
<
double
>&
uniranges
)
Size
&
imsize
,
vector
<
double
>&
uniranges
)
{
{
int
i
,
j
,
c
;
int
i
,
j
,
c
;
if
(
!
channels
)
CV_Assert
(
channels
!=
0
||
nimages
==
dims
);
CV_Assert
(
nimages
==
dims
);
imsize
=
images
[
0
].
size
();
imsize
=
images
[
0
].
size
();
int
depth
=
images
[
0
].
depth
(),
esz1
=
(
int
)
images
[
0
].
elemSize1
();
int
depth
=
images
[
0
].
depth
(),
esz1
=
(
int
)
images
[
0
].
elemSize1
();
...
...
modules/ml/src/knearest.cpp
View file @
de4f1aeb
...
@@ -427,7 +427,7 @@ float CvKNearest::find_nearest( const Mat& _samples, int k, Mat* _results,
...
@@ -427,7 +427,7 @@ float CvKNearest::find_nearest( const Mat& _samples, int k, Mat* _results,
{
{
if
(
!
(
_results
->
data
&&
(
_results
->
type
()
==
CV_32F
||
if
(
!
(
_results
->
data
&&
(
_results
->
type
()
==
CV_32F
||
(
_results
->
type
()
==
CV_32S
&&
regression
))
&&
(
_results
->
type
()
==
CV_32S
&&
regression
))
&&
(
_results
->
cols
==
1
||
_results
->
rows
==
1
)
||
(
_results
->
cols
==
1
||
_results
->
rows
==
1
)
&&
_results
->
cols
+
_results
->
rows
-
1
==
_samples
.
rows
)
)
_results
->
cols
+
_results
->
rows
-
1
==
_samples
.
rows
)
)
_results
->
create
(
_samples
.
rows
,
1
,
CV_32F
);
_results
->
create
(
_samples
.
rows
,
1
,
CV_32F
);
presults
=
&
(
results
=
*
_results
);
presults
=
&
(
results
=
*
_results
);
...
...
modules/python/opencv2x.h
View file @
de4f1aeb
...
@@ -76,8 +76,6 @@ public:
...
@@ -76,8 +76,6 @@ public:
void
allocate
(
int
dims
,
const
int
*
sizes
,
int
type
,
int
*&
refcount
,
void
allocate
(
int
dims
,
const
int
*
sizes
,
int
type
,
int
*&
refcount
,
uchar
*&
datastart
,
uchar
*&
data
,
size_t
*
step
)
uchar
*&
datastart
,
uchar
*&
data
,
size_t
*
step
)
{
{
static
int
ncalls
=
0
;
int
depth
=
CV_MAT_DEPTH
(
type
);
int
depth
=
CV_MAT_DEPTH
(
type
);
int
cn
=
CV_MAT_CN
(
type
);
int
cn
=
CV_MAT_CN
(
type
);
const
int
f
=
(
int
)(
sizeof
(
size_t
)
/
8
);
const
int
f
=
(
int
)(
sizeof
(
size_t
)
/
8
);
...
@@ -108,8 +106,6 @@ public:
...
@@ -108,8 +106,6 @@ public:
void
deallocate
(
int
*
refcount
,
uchar
*
datastart
,
uchar
*
data
)
void
deallocate
(
int
*
refcount
,
uchar
*
datastart
,
uchar
*
data
)
{
{
static
int
ncalls
=
0
;
if
(
!
refcount
)
if
(
!
refcount
)
return
;
return
;
PyObject
*
o
=
pyObjectFromRefcount
(
refcount
);
PyObject
*
o
=
pyObjectFromRefcount
(
refcount
);
...
@@ -124,8 +120,6 @@ enum { ARG_NONE = 0, ARG_MAT = 1, ARG_SCALAR = 2 };
...
@@ -124,8 +120,6 @@ enum { ARG_NONE = 0, ARG_MAT = 1, ARG_SCALAR = 2 };
static
int
pyopencv_to
(
const
PyObject
*
o
,
Mat
&
m
,
const
char
*
name
=
"<unknown>"
,
bool
allowND
=
true
)
static
int
pyopencv_to
(
const
PyObject
*
o
,
Mat
&
m
,
const
char
*
name
=
"<unknown>"
,
bool
allowND
=
true
)
{
{
static
int
call_idx
=
0
;
if
(
!
o
||
o
==
Py_None
)
if
(
!
o
||
o
==
Py_None
)
{
{
if
(
!
m
.
data
)
if
(
!
m
.
data
)
...
...
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