 |
ITK
5.4.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkChangeLabelImageFilter_h
19 #define itkChangeLabelImageFilter_h
53 template <
typename TInput,
typename TOutput>
75 return m_ChangeMap[original];
79 SetChange(
const TInput & original,
const TOutput & result)
81 m_ChangeMap[original] = result;
87 m_ChangeMap = changeMap;
99 const typename ChangeMapType::const_iterator it = m_ChangeMap.find(A);
100 if (it != m_ChangeMap.end())
112 template <
typename TInputImage,
typename TOutputImage>
117 Functor::ChangeLabel<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
157 #ifdef ITK_USE_CONCEPT_CHECKING
168 PrintSelf(std::ostream & os,
Indent indent)
const override;
172 #ifndef ITK_MANUAL_INSTANTIATION
173 # include "itkChangeLabelImageFilter.hxx"
TOutput operator()(const TInput &A) const
Implements pixel-wise generic operation on one image.
void SetChangeMap(const ChangeMapType &changeMap)
std::map< TInputImage::PixelType, TOutputImage::PixelType > ChangeMapType
Control indentation during Print() invocation.
void SetChange(const TInput &original, const TOutput &result)
Base class for all process objects that output image data.
typename TInputImage::PixelType InputPixelType
bool operator==(const ChangeLabel &other) const
ChangeMapType m_ChangeMap
TOutput GetChange(const TInput &original)
std::map< InputPixelType, OutputPixelType > ChangeMapType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename TOutputImage::PixelType OutputPixelType