Medical Imaging Interaction Toolkit  2018.4.99-7e02155b
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
#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.
BaseGeometry Describes the geometry of a data object.