Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Friends
jafar::fdetect::DoubleDescriptor Class Reference

Generic descriptor based on a double array (for instance SIFT or SURF). More...


Detailed Description

Generic descriptor based on a double array (for instance SIFT or SURF).

This descriptor is invariant by rotation.

Definition at line 19 of file DoubleDescriptor.hpp.

#include <DoubleDescriptor.hpp>

Inheritance diagram for jafar::fdetect::DoubleDescriptor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DoubleDescriptor (jafar::fdetect::InterestFeature *ip, int deslength, const double *descr, double normalizeCoef)
 DoubleDescriptor (DoubleDescriptor const &m)
DoubleDescriptoroperator= (DoubleDescriptor const &m)
virtual Descriptorclone ()
virtual void print (std::ostream &s) const
 print the descriptor values in a stream
virtual double weakComparison (jafar::fdetect::Descriptor *) const
 The weak comparison call the strong comparison with an angle set to 0.
virtual double strongComparison (jafar::fdetect::Descriptor *snd, double angle) const
 The strong comparison for this descriptor is the square distance.
template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Public Attributes

int m_descLength
double * m_descr
double m_normalizeCoef

Friends

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

Constructor & Destructor Documentation

jafar::fdetect::DoubleDescriptor::DoubleDescriptor ( jafar::fdetect::InterestFeature ip,
int  deslength,
const double *  descr,
double  normalizeCoef 
)
Parameters:
ipthe interest point associated with this descriptor
deslengththe number of elements in the descriptor
descran array with the values of the descriptor
normalizeCoefnormalization coeficient used in strongComparison for the square distance

Member Function Documentation

virtual double jafar::fdetect::DoubleDescriptor::strongComparison ( jafar::fdetect::Descriptor snd,
double  angle 
) const [virtual]

The strong comparison for this descriptor is the square distance.

Parameters:
angleis not used by that kind of descriptor which are invariant by rotation.
Returns:
1.0 - sum( ( this->m_descr[i] - snd->m_dscr[i] )^2 ) / m_normalizeCoef

Implements jafar::fdetect::Descriptor.


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:35 for Jafar by doxygen 1.7.6.1
LAAS-CNRS