Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
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;
Shrink the image borders to a minimum considering a background color.
Base class of all classes providing access to parts of an image.
mitk::SlicedData::RegionType m_InputRequestedRegion
ImageType::Pointer ImagePointer
itk::ImageRegion< RegionDimension > RegionType
itk::ImageRegion< 3 > RegionType
#define MITKALGORITHMSEXT_EXPORT
RegionType::IndexType m_RegionIndex
Find image slices visible on a given plane.
Superclass of all classes generating some kind of mitk::BaseData.
RegionType::SizeType m_RegionSize
Class for defining the data type of pixels.
itk::Image< float, 3 > ImageType
#define mitkClassMacro(className, SuperClassName)
itk::TimeStamp m_TimeOfHeaderInitialization
RegionType m_CroppingRegion
mitk::ImageTimeSelector::Pointer m_TimeSelector
bool m_OverrideCroppingRegion