45 int64_t grid_count = 1000,
105 return ctr_hashmap_->GetKeyTensor().To(
core::Float32) * grid_size_;
112 std::shared_ptr<core::HashMap>
GetHashMap() {
return ctr_hashmap_; }
113 int64_t
Size() {
return ctr_hashmap_->Size(); }
120 int64_t anchor_idx_ = 0;
126 std::shared_ptr<core::HashMap> ctr_hashmap_;
The Image class stores image with customizable rows, cols, channels, dtype and device.
Definition: Image.h:29
A point cloud contains a list of 3D points.
Definition: PointCloud.h:80
RGBDImage A pair of color and depth images.
Definition: RGBDImage.h:21
Definition: ControlGrid.h:30
int64_t GetAnchorIdx()
Definition: ControlGrid.h:116
static const std::string kGrid8NbIndices
Definition: ControlGrid.h:34
geometry::PointCloud Deform(const geometry::PointCloud &pcd)
Non-rigidly deform a point cloud using the control grid.
Definition: ControlGrid.cpp:241
static const std::string kGrid8NbVertexInterpRatios
8 neighbor grid interpolation ratio for vertex per point.
Definition: ControlGrid.h:36
void Touch(const geometry::PointCloud &pcd)
Allocate control grids in the shared camera space.
Definition: ControlGrid.cpp:46
ControlGrid()=default
Default constructor.
std::shared_ptr< core::HashMap > GetHashMap()
Definition: ControlGrid.h:112
core::Tensor GetInitPositions()
Get control grid original positions directly from tensor keys.
Definition: ControlGrid.h:104
core::Tensor GetCurrPositions()
Definition: ControlGrid.h:110
core::Device GetDevice()
Definition: ControlGrid.h:115
int64_t Size()
Definition: ControlGrid.h:113
static const std::string kGrid8NbNormalInterpRatios
8 neighbor grid interpolation ratio for normal per point.
Definition: ControlGrid.h:38
std::tuple< core::Tensor, core::Tensor, core::Tensor > GetNeighborGridMap()
Definition: ControlGrid.cpp:115
geometry::PointCloud Parameterize(const geometry::PointCloud &pcd)
Definition: ControlGrid.cpp:150
void Compactify()
Definition: ControlGrid.cpp:82
const Dtype Float32
Definition: Dtype.cpp:42
Definition: PinholeCameraIntrinsic.cpp:16