Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
cv::BRISK Class Reference

BRISK implementation. More...

#include <features2d.hpp>

Inherits cv::Feature2D.

Classes

struct  BriskLongPair
 
struct  BriskPatternPoint
 
struct  BriskShortPair
 

Public Types

typedef Algorithm *(* Constructor )(void)
 
typedef int(Algorithm::* Getter )() const
 
typedef void(Algorithm::* Setter )(int)
 

Public Member Functions

CV_WRAP BRISK (int thresh=30, int octaves=3, float patternScale=1.0f)
 
virtual ~BRISK ()
 
int descriptorSize () const
 
int descriptorType () const
 
void operator() (InputArray image, InputArray mask, vector< KeyPoint > &keypoints) const
 
void operator() (InputArray image, InputArray mask, vector< KeyPoint > &keypoints, OutputArray descriptors, bool useProvidedKeypoints=false) const
 
AlgorithmInfoinfo () const
 
CV_WRAP BRISK (std::vector< float > &radiusList, std::vector< int > &numberList, float dMax=5.85f, float dMin=8.2f, std::vector< int > indexChange=std::vector< int >())
 
CV_WRAP void generateKernel (std::vector< float > &radiusList, std::vector< int > &numberList, float dMax=5.85f, float dMin=8.2f, std::vector< int > indexChange=std::vector< int >())
 
 CV_WRAP_AS (detectAndCompute) virtual void operator()(InputArray image
 
CV_WRAP void compute (const Mat &image, CV_OUT CV_IN_OUT std::vector< KeyPoint > &keypoints, CV_OUT Mat &descriptors) const
 
void compute (const vector< Mat > &images, vector< vector< KeyPoint > > &keypoints, vector< Mat > &descriptors) const
 
CV_WRAP void detect (const Mat &image, CV_OUT vector< KeyPoint > &keypoints, const Mat &mask=Mat()) const
 
void detect (const vector< Mat > &images, vector< vector< KeyPoint > > &keypoints, const vector< Mat > &masks=vector< Mat >()) const
 
virtual CV_WRAP bool empty () const
 
virtual CV_WRAP bool empty () const
 
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
 
CV_WRAP int getInt (const string &name) const
 
CV_WRAP double getDouble (const string &name) const
 
CV_WRAP bool getBool (const string &name) const
 
CV_WRAP string getString (const string &name) const
 
CV_WRAP Mat getMat (const string &name) const
 
CV_WRAP vector< MatgetMatVector (const string &name) const
 
CV_WRAP 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 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)
 
CV_WRAP void setInt (const string &name, int value)
 
void setInt (const char *name, int value)
 
CV_WRAP void setDouble (const string &name, double value)
 
void setDouble (const char *name, double value)
 
CV_WRAP void setBool (const string &name, bool value)
 
void setBool (const char *name, bool value)
 
CV_WRAP void setString (const string &name, const string &value)
 
void setString (const char *name, const string &value)
 
CV_WRAP void setMat (const string &name, const Mat &value)
 
void setMat (const char *name, const Mat &value)
 
CV_WRAP void setMatVector (const string &name, const vector< Mat > &value)
 
void setMatVector (const char *name, const vector< Mat > &value)
 
CV_WRAP void setAlgorithm (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const string &name, const Ptr< _Tp > &value)
 
void setAlgorithm (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const char *name, const Ptr< _Tp > &value)
 
CV_WRAP string paramHelp (const string &name) const
 
int paramType (const char *name) const
 
CV_WRAP int paramType (const string &name) const
 
CV_WRAP void getParams (CV_OUT vector< string > &names) const
 
virtual void write (FileStorage &fs) const
 
virtual void read (const FileNode &fn)
 

Static Public Member Functions

static CV_WRAP Ptr< Feature2Dcreate (const string &name)
 
static CV_WRAP void getList (CV_OUT vector< string > &algorithms)
 
static CV_WRAP Ptr< Algorithm_create (const string &name)
 

Public Attributes

InputArray mask
 
InputArray CV_OUT vector
< KeyPoint > & 
keypoints
 
InputArray CV_OUT vector
< KeyPoint > OutputArray 
descriptors
 
InputArray CV_OUT vector
< KeyPoint > OutputArray bool 
useProvidedKeypoints =false ) const = 0
 

Protected Member Functions

void computeImpl (const Mat &image, vector< KeyPoint > &keypoints, Mat &descriptors) const
 
void detectImpl (const Mat &image, vector< KeyPoint > &keypoints, const Mat &mask=Mat()) const
 
void computeKeypointsNoOrientation (InputArray image, InputArray mask, vector< KeyPoint > &keypoints) const
 
void computeDescriptorsAndOrOrientation (InputArray image, InputArray mask, vector< KeyPoint > &keypoints, OutputArray descriptors, bool doDescriptors, bool doOrientation, bool useProvidedKeypoints) const
 
int smoothedIntensity (const cv::Mat &image, const cv::Mat &integral, const float key_x, const float key_y, const unsigned int scale, const unsigned int rot, const unsigned int point) const
 

Static Protected Member Functions

static void removeInvalidPoints (const Mat &mask, vector< KeyPoint > &keypoints)
 
static void removeBorderKeypoints (vector< KeyPoint > &keypoints, Size imageSize, int borderSize)
 

Protected Attributes

CV_PROP_RW int threshold
 
CV_PROP_RW int octaves
 
BriskPatternPointpatternPoints_
 
unsigned int points_
 
float * scaleList_
 
unsigned intsizeList_
 
int strings_
 
float dMax_
 
float dMin_
 
BriskShortPairshortPairs_
 
BriskLongPairlongPairs_
 
unsigned int noShortPairs_
 
unsigned int noLongPairs_
 

Static Protected Attributes

static const unsigned int scales_
 
static const float scalerange_
 
static const unsigned int n_rot_
 
static const float basicSize_
 

Detailed Description

BRISK implementation.

Member Typedef Documentation

typedef Algorithm*(* cv::Algorithm::Constructor)(void)
inherited
typedef int(Algorithm::* cv::Algorithm::Getter)() const
inherited
typedef void(Algorithm::* cv::Algorithm::Setter)(int)
inherited

Constructor & Destructor Documentation

CV_WRAP cv::BRISK::BRISK ( int  thresh = 30,
int  octaves = 3,
float  patternScale = 1.0f 
)
explicit
virtual cv::BRISK::~BRISK ( )
virtual
CV_WRAP cv::BRISK::BRISK ( std::vector< float > &  radiusList,
std::vector< int > &  numberList,
float  dMax = 5.85f,
float  dMin = 8.2f,
std::vector< int indexChange = std::vector< int >() 
)
explicit

Member Function Documentation

int cv::BRISK::descriptorSize ( ) const
virtual
int cv::BRISK::descriptorType ( ) const
virtual
void cv::BRISK::operator() ( InputArray  image,
InputArray  mask,
vector< KeyPoint > &  keypoints 
) const
void cv::BRISK::operator() ( InputArray  image,
InputArray  mask,
vector< KeyPoint > &  keypoints,
OutputArray  descriptors,
bool  useProvidedKeypoints = false 
) const
AlgorithmInfo* cv::BRISK::info ( ) const
virtual

Reimplemented from cv::Algorithm.

CV_WRAP void cv::BRISK::generateKernel ( std::vector< float > &  radiusList,
std::vector< int > &  numberList,
float  dMax = 5.85f,
float  dMin = 8.2f,
std::vector< int indexChange = std::vector< int >() 
)
void cv::BRISK::computeImpl ( const Mat image,
vector< KeyPoint > &  keypoints,
Mat descriptors 
) const
protectedvirtual
void cv::BRISK::detectImpl ( const Mat image,
vector< KeyPoint > &  keypoints,
const Mat mask = Mat() 
) const
protectedvirtual

Implements cv::FeatureDetector.

void cv::BRISK::computeKeypointsNoOrientation ( InputArray  image,
InputArray  mask,
vector< KeyPoint > &  keypoints 
) const
protected
void cv::BRISK::computeDescriptorsAndOrOrientation ( InputArray  image,
InputArray  mask,
vector< KeyPoint > &  keypoints,
OutputArray  descriptors,
bool  doDescriptors,
bool  doOrientation,
bool  useProvidedKeypoints 
) const
protected
int cv::BRISK::smoothedIntensity ( const cv::Mat image,
const cv::Mat integral,
const float  key_x,
const float  key_y,
const unsigned int  scale,
const unsigned int  rot,
const unsigned int  point 
) const
protected
cv::Feature2D::CV_WRAP_AS ( detectAndCompute  )
inherited
CV_WRAP void cv::Feature2D::compute ( const Mat image,
CV_OUT CV_IN_OUT std::vector< KeyPoint > &  keypoints,
CV_OUT Mat descriptors 
) const
inherited
void cv::DescriptorExtractor::compute ( const vector< Mat > &  images,
vector< vector< KeyPoint > > &  keypoints,
vector< Mat > &  descriptors 
) const
inherited
static CV_WRAP Ptr<Feature2D> cv::Feature2D::create ( const string name)
staticinherited
CV_WRAP void cv::FeatureDetector::detect ( const Mat image,
CV_OUT vector< KeyPoint > &  keypoints,
const Mat mask = Mat() 
) const
inherited
void cv::FeatureDetector::detect ( const vector< Mat > &  images,
vector< vector< KeyPoint > > &  keypoints,
const vector< Mat > &  masks = vector< Mat >() 
) const
inherited
virtual CV_WRAP bool cv::FeatureDetector::empty ( ) const
virtualinherited
virtual CV_WRAP bool cv::DescriptorExtractor::empty ( ) const
virtualinherited
static void cv::FeatureDetector::removeInvalidPoints ( const Mat mask,
vector< KeyPoint > &  keypoints 
)
staticprotectedinherited
string cv::Algorithm::name ( ) const
inherited
template<typename _Tp >
ParamType< _Tp >::member_type cv::Algorithm::get ( const string name) const
inherited
template<typename _Tp >
ParamType< _Tp >::member_type cv::Algorithm::get ( const char *  name) const
inherited
CV_WRAP int cv::Algorithm::getInt ( const string name) const
inherited
CV_WRAP double cv::Algorithm::getDouble ( const string name) const
inherited
CV_WRAP bool cv::Algorithm::getBool ( const string name) const
inherited
CV_WRAP string cv::Algorithm::getString ( const string name) const
inherited
CV_WRAP Mat cv::Algorithm::getMat ( const string name) const
inherited
CV_WRAP vector<Mat> cv::Algorithm::getMatVector ( const string name) const
inherited
CV_WRAP Ptr<Algorithm> cv::Algorithm::getAlgorithm ( const string name) const
inherited
void cv::Algorithm::set ( const string name,
int  value 
)
inherited
void cv::Algorithm::set ( const string name,
double  value 
)
inherited
void cv::Algorithm::set ( const string name,
bool  value 
)
inherited
void cv::Algorithm::set ( const string name,
const string value 
)
inherited
void cv::Algorithm::set ( const string name,
const Mat value 
)
inherited
void cv::Algorithm::set ( const string name,
const vector< Mat > &  value 
)
inherited
void cv::Algorithm::set ( const string name,
const Ptr< Algorithm > &  value 
)
inherited
template<typename _Tp >
void cv::Algorithm::set ( const string name,
const Ptr< _Tp > &  value 
)
inherited
void cv::Algorithm::set ( const char *  name,
int  value 
)
inherited
void cv::Algorithm::set ( const char *  name,
double  value 
)
inherited
void cv::Algorithm::set ( const char *  name,
bool  value 
)
inherited
void cv::Algorithm::set ( const char *  name,
const string value 
)
inherited
void cv::Algorithm::set ( const char *  name,
const Mat value 
)
inherited
void cv::Algorithm::set ( const char *  name,
const vector< Mat > &  value 
)
inherited
void cv::Algorithm::set ( const char *  name,
const Ptr< Algorithm > &  value 
)
inherited
template<typename _Tp >
void cv::Algorithm::set ( const char *  name,
const Ptr< _Tp > &  value 
)
inherited
CV_WRAP void cv::Algorithm::setInt ( const string name,
int  value 
)
inherited
void cv::Algorithm::setInt ( const char *  name,
int  value 
)
inherited
CV_WRAP void cv::Algorithm::setDouble ( const string name,
double  value 
)
inherited
void cv::Algorithm::setDouble ( const char *  name,
double  value 
)
inherited
CV_WRAP void cv::Algorithm::setBool ( const string name,
bool  value 
)
inherited
void cv::Algorithm::setBool ( const char *  name,
bool  value 
)
inherited
CV_WRAP void cv::Algorithm::setString ( const string name,
const string value 
)
inherited
void cv::Algorithm::setString ( const char *  name,
const string value 
)
inherited
CV_WRAP void cv::Algorithm::setMat ( const string name,
const Mat value 
)
inherited
void cv::Algorithm::setMat ( const char *  name,
const Mat value 
)
inherited
CV_WRAP void cv::Algorithm::setMatVector ( const string name,
const vector< Mat > &  value 
)
inherited
void cv::Algorithm::setMatVector ( const char *  name,
const vector< Mat > &  value 
)
inherited
CV_WRAP void cv::Algorithm::setAlgorithm ( const string name,
const Ptr< Algorithm > &  value 
)
inherited
template<typename _Tp >
void cv::Algorithm::setAlgorithm ( const string name,
const Ptr< _Tp > &  value 
)
inherited
void cv::Algorithm::setAlgorithm ( const char *  name,
const Ptr< Algorithm > &  value 
)
inherited
template<typename _Tp >
void cv::Algorithm::setAlgorithm ( const char *  name,
const Ptr< _Tp > &  value 
)
inherited
CV_WRAP string cv::Algorithm::paramHelp ( const string name) const
inherited
int cv::Algorithm::paramType ( const char *  name) const
inherited
CV_WRAP int cv::Algorithm::paramType ( const string name) const
inherited
CV_WRAP void cv::Algorithm::getParams ( CV_OUT vector< string > &  names) const
inherited
virtual void cv::Algorithm::write ( FileStorage fs) const
virtualinherited
virtual void cv::Algorithm::read ( const FileNode fn)
virtualinherited
static CV_WRAP void cv::Algorithm::getList ( CV_OUT vector< string > &  algorithms)
staticinherited
static CV_WRAP Ptr<Algorithm> cv::Algorithm::_create ( const string name)
staticinherited
static void cv::DescriptorExtractor::removeBorderKeypoints ( vector< KeyPoint > &  keypoints,
Size  imageSize,
int  borderSize 
)
staticprotectedinherited

Member Data Documentation

CV_PROP_RW int cv::BRISK::threshold
protected
CV_PROP_RW int cv::BRISK::octaves
protected
BriskPatternPoint* cv::BRISK::patternPoints_
protected
unsigned int cv::BRISK::points_
protected
float* cv::BRISK::scaleList_
protected
unsigned int* cv::BRISK::sizeList_
protected
const unsigned int cv::BRISK::scales_
staticprotected
const float cv::BRISK::scalerange_
staticprotected
const unsigned int cv::BRISK::n_rot_
staticprotected
int cv::BRISK::strings_
protected
float cv::BRISK::dMax_
protected
float cv::BRISK::dMin_
protected
BriskShortPair* cv::BRISK::shortPairs_
protected
BriskLongPair* cv::BRISK::longPairs_
protected
unsigned int cv::BRISK::noShortPairs_
protected
unsigned int cv::BRISK::noLongPairs_
protected
const float cv::BRISK::basicSize_
staticprotected
InputArray cv::Feature2D::mask
inherited
InputArray CV_OUT vector<KeyPoint>& cv::Feature2D::keypoints
inherited
InputArray CV_OUT vector<KeyPoint> OutputArray cv::Feature2D::descriptors
inherited
InputArray CV_OUT vector<KeyPoint> OutputArray bool cv::Feature2D::useProvidedKeypoints =false ) const = 0
inherited

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