Reduce an image to fit on a printer device.
Resize an image to fit on a printer device. The number of lines as well as the number of samples in the image may be reduced.
- IN
- Input image. IN may be a single- or multi-band image of any data type. Window and/or band options may be specified. The window size of all input images must be the same. The data type of all input images must be the same.
- OUT
- Output image. The data type of the output image will be the same as that of the input image(s).
- MAXNL
- Maximum number of lines. Maximum number of lines in the output image. This number is determined by the device for which the output image is intended.
- MAXNS
- Maximum number of samples. Maximum number of samples in the output image. This number is determined by the device for which the output image is intended.
- NL
- Number of lines. The number of lines in the output image. The number of lines in the output image is returned to the user for future reference. The variable specified for NL must have been previously declared as a local TAE integer variable.
- NS
- Number of samples. The number of samples in the output image. The number of samples in the output image is returned to the user for future reference. The variable specified for NS must have been previously declared as a local TAE integer variable.
Processes a window of the third band of the image NY, and copies the reduced image into OIMG. The data type of OIMG will be the same as that of NY. The MAXNL and MAXNS specifications suggest that the image is being resized for a Harris Facsimile recorder. (For a Facsimile recorder, the largest image the recorder can print is 3450 lines by 2048 samples. A 75-line annotation block and a 75-line grey level wedge must be added to the image. This reduces the maximum number of image lines to 3300.) The number of lines and samples in the output image will be returned in the local TAE variables NL and NS respectively. NL and NS must be declared as local integer TAE variables prior to calling SCRUNCH.
Reduce an image to fit on a printer device. If the number of lines in the image does not exceed MAXNL, SCRUNCH will not reduce the image in the lines direction. If the number of lines in the image does exceed MAXNL, SCRUNCH will iteratively skip lines in the image. The number of lines in the output image will be less than or equal to MAXNL. An identical logic scheme is used to reduce the number of samples in the image.Error checking is performed on the input image(s) to ensure that only one window size has been specified. Error checking is also performed to ensure that input images with conflicting data types have not been specified. The data type of the output image will be the same as the data type of the input image(s).
The number of lines and samples in the output image is returned to the user in TAE global variables.
A nonfatal error was encountered during processing. The image data is valid; processing will continue.
Input images were specified that do not have the same data type. Input images must have the same data type.
A fatal error was encountered. The message displayed immediately preceding this error message is the specific error encountered.
The MAXNL/MAXNS parameters must be greater than 1. Re-enter the parameters and re-run.
An error was encountered while trying to return a value from TAE.
The input images do not have the same window size. Correct the input image specification.