Isis 2 Documentation
mad Documentation
MAD - Perform algebra on 8 bit images
PROGRAMMER:EELIASON
MAD performs simple algebra on one or two input files to create a
single output file. The equations shown below are applied to the
input files. The parameters MUL1, MUL2, and ADD are input parameters.
OUT(i,j) = MUL1*IN1(i,j) + ADD (one input file)
or
OUT(i,j) = MUL1*IN1(i,j) + MUL2*IN2(i,j) + ADD (two input files)
This program works on 8-bit data only.
| Parm | Description | Default |
|---|---|---|
| FROM | INPUT FILE NAME, ENTER 1 OR 2 FILE NAMES | NONE |
| TO | OUTPUT FILE NAME | NONE |
| MUL1 | MULITPLIER FOR FIRST INPUT FILE | 1.0 |
| MUL2 | MULTIPLIER FOR SECOND INPUT FILE | 1.0 |
| ADD | CONSTANT TO BE ADDED | 0.0 |
| SL | STARTING LINE | 1 |
| SS | STARTING SAMPLE | 1 |
| NL | NUMBER OF LINES | 0 |
| NS | NUMBER OF SAMPLES | 0 |
| LINC | LINE INCREMENT | 1. |
| SINC | SAMPLE INCREMENT |
ADDITIONAL NOTES:
| Parm | Description |
|---|---|
| MUL1 | Multiplied to every pixel in first input image |
| MUL2 | Multiplied to every pixel in second input image |
| ADD | Additive constant. This parameter applied after MUL1 and MUL2 have been applied. |
| NL | Number of lines. The default is 0 which will process all lines of the image. |
| NS | Number of samples. The default is 0 which will process all samples of the image. |
| SL | Starting line. The default is 1 which will start the processing with the first line or top of the image. |
| SS | Starting sample. The default is 1 which will start the processing with the first sample or left side of the image. |
| LINC | Line increment. The default is 1.0 which will process each line of the image. LINC=2.0 will process every other line and the output image will have half as many lines as the input. LINC=.5 will process each line twice and the output image will have twice as many lines as the input. |
| SINC | Sample increment. The default is 1.0 which will process each sample of the image. SINC=2.0 will process every other sample and the output image will have half as many samples as the input. SINC=.5 will process each sample twice and the output image will have twice as many samples as the input. |
Contact us online at the Isis Support Center: http://isisdist.wr.usgs.gov