SyB3R - Synthetic Benchmark for 3D Reconstruction
WrapperPMVS.h
1 #ifndef WRAPPERPMVS_H
2 #define WRAPPERPMVS_H
3 
4 #include <syb3r/tools/ShellExec.h>
5 
6 #include <boost/optional.hpp>
7 #include <Eigen/Dense>
8 
9 namespace syb3r {
10 
11 namespace data {
12  class Camera;
13 }
14 
15 namespace wrapper {
16 
17 class WrapperPMVS : protected tools::ShellExec
18 {
19  public:
20  std::string executable = "~/software/CMVS-PMVS/program/buildRelease/main/pmvs2";
21 
22  unsigned mipLevel = 1;
23  boost::optional<unsigned> numImages;
24  bool generateOptionsFile = false;
25 
26  bool runPreparedSet(const std::string &basePath, const std::string &optionsFilename, std::vector<Eigen::Vector3f> &pcld, std::vector<Eigen::Vector3f> *colors = nullptr);
27  bool runUnpreparedSet(const std::vector<data::Camera> &calibration, const std::vector<std::string> &images, std::vector<Eigen::Vector3f> &pcld, std::vector<Eigen::Vector3f> *colors = nullptr);
28  protected:
29  virtual void parseLine(const char *line) override;
30 
31 };
32 
33 }
34 }
35 
36 #endif // WRAPPERPMVS_H
Definition: CameraPathEvaluation.cpp:10
Definition: ShellExec.h:9
Definition: WrapperPMVS.h:17