Trait CUDA_Feature2DAsyncTrait

Source
pub trait CUDA_Feature2DAsyncTrait: CUDA_Feature2DAsyncTraitConst + Feature2DTrait {
    // Required method
    fn as_raw_mut_CUDA_Feature2DAsync(&mut self) -> *mut c_void;

    // Provided methods
    fn detect_async(
        &mut self,
        image: &impl ToInputArray,
        keypoints: &mut impl ToOutputArray,
        mask: &impl ToInputArray,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn detect_async_def(
        &mut self,
        image: &impl ToInputArray,
        keypoints: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
    fn compute_async(
        &mut self,
        image: &impl ToInputArray,
        keypoints: &mut impl ToOutputArray,
        descriptors: &mut impl ToOutputArray,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn compute_async_def(
        &mut self,
        image: &impl ToInputArray,
        keypoints: &mut impl ToOutputArray,
        descriptors: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
    fn detect_and_compute_async(
        &mut self,
        image: &impl ToInputArray,
        mask: &impl ToInputArray,
        keypoints: &mut impl ToOutputArray,
        descriptors: &mut impl ToOutputArray,
        use_provided_keypoints: bool,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn detect_and_compute_async_def(
        &mut self,
        image: &impl ToInputArray,
        mask: &impl ToInputArray,
        keypoints: &mut impl ToOutputArray,
        descriptors: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
    fn convert(
        &mut self,
        gpu_keypoints: &impl ToInputArray,
        keypoints: &mut Vector<KeyPoint>,
    ) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn detect_async( &mut self, image: &impl ToInputArray, keypoints: &mut impl ToOutputArray, mask: &impl ToInputArray, stream: &mut impl StreamTrait, ) -> Result<()>

Detects keypoints in an image.

§Parameters
  • image: Image.
  • keypoints: The detected keypoints.
  • mask: Mask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.
  • stream: CUDA stream.
§C++ default parameters
  • mask: noArray()
  • stream: Stream::Null()
Source

fn detect_async_def( &mut self, image: &impl ToInputArray, keypoints: &mut impl ToOutputArray, ) -> Result<()>

Detects keypoints in an image.

§Parameters
  • image: Image.
  • keypoints: The detected keypoints.
  • mask: Mask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.
  • stream: CUDA stream.
§Note

This alternative version of CUDA_Feature2DAsyncTrait::detect_async function uses the following default values for its arguments:

  • mask: noArray()
  • stream: Stream::Null()
Source

fn compute_async( &mut self, image: &impl ToInputArray, keypoints: &mut impl ToOutputArray, descriptors: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>

Computes the descriptors for a set of keypoints detected in an image.

§Parameters
  • image: Image.
  • keypoints: Input collection of keypoints.
  • descriptors: Computed descriptors. Row j is the descriptor for j-th keypoint.
  • stream: CUDA stream.
§C++ default parameters
  • stream: Stream::Null()
Source

fn compute_async_def( &mut self, image: &impl ToInputArray, keypoints: &mut impl ToOutputArray, descriptors: &mut impl ToOutputArray, ) -> Result<()>

Computes the descriptors for a set of keypoints detected in an image.

§Parameters
  • image: Image.
  • keypoints: Input collection of keypoints.
  • descriptors: Computed descriptors. Row j is the descriptor for j-th keypoint.
  • stream: CUDA stream.
§Note

This alternative version of CUDA_Feature2DAsyncTrait::compute_async function uses the following default values for its arguments:

  • stream: Stream::Null()
Source

fn detect_and_compute_async( &mut self, image: &impl ToInputArray, mask: &impl ToInputArray, keypoints: &mut impl ToOutputArray, descriptors: &mut impl ToOutputArray, use_provided_keypoints: bool, stream: &mut impl StreamTrait, ) -> Result<()>

Detects keypoints and computes the descriptors.

§C++ default parameters
  • use_provided_keypoints: false
  • stream: Stream::Null()
Source

fn detect_and_compute_async_def( &mut self, image: &impl ToInputArray, mask: &impl ToInputArray, keypoints: &mut impl ToOutputArray, descriptors: &mut impl ToOutputArray, ) -> Result<()>

Detects keypoints and computes the descriptors.

§Note

This alternative version of CUDA_Feature2DAsyncTrait::detect_and_compute_async function uses the following default values for its arguments:

  • use_provided_keypoints: false
  • stream: Stream::Null()
Source

fn convert( &mut self, gpu_keypoints: &impl ToInputArray, keypoints: &mut Vector<KeyPoint>, ) -> Result<()>

Converts keypoints array from internal representation to standard vector.

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.

Implementors§