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 "vtkImageHistogram.h" 00038 00039 class vtkImageStencilData; 00040 class vtkIdTypeArray; 00041 00042 class VTK_IMAGING_EXPORT vtkImageHistogramStatistics : public vtkImageHistogram 00043 { 00044 public: 00045 static vtkImageHistogramStatistics *New(); 00046 vtkTypeMacro(vtkImageHistogramStatistics,vtkImageHistogram); 00047 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00052 double GetMinimum() { return this->Minimum; } 00053 00056 double GetMaximum() { return this->Maximum; } 00057 00060 double GetMean() { return this->Mean; } 00061 00063 double GetMedian() { return this->Median; } 00064 00067 double GetStandardDeviation() { return this->StandardDeviation; } 00068 00070 00075 vtkSetVector2Macro(AutoRangePercentiles, double); 00076 vtkGetVector2Macro(AutoRangePercentiles, double); 00078 00080 00088 vtkSetVector2Macro(AutoRangeExpansionFactors, double); 00089 vtkGetVector2Macro(AutoRangeExpansionFactors, double); 00091 00093 00098 vtkGetVector2Macro(AutoRange, double); 00100 00101 protected: 00102 vtkImageHistogramStatistics(); 00103 ~vtkImageHistogramStatistics(); 00104 00105 virtual int RequestData(vtkInformation *, 00106 vtkInformationVector **, 00107 vtkInformationVector *); 00108 00109 double Minimum; 00110 double Maximum; 00111 double Mean; 00112 double StandardDeviation; 00113 double Median; 00114 00115 double AutoRange[2]; 00116 double AutoRangePercentiles[2]; 00117 double AutoRangeExpansionFactors[2]; 00118 00119 private: 00120 vtkImageHistogramStatistics(const vtkImageHistogramStatistics&); // Not implemented. 00121 void operator=(const vtkImageHistogramStatistics&); // Not implemented. 00122 }; 00123 00124 #endif