VTK
vtkImageHistogramStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageHistogramStatistics.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
34 #ifndef __vtkImageHistogramStatistics_h
35 #define __vtkImageHistogramStatistics_h
36 
37 #include "vtkImageHistogram.h"
38 
40 class vtkIdTypeArray;
41 
43 {
44 public:
47 
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
52  double GetMinimum() { return this->Minimum; }
53 
56  double GetMaximum() { return this->Maximum; }
57 
60  double GetMean() { return this->Mean; }
61 
63  double GetMedian() { return this->Median; }
64 
67  double GetStandardDeviation() { return this->StandardDeviation; }
68 
70 
75  vtkSetVector2Macro(AutoRangePercentiles, double);
76  vtkGetVector2Macro(AutoRangePercentiles, double);
78 
80 
88  vtkSetVector2Macro(AutoRangeExpansionFactors, double);
89  vtkGetVector2Macro(AutoRangeExpansionFactors, double);
91 
93 
98  vtkGetVector2Macro(AutoRange, double);
100 
101 protected:
104 
105  virtual int RequestData(vtkInformation *,
108 
109  double Minimum;
110  double Maximum;
111  double Mean;
113  double Median;
114 
115  double AutoRange[2];
116  double AutoRangePercentiles[2];
117  double AutoRangeExpansionFactors[2];
118 
119 private:
120  vtkImageHistogramStatistics(const vtkImageHistogramStatistics&); // Not implemented.
121  void operator=(const vtkImageHistogramStatistics&); // Not implemented.
122 };
123 
124 #endif