Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _mitkImageToContourModelFilter_h__
18 #define _mitkImageToContourModelFilter_h__
19 
20 #include "mitkCommon.h"
21 #include "mitkContourModel.h"
22 #include "mitkContourModelSource.h"
24 #include <mitkImage.h>
25 
26 namespace mitk
27 {
35  {
36  public:
38  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
39 
40  typedef mitk::Image InputType;
41 
42  using Superclass::SetInput;
43 
44  virtual void SetInput(const InputType *input);
45 
46  virtual void SetInput(unsigned int idx, const InputType *input);
47 
48  const InputType *GetInput(void);
49 
50  const InputType *GetInput(unsigned int idx);
51 
52  void SetContourValue(float contourValue);
53 
54  float GetContourValue();
55 
56  protected:
58 
59  virtual ~ImageToContourModelFilter();
60 
61  void GenerateData() override;
62 
63  template <typename TPixel, unsigned int VImageDimension>
64  void Itk2DContourExtraction(const itk::Image<TPixel, VImageDimension> *sliceImage);
65 
66  private:
67  const BaseGeometry *m_SliceGeometry;
68  float m_ContourValue;
69  };
70 }
71 
72 #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:44
Image class for storing images.
Definition: mitkImage.h:76
Base class for all filters with mitk::Image as input and mitk::ContourModel.
itk::ProcessObject Superclass
BaseGeometry Describes the geometry of a data object.