VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkImageHistogramStatistics.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00034 #ifndef vtkImageHistogramStatistics_h 00035 #define vtkImageHistogramStatistics_h 00036 00037 #include "vtkImagingStatisticsModule.h" // For export macro 00038 #include "vtkImageHistogram.h" 00039 00040 class vtkImageStencilData; 00041 class vtkIdTypeArray; 00042 00043 class VTKIMAGINGSTATISTICS_EXPORT vtkImageHistogramStatistics : public vtkImageHistogram 00044 { 00045 public: 00046 static vtkImageHistogramStatistics *New(); 00047 vtkTypeMacro(vtkImageHistogramStatistics,vtkImageHistogram); 00048 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00053 double GetMinimum() { return this->Minimum; } 00054 00057 double GetMaximum() { return this->Maximum; } 00058 00061 double GetMean() { return this->Mean; } 00062 00064 double GetMedian() { return this->Median; } 00065 00068 double GetStandardDeviation() { return this->StandardDeviation; } 00069 00071 00076 vtkSetVector2Macro(AutoRangePercentiles, double); 00077 vtkGetVector2Macro(AutoRangePercentiles, double); 00079 00081 00089 vtkSetVector2Macro(AutoRangeExpansionFactors, double); 00090 vtkGetVector2Macro(AutoRangeExpansionFactors, double); 00092 00094 00099 vtkGetVector2Macro(AutoRange, double); 00101 00102 protected: 00103 vtkImageHistogramStatistics(); 00104 ~vtkImageHistogramStatistics(); 00105 00106 virtual int RequestData(vtkInformation *, 00107 vtkInformationVector **, 00108 vtkInformationVector *); 00109 00110 double Minimum; 00111 double Maximum; 00112 double Mean; 00113 double StandardDeviation; 00114 double Median; 00115 00116 double AutoRange[2]; 00117 double AutoRangePercentiles[2]; 00118 double AutoRangeExpansionFactors[2]; 00119 00120 private: 00121 vtkImageHistogramStatistics(const vtkImageHistogramStatistics&); // Not implemented. 00122 void operator=(const vtkImageHistogramStatistics&); // Not implemented. 00123 }; 00124 00125 #endif