pub trait CUDA_HoughLinesDetectorTrait: AlgorithmTrait + CUDA_HoughLinesDetectorTraitConst {
// Required method
fn as_raw_mut_CUDA_HoughLinesDetector(&mut self) -> *mut c_void;
// Provided methods
fn detect(
&mut self,
src: &impl ToInputArray,
lines: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()> { ... }
fn detect_def(
&mut self,
src: &impl ToInputArray,
lines: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn download_results(
&mut self,
d_lines: &impl ToInputArray,
h_lines: &mut impl ToOutputArray,
h_votes: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()> { ... }
fn download_results_def(
&mut self,
d_lines: &impl ToInputArray,
h_lines: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn set_rho(&mut self, rho: f32) -> Result<()> { ... }
fn set_theta(&mut self, theta: f32) -> Result<()> { ... }
fn set_threshold(&mut self, threshold: i32) -> Result<()> { ... }
fn set_do_sort(&mut self, do_sort: bool) -> Result<()> { ... }
fn set_max_lines(&mut self, max_lines: i32) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::cudaimgproc::CUDA_HoughLinesDetector
Required Methods§
fn as_raw_mut_CUDA_HoughLinesDetector(&mut self) -> *mut c_void
Provided Methods§
Sourcefn detect(
&mut self,
src: &impl ToInputArray,
lines: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn detect( &mut self, src: &impl ToInputArray, lines: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> 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()
Sourcefn detect_def(
&mut self,
src: &impl ToInputArray,
lines: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def( &mut self, src: &impl ToInputArray, lines: &mut impl ToOutputArray, ) -> 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
§Note
This alternative version of CUDA_HoughLinesDetectorTrait::detect function uses the following default values for its arguments:
- stream: Stream::Null()
Sourcefn download_results(
&mut self,
d_lines: &impl ToInputArray,
h_lines: &mut impl ToOutputArray,
h_votes: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn download_results( &mut self, d_lines: &impl ToInputArray, h_lines: &mut impl ToOutputArray, h_votes: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> 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()
Sourcefn download_results_def(
&mut self,
d_lines: &impl ToInputArray,
h_lines: &mut impl ToOutputArray,
) -> Result<()>
fn download_results_def( &mut self, d_lines: &impl ToInputArray, h_lines: &mut impl ToOutputArray, ) -> 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.
§Note
This alternative version of CUDA_HoughLinesDetectorTrait::download_results function uses the following default values for its arguments:
- h_votes: noArray()
- stream: Stream::Null()
fn set_rho(&mut self, rho: f32) -> Result<()>
fn set_theta(&mut self, theta: f32) -> Result<()>
fn set_threshold(&mut self, threshold: i32) -> Result<()>
fn set_do_sort(&mut self, do_sort: bool) -> Result<()>
fn set_max_lines(&mut self, max_lines: i32) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.