Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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 (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 mitkContourUtilshIncludett
14 #define mitkContourUtilshIncludett
15 
16 #include "mitkContour.h"
17 #include "mitkContourModel.h"
18 #include "mitkImage.h"
20 
21 namespace mitk
22 {
29  class MITKSEGMENTATION_EXPORT ContourUtils : public itk::Object
30  {
31  public:
33  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
34 
35 
41  ContourModel::Pointer ProjectContourTo2DSlice(Image *slice,
42  Contour *contourIn3D,
43  bool correctionForIpSegmentation,
44  bool constrainToInside);
45 
52  ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
53  Contour *contourIn2D,
54  bool correctionForIpSegmentation = false);
55 
59  void FillContourInSlice(Contour *projectedContour, Image *sliceImage, int paintingPixelValue = 1);
60 
61  protected:
62  ContourUtils();
63  ~ContourUtils() override;
64  };
65 }
66 
67 #endif
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Stores vertices for drawing a contour.
Definition: mitkContour.h:31
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
Image class for storing images.
Definition: mitkImage.h:72
Helpful methods for working with contours and images.
BaseGeometry Describes the geometry of a data object.