Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
jafar::fdetect_v2::SURFDetectorT< InterestFeatureT > Class Template Reference

This class binds OpenCV2 SURF detector to fdetect. More...


Detailed Description

template<typename InterestFeatureT>
class jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >

This class binds OpenCV2 SURF detector to fdetect.

Definition at line 85 of file SURFDetector.hpp.

#include <SURFDetector.hpp>

Inheritance diagram for jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef InterestFeatureT InterestFeatureType
typedef
fdetect_v2::DetectionResult
< InterestFeatureT > 
DetectionResult

Public Member Functions

 SURFDetectorT (double _hessianThreshold=500, int _nOctaves=4, int _nOctaveLayers=2, bool _extended=false)
 Constructor.
bool extended () const
double hessianThreshold () const
int octaves () const
int octaveLayers () const
void setExtended (bool _extended)
 sets the type of the descriptors
void setHessianThreshold (double _hessianThreshold)
 sets the hessian threshold
void setOctaves (int _nOctave)
 sets the number of octaves
void setOctaveLayers (int _nOctaveLayers)
 sets the number of layers per octave
virtual DetectionResult detectIn (jafar::image::Image const &image)
 detects interest features on Module image and computes descriptors
DetectionResult detectIn (jafar::image::Image const &image, const jafar::image::Image &mask, bool with_descriptors)
 detects interest features on Module image on the non masked region, optionnaly computing descriptors
void computeDescriptors (jafar::image::Image const &image, DetectionResult &dr)
 computes descriptors for a given DetectionResult
void computeDescriptors (jafar::image::Image const &image, const jafar::image::Image &mask, DetectionResult &dr)
 computes descriptors for a given DetectionResult using a mask

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)

Private Attributes

cv::SURF cv_surf
 OpenCV SURF features extractor.

Friends

class boost::serialization::access
 !! nizar 20100912 : serialization stuff

Constructor & Destructor Documentation

template<typename InterestFeatureT >
jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::SURFDetectorT ( double  _hessianThreshold = 500,
int  _nOctaves = 4,
int  _nOctaveLayers = 2,
bool  _extended = false 
) [inline]

Constructor.

Parameters:
hessianThreshold,:hessian threshold for a feature. A good value could be in 300..500
nOctave,:number of octaves to be used for extraction
nOctaveLayers,:number of layers within each octave
extended,:use extended descriptors (128) or not (64)

Definition at line 111 of file SURFDetector.hpp.

References jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::cv_surf.


Member Function Documentation

template<typename InterestFeatureT >
void jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::computeDescriptors ( jafar::image::Image const &  image,
DetectionResult dr 
) [inline]

computes descriptors for a given DetectionResult

Returns:
the DetectionResult with descriptors computed

Definition at line 154 of file SURFDetector.hpp.

template<typename InterestFeatureT >
void jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::computeDescriptors ( jafar::image::Image const &  image,
const jafar::image::Image mask,
DetectionResult dr 
)

computes descriptors for a given DetectionResult using a mask

Returns:
the DetectionResult with descriptors computed
template<typename InterestFeatureT >
virtual DetectionResult jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::detectIn ( jafar::image::Image const &  image) [inline, virtual]

detects interest features on Module image and computes descriptors

Returns:
detection result

Implements jafar::fdetect_v2::Detector< InterestFeatureT >.

Definition at line 140 of file SURFDetector.hpp.

template<typename InterestFeatureT >
DetectionResult jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::detectIn ( jafar::image::Image const &  image,
const jafar::image::Image mask,
bool  with_descriptors 
) [virtual]

detects interest features on Module image on the non masked region, optionnaly computing descriptors

Returns:
detection result

Reimplemented from jafar::fdetect_v2::Detector< InterestFeatureT >.

template<typename InterestFeatureT >
bool jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::extended ( ) const
Returns:
the kind of descriptors
template<typename InterestFeatureT >
double jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::hessianThreshold ( ) const
Returns:
the hessian threshold
template<typename InterestFeatureT >
int jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::octaveLayers ( ) const
Returns:
the number of layers per octave
template<typename InterestFeatureT >
int jafar::fdetect_v2::SURFDetectorT< InterestFeatureT >::octaves ( ) const
Returns:
the number of octaves

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:36 for Jafar by doxygen 1.7.6.1
LAAS-CNRS