Medical Imaging Interaction Toolkit  2018.4.99-08619e4f
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  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
41  void GenerateData() override;
42 
44  void GenerateOutputInformation() override;
45 
47  const mitk::Image *GetInput(void) const;
48 
49  mitk::Image *GetInput(void);
50 
52  using itk::ProcessObject::SetInput;
53  virtual void SetInput(const mitk::Image *image);
54 
59  void SetThreshold(double threshold);
60 
62  double GetThreshold();
63 
65  itkGetMacro(NumberOfExtractedPoints, int);
66 
67  protected :
68 
71 
74 
78  template <typename TPixel, unsigned int VImageDimension>
79  void ExtractPoints(const itk::Image<TPixel, VImageDimension> *image);
80 
83  private:
84 
89  mitk::BaseGeometry *m_Geometry;
90 
92  double m_Threshold;
93 
95  mitk::UnstructuredGrid::Pointer m_UnstructGrid;
96  };
97 
98 } // namespace mitk
99 
100 #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:46
BaseGeometry Describes the geometry of a data object.
Superclass of all classes generating unstructured grids (instances of class UnstructuredGrid) as outp...