Jafar
|
This function stores the results of the interest feature detection. More...
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>
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. | |
DetectionResult & | operator= (const DetectionResult &) |
Copy an other detection result in this one. | |
unsigned int | countInterestFeatures () const |
unsigned int | size () const |
InterestFeature * | operator[] (int p) |
const InterestFeature * | operator[] (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_) |
void jafar::fdetect::DetectionResult::addFeature | ( | InterestFeature * | ife | ) |
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.
InterestFeature | a pointer to the interest feature |
vInterestFeatures_it jafar::fdetect::DetectionResult::beginFeatures | ( | ) |
Referenced by jafar::hpm::exportHarrisPoints().
vInterestFeatures_cit jafar::fdetect::DetectionResult::beginFeatures | ( | ) | const |
unsigned int jafar::fdetect::DetectionResult::countInterestFeatures | ( | ) | const |
Referenced by jafar::hpm::exportHarrisPoints().
vInterestFeatures_it jafar::fdetect::DetectionResult::endFeatures | ( | ) |
Referenced by jafar::hpm::exportHarrisPoints().
vInterestFeatures_cit jafar::fdetect::DetectionResult::endFeatures | ( | ) | const |
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 | ) |
p | index of the interest feature |
const InterestFeature* jafar::fdetect::DetectionResult::operator[] | ( | int | p | ) | const |
p | index of the interest feature |
Generated on Wed Oct 15 2014 00:37:35 for Jafar by doxygen 1.7.6.1 |