MVE - Multi-View Environment mve-devel
|
Multi-View Environment library. More...
Namespaces | |
namespace | geom |
Geometric tools, loading and processing functions. | |
namespace | image |
Image tools, loading and processing functions. | |
Classes | |
struct | AdditionalCameraInfo |
Per-camera NVM specific information. More... | |
class | Bundle |
A simple data structure to represent bundle files. More... | |
struct | CameraInfo |
Per-view camera information with various helper functions. More... | |
class | Image |
Multi-channel image class of arbitrary but homogenous data type. More... | |
class | ImageBase |
Base class for images without type information. More... | |
class | MeshBase |
Base class for meshes. More... | |
class | MeshInfo |
class | Scene |
Scene representation for the MVE. More... | |
class | TriangleMesh |
Triangle mesh representation. More... | |
class | TypedImageBase |
Base class for images of arbitrary type. More... | |
class | View |
File system representation of a MVE view. More... | |
class | Volume |
A volume with regular grid layout. More... | |
class | VolumeMCAccessor |
class | VolumeMTAccessor |
Typedefs | |
typedef Image< uint8_t > | ByteImage |
typedef uint32_t | camera_t |
typedef Image< char > | CharImage |
typedef Image< double > | DoubleImage |
typedef Image< float > | FloatImage |
typedef Volume< float > | FloatVolume |
typedef uint64_t | image_pair_t |
typedef uint32_t | image_t |
typedef Image< int > | IntImage |
typedef uint32_t | point2D_t |
typedef uint64_t | point3D_t |
typedef Image< uint16_t > | RawImage |
Enumerations | |
enum | ImageType { IMAGE_TYPE_UNKNOWN , IMAGE_TYPE_UINT8 , IMAGE_TYPE_UINT16 , IMAGE_TYPE_UINT32 , IMAGE_TYPE_UINT64 , IMAGE_TYPE_SINT8 , IMAGE_TYPE_SINT16 , IMAGE_TYPE_SINT32 , IMAGE_TYPE_SINT64 , IMAGE_TYPE_FLOAT , IMAGE_TYPE_DOUBLE } |
Identifiers for image types. More... | |
Functions | |
void | check_stream (std::ifstream &in, std::string const &filename) |
void | consume_comment_lines (std::ifstream &in) |
void | create_camera_info_from_params (CameraInfo &camera_info, std::string const &model, std::vector< float > const ¶ms, uint32_t width, uint32_t height) |
void | define_camera_models () |
void | determine_depth_map_path (std::string const &depth_path, std::string &image_name, std::string *depth_map_name) |
void | initialize_bundle_cam (CameraInfo &model, math::Vec4d &quat, math::Vec3d &trans, CameraInfo *bundle_cam) |
void | initialize_cam_info (CameraInfo &model, std::string const &image_path, std::string &image_name, std::string const &depth_path, std::string &depth_map_name, AdditionalCameraInfo *colmap_cam_info) |
Bundle::Ptr | load_bundler_bundle (std::string const &filename) |
Loads a Bundler bundle file. | |
Bundle::Ptr | load_bundler_ps_intern (std::string const &filename, BundleFormat format) |
Bundle::Ptr | load_colmap_bundle (std::string const &workspace_path, std::vector< AdditionalCameraInfo > *camera_info) |
void | load_colmap_cameras_bin (std::string const &cameras_filename, std::map< uint32_t, CameraInfo > &camera_colmap_id_to_info) |
void | load_colmap_cameras_txt (std::string const &cameras_filename, std::map< uint32_t, CameraInfo > &camera_colmap_id_to_info) |
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 | load_colmap_images_bin (std::string const &images_filename, std::string const &image_path, std::string const &depth_path, std::map< uint32_t, CameraInfo > &camera_colmap_id_to_model, Bundle::Ptr &bundle, std::map< int, std::vector< Bundle::Feature2D > > *view_id_to_features_2d, std::vector< AdditionalCameraInfo > *camera_info) |
void | load_colmap_images_txt (std::string const &images_filename, std::string const &image_path, std::string const &depth_path, std::map< uint32_t, CameraInfo > &camera_colmap_id_to_model, Bundle::Ptr &bundle, std::map< int, std::vector< Bundle::Feature2D > > *view_id_to_features_2d, std::vector< AdditionalCameraInfo > *camera_info) |
void | load_colmap_points_3D_bin (std::string const &points3D_filename, std::map< int, std::vector< Bundle::Feature2D > > &view_id_to_features_2d, Bundle::Ptr &bundle) |
void | load_colmap_points_3D_txt (std::string const &points3D_filename, std::map< int, std::vector< Bundle::Feature2D > > &view_id_to_features_2d, Bundle::Ptr &bundle) |
Bundle::Ptr | load_mve_bundle (std::string const &filename) |
TODO: For now refers to load_photosynther_bundle(). | |
Bundle::Ptr | load_nvm_bundle (std::string const &filename, std::vector< AdditionalCameraInfo > *camera_info=nullptr) |
Loads an NVM bundle file while providing NVM specific information. | |
Bundle::Ptr | load_photosynther_bundle (std::string const &filename) |
Loads a Photosynther bundle file. | |
mve::FloatImage::Ptr | parse_colmap_depth_map (const std::string &path) |
void | read_colmap_cameras_bin_params (std::vector< float > ¶ms, std::string const &model, std::ifstream &in_cameras) |
void | read_image_name (std::istream *in_images, std::string *image_name) |
void | save_mve_bundle (Bundle::ConstPtr bundle, std::string const &filename) |
TODO: For now refers to save_photosynther_bundle(). | |
void | save_photosynther_bundle (Bundle::ConstPtr bundle, std::string const &filename) |
Writes a Photosynther bundle file. | |
Variables | |
std::map< camera_t, std::string > | camera_model_code_to_name |
Multi-View Environment library.
typedef Image<uint8_t> mve::ByteImage |
typedef uint32_t mve::camera_t |
Definition at line 492 of file bundle_io.cc.
typedef Image<char> mve::CharImage |
typedef Image<double> mve::DoubleImage |
typedef Image<float> mve::FloatImage |
typedef Volume<float> mve::FloatVolume |
typedef uint64_t mve::image_pair_t |
Definition at line 494 of file bundle_io.cc.
typedef uint32_t mve::image_t |
Definition at line 493 of file bundle_io.cc.
typedef Image<int> mve::IntImage |
typedef uint32_t mve::point2D_t |
Definition at line 495 of file bundle_io.cc.
typedef uint64_t mve::point3D_t |
Definition at line 496 of file bundle_io.cc.
typedef Image<uint16_t> mve::RawImage |
enum mve::ImageType |
Identifiers for image types.
WARNING: Do not change ordering or insert new types. These numbers are stored in files and changing them will break compatibility.
Definition at line 27 of file image_base.h.
void mve::check_stream | ( | std::ifstream & | in, |
std::string const & | filename | ||
) |
Definition at line 516 of file bundle_io.cc.
void mve::consume_comment_lines | ( | std::ifstream & | in | ) |
Definition at line 523 of file bundle_io.cc.
void mve::create_camera_info_from_params | ( | CameraInfo & | camera_info, |
std::string const & | model, | ||
std::vector< float > const & | params, | ||
uint32_t | width, | ||
uint32_t | height | ||
) |
Definition at line 533 of file bundle_io.cc.
void mve::define_camera_models | ( | ) |
Definition at line 501 of file bundle_io.cc.
void mve::determine_depth_map_path | ( | std::string const & | depth_path, |
std::string & | image_name, | ||
std::string * | depth_map_name | ||
) |
Definition at line 645 of file bundle_io.cc.
void mve::initialize_bundle_cam | ( | CameraInfo & | model, |
math::Vec4d & | quat, | ||
math::Vec3d & | trans, | ||
CameraInfo * | bundle_cam | ||
) |
Definition at line 609 of file bundle_io.cc.
void mve::initialize_cam_info | ( | CameraInfo & | model, |
std::string const & | image_path, | ||
std::string & | image_name, | ||
std::string const & | depth_path, | ||
std::string & | depth_map_name, | ||
AdditionalCameraInfo * | colmap_cam_info | ||
) |
Definition at line 626 of file bundle_io.cc.
Bundle::Ptr mve::load_bundler_bundle | ( | std::string const & | filename | ) |
Loads a Bundler bundle file.
The parser does not provide Bundler specific information.
This function provides a bundle where the 2D floating point keypoint positions are given in bundlers image-centered coordinate system.
Definition at line 412 of file bundle_io.cc.
Bundle::Ptr mve::load_bundler_ps_intern | ( | std::string const & | filename, |
BundleFormat | format | ||
) |
Definition at line 276 of file bundle_io.cc.
Bundle::Ptr mve::load_colmap_bundle | ( | std::string const & | workspace_path, |
std::vector< AdditionalCameraInfo > * | camera_info | ||
) |
Definition at line 1021 of file bundle_io.cc.
void mve::load_colmap_cameras_bin | ( | std::string const & | cameras_filename, |
std::map< uint32_t, CameraInfo > & | camera_colmap_id_to_info | ||
) |
Definition at line 822 of file bundle_io.cc.
void mve::load_colmap_cameras_txt | ( | std::string const & | cameras_filename, |
std::map< uint32_t, CameraInfo > & | camera_colmap_id_to_info | ||
) |
Definition at line 578 of file bundle_io.cc.
mve::FloatImage::Ptr mve::load_colmap_depth_map | ( | int | scale, |
mve::CameraInfo & | mve_cam, | ||
int | original_width, | ||
int | original_height, | ||
mve::AdditionalCameraInfo const & | cam_info | ||
) |
Definition at line 1142 of file bundle_io.cc.
void mve::load_colmap_images_bin | ( | std::string const & | images_filename, |
std::string const & | image_path, | ||
std::string const & | depth_path, | ||
std::map< uint32_t, CameraInfo > & | camera_colmap_id_to_model, | ||
Bundle::Ptr & | bundle, | ||
std::map< int, std::vector< Bundle::Feature2D > > * | view_id_to_features_2d, | ||
std::vector< AdditionalCameraInfo > * | camera_info | ||
) |
Definition at line 866 of file bundle_io.cc.
void mve::load_colmap_images_txt | ( | std::string const & | images_filename, |
std::string const & | image_path, | ||
std::string const & | depth_path, | ||
std::map< uint32_t, CameraInfo > & | camera_colmap_id_to_model, | ||
Bundle::Ptr & | bundle, | ||
std::map< int, std::vector< Bundle::Feature2D > > * | view_id_to_features_2d, | ||
std::vector< AdditionalCameraInfo > * | camera_info | ||
) |
Definition at line 662 of file bundle_io.cc.
void mve::load_colmap_points_3D_bin | ( | std::string const & | points3D_filename, |
std::map< int, std::vector< Bundle::Feature2D > > & | view_id_to_features_2d, | ||
Bundle::Ptr & | bundle | ||
) |
Definition at line 945 of file bundle_io.cc.
void mve::load_colmap_points_3D_txt | ( | std::string const & | points3D_filename, |
std::map< int, std::vector< Bundle::Feature2D > > & | view_id_to_features_2d, | ||
Bundle::Ptr & | bundle | ||
) |
Definition at line 732 of file bundle_io.cc.
Bundle::Ptr mve::load_mve_bundle | ( | std::string const & | filename | ) |
TODO: For now refers to load_photosynther_bundle().
Definition at line 34 of file bundle_io.cc.
Bundle::Ptr mve::load_nvm_bundle | ( | std::string const & | filename, |
std::vector< AdditionalCameraInfo > * | camera_info = nullptr |
||
) |
Loads an NVM bundle file while providing NVM specific information.
Docs: http://homes.cs.washington.edu/~ccwu/vsfm/doc.html#nvm
This function provides a bundle with cameras where the focal length is in VisualSFM conventions, NOT MVE conventions. To convert to focal length to MVE conventions, it must be divided by the maximum image dimension.
Definition at line 73 of file bundle_io.cc.
Bundle::Ptr mve::load_photosynther_bundle | ( | std::string const & | filename | ) |
Loads a Photosynther bundle file.
The parser does not provide Photosynther specific information.
Definition at line 420 of file bundle_io.cc.
mve::FloatImage::Ptr mve::parse_colmap_depth_map | ( | const std::string & | path | ) |
Definition at line 1104 of file bundle_io.cc.
void mve::read_colmap_cameras_bin_params | ( | std::vector< float > & | params, |
std::string const & | model, | ||
std::ifstream & | in_cameras | ||
) |
Definition at line 807 of file bundle_io.cc.
void mve::read_image_name | ( | std::istream * | in_images, |
std::string * | image_name | ||
) |
Definition at line 852 of file bundle_io.cc.
void mve::save_mve_bundle | ( | Bundle::ConstPtr | bundle, |
std::string const & | filename | ||
) |
TODO: For now refers to save_photosynther_bundle().
Definition at line 40 of file bundle_io.cc.
void mve::save_photosynther_bundle | ( | Bundle::ConstPtr | bundle, |
std::string const & | filename | ||
) |
Writes a Photosynther bundle file.
Definition at line 426 of file bundle_io.cc.
std::map<camera_t,std::string> mve::camera_model_code_to_name |
Definition at line 498 of file bundle_io.cc.