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
e41fad6b
Commit
e41fad6b
authored
Apr 20, 2018
by
Davis King
Browse files
Added a convenience overload to hough_transform.
parent
b5988db6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
dlib/image_transforms/hough_transform.h
dlib/image_transforms/hough_transform.h
+13
-0
dlib/image_transforms/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
...
@@ -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:
private:
unsigned
long
_size
;
unsigned
long
_size
;
...
...
dlib/image_transforms/hough_transform_abstract.h
View file @
e41fad6b
...
@@ -137,6 +137,26 @@ namespace dlib
...
@@ -137,6 +137,26 @@ namespace dlib
y-axis the distance of the line from the center of the box.
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