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 //:
00005 // \file
00006 // \brief computation of n-th order moment
00007 //
00008 //   The n-th order moment operation replaces a pixel with the expected value
00009 //   of x^n of its surrounding pixels, in a certain neighbourhood. Here the
00010 //   neighbourhood is a arbitrary rectangular mask, the height and width of which
00011 //   are passed to the constructor.
00012 //
00013 //   A fast computation method is used which needs only seven + or - operations per
00014 //   pixel (except for initialization of first row and column) because it uses
00015 //   computed values of previous pixels.
00016 //
00017 // \author Peter Vanroose, K.U.Leuven (ESAT/PSI)
00018 // \date   28 April 2001
00019 
00020 #include <vil1/vil1_image.h>
00021 
00022 //: computation of n-th order moment of given order, width and height
00023 vil1_image vepl_moment(vil1_image const& , int order, int width=3, int height=3);
00024 
00025 #endif // vepl_moment_h_