pub trait CUDA_HoughSegmentDetectorTrait: AlgorithmTrait + CUDA_HoughSegmentDetectorTraitConst {
// Required method
fn as_raw_mut_CUDA_HoughSegmentDetector(&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 set_rho(&mut self, rho: f32) -> Result<()> { ... }
fn set_theta(&mut self, theta: f32) -> Result<()> { ... }
fn set_min_line_length(&mut self, min_line_length: i32) -> Result<()> { ... }
fn set_max_line_gap(&mut self, max_line_gap: i32) -> Result<()> { ... }
fn set_max_lines(&mut self, max_lines: i32) -> Result<()> { ... }
fn set_threshold(&mut self, threshold: i32) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::cudaimgproc::CUDA_HoughSegmentDetector
Required Methods§
fn as_raw_mut_CUDA_HoughSegmentDetector(&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 line segments in a binary image using the probabilistic Hough transform.
§Parameters
- src: 8-bit, single-channel binary source image.
- lines: Output vector of lines. Each line is represented by a 4-element vector
, where
and
are the ending points of each detected line segment.
- stream: Stream for the asynchronous version.
§See also
HoughLinesP
§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 line segments in a binary image using the probabilistic Hough transform.
§Parameters
- src: 8-bit, single-channel binary source image.
- lines: Output vector of lines. Each line is represented by a 4-element vector
, where
and
are the ending points of each detected line segment.
- stream: Stream for the asynchronous version.
§See also
HoughLinesP
§Note
This alternative version of CUDA_HoughSegmentDetectorTrait::detect function uses the following default values for its arguments:
- stream: Stream::Null()
fn set_rho(&mut self, rho: f32) -> Result<()>
fn set_theta(&mut self, theta: f32) -> Result<()>
fn set_min_line_length(&mut self, min_line_length: i32) -> Result<()>
fn set_max_line_gap(&mut self, max_line_gap: i32) -> Result<()>
fn set_max_lines(&mut self, max_lines: i32) -> Result<()>
fn set_threshold(&mut self, threshold: 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.