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
dd55064f
Commit
dd55064f
authored
Nov 17, 2016
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #837 from savuor:fix/bif_nan_sqrt
parents
f3ca1a2f
8b252a82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bif.cpp
modules/face/src/bif.cpp
+1
-1
No files found.
modules/face/src/bif.cpp
View file @
dd55064f
...
...
@@ -207,7 +207,7 @@ void BIFImpl::computeUnit(int unit_idx, const cv::Mat &img,
double
sd
=
sumsq
.
at
<
double
>
(
y1
,
x1
)
-
sumsq
.
at
<
double
>
(
y1
,
x0
)
-
sumsq
.
at
<
double
>
(
y0
,
x1
)
+
sumsq
.
at
<
double
>
(
y0
,
x0
);
sd
=
sqrt
(
s
d
/
area
-
mean
*
mean
);
sd
=
sqrt
(
s
td
::
max
(
0.0
,
sd
/
area
-
mean
*
mean
)
);
dst
.
at
<
float
>
(
pos
)
=
static_cast
<
float
>
(
sd
);
}
...
...
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