18#ifndef itkN4BiasFieldCorrectionImageFilter_h
19#define itkN4BiasFieldCorrectionImageFilter_h
31#include "vnl/vnl_vector.h"
88template <
typename TInputImage,
90 class TOutputImage = TInputImage>
157 this->SetMaskImage(mask);
185 itkSetMacro(UseMaskLabel,
bool);
186 itkGetConstMacro(UseMaskLabel,
bool);
187 itkBooleanMacro(UseMaskLabel);
205 this->SetConfidenceImage(image);
230 itkSetMacro(NumberOfHistogramBins,
unsigned int);
236 itkGetConstMacro(NumberOfHistogramBins,
unsigned int);
252 itkSetMacro(BiasFieldFullWidthAtHalfMaximum,
RealType);
258 itkGetConstMacro(BiasFieldFullWidthAtHalfMaximum,
RealType);
265 itkSetMacro(SplineOrder,
unsigned int);
270 itkGetConstMacro(SplineOrder,
unsigned int);
364 itkGetConstMacro(ElapsedIterations,
unsigned int);
370 itkGetConstMacro(CurrentConvergenceMeasurement,
RealType);
376 itkGetConstMacro(CurrentLevel,
unsigned int);
472#ifndef ITK_MANUAL_INSTANTIATION
473# include "itkN4BiasFieldCorrectionImageFilter.hxx"
Array class with size defined at construction time.
Process a given a B-spline grid of control points.
SmartPointer< Self > Pointer
Image filter which provides a B-spline output approximation.
SmartPointer< Self > Pointer
Image< PointDataType, Self::ImageDimension > PointDataImageType
FixedArray< unsigned int, Self::ImageDimension > ArrayType
Base class for all data objects in ITK.
virtual void SetInput(const InputImageType *input)
Templated n-dimensional image class.
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
ArrayType m_NumberOfControlPoints
SmartPointer< Self > Pointer
itkGetInputMacro(ConfidenceImage, RealImageType)
virtual void SetNumberOfFittingLevels(ArrayType _arg)
TOutputImage OutputImageType
Image< ScalarType, Self::ImageDimension > ScalarImageType
Array< unsigned int > VariableSizeArrayType
void SharpenImage(const RealImageType *unsharpenedImage, RealImageType *sharpenedImage) const
RealType m_BiasFieldFullWidthAtHalfMaximum
itkGetInputMacro(MaskImage, MaskImageType)
void SetInput3(const RealImageType *image)
RealType m_CurrentConvergenceMeasurement
void SetNumberOfFittingLevels(unsigned int n)
N4BiasFieldCorrectionImageFilter Self
TInputImage InputImageType
itkSetInputMacro(MaskImage, MaskImageType)
BSplineScatteredDataPointSetToImageFilter< PointSetType, ScalarImageType > BSplineFilterType
typename PointSetType::PointType PointType
BSplineControlPointImageFilter< BiasFieldControlPointLatticeType, ScalarImageType > BiasFieldReconstructerType
BiasFieldControlPointLatticeType::Pointer m_LogBiasFieldControlPointLattice
Image< RealType, ImageDimension > RealImageType
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int m_NumberOfHistogramBins
void SetInput1(const InputImageType *image)
MaskPixelType m_MaskLabel
N4BiasFieldCorrectionImageFilter()
void ReconstructBiasFieldInto(const BiasFieldControlPointLatticeType *, RealImageType *)
itkSetInputMacro(ConfidenceImage, RealImageType)
void EnlargeOutputRequestedRegion(DataObject *) override
BiasFieldReconstructerType::Pointer MakeBiasFieldReconstructer(const BiasFieldControlPointLatticeType *) const
void SetInput2(const MaskImageType *mask)
typename BSplineFilterType::PointDataImageType BiasFieldControlPointLatticeType
typename PointSetType::Pointer PointSetPointer
typename RealImageType::Pointer RealImagePointer
RealImagePointer ReconstructBiasField(const BiasFieldControlPointLatticeType *)
typename MaskImageType::PixelType MaskPixelType
RealType m_WienerFilterNoise
unsigned int m_SplineOrder
Vector< RealType, 1 > ScalarType
VariableSizeArrayType m_MaximumNumberOfIterations
typename BSplineFilterType::ArrayType ArrayType
unsigned int m_ElapsedIterations
~N4BiasFieldCorrectionImageFilter() override=default
unsigned int m_CurrentLevel
ArrayType m_NumberOfFittingLevels
void UpdateBiasFieldEstimate(RealImageType *, FitPoints &, RealImageType *)
ImageToImageFilter< TInputImage, TOutputImage > Superclass
RealType CalculateConvergenceMeasurement(const RealImageType *, const RealImageType *) const
PointSet< ScalarType, Self::ImageDimension > PointSetType
void GenerateData() override
SmartPointer< const Self > ConstPointer
RealType m_ConvergenceThreshold
static constexpr unsigned int ImageDimension
typename PointsContainer::Pointer PointsContainerPointer
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
SmartPointer< Self > Pointer
typename MeshTraits::PointType PointType
typename PointDataContainer::Pointer PointDataContainerPointer
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr TContainer MakeFilled(typename TContainer::const_reference value)
std::vector< SizeValueType > bufferIndices
BSplineFilterType::WeightsContainerType::Pointer weights
PointSetType::PointDataContainerPointer values
PointSetType::PointsContainerPointer points