cartodata 6.0.0
carto::LightResampler< T > Class Template Reference

Light, simple resampler used for flipping operations. More...

#include <cartodata/transformation/lightresampler.h>

Static Public Member Functions

static VolumeRef< T > allocateResampledVolume (const Volume< T > &vol, const AffineTransformationBase &tr)
 
static void resampleVolume (const Volume< T > &input, Volume< T > &output, const AffineTransformationBase &tr, const T &background=0)
 
static Object transformHeader (const Object &header, const AffineTransformationBase &tr)
 adapt info in header (referential, transformations)
 
static std::vector< int > getTransformedDims (const std::vector< int > &dims, const AffineTransformationBase &tr)
 
static std::vector< float > getTransformedVoxelSize (const std::vector< float > &vs, const AffineTransformationBase &tr)
 

Detailed Description

template<typename T>
class carto::LightResampler< T >

Light, simple resampler used for flipping operations.

Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.

Definition at line 53 of file lightresampler.h.

Member Function Documentation

◆ allocateResampledVolume()

◆ getTransformedDims()

template<typename T>
std::vector< int > carto::LightResampler< T >::getTransformedDims ( const std::vector< int > & dims,
const AffineTransformationBase & tr )
static

Definition at line 72 of file lightresampler.h.

Referenced by allocateResampledVolume().

◆ getTransformedVoxelSize()

template<typename T>
std::vector< float > carto::LightResampler< T >::getTransformedVoxelSize ( const std::vector< float > & vs,
const AffineTransformationBase & tr )
static

Definition at line 93 of file lightresampler.h.

Referenced by allocateResampledVolume().

◆ resampleVolume()

◆ transformHeader()

template<typename T>
Object carto::LightResampler< T >::transformHeader ( const Object & header,
const AffineTransformationBase & tr )
static

adapt info in header (referential, transformations)

Definition at line 132 of file lightresampler.h.

Referenced by allocateResampledVolume().


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