Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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(Image *slice,
41  ContourModel *contourIn3D,
42  bool correctionForIpSegmentation,
43  bool constrainToInside);
44 
51  static ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
52  ContourModel *contourIn2D,
53  bool correctionForIpSegmentation = false);
54 
58  static void FillContourInSlice(ContourModel *projectedContour,
59  Image *sliceImage,
60  mitk::Image::Pointer workingImage,
61  int paintingPixelValue = 1);
62 
66  static void FillContourInSlice(ContourModel *projectedContour,
67  unsigned int timeStep,
68  Image *sliceImage,
69  mitk::Image::Pointer workingImage,
70  int paintingPixelValue = 1);
71 
75  static void FillSliceInSlice(vtkSmartPointer<vtkImageData> filledImage,
76  vtkSmartPointer<vtkImageData> resultImage,
78  int paintingPixelValue);
79 
83  static ContourModel::Pointer MoveZerothContourTimeStep(const ContourModel *contour, unsigned int timeStep);
84 
85  protected:
87  ~ContourModelUtils() override;
88  };
89 }
90 
91 #endif
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
#define MITKCONTOURMODEL_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
Image class for storing images.
Definition: mitkImage.h:72
mitk::Image::Pointer image
Helpful methods for working with contours and images.
BaseGeometry Describes the geometry of a data object.