13 #ifndef mitkSurfaceToImageFilter_h
14 #define mitkSurfaceToImageFilter_h
48 itkFactorylessNewMacro(Self);
50 itkSetMacro(MakeOutputBinary,
bool);
51 itkGetMacro(MakeOutputBinary,
bool);
52 itkBooleanMacro(MakeOutputBinary);
54 itkSetMacro(UShortBinaryPixelType,
bool);
55 itkGetMacro(UShortBinaryPixelType,
bool);
56 itkBooleanMacro(UShortBinaryPixelType);
58 itkGetConstMacro(BackgroundValue,
float);
59 itkSetMacro(BackgroundValue,
float);
61 itkGetConstMacro(Tolerance,
double);
62 itkSetMacro(Tolerance,
double);
79 using itk::ProcessObject::SetInput;
Superclass of all classes generating Images (instances of class Image) as output.
Image class for storing multi-dimensional medical image data.
Converts surface data to pixel data.
virtual void SetInput(const mitk::Surface *surface)
Set the input surface to be converted.
void GenerateData() override
Perform the surface-to-image conversion.
void SetImage(const mitk::Image *source)
Set the reference image that defines the output geometry.
const mitk::Surface * GetInput(void)
Get the input surface.
bool m_UShortBinaryPixelType
const mitk::Image * GetImage(void)
Get the reference image.
void GenerateOutputInformation() override
Generate output information based on the input image.
~SurfaceToImageFilter() override
mitkClassMacro(SurfaceToImageFilter, ImageSource)
void GenerateInputRequestedRegion() override
Generate the input requested region.
void Stencil3DImage(int time=0)
Perform the 3D stencil operation for the given time step.
Data class for storing polygonal surfaces (vtkPolyData).
Find image slices visible on a given plane.
MITKCORE_EXPORT mitk::Image::Pointer ConvertSurfaceToLabelMask(const mitk::Image *refImage, const mitk::Surface *surface)
Convert a surface into a binary mask image suitable for use as segmentation label content.