RTK  2.0.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 ()
 
virtual unsigned int GetOrder ()
 
void SetIndices (typename InputImageType::IndexType *indicesVector)
 
virtual void SetOrder (unsigned int _arg)
 
void SetSizes (typename InputImageType::SizeType *sizesVector)
 
virtual void SetNumberOfLevels (unsigned int levels)
 
void VerifyInputInformation () override
 

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 {false}
 
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_24.png
Test:
rtkwaveletstest.cxx
Author
Cyril Mory

Definition at line 114 of file rtkReconstructImageFilter.h.

Member Typedef Documentation

Typedefs for pipeline's subfilters

Definition at line 146 of file rtkReconstructImageFilter.h.

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

Definition at line 125 of file rtkReconstructImageFilter.h.

Definition at line 147 of file rtkReconstructImageFilter.h.

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

Definition at line 141 of file rtkReconstructImageFilter.h.

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

Definition at line 139 of file rtkReconstructImageFilter.h.

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

Inherit types from Superclass.

Definition at line 137 of file rtkReconstructImageFilter.h.

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

Definition at line 143 of file rtkReconstructImageFilter.h.

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

Definition at line 140 of file rtkReconstructImageFilter.h.

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

Definition at line 138 of file rtkReconstructImageFilter.h.

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

Definition at line 142 of file rtkReconstructImageFilter.h.

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

Definition at line 124 of file rtkReconstructImageFilter.h.

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

Standard class type alias.

Definition at line 122 of file rtkReconstructImageFilter.h.

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

Definition at line 123 of file rtkReconstructImageFilter.h.

Definition at line 148 of file rtkReconstructImageFilter.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Calculates the number of ProcessObject output images

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

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

Does the real work.

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

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

ReconstructImageFilter requests the largest possible region of all its inputs.

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

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

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.

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

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

Creates and sets the kernel sources to generate all kernels.

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

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

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

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

Get/Set the order of the wavelet filters

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 >::SetIndices(), and rtk::ReconstructImageFilter< TImage >::SetNumberOfLevels().

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

Method for creation through the object factory.

template<class TImage >
void rtk::ReconstructImageFilter< TImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected
template<class TImage >
void rtk::ReconstructImageFilter< TImage >::SetIndices ( typename InputImageType::IndexType indicesVector)
inline
template<class TImage >
virtual void rtk::ReconstructImageFilter< TImage >::SetNumberOfLevels ( unsigned int  levels)
inlinevirtual
template<class TImage >
virtual void rtk::ReconstructImageFilter< TImage >::SetOrder ( unsigned int  _arg)
virtual
template<class TImage >
void rtk::ReconstructImageFilter< TImage >::SetSizes ( typename InputImageType::SizeType sizesVector)
inline
template<class TImage >
void rtk::ReconstructImageFilter< TImage >::VerifyInputInformation ( )
inlineoverride

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

Definition at line 179 of file rtkReconstructImageFilter.h.

Member Data Documentation

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

ImageDimension enumeration.

Definition at line 134 of file rtkReconstructImageFilter.h.

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

Definition at line 226 of file rtkReconstructImageFilter.h.

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

Definition at line 227 of file rtkReconstructImageFilter.h.

template<class TImage >
InputImageType::IndexType* rtk::ReconstructImageFilter< TImage >::m_Indices
private
template<class TImage >
unsigned int rtk::ReconstructImageFilter< TImage >::m_NumberOfLevels {5}
private
template<class TImage >
unsigned int rtk::ReconstructImageFilter< TImage >::m_Order {3}
private

Definition at line 221 of file rtkReconstructImageFilter.h.

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

Definition at line 230 of file rtkReconstructImageFilter.h.

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

Definition at line 222 of file rtkReconstructImageFilter.h.

template<class TImage >
InputImageType::SizeType* rtk::ReconstructImageFilter< TImage >::m_Sizes
private
template<class TImage >
std::vector<typename UpsampleImageFilterType::Pointer> rtk::ReconstructImageFilter< TImage >::m_UpsampleFilters
private

Definition at line 228 of file rtkReconstructImageFilter.h.


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