Progress of this program can be monitored. See MONITOR section.
See Also: FED, FME, FGA, FMO, FPR, FAD, FLE, FSOBEL, FPRE, FSHARP
Name Prompt Count Type FILE Database File Name 1-64 Char DBIC Database Input Channel List 1 Int DBOC Database Output Channel List 1 Int FLSZ Filter Size: Pixels, Lines 1-2 Int MASK Area Mask (Window or Bitmap) 0-4 Int
EASI>FILE="filespec"
EASI>DBIC=i
EASI>DBOC=j
EASI>FLSZ=i,j
EASI> MASK = | process entire channel
EASI> MASK = xoff,yoff,xsize,ysize | process window
EASI> MASK = b | process only under bitmap
| stored in segment b
The dimensions of the filter window must be odd. The minimum filter size is 1 by 3 (or 3 by 1), and the maximum filter size allowed is 1001 by 1001. The filter window does not need to be square.
The MASK parameter specifies the area within the input channel which will be processed. Only the area under mask will be filtered and the rest of the image will be unchanged. If a single value is specified, then this value points to a bitmap segment, which defines the area to be filtered. When four values are specified, these values define the x,y offsets and x,y dimensions of the rectangular window within the image to be filtered. If MASK is defaulted, the entire database is processed.
EASI>MONITOR="ON" | turn monitor ON (default)
EASI>MONITOR="OFF" | turn monitor OFF (recommended if
| running in batch/background mode)
All pixels are filtered. In order to filter pixels located near the edges of the image, edge pixel values are replicated to give sufficient data.
+---------+
|a1 a2 a3 |
|a4 a5 a6 | <--- Filter window 3 X 3
|a7 a8 a9 |
+---------+
The averaging filter calculates the sum of all pixels in the filter
window, then divides by the number of pixels in the filter window:Filtered pixel r = (a1 + a2 +....+ a9) / 9
Example of using 5x5 filter on database image of 8x8 pixels.
Image before filtering Image after filtering
8 8 8 9 9 9 7 6 6 6 6 6
8 8 8 9 9 9 7 6 6 6 6 6
+----------------+ +----------------+
8 8 |8 9 9 9 7 6 6 6 | 6 6 |8 8 8 8 7 7 6 6 |
8 8 |8 9 9 7 6 6 6 6 | 6 6 |8 8 8 7 7 6 6 6 |
9 9 |9 8 8 6 6 6 6 6 | 6 6 |8 8 8 7 7 6 6 6 |
9 9 |9 8 7 7 6 5 6 6 | 6 6 |8 7 7 7 6 6 6 6 |
7 7 |7 7 7 6 6 6 6 6 | 6 6 |7 7 7 6 6 6 6 6 |
6 6 |6 6 6 6 6 6 6 6 | 6 6 |7 7 6 6 6 6 6 6 |
6 6 |6 6 6 6 6 6 6 5 | 5 5 |6 6 6 6 6 6 6 6 |
6 6 |6 6 6 6 6 6 6 6 | 6 6 |6 6 6 6 6 6 6 6 |
+----------------+ +----------------+
6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6
In the "Image before filtering" on the left, columns and scanlines
outside the box represent the last image column or scanline being
reused, for the case where the filter does not have a full window.
EASI>FILE = "IRVINE.PIX" EASI>DBIC = 4 | Channel to be filtered EASI>DBOC = 8 | Filtered results EASI>FLSZ = 5,5 | 5x5 filter size. EASI>MASK = 11 | Indicate area to filter. EASI>RUN FAVThe 16-bit elevation data stored channel 10 on database IRVINE.PIX is to be smoothed using a 21 square filter. The filtered result is to overwrite the original input data.
EASI>FILE = "IRVINE.PIX" EASI>DBIC = 10 | Input Elevation data EASI>DBOC = 10 | Input data to be overwritten EASI>FLSZ = 21,21 | 21x21 filter size. EASI>MASK = | Entire database to be filtered EASI>RUN FAV