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

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


Detailed Description

template<typename REALTYPE>
class jafar::fdetect_v2::RealDescriptor< REALTYPE >

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

This descriptor is invariant by rotation.

Definition at line 17 of file RealDescriptor.hpp.

#include <RealDescriptor.hpp>

Inheritance diagram for jafar::fdetect_v2::RealDescriptor< REALTYPE >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef REALTYPE RealType

Public Member Functions

 RealDescriptor (const std::vector< REALTYPE > &descr, REALTYPE normalizeCoef)
template<typename InputIterator >
 RealDescriptor (InputIterator begin, InputIterator end, REALTYPE normalizeCoef)
REALTYPE weakComparison (const jafar::fdetect_v2::RealDescriptor< REALTYPE > &snd)
 The weak comparison call the strong comparison with an angle set to 0.
REALTYPE strongComparison (const jafar::fdetect_v2::RealDescriptor< REALTYPE > &snd, REALTYPE angle)
 The strong comparison for this descriptor is the square distance.
size_t size () const
virtual Type type ()
template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Public Attributes

std::vector< REALTYPE > m_descr
REALTYPE m_normalizeCoef

Friends

class boost::serialization::access

Constructor & Destructor Documentation

template<typename REALTYPE>
jafar::fdetect_v2::RealDescriptor< REALTYPE >::RealDescriptor ( const std::vector< REALTYPE > &  descr,
REALTYPE  normalizeCoef 
) [inline]
Parameters:
descra vector with the values of the descriptor
normalizeCoefnormalization coeficient used in strongComparison for the square distance

Definition at line 26 of file RealDescriptor.hpp.

template<typename REALTYPE>
template<typename InputIterator >
jafar::fdetect_v2::RealDescriptor< REALTYPE >::RealDescriptor ( InputIterator  begin,
InputIterator  end,
REALTYPE  normalizeCoef 
) [inline]
Parameters:
beginan iterator pointing to the descriptor begin
endan iterator pointing to the descriptor end
normalizeCoefnormalization coeficient used in strongComparison for the square distance

Definition at line 36 of file RealDescriptor.hpp.


Member Function Documentation

template<typename REALTYPE>
REALTYPE jafar::fdetect_v2::RealDescriptor< REALTYPE >::strongComparison ( const jafar::fdetect_v2::RealDescriptor< REALTYPE > &  snd,
REALTYPE  angle 
) [inline]

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

Definition at line 51 of file RealDescriptor.hpp.

Referenced by jafar::fdetect_v2::RealDescriptor< REALTYPE >::weakComparison().


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