18 #ifndef __itkDisplacementFieldToBSplineImageFilter_h
19 #define __itkDisplacementFieldToBSplineImageFilter_h
40 template <
typename TInputImage,
typename TOutputImage = TInputImage>
54 itkStaticConstMacro(
ImageDimension,
unsigned int, TInputImage::ImageDimension );
63 typedef typename OutputFieldType::PixelType
PixelType;
66 typedef typename OutputFieldType::IndexType
IndexType;
68 typedef typename OutputFieldType::PointType
PointType;
71 typedef typename OutputFieldType::SizeType
SizeType;
74 typedef typename VectorType::RealValueType
RealType;
116 this->
SetNthInput( 1, const_cast<RealImageType *>( image ) );
132 itkSetMacro( SplineOrder,
unsigned int );
137 itkGetConstMacro( SplineOrder,
unsigned int );
146 itkSetMacro( NumberOfControlPoints,
ArrayType );
155 itkGetConstMacro( NumberOfControlPoints,
ArrayType );
163 itkSetMacro( NumberOfFittingLevels,
ArrayType );
185 itkGetConstMacro( NumberOfFittingLevels,
ArrayType );
190 itkBooleanMacro( EstimateInverse );
191 itkSetMacro( EstimateInverse,
bool );
192 itkGetConstMacro( EstimateInverse,
bool );
198 itkBooleanMacro( EnforceStationaryBoundary );
199 itkSetMacro( EnforceStationaryBoundary,
bool );
200 itkGetConstMacro( EnforceStationaryBoundary,
bool );
234 #ifndef ITK_MANUAL_INSTANTIATION
235 #include "itkDisplacementFieldToBSplineImageFilter.hxx"
TInputImage InputFieldType
OutputFieldType::DirectionType DirectionType
void SetDisplacementField(const InputFieldType *field)
ArrayType m_NumberOfFittingLevels
OutputFieldType::SpacingType SpacingType
SmartPointer< Self > Pointer
OutputFieldType::PixelType PixelType
DisplacementFieldToBSplineImageFilter Self
OutputFieldType::PixelType VectorType
OutputFieldType::IndexType IndexType
OutputFieldType::PointType PointType
const RealImageType * GetConfidenceImage() const
OutputFieldType::SizeType SizeType
OutputFieldType InverseDisplacementFieldType
static const unsigned int ImageDimension
unsigned int m_SplineOrder
TOutputImage OutputFieldType
Base class for all process objects that output image data.
void Fill(const ValueType &)
virtual void SetNumberOfFittingLevels(ArrayType _arg)
DisplacementFieldControlPointLatticeType::Pointer m_DisplacementFieldControlPointLattice
void SetInput1(const RealImageType *image)
BSplineFilterType::ArrayType ArrayType
BSplineFilterType::WeightsContainerType WeightsContainerType
const DisplacementFieldControlPointLatticeType * GetDisplacementFieldControlPointLattice() const
BSplineScatteredDataPointSetToImageFilter< PointSetType, OutputFieldType > BSplineFilterType
virtual void SetInput(const InputImageType *image)
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
const InputImageType * GetInput(void) const
void PrintSelf(std::ostream &os, Indent indent) const
InputFieldType DisplacementFieldType
void operator=(const Self &)
BSplineFilterType::PointDataImageType DisplacementFieldControlPointLatticeType
Image filter which provides a B-spline output approximation.
DataObject * GetInput(const DataObjectIdentifierType &key)
OutputFieldType::RegionType RegionType
PointSet< VectorType, ImageDimension > PointSetType
VectorType::RealValueType RealType
void SetNumberOfFittingLevels(unsigned int n)
bool m_EnforceStationaryBoundary
Base class for filters that take an image as input and produce an image as output.
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
DisplacementFieldToBSplineImageFilter()
Image< RealType, ImageDimension > RealImageType
Control indentation during Print() invocation.
ImageToImageFilter< TInputImage, TOutputImage > Superclass
virtual ~DisplacementFieldToBSplineImageFilter()
Class which takes a displacement field image and smooths it using B-splines. The inverse can also be ...
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
ArrayType m_NumberOfControlPoints
void SetConfidenceImage(const RealImageType *image)
const InputFieldType * GetDisplacementField() const
SmartPointer< const Self > ConstPointer
Templated n-dimensional image class.
OutputFieldType::PointType OriginType