28 #ifndef itkInPlaceImageFilter_h
29 #define itkInPlaceImageFilter_h
71 template<
typename TInputImage,
typename TOutputImage = TInputImage >
100 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
101 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
108 itkSetMacro(InPlace,
bool);
109 itkGetConstMacro(InPlace,
bool);
110 itkBooleanMacro(InPlace);
121 virtual bool CanRunInPlace()
const;
127 void PrintSelf(std::ostream & os,
Indent indent)
const override;
143 this->InternalAllocateOutputs(IsSame<TInputImage, TOutputImage>());
155 void ReleaseInputs()
override;
161 itkGetConstMacro(RunningInPlace,
bool);
167 this->m_RunningInPlace =
false;
168 this->Superclass::AllocateOutputs();
171 void InternalAllocateOutputs(
const TrueType& );
173 bool m_InPlace{
true};
174 bool m_RunningInPlace{
false};
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "itkInPlaceImageFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
Light weight base class for most itk classes.
void AllocateOutputs() override
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
void InternalAllocateOutputs(const FalseType &)
Control indentation during Print() invocation.
Base class for filters that take an image as input and overwrite that image as the output...
ImageBaseType::RegionType RegionType
typename InputImageType::ConstPointer InputImageConstPointer