Medical Imaging Interaction Toolkit  2025.12.02
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 
36 
37 protected:
40 
41  Image::ConstPointer DoGetMask(unsigned int maskID) override;
42 
43 private:
44  mitk::MultiLabelSegmentation::ConstPointer m_MultiLabelSegmentation;
45 };
46 
47 }
48 
49 #endif
#define MITKIMAGESTATISTICS_EXPORT
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
Class that allows to generate masks (for statistic computation) out of multi label segmentations.
unsigned int GetNumberOfMasks() const override
mitkClassMacro(MultiLabelMaskGenerator, MaskGenerator)
Image::ConstPointer DoGetMask(unsigned int maskID) override
DoGetMask must be overridden by derived classes.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Find image slices visible on a given plane.