VTK  9.3.1
vtkImageHistogramStatistics.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkImageHistogramStatistics_h
27 #define vtkImageHistogramStatistics_h
28 
29 #include "vtkImageHistogram.h"
30 #include "vtkImagingStatisticsModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
34 class vtkIdTypeArray;
35 
36 class VTKIMAGINGSTATISTICS_EXPORT vtkImageHistogramStatistics : public vtkImageHistogram
37 {
38 public:
41 
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
48  double GetMinimum() { return this->Minimum; }
49 
54  double GetMaximum() { return this->Maximum; }
55 
60  double GetMean() { return this->Mean; }
61 
65  double GetMedian() { return this->Median; }
66 
71  double GetStandardDeviation() { return this->StandardDeviation; }
72 
74 
81  vtkSetVector2Macro(AutoRangePercentiles, double);
82  vtkGetVector2Macro(AutoRangePercentiles, double);
84 
86 
96  vtkSetVector2Macro(AutoRangeExpansionFactors, double);
97  vtkGetVector2Macro(AutoRangeExpansionFactors, double);
99 
101 
108  vtkGetVector2Macro(AutoRange, double);
110 
111 protected:
113  ~vtkImageHistogramStatistics() override;
114 
116 
117  double Minimum;
118  double Maximum;
119  double Mean;
121  double Median;
122 
123  double AutoRange[2];
124  double AutoRangePercentiles[2];
125  double AutoRangeExpansionFactors[2];
126 
127 private:
129  void operator=(const vtkImageHistogramStatistics&) = delete;
130 };
131 
132 VTK_ABI_NAMESPACE_END
133 #endif
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Store vtkAlgorithm input/output information.
double GetMean()
Get the mean value of the image.
double GetMinimum()
Get the minimum value present in the image.
double GetStandardDeviation()
Get the standard deviation of the values in the image.
dynamic, self-adjusting array of vtkIdType
double GetMaximum()
Get the maximum value present in the image.
double GetMedian()
Get the median value.
a simple class to control print indentation
Definition: vtkIndent.h:28
efficient description of an image stencil
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageHistogram * New()
Store zero or more vtkInformation instances.
Compute statistics for an image.
Compute the histogram for an image.