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 // \file
00005 // \brief pixel value histogram of 2D image
00006 //
00007 //   The vepl_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   7 October 2002
00018 //
00019 // \verbatim
00020 //  Modifications
00021 //   Peter Vanroose - 20 aug 2003 - changed parameter from vil_image_view_base_sptr to vil_image_resource_sptr
00022 // \endverbatim
00023 
00024 #include <vil/vil_image_resource.h>
00025 #include <vcl_vector.h>
00026 
00027 //: pixel value histogram of 2D image, stored in a vector
00028 vcl_vector<unsigned int> vepl_histogram(vil_image_resource_sptr );
00029 
00030 #endif // vepl_histogram_h_