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

#include <pt_data.h>

Inheritance diagram for kjb::pt::Box_data:
kjb::mcmcda::Data< Detection_box >

Public Types

typedef std::set< Detection_boxBox_set
 
- Public Types inherited from kjb::mcmcda::Data< Detection_box >
typedef boost::function1
< Vector, const Detection_box & > 
Convert
 
typedef Parent::iterator iterator
 
typedef Parent::const_iterator const_iterator
 

Public Member Functions

 Box_data (double width, double height, double max_prob_noise=1.0)
 Constructor. More...
 
Box_set read_single_time (const std::string &filename) const
 Reads boxes for single time from single file. More...
 
void write_single_time (const Box_set &data_t, const std::string &filename) const
 Write boxes for single time to single file. More...
 
void thin_out (size_t beg_fr, size_t end_fr, size_t every_nth)
 Thins out the data. Only frames in [beg_fr, end_fr] are kept, and only every every_nth frame is kept. More...
 
void remove_overlapping (double thresh)
 Removes overlapping boxes from a set. More...
 
double image_width () const
 Returns the image width. More...
 
double image_height () const
 Returns the image height. More...
 
- Public Member Functions inherited from kjb::mcmcda::Data< Detection_box >
 Data ()
 Empty constructor. More...
 
 Data (Iterator first, Iterator last)
 Constructor from sequence. More...
 
void read (const std::vector< std::string > &filenames)
 Reads data from files with given names. More...
 
void write (const std::vector< std::string > &filenames) const
 Write data to files with given names. More...
 
bool is_completely_empty () const
 Checks whether this data set is completely empty. More...
 
std::set< const Detection_box * > neighborhood (const Detection_box &y, int t, int d, int d_bar, double v_bar, double sg, const Convert &to_vector) const
 Computes the neighborhood of a point. See MCMCDA paper for details. More...
 
int neighborhood_size (const Detection_box &y, int t, int d, int d_bar, double v_bar, double sg, const Convert &to_vector) const
 Computes the size of the neighborhood of a point. This should be faster than computing the neighborhood itself and getting its size(). More...
 

Detailed Description

Class representing tracking box-data. This class inherits from the general mcmcda::Data class, and overwrites the read member function.

Member Typedef Documentation

Constructor & Destructor Documentation

kjb::pt::Box_data::Box_data ( double  width,
double  height,
double  max_prob_noise = 1.0 
)
inline

Constructor.

Member Function Documentation

double kjb::pt::Box_data::image_height ( ) const
inline

Returns the image height.

double kjb::pt::Box_data::image_width ( ) const
inline

Returns the image width.

Box_data::Box_set Box_data::read_single_time ( const std::string &  filename) const
virtual

Reads boxes for single time from single file.

Reimplemented from kjb::mcmcda::Data< Detection_box >.

void Box_data::remove_overlapping ( double  thresh)

Removes overlapping boxes from a set.

void Box_data::thin_out ( size_t  beg_fr,
size_t  end_fr,
size_t  every_nth 
)

Thins out the data. Only frames in [beg_fr, end_fr] are kept, and only every every_nth frame is kept.

void Box_data::write_single_time ( const Box_set data_t,
const std::string &  filename 
) const
virtual

Write boxes for single time to single file.

Reimplemented from kjb::mcmcda::Data< Detection_box >.


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