19#ifndef rtkLookupTableImageFilter_h
20#define rtkLookupTableImageFilter_h
46template <
class TInput,
class TOutput>
47class ITK_TEMPLATE_EXPORT
LUT
76 [[nodiscard]] LookupTableDataPointer
103template <
class TInput,
class TOutput>
114 InterpolatorType::ContinuousIndexType index;
116 return static_cast<float>(
m_Interpolator->EvaluateAtContinuousIndex(index));
123 InterpolatorType::ContinuousIndexType index;
125 return static_cast<double>(
m_Interpolator->EvaluateAtContinuousIndex(index));
143template <
class TInputImage,
class TOutputImage>
147 Functor::LUT<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
173 itkDebugMacro(
"setting " <<
"LookupTable"
176 if (this->
m_LookupTable != _arg || (_arg && _arg->GetTimeStamp() > this->GetTimeStamp()))
200#ifndef ITK_MANUAL_INSTANTIATION
201# include "rtkLookupTableImageFilter.hxx"
Templated n-dimensional image class.
virtual TPixel * GetBufferPointer()
SmartPointer< Self > Pointer
Linearly interpolate an image at specified positions.
virtual void Modified() const
Implements transparent reference counting.
Implements pixel-wise generic operation on one image.
FunctorType & GetFunctor()
double m_InverseLUTSpacing
typename LookupTableType::PixelType * LookupTableDataPointer
itk::Image< TOutput, 1 > LookupTableType
typename itk::LinearInterpolateImageFunction< LookupTableType, double > InterpolatorType
LookupTablePointer GetLookupTable()
LookupTableDataPointer m_LookupTableDataPointer
LookupTablePointer m_LookupTablePointer
typename LookupTableType::Pointer LookupTablePointer
InterpolatorPointer m_Interpolator
typename InterpolatorType::Pointer InterpolatorPointer
TOutput operator()(const TInput &val) const
LookupTableDataPointer GetLookupTable() const
bool operator!=(const LUT &lut) const
bool operator==(const LUT &lut) const
void SetLookupTable(LookupTableType *lut)
void BeforeThreadedGenerateData() override
itk::UnaryFunctorImageFilter< itk::Image< unsigned short, TOutputImage::ImageDimension >, TOutputImage, FunctorType > Superclass
~LookupTableImageFilter() override=default
typename FunctorType::LookupTableType LookupTableType
LookupTableType::Pointer m_LookupTable
Functor::LUT< typename itk::Image< unsigned short, TOutputImage::ImageDimension >::PixelType, typename TOutputImage::PixelType > FunctorType
LookupTableImageFilter()=default
LookupTableImageFilter Self
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
virtual void SetLookupTable(LookupTableType *_arg)