[−][src]Trait opencv::prelude::CUDA_HoughLinesDetector
Base class for lines detector algorithm. :
Required methods
fn as_raw_CUDA_HoughLinesDetector(&self) -> *const c_void
fn as_raw_mut_CUDA_HoughLinesDetector(&mut self) -> *mut c_void
Provided methods
fn detect(
&mut self,
src: &dyn ToInputArray,
lines: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
&mut self,
src: &dyn ToInputArray,
lines: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
Finds lines in a binary image using the classical Hough transform.
Parameters
- src: 8-bit, single-channel binary source image.
- lines: Output vector of lines. Each line is represented by a two-element vector
.
is the distance from the coordinate origin
(top-left corner of the image).
is the line rotation angle in radians (
).
- stream: Stream for the asynchronous version.
See also
HoughLines
C++ default parameters
- stream: Stream::Null()
fn download_results(
&mut self,
d_lines: &dyn ToInputArray,
h_lines: &mut dyn ToOutputArray,
h_votes: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
&mut self,
d_lines: &dyn ToInputArray,
h_lines: &mut dyn ToOutputArray,
h_votes: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
Downloads results from cuda::HoughLinesDetector::detect to host memory.
Parameters
- d_lines: Result of cuda::HoughLinesDetector::detect .
- h_lines: Output host array.
- h_votes: Optional output array for line's votes.
- stream: Stream for the asynchronous version.
C++ default parameters
- h_votes: noArray()
- stream: Stream::Null()