10 #include "pipelines/mvs.h"
15 namespace reconstruction {
20 static const std::unordered_map<std::string, std::string>
23 "Path to either the dense workspace folder or the sparse "
26 "The output path containing target cameras.bin/txt, "
27 "images.bin/txt and points3D.bin/txt."},
29 "Supported input type values are {dense, sparse}."},
31 "Supported stereo input type values are {photometric, "
34 "Supported output type values are {BIN, TXT, PLY}."},
36 "Path to the folder containing the undistorted images."},
38 "Supported workspace format values are {COLMAP, PMVS}."},
39 {
"pmvs_option_name",
"The pmvs option name."},
40 {
"config_path",
"The config path."},
41 {
"bbox_path",
"The bounds file path."}};
44 m.def(
"mesh_delaunay", &MeshDelaunay,
45 py::call_guard<py::gil_scoped_release>(),
46 "Function for the delaunay of mesh",
"input_path"_a,
"output_path"_a,
47 "input_type"_a =
"dense",
48 "delaunay_meshing_options"_a = colmap::mvs::DelaunayMeshingOptions());
52 m.def(
"stereo_patch_match", &StereoPatchMatch,
53 py::call_guard<py::gil_scoped_release>(),
54 "Function for the stereo path-match of mesh",
"workspace_path"_a,
55 "config_path"_a =
"",
"workspace_format"_a =
"COLMAP",
56 "pmvs_option_name"_a =
"option-all",
57 "patch_match_options"_a = colmap::mvs::PatchMatchOptions());
61 m.def(
"poisson_mesh", &MeshPoisson,
62 py::call_guard<py::gil_scoped_release>(),
63 "Function for the poisson of mesh",
"input_path"_a,
"output_path"_a,
64 "poisson_meshing_options"_a = colmap::mvs::PoissonMeshingOptions());
68 m.def(
"stereo_fuse", &StereoFuse, py::call_guard<py::gil_scoped_release>(),
69 "Function for the stereo path-match of mesh",
"workspace_path"_a,
70 "output_path"_a,
"bbox_path"_a =
"",
71 "stereo_input_type"_a =
"geometric",
"output_type"_a =
"PLY",
72 "workspace_format"_a =
"COLMAP",
"pmvs_option_name"_a =
"option-all",
73 "stereo_fusion_options"_a = colmap::mvs::StereoFusionOptions());
79 py::module m_submodule =
80 m.def_submodule(
"mvs",
"Reconstruction multiple views stereo.");
void FunctionDocInject(py::module &pybind_module, const std::string &function_name, const std::unordered_map< std::string, std::string > &map_parameter_body_docs)
static const std::unordered_map< std::string, std::string > map_shared_argument_docstrings
void pybind_multi_views_stereo_methods(py::module &m)
void pybind_multi_views_stereo(py::module &m)
Generic file read and write utility for python interface.