OpenCV  2.4.13
Open Source Computer Vision
cv::FREAK Class Reference

#include <features2d.hpp>

Inheritance diagram for cv::FREAK:
cv::DescriptorExtractor cv::Algorithm

Classes

struct  DescriptionPair
 
struct  OrientationPair
 
struct  PatternPoint
 

Public Types

enum  { NB_SCALES = 64, NB_PAIRS = 512, NB_ORIENPAIRS = 45 }
 
- Public Types inherited from cv::Algorithm
typedef Algorithm *(* Constructor) (void)
 
typedef int(Algorithm::* Getter) () const
 
typedef void(Algorithm::* Setter) (int)
 

Public Member Functions

 FREAK (bool orientationNormalized=true, bool scaleNormalized=true, float patternScale=22.0f, int nOctaves=4, const vector< int > &selectedPairs=vector< int >())
 
 FREAK (const FREAK &rhs)
 
FREAKoperator= (const FREAK &)
 
virtual ~FREAK ()
 
virtual int descriptorSize () const
 
virtual int descriptorType () const
 
vector< intselectPairs (const vector< Mat > &images, vector< vector< KeyPoint > > &keypoints, const double corrThresh=0.7, bool verbose=true)
 
AlgorithmInfoinfo () const
 
- Public Member Functions inherited from cv::DescriptorExtractor
virtual ~DescriptorExtractor ()
 
void compute (const Mat &image, CV_OUT CV_IN_OUT vector< KeyPoint > &keypoints, CV_OUT Mat &descriptors) const
 
void compute (const vector< Mat > &images, vector< vector< KeyPoint > > &keypoints, vector< Mat > &descriptors) const
 
virtual bool empty () const
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
string name () const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const string &name) const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const char *name) const
 
int getInt (const string &name) const
 
double getDouble (const string &name) const
 
bool getBool (const string &name) const
 
string getString (const string &name) const
 
Mat getMat (const string &name) const
 
vector< MatgetMatVector (const string &name) const
 
Ptr< AlgorithmgetAlgorithm (const string &name) const
 
void set (const string &name, int value)
 
void set (const string &name, double value)
 
void set (const string &name, bool value)
 
void set (const string &name, const string &value)
 
void set (const string &name, const Mat &value)
 
void set (const string &name, const vector< Mat > &value)
 
void set (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const string &name, const Ptr< _Tp > &value)
 
void setInt (const string &name, int value)
 
void setDouble (const string &name, double value)
 
void setBool (const string &name, bool value)
 
void setString (const string &name, const string &value)
 
void setMat (const string &name, const Mat &value)
 
void setMatVector (const string &name, const vector< Mat > &value)
 
void setAlgorithm (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const string &name, const Ptr< _Tp > &value)
 
void set (const char *name, int value)
 
void set (const char *name, double value)
 
void set (const char *name, bool value)
 
void set (const char *name, const string &value)
 
void set (const char *name, const Mat &value)
 
void set (const char *name, const vector< Mat > &value)
 
void set (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const char *name, const Ptr< _Tp > &value)
 
void setInt (const char *name, int value)
 
void setDouble (const char *name, double value)
 
void setBool (const char *name, bool value)
 
void setString (const char *name, const string &value)
 
void setMat (const char *name, const Mat &value)
 
void setMatVector (const char *name, const vector< Mat > &value)
 
void setAlgorithm (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const char *name, const Ptr< _Tp > &value)
 
string paramHelp (const string &name) const
 
int paramType (const char *name) const
 
int paramType (const string &name) const
 
void getParams (CV_OUT vector< string > &names) const
 
virtual void write (FileStorage &fs) const
 
virtual void read (const FileNode &fn)
 

Protected Member Functions

virtual void computeImpl (const Mat &image, vector< KeyPoint > &keypoints, Mat &descriptors) const
 
void buildPattern ()
 
uchar meanIntensity (const Mat &image, const Mat &integral, const float kp_x, const float kp_y, const unsigned int scale, const unsigned int rot, const unsigned int point) const
 

Protected Attributes

bool orientationNormalized
 
bool scaleNormalized
 
double patternScale
 
int nOctaves
 
bool extAll
 
double patternScale0
 
int nOctaves0
 
vector< intselectedPairs0
 
vector< PatternPointpatternLookup
 
int patternSizes [NB_SCALES]
 
DescriptionPair descriptionPairs [NB_PAIRS]
 
OrientationPair orientationPairs [NB_ORIENPAIRS]
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::DescriptorExtractor
static Ptr< DescriptorExtractorcreate (const string &descriptorExtractorType)
 
- Static Public Member Functions inherited from cv::Algorithm
static void getList (CV_OUT vector< string > &algorithms)
 
static Ptr< Algorithm_create (const string &name)
 
template<typename _Tp >
static Ptr< _Tp > create (const string &name)
 
- Static Protected Member Functions inherited from cv::DescriptorExtractor
static void removeBorderKeypoints (vector< KeyPoint > &keypoints, Size imageSize, int borderSize)
 

Detailed Description

FREAK implementation

Member Enumeration Documentation

anonymous enum
Enumerator
NB_SCALES 
NB_PAIRS 
NB_ORIENPAIRS 

Constructor & Destructor Documentation

cv::FREAK::FREAK ( bool  orientationNormalized = true,
bool  scaleNormalized = true,
float  patternScale = 22.0f,
int  nOctaves = 4,
const vector< int > &  selectedPairs = vector< int >() 
)
explicit

Constructor

Parameters
orientationNormalizedenable orientation normalization
scaleNormalizedenable scale normalization
patternScalescaling of the description pattern
nOctavesnumber of octaves covered by the detected keypoints
selectedPairs(optional) user defined selected pairs
cv::FREAK::FREAK ( const FREAK rhs)
virtual cv::FREAK::~FREAK ( )
virtual

Member Function Documentation

void cv::FREAK::buildPattern ( )
protected
virtual void cv::FREAK::computeImpl ( const Mat image,
vector< KeyPoint > &  keypoints,
Mat descriptors 
) const
protectedvirtual
virtual int cv::FREAK::descriptorSize ( ) const
virtual

returns the descriptor length in bytes

Implements cv::DescriptorExtractor.

virtual int cv::FREAK::descriptorType ( ) const
virtual

returns the descriptor type

Implements cv::DescriptorExtractor.

AlgorithmInfo* cv::FREAK::info ( ) const
virtual

Reimplemented from cv::Algorithm.

uchar cv::FREAK::meanIntensity ( const Mat image,
const Mat integral,
const float  kp_x,
const float  kp_y,
const unsigned int  scale,
const unsigned int  rot,
const unsigned int  point 
) const
protected
FREAK& cv::FREAK::operator= ( const FREAK )
vector<int> cv::FREAK::selectPairs ( const vector< Mat > &  images,
vector< vector< KeyPoint > > &  keypoints,
const double  corrThresh = 0.7,
bool  verbose = true 
)

select the 512 "best description pairs"

Parameters
imagesgrayscale images set
keypointsset of detected keypoints
corrThreshcorrelation threshold
verboseprint construction information
Returns
list of best pair indexes

Member Data Documentation

DescriptionPair cv::FREAK::descriptionPairs[NB_PAIRS]
protected
bool cv::FREAK::extAll
protected
int cv::FREAK::nOctaves
protected
int cv::FREAK::nOctaves0
protected
bool cv::FREAK::orientationNormalized
protected
OrientationPair cv::FREAK::orientationPairs[NB_ORIENPAIRS]
protected
vector<PatternPoint> cv::FREAK::patternLookup
protected
double cv::FREAK::patternScale
protected
double cv::FREAK::patternScale0
protected
int cv::FREAK::patternSizes[NB_SCALES]
protected
bool cv::FREAK::scaleNormalized
protected
vector<int> cv::FREAK::selectedPairs0
protected

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