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
4a14795e
Commit
4a14795e
authored
Oct 21, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed several gcc 4.1 warnings
parent
b80bdf32
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
21 additions
and
20 deletions
+21
-20
general.h
modules/flann/include/opencv2/flann/general.h
+1
-0
approx.cpp
modules/imgproc/src/approx.cpp
+2
-2
_latentsvm.h
modules/objdetect/src/_latentsvm.h
+2
-2
_lsvm_distancetransform.h
modules/objdetect/src/_lsvm_distancetransform.h
+2
-2
_lsvm_fft.h
modules/objdetect/src/_lsvm_fft.h
+2
-2
_lsvm_matching.h
modules/objdetect/src/_lsvm_matching.h
+2
-2
_lsvm_resizeimg.h
modules/objdetect/src/_lsvm_resizeimg.h
+2
-2
_lsvm_routine.h
modules/objdetect/src/_lsvm_routine.h
+2
-2
distancetransform.cpp
modules/objdetect/src/distancetransform.cpp
+1
-0
featurepyramid.cpp
modules/objdetect/src/featurepyramid.cpp
+1
-1
latentsvmdetector.cpp
modules/objdetect/src/latentsvmdetector.cpp
+1
-1
lsvmparser.cpp
modules/objdetect/src/lsvmparser.cpp
+0
-1
matching.cpp
modules/objdetect/src/matching.cpp
+1
-1
resizeimg.cpp
modules/objdetect/src/resizeimg.cpp
+1
-1
routine.cpp
modules/objdetect/src/routine.cpp
+1
-1
No files found.
modules/flann/include/opencv2/flann/general.h
View file @
4a14795e
...
...
@@ -124,6 +124,7 @@ protected:
IndexParams
(
flann_algorithm_t
algorithm_
)
:
algorithm
(
algorithm_
)
{};
public
:
virtual
~
IndexParams
()
{}
virtual
flann_algorithm_t
getIndexType
()
const
=
0
;
virtual
void
print
()
const
=
0
;
...
...
modules/imgproc/src/approx.cpp
View file @
4a14795e
...
...
@@ -591,7 +591,7 @@ icvApproxPolyDP( CvSeq* src_contour, int header_size,
for
(
i
=
slice
.
start_index
+
1
;
i
<
slice
.
end_index
;
i
++
)
{
CV_READ_SEQ_ELEM
(
pt
,
reader
);
dist
=
abs
((
pt
.
y
-
start_pt
.
y
)
*
dx
-
(
pt
.
x
-
start_pt
.
x
)
*
dy
);
dist
=
f
abs
((
pt
.
y
-
start_pt
.
y
)
*
dx
-
(
pt
.
x
-
start_pt
.
x
)
*
dy
);
if
(
dist
>
max_dist
)
{
...
...
@@ -647,7 +647,7 @@ icvApproxPolyDP( CvSeq* src_contour, int header_size,
dx
=
end_pt
.
x
-
start_pt
.
x
;
dy
=
end_pt
.
y
-
start_pt
.
y
;
dist
=
abs
((
pt
.
x
-
start_pt
.
x
)
*
dy
-
(
pt
.
y
-
start_pt
.
y
)
*
dx
);
dist
=
f
abs
((
pt
.
x
-
start_pt
.
x
)
*
dy
-
(
pt
.
y
-
start_pt
.
y
)
*
dx
);
if
(
dist
*
dist
<=
0.5
*
eps
*
(
dx
*
dx
+
dy
*
dy
)
&&
dx
!=
0
&&
dy
!=
0
)
{
new_count
--
;
...
...
modules/objdetect/src/_latentsvm.h
View file @
4a14795e
...
...
@@ -2,8 +2,8 @@
/* Latent SVM prediction API */
/*****************************************************************************/
#ifndef
SVM_LATENTSVM
#define
SVM_LATENTSVM
#ifndef
_LATENTSVM_H_
#define
_LATENTSVM_H_
#include <stdio.h>
#include "_lsvm_types.h"
...
...
modules/objdetect/src/_lsvm_distancetransform.h
View file @
4a14795e
#ifndef
LSVM_DIST_TRANSFORM
#define
LSVM_DIST_TRANSFORM
#ifndef
_LSVM_DIST_TRANSFORM_H_
#define
_LSVM_DIST_TRANSFORM_H_
#include "_lsvm_types.h"
#include "_lsvm_error.h"
...
...
modules/objdetect/src/_lsvm_fft.h
View file @
4a14795e
#ifndef _LSVM_FFT_H
#define _LSVM_FFT_H
#ifndef _LSVM_FFT_H
_
#define _LSVM_FFT_H
_
#include "_lsvm_types.h"
#include "_lsvm_error.h"
...
...
modules/objdetect/src/_lsvm_matching.h
View file @
4a14795e
...
...
@@ -2,8 +2,8 @@
/* Matching procedure API */
/*****************************************************************************/
//
#ifndef
SVM_MATCHING
#define
SVM_MATCHING
#ifndef
_LSVM_MATCHING_H_
#define
_LSVM_MATCHING_H_
#include "_latentsvm.h"
#include "_lsvm_error.h"
...
...
modules/objdetect/src/_lsvm_resizeimg.h
View file @
4a14795e
#ifndef
RESIZEIMG
#define
RESIZEIMG
#ifndef
_LSVM_RESIZEIMG_H_
#define
_LSVM_RESIZEIMG_H_
#include "_lsvm_types.h"
...
...
modules/objdetect/src/_lsvm_routine.h
View file @
4a14795e
#ifndef _LSVM_ROUTINE_H
#define _LSVM_ROUTINE_H
#ifndef _LSVM_ROUTINE_H
_
#define _LSVM_ROUTINE_H
_
#include "_lsvm_types.h"
#include "_lsvm_error.h"
...
...
modules/objdetect/src/distancetransform.cpp
View file @
4a14795e
...
...
@@ -7,6 +7,7 @@
// a(y - q1) + b(q1 - y)(q1 - y) + f[q1]
// a(y - q2) + b(q2 - y)(q2 - y) + f[q2]
//
//
// API
// int GetPointOfIntersection(const float *f,
const float a, const float b,
...
...
modules/objdetect/src/featurepyramid.cpp
View file @
4a14795e
...
...
@@ -10,7 +10,7 @@
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
int
sign
(
float
r
){
static
inline
int
sign
(
float
r
){
if
(
r
>
0.0001
f
)
return
1
;
if
(
r
<
-
0.0001
f
)
return
-
1
;
return
0
;
...
...
modules/objdetect/src/latentsvmdetector.cpp
View file @
4a14795e
...
...
@@ -9,7 +9,7 @@
// CvLatentSvmDetector* cvLoadLatentSvmDetector(const char* filename);
// INPUT
// filename - path to the file containing the parameters of
- trained Latent SVM detector
//
- trained Latent SVM detector
// OUTPUT
// trained Latent SVM detector in internal representation
*/
...
...
modules/objdetect/src/lsvmparser.cpp
View file @
4a14795e
...
...
@@ -803,6 +803,5 @@ int loadModel(
}
(
*
kPartFilters
)[
0
]
=
comp
[
0
];
//printf("end_parse\n");
return
0
;
}
modules/objdetect/src/matching.cpp
View file @
4a14795e
...
...
@@ -256,7 +256,7 @@ int convFFTConv2d(const CvLSVMFftImage *featMapImage, const CvLSVMFftImage *filt
imagesMultRes
=
(
float
*
)
malloc
(
sizeof
(
float
)
*
size
);
fftImagesMulti
(
featMapImage
->
channels
[
0
],
filterImage
->
channels
[
0
],
featMapImage
->
dimY
,
featMapImage
->
dimX
,
imagesMultRes
);
for
(
i
=
1
;
(
i
<
featMapImage
->
p
)
&&
(
i
<
filterImage
->
p
);
i
++
)
for
(
i
=
1
;
(
i
<
(
int
)
featMapImage
->
p
)
&&
(
i
<
(
int
)
filterImage
->
p
);
i
++
)
{
fftImagesMulti
(
featMapImage
->
channels
[
i
],
filterImage
->
channels
[
i
],
featMapImage
->
dimY
,
featMapImage
->
dimX
,
imagesMult
);
...
...
modules/objdetect/src/resizeimg.cpp
View file @
4a14795e
...
...
@@ -4,7 +4,6 @@
#include <assert.h>
#include <math.h>
IplImage
*
resize_opencv
(
IplImage
*
img
,
float
scale
){
IplImage
*
imgTmp
;
...
...
@@ -242,3 +241,4 @@ IplImage * resize_opencv (IplImage * img, float scale){
// free(tmp);
// return imgTmp;
//}
//
modules/objdetect/src/routine.cpp
View file @
4a14795e
...
...
@@ -91,7 +91,7 @@ int allocFFTImage(CvLSVMFftImage **image, int p, int dimX, int dimY)
int
freeFFTImage
(
CvLSVMFftImage
**
image
)
{
unsigned
i
nt
i
;
unsigned
i
;
if
(
*
image
==
NULL
)
return
LATENT_SVM_OK
;
for
(
i
=
0
;
i
<
(
*
image
)
->
p
;
i
++
)
{
...
...
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