MTF
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PF< AM, SSM > Class Template Reference
Inheritance diagram for PF< AM, SSM >:
SearchMethod< AM, SSM >

Public Types

typedef PFParams ParamType
 
typedef ParamType::DynamicModel DynamicModel
 
typedef ParamType::UpdateType UpdateType
 
typedef ParamType::LikelihoodFunc LikelihoodFunc
 
typedef ParamType::ResamplingType ResamplingType
 
typedef ParamType::MeanType MeanType
 
typedef boost::mt11213b RandGenT
 
typedef boost::normal_distribution< double > MeasureDistT
 
typedef boost::random::uniform_real_distribution< double > ResampleDistT
 
typedef ResampleDistT::param_type ResampleDistParamT
 
- Public Types inherited from SearchMethod< AM, SSM >
typedef AM::ParamType AMParams
 
typedef SSM::ParamType SSMParams
 

Public Member Functions

 PF (const ParamType *pf_params=nullptr, const AMParams *am_params=nullptr, const SSMParams *ssm_params=nullptr)
 
void initialize (const cv::Mat &corners) override
 
void update () override
 
void setRegion (const cv::Mat &corners) override
 
- Public Member Functions inherited from SearchMethod< AM, SSM >
 SearchMethod (const AMParams *am_params, const SSMParams *ssm_params)
 
void setImage (const cv::Mat &img) override
 
const cv::Mat & getRegion () override
 
void setRegion (const cv::Mat &corners) override
 
virtual void setSPIMask (const bool *_spi_mask)
 
virtual void clearSPIMask ()
 
virtual const bool * getSPIMask ()
 
virtual void setInitStatus ()
 
virtual void clearInitStatus ()
 
virtual bool supportsSPI ()
 
virtual int inputType () const override
 
virtual AM & getAM ()
 direct access to the underlying AM and SSM
 
virtual SSM & getSSM ()
 

Protected Member Functions

void initializeParticles ()
 
void linearMultinomialResampling ()
 
void binaryMultinomialResampling ()
 
void residualResampling ()
 
void updateMeanCorners ()
 

Protected Attributes

ParamType params
 
RandGenT measurement_gen
 
MeasureDistT measurement_dist
 
RandGenT resample_gen
 
ResampleDistT resample_dist
 
double max_similarity
 similarity of the initial patch (or template) with itself
 
unsigned int ssm_state_size
 
int frame_id
 
Matrix3d warp_update
 
CornersT mean_corners
 
CornersT prev_corners
 
VectorXd mean_state
 
std::vector< VectorXd > particle_states [2]
 
std::vector< VectorXd > particle_ar [2]
 
int curr_set_id
 
int max_wt_id
 ID of the particle with the maximum weight.
 
VectorXd particle_wts
 
VectorXd particle_cum_wts
 
VectorXd perturbed_state
 
VectorXd perturbed_ar
 
VectorXd state_sigma
 
VectorXd state_mean
 
VectorXi resample_ids
 
VectorXd uniform_rand_nums
 
bool using_pix_sigma
 
double measurement_likelihood
 
double measurement_factor
 
cv::Mat curr_img_uchar
 
bool enable_adaptive_resampling
 
double min_eff_particles
 
char * log_fname
 
char * time_fname
 
- Protected Attributes inherited from SearchMethod< AM, SSM >
AM am
 
SSM ssm
 
const bool * spi_mask
 

The documentation for this class was generated from the following file: