 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
13 #include <unordered_map>
19 namespace integration {
21 class UniformTSDFVolume;
48 std::shared_ptr<UniformTSDFVolume>
volume_;
56 int volume_unit_resolution = 16,
57 int depth_sampling_stride = 4);
61 void Reset()
override;
64 const Eigen::Matrix4d &extrinsic)
override;
90 std::shared_ptr<UniformTSDFVolume> OpenVolumeUnit(
93 Eigen::Vector3d GetNormalAt(
const Eigen::Vector3d &p);
95 double GetTSDFAt(
const Eigen::Vector3d &p);
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvPointCloud.cpp:1689
void Integrate(const geometry::RGBDImage &image, const camera::PinholeCameraIntrinsic &intrinsic, const Eigen::Matrix4d &extrinsic) override
Function to integrate an RGB-D image into the volume.
Definition: ScalableTSDFVolume.cpp:38
Eigen::Matrix< Index, 4, 1 > Vector4i
Definition: knncpp.h:31
Base class of the Truncated Signed Distance Function (TSDF) volume.
Definition: TSDFVolume.h:43
normal_z x
Definition: my_point_types.h:165
std::unordered_map< Eigen::Vector3i, VolumeUnit, utility::hash_eigen< Eigen::Vector3i > > volume_units_
Definition: ScalableTSDFVolume.h:81
int depth_sampling_stride_
Definition: ScalableTSDFVolume.h:73
virtual void setLocked(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:117
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
int volume_unit_resolution_
Definition: ScalableTSDFVolume.h:71
Definition: ScalableTSDFVolume.h:41
ScalableTSDFVolume(double voxel_length, double sdf_trunc, TSDFVolumeColorType color_type, int volume_unit_resolution=16, int depth_sampling_stride=4)
Definition: ScalableTSDFVolume.cpp:24
int height_
Height of the image.
Definition: PinholeCameraIntrinsic.h:110
Eigen::Vector3i index_
Definition: ScalableTSDFVolume.h:49
double normals[3]
Definition: TriangleMeshIO.cpp:54
Array of compressed 3D normals (single index)
Definition: ecvAdvancedTypes.h:21
void Reset() override
Function to reset the TSDFVolume.
Definition: ScalableTSDFVolume.cpp:36
VolumeUnit()
Definition: ScalableTSDFVolume.h:45
normal_z y
Definition: my_point_types.h:168
int width_
Width of the image.
Definition: PinholeCameraIntrinsic.h:108
std::shared_ptr< UniformTSDFVolume > volume_
Definition: ScalableTSDFVolume.h:48
double volume_unit_length_
Definition: ScalableTSDFVolume.h:72
TSDFVolumeColorType color_type_
Color type of the TSDF volume.
Definition: TSDFVolume.h:80
Contains the pinhole camera intrinsic parameters.
Definition: PinholeCameraIntrinsic.h:34
void addEigenColor(const Eigen::Vector3d &color)
Definition: ecvPointCloud.cpp:1721
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
Eigen::Matrix< Index, 3, 1 > Vector3i
Definition: knncpp.h:30
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
TSDFVolumeColorType
Definition: TSDFVolume.h:23
~ScalableTSDFVolume() override
Definition: ScalableTSDFVolume.cpp:34
#define LogError(...)
Definition: Logging.h:60
std::shared_ptr< ccMesh > ExtractTriangleMesh() override
Function to extract a triangle mesh, using the marching cubes algorithm. (https://en....
Definition: ScalableTSDFVolume.cpp:218
std::shared_ptr< ccPointCloud > ExtractPointCloud() override
Function to extract a point cloud with normals.
Definition: ScalableTSDFVolume.cpp:106
std::shared_ptr< ccPointCloud > ExtractVoxelPointCloud()
Debug function to extract the voxel data into a point cloud.
Definition: ScalableTSDFVolume.cpp:390
static std::shared_ptr< ccPointCloud > CreateFromDepthImage(const cloudViewer::geometry::Image &depth, const cloudViewer::camera::PinholeCameraIntrinsic &intrinsic, const Eigen::Matrix4d &extrinsic=Eigen::Matrix4d::Identity(), double depth_scale=1000.0, double depth_trunc=1000.0, int stride=1, bool project_valid_depth_only=true)
Factory function to create a pointcloud from a depth image and a camera model.
Definition: PointCloudFactory.cpp:216
static std::shared_ptr< Image > CreateDepthToCameraDistanceMultiplierFloatImage(const camera::PinholeCameraIntrinsic &intrinsic)
Definition: ImageFactory.cpp:17
normal_z z
Definition: my_point_types.h:165
Definition: ScalableTSDFVolume.h:43
RGBDImage is for a pair of registered color and depth images,.
Definition: RGBDImage.h:27
void shrinkToFit()
Removes unused capacity.
Definition: ecvPointCloud.h:357
void addEigenPoint(const Eigen::Vector3d &point)
Definition: PointCloudTpl.h:290
@ Gray32
32 bit GrayScale.
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
double sdf_trunc_
Truncation value for signed distance function (SDF).
Definition: TSDFVolume.h:78
double voxel_length_
Length of the voxel in meters.
Definition: TSDFVolume.h:76