Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
6aaf3467
Commit
6aaf3467
authored
Sep 24, 2011
by
Davis King
Browse files
updated spec
parent
6df0f975
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/image_transforms/edge_detector_abstract.h
dlib/image_transforms/edge_detector_abstract.h
+2
-1
No files found.
dlib/image_transforms/edge_detector_abstract.h
View file @
6aaf3467
...
@@ -90,7 +90,8 @@ namespace dlib
...
@@ -90,7 +90,8 @@ namespace dlib
ensures
ensures
- #out_img.nr() = horz.nr()
- #out_img.nr() = horz.nr()
- #out_img.nc() = horz.nc()
- #out_img.nc() = horz.nc()
- let edge_strength(r,c) == abs(horz[r][c]) + abs(vert[r][c])
- let edge_strength(r,c) == sqrt(pow(horz[r][c],2) + pow(vert[r][c],2))
(i.e. The Euclidean norm of the gradient)
- for all valid r and c:
- for all valid r and c:
- if (edge_strength(r,c) is at a maximum with respect to its 2 neighboring
- if (edge_strength(r,c) is at a maximum with respect to its 2 neighboring
pixels along the line given by edge_orientation(vert[r][c],horz[r][c])) then
pixels along the line given by edge_orientation(vert[r][c],horz[r][c])) then
...
...
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