Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::VisualHistogramDesc< BinType, FeatType > Class Template Reference

#include <VisualHistogramDesc.h>

Inheritance diagram for RobotFlow::VisualHistogramDesc< BinType, FeatType >:

Inheritance graph
[legend]
Collaboration diagram for RobotFlow::VisualHistogramDesc< BinType, FeatType >:

Collaboration graph
[legend]

template<class BinType, class FeatType>
class RobotFlow::VisualHistogramDesc< BinType, FeatType >


Public Member Functions

 VisualHistogramDesc ()
 VisualHistogramDesc (e_VISUALHIST_similarityType i_simType, bool i_normFlag, unsigned int i_numDimensions, const FD::Vector< int > *i_numBins)
 VisualHistogramDesc (const VisualHistogramDesc< BinType, FeatType > &i_ref)
 ~VisualHistogramDesc ()
VisualHistogramDesc< BinType,
FeatType > & 
operator= (const VisualHistogramDesc< BinType, FeatType > &i_ref)
VisualHistogramDesc< BinType,
FeatType > * 
clone () const
void printOn (std::ostream &out) const
void readFrom (std::istream &in)
double Similarity (const BinType *i_candidate, unsigned int i_size) const
void Adapt (const BinType *i_candidate, unsigned int i_size, double i_rate)
void ComputeHistStd (const FeatType *i_featMap, FeatType i_maxValPlusOne, BinType i_binIncScale, int i_width, int i_height, const VisualROI *i_roi)
void ComputeKernelWeightedHist (const FeatType *i_featMap, FeatType i_maxValPlusOne, BinType i_binIncScale, int i_width, int i_height, const VisualROI *i_roi)
void ComputeMSLocation (const FeatType *i_featMap, FeatType i_maxValPlusOne, BinType i_binIncScale, int i_width, int i_height, const VisualROI *i_roi, const BinType *i_refBins, double i_cueWeight, FD::Vector< double > *o_msLoc)
unsigned int GetNumDimensions () const
unsigned int GetSize () const
unsigned int * GetNumBinsPtr ()
const unsigned int * GetCstNumBinsPtr () const
FeatType * GetBinsWidthPtr ()
const FeatType * GetCstBinsWidthPtr () const
BinType * GetFeatures ()
const BinType * GetCstFeatures () const
bool GetValidity () const
void SetSize (unsigned int i_size)
void SetBins (unsigned int i_numDimensions, unsigned int *i_numBins)
void SetFeatures (const BinType *i_ref, unsigned int i_size)
void SetValidity (bool i_flag)
template<>
const double k_VISUALHIST_2DIVPI
 VisualFeatureDesc ()
 VisualFeatureDesc (e_VISUALDESCRIPTOR_type i_descType)
 VisualFeatureDesc (const VisualFeatureDesc< BinType > &i_ref)
virtual ObjectRef clone ()
e_VISUALDESCRIPTOR_type GetType () const
void SetType (e_VISUALDESCRIPTOR_type i_type)
void ref ()
void unref ()
int unique ()
virtual void destroy ()
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual std::string className () const

Static Public Member Functions

static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Static Public Attributes

static const double k_VISUALHIST_2DIVPI

Protected Attributes

AtomicCounter ref_count

Private Member Functions

void SetSimilarityFct ()
void SetAdaptFct ()
double BhattacharyyaDist (const BinType *i_candidateBins) const
double BhattacharyyaCoeff (const BinType *i_candidateBins) const
double HistogramIntersection (const BinType *i_candidateBins) const
double HistogramIntersectionWNorm (const BinType *i_candidateBins) const
double EuclideanDist (const BinType *i_candidateBins) const
void AdaptNorm (const BinType *i_candidateBins, double i_rate)
void AdaptOnly (const BinType *i_candidateBins, double i_rate)
void NormalizeBins (BinType i_fact)
double EpanechKernel (double i_dist) const
double DerivedEpanechKernel (double i_dist) const

Private Attributes

e_VISUALHIST_similarityType m_simType
bool m_valid
bool m_normFlag
unsigned int m_numDimensions
unsigned int m_totalBins
int * m_numBins
FeatType * m_binsWidth
FeatType m_lastMaxVal
BinType * m_bins
double(VisualHistogramDesc::* m_similarityFct )(const BinType *) const
void(VisualHistogramDesc::* m_adaptFct )(const BinType *, double)

Friends

friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

template<class BinType, class FeatType>
RobotFlow::VisualHistogramDesc< BinType, FeatType >::VisualHistogramDesc  )  [inline]
 

template<class BinType, class FeatType>
RobotFlow::VisualHistogramDesc< BinType, FeatType >::VisualHistogramDesc e_VISUALHIST_similarityType  i_simType,
bool  i_normFlag,
unsigned int  i_numDimensions,
const FD::Vector< int > *  i_numBins
[inline]
 

template<class BinType, class FeatType>
RobotFlow::VisualHistogramDesc< BinType, FeatType >::VisualHistogramDesc const VisualHistogramDesc< BinType, FeatType > &  i_ref  )  [inline]
 

template<class BinType, class FeatType>
RobotFlow::VisualHistogramDesc< BinType, FeatType >::~VisualHistogramDesc  )  [inline]
 


Member Function Documentation

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::Adapt const BinType *  i_candidate,
unsigned int  i_size,
double  i_rate
[inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::AdaptNorm const BinType *  i_candidateBins,
double  i_rate
[inline, private]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::AdaptOnly const BinType *  i_candidateBins,
double  i_rate
[inline, private]
 

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::BhattacharyyaCoeff const BinType *  i_candidateBins  )  const [inline, private]
 

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::BhattacharyyaDist const BinType *  i_candidateBins  )  const [inline, private]
 

template<class BinType, class FeatType>
VisualHistogramDesc<BinType,FeatType>* RobotFlow::VisualHistogramDesc< BinType, FeatType >::clone  )  const [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::ComputeHistStd const FeatType *  i_featMap,
FeatType  i_maxValPlusOne,
BinType  i_binIncScale,
int  i_width,
int  i_height,
const VisualROI i_roi
[inline]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::ComputeKernelWeightedHist const FeatType *  i_featMap,
FeatType  i_maxValPlusOne,
BinType  i_binIncScale,
int  i_width,
int  i_height,
const VisualROI i_roi
[inline]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::ComputeMSLocation const FeatType *  i_featMap,
FeatType  i_maxValPlusOne,
BinType  i_binIncScale,
int  i_width,
int  i_height,
const VisualROI i_roi,
const BinType *  i_refBins,
double  i_cueWeight,
FD::Vector< double > *  o_msLoc
[inline]
 

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::DerivedEpanechKernel double  i_dist  )  const [inline, private]
 

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::EpanechKernel double  i_dist  )  const [inline, private]
 

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::EuclideanDist const BinType *  i_candidateBins  )  const [inline, private]
 

template<class BinType, class FeatType>
FeatType* RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetBinsWidthPtr  )  [inline]
 

template<class BinType, class FeatType>
const FeatType* RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetCstBinsWidthPtr  )  const [inline]
 

template<class BinType, class FeatType>
const BinType* RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetCstFeatures  )  const [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
const unsigned int* RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetCstNumBinsPtr  )  const [inline]
 

template<class BinType, class FeatType>
BinType* RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetFeatures  )  [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
unsigned int* RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetNumBinsPtr  )  [inline]
 

template<class BinType, class FeatType>
unsigned int RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetNumDimensions  )  const [inline]
 

template<class BinType, class FeatType>
unsigned int RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetSize  )  const [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

e_VISUALDESCRIPTOR_type RobotFlow::VisualFeatureDesc< BinType >::GetType  )  const [inline, inherited]
 

template<class BinType, class FeatType>
bool RobotFlow::VisualHistogramDesc< BinType, FeatType >::GetValidity  )  const [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::HistogramIntersection const BinType *  i_candidateBins  )  const [inline, private]
 

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::HistogramIntersectionWNorm const BinType *  i_candidateBins  )  const [inline, private]
 

template<>
const double RobotFlow::VisualHistogramDesc< double, unsigned int >::k_VISUALHIST_2DIVPI  ) 
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::NormalizeBins BinType  i_fact  )  [inline, private]
 

template<class BinType, class FeatType>
VisualHistogramDesc<BinType,FeatType>& RobotFlow::VisualHistogramDesc< BinType, FeatType >::operator= const VisualHistogramDesc< BinType, FeatType > &  i_ref  )  [inline]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::printOn std::ostream &  out  )  const [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::readFrom std::istream &  in  )  [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::SetAdaptFct  )  [inline, private]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::SetBins unsigned int  i_numDimensions,
unsigned int *  i_numBins
[inline]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::SetFeatures const BinType *  i_ref,
unsigned int  i_size
[inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::SetSimilarityFct  )  [inline, private]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::SetSize unsigned int  i_size  )  [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

void RobotFlow::VisualFeatureDesc< BinType >::SetType e_VISUALDESCRIPTOR_type  i_type  )  [inline, inherited]
 

template<class BinType, class FeatType>
void RobotFlow::VisualHistogramDesc< BinType, FeatType >::SetValidity bool  i_flag  )  [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

template<class BinType, class FeatType>
double RobotFlow::VisualHistogramDesc< BinType, FeatType >::Similarity const BinType *  i_candidate,
unsigned int  i_size
const [inline, virtual]
 

Reimplemented from RobotFlow::VisualFeatureDesc< BinType >.

RobotFlow::VisualFeatureDesc< BinType >::VisualFeatureDesc const VisualFeatureDesc< BinType > &  i_ref  )  [inline, inherited]
 

RobotFlow::VisualFeatureDesc< BinType >::VisualFeatureDesc e_VISUALDESCRIPTOR_type  i_descType  )  [inline, inherited]
 

RobotFlow::VisualFeatureDesc< BinType >::VisualFeatureDesc  )  [inline, inherited]
 


Field Documentation

template<class BinType, class FeatType>
const double RobotFlow::VisualHistogramDesc< BinType, FeatType >::k_VISUALHIST_2DIVPI [static]
 

template<class BinType, class FeatType>
void(VisualHistogramDesc::* RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_adaptFct)(const BinType *, double) [private]
 

template<class BinType, class FeatType>
BinType* RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_bins [private]
 

template<class BinType, class FeatType>
FeatType* RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_binsWidth [private]
 

template<class BinType, class FeatType>
FeatType RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_lastMaxVal [private]
 

template<class BinType, class FeatType>
bool RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_normFlag [private]
 

template<class BinType, class FeatType>
int* RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_numBins [private]
 

template<class BinType, class FeatType>
unsigned int RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_numDimensions [private]
 

template<class BinType, class FeatType>
double(VisualHistogramDesc::* RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_similarityFct)(const BinType *) const [private]
 

template<class BinType, class FeatType>
e_VISUALHIST_similarityType RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_simType [private]
 

template<class BinType, class FeatType>
unsigned int RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_totalBins [private]
 

template<class BinType, class FeatType>
bool RobotFlow::VisualHistogramDesc< BinType, FeatType >::m_valid [private]
 


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:36:29 2005 for RobotFlow by  doxygen 1.4.4