\ .\" This man page was generated by the Netpbm tool 'makeman' from HTML source. .\" Do not hand-hack it! If you have bug fixes or improvements, please find .\" the corresponding HTML page on the Netpbm website, generate a patch .\" against that, and send it to the Netpbm maintainer. .TH "Pamgauss User Manual" 0 "8 May 2004" "netpbm documentation" .SH NAME pamgauss - create a two dimensional gaussian function as a PAM image .UN synopsis .SH SYNOPSIS \fBpamgauss\fP \fIwidth\fP \fIheight\fP \fB-sigma=\fP\fInumber\fP [\fB-maxval=\fP\fInumber\fP] [\fB-tupletype=\fP\fIstring\fP] .PP Minimum unique abbreviation of option is acceptable. You may use double hyphens instead of single hyphen to denote options. You may use white space in place of the equals sign to separate an option name from its value. .UN examples .SH EXAMPLES .nf pamgauss 3 3 -sigma=.5 -tupletype=GRAYSCALE | pamtopnm >gauss.pgm pnmconvol -nooffset gauss.pgm myimage.ppm >blurred.ppm .fi .UN description .SH DESCRIPTION .PP This program is part of .BR Netpbm (1) . .PP \fBpamgauss\fP generates a one-plane PAM image whose samples are a gaussian function of their distance from the center of the image. I.e. the sample value is highest in the center and goes down, in a bell curve shape, as you move away from the center. .PP The values are scaled so that the volume under the surface of the two-dimensional Gaussian function is the maxval of the image. .PP You can use this image as a convolution kernel with \fBpnmconvol\fP to blur an image. (This technique is known as Gaussian blurring). \fIwidth\fP and \fIheight\fP are the dimensions of the image that \fBpamgauss\fP generates. Mathematically speaking, they are the domain of the two dimensional gaussian function. .PP The sum of all the samples is equal to the image's maxval (within rounding error). This is true even if you clip the Gaussian function by making the image too small. If you want to be sure you get a whole Gaussian function, make sure that you choose a sigma and image dimensions so that if you made it any larger, the sample values at the edges would be zero. .PP The output image is PAM. To make it usable with \fBpnmconvol\fP, specify \fB-tupletype=GRAYSCALE\fP so \fBpnmconvol\fP can use it as if it were PGM. You must use the \fB-nooffset\fP option on \fBpnmconvol\fP because zero means zero in the PAM that \fBpamgauss\fP generates. .UN options .SH OPTIONS .TP \fB-sigma=\fP\fInumber\fP This is the sigma parameter of the Gaussian function (if it were a Gaussian probability function, this would be its standard deviation). The higher the number, the more spread out the function is. Normally, you want to make this number low enough that the function reaches zero value before the edge of your image. .sp \fInumber\fP is in units of pixels. .sp This option is required. There is no default. .TP \fB-maxval=\fP\fInumber\fP This is the maxval for the output image. It defaults to 255. .TP \fB-tupletype=\fP\fIstring\fP This is the value of the "tuple_type" attribute of the created PAM image. It can be any string up to 255 characters. If you don't specify this, \fBpamgauss\fP generates a PAM with unspecified tuple type. .UN seealso .SH SEE ALSO .BR pnmconvol (1) , .BR pamtopnm (1) , .BR pgmkernel (1) , .BR pamseq (1) , .BR pam (5) .UN history .SH HISTORY .PP \fBpamgauss\fP was new in Netpbm 10.23 (July 2004).