pub trait CUDA_CornersDetectorTrait: AlgorithmTrait + CUDA_CornersDetectorTraitConst {
// Required method
fn as_raw_mut_CUDA_CornersDetector(&mut self) -> *mut c_void;
// Provided methods
fn detect(
&mut self,
image: &impl ToInputArray,
corners: &mut impl ToOutputArray,
mask: &impl ToInputArray,
stream: &mut impl StreamTrait,
) -> Result<()> { ... }
fn detect_def(
&mut self,
image: &impl ToInputArray,
corners: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn set_max_corners(&mut self, max_corners: i32) -> Result<()> { ... }
fn set_min_distance(&mut self, min_distance: f64) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::cudaimgproc::CUDA_CornersDetector
Required Methods§
fn as_raw_mut_CUDA_CornersDetector(&mut self) -> *mut c_void
Provided Methods§
Sourcefn detect(
&mut self,
image: &impl ToInputArray,
corners: &mut impl ToOutputArray,
mask: &impl ToInputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, corners: &mut impl ToOutputArray, mask: &impl ToInputArray, stream: &mut impl StreamTrait, ) -> Result<()>
Determines strong corners on an image.
§Parameters
- image: Input 8-bit or floating-point 32-bit, single-channel image.
- corners: Output vector of detected corners (1-row matrix with CV_32FC2 type with corners positions).
- mask: Optional region of interest. If the image is not empty (it needs to have the type CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected.
- stream: Stream for the asynchronous version.
§C++ default parameters
- mask: noArray()
- stream: Stream::Null()
Sourcefn detect_def(
&mut self,
image: &impl ToInputArray,
corners: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def( &mut self, image: &impl ToInputArray, corners: &mut impl ToOutputArray, ) -> Result<()>
Determines strong corners on an image.
§Parameters
- image: Input 8-bit or floating-point 32-bit, single-channel image.
- corners: Output vector of detected corners (1-row matrix with CV_32FC2 type with corners positions).
- mask: Optional region of interest. If the image is not empty (it needs to have the type CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected.
- stream: Stream for the asynchronous version.
§Note
This alternative version of CUDA_CornersDetectorTrait::detect function uses the following default values for its arguments:
- mask: noArray()
- stream: Stream::Null()
fn set_max_corners(&mut self, max_corners: i32) -> Result<()>
fn set_min_distance(&mut self, min_distance: f64) -> 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.