13 #ifndef itkLocalVariationImageFilter_h
14 #define itkLocalVariationImageFilter_h
17 #include <itkImageToImageFilter.h>
34 template <
class TPixelType>
43 static double Calc(TPixelType p);
71 template <
class TInputImage,
class TOutputImage>
85 typedef ImageToImageFilter<InputImageType, OutputImageType>
Superclass;
90 itkFactorylessNewMacro(
Self);
122 void PrintSelf(std::ostream &os, Indent indent)
const override;
138 void operator=(
const Self &);
143 #ifndef ITK_MANUAL_INSTANTIATION
144 #include <itkLocalVariationImageFilter.tpp>
Calculates the local variation in each pixel.
TOutputImage OutputImageType
TInputImage InputImageType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
InputImageType::SizeType InputSizeType
LocalVariationImageFilter()
InputImageType::RegionType InputImageRegionType
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
OutputImageType::RegionType OutputImageRegionType
LocalVariationImageFilter Self
OutputImageType::PixelType OutputPixelType
~LocalVariationImageFilter() override
ImageToImageFilter< InputImageType, OutputImageType > Superclass
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
SmartPointer< Self > Pointer
void GenerateInputRequestedRegion() override
Generates the input requested region, padded by a radius of 1.
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
InputImageType::PixelType InputPixelType
Computes the squared Euclidean metric for a given pixel value.
static double Calc(TPixelType p)
Compute the squared Euclidean metric of a pixel value.