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
2677e103
Commit
2677e103
authored
Oct 06, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #803 from berak:fix_bif
parents
1df640a6
fa27fe2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bif.cpp
modules/face/src/bif.cpp
+2
-2
No files found.
modules/face/src/bif.cpp
View file @
2677e103
...
...
@@ -201,8 +201,8 @@ void BIFImpl::computeUnit(int unit_idx, const cv::Mat &img,
int
x1
=
std
::
min
(
resp
.
cols
,
xc
+
Whalf
);
int
area
=
(
y1
-
y0
)
*
(
x1
-
x0
);
float
mean
=
sum
.
at
<
float
>
(
y1
,
x1
)
-
sum
.
at
<
float
>
(
y1
,
x0
)
-
sum
.
at
<
float
>
(
y0
,
x1
)
+
sum
.
at
<
float
>
(
y0
,
x0
);
double
mean
=
sum
.
at
<
double
>
(
y1
,
x1
)
-
sum
.
at
<
double
>
(
y1
,
x0
)
-
sum
.
at
<
double
>
(
y0
,
x1
)
+
sum
.
at
<
double
>
(
y0
,
x0
);
mean
/=
area
;
double
sd
=
sumsq
.
at
<
double
>
(
y1
,
x1
)
-
sumsq
.
at
<
double
>
(
y1
,
x0
)
...
...
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