Medical Imaging Interaction Toolkit  2018.04.99-46eee069
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 
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  ~ContourUtils() override;
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:31
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
Image class for storing images.
Definition: mitkImage.h:73
Helpful methods for working with contours and images.
BaseGeometry Describes the geometry of a data object.