MIRROR -- Mirror Image Channels
Creates a mirror image along the vertical or horizontal axis.
Progress of this program can be monitored. See MONITOR section.
PARAMETERS
MIRROR is controlled by the following global parameters:
Name Prompt Count Type
FILE Database File Name 1-64 Char
DBIC Database Input Channel List 1-1024 Int
DBOC Database Output Channel List 1-1024 Int
DBIW Database Input Window 0-4 Int
AXIS Mirror Axis: VERT/HORI 0-4 Char
DBGC Database Ground Control Segment 0-1 Int
FILE
Specifies the name of the PCIDSK image file containing the channels
to be mirrored.
EASI>FILE="filespec"
DBIC
Specifies the image channels to be mirrored.
EASI>DBIC=i,j,...,p
- Ranges of channels can be specified with negative values. For
example, {1,-4,10} is internally expanded to {1,2,3,4,10}.
- Up to 1024 channels can be handled.
- Up to 16 integer values can be specified.
- At least one channel must be specified.
- Duplicates are not allowed.
DBOC
Specifies the database output channels to receive the mirrored image
data.
EASI>DBOC=i,j,...,p
- Ranges of channels can be specified with negative values. For
example, {1,-4,10} is internally expanded to {1,2,3,4,10}.
- Up to 1024 channels can be handled.
- Up to 16 integer values can be specified.
- At least one channel must be specified.
- Duplicates are not allowed.
- DBOC may equal DBIC.
DBIW
Optionally specifies a rectangular window of image data to be
mirrored.
EASI>DBIW=Xoffset,Yoffset,Xsize,Ysize
EASI>DBIW= | defaults to entire image
AXIS
Optionally specifies the axis of rotation.
EASI>AXIS="HORI" | Rotate about horizontal axis
EASI>AXIS="VERT" | Rotate about vertical axis
EASI>AXIS= | defaults to "VERT"
DBGC
Optionally specifies the GCP segment to be mirrored. If this
parameter is specified, a new GCP segment will be created.
EASI> DBGC=i | mirror GCP segment i to new GCP segment
EASI> DBGC= | no gcp segment to be mirrored
DETAILS
MIRROR creates a set of mirror images along the vertical or
horizontal axis, given a set of input channels (DBIC) within a
specified window (DBIW), and saves the mirrored result in output
channels (DBOC). For rotation about the vertical axis, the grey
level values of the first and last input pixels on each line of
image data are swapped, the second and second last pixels on each
line are swapped, and so on. For rotation about the horizontal axis,
the grey level values of the first and last input lines are swapped,
the second and second last lines are swapped, and so on. MIRROR
allows mirroring of up to 1024 image channels at one time.
MIRROR can be run on aircraft radar and MSS image data, to convert
left-looking images to right-looking images or to invert ascending
radar data to descending order.
Note: If a GCP segment is to be mirrored as well, the parameter DBIW
should be defaulted to entire image. Only the image coordinates in
the GCP segment are mirrored.
MONITOR
Program progress can be monitored by printing the percentage of
completed processing in odometer fashion. A system parameter,
MONITOR, controls this activity:
EASI>MONITOR="ON" | turn monitor ON (default)
EASI>MONITOR="OFF" | turn monitor OFF (recommended if
| running in batch/background mode)
EXAMPLE
Create a mirror image along the vertical axis for 3 channels on a
PCIDSK database.
EASI>FILE="filename"
EASI>DBIC=7,3,4 | image channels to be mirrored
EASI>DBOC=1,2,5 | output channels for results
EASI>DBIW=0,0,512,512 | mirror upper left 512x512 window
EASI>AXIS="VERT" | rotate about vertical axis
EASI>DBGC=2 | mirror GCP segment 2
EASI>RUN MIRROR
Create mirror image along horizontal axis.
EASI>FILE="filename"
EASI>DBIC=1 | input channel to be rotated/mirrored
EASI>DBOC=2 | output channel for rotation
EASI>DBIW= | default window is entire database
EASI>AXIS="HORI" | rotate about horizontal axis
EASI>DBGC= | no GCP segment
EASI>RUN MIRROR | mirror rotated image
About PCI Help Gateway