21 #ifndef otbChangeLabelImageFilter_hxx
22 #define otbChangeLabelImageFilter_hxx
32 template <
class TInputImage,
class TOutputImage>
40 template <
class TInputImage,
class TOutputImage>
44 if (current != result)
46 this->GetFunctor().SetChange(original, result);
55 template <
class TInputImage,
class TOutputImage>
59 this->GetFunctor().SetChangeMap(changeMap);
67 template <
class TInputImage,
class TOutputImage>
71 this->GetFunctor().ClearChangeMap();
79 template <
class TInputImage,
class TOutputImage>
82 Superclass::GenerateOutputInformation();
84 this->GetOutput()->SetNumberOfComponentsPerPixel(m_NumberOfComponentsPerPixel);
90 template <
class TInputImage,
class TOutputImage>
93 Superclass::PrintSelf(os, indent);
94 os << indent <<
"Number of components per pixel: " << m_NumberOfComponentsPerPixel;
ChangeLabelImageFilter()
Number of components per pixel.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Number of components per pixel.
TInputImage::PixelType InputPixelType
TOutputImage::PixelType OutputPixelType
void SetChangeMap(const ChangeMapType &changeMap)
void SetChange(const InputPixelType &original, const OutputPixelType &result)
void GenerateOutputInformation() override
std::map< InputPixelType, OutputPixelType > ChangeMapType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.