18 #ifndef itkCropImageFilter_h
19 #define itkCropImageFilter_h
42 template<
typename TInputImage,
typename TOutputImage >
77 static constexpr
unsigned int InputImageDimension = Superclass::InputImageDimension;
78 static constexpr
unsigned int OutputImageDimension = Superclass::OutputImageDimension;
81 itkSetMacro(UpperBoundaryCropSize,
SizeType);
82 itkGetConstMacro(UpperBoundaryCropSize,
SizeType);
83 itkSetMacro(LowerBoundaryCropSize,
SizeType);
84 itkGetConstMacro(LowerBoundaryCropSize,
SizeType);
89 this->SetUpperBoundaryCropSize(s);
90 this->SetLowerBoundaryCropSize(s);
93 #ifdef ITK_USE_CONCEPT_CHECKING
105 this->SetDirectionCollapseToSubmatrix();
106 m_UpperBoundaryCropSize.Fill(0);
107 m_LowerBoundaryCropSize.Fill(0);
111 void PrintSelf(std::ostream & os,
Indent indent)
const override;
113 void GenerateOutputInformation()
override;
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkCropImageFilter.hxx"
typename Superclass::OutputImagePixelType OutputImagePixelType
InputImageSizeType SizeType
typename InputImageType::RegionType InputImageRegionType
typename Superclass::OutputImageRegionType OutputImageRegionType
SizeType m_UpperBoundaryCropSize
typename Superclass::InputImageSizeType InputImageSizeType
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)
SizeType m_LowerBoundaryCropSize
typename InputImageType::PixelType InputImagePixelType
Control indentation during Print() invocation.
Base class for filters that take an image as input and overwrite that image as the output...
#define itkConceptMacro(name, concept)