VTK  9.0.2
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 class VTKFILTERSPOINTS_EXPORT vtkStatisticalOutlierRemoval : public vtkPointCloudFilter
60 {
61 public:
63 
69  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
73 
78  vtkSetClampMacro(SampleSize, int, 1, VTK_INT_MAX);
79  vtkGetMacro(SampleSize, int);
81 
83 
89  vtkSetClampMacro(StandardDeviationFactor, double, 0.0, VTK_FLOAT_MAX);
90  vtkGetMacro(StandardDeviationFactor, double);
92 
94 
100  vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
102 
104 
108  vtkSetClampMacro(ComputedMean, double, 0.0, VTK_FLOAT_MAX);
109  vtkGetMacro(ComputedMean, double);
111 
113 
117  vtkSetClampMacro(ComputedStandardDeviation, double, 0.0, VTK_FLOAT_MAX);
118  vtkGetMacro(ComputedStandardDeviation, double);
120 
121 protected:
124 
128 
129  // Derived quantities
130  double ComputedMean;
132 
133  // All derived classes must implement this method. Note that a side effect of
134  // the class is to populate the PointMap. Zero is returned if there is a failure.
135  int FilterPoints(vtkPointSet* input) override;
136 
137 private:
139  void operator=(const vtkStatisticalOutlierRemoval&) = delete;
140 };
141 
142 #endif
abstract class to quickly locate points in 3-space
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract class for filtering a point cloud
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:63
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
~vtkStatisticalOutlierRemoval() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FilterPoints(vtkPointSet *input) override
static vtkStatisticalOutlierRemoval * New()
Standard methods for instantiating, obtaining type information, and printing information.
#define VTK_INT_MAX
Definition: vtkType.h:155
#define VTK_FLOAT_MAX
Definition: vtkType.h:163