Note: LUT works only for 8-bit data. Use MODEL to perform lookup table operations on 16-bit and 32-bit data.
Progress of this program can be monitored. See MONITOR section.
See Also: STR, FUN, LUTREAD, DCP, MODEL
Name Prompt Count Type FILE Database File Name 1-64 Char DBIC Database Input Channel List 1-1024 Int DBLUT Database Lookup Table 1-1024 Int DBOC Database Output Channel List 1-1024 Int MASK Area Mask (Window or Bitmap) 0-4 Int
EASI>FILE="filespec"
EASI>DBIC=i,j,...,p
EASI>DBLUT=i,j,...,p
EASI>DBOC=i,j,...,p
EASI>MASK=xoff,yoff,xsize,ysize | process window
EASI>MASK=b | process only under bitmap
| stored in segment b
EASI>MASK= | process entire channel
However it sometimes becomes necessary to permanently enhance the data by physically passing it through the Lookup Table and writing it back to disk. This removes the need for the Lookup Table. Typically this is done in preparation to export the data to another system, or for creating a finished product which will be printed.
LUT transforms a set of image channels via a set of lookup tables stored in lookup table segments (Segment type 170). The transformed image data is stored in a set of output image channels.
The MASK parameter specifies the area within the input channel which will be processed. Only the area under mask will be processed 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 processed (this is useful, for instance, in enhancing water data while leaving land unchanged, by using a bitmap to mask all areas of water). 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 processed. If defaulted (no values specified), the entire database is processed.
level Output
1 3 1 1 0 9 6 0 6 6
3 3 3 0 1 6 0 0 0 9
0 1 0 0 2 1 9 6 9 9
3 3 0 255 3 0 0 0 9 0
: :
255 0
Input LUT Output
EASI>MONITOR="ON" | turn monitor ON (default)
EASI>MONITOR="OFF" | turn monitor OFF (recommended if
| running in batch/background mode)
EASI>FILE="filename"
EASI>DBIC=1 | transfer channel 1 to display
EASI>VDOC=1 | image plane 1 displays channel 1
EASI>DBOW= | transfer entire image
EASI>VDOW= | use entire display window
EASI>RUN IVI | transfer image to display
EASI>RUN DCP "L?" | alter lookup table memory using one
of the lookup table commands
EASI>VDLUT=1 | select lookup table 1 for transfer
EASI>DBSN="Lookup" | assign database segment name
EASI>RUN VIL | transfer LUT to database
EASI>DBIC=1 | select channel 1 for LUT enhancement
EASI>DBLUT=LASC | select LUT segment for enhancement
EASI>DBOC=2 | store enhanced image in channel 2
EASI>MASK= | use entire channel
EASI>RUN LUT
Note: we take advantage of the fact that when a new segment is
created, the segment number is saved in LASC (Last Segment Created).