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
3128410b
Commit
3128410b
authored
Dec 25, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A minor change to avoid compiler warnings from gcc
parent
3ecaaa0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
interpolation.h
dlib/image_transforms/interpolation.h
+2
-2
No files found.
dlib/image_transforms/interpolation.h
View file @
3128410b
...
@@ -69,7 +69,7 @@ namespace dlib
...
@@ -69,7 +69,7 @@ namespace dlib
// if the interpolation goes outside img
// if the interpolation goes outside img
if
(
!
get_rect
(
img
).
contains
(
rectangle
(
left
,
top
,
right
,
bottom
)))
if
(
!
(
left
>=
0
&&
top
>=
0
&&
right
<
img
.
nc
()
&&
bottom
<
img
.
nr
()))
return
false
;
return
false
;
const
double
lr_frac
=
p
.
x
()
-
left
;
const
double
lr_frac
=
p
.
x
()
-
left
;
...
@@ -105,7 +105,7 @@ namespace dlib
...
@@ -105,7 +105,7 @@ namespace dlib
// if the interpolation goes outside img
// if the interpolation goes outside img
if
(
!
get_rect
(
img
).
contains
(
rectangle
(
left
,
top
,
right
,
bottom
)))
if
(
!
(
left
>=
0
&&
top
>=
0
&&
right
<
img
.
nc
()
&&
bottom
<
img
.
nr
()))
return
false
;
return
false
;
const
double
lr_frac
=
p
.
x
()
-
left
;
const
double
lr_frac
=
p
.
x
()
-
left
;
...
...
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