RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rtk::DeconstructImageFilter< TImage > Class Template Reference

#include <rtkDeconstructImageFilter.h>

+ Inheritance diagram for rtk::DeconstructImageFilter< TImage >:
+ Collaboration diagram for rtk::DeconstructImageFilter< TImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef rtk::DaubechiesWaveletsConvolutionImageFilter< InputImageTypeConvolutionFilterType
 
typedef rtk::DownsampleImageFilter< InputImageTypeDownsampleImageFilterType
 
typedef Superclass::InputImageConstPointer InputImageConstPointer
 
typedef Superclass::InputImagePointer InputImagePointer
 
typedef Superclass::InputImageType InputImageType
 
typedef TImage::InternalPixelType InternalPixelType
 
typedef Superclass::OutputImagePointer OutputImagePointer
 
typedef Superclass::OutputImageType OutputImageType
 
typedef itk::MirrorPadImageFilter< InputImageType, InputImageTypePadFilterType
 
typedef TImage::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef DeconstructImageFilter Self
 
typedef itk::ImageToImageFilter< TImage, TImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
InputImageType::IndexTypeGetIndices ()
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetNumberOfLevels ()
 
virtual unsigned int GetOrder ()
 
InputImageType::SizeTypeGetSizes ()
 
virtual void SetOrder (unsigned int _arg)
 
virtual void SetNumberOfLevels (unsigned int levels)
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = TImage::ImageDimension
 

Protected Member Functions

virtual unsigned int CalculateNumberOfOutputs ()
 
 DeconstructImageFilter ()
 
void GenerateData () override
 
void GeneratePassVectors ()
 
void ModifyInputOutputStorage ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual ~DeconstructImageFilter () override
 

Private Member Functions

 DeconstructImageFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

std::vector< typename ConvolutionFilterType::Pointerm_ConvolutionFilters
 
std::vector< typename DownsampleImageFilterType::Pointerm_DownsampleFilters
 
std::vector< typename InputImageType::IndexTypem_Indices
 
unsigned int m_NumberOfLevels
 
unsigned int m_Order
 
std::vector< typename PadFilterType::Pointerm_PadFilters
 
std::vector< typename ConvolutionFilterType::PassVectorm_PassVectors
 
bool m_PipelineConstructed
 
std::vector< typename InputImageType::SizeTypem_Sizes
 

Detailed Description

template<class TImage>
class rtk::DeconstructImageFilter< TImage >

An image filter that deconstructs an image using Daubechies wavelets.

This filter is inspired from Dan Mueller's GIFT package http://www.insight-journal.org/browse/publication/103

dot_inline_dotgraph_8.png
Test:
rtkwaveletstest.cxx
Author
Cyril Mory

Definition at line 119 of file rtkDeconstructImageFilter.h.

Member Typedef Documentation

template<class TImage >
typedef itk::SmartPointer<const Self> rtk::DeconstructImageFilter< TImage >::ConstPointer

Definition at line 128 of file rtkDeconstructImageFilter.h.

Definition at line 150 of file rtkDeconstructImageFilter.h.

Definition at line 151 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef Superclass::InputImageConstPointer rtk::DeconstructImageFilter< TImage >::InputImageConstPointer

Definition at line 144 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef Superclass::InputImagePointer rtk::DeconstructImageFilter< TImage >::InputImagePointer

Definition at line 142 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef Superclass::InputImageType rtk::DeconstructImageFilter< TImage >::InputImageType

Inherit types from Superclass.

Definition at line 140 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef TImage::InternalPixelType rtk::DeconstructImageFilter< TImage >::InternalPixelType

Definition at line 146 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef Superclass::OutputImagePointer rtk::DeconstructImageFilter< TImage >::OutputImagePointer

Definition at line 143 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef Superclass::OutputImageType rtk::DeconstructImageFilter< TImage >::OutputImageType

Definition at line 141 of file rtkDeconstructImageFilter.h.

Typedefs for pipeline's subfilters

Definition at line 149 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef TImage::PixelType rtk::DeconstructImageFilter< TImage >::PixelType

Definition at line 145 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef itk::SmartPointer<Self> rtk::DeconstructImageFilter< TImage >::Pointer

Definition at line 127 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef DeconstructImageFilter rtk::DeconstructImageFilter< TImage >::Self

Standard class typedefs.

Definition at line 125 of file rtkDeconstructImageFilter.h.

template<class TImage >
typedef itk::ImageToImageFilter<TImage,TImage> rtk::DeconstructImageFilter< TImage >::Superclass

Definition at line 126 of file rtkDeconstructImageFilter.h.

Constructor & Destructor Documentation

template<class TImage >
rtk::DeconstructImageFilter< TImage >::DeconstructImageFilter ( )
protected
template<class TImage >
virtual rtk::DeconstructImageFilter< TImage >::~DeconstructImageFilter ( )
inlineoverrideprotectedvirtual
template<class TImage >
rtk::DeconstructImageFilter< TImage >::DeconstructImageFilter ( const Self )
private

Member Function Documentation

template<class TImage >
virtual unsigned int rtk::DeconstructImageFilter< TImage >::CalculateNumberOfOutputs ( )
protectedvirtual

Calculates the number of ProcessObject output images

Referenced by rtk::DeconstructImageFilter< TImage >::~DeconstructImageFilter().

template<class TImage >
virtual::itk::LightObject::Pointer rtk::DeconstructImageFilter< TImage >::CreateAnother ( ) const
template<class TImage >
void rtk::DeconstructImageFilter< TImage >::GenerateData ( )
overrideprotected
template<class TImage >
void rtk::DeconstructImageFilter< TImage >::GenerateInputRequestedRegion ( )
override
template<class TImage >
void rtk::DeconstructImageFilter< TImage >::GenerateOutputInformation ( )
override

DeconstructImageFilter produces images which are of different size than the input image. As such, we reimplement GenerateOutputInformation() in order to inform the pipeline execution model.

Referenced by rtk::DeconstructImageFilter< TImage >::GetNumberOfLevels().

template<class TImage >
void rtk::DeconstructImageFilter< TImage >::GeneratePassVectors ( )
protected

Creates and sets the kernel sources to generate all kernels.

Referenced by rtk::DeconstructImageFilter< TImage >::~DeconstructImageFilter().

template<class TImage >
InputImageType::IndexType* rtk::DeconstructImageFilter< TImage >::GetIndices ( )
inline

Get the index of each convolution filter's output This is required because the downsampling implies a loss of information on the index (both 2n+1 and 2n are downsampled to n), and the upsampling filters used in the reconstruction process need this information.

Definition at line 198 of file rtkDeconstructImageFilter.h.

References rtk::DeconstructImageFilter< TImage >::DeconstructImageFilter(), and rtk::DeconstructImageFilter< TImage >::m_Indices.

template<class TImage >
virtual const char* rtk::DeconstructImageFilter< TImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TImage >
virtual unsigned int rtk::DeconstructImageFilter< TImage >::GetNumberOfLevels ( )
inlinevirtual
template<class TImage >
virtual unsigned int rtk::DeconstructImageFilter< TImage >::GetOrder ( )
virtual

Get/Set the order of the wavelet filters

template<class TImage >
InputImageType::SizeType* rtk::DeconstructImageFilter< TImage >::GetSizes ( )
inline

Get the size of each convolution filter's output This is required because the downsampling implies a loss of information on the size (both 2n+1 and 2n are downsampled to n), and the upsampling filters used in the reconstruction process need this information.

Definition at line 186 of file rtkDeconstructImageFilter.h.

References rtk::DeconstructImageFilter< TImage >::m_Sizes.

template<class TImage >
void rtk::DeconstructImageFilter< TImage >::ModifyInputOutputStorage ( )
protected

Modifies the storage for Input and Output images. Should be called after changes to levels, bands, deconstruct, reconstruct, etc...

Referenced by rtk::DeconstructImageFilter< TImage >::SetNumberOfLevels(), and rtk::DeconstructImageFilter< TImage >::~DeconstructImageFilter().

template<class TImage >
static Pointer rtk::DeconstructImageFilter< TImage >::New ( )
static

Method for creation through the object factory.

template<class TImage >
void rtk::DeconstructImageFilter< TImage >::operator= ( const Self )
private
template<class TImage >
void rtk::DeconstructImageFilter< TImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected
template<class TImage >
virtual void rtk::DeconstructImageFilter< TImage >::SetNumberOfLevels ( unsigned int  levels)
inlinevirtual
template<class TImage >
virtual void rtk::DeconstructImageFilter< TImage >::SetOrder ( unsigned int  _arg)
virtual

Member Data Documentation

template<class TImage >
const unsigned int rtk::DeconstructImageFilter< TImage >::ImageDimension = TImage::ImageDimension
static

ImageDimension enumeration.

Definition at line 137 of file rtkDeconstructImageFilter.h.

template<class TImage >
std::vector<typename ConvolutionFilterType::Pointer> rtk::DeconstructImageFilter< TImage >::m_ConvolutionFilters
private

Definition at line 233 of file rtkDeconstructImageFilter.h.

template<class TImage >
std::vector<typename DownsampleImageFilterType::Pointer> rtk::DeconstructImageFilter< TImage >::m_DownsampleFilters
private

Definition at line 234 of file rtkDeconstructImageFilter.h.

template<class TImage >
std::vector<typename InputImageType::IndexType> rtk::DeconstructImageFilter< TImage >::m_Indices
private
template<class TImage >
unsigned int rtk::DeconstructImageFilter< TImage >::m_NumberOfLevels
private
template<class TImage >
unsigned int rtk::DeconstructImageFilter< TImage >::m_Order
private

Definition at line 227 of file rtkDeconstructImageFilter.h.

template<class TImage >
std::vector<typename PadFilterType::Pointer> rtk::DeconstructImageFilter< TImage >::m_PadFilters
private

Definition at line 232 of file rtkDeconstructImageFilter.h.

template<class TImage >
std::vector<typename ConvolutionFilterType::PassVector> rtk::DeconstructImageFilter< TImage >::m_PassVectors
private

Definition at line 236 of file rtkDeconstructImageFilter.h.

template<class TImage >
bool rtk::DeconstructImageFilter< TImage >::m_PipelineConstructed
private

Definition at line 228 of file rtkDeconstructImageFilter.h.

template<class TImage >
std::vector<typename InputImageType::SizeType> rtk::DeconstructImageFilter< TImage >::m_Sizes
private

The documentation for this class was generated from the following file: