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 =========================================================================*/
38 #ifndef vtkImageHistogramStatistics_h
39 #define vtkImageHistogramStatistics_h
40 
41 #include "vtkImagingStatisticsModule.h" // For export macro
42 #include "vtkImageHistogram.h"
43 
45 class vtkIdTypeArray;
46 
47 class VTKIMAGINGSTATISTICS_EXPORT vtkImageHistogramStatistics : public vtkImageHistogram
48 {
49 public:
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 
122 protected:
124  ~vtkImageHistogramStatistics() override;
125 
128  vtkInformationVector *) override;
129 
130  double Minimum;
131  double Maximum;
132  double Mean;
134  double Median;
135 
136  double AutoRange[2];
137  double AutoRangePercentiles[2];
138  double AutoRangeExpansionFactors[2];
139 
140 private:
142  void operator=(const vtkImageHistogramStatistics&) = delete;
143 };
144 
145 #endif
vtkImageHistogramStatistics::Minimum
double Minimum
Definition: vtkImageHistogramStatistics.h:130
vtkImageHistogram
Compute the histogram for an image.
Definition: vtkImageHistogram.h:48
vtkImageHistogramStatistics::GetMaximum
double GetMaximum()
Get the maximum value present in the image.
Definition: vtkImageHistogramStatistics.h:65
vtkImageHistogramStatistics
Compute statistics for an image.
Definition: vtkImageHistogramStatistics.h:47
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageHistogramStatistics::GetMean
double GetMean()
Get the mean value of the image.
Definition: vtkImageHistogramStatistics.h:71
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:82
vtkImageHistogramStatistics::Maximum
double Maximum
Definition: vtkImageHistogramStatistics.h:131
vtkImageHistogramStatistics::GetMinimum
double GetMinimum()
Get the minimum value present in the image.
Definition: vtkImageHistogramStatistics.h:59
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageHistogramStatistics::Mean
double Mean
Definition: vtkImageHistogramStatistics.h:132
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkImageHistogram.h
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:41
vtkImageHistogramStatistics::StandardDeviation
double StandardDeviation
Definition: vtkImageHistogramStatistics.h:133
vtkImageHistogramStatistics::GetMedian
double GetMedian()
Get the median value.
Definition: vtkImageHistogramStatistics.h:76
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:37
vtkImageHistogram::New
static vtkImageHistogram * New()
vtkImageHistogramStatistics::Median
double Median
Definition: vtkImageHistogramStatistics.h:134