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
b5755b12
Commit
b5755b12
authored
Apr 10, 2014
by
Vadim Pisarevsky
Committed by
OpenCV Buildbot
Apr 10, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2588 from vpisarev:fix_samples_n_unused
parents
7b366df8
1b339eb0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
35 deletions
+3
-35
arithm.cpp
modules/core/src/arithm.cpp
+2
-0
mathfuncs.cpp
modules/core/src/mathfuncs.cpp
+0
-1
test_countnonzero.cpp
modules/core/test/test_countnonzero.cpp
+0
-3
samplers.cpp
modules/imgproc/src/samplers.cpp
+1
-1
sift.cpp
modules/nonfree/src/sift.cpp
+0
-15
simpleflow.cpp
modules/video/src/simpleflow.cpp
+0
-15
No files found.
modules/core/src/arithm.cpp
View file @
b5755b12
...
...
@@ -448,11 +448,13 @@ template<typename T> struct OpNot
T
operator
()(
T
a
,
T
)
const
{
return
~
a
;
}
};
#if (ARITHM_USE_IPP == 1)
static
inline
void
fixSteps
(
Size
sz
,
size_t
elemSize
,
size_t
&
step1
,
size_t
&
step2
,
size_t
&
step
)
{
if
(
sz
.
height
==
1
)
step1
=
step2
=
step
=
sz
.
width
*
elemSize
;
}
#endif
static
void
add8u
(
const
uchar
*
src1
,
size_t
step1
,
const
uchar
*
src2
,
size_t
step2
,
...
...
modules/core/src/mathfuncs.cpp
View file @
b5755b12
...
...
@@ -46,7 +46,6 @@
namespace
cv
{
static
const
int
MAX_BLOCK_SIZE
=
1024
;
typedef
void
(
*
MathFunc
)(
const
void
*
src
,
void
*
dst
,
int
len
);
static
const
float
atan2_p1
=
0.9997878412794807
f
*
(
float
)(
180
/
CV_PI
);
...
...
modules/core/test/test_countnonzero.cpp
View file @
b5755b12
...
...
@@ -52,9 +52,6 @@ using namespace std;
#define sign(a) a > 0 ? 1 : a == 0 ? 0 : -1
const
int
FLOAT_TYPE
[
2
]
=
{
CV_32F
,
CV_64F
};
const
int
INT_TYPE
[
5
]
=
{
CV_8U
,
CV_8S
,
CV_16U
,
CV_16S
,
CV_32S
};
#define MAX_WIDTH 100
#define MAX_HEIGHT 100
...
...
modules/imgproc/src/samplers.cpp
View file @
b5755b12
...
...
@@ -172,7 +172,7 @@ void getRectSubPix_Cn_(const _Tp* src, size_t src_step, Size src_size,
dst
[
j
+
1
]
=
cast_op
(
s1
);
}
for
(
j
=
0
;
j
<
win_size
.
width
;
j
++
)
for
(
;
j
<
win_size
.
width
;
j
++
)
{
_WTp
s0
=
src
[
j
]
*
a11
+
src
[
j
+
cn
]
*
a12
+
src
[
j
+
src_step
]
*
a21
+
src
[
j
+
src_step
+
cn
]
*
a22
;
dst
[
j
]
=
cast_op
(
s0
);
...
...
modules/nonfree/src/sift.cpp
View file @
b5755b12
...
...
@@ -111,21 +111,6 @@ namespace cv
/******************************* Defs and macros *****************************/
// default number of sampled intervals per octave
static
const
int
SIFT_INTVLS
=
3
;
// default sigma for initial gaussian smoothing
static
const
float
SIFT_SIGMA
=
1.6
f
;
// default threshold on keypoint contrast |D(x)|
static
const
float
SIFT_CONTR_THR
=
0.04
f
;
// default threshold on keypoint ratio of principle curvatures
static
const
float
SIFT_CURV_THR
=
10.
f
;
// double image size before pyramid construction?
static
const
bool
SIFT_IMG_DBL
=
true
;
// default width of descriptor histogram array
static
const
int
SIFT_DESCR_WIDTH
=
4
;
...
...
modules/video/src/simpleflow.cpp
View file @
b5755b12
...
...
@@ -66,21 +66,6 @@ inline static float dist(const Vec2f& p1, const Vec2f& p2) {
(
p1
[
1
]
-
p2
[
1
])
*
(
p1
[
1
]
-
p2
[
1
]);
}
inline
static
float
dist
(
const
Point2f
&
p1
,
const
Point2f
&
p2
)
{
return
(
p1
.
x
-
p2
.
x
)
*
(
p1
.
x
-
p2
.
x
)
+
(
p1
.
y
-
p2
.
y
)
*
(
p1
.
y
-
p2
.
y
);
}
inline
static
float
dist
(
float
x1
,
float
y1
,
float
x2
,
float
y2
)
{
return
(
x1
-
x2
)
*
(
x1
-
x2
)
+
(
y1
-
y2
)
*
(
y1
-
y2
);
}
inline
static
int
dist
(
int
x1
,
int
y1
,
int
x2
,
int
y2
)
{
return
(
x1
-
x2
)
*
(
x1
-
x2
)
+
(
y1
-
y2
)
*
(
y1
-
y2
);
}
template
<
class
T
>
inline
static
T
min
(
T
t1
,
T
t2
,
T
t3
)
{
return
(
t1
<=
t2
&&
t1
<=
t3
)
?
t1
:
min
(
t2
,
t3
);
...
...
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