Medical Imaging Interaction Toolkit  2024.12.99-ffdb615f
Medical Imaging Interaction Toolkit
mitkContourModelUtils.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 mitkContourModelUtils_h
14 #define mitkContourModelUtils_h
15 
16 #include <mitkContourModel.h>
17 #include <mitkImage.h>
18 #include <mitkLabelSetImage.h>
19 
20 #include <vtkSmartPointer.h>
21 
23 
24 namespace mitk
25 {
31  class MITKCONTOURMODEL_EXPORT ContourModelUtils : public itk::Object
32  {
33  public:
35 
42  static ContourModel::Pointer ProjectContourTo2DSlice(const Image *slice,
43  const ContourModel *contourIn3D);
44 
51  static ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
52  const ContourModel *contourIn2D);
53 
63  //[[deprecated]]
64  DEPRECATED(static void FillContourInSlice(const ContourModel* projectedContour,
65  TimeStepType contourTimeStep,
66  Image* sliceImage,
67  int paintingPixelValue = 1));
68 
79  static void FillContourInSlice2(const ContourModel* projectedContour,
80  Image* sliceImage,
81  int paintingPixelValue = 1);
82 
95  static void FillContourInSlice2(const ContourModel* projectedContour,
96  TimeStepType contourTimeStep,
97  Image* sliceImage,
98  int paintingPixelValue = 1);
99 
113  [[deprecated]]
114  static void FillSliceInSlice(vtkSmartPointer<vtkImageData> filledImage,
115  vtkSmartPointer<vtkImageData> resultImage,
116  int paintingPixelValue,
117  double fillForegroundThreshold = 1.0);
118 
122  static ContourModel::Pointer MoveZerothContourTimeStep(const ContourModel *contour, TimeStepType timeStep);
123 
124  protected:
126  ~ContourModelUtils() override;
127  };
128 }
129 
130 #endif
mitkImage.h
vtkSmartPointer< vtkImageData >
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
itk::SmartPointer< Self >
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkContourModel.h
MitkContourModelExports.h
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::ContourModel
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Definition: mitkContourModel.h:47
mitk::ContourModelUtils
Helpful methods for working with contours and images.
Definition: mitkContourModelUtils.h:31
mitk::TimeStepType
std::size_t TimeStepType
Definition: mitkTimeGeometry.h:27
MITKCONTOURMODEL_EXPORT
#define MITKCONTOURMODEL_EXPORT
Definition: MitkContourModelExports.h:15
mitkLabelSetImage.h