KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pt_visibility.h
Go to the documentation of this file.
1 /* =========================================================================== *
2  |
3  | Copyright (c) 1994-2011 by Kobus Barnard (author)
4  |
5  | Personal and educational use of this code is granted, provided that this
6  | header is kept intact, and that the authorship is not misrepresented, that
7  | its use is acknowledged in publications, and relevant papers are cited.
8  |
9  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
10  |
11  | Please note that the code in this file has not necessarily been adequately
12  | tested. Naturally, there is no guarantee of performance, support, or fitness
13  | for any particular task. Nonetheless, I am interested in hearing about
14  | problems that you encounter.
15  |
16  | Author: Ernesto Brau, Jinyan Guan
17  * =========================================================================== */
18 
19 /* $Id: pt_visibility.h 18971 2015-04-29 23:31:48Z jguan1 $ */
20 
21 #ifndef PT_VISIBILITY_H
22 #define PT_VISIBILITY_H
23 
24 //#include <people_tracking_cpp/pt_scene.h>
25 #include <m_cpp/m_vector.h>
26 #include <vector>
27 
28 #include <boost/optional.hpp>
29 
30 namespace kjb {
31 namespace pt {
32 
38 struct Visibility
39 {
40  std::vector<Vector> visible_cells;
41  double visible;
42  double cell_width;
43  double cell_height;
44 
45  Visibility() : visible(1.0), cell_width(-1.0), cell_height(-1.0) {}
46 };
47 
48 // forward declaration to avoid cycles
49 class Scene;
50 
52 void update_visibilities(const Scene& scene, bool infer_head = true);
53 
56 (
57  const Scene& scene,
58  size_t frame,
59  bool infer_head = true
60 );
61 
62 }} //namespace kjb::pt
63 
64 #endif /*PT_VISIBILITY_H */
65 
double visible
Definition: pt_visibility.h:41
void update_visibilities(const Scene &scene, bool infer_head=true)
Update all the visibilities in a scene.
Definition: pt_visibility.cpp:62
Represents the information regarding visibility of an actor at a given frame and given all other acto...
Definition: pt_visibility.h:38
double cell_width
Definition: pt_visibility.h:42
Visibility()
Definition: pt_visibility.h:45
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
std::vector< Vector > visible_cells
Definition: pt_visibility.h:40
double cell_height
Definition: pt_visibility.h:43