Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
EyeRec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thiago Santini
EyeRec
Commits
95460f72
Commit
95460f72
authored
Apr 19, 2016
by
Thiago C. Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes possible division by zero from hypot
parent
1ad0ce9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
else/canny_impl.h
else/canny_impl.h
+6
-3
No files found.
else/canny_impl.h
View file @
95460f72
...
...
@@ -2,10 +2,10 @@
/*
Version 1.0, 08.06.2015, Copyright University of T
b
ingen.
Version 1.0, 08.06.2015, Copyright University of T
üb
ingen.
The Code is created based on the method from the paper:
"ExCuSe: Robust Pupil Detection in Real-World Scenarios", W. Fuhl, T. C. K
b
ler, K. Sippel, W. Rosenstiel, E. Kasneci
"ExCuSe: Robust Pupil Detection in Real-World Scenarios", W. Fuhl, T. C. K
üb
ler, K. Sippel, W. Rosenstiel, E. Kasneci
CAIP 2015 : Computer Analysis of Images and Patterns
The code and the algorithm are for non-comercial use only.
...
...
@@ -29,6 +29,9 @@ static float hypot(float a,float b)
float
t
=
a
<
b
?
a
:
b
;
float
x
=
a
>
b
?
a
:
b
;
if
(
x
==
0
)
return
0
;
t
=
t
/
x
;
return
x
*
sqrt
(
1
+
(
t
*
t
));
}
...
...
@@ -346,4 +349,4 @@ static cv::Mat canny_impl(cv::Mat *pic, cv::Mat *magni){
}
\ No newline at end of file
}
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