ITK
4.6.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 Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual int | GetSplineOrder () const |
void | SetSplineOrder (unsigned int SplineOrder) |
typedef (Concept::SameDimension< ImageDimension, OutputImageDimension >) DimensionCheck | |
typedef (Concept::Convertible< typename TInputImage::PixelType, typename TOutputImage::PixelType >) InputConvertibleToOutputCheck | |
typedef (Concept::Convertible< double, typename TOutputImage::PixelType >) DoubleConvertibleToOutputCheck | |
Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
const InputImageType * | GetInput (void) const |
const InputImageType * | GetInput (unsigned int idx) const |
virtual void | PopBackInput () |
virtual void | PopFrontInput () |
virtual void | PushBackInput (const InputImageType *image) |
virtual void | PushFrontInput (const InputImageType *image) |
virtual void | SetInput (const InputImageType *image) |
virtual void | SetInput (unsigned int, const TInputImage *image) |
virtual void | SetCoordinateTolerance (double _arg) |
virtual double | GetCoordinateTolerance () const |
virtual void | SetDirectionTolerance (double _arg) |
virtual double | GetDirectionTolerance () const |
Public Member Functions inherited from itk::ImageSource< TOutputImage > | |
OutputImageType * | GetOutput (unsigned int idx) |
virtual void | GraftNthOutput (unsigned int idx, DataObject *output) |
virtual void | GraftOutput (DataObject *output) |
virtual void | GraftOutput (const DataObjectIdentifierType &key, DataObject *output) |
OutputImageType * | GetOutput (void) |
const OutputImageType * | GetOutput (void) const |
virtual ProcessObject::DataObjectPointer | MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) ITK_OVERRIDE |
Public Member Functions inherited from itk::ProcessObject | |
virtual void | AbortGenerateDataOff () |
virtual void | AbortGenerateDataOn () |
virtual const bool & | GetAbortGenerateData () const |
NameArray | GetInputNames () const |
MultiThreader * | GetMultiThreader () const |
DataObjectPointerArraySizeType | GetNumberOfIndexedInputs () const |
DataObjectPointerArraySizeType | GetNumberOfInputs () const |
DataObjectPointerArraySizeType | GetNumberOfOutputs () const |
virtual DataObjectPointerArraySizeType | GetNumberOfValidRequiredInputs () const |
NameArray | GetOutputNames () const |
virtual const float & | GetProgress () const |
NameArray | GetRequiredInputNames () const |
bool | HasInput (const DataObjectIdentifierType &key) const |
bool | HasOutput (const DataObjectIdentifierType &key) const |
virtual DataObjectPointer | MakeOutput (const DataObjectIdentifierType &) |
virtual void | PrepareOutputs () |
virtual void | PropagateRequestedRegion (DataObject *output) |
virtual void | ResetPipeline () |
virtual void | SetAbortGenerateData (bool _arg) |
virtual void | Update () |
virtual void | UpdateLargestPossibleRegion () |
virtual void | UpdateOutputData (DataObject *output) |
virtual void | UpdateOutputInformation () |
void | UpdateProgress (float progress) |
DataObjectPointerArray | GetInputs () |
DataObjectPointerArray | GetOutputs () |
DataObjectPointerArray | GetIndexedInputs () |
DataObjectPointerArray | GetIndexedOutputs () |
DataObjectPointerArraySizeType | GetNumberOfIndexedOutputs () const |
void | SetProgress (float progress) |
virtual void | SetReleaseDataFlag (bool flag) |
virtual bool | GetReleaseDataFlag () const |
void | ReleaseDataFlagOn () |
void | ReleaseDataFlagOff () |
virtual void | SetReleaseDataBeforeUpdateFlag (bool _arg) |
virtual const bool & | GetReleaseDataBeforeUpdateFlag () const |
virtual void | ReleaseDataBeforeUpdateFlagOn () |
virtual void | ReleaseDataBeforeUpdateFlagOff () |
virtual void | SetNumberOfThreads (ThreadIdType _arg) |
virtual const ThreadIdType & | GetNumberOfThreads () const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const ITK_OVERRIDE |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) ITK_OVERRIDE |
virtual void | UnRegister () const ITK_OVERRIDE |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
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 |
Protected Attributes | |
TInputImage::SizeType | m_DataLength |
unsigned int | m_IteratorDirection |
int | m_NumberOfPoles |
std::vector< CoeffType > | m_Scratch |
unsigned int | m_SplineOrder |
double | m_SplinePoles [3] |
double | m_Tolerance |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
Private Member Functions | |
BSplineDecompositionImageFilter (const Self &) | |
void | CopyCoefficientsToScratch (OutputLinearIterator &) |
void | CopyImageToImage () |
void | CopyScratchToCoefficients (OutputLinearIterator &) |
virtual bool | DataToCoefficients1D () |
void | DataToCoefficientsND () |
void | operator= (const Self &) |
virtual void | SetInitialAntiCausalCoefficient (double z) |
virtual void | SetInitialCausalCoefficient (double z) |
virtual void | SetPoles () |
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 |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
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 ImageToImageFilter< TInputImage, TOutputImage > itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 79 of file itkBSplineDecompositionImageFilter.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 126 of file itkBSplineDecompositionImageFilter.h.
|
private |
|
private |
Copies a vector of data from the Coefficients image to the m_Scratch vector.
|
private |
Used to initialize the Coefficients image before calculation.
|
private |
Copies a vector of data from m_Scratch to the Coefficients 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.
|
protectedvirtual |
This filter must produce all of its output at once.
Reimplemented from itk::ProcessObject.
|
protectedvirtual |
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 >.
|
protectedvirtual |
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 |
|
static |
New macro for creation of through a Smart Pointer
|
private |
|
protectedvirtual |
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.
itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::SameDimension< ImageDimension, OutputImageDimension > | ) |
This class requires DimensionCheck in the form of ( Concept::SameDimension< ImageDimension, OutputImageDimension > )
itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< typename TInputImage::PixelType, typename TOutputImage::PixelType > | ) |
This class requires InputConvertibleToOutputCheck in the form of ( Concept::Convertible< typename TInputImage::PixelType, typename TOutputImage::PixelType > )
itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< double, typename TOutputImage::PixelType > | ) |
This class requires DoubleConvertibleToOutputCheck in the form of ( Concept::Convertible< double, typename TOutputImage::PixelType > )
|
static |
Dimension underlying input image.
Definition at line 98 of file itkBSplineDecompositionImageFilter.h.
|
protected |
Definition at line 140 of file itkBSplineDecompositionImageFilter.h.
|
protected |
Definition at line 150 of file itkBSplineDecompositionImageFilter.h.
|
protected |
Definition at line 146 of file itkBSplineDecompositionImageFilter.h.
|
protected |
These are needed by the smoothing spline routine.
Definition at line 138 of file itkBSplineDecompositionImageFilter.h.
|
protected |
Definition at line 142 of file itkBSplineDecompositionImageFilter.h.
|
protected |
Definition at line 144 of file itkBSplineDecompositionImageFilter.h.
|
protected |
Definition at line 148 of file itkBSplineDecompositionImageFilter.h.
|
static |
Dimension underlying input image.
Definition at line 100 of file itkBSplineDecompositionImageFilter.h.