Five function types are supported:
Histogram Equalization
Histogram Normalization
Histogram Matching
Infrequency Brightening
Adaptive Enhancement
Name Prompt Count Type FILE Database File Name 1-64 Char FUNC Function: EQUA/NORM/MATC/INFR/ADAP 1-4 Char DBIC Database Input Channel List 1-16 Int DBLUT Database Lookup Table 0-16 Int DBSN Database Segment Name 1-8 Cha DBSD Database Segment Descriptor 0-64 Char OSTR Output Stretch Range (Min,Max) 0-2 Int SDPT Standard Deviations Per Tail 0-1 Real TRIM Tail Trimming % (Left, Right) 0-2 Real MASK Area Mask (Window or Bitmap) 0-4 Int DBHC Database Histogram Match Channel 0-1 Int The following parameter receives output DBLUT Database Lookup Table 1-16 Int
EASI>FILE="filespec"
EASI>FUNC="EQUA" |"EQUA" - histogram equalization
|"NORM" - histogram normalization
|"MATC" - histogram matching
|"INFR" - infrequency brightening
|"ADAP" - adaptive enhancement
EASI> DBIC=i,j,...,p
EASI>DBLUT=i,j,...,p
EASI>DBSN="project "
EASI>DBSD="string describing contents or origin of data"
EASI>OSTR=i,jDefault is 0,255.
EASI>SDPT=3.0
EASI>TRIM=n1,n2
EASI>MASK=xoff,yoff,xsize,ysize | process window
EASI>MASK=b | process only under bitmap
| stored in segment b
EASI>MASK= | process quarter of pixels in
| quarter of scanlines for channel
EASI>DBHC=j
Image data on a set of input channels (DBIC) are read and their histograms are used to generate lookup tables, which are then stored on a set of database lookup table segments (DBLUT) for later use by LUT or IVL. If DBLUT is not specified, FUN creates a new lookup table segment for each input channel specified, and stores the segment numbers in DBLUT. If new lookup segments are created, the segment name must be defined (DBSN) and a segment descriptor may be defined (DBSD). If DBLUT is specified, FUN overwrites the existing lookup table segments.
A lookup table is generated to map the input histogram over the entire range of output grey level values. By default, the output range is 0 to 255, but the user may explicitly specify the minimum and maximum output grey levels using OSTR.
The MASK parameter specifies the area within the input channel which will be processed. Only the area under the mask is read and the rest of the image is not used. If a single value is specified, then this value points to a bitmap segment, which defines the area to be processed. When four values are specified, these values define the x,y offsets and x,y dimensions of a rectangular window within the image to process. If defaulted, the entire database is sampled and one quarter of the pixels in one quarter of the scanlines are used.
The low and high ends of the sample can be trimmed by specified percentages (TRIM) to eliminate outliers or noise.
HISTOGRAM EQUALIZATION
Histogram equalization produces an image where grey level values are
uniformly distributed: each grey level in the transformed histogram
occurs approximately the same number of times.
HISTOGRAM NORMALIZATION
Histogram normalization produces an image where the histogram has a
normal, or Gaussian, distribution. By default, the distribution will
have a mean of 127.5 and a standard deviation of 42.5, or 3.0
standard deviations per histogram tail. The number of standard
deviations per tail can be set using SDPT, and the mean will shift
to the centre of a specified OSTR.
HISTOGRAM MATCHING
Histogram matching produces an image where the histogram has a
similar distribution as that of the histogram match image channel
(DBHC).
INFREQUENCY BRIGHTENER
The infrequency brightener produces an image where the infrequently
occurring grey level values in the input image are mapped to the
high end of the grey level spectrum.
ADAPTIVE ENHANCEMENT
The adaptive enhancement produces an enhanced image based on the
median value of the image.
EASI>FILE="AGRIHOT" EASI>FUNC="EQUA" | set function to equalization EASI>DBIC=1,2,3 | equalize channels 1-3 EASI>DBLUT= | write functions to new LUTs EASI>DBSN="Equalut" | assign segment name EASI>DBSD= | blank segment descriptor EASI>OSTR= | default stretch range to 0-255 EASI>SDPT= | not needed for FUNC="EQUA" EASI>TRIM= | default, no trimming EASI>MASK= | default, sample 1/16 of channel EASI>DBHC= | not needed for FUNC="EQUA" EASI>RUN FUN