MeshLib C++ Docs
Loading...
Searching...
No Matches
MRCameraPointsTriangulation.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRMatrix3.h"
5#include "MRExpected.h"
8
9namespace MR
10{
13
14
16{
18 Matrix3f intrinsics;
19
22 float weldPixels = 1;
23
26 VertMap * outSmallestMap = nullptr;
27
30 VertCoords * outProjectedPoints = nullptr;
31};
32
40[[nodiscard]] MRMESH_API Expected<Mesh> triangulateCameraPoints( const VertCoords & points, const CameraPointsTriangulationSettings & settings, const ProgressCallback & cb = {} );
41
44
47
55
73
79MRMESH_API void smoothCameraMeshDepth( const MeshTopology & topology, VertCoords & points, const SmoothCameraMeshDepthSettings & settings = {} );
80
81}
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRMeshTopology.h:30
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:759
AreaStabilizer
how the stabilizer of an inner vertex depends on the area of its neighborhood in the image plane
Definition MRCameraPointsTriangulation.h:50
VertCoords * outProjectedPoints
Definition MRCameraPointsTriangulation.h:30
EdgeWeights edgeWeights
weights of edges in the equations, computed on the mesh projected in the image plane
Definition MRCameraPointsTriangulation.h:62
const VertBitSet * region
vertices where the depth is smoothed, nullptr means all vertices
Definition MRCameraPointsTriangulation.h:59
EdgeWeights
determines the weight of each edge in applications like Laplacian
Definition MREnums.h:44
float innerStabilizer
average stabilizer of inner vertices
Definition MRCameraPointsTriangulation.h:68
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< Mesh > triangulateCameraPoints(const VertCoords &points, const CameraPointsTriangulationSettings &settings, const ProgressCallback &cb={})
float weldPixels
Definition MRCameraPointsTriangulation.h:22
VertMap * outSmallestMap
Definition MRCameraPointsTriangulation.h:26
float bdStabilizer
stabilizer of every boundary vertex of the mesh: the more the value, the bigger attraction of the ver...
Definition MRCameraPointsTriangulation.h:65
void smoothCameraMeshDepth(Mesh &mesh, const SmoothCameraMeshDepthSettings &settings={})
AreaStabilizer innerStabilizerType
distribution of innerStabilizer among inner vertices
Definition MRCameraPointsTriangulation.h:71
Matrix3f intrinsics
camera intrinsic matrix: the image-plane (pixel) position of a point p in camera space is ( K * p )....
Definition MRCameraPointsTriangulation.h:18
@ AreaSq
proportional to the squared neighborhood area (dense regions are smoothed more than sparse ones)
Definition MRCameraPointsTriangulation.h:53
@ Area
proportional to the neighborhood area (dense regions are smoothed the same as sparse ones)
Definition MRCameraPointsTriangulation.h:52
@ Uniform
all inner vertices have the same stabilizer
Definition MRCameraPointsTriangulation.h:51
@ Cotan
edge weight depends on local geometry and uses cotangent values
Definition MREnums.h:49
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRCameraPointsTriangulation.h:16
Definition MRMesh.h:24
Definition MRPointCloud.h:17
Definition MRCameraPointsTriangulation.h:57