dox/Imaging/vtkImageStatistics.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   vtkCNMRRLibrary
00004   Module:    $RCSfile: vtkImageStatistics.h,v $
00005 
00006   Copyright  2006  The Pennsylvania State University
00007   
00008       Notice
00009  
00010   The contents of this file are subject to The Pennsylvania State University 
00011   Open Source License (the "License"); you may not use this file except in 
00012   compliance with the License. You may obtain a copy of the License at H066 
00013   Radiology, NMR Building, 500 University Drive, Hershey, PA, 
00014   tel. (717) 531-6069 or via email at dcb210@psu.edu.
00015  
00016   Software distributed under the License is distributed on an "AS IS" basis, 
00017   WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
00018   for the specific language governing rights and limitations under the 
00019   License.
00020  
00021   The Original Code is listed under Exhibit A of the license.
00022  
00023   The Initial Developer of the Original Code is Don Bigler.
00024  
00025   Contributor(s):
00026 
00027 =========================================================================*/
00040 #ifndef __vtkImageStatistics_h
00041 #define __vtkImageStatistics_h
00042 
00043 #include "vtkSimpleImageToImageFilter.h"
00044 #include "vtkCNMRRImagingWin32Header.h"
00045 
00046 class VTK_CNMRR_IMAGING_EXPORT vtkImageStatistics : 
00047   public vtkSimpleImageToImageFilter
00048 {
00049 public:
00050   static vtkImageStatistics *New();
00051   vtkTypeRevisionMacro(vtkImageStatistics,vtkSimpleImageToImageFilter);
00052 
00054 
00055   vtkSetMacro(IgnoreZeros, int);
00056   vtkBooleanMacro(IgnoreZeros, int);
00057   vtkGetMacro(IgnoreZeros, int);
00059 
00061 
00062   vtkGetMacro(ArithmeticMean, double);
00064 
00066 
00067   vtkGetMacro(GeometricMean, double);
00069 
00071 
00072   vtkGetMacro(HarmonicMean, double);
00074 
00076 
00077   vtkGetMacro(Variance, double);
00079 
00081 
00082   vtkGetMacro(SampleVariance, double);
00084 
00086 
00087   vtkGetMacro(GeometricStandardDeviation, double);
00089 
00091 
00092   vtkGetMacro(Median, double);
00094 
00096 
00097   vtkGetMacro(FirstQuartile, double);
00099 
00101 
00102   vtkGetMacro(ThirdQuartile, double);
00104 
00106 
00107   vtkGetMacro(Maximum, double);
00109 
00111 
00112   vtkGetMacro(Minimum, double);
00114 
00116 
00117   vtkGetMacro(Sum, double);
00119 
00121 
00122   vtkGetMacro(Product, double);
00124 
00126 
00127   vtkGetMacro(Num, int);
00129 
00130 protected:
00131 
00132   vtkImageStatistics();
00133   ~vtkImageStatistics(){};
00134 
00135   int     IgnoreZeros;
00136   double  ArithmeticMean;
00137   double  GeometricMean;
00138   double  HarmonicMean;
00139   double  Variance;
00140   double  SampleVariance;
00141   double  GeometricStandardDeviation;
00142   double  Median;
00143   double  FirstQuartile;
00144   double  ThirdQuartile;
00145   double  Maximum;
00146   double  Minimum;
00147   double  Sum;
00148   double  Product;
00149   int     Num;
00150 
00151   virtual void SimpleExecute(vtkImageData* input, vtkImageData* output);
00152 
00153 private:
00154   vtkImageStatistics(const vtkImageStatistics&);  // Not implemented.
00155   void operator=(const vtkImageStatistics&);  // Not implemented.
00156 };
00157 
00158 #endif

Generated on Tue May 12 14:53:03 2009 for vtkCNMRRLibrary by  doxygen 1.4.7