18 #ifndef itkChangeLabelImageFilter_h
19 #define itkChangeLabelImageFilter_h
52 template<
typename TInput,
typename TOutput >
72 return !( *
this != other );
77 return m_ChangeMap[original];
80 void SetChange(
const TInput & original,
const TOutput & result)
82 m_ChangeMap[original] = result;
87 m_ChangeMap = changeMap;
97 const typename ChangeMapType::const_iterator it = m_ChangeMap.find(A);
98 if ( it != m_ChangeMap.end() )
110 template<
typename TInputImage,
typename TOutputImage >
114 Functor::ChangeLabel<
115 typename TInputImage::PixelType,
116 typename TOutputImage::PixelType > >
125 typename TInputImage::PixelType,
126 typename TOutputImage::PixelType >
152 void ClearChangeMap();
154 #ifdef ITK_USE_CONCEPT_CHECKING
166 void PrintSelf(std::ostream & os,
Indent indent)
const override;
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkChangeLabelImageFilter.hxx"
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
void SetChangeMap(const ChangeMapType &changeMap)
Base class for all process objects that output image data.
std::map< TInputImage::PixelType, TOutputImage::PixelType > ChangeMapType
void SetChange(const TInput &original, const TOutput &result)
TOutput operator()(const TInput &A) const
ChangeMapType m_ChangeMap
typename TInputImage::PixelType InputPixelType
TOutput GetChange(const TInput &original)
std::map< InputPixelType, OutputPixelType > ChangeMapType
Implements pixel-wise generic operation on one image.
Control indentation during Print() invocation.
#define itkConceptMacro(name, concept)
bool operator==(const ChangeLabel &other) const
bool operator!=(const ChangeLabel &other) const
typename TOutputImage::PixelType OutputPixelType