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) 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() override;
125 
129 
130  // Derived quantities
131  double ComputedMean;
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) override;
137 
138 private:
140  void operator=(const vtkStatisticalOutlierRemoval&) = delete;
141 
142 };
143 
144 #endif
vtkPointCloudFilter.h
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkPointCloudFilter
abstract class for filtering a point cloud
Definition: vtkPointCloudFilter.h:66
vtkStatisticalOutlierRemoval::StandardDeviationFactor
double StandardDeviationFactor
Definition: vtkStatisticalOutlierRemoval.h:127
vtkStatisticalOutlierRemoval
remove sparse outlier points
Definition: vtkStatisticalOutlierRemoval.h:60
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:132
vtkStatisticalOutlierRemoval::ComputedMean
double ComputedMean
Definition: vtkStatisticalOutlierRemoval.h:131
vtkStatisticalOutlierRemoval::SampleSize
int SampleSize
Definition: vtkStatisticalOutlierRemoval.h:126
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:167
vtkPointCloudFilter::FilterPoints
virtual int FilterPoints(vtkPointSet *input)=0
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
vtkStatisticalOutlierRemoval::Locator
vtkAbstractPointLocator * Locator
Definition: vtkStatisticalOutlierRemoval.h:128
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition: vtkAbstractPointLocator.h:38
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()