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 Stream
    ) -> 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 Stream
    ) -> 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 Stream
    ) -> 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 Stream ) -> 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 [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 Stream ) -> 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 [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 Stream ) -> 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 [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.

Object Safety§

This trait is not object safe.

Implementors§