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
83324898
Commit
83324898
authored
Aug 05, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few places where lab color space still referred to the channels
as being signed rather than unsigned.
parent
8db76eb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
matrix_utilities.h
dlib/matrix/matrix_utilities.h
+3
-3
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