RTK  2.6.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rtk::AverageOutOfROIImageFilter< TInputImage, TROI > Class Template Reference

#include <rtkAverageOutOfROIImageFilter.h>

+ Inheritance diagram for rtk::AverageOutOfROIImageFilter< TInputImage, TROI >:
+ Collaboration diagram for rtk::AverageOutOfROIImageFilter< TInputImage, TROI >:

Public Types

using LowerDimImage = itk::Image< typename TInputImage::PixelType, TInputImage::ImageDimension - 1 >
 
using Pointer = itk::SmartPointer< Self >
 
using Self = AverageOutOfROIImageFilter
 
using Superclass = itk::ImageToImageFilter< TInputImage, TInputImage >
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
void SetROI (const TROI *Map)
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 AverageOutOfROIImageFilter ()
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
const itk::ImageRegionSplitterBaseGetImageRegionSplitter () const override
 
TROI::Pointer GetROI ()
 
void ThreadedGenerateData (const typename TInputImage::RegionType &outputRegionForThread, itk::ThreadIdType) override
 
 ~AverageOutOfROIImageFilter () override=default
 

Protected Attributes

itk::ImageRegionSplitterDirection::Pointer m_Splitter
 

Detailed Description

template<class TInputImage, class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
class rtk::AverageOutOfROIImageFilter< TInputImage, TROI >

Averages along the last dimension if the pixel is outside ROI.

This filter takes in input a n-D image and an (n-1)D binary image representing a region of interest (1 inside the ROI, 0 outside). The filter walks through the ROI image, and :

This filter is used in rtk4DROOSTERConeBeamReconstructionFilter in order to average along time between phases, everywhere except where movement is expected to occur.

Test:
rtkfourdroostertest.cxx
Author
Cyril Mory

Definition at line 52 of file rtkAverageOutOfROIImageFilter.h.

Member Typedef Documentation

◆ LowerDimImage

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
using rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::LowerDimImage = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>

Definition at line 61 of file rtkAverageOutOfROIImageFilter.h.

◆ Pointer

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
using rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::Pointer = itk::SmartPointer<Self>

Definition at line 60 of file rtkAverageOutOfROIImageFilter.h.

◆ Self

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
using rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::Self = AverageOutOfROIImageFilter

Standard class type alias.

Definition at line 58 of file rtkAverageOutOfROIImageFilter.h.

◆ Superclass

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
using rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::Superclass = itk::ImageToImageFilter<TInputImage, TInputImage>

Definition at line 59 of file rtkAverageOutOfROIImageFilter.h.

Constructor & Destructor Documentation

◆ AverageOutOfROIImageFilter()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::AverageOutOfROIImageFilter ( )
protected

◆ ~AverageOutOfROIImageFilter()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::~AverageOutOfROIImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ CreateAnother()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
virtual::itk::LightObject::Pointer rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::CreateAnother ( ) const
virtual

Reimplemented from itk::Object.

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
void rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::GenerateInputRequestedRegion ( )
overrideprotectedvirtual

◆ GenerateOutputInformation()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
void rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::GenerateOutputInformation ( )
overrideprotectedvirtual

Reimplemented from itk::ProcessObject.

◆ GetImageRegionSplitter()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
const itk::ImageRegionSplitterBase* rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::GetImageRegionSplitter ( ) const
overrideprotectedvirtual

Splits the OutputRequestedRegion along the first direction, not the last

Reimplemented from itk::ImageSource< TOutputImage >.

◆ GetNameOfClass()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
virtual const char* rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

◆ GetROI()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
TROI::Pointer rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::GetROI ( )
protected

◆ New()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
static Pointer rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::New ( )
static

Method for creation through the object factory.

◆ SetROI()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
void rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::SetROI ( const TROI *  Map)

The image containing the weights applied to the temporal components

◆ ThreadedGenerateData()

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
void rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::ThreadedGenerateData ( const typename TInputImage::RegionType outputRegionForThread,
itk::ThreadIdType   
)
overrideprotected

Does the real work.

Member Data Documentation

◆ m_Splitter

template<class TInputImage , class TROI = itk::Image<typename TInputImage::PixelType, TInputImage::ImageDimension - 1>>
itk::ImageRegionSplitterDirection::Pointer rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::m_Splitter
protected

Definition at line 98 of file rtkAverageOutOfROIImageFilter.h.


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