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
e76aadb2
Commit
e76aadb2
authored
May 29, 2011
by
Davis King
Browse files
Added comments explaining the conversion that might happen when images
are saved to disk by the various save_*() functions.
parent
2f7196db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
dlib/image_saver/image_saver_abstract.h
dlib/image_saver/image_saver_abstract.h
+8
-0
dlib/image_saver/save_png_abstract.h
dlib/image_saver/save_png_abstract.h
+4
-0
No files found.
dlib/image_saver/image_saver_abstract.h
View file @
e76aadb2
...
...
@@ -36,6 +36,9 @@ namespace dlib
- image[0][0] will be in the upper left corner of the image.
- image[image.nr()-1][image.nc()-1] will be in the lower right
corner of the image.
- This routine can save images containing any type of pixel. However, it
will convert all color pixels into rgb_pixel and grayscale pixels into
uint8 type before saving to disk.
throws
- image_save_error
This exception is thrown if there is an error that prevents us
...
...
@@ -87,6 +90,11 @@ namespace dlib
- image[0][0] will be in the upper left corner of the image.
- image[image.nr()-1][image.nc()-1] will be in the lower right
corner of the image.
- This routine can save images containing any type of pixel. However, the
DNG format can natively store only the following pixel types: rgb_pixel,
hsi_pixel, rgb_alpha_pixel, uint8, and uint16. All other pixel types
will be converted into one of these types as appropriate before being
saved to disk.
throws
- image_save_error
This exception is thrown if there is an error that prevents us
...
...
dlib/image_saver/save_png_abstract.h
View file @
e76aadb2
...
...
@@ -28,6 +28,10 @@ namespace dlib
- image[0][0] will be in the upper left corner of the image.
- image[image.nr()-1][image.nc()-1] will be in the lower right
corner of the image.
- This routine can save images containing any type of pixel. However, save_png() can
only natively store the following pixel types: rgb_pixel, rgb_alpha_pixel, uint8,
and uint16. All other pixel types will be converted into one of these types as
appropriate before being saved to disk.
throws
- image_save_error
This exception is thrown if there is an error that prevents us from saving
...
...
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