Medical Imaging Interaction Toolkit  2018.4.99-08619e4f
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);
34  itkCloneMacro(Self);
35 
42  ContourModel::Pointer ProjectContourTo2DSlice(Image *slice,
43  Contour *contourIn3D,
44  bool correctionForIpSegmentation,
45  bool constrainToInside);
46 
53  ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
54  Contour *contourIn2D,
55  bool correctionForIpSegmentation = false);
56 
60  void FillContourInSlice(Contour *projectedContour, Image *sliceImage, int paintingPixelValue = 1);
61 
62  protected:
63  ContourUtils();
64  ~ContourUtils() override;
65  };
66 }
67 
68 #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.