Medical Imaging Interaction Toolkit  2021.02.99-4e0dbe47
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 (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 mitkImageToPointCloudFilter_h_Included
14 #define mitkImageToPointCloudFilter_h_Included
15 
18 
19 #include <itkCastImageFilter.h>
20 
21 namespace mitk
22 {
31  {
32  public:
40  {
41  LAPLACIAN_STD_DEV2 = 0,
42  LAPLACIAN_STD_DEV3 = 1,
43  LAPLACIAN_STD_DEV4 = 2
44  };
45 
47 
48  itkFactorylessNewMacro(Self);
49 
50  typedef itk::Image<double, 3> FloatImageType;
51 
53  itkGetMacro(Method, DetectionMethod);
54 
56  itkSetMacro(Method, DetectionMethod);
57 
58  protected :
59 
61  void GenerateData() override;
62 
64  void GenerateOutputInformation() override;
65 
68 
70  ~ImageToPointCloudFilter() override;
71 
72  private:
75  template <typename TPixel, unsigned int VImageDimension>
76  void StdDeviations(itk::Image<TPixel, VImageDimension> *image, int amount);
77 
80  mitk::BaseGeometry *m_Geometry;
81 
83  DetectionMethod m_Method;
84  };
85 }
86 #endif
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 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:40
BaseGeometry Describes the geometry of a data object.