licornea_tools
view_homography.h
Go to the documentation of this file.
1 #ifndef LICORNEA_VIEW_HOMOGRAPHY_H_
2 #define LICORNEA_VIEW_HOMOGRAPHY_H_
3 
4 #include "common.h"
5 #include "dataset.h"
6 #include "json.h"
7 #include "args.h"
8 #include "border.h"
9 #include <map>
10 
11 namespace tlz {
12 
15  real err = NAN;
16 };
17 using view_homographies = std::map<view_index, view_homography>;
18 
21 
24 
25 bool is_single_view_homography(const json&);
26 
28 
29 std::vector<vec2> quadrilateral(const view_homography&, real width, real height);
30 
31 border maximal_border(const view_homography&, real width, real height);
32 border maximal_border(const view_homographies&, real width, real height);
33 
34 
37 
38 
39 }
40 
41 #endif
view_homography decode_view_homography(const json &j_hom)
std::vector< vec2 > quadrilateral(const view_homography &hom, real width, real height)
view_homographies homographies_arg()
bool is_single_view_homography(const json &j)
std::map< view_index, view_homography > view_homographies
json encode_view_homography(const view_homography &hom)
border maximal_border(const view_homography &hom, real width, real height)
cv::Matx< real, 3, 3 > mat33
Definition: common.h:26
double real
Definition: common.h:16
view_homography homography_arg()
real view_homographies_error(const view_homographies &homs)
json encode_view_homographies(const view_homographies &homs)
view_homographies decode_view_homographies(const json &j_homs)
nlohmann::json json
Definition: json.h:11