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=========================================================================*/
53#ifndef vtkStatisticalOutlierRemoval_h
54#define vtkStatisticalOutlierRemoval_h
55
56#include "vtkFiltersPointsModule.h" // For export macro
57#include "vtkPointCloudFilter.h"
58
60class vtkPointSet;
61
62
63class VTKFILTERSPOINTS_EXPORT vtkStatisticalOutlierRemoval : public vtkPointCloudFilter
64{
65public:
67
73 void PrintSelf(ostream& os, vtkIndent indent);
75
77
82 vtkSetClampMacro(SampleSize,int,1,VTK_INT_MAX);
83 vtkGetMacro(SampleSize,int);
85
87
93 vtkSetClampMacro(StandardDeviationFactor,double,0.0,VTK_FLOAT_MAX);
94 vtkGetMacro(StandardDeviationFactor,double);
96
98
104 vtkGetObjectMacro(Locator,vtkAbstractPointLocator);
106
108
112 vtkSetClampMacro(ComputedMean,double,0.0,VTK_FLOAT_MAX);
113 vtkGetMacro(ComputedMean,double);
115
117
121 vtkSetClampMacro(ComputedStandardDeviation,double,0.0,VTK_FLOAT_MAX);
122 vtkGetMacro(ComputedStandardDeviation,double);
124
125protected:
128
132
133 // Derived quantities
136
137 // All derived classes must implement this method. Note that a side effect of
138 // the class is to populate the PointMap. Zero is returned if there is a failure.
139 virtual int FilterPoints(vtkPointSet *input);
140
141private:
143 void operator=(const vtkStatisticalOutlierRemoval&) VTK_DELETE_FUNCTION;
144
145};
146
147#endif
abstract class to quickly locate points in 3-space
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract class for filtering a point cloud
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:43
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkStatisticalOutlierRemoval * New()
Standard methods for instantiating, obtaining type information, and printing information.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
virtual int FilterPoints(vtkPointSet *input)
#define VTK_INT_MAX
Definition: vtkType.h:153
#define VTK_FLOAT_MAX
Definition: vtkType.h:161