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::LookupTableImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <rtkLookupTableImageFilter.h>

+ Inheritance diagram for rtk::LookupTableImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for rtk::LookupTableImageFilter< TInputImage, TOutputImage >:

Public Types

using ConstPointer = itk::SmartPointer< const Self >
 
using FunctorType = Functor::LUT< typename TInputImage::PixelType, typename TOutputImage::PixelType >
 
using LookupTableType = typename FunctorType::LookupTableType
 
using Pointer = itk::SmartPointer< Self >
 
using Self = LookupTableImageFilter
 
using Superclass = itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, FunctorType >
 

Public Member Functions

void BeforeThreadedGenerateData () override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const LookupTableTypeGetLookupTable () const
 
virtual LookupTableTypeGetModifiableLookupTable ()
 
virtual const char * GetNameOfClass () const
 
virtual void SetLookupTable (LookupTableType *_arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 LookupTableImageFilter ()=default
 
 ~LookupTableImageFilter () override=default
 

Protected Attributes

LookupTableType::Pointer m_LookupTable
 

Detailed Description

template<class TInputImage, class TOutputImage>
class rtk::LookupTableImageFilter< TInputImage, TOutputImage >

Function to do the lookup operation.

Converts values of an input image using lookup table.

The lookup table is a 1D image. Two cases:

Author
Simon Rit

The lookup table is passed via a functor of type Functor::LUT. If the image is of type integer, it directly reads the corresponding value in the lookup table. If the lookup table is of type double or float, it uses the meta- information of the lookup table (origin and spacing) to locate a continuous index and interpolate at the corresponding location.

Author
Simon Rit

Definition at line 145 of file rtkLookupTableImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage, class TOutputImage>
using rtk::LookupTableImageFilter< TInputImage, TOutputImage >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 161 of file rtkLookupTableImageFilter.h.

◆ FunctorType

template<class TInputImage, class TOutputImage>
using rtk::LookupTableImageFilter< TInputImage, TOutputImage >::FunctorType = Functor::LUT<typename TInputImage::PixelType, typename TOutputImage::PixelType>

Lookup table type definition.

Definition at line 154 of file rtkLookupTableImageFilter.h.

◆ LookupTableType

template<class TInputImage, class TOutputImage>
using rtk::LookupTableImageFilter< TInputImage, TOutputImage >::LookupTableType = typename FunctorType::LookupTableType

Definition at line 155 of file rtkLookupTableImageFilter.h.

◆ Pointer

template<class TInputImage, class TOutputImage>
using rtk::LookupTableImageFilter< TInputImage, TOutputImage >::Pointer = itk::SmartPointer<Self>

Definition at line 160 of file rtkLookupTableImageFilter.h.

◆ Self

template<class TInputImage, class TOutputImage>
using rtk::LookupTableImageFilter< TInputImage, TOutputImage >::Self = LookupTableImageFilter

Standard class type alias.

Definition at line 158 of file rtkLookupTableImageFilter.h.

◆ Superclass

template<class TInputImage, class TOutputImage>
using rtk::LookupTableImageFilter< TInputImage, TOutputImage >::Superclass = itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, FunctorType>

Definition at line 159 of file rtkLookupTableImageFilter.h.

Constructor & Destructor Documentation

◆ LookupTableImageFilter()

template<class TInputImage, class TOutputImage>
rtk::LookupTableImageFilter< TInputImage, TOutputImage >::LookupTableImageFilter ( )
protecteddefault

◆ ~LookupTableImageFilter()

template<class TInputImage, class TOutputImage>
rtk::LookupTableImageFilter< TInputImage, TOutputImage >::~LookupTableImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ BeforeThreadedGenerateData()

template<class TInputImage, class TOutputImage>
void rtk::LookupTableImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( )
overridevirtual

Update the LUT before using it to process the data in case it is the result of a pipeline.

Reimplemented from itk::ImageSource< TOutputImage >.

Reimplemented in rtk::LUTbasedVariableI0RawToAttenuationImageFilter< TInputImage, TOutputImage >.

◆ CreateAnother()

template<class TInputImage, class TOutputImage>
virtual::itk::LightObject::Pointer rtk::LookupTableImageFilter< TInputImage, TOutputImage >::CreateAnother ( ) const
virtual

◆ GetLookupTable()

template<class TInputImage, class TOutputImage>
virtual const LookupTableType* rtk::LookupTableImageFilter< TInputImage, TOutputImage >::GetLookupTable ( ) const
virtual

◆ GetModifiableLookupTable()

template<class TInputImage, class TOutputImage>
virtual LookupTableType* rtk::LookupTableImageFilter< TInputImage, TOutputImage >::GetModifiableLookupTable ( )
virtual

Get lookup table.

◆ GetNameOfClass()

template<class TInputImage, class TOutputImage>
virtual const char* rtk::LookupTableImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

◆ New()

template<class TInputImage, class TOutputImage>
static Pointer rtk::LookupTableImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

◆ SetLookupTable()

template<class TInputImage, class TOutputImage>
virtual void rtk::LookupTableImageFilter< TInputImage, TOutputImage >::SetLookupTable ( LookupTableType _arg)
inlinevirtual

Set lookup table.

Definition at line 176 of file rtkLookupTableImageFilter.h.

Member Data Documentation

◆ m_LookupTable

template<class TInputImage, class TOutputImage>
LookupTableType::Pointer rtk::LookupTableImageFilter< TInputImage, TOutputImage >::m_LookupTable
protected

Definition at line 203 of file rtkLookupTableImageFilter.h.


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