MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
bundle_io.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015, Simon Fuhrmann
3 * TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4 * All rights reserved.
5 *
6 * This software may be modified and distributed under the terms
7 * of the BSD 3-Clause license. See the LICENSE.txt file for details.
8 */
9
10#ifndef MVE_BUNDLE_IO_HEADER
11#define MVE_BUNDLE_IO_HEADER
12
13#include <string>
14
15#include "mve/bundle.h"
16#include "mve/image.h"
17#include "mve/defines.h"
18
20
21/* ------------------- MVE native bundle format ------------------- */
22
24Bundle::Ptr
25load_mve_bundle (std::string const& filename);
26
28void
29save_mve_bundle (Bundle::ConstPtr bundle, std::string const& filename);
30
31/* -------------- Support for NVM files (VisualSFM) --------------- */
32
37{
39 std::string filename;
41 std::string depth_map_name;
44};
45
55load_nvm_bundle (std::string const& filename,
56 std::vector<AdditionalCameraInfo>* camera_info = nullptr);
57
58/* ------------------ Support for Noah's Bundler ----------------- */
59
68load_bundler_bundle (std::string const& filename);
69
70/* ------------------- Support for Photosynther ------------------- */
71
77load_photosynther_bundle (std::string const& filename);
78
82void
84 std::string const& filename);
85
86/* -------------- Support for Colmap --------------- */
87
89load_colmap_bundle (std::string const& workspace_path,
90 std::vector<AdditionalCameraInfo>* camera_info = nullptr);
91
93load_colmap_depth_map (int scale, mve::CameraInfo& mve_cam, int original_width,
94 int original_height,
95 mve::AdditionalCameraInfo const& cam_info);
96
98
99#endif /* MVE_BUNDLE_IO_HEADER */
std::shared_ptr< Bundle > Ptr
Definition bundle.h:59
std::shared_ptr< Bundle const > ConstPtr
Definition bundle.h:60
std::shared_ptr< Image< T > > Ptr
Definition image.h:42
#define MVE_NAMESPACE_BEGIN
Definition defines.h:13
#define MVE_NAMESPACE_END
Definition defines.h:14
void save_mve_bundle(Bundle::ConstPtr bundle, std::string const &filename)
TODO: For now refers to save_photosynther_bundle().
Definition bundle_io.cc:40
Bundle::Ptr load_bundler_bundle(std::string const &filename)
Loads a Bundler bundle file.
Definition bundle_io.cc:412
mve::FloatImage::Ptr load_colmap_depth_map(int scale, mve::CameraInfo &mve_cam, int original_width, int original_height, mve::AdditionalCameraInfo const &cam_info)
void save_photosynther_bundle(Bundle::ConstPtr bundle, std::string const &filename)
Writes a Photosynther bundle file.
Definition bundle_io.cc:426
Bundle::Ptr load_photosynther_bundle(std::string const &filename)
Loads a Photosynther bundle file.
Definition bundle_io.cc:420
Bundle::Ptr load_mve_bundle(std::string const &filename)
TODO: For now refers to load_photosynther_bundle().
Definition bundle_io.cc:34
Bundle::Ptr load_nvm_bundle(std::string const &filename, std::vector< AdditionalCameraInfo > *camera_info)
Loads an NVM bundle file while providing NVM specific information.
Definition bundle_io.cc:73
Bundle::Ptr load_colmap_bundle(std::string const &workspace_path, std::vector< AdditionalCameraInfo > *camera_info)
Per-camera NVM specific information.
Definition bundle_io.h:37
std::string filename
Path the original image file.
Definition bundle_io.h:39
float radial_distortion
The single radial distortion parameter.
Definition bundle_io.h:43
std::string depth_map_name
Path to a pre-computed depth map (optional).
Definition bundle_io.h:41
Per-view camera information with various helper functions.
Definition camera.h:24