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::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 137 of file rtkLookupTableImageFilter.h.

Member Typedef Documentation

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

Definition at line 154 of file rtkLookupTableImageFilter.h.

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 147 of file rtkLookupTableImageFilter.h.

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

Definition at line 148 of file rtkLookupTableImageFilter.h.

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

Definition at line 153 of file rtkLookupTableImageFilter.h.

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

Standard class type alias.

Definition at line 151 of file rtkLookupTableImageFilter.h.

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

Definition at line 152 of file rtkLookupTableImageFilter.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

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

Get lookup table.

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

Method for creation through the object factory.

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

Set lookup table.

Definition at line 163 of file rtkLookupTableImageFilter.h.

Member Data Documentation

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

Definition at line 184 of file rtkLookupTableImageFilter.h.


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