28 #ifndef itkInPlaceImageFilter_h
29 #define itkInPlaceImageFilter_h
76 template <
typename TInputImage,
typename TOutputImage = TInputImage>
105 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
106 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
113 itkSetMacro(InPlace,
bool);
114 itkGetConstMacro(InPlace,
bool);
115 itkBooleanMacro(InPlace);
127 CanRunInPlace()
const;
134 PrintSelf(std::ostream & os,
Indent indent)
const override;
151 this->InternalAllocateOutputs(IsSame<TInputImage, TOutputImage>());
164 ReleaseInputs()
override;
170 itkGetConstMacro(RunningInPlace,
bool);
177 this->m_RunningInPlace =
false;
178 this->Superclass::AllocateOutputs();
182 InternalAllocateOutputs(
const TrueType &);
184 bool m_InPlace{
true };
185 bool m_RunningInPlace{
false };
189 #ifndef ITK_MANUAL_INSTANTIATION
190 # include "itkInPlaceImageFilter.hxx"