13 #ifndef mitkAutoCropImageFilter_h
14 #define mitkAutoCropImageFilter_h
22 #include <itkImageRegion.h>
60 itkFactorylessNewMacro(
Self);
64 itkGetConstMacro(BackgroundValue,
float);
65 itkSetMacro(BackgroundValue,
float);
67 itkGetConstMacro(MarginFactor,
float);
68 itkSetMacro(MarginFactor,
float);
73 void SetCroppingRegion(
RegionType overrideRegion);
75 virtual const PixelType GetOutputPixelType();
85 void ComputeNewImageBounds();
88 template <
typename TPixel,
unsigned int VImageDimension>
89 void ITKCrop3DImage(itk::Image<TPixel, VImageDimension> *inputItkImage,
unsigned int timestep);
92 void GenerateOutputInformation()
override;
95 void GenerateInputRequestedRegion()
override;
98 void GenerateData()
override;