28 #ifndef itkCropLabelMapFilter_h
29 #define itkCropLabelMapFilter_h
54 template <
typename TInputImage>
73 using typename Superclass::OutputImageType;
74 using typename Superclass::OutputImagePointer;
75 using typename Superclass::OutputImageRegionType;
76 using typename Superclass::OutputImagePixelType;
86 using PixelType =
typename InputImageType::PixelType;
94 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
95 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
96 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
99 itkSetMacro(UpperBoundaryCropSize,
SizeType);
100 itkGetMacro(UpperBoundaryCropSize,
SizeType);
101 itkSetMacro(LowerBoundaryCropSize,
SizeType);
102 itkGetMacro(LowerBoundaryCropSize,
SizeType);
108 this->SetUpperBoundaryCropSize(size);
109 this->SetLowerBoundaryCropSize(size);
115 m_UpperBoundaryCropSize.Fill(0);
116 m_LowerBoundaryCropSize.Fill(0);
122 GenerateOutputInformation()
override;
125 PrintSelf(std::ostream & os,
Indent indent)
const override;
133 #ifndef ITK_MANUAL_INSTANTIATION
134 # include "itkCropLabelMapFilter.hxx"