18 #ifndef itkBSplineControlPointImageFilter_h
19 #define itkBSplineControlPointImageFilter_h
30 #include "vnl/vnl_matrix.h"
31 #include "vnl/vnl_vector.h"
59 template <
typename TInputImage,
typename TOutputImage = TInputImage>
74 TInputImage::ImageDimension );
80 typedef typename OutputImageType::PixelType
PixelType;
82 typedef typename OutputImageType::IndexType
IndexType;
83 typedef typename OutputImageType::PointType
PointType;
88 typedef typename OutputImageType::SizeType
SizeType;
134 itkGetConstReferenceMacro( SplineOrder,
ArrayType );
152 itkSetMacro( CloseDimension,
ArrayType );
153 itkGetConstReferenceMacro( CloseDimension,
ArrayType );
205 typename ControlPointLatticeType::Pointer
220 void operator=( const
Self& ) ITK_DELETE_FUNCTION;
240 const
RealType, const
unsigned int );
278 k[i] = size[ImageDimension-i-1]*k[i-1];
283 index[ImageDimension-i-1]
284 =
static_cast<unsigned int>( number/k[ImageDimension-i-1] );
285 number %= k[ImageDimension-i-1];
294 #ifndef ITK_MANUAL_INSTANTIATION
295 #include "itkBSplineControlPointImageFilter.hxx"
Image< PointDataType, itkGetStaticConstMacro(ImageDimension)> PointDataImageType
CoxDeBoorBSplineKernelFunction< 3 > KernelType
Process a given a B-spline grid of control points.
BSplineKernelFunction< 2 > KernelOrder2Type
RealType m_BSplineEpsilon
OutputImageType::SpacingType SpacingType
OutputImageType::PixelType PixelType
TInputImage ControlPointLatticeType
KernelType::Pointer m_Kernel[ImageDimension]
Represent the size (bounds) of a n-dimensional image.
ArrayType m_NumberOfControlPoints
SmartPointer< const Self > ConstPointer
unsigned int m_MaximumNumberOfLevels
virtual unsigned int SplitRequestedRegion(unsigned int, unsigned int, OutputImageRegionType &) override
PointSetType::PointDataContainer PointDataContainerType
PointSetType::PixelType PointDataType
Image< RealType, itkGetStaticConstMacro(ImageDimension)> RealImageType
FixedArray< RealType, itkGetStaticConstMacro(ImageDimension)> RealArrayType
KernelOrder2Type::Pointer m_KernelOrder2
OutputImageType::DirectionType DirectionType
Base class for all process objects that output image data.
OutputImageType::SizeType SizeType
BSplineControlPointImageFilter Self
MeshTraits::PixelType PixelType
Simulate a standard C array with copy semnatics.
BSpline kernel used for density estimation and nonparameteric regression.
KernelOrder0Type::Pointer m_KernelOrder0
ArrayType m_CloseDimension
void PrintSelf(std::ostream &os, Indent indent) const override
BSplineKernelFunction< 1 > KernelOrder1Type
PointDataImageType::Pointer PointDataImagePointer
SmartPointer< Self > Pointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
KernelOrder1Type::Pointer m_KernelOrder1
vnl_matrix< RealType > m_RefinedLatticeCoefficients[ImageDimension]
BSplineControlPointImageFilter()
KernelOrder3Type::Pointer m_KernelOrder3
BSpline kernel used for density estimation and nonparameteric regression.
ControlPointLatticeType::Pointer RefineControlPointLattice(ArrayType)
FixedArray< unsigned, itkGetStaticConstMacro(ImageDimension)> ArrayType
RealImageType::IndexType NumberToIndex(unsigned int number, typename RealImageType::SizeType size)
Superclass::IndexType IndexType
virtual ~BSplineControlPointImageFilter()
static const unsigned int ImageDimension
void CollapsePhiLattice(PointDataImageType *, PointDataImageType *, const RealType, const unsigned int)
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
TOutputImage OutputImageType
OutputImageType::PointType OriginType
unsigned int ThreadIdType
OutputImageType::PointType PointType
RealImageType::Pointer RealImagePointer
void ThreadedGenerateData(const OutputImageRegionType &, ThreadIdType) override
Base class for filters that take an image as input and produce an image as output.
BSplineKernelFunction< 0 > KernelOrder0Type
OutputImageType::RegionType OutputImageRegionType
ArrayType m_NumberOfLevels
Control indentation during Print() invocation.
DirectionType m_Direction
void SetSplineOrder(unsigned int)
void SetNumberOfLevels(ArrayType)
OutputImageType::IndexType IndexType
MeshTraits::PointDataContainer PointDataContainer
PointSet< PixelType, itkGetStaticConstMacro(ImageDimension)> PointSetType
void BeforeThreadedGenerateData() override
Templated n-dimensional image class.
BSplineKernelFunction< 3 > KernelOrder3Type
OutputImageType::RegionType OutputImageRegionType
OutputImageType::RegionType RegionType