VTK  9.3.20240425
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
32VTK_ABI_NAMESPACE_BEGIN
34class vtkIdTypeArray;
35
36class VTKIMAGINGSTATISTICS_EXPORT vtkImageHistogramStatistics : public vtkImageHistogram
37{
38public:
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
111protected:
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
127private:
129 void operator=(const vtkImageHistogramStatistics&) = delete;
130};
131
132VTK_ABI_NAMESPACE_END
133#endif
dynamic, self-adjusting array of vtkIdType
Compute statistics for an image.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.