![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <GeometryIndexer.h>
Public Member Functions | |
| TArrayIndexer () | |
| TArrayIndexer (const core::Tensor &ndarray, index_t active_dims) | |
| TArrayIndexer (const core::SizeVector &shape) | |
| Only used for simple shapes. More... | |
| CLOUDVIEWER_HOST_DEVICE index_t | ElementByteSize () |
| CLOUDVIEWER_HOST_DEVICE index_t | NumElements () |
| CLOUDVIEWER_HOST_DEVICE void | CoordToWorkload (index_t x_in, index_t y_in, index_t *workload) const |
| 2D coordinate => workload More... | |
| CLOUDVIEWER_HOST_DEVICE void | CoordToWorkload (index_t x_in, index_t y_in, index_t z_in, index_t *workload) const |
| 3D coordinate => workload More... | |
| CLOUDVIEWER_HOST_DEVICE void | CoordToWorkload (index_t x_in, index_t y_in, index_t z_in, index_t t_in, index_t *workload) const |
| 4D coordinate => workload More... | |
| CLOUDVIEWER_HOST_DEVICE void | WorkloadToCoord (index_t workload, index_t *x_out, index_t *y_out) const |
| Workload => 2D coordinate. More... | |
| CLOUDVIEWER_HOST_DEVICE void | WorkloadToCoord (index_t workload, index_t *x_out, index_t *y_out, index_t *z_out) const |
| Workload => 3D coordinate. More... | |
| CLOUDVIEWER_HOST_DEVICE void | WorkloadToCoord (index_t workload, index_t *x_out, index_t *y_out, index_t *z_out, index_t *t_out) const |
| Workload => 4D coordinate. More... | |
| CLOUDVIEWER_HOST_DEVICE bool | InBoundary (float x, float y) const |
| CLOUDVIEWER_HOST_DEVICE bool | InBoundary (float x, float y, float z) const |
| CLOUDVIEWER_HOST_DEVICE bool | InBoundary (float x, float y, float z, float t) const |
| CLOUDVIEWER_HOST_DEVICE index_t | GetShape (int i) const |
| CLOUDVIEWER_HOST_DEVICE void * | GetDataPtr () const |
| template<typename T > | |
| CLOUDVIEWER_HOST_DEVICE T * | GetDataPtr (index_t x) const |
| template<typename T > | |
| CLOUDVIEWER_HOST_DEVICE T * | GetDataPtr (index_t x, index_t y) const |
| template<typename T > | |
| CLOUDVIEWER_HOST_DEVICE T * | GetDataPtr (index_t x, index_t y, index_t z) const |
| template<typename T > | |
| CLOUDVIEWER_HOST_DEVICE T * | GetDataPtr (index_t x, index_t y, index_t z, index_t t) const |
Definition at line 162 of file GeometryIndexer.h.
|
inline |
Definition at line 164 of file GeometryIndexer.h.
References cloudViewer::t::geometry::kernel::MAX_RESOLUTION_DIMS.
|
inline |
Definition at line 170 of file GeometryIndexer.h.
References cloudViewer::core::Dtype::ByteSize(), cloudViewer::core::Tensor::GetDataPtr(), cloudViewer::core::Tensor::GetDtype(), cloudViewer::core::Tensor::GetShape(), cloudViewer::core::Tensor::IsContiguous(), LogError, cloudViewer::t::geometry::kernel::MAX_RESOLUTION_DIMS, and cloudViewer::core::Tensor::NumDims().
|
inline |
Only used for simple shapes.
Definition at line 204 of file GeometryIndexer.h.
References LogError, cloudViewer::t::geometry::kernel::MAX_RESOLUTION_DIMS, and cloudViewer::core::SmallVectorBase< Size_T >::size().
|
inline |
2D coordinate => workload
Definition at line 240 of file GeometryIndexer.h.
Referenced by cloudViewer::t::geometry::kernel::TArrayIndexer< index_t >::GetDataPtr().
|
inline |
3D coordinate => workload
Definition at line 246 of file GeometryIndexer.h.
|
inline |
4D coordinate => workload
Definition at line 252 of file GeometryIndexer.h.
|
inline |
Definition at line 227 of file GeometryIndexer.h.
|
inline |
Definition at line 318 of file GeometryIndexer.h.
Referenced by cloudViewer::t::geometry::kernel::image::CreateNormalMapCPU(), cloudViewer::t::geometry::kernel::image::CreateVertexMapCPU(), cloudViewer::t::geometry::kernel::voxel_grid::DeviceGetLinearIdx(), cloudViewer::t::geometry::kernel::voxel_grid::EstimateRangeCPU(), cloudViewer::t::geometry::kernel::voxel_grid::ExtractPointCloudCPU(), cloudViewer::t::geometry::kernel::voxel_grid::ExtractTriangleMeshCPU(), cloudViewer::t::geometry::kernel::voxel_grid::IntegrateCPU(), cloudViewer::t::geometry::kernel::pointcloud::ProjectCPU(), cloudViewer::t::geometry::kernel::image::PyrDownDepthCPU(), cloudViewer::t::geometry::kernel::voxel_grid::RayCastCPU(), and cloudViewer::t::io::DepthNoiseSimulator::Simulate().
|
inline |
Definition at line 321 of file GeometryIndexer.h.
|
inline |
Definition at line 327 of file GeometryIndexer.h.
References cloudViewer::t::geometry::kernel::TArrayIndexer< index_t >::CoordToWorkload().
|
inline |
Definition at line 335 of file GeometryIndexer.h.
References cloudViewer::t::geometry::kernel::TArrayIndexer< index_t >::CoordToWorkload().
|
inline |
Definition at line 345 of file GeometryIndexer.h.
References cloudViewer::t::geometry::kernel::TArrayIndexer< index_t >::CoordToWorkload().
|
inline |
Definition at line 314 of file GeometryIndexer.h.
Referenced by cloudViewer::t::geometry::kernel::image::CreateNormalMapCPU(), cloudViewer::t::geometry::kernel::voxel_grid::DepthTouchCPU(), cloudViewer::t::geometry::kernel::image::PyrDownDepthCPU(), and cloudViewer::t::geometry::kernel::pointcloud::UnprojectCPU().
|
inline |
Definition at line 295 of file GeometryIndexer.h.
Referenced by cloudViewer::t::geometry::kernel::voxel_grid::IntegrateCPU(), and cloudViewer::t::geometry::kernel::pointcloud::ProjectCPU().
|
inline |
Definition at line 299 of file GeometryIndexer.h.
|
inline |
Definition at line 305 of file GeometryIndexer.h.
|
inline |
Definition at line 231 of file GeometryIndexer.h.
|
inline |
Workload => 2D coordinate.
Definition at line 263 of file GeometryIndexer.h.
Referenced by cloudViewer::t::io::DepthNoiseSimulator::Simulate().
|
inline |
Workload => 3D coordinate.
Definition at line 271 of file GeometryIndexer.h.
|
inline |
Workload => 4D coordinate.
Definition at line 282 of file GeometryIndexer.h.