contrib/tbl/vepl/vepl_histogram.h
Go to the documentation of this file.
00001 #ifndef vepl_histogram_h_
00002 #define vepl_histogram_h_
00003 
00004 //:
00005 // \file
00006 // \brief pixel value histogram of 2D image
00007 //
00008 //   The vepl_histogram class creates a pixel value histogram of a 2D image
00009 //   and writes it into a vcl_vector<unsigned int>.
00010 //
00011 //   The number of bins for ubyte images is 256, for ushort images 65536,
00012 //   and for float or double image it is 1000.
00013 //
00014 //   Note that, as opposed to vipl_histogram, the output bins are initialised
00015 //   to 0, as one expects.
00016 //
00017 // \author Peter Vanroose, K.U.Leuven (ESAT/PSI)
00018 // \date   28 April 2001
00019 //
00020 // \verbatim
00021 //  Modifications
00022 //   25-May-2002 - Peter Vanroose - changed return type from vil1_image to vcl_vector<uint>
00023 // \endverbatim
00024 
00025 #include <vil1/vil1_image.h>
00026 #include <vcl_vector.h>
00027 
00028 //: pixel value histogram of 2D image, stored in a 256x1 output image
00029 vcl_vector<unsigned int> vepl_histogram(vil1_image const& );
00030 
00031 #endif // vepl_histogram_h_