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