ImLab Scilab Function
Last update :
imaverage - average image computing
Calling Sequence
-
[average_image] = imaverage(image_data,kernel[,mask])
Parameters
-
image_data
: image pixel values
-
kernel
: the kernel to use to mean the image.
The values contained in the kernel are non-null if we want to consider
the pixel under it or null if the value is not to be considered.
Kernel is a matrix M*N, with M and N odds.
-
mask
: matrix returned by an ImLab function or user-defined matrix having
the same size than image_data, allows to compute the output value only
for the area which is selected. If mask is defined, the output value
is computed only for values of image_data corresponding to non zero
value in mask.
-
average_image
: matrix which contains the image obtained after the computation of the average value for all pixels
Description
This function replaces the pixel at the center of the kernel by the average value of the pixels corresponding to a non zero value in the kernel if this pixel has a non null value corresponding to it in mask