18#ifndef itkDisplacementFieldToBSplineImageFilter_h
19#define itkDisplacementFieldToBSplineImageFilter_h
41template <
typename TInputImage,
43 typename TOutputImage = TInputImage>
72 using PixelType =
typename OutputFieldType::PixelType;
75 using IndexType =
typename OutputFieldType::IndexType;
79 using SizeType =
typename OutputFieldType::SizeType;
82 using RealType =
typename VectorType::RealValueType;
115 this->SetConfidenceImage(image);
128 this->SetPointSet(points);
174 itkSetMacro(UseInputFieldToDefineTheBSplineDomain,
bool);
175 itkGetConstMacro(UseInputFieldToDefineTheBSplineDomain,
bool);
176 itkBooleanMacro(UseInputFieldToDefineTheBSplineDomain);
181 itkSetMacro(SplineOrder,
unsigned int);
186 itkGetConstMacro(SplineOrder,
unsigned int);
239 itkBooleanMacro(EstimateInverse);
240 itkSetMacro(EstimateInverse,
bool);
241 itkGetConstMacro(EstimateInverse,
bool);
248 itkBooleanMacro(EnforceStationaryBoundary);
249 itkSetMacro(EnforceStationaryBoundary,
bool);
250 itkGetConstMacro(EnforceStationaryBoundary,
bool);
292#ifndef ITK_MANUAL_INSTANTIATION
293# include "itkDisplacementFieldToBSplineImageFilter.hxx"
Image filter which provides a B-spline output approximation.
VectorContainer< unsigned int, RealType > WeightsContainerType
Image< PointDataType, Self::ImageDimension > PointDataImageType
FixedArray< unsigned int, Self::ImageDimension > ArrayType
typename BSplineFilterType::ArrayType ArrayType
SpacingType m_BSplineDomainSpacing
SmartPointer< const Self > ConstPointer
typename OutputFieldType::PointType OriginType
DirectionType m_BSplineDomainDirection
typename OutputFieldType::SpacingType SpacingType
virtual void SetNumberOfFittingLevels(ArrayType _arg)
ArrayType m_NumberOfFittingLevels
itkSetInputMacro(DisplacementField, InputFieldType)
typename OutputFieldType::IndexType IndexType
InputFieldType DisplacementFieldType
bool m_UseInputFieldToDefineTheBSplineDomain
Image< RealType, ImageDimension > RealImageType
typename InputPointSetType::PointsContainer PointsContainerType
SmartPointer< Self > Pointer
void SetPointSetConfidenceWeights(WeightsContainerType *weights)
typename OutputFieldType::RegionType RegionType
typename InputFieldType::PointType InputFieldPointType
typename InputPointSetType::PixelType PointDataType
static constexpr unsigned int ImageDimension
PointSet< typename ConstantVelocityFieldType::PixelType, ConstantVelocityFieldType::ImageDimension > InputPointSetType
void SetInput1(const RealImageType *image)
void SetBSplineDomainFromImage(const InputFieldType *field)
bool m_BSplineDomainIsDefined
ImageToImageFilter< ConstantVelocityFieldType, ConstantVelocityFieldType > Superclass
typename InputPointSetType::PointType PointType
bool m_EnforceStationaryBoundary
typename OutputFieldType::PixelType VectorType
typename OutputFieldType::SizeType SizeType
itkGetInputMacro(DisplacementField, InputFieldType)
SizeType m_BSplineDomainSize
typename BSplineFilterType::PointDataImageType DisplacementFieldControlPointLatticeType
unsigned int m_SplineOrder
ArrayType m_NumberOfControlPoints
ConstantVelocityFieldType InputFieldType
typename OutputFieldType::PixelType PixelType
DisplacementFieldToBSplineImageFilter Self
itkGetInputMacro(PointSet, InputPointSetType)
void PrintSelf(std::ostream &os, Indent indent) const override
void SetBSplineDomain(OriginType, SpacingType, SizeType, DirectionType)
void SetInput2(const InputPointSetType *points)
itkSetInputMacro(PointSet, InputPointSetType)
typename BSplineFilterType::WeightsContainerType WeightsContainerType
void VerifyPreconditions() const override
Verifies that the process object has been configured correctly, that all required inputs are set,...
void SetBSplineDomainFromImage(InputFieldType *)
OriginType m_BSplineDomainOrigin
typename VectorType::RealValueType RealType
OutputFieldType InverseDisplacementFieldType
ConstantVelocityFieldType OutputFieldType
void GenerateData() override
void SetBSplineDomainFromImage(const RealImageType *image)
typename InputPointSetType::PointDataContainer PointDataContainerType
itkSetInputMacro(ConfidenceImage, RealImageType)
DisplacementFieldToBSplineImageFilter()
typename OutputFieldType::DirectionType DirectionType
void SetBSplineDomainFromImage(RealImageType *)
BSplineScatteredDataPointSetToImageFilter< InputPointSetType, OutputFieldType > BSplineFilterType
void SetNumberOfFittingLevels(unsigned int n)
~DisplacementFieldToBSplineImageFilter() override=default
itkGetInputMacro(ConfidenceImage, RealImageType)
WeightsContainerType::Pointer m_PointWeights
Templated n-dimensional image class.
Control indentation during Print() invocation.
TPointsContainer PointsContainer
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
typename MeshTraits::PixelType PixelType
typename MeshTraits::PointType PointType
typename MeshTraits::PointDataContainer PointDataContainer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr TContainer MakeFilled(typename TContainer::const_reference value)