licornea_tools
straight_depths.h
Go to the documentation of this file.
1 #ifndef LICORNEA_STRAIGHT_DEPTHS_H_
2 #define LICORNEA_STRAIGHT_DEPTHS_H_
3 
4 #include "../../../lib/common.h"
5 #include "../../../lib/json.h"
6 #include "../../../lib/args.h"
7 
8 namespace tlz {
9 
13 
14  straight_depth(real d = NAN, real conf = 1.0) : depth(d), confidence(conf) { }
15  operator real () const { return depth; }
16 };
17 
18 using straight_depths = std::map<std::string, straight_depth>;
19 
22 
24 
25 }
26 
27 #endif
json encode_straight_depths(const straight_depths &depths)
straight_depths decode_straight_depths(const json &j_depths)
straight_depth(real d=NAN, real conf=1.0)
std::map< std::string, straight_depth > straight_depths
double real
Definition: common.h:16
straight_depths straight_depths_arg()
nlohmann::json json
Definition: json.h:11