RTK  2.6.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 unsigned int GetNumberOfLevels ()
 
void SetIndices (typename InputImageType::IndexType *indicesVector)
 
void SetSizes (typename InputImageType::SizeType *sizesVector)
 
void VerifyInputInformation () const override
 
virtual const char * GetNameOfClass () const
 
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 https://www.insight-journal.org/browse/publication/103

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 159 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 160 of file rtkReconstructImageFilter.h.

◆ InputImageConstPointer

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

Definition at line 154 of file rtkReconstructImageFilter.h.

◆ InputImagePointer

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

Definition at line 152 of file rtkReconstructImageFilter.h.

◆ InputImageType

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

Inherit types from Superclass.

Definition at line 150 of file rtkReconstructImageFilter.h.

◆ InternalPixelType

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

Definition at line 156 of file rtkReconstructImageFilter.h.

◆ OutputImagePointer

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

Definition at line 153 of file rtkReconstructImageFilter.h.

◆ OutputImageType

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

Definition at line 151 of file rtkReconstructImageFilter.h.

◆ PixelType

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

Definition at line 155 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 161 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 174 of file rtkReconstructImageFilter.h.

◆ 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...

◆ 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

Definition at line 206 of file rtkReconstructImageFilter.h.

◆ SetNumberOfLevels()

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

Set the number of input levels.

Definition at line 165 of file rtkReconstructImageFilter.h.

◆ 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

Definition at line 200 of file rtkReconstructImageFilter.h.

◆ VerifyInputInformation()

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

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

Reimplemented from itk::ProcessObject.

Definition at line 196 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 147 of file rtkReconstructImageFilter.h.

◆ m_AddFilters

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

Definition at line 250 of file rtkReconstructImageFilter.h.

◆ m_ConvolutionFilters

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

Definition at line 252 of file rtkReconstructImageFilter.h.

◆ m_Indices

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

Definition at line 249 of file rtkReconstructImageFilter.h.

◆ m_NumberOfLevels

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

Definition at line 242 of file rtkReconstructImageFilter.h.

◆ m_Order

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

Definition at line 243 of file rtkReconstructImageFilter.h.

◆ m_PassVectors

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

Definition at line 256 of file rtkReconstructImageFilter.h.

◆ m_PipelineConstructed

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

Definition at line 244 of file rtkReconstructImageFilter.h.

◆ m_Sizes

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

Definition at line 248 of file rtkReconstructImageFilter.h.

◆ m_UpsampleFilters

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

Definition at line 254 of file rtkReconstructImageFilter.h.


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