ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Visualization.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <FileSystem.h>
11 
18 
19 namespace cloudViewer {
20 namespace t {
21 namespace pipelines {
22 namespace slac {
23 
33  const t::geometry::PointCloud& tpcd_j,
34  const core::Tensor correspondences,
35  const core::Tensor& T_ij);
36 
38  ControlGrid& ctr_grid,
39  bool show_lines = true);
40 
42  ControlGrid& ctr_grid);
43 
44 void VisualizeGridDeformation(ControlGrid& cgrid);
45 
46 } // namespace slac
47 } // namespace pipelines
48 } // namespace t
49 } // namespace cloudViewer
cloudViewer::t::pipelines::slac::kSourceColor
static const Eigen::Vector3d kSourceColor
Definition: Visualization.cpp:17
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::t::pipelines::slac::ControlGrid::kGrid8NbIndices
static const std::string kGrid8NbIndices
Definition: ControlGrid.h:34
FileSystem.h
cloudViewer::core::Tensor::GetLength
int64_t GetLength() const
Definition: Tensor.h:1125
cloudViewer::core::make_pair
CLOUDVIEWER_HOST_DEVICE Pair< First, Second > make_pair(const First &_first, const Second &_second)
Definition: SlabTraits.h:49
cloudViewer::t::pipelines::slac::VisualizePointCloudDeformation
void VisualizePointCloudDeformation(const geometry::PointCloud &tpcd_param, ControlGrid &ctr_grid)
Definition: Visualization.cpp:139
core::Tensor
ControlGrid.h
cloudViewer::core::Tensor::Slice
Tensor Slice(int64_t dim, int64_t start, int64_t stop, int64_t step=1) const
Definition: Tensor.cpp:857
Registration.h
color
math::float4 color
Definition: LineSetBuffers.cpp:46
cloudViewer::t::pipelines::slac::ControlGrid::GetInitPositions
core::Tensor GetInitPositions()
Get control grid original positions directly from tensor keys.
Definition: ControlGrid.h:104
cloudViewer::t::geometry::PointCloud
A point cloud contains a list of 3D points.
Definition: PointCloud.h:82
cloudViewer::t::geometry::PointCloud::ToLegacy
cloudViewer::geometry::PointCloud ToLegacy() const
Convert to a legacy CloudViewer PointCloud.
Definition: PointCloud.cpp:1099
cloudViewer::t::pipelines::slac::VisualizePointCloudCorrespondences
void VisualizePointCloudCorrespondences(const t::geometry::PointCloud &tpcd_i, const t::geometry::PointCloud &tpcd_j, const core::Tensor correspondences, const core::Tensor &T_ij)
Visualize pairs with correspondences.
Definition: Visualization.cpp:46
cloudViewer::t::pipelines::slac::ControlGrid
Definition: ControlGrid.h:30
cloudViewer::t::geometry::PointCloud::Clone
PointCloud Clone() const
Returns copy of the point cloud on the same device.
Definition: PointCloud.cpp:123
cloudViewer::t::pipelines::slac::ControlGrid::GetCurrPositions
core::Tensor GetCurrPositions()
Definition: ControlGrid.h:110
cloudViewer::t::pipelines::slac::ControlGrid::Size
int64_t Size()
Definition: ControlGrid.h:113
cloudViewer::t::pipelines::slac::VisualizeGridDeformation
void VisualizeGridDeformation(ControlGrid &cgrid)
Definition: Visualization.cpp:187
PoseGraph.h
cloudViewer::core::Device
Definition: Device.h:18
cloudViewer::core::Tensor::IndexGet
Tensor IndexGet(const std::vector< Tensor > &index_tensors) const
Advanced indexing getter. This will always allocate a new Tensor.
Definition: Tensor.cpp:905
cloudViewer::t::pipelines::slac::ControlGrid::kGrid8NbVertexInterpRatios
static const std::string kGrid8NbVertexInterpRatios
8 neighbor grid interpolation ratio for vertex per point.
Definition: ControlGrid.h:36
EigenConverter.h
cloudViewer::geometry::LineSet::CreateFromPointCloudCorrespondences
static std::shared_ptr< LineSet > CreateFromPointCloudCorrespondences(const ccPointCloud &cloud0, const ccPointCloud &cloud1, const std::vector< std::pair< int, int >> &correspondences)
Factory function to create a LineSet from two PointClouds (cloud0, cloud1) and a correspondence set.
Definition: LineSetFactory.cpp:23
LineSet.h
cloudViewer::t::pipelines::slac::Jet
static Eigen::Vector3d Jet(double v, double vmin, double vmax)
Definition: Visualization.cpp:21
cloudViewer::t::pipelines::slac::ControlGrid::GetNeighborGridMap
std::tuple< core::Tensor, core::Tensor, core::Tensor > GetNeighborGridMap()
Definition: ControlGrid.cpp:115
Visualization.h
cloudViewer::t::geometry::PointCloud::GetPointAttr
const TensorMap & GetPointAttr() const
Getter for point_attr_ TensorMap. Used in Pybind.
Definition: PointCloud.h:111
cloudViewer::t::geometry::PointCloud::GetPointPositions
core::Tensor & GetPointPositions()
Get the value of the "positions" attribute. Convenience function.
Definition: PointCloud.h:124
cloudViewer::t::pipelines::slac::VisualizePointCloudEmbedding
void VisualizePointCloudEmbedding(t::geometry::PointCloud &tpcd_param, ControlGrid &ctr_grid, bool show_lines)
Definition: Visualization.cpp:80
cloudViewer::t::pipelines::slac::ControlGrid::Deform
geometry::PointCloud Deform(const geometry::PointCloud &pcd)
Non-rigidly deform a point cloud using the control grid.
Definition: ControlGrid.cpp:241
cloudViewer::t::geometry::PointCloud::Transform
PointCloud & Transform(const core::Tensor &transformation)
Transforms the PointPositions and PointNormals (if exist) of the PointCloud.
Definition: PointCloud.cpp:171
DrawGeometry.h
cloudViewer::t::pipelines::slac::kCorresColor
static const Eigen::Vector3d kCorresColor
Definition: Visualization.cpp:19
cloudViewer::core::Int64
const Dtype Int64
Definition: Dtype.cpp:47
cloudViewer::core::Tensor::To
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
cloudViewer::geometry::PointCloud
::ccPointCloud PointCloud
Definition: PointCloud.h:19
PointCloudIO.h
cloudViewer::visualization::DrawGeometries
bool DrawGeometries(const std::vector< std::shared_ptr< const ccHObject >> &geometry_ptrs, const std::string &window_name, int width, int height, int left, int top, bool point_show_normal, bool mesh_show_wireframe, bool mesh_show_back_face, Eigen::Vector3d *lookat, Eigen::Vector3d *up, Eigen::Vector3d *front, double *zoom)
Function to draw a list of geometry objects.
Definition: DrawGeometry.cpp:32
cloudViewer::t::pipelines::slac::kTargetColor
static const Eigen::Vector3d kTargetColor
Definition: Visualization.cpp:18