13 #ifndef mitkBinaryImageToLabelSetImageFilter_h
14 #define mitkBinaryImageToLabelSetImageFilter_h
30 itkFactorylessNewMacro(Self);
36 itkSetMacro(FullyConnected,
bool);
37 itkGetConstMacro(FullyConnected,
bool);
39 itkSetMacro(ForegroundValue,
unsigned int);
40 itkGetConstMacro(ForegroundValue,
unsigned int);
42 itkSetMacro(OutputIsLabelSetImage,
bool);
43 itkGetConstMacro(OutputIsLabelSetImage,
bool);
46 using Superclass::SetInput;
51 template <
typename TPixel,
unsigned int VImageDimension>
52 void ApplyBinaryImageToLabelMapFilter(
const itk::Image<TPixel, VImageDimension>* inputImage);
54 void GenerateData()
override;
55 void VerifyInputInformation()
const override;
56 void VerifyInputImage(
const mitk::Image* inputImage)
const;
58 bool m_FullyConnected =
true;
59 unsigned int m_ForegroundValue = 1;
60 bool m_OutputIsLabelSetImage =
false;
#define MITKMODELFIT_EXPORT
Converts an binary image to a MultiLabelSegmentation. The amount of labels equals the connected compo...
void SetInput(const InputImageType *image) override
Set the image input of this process object.
void SetInput(unsigned int index, const InputImageType *image) override
Set the image input at the specified index.
mitkClassMacro(BinaryImageToLabelSetImageFilter, ImageToImageFilter)
Superclass of all classes having one or more Images as input and generating Images as output.
Image class for storing multi-dimensional medical image data.
Find image slices visible on a given plane.