Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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) itkCloneMacro(Self)
35 
36  typedef mitk::Image InputType;
37 
38  using Superclass::SetInput;
39 
40  virtual void SetInput(const InputType *input);
41 
42  virtual void SetInput(unsigned int idx, const InputType *input);
43 
44  const InputType *GetInput(void);
45 
46  const InputType *GetInput(unsigned int idx);
47 
48  void SetContourValue(float contourValue);
49 
50  float GetContourValue();
51 
52  protected:
54 
55  ~ImageToContourModelFilter() override;
56 
57  void GenerateData() override;
58 
59  template <typename TPixel, unsigned int VImageDimension>
60  void Itk2DContourExtraction(const itk::Image<TPixel, VImageDimension> *sliceImage);
61 
62  private:
63  const BaseGeometry *m_SliceGeometry;
64  float m_ContourValue;
65  };
66 }
67 
68 #endif
#define MITKCONTOURMODEL_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
Superclass of all classes generating ContourModels.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Image class for storing images.
Definition: mitkImage.h:72
Base class for all filters with mitk::Image as input and mitk::ContourModel.
itk::ProcessObject Superclass
BaseGeometry Describes the geometry of a data object.