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 22 of file ssdetector.hpp.
#include <ssdetector.hpp>
Public Member Functions | |
SSDetector () | |
SSDetector (const std::string &file_) | |
SSDetector (int startScale_, int stopScale_, int nbins_, double yt_, double wt_, bool fplogpFlag_, int fplogpprec_=10000) | |
~SSDetector () | |
destructor | |
void | compute (const jafar::image::JfrImage &src_, std::vector< jafar::imdesc::KBFeature > &fVec_) |
void | computeAndDraw (jafar::image::JfrImage &src_) |
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::JfrImage &Image_, std::vector< jafar::imdesc::KBFeature > &fVec_) |
void | do_CalcSalScale2D (const jafar::image::JfrImage &Image_, std::vector< jafar::imdesc::KBFeature > &fVec_) |
void | do_CalcSalScale3D (const jafar::image::JfrImage &Image_, std::vector< jafar::imdesc::KBFeature > &fVec_) |
void | clusterize (const jafar::image::JfrImage &Image_, std::vector< jafar::imdesc::KBFeature > &features_, std::vector< jafar::imdesc::KBFeature > &clust_) const |
Private Attributes | |
bool | byDefault |
flag indicating constructed by default | |
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::imdesc::SSDetector::SSDetector | ( | ) | [inline] |
Default Constructor
Definition at line 26 of file ssdetector.hpp.
jafar::imdesc::SSDetector::SSDetector | ( | const std::string & | file_ | ) |
File-based Constructor
file_ | filename |
jafar::imdesc::SSDetector::SSDetector | ( | int | startScale_, |
int | stopScale_, | ||
int | nbins_, | ||
double | yt_, | ||
double | wt_, | ||
bool | fplogpFlag_, | ||
int | fplogpprec_ = 10000 |
||
) |
Constructor
startScale_ | starting scale |
stopScale_ | stopping scale |
nbins_ | histogram bins number (0 = use parzen window, no anti-aliasing) |
AAFlag_ | flag for using anti-aliased sampling |
thd_ | clusterize threshold |
fastPLog_ | flag for using fast plogp fonction |
gsigma_ | parzen window sigma |
void jafar::imdesc::SSDetector::clusterize | ( | const jafar::image::JfrImage & | Image_, |
std::vector< jafar::imdesc::KBFeature > & | features_, | ||
std::vector< jafar::imdesc::KBFeature > & | clust_ | ||
) | const [private] |
Clusterize a set of features in a greedy maner
void jafar::imdesc::SSDetector::compute | ( | const jafar::image::JfrImage & | src_, |
std::vector< jafar::imdesc::KBFeature > & | fVec_ | ||
) |
Compute KBFeatures
src_ | source image |
fVec_ | features vector result |
void jafar::imdesc::SSDetector::computeAndDraw | ( | jafar::image::JfrImage & | src_ | ) |
Compute KBFeatures and draw them in the image
src_ | source image |
void jafar::imdesc::SSDetector::do_CalcSalScale1D | ( | const jafar::image::JfrImage & | Image_, |
std::vector< jafar::imdesc::KBFeature > & | fVec_ | ||
) | [private] |
Compute 1D Scale Saliency
void jafar::imdesc::SSDetector::do_CalcSalScale2D | ( | const jafar::image::JfrImage & | Image_, |
std::vector< jafar::imdesc::KBFeature > & | fVec_ | ||
) | [private] |
Compute 2D Scale Saliency
void jafar::imdesc::SSDetector::do_CalcSalScale3D | ( | const jafar::image::JfrImage & | Image_, |
std::vector< jafar::imdesc::KBFeature > & | fVec_ | ||
) | [private] |
Compute 3D Scale Saliency
void jafar::imdesc::SSDetector::loadKeyValueFile | ( | jafar::kernel::KeyValueFile const & | keyValueFile | ) | [protected, virtual] |
Load parameters from file
keyValueFile | path to data file |
Implements jafar::kernel::KeyValueFileLoad.
void jafar::imdesc::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:40 for Jafar by doxygen 1.7.6.1 |