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
933ab009
"...transforms/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "a46d97c96dfb2f7f9ddc7f4f889d9856b46428ad"
Commit
933ab009
authored
Jul 28, 2016
by
sutr90
Browse files
Fixed PNG saving.
parent
2c6351be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/image_saver/save_png.h
dlib/image_saver/save_png.h
+2
-2
No files found.
dlib/image_saver/save_png.h
View file @
933ab009
...
@@ -80,9 +80,9 @@ namespace dlib
...
@@ -80,9 +80,9 @@ namespace dlib
impl
::
impl_save_png
(
file_name
,
row_pointers
,
img
.
nc
(),
impl
::
png_type_rgb_alpha
,
8
);
impl
::
impl_save_png
(
file_name
,
row_pointers
,
img
.
nc
(),
impl
::
png_type_rgb_alpha
,
8
);
}
}
else
if
(
pixel_traits
<
pixel_type
>::
hsi
||
pixel_traits
<
pixel_type
>::
rgb
)
else
if
(
pixel_traits
<
pixel_type
>::
lab
||
pixel_traits
<
pixel_type
>::
hsi
||
pixel_traits
<
pixel_type
>::
rgb
)
{
{
// convert from HSI to RGB (Or potentially RGB pixels that aren't laid out as R G B)
// convert from
Lab or
HSI to RGB (Or potentially RGB pixels that aren't laid out as R G B)
array2d
<
rgb_pixel
>
temp_img
;
array2d
<
rgb_pixel
>
temp_img
;
assign_image
(
temp_img
,
img_
);
assign_image
(
temp_img
,
img_
);
for
(
unsigned
long
i
=
0
;
i
<
row_pointers
.
size
();
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
row_pointers
.
size
();
++
i
)
...
...
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