34 #ifndef AIMSALGO_RESAMPLING_SUBSAMPLINGIMAGEALGORITHM_H
35 #define AIMSALGO_RESAMPLING_SUBSAMPLINGIMAGEALGORITHM_H
54 template <
typename T>
class SubSamplingImageAlgorithm;
100 ASSERT(
typeid(other) ==
typeid(*
this) );
110 namespace singlechannel {
122 template <
typename T>
178 ASSERT(
typeid(other) ==
typeid(*
this) );
179 if( &other !=
this ) {
198 template <
typename T>
inline
204 int32_t st = (int32_t)out->
getSizeT(),
208 if( st * sz * sy > 0 )
228 if( this->_verbose > 0 )
229 std::cout <<
"Subsampling progress: ";
231 for( t = 0; t < st; ++t )
232 for( k = 0; k < sz; ++k )
233 for( j = 0; j < sy; ++j )
234 for( i = 0; i < sx; ++i )
236 if( this->_verbose > 0 )
237 (++progress).print();
240 i * _win_size_x, j * _win_size_y, k * _win_size_z, t) );
248 (*out)( i, j, k, t ) = _func->execute(win);
251 if( this->_verbose > 0 )
252 std::cout << std::endl;
Pure virtual class: interface for filtering functions called by aims::FilteringImageAlgorithm and aim...
aims::ImageAlgorithmInterface is the interface for an image processing algorithm.
aims::ImageAlgorithm class used to implement image algorithms
ImageAlgorithm & operator=(const ImageAlgorithm &other)
aims::SubSamplingImageAlgorithm is the algorithm to subsample image.
SubSamplingImageAlgorithm(int sx, int sy, int sz, const FilteringFunctionInterface< ChannelType > &f)
singlechannel::SubSamplingImageAlgorithm< ChannelType > SingleChannelImageAlgorithmType
SubSamplingImageAlgorithm & operator=(const SubSamplingImageAlgorithm &other)
virtual SubSamplingImageAlgorithm< T > * clone() const
ImageAlgorithmInterface<T> Pure virtual method.
SubSamplingImageAlgorithm(const SubSamplingImageAlgorithm &other)
virtual ~SubSamplingImageAlgorithm()
carto::DataTypeTraits< T >::ChannelType ChannelType
SubSamplingImageAlgorithm()
aims::singlechannel::SubSamplingImageAlgorithm is the algorithm to apply subsampling on single channe...
SubSamplingImageAlgorithm(const SubSamplingImageAlgorithm &other)
SubSamplingImageAlgorithm< T > & operator=(const SubSamplingImageAlgorithm &other)
SubSamplingImageAlgorithm(int sx, int sy, int sz, const FilteringFunctionInterface< T > &f)
virtual Point4df getOutputImageVoxelSize(const Point4df &voxelsize) const
Returns the output voxel size of the processed image.
virtual SubSamplingImageAlgorithm< T > * clone() const
ImageAlgorithmInterface<T> Pure virtual method.
virtual void execute(const carto::VolumeRef< T > &in, carto::VolumeRef< T > &out) const
ImageAlgorithmInterface<T> Pure virtual method.
virtual Point4dl getOutputImageDimensions(const Point4dl &dims) const
Returns the output dimensions of the processed image.
carto::rc_ptr< FilteringFunctionInterface< T > > _func
virtual ~SubSamplingImageAlgorithm()
void setPosInRefVolume(const Position4Di &pos)