Jafar
|
Scale Saliency detector class. based on Kadir/Brady KBFeature Detector (Scale Saliency) sources Version 1.5. Copyright Timor Kadir 2004. For non commercial use only.
Definition at line 38 of file detector.hpp.
#include <detector.hpp>
Public Member Functions | |
SSDetector () | |
SSDetector (const std::string &file_) | |
SSDetector (bool harrisPreProc_, int startScale_, int stopScale_, int nbins_, double yt_, double wt_, bool fplogpFlag_, int fplogpprec_=10000) | |
virtual | ~SSDetector () |
destructor | |
virtual void | compute (const jafar::image::Image &src_, std::vector< jafar::sams::Feature * > &fVec_) const |
Protected Member Functions | |
void | loadKeyValueFile (jafar::kernel::KeyValueFile const &keyValueFile) |
void | saveKeyValueFile (jafar::kernel::KeyValueFile &keyValueFile) |
Private Member Functions | |
void | do_CalcSalScale1D (const jafar::image::Image &Image_, std::vector< jafar::sams::Feature * > &fVec_) const |
void | clusterize (std::vector< jafar::sams::Feature * > &features_, std::vector< jafar::sams::Feature * > &clust_) const |
Private Attributes | |
bool | byDefault |
flag indicating constructed by default | |
bool | harrisPreProc |
flag indicating harris preprocessing | |
int | startScale |
starting scale | |
int | stopScale |
stopping scale | |
int | nbins |
histogram bins number | |
double | yt |
saliency threshold | |
double | wt |
inter-saliency threshold | |
bool | fplogpFlag |
fast plogp function flag | |
int | fplogpprec |
fast plogp precision | |
std::vector< double > | fplogp |
plogp lookup-table |
jafar::sams::SSDetector::SSDetector | ( | ) | [inline] |
Default Constructor
Definition at line 42 of file detector.hpp.
jafar::sams::SSDetector::SSDetector | ( | const std::string & | file_ | ) |
File-based Constructor
file_ | filename |
jafar::sams::SSDetector::SSDetector | ( | bool | harrisPreProc_, |
int | startScale_, | ||
int | stopScale_, | ||
int | nbins_, | ||
double | yt_, | ||
double | wt_, | ||
bool | fplogpFlag_, | ||
int | fplogpprec_ = 10000 |
||
) |
Constructor
harrisPreProc_ | flag |
startScale_ | starting scale |
stopScale_ | stopping scale |
nbins_ | histogram bins number |
yt_ | saliency based clusterize threshold |
wt_ | inter-saliency based clusterize threshold |
fastPLog_ | flag for using fast plogp fonction |
fplogpprec_ | fast plogp precision |
void jafar::sams::SSDetector::clusterize | ( | std::vector< jafar::sams::Feature * > & | features_, |
std::vector< jafar::sams::Feature * > & | clust_ | ||
) | const [private] |
Clusterize a set of features in a greedy maner
virtual void jafar::sams::SSDetector::compute | ( | const jafar::image::Image & | src_, |
std::vector< jafar::sams::Feature * > & | fVec_ | ||
) | const [virtual] |
Compute Features
src_ | source image |
fVec_ | features vector result |
Implements jafar::sams::Detector.
void jafar::sams::SSDetector::do_CalcSalScale1D | ( | const jafar::image::Image & | Image_, |
std::vector< jafar::sams::Feature * > & | fVec_ | ||
) | const [private] |
Compute 1D Scale Saliency
void jafar::sams::SSDetector::loadKeyValueFile | ( | jafar::kernel::KeyValueFile const & | keyValueFile | ) | [protected, virtual] |
Load parameters from file
keyValueFile | path to data file |
Implements jafar::kernel::KeyValueFileLoad.
void jafar::sams::SSDetector::saveKeyValueFile | ( | jafar::kernel::KeyValueFile & | keyValueFile | ) | [protected, virtual] |
save parameters from file
keyValueFile | path to data file |
Implements jafar::kernel::KeyValueFileSave.
Generated on Wed Oct 15 2014 00:37:47 for Jafar by doxygen 1.7.6.1 |