Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkShowSegmentationAsSmoothedSurface.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 mitkShowSegmentationAsSmoothedSurface_h
14 #define mitkShowSegmentationAsSmoothedSurface_h
15 
16 #include <mitkSegmentationSink.h>
18 #include <mitkSurface.h>
19 
20 namespace mitk
21 {
31  {
32  public:
35 
36  protected:
37  void Initialize(const NonBlockingAlgorithm *other = nullptr) override;
38  bool ReadyToRun() override;
39  bool ThreadedUpdateFunction() override;
40  void ThreadedUpdateSuccessful() override;
41 
42  private:
45 
46  Surface::Pointer m_Surface;
47  };
48 }
49 
50 #endif
#define MITKSEGMENTATION_EXPORT
Base class for algorithms that can run in a background thread.
A NonBlockingAlgorithm that places segmentation results into the DataStorage.
Converts a segmentation image to a smoothed surface and adds it to the DataStorage.
mitkClassMacro(ShowSegmentationAsSmoothedSurface, SegmentationSink)
mitkAlgorithmNewMacro(ShowSegmentationAsSmoothedSurface)
void Initialize(const NonBlockingAlgorithm *other=nullptr) override
Find image slices visible on a given plane.