pixinterp2x — interpolate a color pix file twice as large as the original
pixinterp2x does a bilinear interpolation between the pixels of the input pix(5) file to create the output file. This program is most useful when creating images for photographing. Even though no additional image information is created, there may be significant photographic advantages to operating the display at its highest resolution.
This is a very fast implementation of one special case of interpolation; the general tool for interpolation is pixscale(1).
Specify the width (in pixels) of the scanlines in the input file. The default is 512.
Specify the number of scanlines of input to be processed. The default is 512.
Specify both the number of pixels per scanline and the number of scanlines in the file to process.
The interpolated scanlines fall exactly half way between the input lines, and the input lines are exactly preserved. Rather than extrapolate beyond the edges of the file, the first X and Y line is duplicated (left and bottom edge). This differs from the behavior of pixscale(1).
This software is Copyright (c) 1989-2016 by the United States Government as represented by U.S. Army Research Laboratory.