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
f35a90c8
Commit
f35a90c8
authored
Oct 03, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing assert
parent
b8de7f5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
interpolation.h
dlib/image_transforms/interpolation.h
+7
-0
No files found.
dlib/image_transforms/interpolation.h
View file @
f35a90c8
...
...
@@ -529,6 +529,13 @@ namespace dlib
interpolate_bilinear
)
{
// make sure requires clause is not broken
DLIB_ASSERT
(
is_same_object
(
in_img
,
out_img
)
==
false
,
"
\t
void resize_image()"
<<
"
\n\t
Invalid inputs were given to this function."
<<
"
\n\t
is_same_object(in_img, out_img): "
<<
is_same_object
(
in_img
,
out_img
)
);
typedef
typename
image_type1
::
type
T
;
const
double
x_scale
=
(
img
.
nc
()
-
1
)
/
(
double
)
std
::
max
<
long
>
((
out
.
nc
()
-
1
),
1
);
const
double
y_scale
=
(
img
.
nr
()
-
1
)
/
(
double
)
std
::
max
<
long
>
((
out
.
nr
()
-
1
),
1
);
...
...
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