13 #ifndef mitkBoundingShapeCropper_h
14 #define mitkBoundingShapeCropper_h
40 itkFactorylessNewMacro(
Self);
60 itkSetMacro(UseWholeInputRegion,
bool);
61 itkGetMacro(UseWholeInputRegion,
bool);
71 itkSetMacro(UseCropTimeStepOnly,
bool);
72 itkGetMacro(UseCropTimeStepOnly,
bool);
90 template <
typename TPixel,
unsigned int VImageDimension>
91 void CutImage(itk::Image<TPixel, VImageDimension> *inputItkImage,
int timeStep);
104 mitk::GeometryData::Pointer m_Geometry;
114 bool m_UseCropTimeStepOnly;
119 int m_CurrentTimeStep;
123 bool m_UseWholeInputRegion;
135 typedef itk::ImageRegion<5> RegionType;
141 itk::TimeStamp m_TimeOfHeaderInitialization;
#define MITKBOUNDINGSHAPE_EXPORT
Crops or masks an Boundingbox defined by GeometryData out of an mitk Image.
virtual const PixelType GetOutputPixelType()
void CutImage(itk::Image< TPixel, VImageDimension > *inputItkImage, int timeStep)
Template Function for cropping and masking images with scalar pixel type.
void SetGeometry(const mitk::GeometryData *geometry)
Set geometry of the bounding object.
void GenerateOutputInformation() override
virtual void ComputeData(mitk::Image *input3D, int boTimeStep)
Process the image and create the output.
void GenerateData() override
mitkClassMacro(BoundingShapeCropper, ImageToImageFilter)
~BoundingShapeCropper() override
void GenerateInputRequestedRegion() override
Reimplemented from ImageToImageFilter.
Data class only having a BaseGeometry but not containing any specific data.
Superclass of all classes generating Images (instances of class Image) as output.
Superclass of all classes having one or more Images as input and generating Images as output.
Image class for storing images.
Class for defining the data type of pixels.
itk::ImageRegion< RegionDimension > RegionType
Find image slices visible on a given plane.