Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
ec150f8d
Commit
ec150f8d
authored
May 23, 2018
by
Davis King
Browse files
Fixed warnings and sorta bugs.
parent
f2cb001c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tools/python/src/image.cpp
tools/python/src/image.cpp
+5
-3
No files found.
tools/python/src/image.cpp
View file @
ec150f8d
...
...
@@ -284,9 +284,10 @@ struct py_pyramid_down
template
<
typename
T
>
dlib
::
vector
<
double
,
2
>
point_down
(
const
dlib
::
vector
<
T
,
2
>&
p
const
dlib
::
vector
<
T
,
2
>&
p
p
)
const
{
dpoint
p
=
pp
;
switch
(
N
)
{
case
1
:
return
pyr1
.
point_down
(
p
);
...
...
@@ -316,9 +317,10 @@ struct py_pyramid_down
template
<
typename
T
>
dlib
::
vector
<
double
,
2
>
point_up
(
const
dlib
::
vector
<
T
,
2
>&
p
const
dlib
::
vector
<
T
,
2
>&
p
p
)
const
{
dpoint
p
=
pp
;
switch
(
N
)
{
case
1
:
return
pyr1
.
point_up
(
p
);
...
...
@@ -1068,7 +1070,7 @@ than 0 are converted to 0.";
m
.
def
(
"convert_rgb_to_grayscale"
,
&
convert_rgb_to_grayscale
,
"Convert a RGB image to a uint8 grayscale image."
,
py
::
arg
(
"img"
));
docs
=
""
;
docs
=
"requires
\n
\
- thresh > 0
\n
\
ensures
\n
\
...
...
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