Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkContourModelUtilshIncludett
18 #define mitkContourModelUtilshIncludett
19 
20 #include "mitkContourModel.h"
21 #include "mitkImage.h"
23 
24 #include <itkImage.h>
25 #include <vtkSmartPointer.h>
26 
27 namespace mitk
28 {
34  class MITKCONTOURMODEL_EXPORT ContourModelUtils : public itk::Object
35  {
36  public:
38 
45  static ContourModel::Pointer ProjectContourTo2DSlice(Image *slice,
46  ContourModel *contourIn3D,
47  bool correctionForIpSegmentation,
48  bool constrainToInside);
49 
56  static ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
57  ContourModel *contourIn2D,
58  bool correctionForIpSegmentation = false);
59 
63  static void FillContourInSlice(ContourModel *projectedContour,
64  Image *sliceImage,
65  mitk::Image::Pointer workingImage,
66  int paintingPixelValue = 1);
67 
71  static void FillContourInSlice(ContourModel *projectedContour,
72  unsigned int timeStep,
73  Image *sliceImage,
74  mitk::Image::Pointer workingImage,
75  int paintingPixelValue = 1);
76 
80  static void FillSliceInSlice(vtkSmartPointer<vtkImageData> filledImage,
81  vtkSmartPointer<vtkImageData> resultImage,
83  int paintingPixelValue);
84 
85  protected:
87  virtual ~ContourModelUtils();
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:53
Image class for storing images.
Definition: mitkImage.h:76
Helpful methods for working with contours and images.
BaseGeometry Describes the geometry of a data object.