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

#include <rtkReconstructImageFilter.h>

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

Public Types

using AddFilterType = itk::NaryAddImageFilter< InputImageType, InputImageType >
 
using ConstPointer = itk::SmartPointer< const Self >
 
using ConvolutionFilterType = rtk::DaubechiesWaveletsConvolutionImageFilter< InputImageType >
 
using InputImageConstPointer = typename Superclass::InputImageConstPointer
 
using InputImagePointer = typename Superclass::InputImagePointer
 
using InputImageType = typename Superclass::InputImageType
 
using InternalPixelType = typename TImage::InternalPixelType
 
using OutputImagePointer = typename Superclass::OutputImagePointer
 
using OutputImageType = typename Superclass::OutputImageType
 
using PixelType = typename TImage::PixelType
 
using Pointer = itk::SmartPointer< Self >
 
using Self = ReconstructImageFilter
 
using Superclass = itk::ImageToImageFilter< TImage, TImage >
 
using UpsampleImageFilterType = rtk::UpsampleImageFilter< InputImageType >
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetNumberOfLevels ()
 
void SetIndices (typename InputImageType::IndexType *indicesVector)
 
void SetSizes (typename InputImageType::SizeType *sizesVector)
 
void VerifyInputInformation () const override
 
virtual void SetNumberOfLevels (unsigned int levels)
 
virtual unsigned int GetOrder ()
 
virtual void SetOrder (unsigned int _arg)
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static constexpr unsigned int ImageDimension = TImage::ImageDimension
 

Protected Member Functions

virtual unsigned int CalculateNumberOfInputs ()
 
void GenerateData () override
 
void GeneratePassVectors ()
 
void ModifyInputOutputStorage ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ReconstructImageFilter ()
 
 ~ReconstructImageFilter () override=default
 

Private Attributes

std::vector< typename AddFilterType::Pointerm_AddFilters
 
std::vector< typename ConvolutionFilterType::Pointerm_ConvolutionFilters
 
InputImageType::IndexTypem_Indices
 
unsigned int m_NumberOfLevels { 5 }
 
unsigned int m_Order { 3 }
 
std::vector< typename ConvolutionFilterType::PassVectorm_PassVectors
 
bool m_PipelineConstructed
 
InputImageType::SizeTypem_Sizes
 
std::vector< typename UpsampleImageFilterType::Pointerm_UpsampleFilters
 

Detailed Description

template<class TImage>
class rtk::ReconstructImageFilter< TImage >

An image filter that reconstructs 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_25.png
Test:
rtkwaveletstest.cxx
Author
Cyril Mory

Definition at line 123 of file rtkReconstructImageFilter.h.

Member Typedef Documentation

◆ AddFilterType

Typedefs for pipeline's subfilters

Definition at line 154 of file rtkReconstructImageFilter.h.

◆ ConstPointer

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 133 of file rtkReconstructImageFilter.h.

◆ ConvolutionFilterType

Definition at line 155 of file rtkReconstructImageFilter.h.

◆ InputImageConstPointer

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::InputImageConstPointer = typename Superclass::InputImageConstPointer

Definition at line 149 of file rtkReconstructImageFilter.h.

◆ InputImagePointer

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::InputImagePointer = typename Superclass::InputImagePointer

Definition at line 147 of file rtkReconstructImageFilter.h.

◆ InputImageType

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::InputImageType = typename Superclass::InputImageType

Inherit types from Superclass.

Definition at line 145 of file rtkReconstructImageFilter.h.

◆ InternalPixelType

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::InternalPixelType = typename TImage::InternalPixelType

Definition at line 151 of file rtkReconstructImageFilter.h.

◆ OutputImagePointer

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::OutputImagePointer = typename Superclass::OutputImagePointer

Definition at line 148 of file rtkReconstructImageFilter.h.

◆ OutputImageType

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::OutputImageType = typename Superclass::OutputImageType

Definition at line 146 of file rtkReconstructImageFilter.h.

◆ PixelType

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::PixelType = typename TImage::PixelType

Definition at line 150 of file rtkReconstructImageFilter.h.

◆ Pointer

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::Pointer = itk::SmartPointer<Self>

Definition at line 132 of file rtkReconstructImageFilter.h.

◆ Self

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::Self = ReconstructImageFilter

Standard class type alias.

Definition at line 130 of file rtkReconstructImageFilter.h.

◆ Superclass

template<class TImage >
using rtk::ReconstructImageFilter< TImage >::Superclass = itk::ImageToImageFilter<TImage, TImage>

Definition at line 131 of file rtkReconstructImageFilter.h.

◆ UpsampleImageFilterType

Definition at line 156 of file rtkReconstructImageFilter.h.

Constructor & Destructor Documentation

◆ ReconstructImageFilter()

template<class TImage >
rtk::ReconstructImageFilter< TImage >::ReconstructImageFilter ( )
protected

◆ ~ReconstructImageFilter()

template<class TImage >
rtk::ReconstructImageFilter< TImage >::~ReconstructImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ CalculateNumberOfInputs()

template<class TImage >
virtual unsigned int rtk::ReconstructImageFilter< TImage >::CalculateNumberOfInputs ( )
protectedvirtual

Calculates the number of ProcessObject output images

◆ CreateAnother()

template<class TImage >
virtual::itk::LightObject::Pointer rtk::ReconstructImageFilter< TImage >::CreateAnother ( ) const
virtual

Reimplemented from itk::Object.

◆ GenerateData()

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::GenerateData ( )
overrideprotectedvirtual

Does the real work.

Reimplemented from itk::ImageSource< TOutputImage >.

◆ GenerateInputRequestedRegion()

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::GenerateInputRequestedRegion ( )
overridevirtual

ReconstructImageFilter requests the largest possible region of all its inputs.

Reimplemented from itk::ProcessObject.

◆ GenerateOutputInformation()

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::GenerateOutputInformation ( )
overridevirtual

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

Reimplemented from itk::ProcessObject.

◆ GeneratePassVectors()

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

Creates and sets the kernel sources to generate all kernels.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

◆ GetNumberOfLevels()

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

Get the number of input levels (per image).

Definition at line 169 of file rtkReconstructImageFilter.h.

References rtk::ReconstructImageFilter< TImage >::m_NumberOfLevels.

◆ GetOrder()

template<class TImage >
virtual unsigned int rtk::ReconstructImageFilter< TImage >::GetOrder ( )
virtual

Get/Set the order of the wavelet filters

◆ ModifyInputOutputStorage()

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

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

Referenced by rtk::ReconstructImageFilter< TImage >::SetNumberOfLevels().

◆ New()

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

Method for creation through the object factory.

◆ PrintSelf()

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotectedvirtual

Reimplemented from itk::ImageSource< TOutputImage >.

◆ SetIndices()

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::SetIndices ( typename InputImageType::IndexType indicesVector)
inline

◆ SetNumberOfLevels()

template<class TImage >
virtual void rtk::ReconstructImageFilter< TImage >::SetNumberOfLevels ( unsigned int  levels)
inlinevirtual

◆ SetOrder()

template<class TImage >
virtual void rtk::ReconstructImageFilter< TImage >::SetOrder ( unsigned int  _arg)
virtual

Get/Set the order of the wavelet filters

◆ SetSizes()

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::SetSizes ( typename InputImageType::SizeType sizesVector)
inline

◆ VerifyInputInformation()

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::VerifyInputInformation ( ) const
inlineoverride

ReconstructImageFilter uses input images of different sizes, therefore the VerifyInputInformation method has to be reimplemented.

Definition at line 191 of file rtkReconstructImageFilter.h.

Member Data Documentation

◆ ImageDimension

template<class TImage >
constexpr unsigned int rtk::ReconstructImageFilter< TImage >::ImageDimension = TImage::ImageDimension
static

ImageDimension enumeration.

Definition at line 142 of file rtkReconstructImageFilter.h.

◆ m_AddFilters

template<class TImage >
std::vector<typename AddFilterType::Pointer> rtk::ReconstructImageFilter< TImage >::m_AddFilters
private

Definition at line 245 of file rtkReconstructImageFilter.h.

◆ m_ConvolutionFilters

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

Definition at line 247 of file rtkReconstructImageFilter.h.

◆ m_Indices

template<class TImage >
InputImageType::IndexType* rtk::ReconstructImageFilter< TImage >::m_Indices
private

◆ m_NumberOfLevels

template<class TImage >
unsigned int rtk::ReconstructImageFilter< TImage >::m_NumberOfLevels { 5 }
private

◆ m_Order

template<class TImage >
unsigned int rtk::ReconstructImageFilter< TImage >::m_Order { 3 }
private

Definition at line 238 of file rtkReconstructImageFilter.h.

◆ m_PassVectors

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

Definition at line 251 of file rtkReconstructImageFilter.h.

◆ m_PipelineConstructed

template<class TImage >
bool rtk::ReconstructImageFilter< TImage >::m_PipelineConstructed
private
Initial value:
{
false
}

Definition at line 239 of file rtkReconstructImageFilter.h.

◆ m_Sizes

template<class TImage >
InputImageType::SizeType* rtk::ReconstructImageFilter< TImage >::m_Sizes
private

◆ m_UpsampleFilters

template<class TImage >
std::vector<typename UpsampleImageFilterType::Pointer> rtk::ReconstructImageFilter< TImage >::m_UpsampleFilters
private

Definition at line 249 of file rtkReconstructImageFilter.h.


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