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
70c6f7b8
Commit
70c6f7b8
authored
May 20, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
parent
c0097a78
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
image.cpp
tools/python/src/image.cpp
+4
-3
No files found.
tools/python/src/image.cpp
View file @
70c6f7b8
...
@@ -606,7 +606,7 @@ ensures \n\
...
@@ -606,7 +606,7 @@ ensures \n\
the input image.
\n
\
the input image.
\n
\
- The returned filter has get_scale()*2+1 rows and columns."
;
- The returned filter has get_scale()*2+1 rows and columns."
;
py
::
class_
<
image_gradients
>
(
m
,
"image_gradients"
,
const
char
*
class_docs
=
"This class is a tool for computing first and second derivatives of an
\n
\
"This class is a tool for computing first and second derivatives of an
\n
\
image. It does this by fitting a quadratic surface around each pixel and
\n
\
image. It does this by fitting a quadratic surface around each pixel and
\n
\
then computing the gradients of that quadratic surface. For the details
\n
\
then computing the gradients of that quadratic surface. For the details
\n
\
...
@@ -619,8 +619,9 @@ since the entire gradient estimation procedure, for each type of gradient, \n\
...
@@ -619,8 +619,9 @@ since the entire gradient estimation procedure, for each type of gradient, \n\
is accomplished by cross-correlating the image with a single separable
\n
\
is accomplished by cross-correlating the image with a single separable
\n
\
filter. This means you can compute gradients at very large scales (e.g. by
\n
\
filter. This means you can compute gradients at very large scales (e.g. by
\n
\
fitting the quadratic to a large window, like a 99x99 window) and it still
\n
\
fitting the quadratic to a large window, like a 99x99 window) and it still
\n
\
runs very quickly."
runs very quickly."
;
)
py
::
class_
<
image_gradients
>
(
m
,
"image_gradients"
,
class_docs
)
.
def
(
py
::
init
<
long
>
(),
"Creates this class with the provided scale. i.e. get_scale()==scale.
\n
scale must be >= 1."
,
py
::
arg
(
"scale"
))
.
def
(
py
::
init
<
long
>
(),
"Creates this class with the provided scale. i.e. get_scale()==scale.
\n
scale must be >= 1."
,
py
::
arg
(
"scale"
))
.
def
(
py
::
init
<>
(),
"Creates this class with a scale of 1. i.e. get_scale()==1"
)
.
def
(
py
::
init
<>
(),
"Creates this class with a scale of 1. i.e. get_scale()==1"
)
.
def
(
"gradient_x"
,
[](
image_gradients
&
g
,
const
numpy_image
<
unsigned
char
>&
img
){
.
def
(
"gradient_x"
,
[](
image_gradients
&
g
,
const
numpy_image
<
unsigned
char
>&
img
){
...
...
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