Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkImageToUnstructuredGridFilter.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 _MITKIMAGETOUNSTRUCTUREDGRIDFILTER_h__
18 #define _MITKIMAGETOUNSTRUCTUREDGRIDFILTER_h__
19 
21 
22 #include <mitkCommon.h>
23 
24 #include <mitkImage.h>
25 #include <mitkUnstructuredGrid.h>
27 
28 namespace mitk
29 {
38  {
39  public:
41  itkCloneMacro(Self)
42 
43 
44  virtual void GenerateData() override;
45 
47  virtual void GenerateOutputInformation() override;
48 
50  const mitk::Image *GetInput(void) const;
51 
52  mitk::Image *GetInput(void);
53 
55  using itk::ProcessObject::SetInput;
56  virtual void SetInput(const mitk::Image *image);
57 
62  void SetThreshold(double threshold);
63 
65  double GetThreshold();
66 
67  itkGetMacro(NumberOfExtractedPoints, int)
68 
69  protected :
70 
73 
76 
80  template <typename TPixel, unsigned int VImageDimension>
81  void ExtractPoints(const itk::Image<TPixel, VImageDimension> *image);
82 
83  private:
88  mitk::BaseGeometry *m_Geometry;
89 
91  int m_NumberOfExtractedPoints;
92 
94  double m_Threshold;
95 
97  mitk::UnstructuredGrid::Pointer m_UnstructGrid;
98  };
99 
100 } // namespace mitk
101 
102 #endif //_MITKIMAGETOUNSTRUCTUREDGRIDFILTER_h__
Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extr...
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKALGORITHMSEXT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
BaseGeometry Describes the geometry of a data object.
Superclass of all classes generating unstructured grids (instances of class UnstructuredGrid) as outp...