VTK  9.0.1
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 
99  void SetLocator(vtkAbstractPointLocator* locator);
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:
123  ~vtkStatisticalOutlierRemoval() override;
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
vtkPointCloudFilter.h
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkPointCloudFilter
abstract class for filtering a point cloud
Definition: vtkPointCloudFilter.h:66
vtkStatisticalOutlierRemoval::StandardDeviationFactor
double StandardDeviationFactor
Definition: vtkStatisticalOutlierRemoval.h:126
vtkStatisticalOutlierRemoval
remove sparse outlier points
Definition: vtkStatisticalOutlierRemoval.h:59
vtkPointCloudFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStatisticalOutlierRemoval::ComputedStandardDeviation
double ComputedStandardDeviation
Definition: vtkStatisticalOutlierRemoval.h:131
vtkStatisticalOutlierRemoval::ComputedMean
double ComputedMean
Definition: vtkStatisticalOutlierRemoval.h:130
vtkStatisticalOutlierRemoval::SampleSize
int SampleSize
Definition: vtkStatisticalOutlierRemoval.h:125
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
vtkPointCloudFilter::FilterPoints
virtual int FilterPoints(vtkPointSet *input)=0
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:62
vtkStatisticalOutlierRemoval::Locator
vtkAbstractPointLocator * Locator
Definition: vtkStatisticalOutlierRemoval.h:127
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition: vtkAbstractPointLocator.h:38
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()