28 #ifndef itkInPlaceImageFilter_h
29 #define itkInPlaceImageFilter_h
71 template<
typename TInputImage,
typename TOutputImage = TInputImage >
98 itkStaticConstMacro(InputImageDimension,
unsigned int,
99 TInputImage::ImageDimension);
100 itkStaticConstMacro(OutputImageDimension,
unsigned int,
101 TOutputImage::ImageDimension);
109 itkSetMacro(InPlace,
bool);
110 itkGetConstMacro(InPlace,
bool);
111 itkBooleanMacro(InPlace);
122 virtual bool CanRunInPlace()
const;
128 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
142 virtual
void AllocateOutputs() ITK_OVERRIDE
144 this->InternalAllocateOutputs(IsSame<TInputImage, TOutputImage>());
156 virtual void ReleaseInputs() ITK_OVERRIDE;
162 itkGetConstMacro(RunningInPlace,
bool);
168 void InternalAllocateOutputs( const FalseType& )
170 this->m_RunningInPlace =
false;
171 this->Superclass::AllocateOutputs();
174 void InternalAllocateOutputs(
const TrueType& );
182 #ifndef ITK_MANUAL_INSTANTIATION
183 #include "itkInPlaceImageFilter.hxx"
Superclass::OutputImagePixelType OutputImagePixelType
SmartPointer< const Self > ConstPointer
Superclass::OutputImagePointer OutputImagePointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
TInputImage InputImageType
InputImageType::Pointer InputImagePointer
InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Superclass::OutputImageRegionType OutputImageRegionType
Control indentation during Print() invocation.
InputImageType::ConstPointer InputImageConstPointer
Base class for filters that take an image as input and overwrite that image as the output...
InputImageType::PixelType InputImagePixelType
SmartPointer< Self > Pointer
Superclass::OutputImageType OutputImageType