![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
Volume resampler using linear (order 1) interpolation. More...
#include <aims/resampling/linearresampler.h>
Public Member Functions | |
LinearResampler () | |
~LinearResampler () | |
int | getOrder () const CARTO_OVERRIDE |
Spline order (1 to 7) More... | |
![]() | |
SplineResampler () | |
~SplineResampler () | |
carto::VolumeRef< double > | getSplineCoef (const carto::Volume< T > &inVolume, int t=0, bool verbose=false) |
Computes spline coefficients corresponding to an input volume. More... | |
void | reset () |
Clear the cache. More... | |
void | resample_inv_to_vox (const carto::Volume< T > &input_data, const soma::Transformation3d &inverse_transform_to_vox, const T &background, carto::Volume< T > &output_data, bool verbose=false) const CARTO_OVERRIDE |
Resample a volume into an existing output volume. More... | |
void | resample_channel_inv_to_vox (const carto::Volume< ChannelType > &inVolume, const soma::Transformation3d &inverse_transform_to_vox, const ChannelType &outBackground, carto::Volume< ChannelType > &outVolume, bool verbose) const |
![]() | |
Resampler () | |
virtual | ~Resampler () |
void | doit (const aims::AffineTransformation3d &transform, carto::Volume< T > &output_data) const |
Resample the input volume set with setRef() into an existing volume. More... | |
carto::VolumeRef< T > | doit (const aims::AffineTransformation3d &transform, int dimX, int dimY, int dimZ, const Point3df &voxel_size) const |
Resample the input volume set with setRef() in a newly allocated volume. More... | |
virtual void | resample (const carto::Volume< T > &input_data, const aims::AffineTransformation3d &transform, const T &background, carto::Volume< T > &output_data, bool verbose=false) const |
Resample a volume into an existing output volume. More... | |
void | resample (const carto::Volume< T > &input_data, const aims::AffineTransformation3d &transform, const T &background, const Point3df &output_location, T &output_value, int timestep) const |
Resample a volume at a single location. More... | |
void | resample_inv (const carto::Volume< T > &input_data, const soma::Transformation3d &inverse_transform_to_mm, const T &background, const Point3df &output_location, T &output_value, int timestep) const |
Resample a volume at a single location. More... | |
void | resample_inv (const carto::Volume< T > &input_data, const soma::Transformation3d &inverse_transform_to_mm, const T &background, carto::Volume< T > &output_data, bool verbose=false) const |
Resample a volume into an existing output volume. More... | |
void | resample_inv_to_vox (const carto::Volume< T > &input_data, const soma::Transformation3d &inverse_transform_to_vox, const T &background, const Point3df &output_location, T &output_value, int timestep) const |
Resample a volume at a single location. More... | |
void | setRef (const carto::rc_ptr< carto::Volume< T > > &ref) |
Set the input data to be resampled by the doit() methods. More... | |
const carto::rc_ptr< carto::Volume< T > > & | ref () const |
Input data to be resampled by the doit() methods. More... | |
void | setDefaultValue (T val) |
Set the background value to be used by the doit() methods. More... | |
const T & | defaultValue () const |
Background value used by the doit() methods. More... | |
![]() | |
RCObject () | |
RCObject (const RCObject &) | |
RCObject & | operator= (const RCObject &) |
virtual | ~RCObject () |
Protected Types | |
typedef SplineResampler< T >::ChannelType | ChannelType |
Protected Member Functions | |
void | doResampleChannel (const carto::Volume< ChannelType > &inVolume, const soma::Transformation3d &transform3d, const ChannelType &outBackground, const Point3df &outLocation, ChannelType &outValue, int t) const CARTO_OVERRIDE |
double | getBSplineWeight (int i, double x) const CARTO_OVERRIDE |
Returns ![]() | |
![]() | |
void | doResample (const carto::Volume< T > &inVolume, const soma::Transformation3d &transform3d, const T &outBackground, const Point3df &outLocation, T &outValue, int t) const CARTO_OVERRIDE |
Resample a volume at a single location. More... | |
void | updateParameters (const carto::Volume< T > &inVolume, int t, bool verbose) const CARTO_OVERRIDE |
Update the cache of spline coefficients if needed. More... | |
virtual void | updateParametersChannel (const carto::Volume< ChannelType > &inVolume, int t, bool verbose) const |
void | iirConvolveMirror (std::vector< double > &data) const |
int | getFold (int i, int size) const |
This method returns a mirror index when needed. More... | |
Additional Inherited Members | |
![]() | |
typedef carto::DataTypeTraits< T >::ChannelType | ChannelType |
![]() | |
typedef int | RefCounterType |
![]() | |
std::vector< double > | _poles |
double | _gain |
carto::VolumeRef< double > | _splineCoefficients |
const carto::Volume< ChannelType > * | _lastvolume |
int | _lasttime |
![]() | |
carto::rc_ptr< carto::Volume< T > > | _ref |
T | _defval |
Volume resampler using linear (order 1) interpolation.
The resampling API is described in the base classes, Resampler and SplineResampler.
Definition at line 49 of file linearresampler.h.
|
protected |
Definition at line 59 of file linearresampler.h.
aims::LinearResampler< T >::LinearResampler | ( | ) |
Definition at line 48 of file linearresampler_d.h.
aims::LinearResampler< T >::~LinearResampler | ( | ) |
Definition at line 55 of file linearresampler_d.h.
|
protectedvirtual |
Reimplemented from aims::SplineResampler< T >.
Definition at line 71 of file linearresampler_d.h.
References carto::Volume< T >::at(), aims::LinearResampler< T >::getBSplineWeight(), aims::SplineResampler< T >::getFold(), carto::VolumeProxy< T >::getSize(), and soma::Transformation3d::transform().
Referenced by aims::LinearResampler< T >::getOrder().
|
protectedvirtual |
Returns .
This method is defined by each nth order derived class
Implements aims::SplineResampler< T >.
Definition at line 182 of file linearresampler_d.h.
Referenced by aims::LinearResampler< T >::doResampleChannel().
|
virtual |
Spline order (1 to 7)
Implements aims::SplineResampler< T >.
Definition at line 61 of file linearresampler_d.h.
References aims::LinearResampler< T >::doResampleChannel().