class cv::cuda::Feature2DAsync

Overview

Abstract base class for CUDA asynchronous 2D image feature detectors and descriptor extractors. Moreā€¦

#include <cudafeatures2d.hpp>

class Feature2DAsync
{
public:
    // methods

    virtual
    void
    computeAsync(
        InputArray image,
        OutputArray keypoints,
        OutputArray descriptors,
        Stream& stream = Stream::Null()
        );

    virtual
    void
    convert(
        InputArray gpu_keypoints,
        std::vector<KeyPoint>& keypoints
        ) = 0;

    virtual
    void
    detectAndComputeAsync(
        InputArray image,
        InputArray mask,
        OutputArray keypoints,
        OutputArray descriptors,
        bool useProvidedKeypoints = false,
        Stream& stream = Stream::Null()
        );

    virtual
    void
    detectAsync(
        InputArray image,
        OutputArray keypoints,
        InputArray mask = noArray(),
        Stream& stream = Stream::Null()
        );
};

// direct descendants

class FastFeatureDetector;
class ORB;

Detailed Documentation

Abstract base class for CUDA asynchronous 2D image feature detectors and descriptor extractors.

Methods

virtual
void
computeAsync(
    InputArray image,
    OutputArray keypoints,
    OutputArray descriptors,
    Stream& stream = Stream::Null()
    )

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.
virtual
void
convert(
    InputArray gpu_keypoints,
    std::vector<KeyPoint>& keypoints
    ) = 0

Converts keypoints array from internal representation to standard vector.

virtual
void
detectAndComputeAsync(
    InputArray image,
    InputArray mask,
    OutputArray keypoints,
    OutputArray descriptors,
    bool useProvidedKeypoints = false,
    Stream& stream = Stream::Null()
    )

Detects keypoints and computes the descriptors.

virtual
void
detectAsync(
    InputArray image,
    OutputArray keypoints,
    InputArray mask = noArray(),
    Stream& stream = Stream::Null()
    )

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.