Implementation for NEAREST_NEIGHBOR.
More...
#include <CoordinateTransformation.h>
|
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 constexpr int | Size () |
|
template<class T, int VECSIZE>
struct open3d::ml::impl::InterpolationVec< T, VECSIZE, InterpolationMode::NEAREST_NEIGHBOR >
Implementation for NEAREST_NEIGHBOR.
◆ Idx_t
template<class T , int VECSIZE>
◆ Weight_t
template<class T , int VECSIZE>
◆ 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
-
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. |
◆ Size()
template<class T , int VECSIZE>
Returns the number of interpolation weights and indices returned for each coordinate.
The documentation for this struct was generated from the following file: