RTK  2.0.1
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
 
virtual const char * GetNameOfClass () const
 
void SetROI (const TROI *Map)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 AverageOutOfROIImageFilter ()
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
const itk::ImageRegionSplitterBaseGetImageRegionSplitter (void) 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 53 of file rtkAverageOutOfROIImageFilter.h.

Member Typedef Documentation

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 62 of file rtkAverageOutOfROIImageFilter.h.

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 61 of file rtkAverageOutOfROIImageFilter.h.

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 59 of file rtkAverageOutOfROIImageFilter.h.

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 60 of file rtkAverageOutOfROIImageFilter.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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.

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

Reimplemented from itk::ProcessObject.

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

Splits the OutputRequestedRegion along the first direction, not the last

Reimplemented from itk::ImageSource< TOutputImage >.

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

template<class TInputImage , class TROI = itk::Image< typename TInputImage::PixelType, TInputImage::ImageDimension -1 >>
TROI::Pointer rtk::AverageOutOfROIImageFilter< TInputImage, TROI >::GetROI ( )
protected
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.

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

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

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 87 of file rtkAverageOutOfROIImageFilter.h.


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