Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkImageToPointCloudFilter.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 mitkImageToPointCloudFilter_h_Included
18 #define mitkImageToPointCloudFilter_h_Included
19 
22 
23 #include <itkCastImageFilter.h>
24 
25 namespace mitk
26 {
35  {
36  public:
44  {
45  LAPLACIAN_STD_DEV2 = 0,
46  LAPLACIAN_STD_DEV3 = 1,
47  LAPLACIAN_STD_DEV4 = 2
48  };
49 
51 
52  typedef itk::Image<double, 3> FloatImageType;
53 
55  itkGetMacro(Method, DetectionMethod)
56 
58  itkGetMacro(NumberOfExtractedPoints, int)
59 
61  itkSetMacro(Method, DetectionMethod)
62 
63  protected :
64 
66  virtual void GenerateData();
67 
69  virtual void GenerateOutputInformation();
70 
73 
75  virtual ~ImageToPointCloudFilter();
76 
77  private:
80  template <typename TPixel, unsigned int VImageDimension>
81  void StdDeviations(itk::Image<TPixel, VImageDimension> *image, int amount);
82 
85  mitk::BaseGeometry *m_Geometry;
86 
88  int m_NumberOfExtractedPoints;
89 
91  DetectionMethod m_Method;
92  };
93 }
94 #endif
Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extr...
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKSURFACEINTERPOLATION_EXPORT
The filter extracts the edge pixels of an image as points and stores them in an UnstructuredGrid. Every pixel which grey value is between the mean +- standard deviation * (2 or 3), will be extracted as point. The DetectionMethod can be set to choose if the doubled or tripled standard deviation is used.
DetectionMethod
The method which calculates and extracts the edge pixels/points. For the edge detection the laplacian...
#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.