Trait opencv::prelude::CUDA_CannyEdgeDetector
source · pub trait CUDA_CannyEdgeDetector: AlgorithmTrait + CUDA_CannyEdgeDetectorConst {
fn as_raw_mut_CUDA_CannyEdgeDetector(&mut self) -> *mut c_void;
fn detect(
&mut self,
image: &dyn ToInputArray,
edges: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()> { ... }
fn detect_1(
&mut self,
dx: &dyn ToInputArray,
dy: &dyn ToInputArray,
edges: &mut dyn ToOutputArray,
stream: &mut Stream
) -> 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<()> { ... }
}
Required Methods§
fn as_raw_mut_CUDA_CannyEdgeDetector(&mut self) -> *mut c_void
Provided Methods§
sourcefn detect(
&mut self,
image: &dyn ToInputArray,
edges: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
fn detect(
&mut self,
image: &dyn ToInputArray,
edges: &mut dyn ToOutputArray,
stream: &mut Stream
) -> 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.
C++ default parameters
- stream: Stream::Null()
sourcefn detect_1(
&mut self,
dx: &dyn ToInputArray,
dy: &dyn ToInputArray,
edges: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
fn detect_1(
&mut self,
dx: &dyn ToInputArray,
dy: &dyn ToInputArray,
edges: &mut dyn ToOutputArray,
stream: &mut Stream
) -> 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()