NAME

max_gauss - gaussian maximum of image

PROTOTYPE

unitptr max_gauss( int dx, int dy, float scale, float sig, unitptr dest)

ARGUMENTS

int dx
width of image rectangle
int dy
height of image rectangle
float scale
pointer to normalization factor
float sig
pointer to width of gaussian kernel
unitptr dest
host unit

INTERFACE OF CREATED UNIT:

X_in[dx*dy]:
(packed input field) pixel values of source image
X_out[dx*dy]:
(packed output field 0) result image

DESCRIPTION:

Creates unit that computes gaussian maximum of rectangular image region of dx*dy pixels given at input field X_in with a gaussian kernel given by

m[x,y] = N * exp(- (x^2+y^2)/2*sig^2 )

The normalization constant N is determined such that the sum of all mask elements is unity.

SEE ALSO:

gauss

FILE

/local/homes/rhaschke/nst7/man/../o.linx86//../foldersrc/nst_filter.c