Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
pipelines
integration
TSDFVolume.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - Open3D: www.open3d.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.open3d.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#pragma once
9
10
#include "
open3d/camera/PinholeCameraIntrinsic.h
"
11
#include "
open3d/geometry/PointCloud.h
"
12
#include "
open3d/geometry/RGBDImage.h
"
13
#include "
open3d/geometry/TriangleMesh.h
"
14
15
namespace
open3d
{
16
namespace
pipelines
{
17
namespace
integration
{
18
22
enum class
TSDFVolumeColorType
{
24
NoColor
= 0,
26
RGB8
= 1,
28
Gray32
= 2,
29
};
30
42
class
TSDFVolume
{
43
public
:
49
TSDFVolume
(
double
voxel_length,
50
double
sdf_trunc,
51
TSDFVolumeColorType
color_type)
52
:
voxel_length_
(voxel_length),
53
sdf_trunc_
(sdf_trunc),
54
color_type_
(color_type) {}
55
virtual
~TSDFVolume
() {}
56
57
public
:
59
virtual
void
Reset
() = 0;
60
62
virtual
void
Integrate
(
const
geometry::RGBDImage
&image,
63
const
camera::PinholeCameraIntrinsic
&intrinsic,
64
const
Eigen::Matrix4d &extrinsic) = 0;
65
67
virtual
std::shared_ptr<geometry::PointCloud>
ExtractPointCloud
() = 0;
68
71
virtual
std::shared_ptr<geometry::TriangleMesh>
ExtractTriangleMesh
() = 0;
72
73
public
:
75
double
voxel_length_
;
77
double
sdf_trunc_
;
79
TSDFVolumeColorType
color_type_
;
80
};
81
82
}
// namespace integration
83
}
// namespace pipelines
84
}
// namespace open3d
PinholeCameraIntrinsic.h
open3d::camera::PinholeCameraIntrinsic
Contains the pinhole camera intrinsic parameters.
Definition
PinholeCameraIntrinsic.h:32
open3d::geometry::RGBDImage
RGBDImage is for a pair of registered color and depth images,.
Definition
RGBDImage.h:27
open3d::pipelines::integration::TSDFVolume::Reset
virtual void Reset()=0
Function to reset the TSDFVolume.
open3d::pipelines::integration::TSDFVolume::ExtractTriangleMesh
virtual std::shared_ptr< geometry::TriangleMesh > ExtractTriangleMesh()=0
Function to extract a triangle mesh, using the marching cubes algorithm. (https://en....
open3d::pipelines::integration::TSDFVolume::sdf_trunc_
double sdf_trunc_
Truncation value for signed distance function (SDF).
Definition
TSDFVolume.h:77
open3d::pipelines::integration::TSDFVolume::ExtractPointCloud
virtual std::shared_ptr< geometry::PointCloud > ExtractPointCloud()=0
Function to extract a point cloud with normals.
open3d::pipelines::integration::TSDFVolume::~TSDFVolume
virtual ~TSDFVolume()
Definition
TSDFVolume.h:55
open3d::pipelines::integration::TSDFVolume::color_type_
TSDFVolumeColorType color_type_
Color type of the TSDF volume.
Definition
TSDFVolume.h:79
open3d::pipelines::integration::TSDFVolume::Integrate
virtual void Integrate(const geometry::RGBDImage &image, const camera::PinholeCameraIntrinsic &intrinsic, const Eigen::Matrix4d &extrinsic)=0
Function to integrate an RGB-D image into the volume.
open3d::pipelines::integration::TSDFVolume::voxel_length_
double voxel_length_
Length of the voxel in meters.
Definition
TSDFVolume.h:75
open3d::pipelines::integration::TSDFVolume::TSDFVolume
TSDFVolume(double voxel_length, double sdf_trunc, TSDFVolumeColorType color_type)
Default Constructor.
Definition
TSDFVolume.h:49
PointCloud.h
RGBDImage.h
TriangleMesh.h
open3d::pipelines::integration
Definition
ScalableTSDFVolume.cpp:19
open3d::pipelines::integration::TSDFVolumeColorType
TSDFVolumeColorType
Definition
TSDFVolume.h:22
open3d::pipelines::integration::TSDFVolumeColorType::RGB8
@ RGB8
8 bit RGB.
Definition
TSDFVolume.h:26
open3d::pipelines::integration::TSDFVolumeColorType::NoColor
@ NoColor
No color.
Definition
TSDFVolume.h:24
open3d::pipelines::integration::TSDFVolumeColorType::Gray32
@ Gray32
32 bit GrayScale.
Definition
TSDFVolume.h:28
open3d::pipelines
Definition
ColorMapUtils.cpp:19
open3d
Definition
PinholeCameraIntrinsic.cpp:16
Generated by
1.17.0