Medical Imaging Interaction Toolkit  2026.06.00
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 {
38 {
39 public:
42  itkNewMacro(Self);
43 
48  unsigned int GetNumberOfMasks() const override;
49 
55 
56 protected:
59 
60  Image::ConstPointer DoGetMask(unsigned int maskID) override;
61 
62 private:
63  mitk::MultiLabelSegmentation::ConstPointer m_MultiLabelSegmentation;
64 };
65 
66 }
67 
68 #endif
#define MITKIMAGESTATISTICS_EXPORT
Abstract base class for all mask generators used in image statistics.
Generates masks for statistics computation from multi-label segmentations.
unsigned int GetNumberOfMasks() const override
Get the number of masks (one per label in the segmentation).
mitkClassMacro(MultiLabelMaskGenerator, MaskGenerator)
Image::ConstPointer DoGetMask(unsigned int maskID) override
Must be overridden by derived classes to generate the requested mask.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Find image slices visible on a given plane.