VTK
vtkStatisticalOutlierRemoval.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStatisticalOutlierRemoval.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See LICENSE file for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
50 #ifndef vtkStatisticalOutlierRemoval_h
51 #define vtkStatisticalOutlierRemoval_h
52 
53 #include "vtkFiltersPointsModule.h" // For export macro
54 #include "vtkPointCloudFilter.h"
55 
57 class vtkPointSet;
58 
59 
60 class VTKFILTERSPOINTS_EXPORT vtkStatisticalOutlierRemoval : public vtkPointCloudFilter
61 {
62 public:
64 
70  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
72 
74 
79  vtkSetClampMacro(SampleSize,int,1,VTK_INT_MAX);
80  vtkGetMacro(SampleSize,int);
82 
84 
90  vtkSetClampMacro(StandardDeviationFactor,double,0.0,VTK_FLOAT_MAX);
91  vtkGetMacro(StandardDeviationFactor,double);
93 
95 
100  void SetLocator(vtkAbstractPointLocator *locator);
101  vtkGetObjectMacro(Locator,vtkAbstractPointLocator);
103 
105 
109  vtkSetClampMacro(ComputedMean,double,0.0,VTK_FLOAT_MAX);
110  vtkGetMacro(ComputedMean,double);
112 
114 
118  vtkSetClampMacro(ComputedStandardDeviation,double,0.0,VTK_FLOAT_MAX);
119  vtkGetMacro(ComputedStandardDeviation,double);
121 
122 protected:
124  ~vtkStatisticalOutlierRemoval() VTK_OVERRIDE;
125 
126  int SampleSize;
127  double StandardDeviationFactor;
129 
130  // Derived quantities
131  double ComputedMean;
132  double ComputedStandardDeviation;
133 
134  // All derived classes must implement this method. Note that a side effect of
135  // the class is to populate the PointMap. Zero is returned if there is a failure.
136  int FilterPoints(vtkPointSet *input) VTK_OVERRIDE;
137 
138 private:
140  void operator=(const vtkStatisticalOutlierRemoval&) VTK_DELETE_FUNCTION;
141 
142 };
143 
144 #endif
remove sparse outlier points
#define VTK_INT_MAX
Definition: vtkType.h:157
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:165
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract class to quickly locate points in 3-space
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print information.
abstract class for filtering a point cloud