Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkContourUtils.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 mitkContourUtilshIncludett
18 #define mitkContourUtilshIncludett
19 
20 #include "mitkContour.h"
21 #include "mitkContourModel.h"
22 #include "mitkImage.h"
24 
25 namespace mitk
26 {
33  class MITKSEGMENTATION_EXPORT ContourUtils : public itk::Object
34  {
35  public:
37  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
38 
39 
45  ContourModel::Pointer ProjectContourTo2DSlice(Image *slice,
46  Contour *contourIn3D,
47  bool correctionForIpSegmentation,
48  bool constrainToInside);
49 
56  ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
57  Contour *contourIn2D,
58  bool correctionForIpSegmentation = false);
59 
63  void FillContourInSlice(Contour *projectedContour, Image *sliceImage, int paintingPixelValue = 1);
64 
65  protected:
66  ContourUtils();
67  virtual ~ContourUtils();
68  };
69 }
70 
71 #endif
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Stores vertices for drawing a contour.
Definition: mitkContour.h:35
#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.