Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkLabelSetImageToSurfaceThreadedFilter.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 mitkLabelSetImageToSurfaceThreadedFilter_h
14 #define mitkLabelSetImageToSurfaceThreadedFilter_h
15 
16 #include <mitkSegmentationSink.h>
17 #include <mitkSurface.h>
18 #include <MitkMultilabelExports.h>
19 
20 namespace mitk
21 {
32  {
33  public:
36 
37  protected:
38  LabelSetImageToSurfaceThreadedFilter(); // use smart pointers
40 
41  void Initialize(const NonBlockingAlgorithm *other = nullptr) override;
42  bool ReadyToRun() override;
43 
44  bool ThreadedUpdateFunction() override; // will be called from a thread after calling StartAlgorithm
45 
46  void ThreadedUpdateSuccessful() override; // will be called from a thread after calling StartAlgorithm
47 
48  private:
49  int m_RequestedLabel;
50  Surface::Pointer m_Result;
51  };
52 
53 } // namespace
54 
55 #endif
#define MITKMULTILABEL_EXPORT
Threaded filter that generates a surface mesh from a label in a MultiLabelSegmentation.
mitkAlgorithmNewMacro(LabelSetImageToSurfaceThreadedFilter)
mitkClassMacro(LabelSetImageToSurfaceThreadedFilter, SegmentationSink)
void Initialize(const NonBlockingAlgorithm *other=nullptr) override
Base class for algorithms that can run in a background thread.
A NonBlockingAlgorithm that places segmentation results into the DataStorage.
Find image slices visible on a given plane.