MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
depthmap.h File Reference
#include "math/vector.h"
#include "math/matrix.h"
#include "mve/defines.h"
#include "mve/camera.h"
#include "mve/image.h"
#include "mve/mesh.h"
Include dependency graph for depthmap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

FloatImage::Ptr mve::image::depthmap_bilateral_filter (FloatImage::ConstPtr dm, math::Matrix3f const &invproj, float gc_sigma, float pc_fator)
 Filters the given depthmap using a bilateral filter.
 
FloatImage::Ptr mve::image::depthmap_cleanup (FloatImage::ConstPtr dm, int64_t thres)
 Algorithm to clean small confident islands in the depth maps.
 
void mve::image::depthmap_confidence_clean (FloatImage::Ptr dm, FloatImage::ConstPtr cm)
 Removes the backplane according to the confidence map IN-PLACE.
 
template<typename T >
void mve::image::depthmap_convert_conventions (typename Image< T >::Ptr dm, math::Matrix3f const &invproj, bool to_mve)
 Converts between depth map conventions IN-PLACE.
 
void mve::geom::depthmap_mesh_confidences (TriangleMesh::Ptr mesh, int iterations=3)
 Algorithm to assign per-vertex confidence values to vertices of a triangulated depth map.
 
void mve::geom::depthmap_mesh_peeling (TriangleMesh::Ptr mesh, int iterations=1)
 Algorithm that peels away triangles at the mesh bounary of a triangulated depth map.
 
TriangleMesh::Ptr mve::geom::depthmap_triangulate (FloatImage::ConstPtr dm, ByteImage::ConstPtr ci, CameraInfo const &cam, float dd_factor=DD_FACTOR_DEFAULT, mve::Image< unsigned int > *vertex_ids=nullptr)
 A helper function that triangulates the given depth map with optional color image (which generates additional per-vertex colors) and transforms the mesh into the global coordinate system.
 
TriangleMesh::Ptr mve::geom::depthmap_triangulate (FloatImage::ConstPtr dm, ByteImage::ConstPtr ci, math::Matrix3f const &invproj, float dd_factor=DD_FACTOR_DEFAULT, mve::Image< unsigned int > *vertex_ids=nullptr)
 A helper function that triangulates the given depth map with optional color image (which generates additional per-vertex colors) in local image coordinates.
 
TriangleMesh::Ptr mve::geom::depthmap_triangulate (FloatImage::ConstPtr dm, math::Matrix3f const &invproj, float dd_factor=DD_FACTOR_DEFAULT, mve::Image< unsigned int > *vids=nullptr)
 Algorithm to triangulate depth maps.
 
math::Vec3f mve::geom::pixel_3dpos (int64_t x, int64_t y, float depth, math::Matrix3f const &invproj)
 Function that calculates the pixel 3D position in camera coordinates for pixel (x,y) and 'depth' for a depth map with inverse K matrix 'invproj'.
 
float mve::geom::pixel_footprint (int64_t x, int64_t y, float depth, math::Matrix3f const &invproj)
 Function that calculates the pixel footprint (pixel width) in 3D coordinates for pixel (x,y) and 'depth' for a depth map with inverse K matrix 'invproj'.
 
void mve::geom::rangegrid_triangulate (Image< unsigned int > const &grid, TriangleMesh::Ptr mesh)
 Algorithm to triangulate range grids.
 

Variables

const float mve::geom::DD_FACTOR_DEFAULT = 5.0f