VTK  9.2.5
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=========================================================================*/
38#ifndef vtkImageHistogramStatistics_h
39#define vtkImageHistogramStatistics_h
40
41#include "vtkImageHistogram.h"
42#include "vtkImagingStatisticsModule.h" // For export macro
43
45class vtkIdTypeArray;
46
47class VTKIMAGINGSTATISTICS_EXPORT vtkImageHistogramStatistics : public vtkImageHistogram
48{
49public:
52
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
59 double GetMinimum() { return this->Minimum; }
60
65 double GetMaximum() { return this->Maximum; }
66
71 double GetMean() { return this->Mean; }
72
76 double GetMedian() { return this->Median; }
77
82 double GetStandardDeviation() { return this->StandardDeviation; }
83
85
92 vtkSetVector2Macro(AutoRangePercentiles, double);
93 vtkGetVector2Macro(AutoRangePercentiles, double);
95
97
107 vtkSetVector2Macro(AutoRangeExpansionFactors, double);
108 vtkGetVector2Macro(AutoRangeExpansionFactors, double);
110
112
119 vtkGetVector2Macro(AutoRange, double);
121
122protected:
125
127
128 double Minimum;
129 double Maximum;
130 double Mean;
132 double Median;
133
134 double AutoRange[2];
135 double AutoRangePercentiles[2];
136 double AutoRangeExpansionFactors[2];
137
138private:
140 void operator=(const vtkImageHistogramStatistics&) = delete;
141};
142
143#endif
dynamic, self-adjusting array of vtkIdType
Compute statistics for an image.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double GetMean()
Get the mean value of the image.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double GetMinimum()
Get the minimum value present in the image.
double GetMedian()
Get the median value.
double GetMaximum()
Get the maximum value present in the image.
~vtkImageHistogramStatistics() override
double GetStandardDeviation()
Get the standard deviation of the values in the image.
static vtkImageHistogramStatistics * New()
Compute the histogram for an image.
efficient description of an image stencil
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.