MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Namespaces | Functions
mesh_io_ply.cc File Reference
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <cstring>
#include <cerrno>
#include "util/exception.h"
#include "util/tokenizer.h"
#include "math/vector.h"
#include "math/matrix.h"
#include "mve/depthmap.h"
#include "mve/mesh_io_ply.h"
Include dependency graph for mesh_io_ply.cc:

Go to the source code of this file.

Namespaces

namespace  mve
 Multi-View Environment library.
 
namespace  mve::geom
 Geometric tools, loading and processing functions.
 

Functions

FloatImage::Ptr mve::geom::load_ply_depthmap (std::string const &filename)
 Loads a depth map from a PLY file.
 
TriangleMesh::Ptr mve::geom::load_ply_mesh (std::string const &filename)
 Loads a triangle mesh from a PLY model file.
 
void mve::geom::load_xf_file (std::string const &filename, float *ctw)
 Load XF file, typically with camera to world transformation.
 
void mve::geom::ply_color_convert (float const *src, unsigned char *dest, int num=3)
 
template<typename T >
mve::geom::ply_read_value (std::istream &input, PLYFormat format)
 Reads a value from the input stream given the PLY format.
 
template<>
char mve::geom::ply_read_value< char > (std::istream &input, PLYFormat format)
 
template double mve::geom::ply_read_value< double > (std::istream &input, PLYFormat format)
 
template float mve::geom::ply_read_value< float > (std::istream &input, PLYFormat format)
 
template int mve::geom::ply_read_value< int > (std::istream &input, PLYFormat format)
 
template<>
unsigned char mve::geom::ply_read_value< unsigned char > (std::istream &input, PLYFormat format)
 
template unsigned int mve::geom::ply_read_value< unsigned int > (std::istream &input, PLYFormat format)
 
void mve::geom::save_ply_mesh (TriangleMesh::ConstPtr mesh, std::string const &filename, SavePLYOptions const &options=SavePLYOptions())
 Stores a PLY file from a triangle mesh.
 
void mve::geom::save_ply_view (std::string const &filename, CameraInfo const &camera, FloatImage::ConstPtr depth_map, FloatImage::ConstPtr confidence_map=FloatImage::ConstPtr(nullptr), ByteImage::ConstPtr color_image=ByteImage::ConstPtr(nullptr))
 Stores a scanalize-compatible PLY file from a depth map.
 
void mve::geom::save_ply_view (View::Ptr view, std::string const &filename)
 Stores a scanalize-compatible PLY file from a view.
 
void mve::geom::save_ply_view (View::Ptr view, std::string const &filename, std::string const &depthmap, std::string const &confidence, std::string const &color_image)
 Stores a scanalyze-compatible PLY file from a view by specifying the names of the embeddings for depthmap, confidence map and color image.
 
void mve::geom::save_xf_file (std::string const &filename, CameraInfo const &camera)
 Stores a scanalyze compatible XF file with camera transformation from camera to world coordinates.
 
void mve::geom::save_xf_file (std::string const &filename, float const *ctw)
 Stores a scanalyze compatible XF file with a given camera to world matrix (16 float entries).