Open3D (C++ API)  0.18.0
Public Types | Public Member Functions | Static Public Member Functions
open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR > Struct Template Reference

Implementation for NEAREST_NEIGHBOR. More...

#include <CoordinateTransformation.h>

Public Types

typedef Eigen::Array< T, 1, VECSIZEWeight_t
 
typedef Eigen::Array< int, 1, VECSIZEIdx_t
 

Public Member Functions

void Interpolate (Eigen::Array< T, 1, VECSIZE > &w, Eigen::Array< int, 1, VECSIZE > &idx, const Eigen::Array< T, VECSIZE, 1 > &x, const Eigen::Array< T, VECSIZE, 1 > &y, const Eigen::Array< T, VECSIZE, 1 > &z, const Eigen::Array< int, 3, 1 > &filter_size, int num_channels=1) const
 

Static Public Member Functions

static constexpr int Size ()
 

Detailed Description

template<class T, int VECSIZE>
struct open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >

Implementation for NEAREST_NEIGHBOR.

Member Typedef Documentation

◆ Idx_t

template<class T , int VECSIZE>
typedef Eigen::Array<int, 1, VECSIZE> open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >::Idx_t

◆ Weight_t

template<class T , int VECSIZE>
typedef Eigen::Array<T, 1, VECSIZE> open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >::Weight_t

Member Function Documentation

◆ Interpolate()

template<class T , int VECSIZE>
void open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >::Interpolate ( Eigen::Array< T, 1, VECSIZE > &  w,
Eigen::Array< int, 1, VECSIZE > &  idx,
const Eigen::Array< T, VECSIZE, 1 > &  x,
const Eigen::Array< T, VECSIZE, 1 > &  y,
const Eigen::Array< T, VECSIZE, 1 > &  z,
const Eigen::Array< int, 3, 1 > &  filter_size,
int  num_channels = 1 
) const
inline

Computes interpolation weights and indices

Parameters
wThe interpolation weights with range [0,1].
idxThe linear index addressing a value in the filter. The linear index accounts for the number of channels given passed in num_channels.
xx coordinate with range [0, filter_size.x-1]. Values outside the range are handled.
yLike x
zLike x
filter_sizeThe spatial size of the filter array in voxels.
num_channelsThe number of channels of the filter.

◆ Size()

template<class T , int VECSIZE>
static constexpr int open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >::Size ( )
inlinestaticconstexpr

Returns the number of interpolation weights and indices returned for each coordinate.


The documentation for this struct was generated from the following file: