![]() |
aimsalgo
5.1.2
Neuroimaging image processing
|
Volume resampler using linear (order 1) interpolation, then selects the median value in the neighbouring values. More...
#include <aims/resampling/medianresampler.h>
Public Member Functions | |
MedianResampler () | |
~MedianResampler () | |
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 | setVerboseStream (std::ostream &stream) |
write verbose progress information to this stream. More... | |
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 |
std::ostream * | _verbose_stream |
Volume resampler using linear (order 1) interpolation, then selects the median value in the neighbouring values.
The resampling API is described in the base classes, Resampler and SplineResampler.
Definition at line 50 of file medianresampler.h.
|
protected |
Definition at line 60 of file medianresampler.h.
aims::MedianResampler< T >::MedianResampler |
Definition at line 48 of file medianresampler_d.h.
aims::MedianResampler< T >::~MedianResampler |
Definition at line 55 of file medianresampler_d.h.
|
protectedvirtual |
Reimplemented from aims::SplineResampler< T >.
Definition at line 70 of file medianresampler_d.h.
References carto::Volume< class >::at(), carto::RawConverter< class, class >::convert(), carto::VolumeProxy< class >::getSize(), and soma::Transformation3d::transform().
|
protectedvirtual |
Returns .
This method is defined by each nth order derived class
Implements aims::SplineResampler< T >.
Definition at line 267 of file medianresampler_d.h.
|
virtual |
Spline order (1 to 7)
Implements aims::SplineResampler< T >.
Definition at line 61 of file medianresampler_d.h.