|
ITK
5.1.0
Insight Toolkit
|
Go to the documentation of this file.
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>
77 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
83 using PixelType =
typename OutputImageType::PixelType;
121 SetSplineOrder(
unsigned int);
132 itkGetConstReferenceMacro(SplineOrder,
ArrayType);
151 itkGetConstReferenceMacro(CloseDimension,
ArrayType);
203 typename ControlPointLatticeType::Pointer RefineControlPointLattice(
ArrayType);
209 PrintSelf(std::ostream & os,
Indent indent)
const override;
222 BeforeThreadedGenerateData()
override;
249 bool m_DoMultilevel{
false };
250 unsigned int m_MaximumNumberOfLevels{ 1 };
256 vnl_matrix<RealType> m_RefinedLatticeCoefficients[ImageDimension];
264 RealType m_BSplineEpsilon{ static_cast<RealType>(1
e-3) };
272 for (
unsigned int i = 1; i < ImageDimension; i++)
274 k[i] = size[ImageDimension - i - 1] * k[i - 1];
277 for (
unsigned int i = 0; i < ImageDimension; i++)
279 index[ImageDimension - i - 1] = static_cast<unsigned int>(number / k[ImageDimension - i - 1]);
280 number %= k[ImageDimension - i - 1];
288 #ifndef ITK_MANUAL_INSTANTIATION
289 # include "itkBSplineControlPointImageFilter.hxx"
typename RealImageType::Pointer RealImagePointer
KernelOrder1Type::Pointer m_KernelOrder1
KernelOrder0Type::Pointer m_KernelOrder0
BSpline kernel used for density estimation and nonparametric regression.
ImageBaseType::DirectionType DirectionType
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Represent a n-dimensional size (bounds) of a n-dimensional image.
TInputImage ControlPointLatticeType
ArrayType m_NumberOfLevels
ImageBaseType::PointType PointType
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType RegionType
Control indentation during Print() invocation.
ArrayType m_CloseDimension
typename OutputImageType::PointType PointType
typename OutputImageType::PixelType PixelType
ImageBaseType::IndexType IndexType
Base class for filters that take an image as input and produce an image as output.
Base class for all process objects that output image data.
typename OutputImageType::PointType OriginType
ImageBaseType::RegionType RegionType
RealImageType::IndexType NumberToIndex(unsigned int number, typename RealImageType::SizeType size)
typename MeshTraits::PixelType PixelType
typename PointSetType::PointDataContainer PointDataContainerType
KernelOrder2Type::Pointer m_KernelOrder2
typename OutputImageType::SpacingType SpacingType
typename PointDataImageType::Pointer PointDataImagePointer
typename OutputImageType::IndexType IndexType
typename OutputImageType::RegionType OutputImageRegionType
DirectionType m_Direction
typename PointSetType::PixelType PointDataType
typename Superclass::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
ArrayType m_NumberOfControlPoints
typename MeshTraits::PointDataContainer PointDataContainer
static constexpr double e
typename OutputImageType::SizeType SizeType
Templated n-dimensional image class.
KernelOrder3Type::Pointer m_KernelOrder3
BSpline kernel used for density estimation and nonparametric regression.
typename OutputImageType::DirectionType DirectionType
Process a given a B-spline grid of control points.
typename Superclass::SizeType SizeType
TOutputImage OutputImageType