mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vsrs_camera_array.h
Go to the documentation of this file.
1 #ifndef MF_VSRS_CAMERA_ARRAY_H_
2 #define MF_VSRS_CAMERA_ARRAY_H_
3 
4 #include "../common.h"
5 #include "../geometry/depth_projection_parameters.h"
6 #include "../camera/projection_camera.h"
7 #include "../ndarray/ndcoord.h"
8 #include <string>
9 #include <map>
10 #include <cstdint>
11 
12 namespace mf {
13 
15 
19 private:
20  std::map<std::string, projection_camera> cameras_;
21  bool fourth_extrinsic_row_ = false;
22 
23  projection_camera read_camera_(std::istream& str, const depth_projection_parameters&, const ndsize<2>&);
24 
25 public:
26  vsrs_camera_array(const std::string& filename, const depth_projection_parameters&, const ndsize<2>&, bool fourth_extrinsic_row = false);
27 
28  bool has(const std::string&) const;
29  const projection_camera& operator[](const std::string&) const;
30 };
31 
32 // TODO automatic fourth_extrinsic_row_
33 // TODO no depth_projection_parameters here
34 
35 }
36 
37 #endif
Parameters of Z to depth projection.
Definition: depth_projection_parameters.h:12
bool has(const std::string &) const
Definition: vsrs_camera_array.cc:60
vsrs_camera_array(const std::string &filename, const depth_projection_parameters &, const ndsize< 2 > &, bool fourth_extrinsic_row=false)
Definition: vsrs_camera_array.cc:40
Vector of n-dimensional coordinates.
Definition: ndcoord.h:18
Reader of camera array format used by VSRS.
Definition: vsrs_camera_array.h:18
Pin-hole camera with projection to a planar image space.
Definition: projection_camera.h:13
const projection_camera & operator[](const std::string &) const
Definition: vsrs_camera_array.cc:65