35 #ifndef AIMS_RESAMPLING_MASKLINRESAMPLER_H
36 #define AIMS_RESAMPLING_MASKLINRESAMPLER_H
63 #ifndef AIMS_MASKLINEARRESAMPLER_NO_DEPREC_WARNING
66 MaskLinearResampler :
public Resampler< T >
74 MaskLinearResampler() : Resampler< T >() {
77 setDefaultValue(-32768);
79 ~MaskLinearResampler() { }
86 bool verbose =
false ) const CARTO_OVERRIDE;
90 static_assert(static_cast<T>(-32768) == -32768,
91 "type T cannot represent the
mask value (-32768)");
94 doResample( const
carto::Volume< T > &,
95 const
soma::Transformation3d &, const T &,
96 const
Point3df &, T &,
int ) const CARTO_OVERRIDE;
98 LinearResampler<T> _linearresampler;
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.
void setDefaultValue(T val)
Set the background value to be used by the doit() methods.
const T & defaultValue() const
Background value used by the doit() methods.
BucketMap< Void > * mask(const BucketMap< Void > &src, const BucketMap< Void > &m, bool intersect=true)