Smearing of the 2-D array can be done by averaging for each array element ower neighbour elements with weights

with weights defined by the Gaussian function

where i, j, m, and n are the pixel indexes, and the Gaussian widths, ?, is also expressed in terms of number of pixels.

  • No labels