22 #ifndef otbLabelToBoundaryImageFilter_h
23 #define otbLabelToBoundaryImageFilter_h
43 template <
class TInput,
class TOutput>
57 unsigned char output = 1;
58 if (input.GetCenterPixel() == input.GetPixel(5) && input.GetCenterPixel() == input.GetPixel(7) && input.GetCenterPixel() == input.GetPixel(8))
62 return static_cast<TOutput
>(output);
79 template <
class TInputImage,
class TOutputImage>
82 TInputImage, TOutputImage, Functor::LabelToBoundaryFunctor<typename itk::ConstNeighborhoodIterator<TInputImage>, typename TOutputImage::PixelType>>
Functor to extract segmentation boundaries.
TOutput operator()(const TInput &input)
virtual ~LabelToBoundaryFunctor()
Filter to extract boundaries of a label image.
LabelToBoundaryImageFilter Self
~LabelToBoundaryImageFilter() override
LabelToBoundaryImageFilter()
itk::SmartPointer< Self > Pointer
LabelToBoundaryImageFilter(const Self &)
UnaryFunctorNeighborhoodImageFilter< TInputImage, TOutputImage, Functor::LabelToBoundaryFunctor< typename itk::ConstNeighborhoodIterator< TInputImage >, typename TOutputImage::PixelType > > Superclass
itk::SmartPointer< const Self > ConstPointer
void operator=(const Self &)
Implements neighborhood-wise generic operation on image.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.