VTK  9.1.0
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
57class vtkPointSet;
58
59class VTKFILTERSPOINTS_EXPORT vtkStatisticalOutlierRemoval : public vtkPointCloudFilter
60{
61public:
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
121protected:
124
128
129 // Derived quantities
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
137private:
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:113
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:106
static vtkStatisticalOutlierRemoval * New()
Standard methods for instantiating, obtaining type information, and printing information.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
~vtkStatisticalOutlierRemoval() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
int FilterPoints(vtkPointSet *input) override
#define VTK_INT_MAX
Definition: vtkType.h:155
#define VTK_FLOAT_MAX
Definition: vtkType.h:163