34 #ifndef AIMSALGO_RESAMPLING_SUBSAMPLINGIMAGEALGORITHM_H 35 #define AIMSALGO_RESAMPLING_SUBSAMPLINGIMAGEALGORITHM_H 92 ImageAlgorithm<T>( SingleChannelImageAlgorithmType(sx, sy, sz, f) )
101 ASSERT(
typeid(other) ==
typeid(*
this) );
111 namespace singlechannel {
123 template <
typename T>
179 ASSERT(
typeid(other) ==
typeid(*
this) );
180 if( &other !=
this ) {
199 template <
typename T>
inline 205 int32_t st = (int32_t)out->
getSizeT(),
209 if( st * sz * sy > 0 )
230 std::cout <<
"Subsampling progress: ";
232 for( t = 0; t < st; ++t )
233 for( k = 0; k < sz; ++k )
234 for( j = 0; j < sy; ++j )
235 for( i = 0; i < sx; ++i )
238 (++progress).print();
249 (*out)( i, j, k, t ) =
_func->execute(win);
253 std::cout << std::endl;
carto::rc_ptr< FilteringFunctionInterface< T > > _func
virtual SubSamplingImageAlgorithm< T > * clone() const
ImageAlgorithmInterface<T> Pure virtual method.
singlechannel::SubSamplingImageAlgorithm< ChannelType > SingleChannelImageAlgorithmType
aims::SubSamplingImageAlgorithm is the algorithm to subsample image.
virtual Point4dl getOutputImageDimensions(const Point4dl &dims) const
Returns the output dimensions of the processed image.
virtual ~SubSamplingImageAlgorithm()
SubSamplingImageAlgorithm< T > & operator=(const SubSamplingImageAlgorithm &other)
virtual void execute(const carto::VolumeRef< T > &in, carto::VolumeRef< T > &out) const
ImageAlgorithmInterface<T> Pure virtual method.
carto::DataTypeTraits< T >::ChannelType ChannelType
SubSamplingImageAlgorithm(int sx, int sy, int sz, const FilteringFunctionInterface< T > &f)
SubSamplingImageAlgorithm(const SubSamplingImageAlgorithm &other)
SubSamplingImageAlgorithm(const SubSamplingImageAlgorithm &other)
virtual Point4df getOutputImageVoxelSize(const Point4df &voxelsize) const
Returns the output voxel size of the processed image.
Pure virtual class: interface for filtering functions called by aims::FilteringImageAlgorithm and aim...
void setPosInRefVolume(const Position4Di &pos)
SubSamplingImageAlgorithm(int sx, int sy, int sz, const FilteringFunctionInterface< ChannelType > &f)
aims::ImageAlgorithm class used to implement image algorithms
aims::ImageAlgorithmInterface is the interface for an image processing algorithm. ...
ImageAlgorithm & operator=(const ImageAlgorithm &other)
virtual ~SubSamplingImageAlgorithm()
aims::singlechannel::SubSamplingImageAlgorithm is the algorithm to apply subsampling on single channe...
virtual SubSamplingImageAlgorithm< T > * clone() const
ImageAlgorithmInterface<T> Pure virtual method.