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

#include <psi_likelihood.h>

Inheritance diagram for kjb::psi::Cylinder_world_likelihood:
kjb::psi::Model_evaluator

Public Member Functions

 Cylinder_world_likelihood (boost::shared_ptr< std::vector< std::vector< std::vector< Bbox > > > > data, const kjb::Perspective_camera &cam, const Frame_likelihood &frame_likelihood, const Simple_simulator &sim, double p_frame_count)
 
virtual double operator() (const Model &m) const
 
std::vector< std::pair< double,
Bbox > > 
blocks_to_boxes (const std::vector< Cuboid > &blocks) const
 convert 3d blocks into 2d bounding boxes, with depths from camera More...
 
std::vector< std::pair< double,
Bbox > > 
entities_to_boxes (const std::vector< std::vector< Entity_state > > &entities) const
 convert 3d entities into 2d bounding boxes, with depths from camera More...
 

Constructor & Destructor Documentation

kjb::psi::Cylinder_world_likelihood::Cylinder_world_likelihood ( boost::shared_ptr< std::vector< std::vector< std::vector< Bbox > > > >  data,
const kjb::Perspective_camera cam,
const Frame_likelihood frame_likelihood,
const Simple_simulator sim,
double  p_frame_count 
)
inline
Parameters
dataBounding box set in format: data[frame][actor]. These should be pre-thinned, so the time delta between data boxes equals the time step between simulator outputs (TODO need a better way to explain this).
camA "standardize" perspective camera (screen origin at center of image, y-axis pointing upward).
widthWidth of the video frame
heightheight of the video frame
Note
The camera provided MUST be defined using "standard" screen coordinates; i.e. the origin of screen coordinates is located in the center of the frame, the x-axis points right, y-axis points up, and the z-axis points out of the screen.
Parameters
p_frame_countprobability of each extra frame

Member Function Documentation

std::vector<std::pair<double, Bbox> > kjb::psi::Cylinder_world_likelihood::blocks_to_boxes ( const std::vector< Cuboid > &  blocks) const

convert 3d blocks into 2d bounding boxes, with depths from camera

std::vector< std::pair< double, Bbox > > kjb::psi::Cylinder_world_likelihood::entities_to_boxes ( const std::vector< std::vector< Entity_state > > &  entities) const

convert 3d entities into 2d bounding boxes, with depths from camera

Take a set of entity states for N humans and convert them into N into bounding boxes, sorted descended by depth from camera.

double kjb::psi::Cylinder_world_likelihood::operator() ( const Model m) const
virtual

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