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
985b9609
Commit
985b9609
authored
Jul 22, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
1b76017c
4887e1c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
colormaps.h
dlib/image_transforms/colormaps.h
+8
-2
sqlite_tools.h
dlib/sqlite/sqlite_tools.h
+1
-1
No files found.
dlib/image_transforms/colormaps.h
View file @
985b9609
...
...
@@ -145,7 +145,10 @@ namespace dlib
)
{
typedef
op_heatmap
<
image_type
>
op
;
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
if
(
img
.
size
()
!=
0
)
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
else
return
matrix_op
<
op
>
(
op
(
img
,
0
,
0
));
}
// ----------------------------------------------------------------------------------------
...
...
@@ -252,7 +255,10 @@ namespace dlib
)
{
typedef
op_jet
<
image_type
>
op
;
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
if
(
img
.
size
()
!=
0
)
return
matrix_op
<
op
>
(
op
(
img
,
max
(
mat
(
img
)),
min
(
mat
(
img
))));
else
return
matrix_op
<
op
>
(
op
(
img
,
0
,
0
));
}
// ----------------------------------------------------------------------------------------
...
...
dlib/sqlite/sqlite_tools.h
View file @
985b9609
...
...
@@ -33,7 +33,7 @@ namespace dlib
}
}
~
transaction
()
~
transaction
()
throw
(
std
::
exception
)
{
if
(
!
committed
)
db
.
exec
(
"rollback"
);
...
...
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