Medical Imaging Interaction Toolkit  2023.12.99-101158b3
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 mitkContourUtils_h
14 #define mitkContourUtils_h
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 
51  ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry,
52  Contour *contourIn2D);
53 
57  void FillContourInSlice(Contour *projectedContour, Image *sliceImage, int paintingPixelValue = 1);
58 
59  protected:
60  ContourUtils();
61  ~ContourUtils() override;
62  };
63 }
64 
65 #endif
mitkImage.h
mitk::ContourUtils
Helpful methods for working with contours and images.
Definition: mitkContourUtils.h:29
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkContour.h
mitkContourModel.h
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
MitkSegmentationExports.h
mitk::Contour
Stores vertices for drawing a contour.
Definition: mitkContour.h:31