Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkMultiLabelMaskGenerator.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkMultiLabelMaskGenerator_h
14 #define mitkMultiLabelMaskGenerator_h
15 
17 #include <mitkMaskGenerator.h>
18 #include <mitkLabelSetImage.h>
19 
20 
21 namespace mitk
22 {
27 {
28 public:
31  itkNewMacro(Self);
32 
33  unsigned int GetNumberOfMasks() const override;
34 
35  itkSetConstObjectMacro(MultiLabelSegmentation, LabelSetImage);
36 
37 protected:
38  MultiLabelMaskGenerator() = default;
39  ~MultiLabelMaskGenerator() = default;
40 
41  Image::ConstPointer DoGetMask(unsigned int maskID) override;
42 
43 private:
44  mitk::LabelSetImage::ConstPointer m_MultiLabelSegmentation;
45 };
46 
47 }
48 
49 #endif
itk::SmartPointer< const Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkMaskGenerator.h
MITKIMAGESTATISTICS_EXPORT
#define MITKIMAGESTATISTICS_EXPORT
Definition: MitkImageStatisticsExports.h:15
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkImageStatisticsExports.h
mitk::MaskGenerator
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
Definition: mitkMaskGenerator.h:30
mitk::MultiLabelMaskGenerator
Class that allows to generate masks (for statistic computation) out of multi label segmentations.
Definition: mitkMultiLabelMaskGenerator.h:26
mitk::LabelSetImage
LabelSetImage class for handling labels and layers in a segmentation session.
Definition: mitkLabelSetImage.h:43
mitkLabelSetImage.h