|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbChangeLabelImageFilter_h
22 #define otbChangeLabelImageFilter_h
24 #include "itkUnaryFunctorImageFilter.h"
25 #include "itkConceptChecking.h"
26 #include "itkSimpleDataObjectDecorator.h"
46 template <
class TInput,
class TOutput>
79 return !(*
this != other);
86 void SetChange(
const TInput& original,
const TOutput& result)
123 template <
class TInputImage,
class TOutputImage>
125 :
public itk::UnaryFunctorImageFilter<TInputImage, TOutputImage,
126 Functor::VectorChangeLabel<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
131 typedef itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, Functor::VectorChangeLabel<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
156 void ClearChangeMap();
161 m_NumberOfComponentsPerPixel = nb;
162 this->GetFunctor().SetNumberOfComponentsPerPixel(m_NumberOfComponentsPerPixel);
165 itkGetMacro(NumberOfComponentsPerPixel,
unsigned int);
174 void GenerateOutputInformation()
override;
176 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
180 void operator=(
const Self&) =
delete;
188 #ifndef OTB_MANUAL_INSTANTIATION
~ChangeLabelImageFilter() override
Number of components per pixel.
ChangeLabelImageFilter Self
itk::SmartPointer< const Self > ConstPointer
void SetNumberOfComponentsPerPixel(unsigned int nb)
std::map< TInput, TOutput > ChangeMapType
ChangeMapType m_ChangeMap
unsigned int m_NumberOfComponentsPerPixel
Number of components per pixel.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
void SetChange(const TInput &original, const TOutput &result)
TInputImage::PixelType InputPixelType
virtual ~VectorChangeLabel()
void SetChangeMap(const ChangeMapType &changeMap)
TOutputImage::PixelType OutputPixelType
bool operator==(const VectorChangeLabel &other) const
unsigned int m_NumberOfComponentsPerPixel
itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::VectorChangeLabel< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
unsigned int GetNumberOfComponentsPerPixel()
TOutput GetChange(const TInput &original)
std::map< InputPixelType, OutputPixelType > ChangeMapType
TOutput::ValueType ValueType
bool operator!=(const VectorChangeLabel &other) const
TOutput operator()(const TInput &A)
itk::SmartPointer< Self > Pointer
void SetNumberOfComponentsPerPixel(unsigned int nb)