Medical Imaging Interaction Toolkit  2018.4.99-e1268d66
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 (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 _MITKIMAGETOUNSTRUCTUREDGRIDFILTER_h__
14 #define _MITKIMAGETOUNSTRUCTUREDGRIDFILTER_h__
15 
17 
18 #include <mitkCommon.h>
19 
20 #include <mitkImage.h>
21 #include <mitkUnstructuredGrid.h>
23 
24 namespace mitk
25 {
34  {
35  public:
37  itkCloneMacro(Self)
38 
39 
40  void GenerateData() override;
41 
43  void GenerateOutputInformation() override;
44 
46  const mitk::Image *GetInput(void) const;
47 
48  mitk::Image *GetInput(void);
49 
51  using itk::ProcessObject::SetInput;
52  virtual void SetInput(const mitk::Image *image);
53 
58  void SetThreshold(double threshold);
59 
61  double GetThreshold();
62 
64  itkGetMacro(NumberOfExtractedPoints, int)
65 
66  protected :
67 
70 
73 
77  template <typename TPixel, unsigned int VImageDimension>
78  void ExtractPoints(const itk::Image<TPixel, VImageDimension> *image);
79 
82  private:
83 
88  mitk::BaseGeometry *m_Geometry;
89 
91  double m_Threshold;
92 
94  mitk::UnstructuredGrid::Pointer m_UnstructGrid;
95  };
96 
97 } // namespace mitk
98 
99 #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:40
Image class for storing images.
Definition: mitkImage.h:72
mitk::Image::Pointer image
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:41
BaseGeometry Describes the geometry of a data object.
Superclass of all classes generating unstructured grids (instances of class UnstructuredGrid) as outp...