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
3d62b85c
Commit
3d62b85c
authored
Nov 20, 2017
by
Kino
Committed by
Davis E. King
Nov 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generic image all the way - colormaps.h (#971)
Still hunting down pre-generic_image implementations
parent
9b51351b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
colormaps.h
dlib/image_transforms/colormaps.h
+2
-2
No files found.
dlib/image_transforms/colormaps.h
View file @
3d62b85c
...
@@ -145,7 +145,7 @@ namespace dlib
...
@@ -145,7 +145,7 @@ namespace dlib
)
)
{
{
typedef
op_heatmap
<
image_type
>
op
;
typedef
op_heatmap
<
image_type
>
op
;
if
(
img
.
size
(
)
!=
0
)
if
(
num_columns
(
img
)
*
num_rows
(
img
)
!=
0
)
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
else
else
return
matrix_op
<
op
>
(
op
(
img
,
0
,
0
));
return
matrix_op
<
op
>
(
op
(
img
,
0
,
0
));
...
@@ -255,7 +255,7 @@ namespace dlib
...
@@ -255,7 +255,7 @@ namespace dlib
)
)
{
{
typedef
op_jet
<
image_type
>
op
;
typedef
op_jet
<
image_type
>
op
;
if
(
img
.
size
(
)
!=
0
)
if
(
num_columns
(
img
)
*
num_rows
(
img
)
!=
0
)
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
else
else
return
matrix_op
<
op
>
(
op
(
img
,
0
,
0
));
return
matrix_op
<
op
>
(
op
(
img
,
0
,
0
));
...
...
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