Class cv::xfeatures2d::DAISY#

Class implementing DAISY descriptor, described in [304]. View details

Collaboration diagram for cv::xfeatures2d::DAISY:

Public Types#

enum NormalizationType {
    NRM_NONE = 100,
    NRM_PARTIAL = 101,
    NRM_FULL = 102,
    NRM_SIFT = 103
}

Public Member Functions#

Public Member Functions inherited from cv::Feature2D
Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Detailed Description#

Class implementing DAISY descriptor, described in Tola10.

Param radius:

radius of the descriptor at the initial scale

Param q_radius:

amount of radial range division quantity

Param q_theta:

amount of angular range division quantity

Param q_hist:

amount of gradient orientations range division quantity

Param norm:

choose descriptors normalization type, where DAISY::NRM_NONE will not do any normalization (default), DAISY::NRM_PARTIAL mean that histograms are normalized independently for L2 norm equal to 1.0, DAISY::NRM_FULL mean that descriptors are normalized for L2 norm equal to 1.0, DAISY::NRM_SIFT mean that descriptors are normalized for L2 norm equal to 1.0 but no individual one is bigger than 0.154 as in SIFT

Param H:

optional 3x3 homography matrix used to warp the grid of daisy but sampling keypoints remains unwarped on image

Param interpolation:

switch to disable interpolation for speed improvement at minor quality loss

Param use_orientation:

sample patterns using keypoints orientation, disabled by default.

Member Enumeration Documentation#

enum NormalizationType

NRM_NONE

NRM_PARTIAL

NRM_FULL

NRM_SIFT

Member Function Documentation#

create()#

static Ptr< DAISY > cv::xfeatures2d::DAISY::create(
float radius = 15,
int q_radius = 3,
int q_theta = 8,
int q_hist = 8,
DAISY::NormalizationType norm = DAISY::NRM_NONE,
InputArray H = noArray(),
bool interpolation = true,
bool use_orientation = false )

Here is the call graph for this function:

cv::xfeatures2d::DAISY::create Node1 cv::xfeatures2d::DAISY ::create Node2 cv::noArray Node1->Node2

cv::xfeatures2d::DAISY::create Node1 cv::xfeatures2d::DAISY ::create Node2 cv::noArray Node1->Node2

compute()#

void cv::xfeatures2d::DAISY::compute(
InputArray image,
OutputArray descriptors )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters

  • image — image to extract descriptors

  • descriptors — resulted descriptors array for all image pixels

compute()#

void cv::xfeatures2d::DAISY::compute(
InputArray image,
Rect roi,
OutputArray descriptors )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters

  • image — image to extract descriptors

  • roi — region of interest within image

  • descriptors — resulted descriptors array for roi image pixels

compute()#

void cv::xfeatures2d::DAISY::compute(
InputArray image,
std::vector< KeyPoint > & keypoints,
OutputArray descriptors )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters

  • image — image to extract descriptors

  • keypoints — of interest within image

  • descriptors — resulted descriptors array

compute()#

void cv::xfeatures2d::DAISY::compute(
InputArrayOfArrays images,
std::vector< std::vector< KeyPoint > > & keypoints,
OutputArrayOfArrays descriptors )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters

  • images — Image set.

  • keypoints — Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).

  • descriptors — Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

getDefaultName()#

String cv::xfeatures2d::DAISY::getDefaultName()

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

GetDescriptor()#

void cv::xfeatures2d::DAISY::GetDescriptor(
double y,
double x,
int orientation,
float * descriptor )

Parameters

  • y — position y on image

  • x — position x on image

  • orientation — orientation on image (0->360)

  • descriptor — supplied array for descriptor storage

GetDescriptor()#

bool cv::xfeatures2d::DAISY::GetDescriptor(
double y,
double x,
int orientation,
float * descriptor,
double * H )

Parameters

  • y — position y on image

  • x — position x on image

  • orientation — orientation on image (0->360)

  • descriptor — supplied array for descriptor storage

  • H — homography matrix for warped grid

getH()#

cv::Mat cv::xfeatures2d::DAISY::getH()

getInterpolation()#

bool cv::xfeatures2d::DAISY::getInterpolation()

getNorm()#

int cv::xfeatures2d::DAISY::getNorm()

getQHist()#

int cv::xfeatures2d::DAISY::getQHist()

getQRadius()#

int cv::xfeatures2d::DAISY::getQRadius()

getQTheta()#

int cv::xfeatures2d::DAISY::getQTheta()

getRadius()#

float cv::xfeatures2d::DAISY::getRadius()

GetUnnormalizedDescriptor()#

void cv::xfeatures2d::DAISY::GetUnnormalizedDescriptor(
double y,
double x,
int orientation,
float * descriptor )

Parameters

  • y — position y on image

  • x — position x on image

  • orientation — orientation on image (0->360)

  • descriptor — supplied array for descriptor storage

GetUnnormalizedDescriptor()#

bool cv::xfeatures2d::DAISY::GetUnnormalizedDescriptor(
double y,
double x,
int orientation,
float * descriptor,
double * H )

Parameters

  • y — position y on image

  • x — position x on image

  • orientation — orientation on image (0->360)

  • descriptor — supplied array for descriptor storage

  • H — homography matrix for warped grid

getUseOrientation()#

bool cv::xfeatures2d::DAISY::getUseOrientation()

setH()#

void cv::xfeatures2d::DAISY::setH(InputArray H)

setInterpolation()#

void cv::xfeatures2d::DAISY::setInterpolation(bool interpolation)

setNorm()#

void cv::xfeatures2d::DAISY::setNorm(int norm)

setQHist()#

void cv::xfeatures2d::DAISY::setQHist(int q_hist)

setQRadius()#

void cv::xfeatures2d::DAISY::setQRadius(int q_radius)

setQTheta()#

void cv::xfeatures2d::DAISY::setQTheta(int q_theta)

setRadius()#

void cv::xfeatures2d::DAISY::setRadius(float radius)

setUseOrientation()#

void cv::xfeatures2d::DAISY::setUseOrientation(bool use_orientation)

Source file#

The documentation for this class was generated from the following file: