VTK  9.0.1
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 =========================================================================*/
32 #ifndef vtkImageHistogramStatistics_h
33 #define vtkImageHistogramStatistics_h
34 
35 #include "vtkImageHistogram.h"
36 #include "vtkImagingStatisticsModule.h" // For export macro
37 
39 class vtkIdTypeArray;
40 
41 class VTKIMAGINGSTATISTICS_EXPORT vtkImageHistogramStatistics : public vtkImageHistogram
42 {
43 public:
46 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
53  double GetMinimum() { return this->Minimum; }
54 
59  double GetMaximum() { return this->Maximum; }
60 
65  double GetMean() { return this->Mean; }
66 
70  double GetMedian() { return this->Median; }
71 
76  double GetStandardDeviation() { return this->StandardDeviation; }
77 
79 
86  vtkSetVector2Macro(AutoRangePercentiles, double);
87  vtkGetVector2Macro(AutoRangePercentiles, double);
89 
91 
101  vtkSetVector2Macro(AutoRangeExpansionFactors, double);
102  vtkGetVector2Macro(AutoRangeExpansionFactors, double);
104 
106 
113  vtkGetVector2Macro(AutoRange, double);
115 
116 protected:
118  ~vtkImageHistogramStatistics() override;
119 
121 
122  double Minimum;
123  double Maximum;
124  double Mean;
126  double Median;
127 
128  double AutoRange[2];
129  double AutoRangePercentiles[2];
130  double AutoRangeExpansionFactors[2];
131 
132 private:
134  void operator=(const vtkImageHistogramStatistics&) = delete;
135 };
136 
137 #endif
vtkImageHistogramStatistics::Minimum
double Minimum
Definition: vtkImageHistogramStatistics.h:122
vtkImageHistogram
Compute the histogram for an image.
Definition: vtkImageHistogram.h:42
vtkImageHistogramStatistics::GetMaximum
double GetMaximum()
Get the maximum value present in the image.
Definition: vtkImageHistogramStatistics.h:59
vtkImageHistogramStatistics
Compute statistics for an image.
Definition: vtkImageHistogramStatistics.h:41
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageHistogramStatistics::GetMean
double GetMean()
Get the mean value of the image.
Definition: vtkImageHistogramStatistics.h:65
vtkImageHistogram::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkImageHistogram::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageHistogramStatistics::GetStandardDeviation
double GetStandardDeviation()
Get the standard deviation of the values in the image.
Definition: vtkImageHistogramStatistics.h:76
vtkImageHistogramStatistics::Maximum
double Maximum
Definition: vtkImageHistogramStatistics.h:123
vtkImageHistogramStatistics::GetMinimum
double GetMinimum()
Get the minimum value present in the image.
Definition: vtkImageHistogramStatistics.h:53
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageHistogramStatistics::Mean
double Mean
Definition: vtkImageHistogramStatistics.h:124
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkImageHistogram.h
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkImageHistogramStatistics::StandardDeviation
double StandardDeviation
Definition: vtkImageHistogramStatistics.h:125
vtkImageHistogramStatistics::GetMedian
double GetMedian()
Get the median value.
Definition: vtkImageHistogramStatistics.h:70
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:33
vtkImageHistogram::New
static vtkImageHistogram * New()
vtkImageHistogramStatistics::Median
double Median
Definition: vtkImageHistogramStatistics.h:126