Wavelet and Image class library  1.3.2
Histogram.hh
Go to the documentation of this file.
00001 /*
00002  * class Histogram
00003  *
00004  * $Date$
00005  * $Revision$
00006  *
00007  */
00008 
00009 #ifndef HISTOGRAM_HH__
00010 #define HISTOGRAM_HH__
00011 
00012 #include "WTools/ImageInformation.hh"
00013 
00021 class 
00022 Histogram 
00023 {
00024 public:
00032   Histogram (Image &img, double dlt = 1.0);
00040   Histogram (ImageInformation &ii, double dlt = 1.0);
00042   ~Histogram (void);
00051   int at (int pos, coeff &lower);
00056   int at (coeff value);
00059   inline int size (void) { return m_nvals; }
00062   inline double delta (void) { return m_dlt; } 
00065   void update (void);
00067   void print (void);
00075   void add (coeff value, int number);
00076 protected:
00078   Image *m_image;
00082   ImageInformation *m_data;
00084   ImageInformation *m_ii;
00086   double m_dlt;
00088   struct hist {
00090     coeff lower;
00092     coeff upper;
00094     int number;
00095   };
00097   struct hist *m_values;
00099   int m_nvals;
00100 }; /* class Histogram */
00101 
00104 #endif /* HISTOGRAM_HH__ */
00105 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines