17 #ifndef __itkRegularizedIVIMLocalVariationImageFilter_h
18 #define __itkRegularizedIVIMLocalVariationImageFilter_h
20 #include "itkImageToImageFilter.h"
26 template<
class TPixelType>
30 static double Calc(TPixelType p)
40 static double Calc(itk::Vector<double,3> p)
52 return p.GetSquaredNorm();
62 return p.GetSquaredNorm();
78 template <
class TInputImage,
class TOutputImage>
80 public ImageToImageFilter< TInputImage, TOutputImage >
85 TInputImage::ImageDimension);
87 TOutputImage::ImageDimension);
95 typedef ImageToImageFilter< InputImageType, OutputImageType>
Superclass;
100 itkFactorylessNewMacro(Self)
122 throw(InvalidRequestedRegionError);
125 RegularizedIVIMLocalVariationImageFilter();
126 virtual ~RegularizedIVIMLocalVariationImageFilter() {}
127 void PrintSelf(std::ostream& os, Indent indent)
const;
140 ThreadIdType threadId );
144 void operator=(
const Self&);
149 #ifndef ITK_MANUAL_INSTANTIATION
153 #endif //RegularizedIVIMLocalVariationImageFilter
static double Calc(itk::VariableLengthVector< float > p)
InputImageType::PixelType InputPixelType
static double Calc(TPixelType p)
void PrintSelf(std::ostream &os, Indent indent) const
SmartPointer< Self > Pointer
OutputImageType::PixelType OutputPixelType
static double Calc(itk::VariableLengthVector< double > p)
OutputImageType::RegionType OutputImageRegionType
static double Calc(itk::Vector< double, 3 > p)
InputImageType::SizeType InputSizeType
RegularizedIVIMLocalVariationImageFilter Self
TOutputImage OutputImageType
InputImageType::RegionType InputImageRegionType
ImageToImageFilter< InputImageType, OutputImageType > Superclass
RegularizedIVIMLocalVariationImageFilter()
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
TInputImage InputImageType
SmartPointer< const Self > ConstPointer
Calculates the local variation in each pixel.
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
virtual void GenerateInputRequestedRegion()