contrib/tbl/vepl2/vepl2_moment.h

Go to the documentation of this file.
00001 #ifndef vepl2_moment_h_
00002 #define vepl2_moment_h_
00003 //:
00004 // \file
00005 // \brief computation of n-th order moment
00006 //
00007 //   The n-th order moment operation replaces a pixel with the expected value
00008 //   of x^n of its surrounding pixels, in a certain neighbourhood. Here the
00009 //   neighbourhood is a arbitrary rectangular mask, the height and width of which
00010 //   are passed to the constructor.
00011 //
00012 //   A fast computation method is used which needs only seven + or - operations per
00013 //   pixel (except for initialization of first row and column) because it uses
00014 //   computed values of previous pixels.
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 and return types from vil_image_view_base_sptr to vil_image_resource_sptr
00022 // \endverbatim
00023 
00024 #include <vil/vil_image_resource.h>
00025 
00026 //: computation of n-th order moment of given order, width and height
00027 vil_image_resource_sptr vepl2_moment(vil_image_resource_sptr, int order, int width=3, int height=3);
00028 
00029 #endif // vepl2_moment_h_

Generated on Thu Nov 20 05:13:25 2008 for contrib/tbl/vepl2 by  doxygen 1.5.1