KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::pt::Scene_posterior Class Reference

Posterior distribution of a scene. More...

#include <pt_scene_posterior.h>

Public Member Functions

 Scene_posterior (const Box_likelihood &box_likelihood, const Facemark_likelihood &fm_likelihood, const Optical_flow_likelihood &of_likelihood, const Face_flow_likelihood &ff_likelihood, const Color_likelihood &color_likelihood, const Position_prior &pos_prior, const Direction_prior &dir_prior, const Face_direction_prior &fdir_prior, bool vis_off=false, bool infer_head_off=false)
 
double operator() (const Scene &scene) const
 Computes the posterior of a scene. More...
 
double local (const Target &target, const Scene &scene, size_t frame) const
 Computes the likelihood of a scene where only a single item moved. More...
 
double local (const Target &target1, const Target &target2, const Scene &scene, size_t frame1, size_t frame2) const
 Computes the likelihood of a scene where only two items moved. More...
 
bool & use_box_lh () const
 Returns whether or not we are using the box likelihood. More...
 
bool & use_fm_lh () const
 Returns whether or not we are using the facemark likelihood. More...
 
bool & use_of_lh () const
 Returns whether or not we are using the OF likelihood. More...
 
bool & use_ff_lh () const
 Returns whether or not we are using the FF likelihood. More...
 
bool & use_color_lh () const
 Returns whether or not we are using the color likelihood. More...
 
bool & use_pos_prior () const
 Returns whether or not we are using the position prior. More...
 
bool & use_dir_prior () const
 Returns whether or not we are using the direction prior. More...
 
bool & use_fdir_prior () const
 Returns whether or not we are using the face direction prior. More...
 
bool & use_dim_prior () const
 Returns whether or not we are using the dimension prior. More...
 
bool vis_off () const
 Returns whether visibilities is being used. More...
 
bool infer_head () const
 Returns whether inferring head. More...
 
const Position_priorposition_prior () const
 Returns the position prior. More...
 
const Direction_priordirection_prior () const
 Returns the direction prior. More...
 
const Face_direction_priorface_direction_prior () const
 Returns the face direction prior. More...
 
const Normal_distributionheight_prior () const
 Returns the height prior. More...
 
const Normal_distributionwidth_prior () const
 Returns the width prior. More...
 
const Normal_distributiongirth_prior () const
 Returns the girth prior. More...
 
const Box_likelihoodbox_likelihood () const
 Returns the box likelihood. More...
 
const Facemark_likelihoodfm_likelihood () const
 Returns the facemark likelihood. More...
 
const Optical_flow_likelihoodof_likelihood () const
 Returns the optical flow likelihood. More...
 
const Face_flow_likelihoodff_likelihood () const
 Returns the face flow likelihood. More...
 
const Color_likelihoodcolor_likelihood () const
 Returns the color likelihood. More...
 
double dimension_prior (const Scene &scene) const
 Computes the dimension prior of a scene. More...
 

Detailed Description

Posterior distribution of a scene.

This class represents the posterior distribution of a scene (aka the complete-data likelihood, aka the joint distribution of a fixed scene).

Constructor & Destructor Documentation

kjb::pt::Scene_posterior::Scene_posterior ( const Box_likelihood box_likelihood,
const Facemark_likelihood fm_likelihood,
const Optical_flow_likelihood of_likelihood,
const Face_flow_likelihood ff_likelihood,
const Color_likelihood color_likelihood,
const Position_prior pos_prior,
const Direction_prior dir_prior,
const Face_direction_prior fdir_prior,
bool  vis_off = false,
bool  infer_head_off = false 
)
inline

Member Function Documentation

const Box_likelihood& kjb::pt::Scene_posterior::box_likelihood ( ) const
inline

Returns the box likelihood.

const Color_likelihood& kjb::pt::Scene_posterior::color_likelihood ( ) const
inline

Returns the color likelihood.

double Scene_posterior::dimension_prior ( const Scene scene) const

Computes the dimension prior of a scene.

const Direction_prior& kjb::pt::Scene_posterior::direction_prior ( ) const
inline

Returns the direction prior.

const Face_direction_prior& kjb::pt::Scene_posterior::face_direction_prior ( ) const
inline

Returns the face direction prior.

const Face_flow_likelihood& kjb::pt::Scene_posterior::ff_likelihood ( ) const
inline

Returns the face flow likelihood.

const Facemark_likelihood& kjb::pt::Scene_posterior::fm_likelihood ( ) const
inline

Returns the facemark likelihood.

const Normal_distribution& kjb::pt::Scene_posterior::girth_prior ( ) const
inline

Returns the girth prior.

const Normal_distribution& kjb::pt::Scene_posterior::height_prior ( ) const
inline

Returns the height prior.

bool kjb::pt::Scene_posterior::infer_head ( ) const
inline

Returns whether inferring head.

double kjb::pt::Scene_posterior::local ( const Target target,
const Scene scene,
size_t  frame 
) const
inline

Computes the likelihood of a scene where only a single item moved.

double Scene_posterior::local ( const Target target1,
const Target target2,
const Scene scene,
size_t  frame1,
size_t  frame2 
) const

Computes the likelihood of a scene where only two items moved.

const Optical_flow_likelihood& kjb::pt::Scene_posterior::of_likelihood ( ) const
inline

Returns the optical flow likelihood.

double Scene_posterior::operator() ( const Scene scene) const

Computes the posterior of a scene.

const Position_prior& kjb::pt::Scene_posterior::position_prior ( ) const
inline

Returns the position prior.

bool& kjb::pt::Scene_posterior::use_box_lh ( ) const
inline

Returns whether or not we are using the box likelihood.

bool& kjb::pt::Scene_posterior::use_color_lh ( ) const
inline

Returns whether or not we are using the color likelihood.

bool& kjb::pt::Scene_posterior::use_dim_prior ( ) const
inline

Returns whether or not we are using the dimension prior.

bool& kjb::pt::Scene_posterior::use_dir_prior ( ) const
inline

Returns whether or not we are using the direction prior.

bool& kjb::pt::Scene_posterior::use_fdir_prior ( ) const
inline

Returns whether or not we are using the face direction prior.

bool& kjb::pt::Scene_posterior::use_ff_lh ( ) const
inline

Returns whether or not we are using the FF likelihood.

bool& kjb::pt::Scene_posterior::use_fm_lh ( ) const
inline

Returns whether or not we are using the facemark likelihood.

bool& kjb::pt::Scene_posterior::use_of_lh ( ) const
inline

Returns whether or not we are using the OF likelihood.

bool& kjb::pt::Scene_posterior::use_pos_prior ( ) const
inline

Returns whether or not we are using the position prior.

bool kjb::pt::Scene_posterior::vis_off ( ) const
inline

Returns whether visibilities is being used.

const Normal_distribution& kjb::pt::Scene_posterior::width_prior ( ) const
inline

Returns the width prior.


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