contrib/tbl/vepl1/vepl1_moment.h
Go to the documentation of this file.
00001 #ifndef vepl1_moment_h_
00002 #define vepl1_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   28 April 2001
00018 
00019 #include <vil1/vil1_image.h>
00020 
00021 //: computation of n-th order moment of given order, width and height
00022 vil1_image vepl1_moment(vil1_image const& , int order, int width=3, int height=3);
00023 
00024 #endif // vepl1_moment_h_