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 > >
123 typename TInputImage::PixelType,
124 typename TOutputImage::PixelType >
150 void ClearChangeMap();
152 #ifdef ITK_USE_CONCEPT_CHECKING
164 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkChangeLabelImageFilter.hxx"
TOutputImage::PixelType OutputPixelType
std::map< TInput, TOutput > ChangeMapType
SmartPointer< const Self > ConstPointer
TInputImage::PixelType InputPixelType
void SetChangeMap(const ChangeMapType &changeMap)
Base class for all process objects that output image data.
void SetChange(const TInput &original, const TOutput &result)
TOutput operator()(const TInput &A) const
ChangeMapType m_ChangeMap
ChangeLabelImageFilter Self
TOutput GetChange(const TInput &original)
SmartPointer< Self > Pointer
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::ChangeLabel< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
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
std::map< InputPixelType, OutputPixelType > ChangeMapType
virtual ~ChangeLabelImageFilter() override