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
83324898
Commit
83324898
authored
Aug 05, 2016
by
Davis King
Browse files
Fixed a few places where lab color space still referred to the channels
as being signed rather than unsigned.
parent
8db76eb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dlib/matrix/matrix_utilities.h
dlib/matrix/matrix_utilities.h
+3
-3
dlib/pixel.h
dlib/pixel.h
+2
-2
No files found.
dlib/matrix/matrix_utilities.h
View file @
83324898
...
...
@@ -2750,9 +2750,9 @@ namespace dlib
const M& m
)
{
pixel
.
l
=
static_cast
<
signed
char
>
(
m
(
0
));
pixel
.
a
=
static_cast
<
signed
char
>
(
m
(
1
));
pixel
.
b
=
static_cast
<
signed
char
>
(
m
(
2
));
pixel.l = static_cast<
un
signed char>(m(0));
pixel.a = static_cast<
un
signed char>(m(1));
pixel.b = static_cast<
un
signed char>(m(2));
}
};
...
...
dlib/pixel.h
View file @
83324898
...
...
@@ -84,14 +84,14 @@ namespace dlib
- is_unsigned == true
- else if (lab == true) then
- The type T will be a struct with 3 public members of type
signed char named "l" "a" and "b".
un
signed char named "l" "a" and "b".
- This type of pixel represents the Lab color space.
- num == 3
- has_alpha == false
- basic_pixel_type == unsigned char
- min() == 0
- max() == 255
- is_unsigned ==
false
- is_unsigned ==
true
- else
- grayscale == true
- This type of pixel represents a grayscale color space. T
...
...
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