4 #include <itkImageToImageFilter.h> 10 template <
class TScalarType,
unsigned int NDegreesOfFreedom,
unsigned int NDimensions = 3>
12 public itk::ImageToImageFilter< itk::Image < itk::Vector <TScalarType,NDegreesOfFreedom>, NDimensions > , itk::Image < itk::Vector <TScalarType,NDegreesOfFreedom>, NDimensions > >
19 typedef itk::Image < itk::Vector <TScalarType,NDegreesOfFreedom>, NDimensions >
TInputImage;
20 typedef itk::Image < itk::Vector <TScalarType,NDegreesOfFreedom>, NDimensions >
TOutputImage;
21 typedef itk::ImageToImageFilter <TInputImage, TOutputImage>
Superclass;
43 itkSetMacro(WeightImage, WeightImagePointer)
45 itkSetMacro(FluidSigma,
double)
46 itkSetMacro(MEstimateFactor,
double)
49 itkSetMacro(ConvergenceThreshold,
double)
50 itkSetMacro(MaxNumIterations,
unsigned int)
56 m_MEstimateFactor = 1.0;
57 m_AverageResidualValue = 1.0;
58 m_SqrDistanceBoundary = 9.0 * m_FluidSigma * m_FluidSigma;
71 WeightImagePointer m_WeightImage;
73 double m_FluidSigma, m_MEstimateFactor;
74 double m_SqrDistanceBoundary;
75 std::vector <unsigned int> m_NeighborhoodHalfSizes;
76 unsigned int m_MaxNumIterations;
77 double m_ConvergenceThreshold;
79 std::vector <double> m_InternalSpatialKernelWeights;
80 std::vector <InputIndexType> m_InternalSpatialKernelIndexes;
83 double m_AverageResidualValue;
Superclass::OutputImageRegionType OutputImageRegionType
TOutputImage::PixelType OutputPixelType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) ITK_OVERRIDE
itk::Image< TScalarType, NDimensions > WeightImageType
TInputImage::PointType InputPointType
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
itk::Image< itk::Vector< TScalarType, NDegreesOfFreedom >, NDimensions > TInputImage
WeightImageType::Pointer WeightImagePointer
TInputImage::IndexType InputIndexType
void BeforeThreadedGenerateData() ITK_OVERRIDE
TInputImage::Pointer InputImagePointer
void SetDistanceBoundary(double num)
itk::SmartPointer< const Self > ConstPointer
MEstimateSVFImageFilter()
virtual ~MEstimateSVFImageFilter()
itk::Image< itk::Vector< TScalarType, NDegreesOfFreedom >, NDimensions > TOutputImage
MEstimateSVFImageFilter Self
TOutputImage::Pointer OutputImagePointer
TInputImage::PixelType InputPixelType
itk::SmartPointer< Self > Pointer