ITK
4.12.0
Insight Segmentation and Registration Toolkit
|
#include <itkBSplineDecompositionImageFilter.h>
Calculates the B-Spline coefficients of an image. Spline order may be from 0 to 5.
This class defines N-Dimension B-Spline transformation. It is based on: [1] M. Unser, "Splines: A Perfect Fit for Signal and Image Processing," IEEE Signal Processing Magazine, vol. 16, no. 6, pp. 22-38, November 1999. [2] M. Unser, A. Aldroubi and M. Eden, "B-Spline Signal Processing: Part I--Theory," IEEE Transactions on Signal Processing, vol. 41, no. 2, pp. 821-832, February 1993. [3] M. Unser, A. Aldroubi and M. Eden, "B-Spline Signal Processing: Part II--Efficient Design and Applications," IEEE Transactions on Signal Processing, vol. 41, no. 2, pp. 834-848, February 1993. And code obtained from bigwww.epfl.ch by Philippe Thevenaz
Limitations: Spline order must be between 0 and 5. Spline order must be set before setting the image. Uses mirror boundary conditions. Requires the same order of Spline for each dimension. Can only process LargestPossibleRegion
Definition at line 73 of file itkBSplineDecompositionImageFilter.h.
Public Types | |
typedef itk::NumericTraits < typename TOutputImage::PixelType > ::RealType | CoeffType |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::InputImageConstPointer | InputImageConstPointer |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef ImageLinearIteratorWithIndex < TOutputImage > | OutputLinearIterator |
typedef SmartPointer< Self > | Pointer |
typedef BSplineDecompositionImageFilter | Self |
typedef std::vector< double > | SplinePolesVectorType |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TOutputImage > | Superclass |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Types | |
typedef std::vector< CoeffType > | CoefficientsVectorType |
Private Member Functions | |
void | CopyCoefficientsToScratch (OutputLinearIterator &) |
void | CopyImageToImage () |
void | CopyScratchToCoefficients (OutputLinearIterator &) |
virtual bool | DataToCoefficients1D () |
void | DataToCoefficientsND () |
virtual void | SetInitialAntiCausalCoefficient (double z) |
virtual void | SetInitialCausalCoefficient (double z) |
virtual void | SetPoles () |
Private Attributes | |
TInputImage::SizeType | m_DataLength |
unsigned int | m_IteratorDirection |
int | m_NumberOfPoles |
CoefficientsVectorType | m_Scratch |
unsigned int | m_SplineOrder |
SplinePolesVectorType | m_SplinePoles |
double | m_Tolerance |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
|
private |
Definition at line 147 of file itkBSplineDecompositionImageFilter.h.
typedef itk::NumericTraits< typename TOutputImage::PixelType >::RealType itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::CoeffType |
Definition at line 95 of file itkBSplineDecompositionImageFilter.h.
typedef SmartPointer< const Self > itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 81 of file itkBSplineDecompositionImageFilter.h.
typedef Superclass::InputImageConstPointer itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::InputImageConstPointer |
Definition at line 92 of file itkBSplineDecompositionImageFilter.h.
typedef Superclass::InputImagePointer itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Definition at line 91 of file itkBSplineDecompositionImageFilter.h.
typedef Superclass::InputImageType itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::InputImageType |
Inherit input and output image types from Superclass.
Definition at line 87 of file itkBSplineDecompositionImageFilter.h.
typedef Superclass::OutputImagePointer itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::OutputImagePointer |
Definition at line 93 of file itkBSplineDecompositionImageFilter.h.
typedef ImageLinearIteratorWithIndex< TOutputImage > itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::OutputLinearIterator |
Iterator typedef support
Definition at line 104 of file itkBSplineDecompositionImageFilter.h.
typedef SmartPointer< Self > itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 80 of file itkBSplineDecompositionImageFilter.h.
typedef BSplineDecompositionImageFilter itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 78 of file itkBSplineDecompositionImageFilter.h.
typedef std::vector< double > itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::SplinePolesVectorType |
Definition at line 106 of file itkBSplineDecompositionImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 79 of file itkBSplineDecompositionImageFilter.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 135 of file itkBSplineDecompositionImageFilter.h.
|
private |
Copies a vector of data from the Coefficients image (one line of the output image) to the scratch.
|
private |
Copy the input image into the output image. Used to initialize the Coefficients image before calculation.
|
private |
Copies a vector of data from the scratch to the Coefficients image (one line of the output image).
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
privatevirtual |
Converts a vector of data to a vector of Spline coefficients.
|
private |
Converts an N-dimension image of data to an equivalent sized image of spline coefficients.
|
overrideprotectedvirtual |
This filter must produce all of its output at once.
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.
Reimplemented from itk::ImageSource< TOutputImage >.
|
overrideprotectedvirtual |
This filter requires all of the input image.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Get the number of poles.
|
virtual |
|
virtual |
Get the poles calculated for a given spline order.
|
static |
New macro for creation of through a Smart Pointer
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
privatevirtual |
Determines the first coefficient for the anti-causal filtering of the data.
|
privatevirtual |
Determines the first coefficient for the causal filtering of the data.
|
privatevirtual |
Determines the poles given the Spline Order.
void itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::SetSplineOrder | ( | unsigned int | SplineOrder | ) |
Get/Sets the Spline Order, supports 0th - 5th order splines. The default is a 3rd order spline.
|
static |
Dimension underlying input image.
Definition at line 98 of file itkBSplineDecompositionImageFilter.h.
|
private |
Image size.
Definition at line 186 of file itkBSplineDecompositionImageFilter.h.
|
private |
Direction for iterator incrementing. Default is 0.
Definition at line 199 of file itkBSplineDecompositionImageFilter.h.
|
private |
Definition at line 193 of file itkBSplineDecompositionImageFilter.h.
|
private |
Temporary storage for processing of Coefficients.
Definition at line 183 of file itkBSplineDecompositionImageFilter.h.
|
private |
User specified spline order (3rd or cubic is the default).
Definition at line 189 of file itkBSplineDecompositionImageFilter.h.
|
private |
Definition at line 191 of file itkBSplineDecompositionImageFilter.h.
|
private |
Tolerance used for determining initial causal coefficient. Default is 1e-10.
Definition at line 196 of file itkBSplineDecompositionImageFilter.h.
|
static |
Dimension underlying input image.
Definition at line 100 of file itkBSplineDecompositionImageFilter.h.