|
ITK
5.1.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkRecursiveSeparableImageFilter_h
19 #define itkRecursiveSeparableImageFilter_h
50 template <
typename TInputImage,
typename TOutputImage = TInputImage>
87 itkGetConstMacro(Direction,
unsigned int);
90 itkSetMacro(Direction,
unsigned int);
94 SetInputImage(
const TInputImage *);
104 PrintSelf(std::ostream & os,
Indent indent)
const override;
107 BeforeThreadedGenerateData()
override;
110 GenerateData()
override;
124 EnlargeOutputRequestedRegion(
DataObject * output)
override;
176 template <
typename T1,
typename T2>
188 out = a1 * b1 + a2 * b2 + a3 * b3 + a4 * b4;
192 template <
typename T1,
typename T2>
204 const unsigned int sz = a1.
GetSize();
209 for (
unsigned int i = 0; i < sz; ++i)
211 out[i] = a1[i] * b1 + a2[i] * b2 + a3[i] * b3 + a4[i] * b4;
215 template <
typename T1,
typename T2>
227 out -= a1 * b1 + a2 * b2 + a3 * b3 + a4 * b4;
230 template <
typename T1,
typename T2>
242 const unsigned int sz = a1.
GetSize();
247 for (
unsigned int i = 0; i < sz; ++i)
249 out[i] -= a1[i] * b1 + a2[i] * b2 + a3[i] * b3 + a4[i] * b4;
256 unsigned int m_Direction{ 0 };
260 #ifndef ITK_MANUAL_INSTANTIATION
261 # include "itkRecursiveSeparableImageFilter.hxx"
typename NumericTraits< InputPixelType >::ScalarRealType ScalarRealType
static void MathEMAMAMAM(VariableLengthVector< T1 > &out, const VariableLengthVector< T1 > &a1, const T2 &b1, const VariableLengthVector< T1 > &a2, const T2 &b2, const VariableLengthVector< T1 > &a3, const T2 &b3, const VariableLengthVector< T1 > &a4, const T2 &b4)
Base class for filters that take an image as input and overwrite that image as the output.
void SetSize(unsigned int sz, TReallocatePolicy reallocatePolicy, TKeepValuesPolicy keepValues)
unsigned int GetSize() const
Base class for recursive convolution with a kernel.
Control indentation during Print() invocation.
Base class for all process objects that output image data.
typename InputImageType::Pointer InputImagePointer
ImageBaseType::RegionType RegionType
TInputImage InputImageType
Represents an array whose length can be defined at run-time.
Define additional traits for native types such as int or float.
typename TInputImage::PixelType InputPixelType
typename OutputImageType::RegionType OutputImageRegionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
static void MathSMAMAMAM(VariableLengthVector< T1 > &out, const VariableLengthVector< T1 > &a1, const T2 &b1, const VariableLengthVector< T1 > &a2, const T2 &b2, const VariableLengthVector< T1 > &a3, const T2 &b3, const VariableLengthVector< T1 > &a4, const T2 &b4)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
static void MathSMAMAMAM(T1 &out, const T1 &a1, const T2 &b1, const T1 &a2, const T2 &b2, const T1 &a3, const T2 &b3, const T1 &a4, const T2 &b4)
static void MathEMAMAMAM(T1 &out, const T1 &a1, const T2 &b1, const T1 &a2, const T2 &b2, const T1 &a3, const T2 &b3, const T1 &a4, const T2 &b4)
typename InputImageType::ConstPointer InputImageConstPointer
unsigned long SizeValueType
typename NumericTraits< InputPixelType >::RealType RealType
TOutputImage OutputImageType
Base class for all data objects in ITK.