18#ifndef itkChangeLabelImageFilter_h
19#define itkChangeLabelImageFilter_h
53template <
typename TInput,
typename TOutput>
71 return m_ChangeMap[original];
75 SetChange(
const TInput & original,
const TOutput & result)
77 m_ChangeMap[original] = result;
83 m_ChangeMap = changeMap;
95 const typename ChangeMapType::const_iterator it = m_ChangeMap.find(A);
96 if (it != m_ChangeMap.end())
108template <
typename TInputImage,
typename TOutputImage>
113 Functor::ChangeLabel<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
153#ifdef ITK_USE_CONCEPT_CHECKING
168#ifndef ITK_MANUAL_INSTANTIATION
169# include "itkChangeLabelImageFilter.hxx"
typename TOutputImage::PixelType OutputPixelType
ChangeLabelImageFilter()=default
void SetChangeMap(const ChangeMapType &changeMap)
~ChangeLabelImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void SetChange(const InputPixelType &original, const OutputPixelType &result)
typename TInputImage::PixelType InputPixelType
std::map< InputPixelType, OutputPixelType > ChangeMapType
void SetChange(const TInput &original, const TOutput &result)
TOutput operator()(const TInput &A) const
std::map< TInput, TOutput > ChangeMapType
void SetChangeMap(const ChangeMapType &changeMap)
ChangeMapType m_ChangeMap
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ChangeLabel)
TOutput GetChange(const TInput &original)
bool operator==(const ChangeLabel &other) const
Base class for all process objects that output image data.
Control indentation during Print() invocation.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Implements pixel-wise generic operation on one image.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....