MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
mesh_io_ply.h File Reference
#include <istream>
#include <string>
#include "util/system.h"
#include "mve/defines.h"
#include "mve/image.h"
#include "mve/camera.h"
#include "mve/view.h"
#include "mve/mesh.h"
Include dependency graph for mesh_io_ply.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mve::geom::SavePLYOptions
 Options struct for saving PLY files. More...
 

Namespaces

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

Enumerations

enum  mve::geom::PLYFaceProperty { mve::geom::PLY_F_VERTEX_INDICES , mve::geom::PLY_F_IGNORE_UINT32 , mve::geom::PLY_F_IGNORE_UINT8 , mve::geom::PLY_F_IGNORE_FLOAT }
 PLY face element properties. More...
 
enum  mve::geom::PLYFormat { mve::geom::PLY_ASCII , mve::geom::PLY_BINARY_LE , mve::geom::PLY_BINARY_BE , mve::geom::PLY_UNKNOWN }
 PLY data encoding formats. More...
 
enum  mve::geom::PLYVertexProperty {
  mve::geom::PLY_V_FLOAT_X , mve::geom::PLY_V_FLOAT_Y , mve::geom::PLY_V_FLOAT_Z , mve::geom::PLY_V_DOUBLE_X ,
  mve::geom::PLY_V_DOUBLE_Y , mve::geom::PLY_V_DOUBLE_Z , mve::geom::PLY_V_FLOAT_NX , mve::geom::PLY_V_FLOAT_NY ,
  mve::geom::PLY_V_FLOAT_NZ , mve::geom::PLY_V_UINT8_R , mve::geom::PLY_V_UINT8_G , mve::geom::PLY_V_UINT8_B ,
  mve::geom::PLY_V_FLOAT_R , mve::geom::PLY_V_FLOAT_G , mve::geom::PLY_V_FLOAT_B , mve::geom::PLY_V_FLOAT_U ,
  mve::geom::PLY_V_FLOAT_V , mve::geom::PLY_V_FLOAT_CONF , mve::geom::PLY_V_FLOAT_VALUE , mve::geom::PLY_V_IGNORE_FLOAT ,
  mve::geom::PLY_V_IGNORE_DOUBLE , mve::geom::PLY_V_IGNORE_UINT32 , mve::geom::PLY_V_IGNORE_UINT8
}
 PLY vertex element properties. More...
 

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.
 
template<typename T >
mve::geom::ply_read_value (std::istream &input, PLYFormat format)
 Reads a value from the input stream given the PLY 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).