A.I.M.S algorithms


MaskLinearResampler< T > Class Template Reference

#include <aims/resampling/masklinresampler.h>

Inheritance diagram for MaskLinearResampler< T >:
Collaboration diagram for MaskLinearResampler< T >:

Public Member Functions

 MaskLinearResampler ()
 
 ~MaskLinearResampler ()
 
void doit (const Motion &motion, AimsData< T > &thing)
 Resample the reference input data (set via setRef()) into an existing output data. More...
 
AimsData< T > doit (const Motion &motion, int dimX, int dimY, int dimZ, const Point3df &resolution)
 Resample the reference input data (set via setRef()) into a new output data. More...
 
- Public Member Functions inherited from Resampler< T >
 Resampler ()
 
virtual ~Resampler ()
 
virtual void resample (const AimsData< T > &input_data, const aims::AffineTransformation3d &transform, const T &background, AimsData< T > &output_data, bool verbose=false)
 Resample the input data into an existing output data. More...
 
virtual void resample (const AimsData< T > &input_data, const aims::AffineTransformation3d &transform, const T &background, const Point3df &output_location, T &output_value, int timestep)
 Resample a single voxel of the input data at a given specified output location, and set the output value. More...
 
void setRef (const AimsData< T > &ref)
 set the input data to be resampled More...
 
void setDefaultValue (T val)
 set the default background value More...
 

Protected Member Functions

void _sliceResamp (AimsData< T > &resamp, T *out, const Point3df &start, int t, const AimsData< float > &Rinv)
 
void doResample (const AimsData< T > &, const Motion &, const T &, const Point3df &, T &, int)
 
- Protected Member Functions inherited from Resampler< T >
virtual void updateParameters (const AimsData< T > &inVolume, int time, bool verbose)
 called before each time step, used in spline resamplers More...
 

Additional Inherited Members

- Protected Attributes inherited from Resampler< T >
const AimsData< T > * _ref
 
_defval
 

Detailed Description

template<class T>
class MaskLinearResampler< T >

Definition at line 45 of file masklinresampler.h.

Constructor & Destructor Documentation

template<class T >
MaskLinearResampler< T >::MaskLinearResampler ( )
inline

Definition at line 49 of file masklinresampler.h.

template<class T >
MaskLinearResampler< T >::~MaskLinearResampler ( )
inline

Definition at line 50 of file masklinresampler.h.

Member Function Documentation

template<class T >
void MaskLinearResampler< T >::_sliceResamp ( AimsData< T > &  resamp,
T *  out,
const Point3df start,
int  t,
const AimsData< float > &  Rinv 
)
inlineprotected
template<class T >
void MaskLinearResampler< T >::doit ( const Motion transform,
AimsData< T > &  output_data 
)
inlinevirtual

Resample the reference input data (set via setRef()) into an existing output data.

Parameters:

transform: AffineTransformation3d transformation to apply output_data: AimsData<T> resampled data will fill this existing output data

Reimplemented from Resampler< T >.

Definition at line 87 of file masklinresampler.h.

References ASSERT, AimsData< T >::begin(), AimsData< T >::borderWidth(), AimsData< T >::dimT(), AimsData< T >::dimZ(), aims::AffineTransformation3d::inverse(), AimsData< T >::oFirstPoint(), AimsData< T >::oSlice(), aims::AffineTransformation3d::rotation(), aims::AffineTransformation3d::scale(), AimsData< T >::sizeX(), AimsData< T >::sizeY(), AimsData< T >::sizeZ(), and aims::AffineTransformation3d::translation().

template<class T >
AimsData< T > MaskLinearResampler< T >::doit ( const Motion transform,
int  dimX,
int  dimY,
int  dimZ,
const Point3df voxel_size 
)
inlinevirtual

Resample the reference input data (set via setRef()) into a new output data.

Parameters:

transform: transformation to apply dimx, dimy, dimz: number of voxels in 3 dimensions voxel_size: voxel size of the output data

Returns the output resampled volume

Reimplemented from Resampler< T >.

Definition at line 70 of file masklinresampler.h.

References ASSERT, and AimsData< T >::setSizeXYZT().

template<class T >
void MaskLinearResampler< T >::doResample ( const AimsData< T > &  ,
const Motion ,
const T &  ,
const Point3df ,
T &  ,
int   
)
inlineprotectedvirtual

Implements Resampler< T >.

Definition at line 63 of file masklinresampler.h.


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