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
eca48c34
Commit
eca48c34
authored
May 20, 2018
by
Davis King
Browse files
clarified spec
parent
baaec4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/image_transforms/assign_image_abstract.h
dlib/image_transforms/assign_image_abstract.h
+4
-4
No files found.
dlib/image_transforms/assign_image_abstract.h
View file @
eca48c34
...
...
@@ -70,10 +70,10 @@ namespace dlib
at the edge of the destination image's dynamic range.
- Specifically, for all valid r and c:
- scales get_pixel_intensity(src_img[r][c]) into the dynamic range
of the dest_img. This is done
by comput
ing the mean and standard
deviation
of src_img. Call the mean M and the standard deviation
D. Then the
scaling from src_img to dest_img is performed using
the following
mapping:
of the dest_img. This is done
us
ing the mean and standard
deviation
of src_img. Call the mean M and the standard deviation
D. Then the
scaling from src_img to dest_img is performed using
the following
mapping:
let SRC_UPPER = min(M + thresh*D, max(mat(src_img)))
let SRC_LOWER = max(M - thresh*D, min(mat(src_img)))
let DEST_UPPER = pixel_traits<image_traits<dest_image_type>::pixel_type>::max()
...
...
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