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
ebad74aa
Commit
ebad74aa
authored
Jul 27, 2016
by
sutr90
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed grayscale assignment.
parent
6e06fc87
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pixel.h
dlib/pixel.h
+4
-4
No files found.
dlib/pixel.h
View file @
ebad74aa
...
...
@@ -1262,8 +1262,8 @@ namespace dlib
typename
enable_if_c
<
pixel_traits
<
P1
>::
lab
>::
type
assign
(
P1
&
dest
,
const
unsigned
char
&
src
)
{
dest
.
a
=
0
;
dest
.
b
=
0
;
dest
.
a
=
128
;
dest
.
b
=
128
;
dest
.
l
=
src
;
}
...
...
@@ -1272,8 +1272,8 @@ namespace dlib
typename
enable_if_c
<
pixel_traits
<
P1
>::
lab
&&
pixel_traits
<
P2
>::
grayscale
>::
type
assign
(
P1
&
dest
,
const
P2
&
src
)
{
dest
.
a
=
0
;
dest
.
b
=
0
;
dest
.
a
=
128
;
dest
.
b
=
128
;
assign_pixel
(
dest
.
l
,
src
);
}
...
...
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