Jafar
|
This class provide methods to analysis image background. More...
This class provide methods to analysis image background.
Definition at line 23 of file background.hpp.
#include <background.hpp>
Classes | |
struct | Bkg |
class | Params |
BackgroundAnalysis parameters class. More... | |
Public Member Functions | |
BackgroundAnalysis (Params params_=Params()) | |
default constructor | |
~BackgroundAnalysis () | |
constructor from file | |
std::vector< std::string > | getLabels () const |
load data from file | |
void | learnNewBackground (std::string const &label_, std::vector< jafar::image::Image > const &vImg_) |
learn new background | |
void | updateBackground (std::string const &label_, jafar::image::Image const &img_) |
update background | |
bool | checkSimilarity (jafar::image::Image const &img_) const |
check the image is similar to a known background | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
jblas::vec | img2vec (jafar::image::Image const &img_) const |
jafar::image::Image * | vec2img (jblas::vec const &vec_) const |
Private Attributes | |
Params | params |
parameters | |
std::map< std::string, Bkg > | backgrounds |
map of backgrounds models | |
Friends | |
class | boost::serialization::access |
jafar::sams::BackgroundAnalysis::~BackgroundAnalysis | ( | ) | [inline] |
constructor from file
fname_ | path to data file |
Definition at line 65 of file background.hpp.
References backgrounds.
bool jafar::sams::BackgroundAnalysis::checkSimilarity | ( | jafar::image::Image const & | img_ | ) | const |
check the image is similar to a known background
std::vector<std::string> jafar::sams::BackgroundAnalysis::getLabels | ( | ) | const [inline] |
load data from file
fname_ | path to data file save data to file |
fname_ | path to data file |
Definition at line 83 of file background.hpp.
References backgrounds.
void jafar::sams::BackgroundAnalysis::learnNewBackground | ( | std::string const & | label_, |
std::vector< jafar::image::Image > const & | vImg_ | ||
) |
learn new background
label_ | background label |
vImg_ | a vector of images |
void jafar::sams::BackgroundAnalysis::updateBackground | ( | std::string const & | label_, |
jafar::image::Image const & | img_ | ||
) |
update background
label_ | background label |
img_ | new image |
Generated on Wed Oct 15 2014 00:37:47 for Jafar by doxygen 1.7.6.1 |