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
e41fad6b
Commit
e41fad6b
authored
Apr 21, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a convenience overload to hough_transform.
parent
b5988db6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
hough_transform.h
dlib/image_transforms/hough_transform.h
+13
-0
hough_transform_abstract.h
dlib/image_transforms/hough_transform_abstract.h
+20
-0
No files found.
dlib/image_transforms/hough_transform.h
View file @
e41fad6b
...
...
@@ -346,6 +346,19 @@ namespace dlib
}
}
template
<
typename
in_image_type
,
typename
out_image_type
>
void
operator
()
(
const
in_image_type
&
img_
,
out_image_type
&
himg_
)
const
{
rectangle
box
(
0
,
0
,
num_columns
(
img_
)
-
1
,
num_rows
(
img_
)
-
1
);
(
*
this
)(
img_
,
box
,
himg_
);
}
private
:
unsigned
long
_size
;
...
...
dlib/image_transforms/hough_transform_abstract.h
View file @
e41fad6b
...
...
@@ -137,6 +137,26 @@ namespace dlib
y-axis the distance of the line from the center of the box.
!*/
template
<
typename
in_image_type
,
typename
out_image_type
>
void
operator
()
(
const
in_image_type
&
img
,
out_image_type
&
himg
)
const
;
/*!
requires
- in_image_type == an image object that implements the interface defined in
dlib/image_processing/generic_image.h and it must contain grayscale pixels.
- out_image_type == an image object that implements the interface defined in
dlib/image_processing/generic_image.h and it must contain grayscale pixels.
- num_rows(img) == size()
- num_columns(img) == size()
ensures
- performs: (*this)(img, get_rect(img), himg);
That is, just runs the hough transform on the whole input image.
!*/
};
}
...
...
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