pub trait CUDA_CannyEdgeDetectorTrait: AlgorithmTrait + CUDA_CannyEdgeDetectorTraitConst {
// Required method
fn as_raw_mut_CUDA_CannyEdgeDetector(&mut self) -> *mut c_void;
// Provided methods
fn detect(
&mut self,
image: &impl ToInputArray,
edges: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()> { ... }
fn detect_def(
&mut self,
image: &impl ToInputArray,
edges: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn detect_1(
&mut self,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
edges: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()> { ... }
fn detect_def_1(
&mut self,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
edges: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn set_low_threshold(&mut self, low_thresh: f64) -> Result<()> { ... }
fn set_high_threshold(&mut self, high_thresh: f64) -> Result<()> { ... }
fn set_apperture_size(&mut self, apperture_size: i32) -> Result<()> { ... }
fn set_l2_gradient(&mut self, l2gradient: bool) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::cudaimgproc::CUDA_CannyEdgeDetector
Required Methods§
fn as_raw_mut_CUDA_CannyEdgeDetector(&mut self) -> *mut c_void
Provided Methods§
Sourcefn detect(
&mut self,
image: &impl ToInputArray,
edges: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, edges: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
Sourcefn detect_def(
&mut self,
image: &impl ToInputArray,
edges: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def( &mut self, image: &impl ToInputArray, edges: &mut impl ToOutputArray, ) -> Result<()>
Finds edges in an image using the Canny86 algorithm.
§Parameters
- image: Single-channel 8-bit input image.
- edges: Output edge map. It has the same size and type as image.
- stream: Stream for the asynchronous version.
§Note
This alternative version of CUDA_CannyEdgeDetectorTrait::detect function uses the following default values for its arguments:
- stream: Stream::Null()
Sourcefn detect_1(
&mut self,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
edges: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn detect_1( &mut self, dx: &impl ToInputArray, dy: &impl ToInputArray, edges: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
Finds edges in an image using the Canny86 algorithm.
§Parameters
- image: Single-channel 8-bit input image.
- edges: Output edge map. It has the same size and type as image.
- stream: Stream for the asynchronous version.
§Overloaded parameters
- dx: First derivative of image in the vertical direction. Support only CV_32S type.
- dy: First derivative of image in the horizontal direction. Support only CV_32S type.
- edges: Output edge map. It has the same size and type as image.
- stream: Stream for the asynchronous version.
§C++ default parameters
- stream: Stream::Null()
Sourcefn detect_def_1(
&mut self,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
edges: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def_1( &mut self, dx: &impl ToInputArray, dy: &impl ToInputArray, edges: &mut impl ToOutputArray, ) -> Result<()>
@overload
§Parameters
- dx: First derivative of image in the vertical direction. Support only CV_32S type.
- dy: First derivative of image in the horizontal direction. Support only CV_32S type.
- edges: Output edge map. It has the same size and type as image.
- stream: Stream for the asynchronous version.
§Note
This alternative version of CUDA_CannyEdgeDetectorTrait::detect function uses the following default values for its arguments:
- stream: Stream::Null()
fn set_low_threshold(&mut self, low_thresh: f64) -> Result<()>
fn set_high_threshold(&mut self, high_thresh: f64) -> Result<()>
fn set_apperture_size(&mut self, apperture_size: i32) -> Result<()>
fn set_l2_gradient(&mut self, l2gradient: bool) -> 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.