KPG1_FLASx

Flashes image into a cell array

Description:

This subroutine converts a two-dimensional array into an integer cell array without scaling it. However, the cell array is computed by modulo arithmetic between the lowest and highest colour indices, or the complement of this should a negative scaling be required. The image is normally inverted for output on an image display, though this can be overridden.

Invocation

CALL KPG1_FLASx( BAD, DIM1, DIM2, INARR, LOWPEN, HIPEN, INVERT, : POSTIV, OUTARR, STATUS )

Arguments

BAD = LOGICAL (Given)
If true bad pixels will be processed. This should not be set to false unless the input array contains no bad pixels.
DIM1 = INTEGER (Given)
The first dimension of the two-dimensional array.
DIM2 = INTEGER (Given)
The second dimension of the two-dimensional array.
INARR( DIM1, DIM2 ) = ? (Given)
The array of data to be flashed.
LOWPEN = INTEGER (Given)
The lowest colour index to be used in case smaller values have been reserved for annotation.
HIPEN = INTEGER (Given)
The highest colour index to be used. Normally this is the number of greyscale intensities available on the chosen device.
INVERT = LOGICAL (Given)
True if the image is to be inverted for display.
POSTIV = LOGICAL (Given)
True if the display of the image is to be positive.
OUTARR( DIM1, DIM2 ) = INTEGER (Returned)
The cell array.
STATUS = INTEGER (Given)
Value of the status on entering this subroutine.

Notes: