31 #include <unordered_map> 32 #include <unordered_set> 60 TSDFVoxelGrid(std::unordered_map<std::string, core::Dtype> attr_dtype_map =
64 float voxel_size = 3.0 / 512.0,
65 float sdf_trunc = 0.04,
66 int64_t block_resolution = 16,
67 int64_t block_count = 1000,
76 double depth_scale = 1000.0,
77 double depth_max = 3.0);
84 double depth_scale = 1000.0,
85 double depth_max = 3.0);
std::shared_ptr< core::Hashmap > block_hashmap_
Definition: TSDFVoxelGrid.h:125
~TSDFVoxelGrid()
Definition: TSDFVoxelGrid.h:70
TSDFVoxelGrid CUDA(int device_id=0)
Copy TSDFVoxelGrid to CUDA.
Definition: TSDFVoxelGrid.cpp:316
TSDFVoxelGrid CPU()
Copy TSDFVoxelGrid to CPU.
Definition: TSDFVoxelGrid.cpp:309
A TriangleMesh contains vertices and triangles.
Definition: TriangleMesh.h:106
TSDFVoxelGrid(std::unordered_map< std::string, core::Dtype > attr_dtype_map={{"tsdf", core::Dtype::Float32}, {"weight", core::Dtype::UInt16}, {"color", core::Dtype::UInt16}}, float voxel_size=3.0/512.0, float sdf_trunc=0.04, int64_t block_resolution=16, int64_t block_count=1000, const core::Device &device=core::Device("CPU:0"))
Default Constructor.
Definition: TSDFVoxelGrid.cpp:38
core::Device device_
Definition: TSDFVoxelGrid.h:123
std::unordered_map< std::string, core::Dtype > attr_dtype_map_
Definition: TSDFVoxelGrid.h:127
The Image class stores image with customizable rols, cols, channels, dtype and device.
Definition: Image.h:45
math::float4 color
Definition: LineSetBuffers.cpp:64
float sdf_trunc_
Definition: TSDFVoxelGrid.h:118
TSDFVoxelGrid Copy(const core::Device &device)
Copy TSDFVoxelGrid to the target device.
Definition: TSDFVoxelGrid.cpp:300
A pointcloud contains a set of 3D points.
Definition: PointCloud.h:94
std::pair< core::Tensor, core::Tensor > BufferRadiusNeighbors(const core::Tensor &active_addrs)
Definition: TSDFVoxelGrid.cpp:325
Definition: TSDFVoxelGrid.h:57
static const Dtype UInt16
Definition: Dtype.h:47
static const Dtype Float32
Definition: Dtype.h:42
void Integrate(const Image &depth, const core::Tensor &intrinsics, const core::Tensor &extrinsics, double depth_scale=1000.0, double depth_max=3.0)
Depth-only integration.
Definition: TSDFVoxelGrid.cpp:110
PointCloud ExtractSurfacePoints()
Extract point cloud near iso-surfaces.
Definition: TSDFVoxelGrid.cpp:220
int64_t block_resolution_
Definition: TSDFVoxelGrid.h:120
Definition: PinholeCameraIntrinsic.cpp:35
int64_t block_count_
Definition: TSDFVoxelGrid.h:121
TriangleMesh ExtractSurfaceMesh()
Extract mesh near iso-surfaces with Marching Cubes.
Definition: TSDFVoxelGrid.cpp:257
core::Device GetDevice()
Definition: TSDFVoxelGrid.h:102
float voxel_size_
Definition: TSDFVoxelGrid.h:117