VisionX V4 | MVMEAN | VisionX V4 |
vmean − image mean filter |
vmean if=<infile> of=<outfile> [xy= | xs= ys=] [zs=] |
Vmean replaces the center pixel with the local mean of the given window for 2D and 3D images. For 2D images the center pixel of the window is at the coordinate (xs-1)/2,(ys-1)/2 (indexing from 0). In addition for 3D images in the z-coordinate is at (zs-1)/2. For a 2D image the mean value is determined averaging the pixel values within the window. Note that for even dimensioned windows, i.e. ones with an even number of elements and consequently non-integral center coordinate(s), the lower center pixel coordinate(s) are selected. When the zs= parameter is specified the input file is treated as a single 3D image. Otherwise the input file is considered as a set of one or more 2D images. |
All numeric image types are supported for input images. Multispectral images are currently not supported. If the window goes beyond the edges of the input data then all values outside the data border are assumed zero. The default window size is 3x3x1. |
xs= and ys= |
allow the x and y dimensions of the window to be specified individually. |
xy= |
can be used to specify a square window in x and y with a single value. |
||
zs= |
specify the window size in the z-dimension for 3D images. |
A. P. Reeves |