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

This function stores the results of the interest feature detection. More...


Detailed Description

This function stores the results of the interest feature detection.

Each time this class is copied, data is shared, no deep copy is made, and once the last instance of this class is deleted, all interest features of the detection run are deleted. Therefor, there is no pointer to use this class with pointers, just copy instance.

Definition at line 22 of file DetectionResult.hpp.

#include <DetectionResult.hpp>

List of all members.

Public Types

typedef vInterestFeatures_it iterator
typedef vInterestFeatures_cit const_iterator

Public Member Functions

 DetectionResult ()
 Initialize an empty detection result.
 DetectionResult (const DetectionResult &)
 Clone this detection result.
DetectionResultoperator= (const DetectionResult &)
 Copy an other detection result in this one.
unsigned int countInterestFeatures () const
unsigned int size () const
InterestFeatureoperator[] (int p)
const InterestFeatureoperator[] (int p) const
vInterestFeatures_it beginFeatures ()
iterator begin ()
vInterestFeatures_cit beginFeatures () const
const_iterator begin () const
vInterestFeatures_it endFeatures ()
iterator end ()
vInterestFeatures_cit endFeatures () const
const_iterator end () const
void addFeature (InterestFeature *ife)
 This function add a new interest feature to the result.
void push_back (InterestFeature *ife)
vInterestFeatures_it eraseFeature (vInterestFeatures_it it)
 Erase a feature described by an iterator to it.
iterator erase (iterator it)
vInterestFeatures & getFeatures () const
DetectionResult filter (double threshold)

Public Attributes

unsigned int id

Private Member Functions

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

Private Attributes

Shared * m_shared

Friends

class boost::serialization::access
 !! nizar 20100912 : serialization stuff
std::ostream & operator<< (std::ostream &s, const DetectionResult &p_)
std::ostream & operator<< (std::ostream &s, const DetectionResult::Shared &p_)

Member Function Documentation

This function add a new interest feature to the result.

The index of the interest feature is set to the position in the vector. Note that DetectionResult takes the responsability to delete that interest feature.

Parameters:
InterestFeaturea pointer to the interest feature
Returns:
an iterator on the first interest feature

Referenced by jafar::hpm::exportHarrisPoints().

vInterestFeatures_cit jafar::fdetect::DetectionResult::beginFeatures ( ) const
Returns:
a constant iterator on the first interest feature
Returns:
the number of interest features for this result

Referenced by jafar::hpm::exportHarrisPoints().

Returns:
an iterator on the end of the vector of interest feature

Referenced by jafar::hpm::exportHarrisPoints().

vInterestFeatures_cit jafar::fdetect::DetectionResult::endFeatures ( ) const
Returns:
a constant iterator on the end of the vector of interest feature
vInterestFeatures_it jafar::fdetect::DetectionResult::eraseFeature ( vInterestFeatures_it  it)

Erase a feature described by an iterator to it.

Returns an iterator to the next element.

DetectionResult& jafar::fdetect::DetectionResult::operator= ( const DetectionResult )

Copy an other detection result in this one.

This will make a call to unref and might provokes the deletion of the previous interest features.

InterestFeature* jafar::fdetect::DetectionResult::operator[] ( int  p)
Parameters:
pindex of the interest feature
Returns:
the interest feature at index p
const InterestFeature* jafar::fdetect::DetectionResult::operator[] ( int  p) const
Parameters:
pindex of the interest feature
Returns:
a constant pointer to the interest feature at index p

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