Open3D (C++ API)  0.17.0
Macros | Functions
VoxelizeOps.cpp File Reference

(9238339 (Tue Mar 14 18:49:09 2023 -0700))

#include <vector>
#include "open3d/ml/pytorch/TorchHelper.h"
#include "open3d/ml/pytorch/misc/VoxelizeOpKernel.h"
#include "torch/script.h"

Macros

#define CALL(point_t, fn)
 

Functions

std::tuple< torch::Tensor, torch::Tensor, torch::Tensor, torch::Tensor > Voxelize (torch::Tensor points, torch::Tensor row_splits, torch::Tensor voxel_size, torch::Tensor points_range_min, torch::Tensor points_range_max, const int64_t max_points_per_voxel, const int64_t max_voxels)
 

Macro Definition Documentation

◆ CALL

#define CALL (   point_t,
  fn 
)
Value:
if (CompareTorchDtype<point_t>(points_dtype)) { \
fn<point_t>(points, row_splits, voxel_size, points_range_min, \
points_range_max, max_points_per_voxel, max_voxels, \
voxel_coords, voxel_point_indices, voxel_point_row_splits, \
voxel_batch_splits); \
return std::make_tuple(voxel_coords, voxel_point_indices, \
voxel_point_row_splits, voxel_batch_splits); \
}
int points
Definition: FilePCD.cpp:54

Function Documentation

◆ Voxelize()

std::tuple<torch::Tensor, torch::Tensor, torch::Tensor, torch::Tensor> Voxelize ( torch::Tensor  points,
torch::Tensor  row_splits,
torch::Tensor  voxel_size,
torch::Tensor  points_range_min,
torch::Tensor  points_range_max,
const int64_t  max_points_per_voxel,
const int64_t  max_voxels 
)