Class cv::xfeatures2d::BoostDesc#

Class implementing BoostDesc (Learning Image Descriptors with Boosting), described in [294] and [295]. View details

Collaboration diagram for cv::xfeatures2d::BoostDesc:

Public Types#

enum cv::xfeatures2d::BoostDesc {
    cv::xfeatures2d::BGM = 100,
    cv::xfeatures2d::BGM_HARD = 101,
    cv::xfeatures2d::BGM_BILINEAR = 102,
    cv::xfeatures2d::LBGM = 200,
    cv::xfeatures2d::BINBOOST_64 = 300,
    cv::xfeatures2d::BINBOOST_128 = 301,
    cv::xfeatures2d::BINBOOST_256 = 302
}

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 BoostDesc (Learning Image Descriptors with Boosting), described in Trzcinski13a and Trzcinski13b.

Note

BGM is the base descriptor where each binary dimension is computed as the output of a single weak learner. BGM_HARD and BGM_BILINEAR refers to same BGM but use different type of gradient binning. In the BGM_HARD that use ASSIGN_HARD binning type the gradient is assigned to the nearest orientation bin. In the BGM_BILINEAR that use ASSIGN_BILINEAR binning type the gradient is assigned to the two neighbouring bins. In the BGM and all other modes that use ASSIGN_SOFT binning type the gradient is assigned to 8 nearest bins according to the cosine value between the gradient angle and the bin center. LBGM (alias FP-Boost) is the floating point extension where each dimension is computed as a linear combination of the weak learner responses. BINBOOST and subvariants are the binary extensions of LBGM where each bit is computed as a thresholded linear combination of a set of weak learners. BoostDesc header files (boostdesc_*.i) was exported from original binaries with export-boostdesc.py script from samples subfolder.

Param desc:

type of descriptor to use, BoostDesc::BINBOOST_256 is default (256 bit long dimension) Available types are: BoostDesc::BGM, BoostDesc::BGM_HARD, BoostDesc::BGM_BILINEAR, BoostDesc::LBGM, BoostDesc::BINBOOST_64, BoostDesc::BINBOOST_128, BoostDesc::BINBOOST_256

Param use_orientation:

sample patterns using keypoints orientation, enabled by default

Param scale_factor:

adjust the sampling window of detected keypoints 6.25f is default and fits for KAZE, SURF detected keypoints window ratio 6.75f should be the scale for SIFT detected keypoints window ratio 5.00f should be the scale for AKAZE, MSD, AGAST, FAST, BRISK keypoints window ratio 0.75f should be the scale for ORB keypoints ratio 1.50f was the default in original implementation

Member Enumeration Documentation#

enum BoostDesc

BGM

BGM_HARD

BGM_BILINEAR

LBGM

BINBOOST_64

BINBOOST_128

BINBOOST_256

Member Function Documentation#

create()#

static Ptr< BoostDesc > cv::xfeatures2d::BoostDesc::create(
int desc = BoostDesc::BINBOOST_256,
bool use_scale_orientation = true,
float scale_factor = 6.25f )

getDefaultName()#

String cv::xfeatures2d::BoostDesc::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.

getScaleFactor()#

float cv::xfeatures2d::BoostDesc::getScaleFactor()

getUseScaleOrientation()#

bool cv::xfeatures2d::BoostDesc::getUseScaleOrientation()

setScaleFactor()#

void cv::xfeatures2d::BoostDesc::setScaleFactor(const float scale_factor)

setUseScaleOrientation()#

void cv::xfeatures2d::BoostDesc::setUseScaleOrientation(const bool use_scale_orientation)

Source file#

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