Open3D (C++ API)
0.18.0
|
Implementation for NEAREST_NEIGHBOR. More...
#include <CoordinateTransformation.h>
Public Types | |
typedef Eigen::Array< T, 1, VECSIZE > | Weight_t |
typedef Eigen::Array< int, 1, VECSIZE > | Idx_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 () |
Implementation for NEAREST_NEIGHBOR.
typedef Eigen::Array<int, 1, VECSIZE> open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >::Idx_t |
typedef Eigen::Array<T, 1, VECSIZE> open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >::Weight_t |
|
inline |
Computes interpolation weights and indices
w | The interpolation weights with range [0,1]. |
idx | The linear index addressing a value in the filter. The linear index accounts for the number of channels given passed in num_channels . |
x | x coordinate with range [0, filter_size.x-1]. Values outside the range are handled. |
y | Like x |
z | Like x |
filter_size | The spatial size of the filter array in voxels. |
num_channels | The number of channels of the filter. |
|
inlinestaticconstexpr |
Returns the number of interpolation weights and indices returned for each coordinate.