|
cartodata 6.0.0
|
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) |
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.
|
static |
Definition at line 118 of file lightresampler.h.
References carto::VolumeRef< T >::copyHeaderFrom(), carto::VolumeProxy< T >::getSize(), getTransformedDims(), getTransformedVoxelSize(), carto::VolumeProxy< T >::getVoxelSize(), carto::Headered::header(), carto::Object::reference(), carto::VolumeRef< T >::setVoxelSize(), and transformHeader().
|
static |
Definition at line 72 of file lightresampler.h.
Referenced by allocateResampledVolume().
|
static |
Definition at line 93 of file lightresampler.h.
Referenced by allocateResampledVolume().
|
static |
Definition at line 141 of file lightresampler.h.
References carto::Volume< T >::at(), carto::NDIterator_base::ended(), carto::VolumeProxy< T >::getSize(), carto::Volume< T >::getStrides(), carto::VolumeProxy< T >::getVoxelSize(), carto::line_NDIterator< typename T >::inc_line_ptr(), carto::line_NDIterator_base::line_direction(), carto::line_NDIterator< typename T >::line_length(), and carto::NDIterator_base::position().
|
static |
adapt info in header (referential, transformations)
Definition at line 132 of file lightresampler.h.
Referenced by allocateResampledVolume().