VTK  9.2.6
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 =========================================================================*/
53 #ifndef vtkStatisticalOutlierRemoval_h
54 #define vtkStatisticalOutlierRemoval_h
55 
56 #include "vtkFiltersPointsModule.h" // For export macro
57 #include "vtkPointCloudFilter.h"
58 
60 class vtkPointSet;
61 
62 class VTKFILTERSPOINTS_EXPORT vtkStatisticalOutlierRemoval : public vtkPointCloudFilter
63 {
64 public:
66 
72  void PrintSelf(ostream& os, vtkIndent indent) override;
74 
76 
81  vtkSetClampMacro(SampleSize, int, 1, VTK_INT_MAX);
82  vtkGetMacro(SampleSize, int);
84 
86 
92  vtkSetClampMacro(StandardDeviationFactor, double, 0.0, VTK_FLOAT_MAX);
93  vtkGetMacro(StandardDeviationFactor, double);
95 
97 
102  void SetLocator(vtkAbstractPointLocator* locator);
103  vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
105 
107 
111  vtkSetClampMacro(ComputedMean, double, 0.0, VTK_FLOAT_MAX);
112  vtkGetMacro(ComputedMean, double);
114 
116 
120  vtkSetClampMacro(ComputedStandardDeviation, double, 0.0, VTK_FLOAT_MAX);
121  vtkGetMacro(ComputedStandardDeviation, double);
123 
124 protected:
126  ~vtkStatisticalOutlierRemoval() override;
127 
131 
132  // Derived quantities
133  double ComputedMean;
135 
136  // All derived classes must implement this method. Note that a side effect of
137  // the class is to populate the PointMap. Zero is returned if there is a failure.
138  int FilterPoints(vtkPointSet* input) override;
139 
140 private:
142  void operator=(const vtkStatisticalOutlierRemoval&) = delete;
143 };
144 
145 #endif
remove sparse outlier points
#define VTK_INT_MAX
Definition: vtkType.h:155
concrete class for storing a set of points
Definition: vtkPointSet.h:69
virtual int FilterPoints(vtkPointSet *input)=0
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
a simple class to control print indentation
Definition: vtkIndent.h:39
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