Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkImageToContourModelFilter.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 mitkImageToContourModelFilter_h
14 #define mitkImageToContourModelFilter_h
15 
16 #include "mitkCommon.h"
17 #include "mitkContourModel.h"
18 #include "mitkContourModelSource.h"
20 #include <mitkImage.h>
21 
22 namespace mitk
23 {
31  {
32  public:
34  itkFactorylessNewMacro(Self);
35  itkCloneMacro(Self);
36 
37  typedef mitk::Image InputType;
38 
39  using Superclass::SetInput;
40 
41  virtual void SetInput(const InputType *input);
42 
43  virtual void SetInput(unsigned int idx, const InputType *input);
44 
45  const InputType *GetInput(void);
46 
47  const InputType *GetInput(unsigned int idx);
48 
49  void SetContourValue(float contourValue);
50 
51  float GetContourValue();
52 
53  protected:
55 
56  ~ImageToContourModelFilter() override;
57 
58  void GenerateData() override;
59 
60  template <typename TPixel, unsigned int VImageDimension>
61  void Itk2DContourExtraction(const itk::Image<TPixel, VImageDimension> *sliceImage);
62 
63  private:
64  const BaseGeometry *m_SliceGeometry;
65  float m_ContourValue;
66  };
67 }
68 
69 #endif
mitkContourModelSource.h
mitkImage.h
mitk::ImageToContourModelFilter::InputType
mitk::Image InputType
Definition: mitkImageToContourModelFilter.h:35
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk::ImageToContourModelFilter
Base class for all filters with mitk::Image as input and mitk::ContourModel.
Definition: mitkImageToContourModelFilter.h:30
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkContourModel.h
MitkContourModelExports.h
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitkCommon.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKCONTOURMODEL_EXPORT
#define MITKCONTOURMODEL_EXPORT
Definition: MitkContourModelExports.h:15
mitk::ContourModelSource
Superclass of all classes generating ContourModels.
Definition: mitkContourModelSource.h:26