computation of n-th order moment More...
#include <vil1/vil1_image.h>
Go to the source code of this file.
Functions | |
vil1_image | vepl1_moment (vil1_image const &, int order, int width=3, int height=3) |
computation of n-th order moment of given order, width and height. |
computation of n-th order moment
The n-th order moment operation replaces a pixel with the expected value of x^n of its surrounding pixels, in a certain neighbourhood. Here the neighbourhood is an arbitrary rectangular mask, the height and width of which are passed to the constructor.
A fast computation method is used which needs only seven + or - operations per pixel (except for initialization of first row and column) because it uses computed values of previous pixels.
Definition in file vepl1_moment.h.
vil1_image vepl1_moment | ( | vil1_image const & | , |
int | order, | ||
int | width = 3 , |
||
int | height = 3 |
||
) |
computation of n-th order moment of given order, width and height.
Definition at line 9 of file vepl1_moment.cxx.