Open3D (C++ API)  0.13.0
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Data Structures | Namespaces | Macros | Functions
TSDFVoxel.h File Reference

(c3f9de2 (Tue Jun 1 15:34:27 2021 -0700))

#include <atomic>
#include "open3d/core/Dispatch.h"
#include "open3d/t/geometry/kernel/GeometryIndexer.h"
#include "open3d/t/geometry/kernel/GeometryMacros.h"

Go to the source code of this file.

Data Structures

struct  open3d::t::geometry::kernel::tsdf::Voxel32f
 
struct  open3d::t::geometry::kernel::tsdf::ColoredVoxel16i
 
struct  open3d::t::geometry::kernel::tsdf::ColoredVoxel32f
 

Namespaces

 open3d
 
 open3d::t
 
 open3d::t::geometry
 
 open3d::t::geometry::kernel
 
 open3d::t::geometry::kernel::tsdf
 

Macros

#define DISPATCH_BYTESIZE_TO_VOXEL(BYTESIZE, ...)
 

Functions

template<typename voxel_t >
OPEN3D_DEVICE voxel_t * open3d::t::geometry::kernel::tsdf::DeviceGetVoxelAt (int xo, int yo, int zo, int curr_block_idx, int resolution, const NDArrayIndexer &nb_block_masks_indexer, const NDArrayIndexer &nb_block_indices_indexer, const NDArrayIndexer &blocks_indexer)
 
template<typename voxel_t >
OPEN3D_DEVICE void open3d::t::geometry::kernel::tsdf::DeviceGetNormalAt (int xo, int yo, int zo, int curr_block_idx, float *n, int resolution, float voxel_size, const NDArrayIndexer &nb_block_masks_indexer, const NDArrayIndexer &nb_block_indices_indexer, const NDArrayIndexer &blocks_indexer)
 

Macro Definition Documentation

◆ DISPATCH_BYTESIZE_TO_VOXEL

#define DISPATCH_BYTESIZE_TO_VOXEL (   BYTESIZE,
  ... 
)
Value:
[&] { \
if (BYTESIZE == sizeof(ColoredVoxel32f)) { \
using voxel_t = ColoredVoxel32f; \
return __VA_ARGS__(); \
} else if (BYTESIZE == sizeof(ColoredVoxel16i)) { \
using voxel_t = ColoredVoxel16i; \
return __VA_ARGS__(); \
} else if (BYTESIZE == sizeof(Voxel32f)) { \
using voxel_t = Voxel32f; \
return __VA_ARGS__(); \
} else { \
utility::LogError("Unsupported voxel bytesize"); \
} \
}()
#define LogError(...)
Definition: Console.h:79