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 "vtkImagingStatisticsModule.h" // For export macro
38 #include "vtkImageHistogram.h"
39 
41 class vtkIdTypeArray;
42 
44 {
45 public:
48 
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
53  double GetMinimum() { return this->Minimum; }
54 
57  double GetMaximum() { return this->Maximum; }
58 
61  double GetMean() { return this->Mean; }
62 
64  double GetMedian() { return this->Median; }
65 
68  double GetStandardDeviation() { return this->StandardDeviation; }
69 
71 
76  vtkSetVector2Macro(AutoRangePercentiles, double);
77  vtkGetVector2Macro(AutoRangePercentiles, double);
79 
81 
89  vtkSetVector2Macro(AutoRangeExpansionFactors, double);
90  vtkGetVector2Macro(AutoRangeExpansionFactors, double);
92 
94 
99  vtkGetVector2Macro(AutoRange, double);
101 
102 protected:
105 
106  virtual int RequestData(vtkInformation *,
109 
110  double Minimum;
111  double Maximum;
112  double Mean;
114  double Median;
115 
116  double AutoRange[2];
117  double AutoRangePercentiles[2];
118  double AutoRangeExpansionFactors[2];
119 
120 private:
121  vtkImageHistogramStatistics(const vtkImageHistogramStatistics&); // Not implemented.
122  void operator=(const vtkImageHistogramStatistics&); // Not implemented.
123 };
124 
125 #endif
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of vtkIdType
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKIMAGINGSTATISTICS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
efficient description of an image stencil
static vtkImageHistogram * New()
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Compute statistics for an image.
Compute the histogram for an image.