Medical Imaging Interaction Toolkit  2024.06.00
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 <vtkSmartPointer.h>
19 
21 
22 namespace mitk
23 {
29  class MITKCONTOURMODEL_EXPORT ContourModelUtils : public itk::Object
30  {
31  public:
33 
40  static ContourModel::Pointer ProjectContourTo2DSlice(const Image *slice,
41  const ContourModel *contourIn3D);
42 
49  static ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
50  const ContourModel *contourIn2D);
51 
60  //[[deprecated]]
61  DEPRECATED(static void FillContourInSlice(const ContourModel *projectedContour,
62  Image *sliceImage,
63  const Image* workingImage,
64  int paintingPixelValue = 1));
65 
75  //[[deprecated]]
76  DEPRECATED(static void FillContourInSlice(const ContourModel *projectedContour,
77  TimeStepType contourTimeStep,
78  Image *sliceImage,
79  const Image* workingImage,
80  int paintingPixelValue = 1));
81 
92  static void FillContourInSlice2(const ContourModel* projectedContour,
93  Image* sliceImage,
94  int paintingPixelValue = 1);
95 
108  static void FillContourInSlice2(const ContourModel* projectedContour,
109  TimeStepType contourTimeStep,
110  Image* sliceImage,
111  int paintingPixelValue = 1);
112 
127  [[deprecated]]
128  static void FillSliceInSlice(vtkSmartPointer<vtkImageData> filledImage,
129  vtkSmartPointer<vtkImageData> resultImage,
130  const Image* image,
131  int paintingPixelValue,
132  double fillForegroundThreshold = 1.0);
133 
137  static ContourModel::Pointer MoveZerothContourTimeStep(const ContourModel *contour, TimeStepType timeStep);
138 
147  static int GetActivePixelValue(const Image* workingImage);
148 
149  protected:
151  ~ContourModelUtils() override;
152  };
153 }
154 
155 #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:29
mitk::TimeStepType
std::size_t TimeStepType
Definition: mitkTimeGeometry.h:27
MITKCONTOURMODEL_EXPORT
#define MITKCONTOURMODEL_EXPORT
Definition: MitkContourModelExports.h:15