Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
2888fea1
Commit
2888fea1
authored
Mar 18, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1582 from lamantine:fix_1580
parents
a817a197
0eb1d87b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mace.cpp
modules/face/src/mace.cpp
+6
-6
No files found.
modules/face/src/mace.cpp
View file @
2888fea1
...
...
@@ -208,8 +208,8 @@ struct MACEImpl : MACE {
re
-=
m1
;
double
value
=
0
;
double
num
=
0
;
int
rad1
=
int
(
floor
((
double
)(
45.0
/
64.0
)
*
(
double
)
IMGSIZE
));
int
rad2
=
int
(
floor
((
double
)(
27.0
/
64.0
)
*
(
double
)
IMGSIZE
));
int
rad
_
1
=
int
(
floor
((
double
)(
45.0
/
64.0
)
*
(
double
)
IMGSIZE
));
int
rad
_
2
=
int
(
floor
((
double
)(
27.0
/
64.0
)
*
(
double
)
IMGSIZE
));
// cache a few pow's and sqrts
std
::
vector
<
double
>
r2
(
IMGSIZE_2X
);
Mat_
<
double
>
radtab
(
IMGSIZE_2X
,
IMGSIZE_2X
);
...
...
@@ -226,8 +226,8 @@ struct MACEImpl : MACE {
for
(
int
l
=
0
;
l
<
IMGSIZE_2X
;
l
++
)
{
for
(
int
m
=
0
;
m
<
IMGSIZE_2X
;
m
++
)
{
double
rad
=
radtab
(
l
,
m
);
if
(
rad
<
rad1
)
{
if
(
rad
>
rad2
)
{
if
(
rad
<
rad
_
1
)
{
if
(
rad
>
rad
_
2
)
{
value
+=
re
(
l
,
m
);
num
++
;
}
...
...
@@ -240,8 +240,8 @@ struct MACEImpl : MACE {
for
(
int
l
=
0
;
l
<
IMGSIZE_2X
;
l
++
)
{
for
(
int
m
=
0
;
m
<
IMGSIZE_2X
;
m
++
)
{
double
rad
=
radtab
(
l
,
m
);
if
(
rad
<
rad1
)
{
if
(
rad
>
rad2
)
{
if
(
rad
<
rad
_
1
)
{
if
(
rad
>
rad
_
2
)
{
double
d
=
(
value
-
re
(
l
,
m
));
std2
+=
d
*
d
;
}
...
...
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