Creates an element (image) of a Gaussian Pyramid
Creates an element (image) of a Gaussian Pyramid. The result is a subsampled image in which the power spectrum is more closely approximated.
- IN
- Input image. This is the image to be downsampled using the Gaussian-like weighting function.
- OUT
- Output image. The output image has half the number of lines and samples as the input image.
- WEIGHT(0.4)
- Weight scale. The value which determines the shape of the weight functions used in the low pass filter (convolution) process. Refer to the algorithm section for a definition of how WEIGHT affects the weight functions.
IMAGE.OUT is created with half the lines and samples that IMAGE.DAT has. The image is low pass filtered (smoothed) with a Gaussian-like weighting function.
A 5 x 5 low pass filter is set up. The user controls the shape of the convolution weight function with WEIGHT. A value of 0.4 is normally used to create a Gaussian-like weight function. A value of 0.3 is broader than Gaussian, a value of 0.5 is triangular, and a value of 0.6 is trimodal. The convolution weights are separable, normalized, symmetric, and have equal contribution (all nodes at a given level contribute the same total weight to the nodes at the next higher level).Following are the convolution weights for values of WEIGHT:
w(-2) = 0.25 - WEIGHT/2 w(-1) = 0.25 w(0) = WEIGHT w(1) = 0.25 w(2) = 0.25 - WEIGHT/2These weights are applied in the sample direction, then in the line direction. The image is then decimated by a factor of two, resulting in an image which is one-fourth the size of the input image. Refer to the references in the user notes for an in-depth explanation of this process.
A nonfatal error was encountered during processing. The message displayed immediately preceding this error message is the specific error encountered. Processing continues.
An error occurred allocating memory. Re-run the function, and if the error persists, contact the system manager.
A fatal error was encountered during processing. The error message displayed immediately preceding this message is the specific error encountered. Processing is terminated.