computation of n-th order moment More...
#include <vil/vil_image_resource.h>
Go to the source code of this file.
Functions | |
vil_image_resource_sptr | vepl_moment (vil_image_resource_sptr, 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.
Modifications Peter Vanroose - 20 aug 2003 - changed parameter and return types from vil_image_view_base_sptr to vil_image_resource_sptr
Definition in file vepl_moment.h.
vil_image_resource_sptr vepl_moment | ( | vil_image_resource_sptr | , |
int | order, | ||
int | width = 3 , |
||
int | height = 3 |
||
) |
computation of n-th order moment of given order, width and height.
Definition at line 11 of file vepl_moment.cxx.