28 #ifndef itkCropLabelMapFilter_h
29 #define itkCropLabelMapFilter_h
54 template<
typename TInputImage >
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);
107 this->SetUpperBoundaryCropSize(size);
108 this->SetLowerBoundaryCropSize(size);
114 m_UpperBoundaryCropSize.Fill(0);
115 m_LowerBoundaryCropSize.Fill(0);
120 void GenerateOutputInformation()
override;
122 void PrintSelf(std::ostream & os,
Indent indent)
const override;
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkCropLabelMapFilter.hxx"
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::PixelType InputImagePixelType
typename Superclass::OutputImagePointer OutputImagePointer
Light weight base class for most itk classes.
typename Superclass::OutputImagePixelType OutputImagePixelType
typename InputImageType::IndexType IndexType
typename InputImageType::ConstPointer InputImageConstPointer
SizeType m_UpperBoundaryCropSize
typename Superclass::OutputImageType OutputImageType
typename InputImageType::LabelObjectType LabelObjectType
ImageBaseType::SizeType SizeType
void SetCropSize(const SizeType &size)
ImageBaseType::IndexType IndexType
typename InputImageType::PixelType PixelType
typename Superclass::OutputImageRegionType OutputImageRegionType
typename InputImageType::SizeType SizeType
typename InputImageType::RegionType RegionType
Control indentation during Print() invocation.
TInputImage InputImageType
SizeType m_LowerBoundaryCropSize
ImageBaseType::RegionType RegionType
typename InputImageType::Pointer InputImagePointer
Change the region of a label map.