Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
jafar::sams::SSDetector Class Reference

Detailed Description

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>

Inheritance diagram for jafar::sams::SSDetector:
Inheritance graph
[legend]

List of all members.

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

Constructor & Destructor Documentation

Default Constructor

Definition at line 42 of file detector.hpp.

jafar::sams::SSDetector::SSDetector ( const std::string &  file_)

File-based Constructor

Parameters:
file_filename
jafar::sams::SSDetector::SSDetector ( bool  harrisPreProc_,
int  startScale_,
int  stopScale_,
int  nbins_,
double  yt_,
double  wt_,
bool  fplogpFlag_,
int  fplogpprec_ = 10000 
)

Constructor

Parameters:
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

Member Function Documentation

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

Parameters:
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

Parameters:
keyValueFilepath to data file

Implements jafar::kernel::KeyValueFileLoad.

void jafar::sams::SSDetector::saveKeyValueFile ( jafar::kernel::KeyValueFile keyValueFile) [protected, virtual]

save parameters from file

Parameters:
keyValueFilepath to data file

Implements jafar::kernel::KeyValueFileSave.


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:47 for Jafar by doxygen 1.7.6.1
LAAS-CNRS