contrib/tbl/vepl/vepl_moment.h
Go to the documentation of this file.
00001 #ifndef vepl_moment_h_
00002 #define vepl_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 an 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 vepl_moment(vil_image_resource_sptr, int order, int width=3, int height=3);
00028 
00029 #endif // vepl_moment_h_