18#ifndef itkCropImageFilter_h
19#define itkCropImageFilter_h
43template <
typename TInputImage,
typename TOutputImage>
70 using typename Superclass::OutputImageIndexType;
71 using typename Superclass::InputImageIndexType;
72 using typename Superclass::OutputImageSizeType;
73 using typename Superclass::InputImageSizeType;
77 static constexpr unsigned int InputImageDimension = Superclass::InputImageDimension;
78 static constexpr unsigned int OutputImageDimension = Superclass::OutputImageDimension;
82 itkGetConstMacro(UpperBoundaryCropSize,
SizeType);
84 itkGetConstMacro(LowerBoundaryCropSize,
SizeType);
90 this->SetUpperBoundaryCropSize(s);
91 this->SetLowerBoundaryCropSize(s);
94#ifdef ITK_USE_CONCEPT_CHECKING
104 this->SetDirectionCollapseToSubmatrix();
105 m_UpperBoundaryCropSize.Fill(0);
106 m_LowerBoundaryCropSize.Fill(0);
125#ifndef ITK_MANUAL_INSTANTIATION
126# include "itkCropImageFilter.hxx"
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of t...
void SetBoundaryCropSize(const SizeType &s)
void GenerateOutputInformation() override
InputImageSizeType SizeType
~CropImageFilter() override=default
void VerifyInputInformation() const override
Verifies that the input images occupy the same physical space and the each index is at the same physi...
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....