Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
eca48c34
Commit
eca48c34
authored
May 20, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarified spec
parent
baaec4a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
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 computing 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 us
ing
the following
mapping:
of the dest_img. This is done
using 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 follow
ing
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