remod — Image combiner
Remod takes a stack of n images, loads them all into memory, and outputs a stack of n “gral” images with names constructed by replacing the three character suffix (plus the preceding period) by “_MDL.PNG”.
A “gral” image is the average of 2 span + 1 consecutive images except for the central skip images. The span must be specified on the command line. The skip may be given; it defaults to 1. Note the asymmetry between span, which specifies the half-range, and skip, which specifies the total number of central images to skip. Typically, skip will be odd.
The purpose of remod is to then align the central image to its neighbors with swim.