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;
132 itkGetConstReferenceMacro( SplineOrder,
ArrayType );
150 itkSetMacro( CloseDimension,
ArrayType );
155 itkGetConstReferenceMacro( CloseDimension,
ArrayType );
215 typename ControlPointLatticeType::Pointer
250 const RealType,
const unsigned int );
288 k[i] = size[ImageDimension-i-1]*k[i-1];
293 index[ImageDimension-i-1]
294 =
static_cast<unsigned int>( number/k[ImageDimension-i-1] );
295 number %= k[ImageDimension-i-1];
304 #ifndef ITK_MANUAL_INSTANTIATION
305 #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
void ThreadedGenerateData(const OutputImageRegionType &, ThreadIdType)
OutputImageType::SpacingType SpacingType
OutputImageType::PixelType PixelType
TInputImage ControlPointLatticeType
unsigned int SplitRequestedRegion(unsigned int, unsigned int, OutputImageRegionType &)
KernelType::Pointer m_Kernel[ImageDimension]
void PrintSelf(std::ostream &os, Indent indent) const
Represent the size (bounds) of a n-dimensional image.
ArrayType m_NumberOfControlPoints
SmartPointer< const Self > ConstPointer
unsigned int m_MaximumNumberOfLevels
PointSetType::PointDataContainer PointDataContainerType
PointSetType::PixelType PointDataType
Image< RealType, itkGetStaticConstMacro(ImageDimension)> RealImageType
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
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
void BeforeThreadedGenerateData()
OutputImageType::PointType PointType
RealImageType::Pointer RealImagePointer
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
void operator=(const Self &)
MeshTraits::PointDataContainer PointDataContainer
PointSet< PixelType, itkGetStaticConstMacro(ImageDimension)> PointSetType
Templated n-dimensional image class.
BSplineKernelFunction< 3 > KernelOrder3Type
unsigned int ThreadIdType
OutputImageType::RegionType OutputImageRegionType
OutputImageType::RegionType RegionType