contrib/gel/vifa/vifa_image_histogram.h
Go to the documentation of this file.
00001 // This is gel/vifa/vifa_image_histogram.h
00002 #ifndef VIFA_IMAGE_HISTOGRAM_H
00003 #define VIFA_IMAGE_HISTOGRAM_H
00004 
00005 //-----------------------------------------------------------------------------
00006 //:
00007 // \file
00008 // \brief Histogram of an image's overall intensity values.
00009 //
00010 // The vifa_image_histogram class is used to construct intensity histograms of
00011 // the pixels in an image.
00012 //
00013 // \author Jim Farley, Constantinos Marinos
00014 //
00015 // \verbatim
00016 //  Modifications:
00017 //   MPP Jun 2003, Ported to VXL from TargetJr
00018 // \endverbatim
00019 //-----------------------------------------------------------------------------
00020 
00021 #include <vil/vil_image_view_base.h>
00022 #include <vifa/vifa_histogram.h>
00023 
00024 
00025 class vifa_image_histogram : public vifa_histogram
00026 {
00027  protected:
00028   enum vil_pixel_format  form_;
00029   unsigned int      byte_depth_;
00030 
00031  public:
00032   vifa_image_histogram(vil_image_view_base_sptr  image,
00033                        double                    percentage = 100.0
00034                       );
00035 
00036  protected:
00037   void init(void);
00038   void fill_histogram(vil_image_view_base_sptr  src_buf,
00039                       double                    percentage = 100.0
00040                      );
00041 };
00042 
00043 
00044 #endif  // VIFA_IMAGE_HISTOGRAM_H