18 #ifndef sitkConvolutionImageFilter_h
19 #define sitkConvolutionImageFilter_h
83 SITK_RETURN_SELF_TYPE_HEADER
NormalizeOn() {
return this->SetNormalize(
true); }
84 SITK_RETURN_SELF_TYPE_HEADER
NormalizeOff() {
return this->SetNormalize(
false); }
90 typedef enum {
ZERO_PAD,ZERO_FLUX_NEUMANN_PAD,PERIODIC_PAD} BoundaryConditionType;
110 std::string
GetName()
const {
return std::string (
"ConvolutionImageFilter"); }
113 std::string ToString()
const;
128 typedef Image (Self::*MemberFunctionType)(
const Image& image1,
const Image& image2 );
129 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BoundaryConditionType m_BoundaryCondition
ConvolutionImageFilter Self
Convolve a given image with an arbitrary image kernel.
#define SITKBasicFilters_EXPORT
std::string GetName() const
BoundaryConditionType GetBoundaryCondition() const
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Self & SetOutputRegionMode(OutputRegionModeType OutputRegionMode)
Image Normalize(const Image &image1)
Normalize an image by setting its mean to zero and variance to one.
OutputRegionModeType GetOutputRegionMode() const
Self & SetNormalize(bool Normalize)
Self & SetBoundaryCondition(BoundaryConditionType BoundaryCondition)
The main Image class for SimpleITK.
OutputRegionModeType m_OutputRegionMode
bool GetNormalize() const
BasicPixelIDTypeList PixelIDTypeList
Image Convolution(const Image &image1, const Image &image2, bool normalize=false, ConvolutionImageFilter::BoundaryConditionType boundaryCondition=itk::simple::ConvolutionImageFilter::ZERO_FLUX_NEUMANN_PAD, ConvolutionImageFilter::OutputRegionModeType outputRegionMode=itk::simple::ConvolutionImageFilter::SAME)
Convolve a given image with an arbitrary image kernel.
The base interface for SimpleITK filters that take one input image.