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
ec150f8d
Commit
ec150f8d
authored
May 23, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings and sorta bugs.
parent
f2cb001c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
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