28#ifndef itkInPlaceLabelMapFilter_h
29#define itkInPlaceLabelMapFilter_h
82template <
typename TInputImage>
101 using typename Superclass::OutputImageType;
102 using typename Superclass::OutputImagePointer;
103 using typename Superclass::OutputImageRegionType;
104 using typename Superclass::OutputImagePixelType;
121 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
122 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
126 itkSetMacro(InPlace,
bool);
127 itkGetMacro(InPlace,
bool);
128 itkBooleanMacro(InPlace);
176 return this->GetOutput();
180 bool m_InPlace{
true };
184#ifndef ITK_MANUAL_INSTANTIATION
185# include "itkInPlaceLabelMapFilter.hxx"
Base class for filters that takes an image as input and overwrites that image as the output.
typename InputImageType::RegionType InputImageRegionType
InPlaceLabelMapFilter()=default
typename InputImageType::Pointer InputImagePointer
typename InputImageType::LabelObjectType LabelObjectType
typename InputImageType::IndexType IndexType
typename InputImageType::PixelType PixelType
void PrintSelf(std::ostream &os, Indent indent) const override
void AllocateOutputs() override
TInputImage InputImageType
typename InputImageType::RegionType RegionType
InputImageType * GetLabelMap() override
typename InputImageType::ConstPointer InputImageConstPointer
bool CanRunInPlace() const
typename InputImageType::PixelType InputImagePixelType
~InPlaceLabelMapFilter() override=default
Control indentation during Print() invocation.
Base class for filters that take an image as input and overwrite that image as the output.
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....