Help for POLYPNT
PURPOSE
POLYPNT is used to transform a standard polygon file into an
image file of polygon borders with each border painted at a
unique DN level. The input data in coordinate-point format
is used to form a raster image containing polygon outlines.
TAE COMMAND LINE FORMAT
POLYPNT INP=G OUT=PIC SIZE PARAMS
where
G is the IBIS Graphics polygon data to
be scribed,
PIC is the output raster dataset onto
which the scribed image will be
written,
SIZE is the standard VICAR size field.
The size field provides a window
through which the lines are scribed
and is required by the program, and
PARAMS is a standard VICAR parameter
field.
OPERATION
POLYPNT scribes lines in a holding array which is a subset
of the window described in the SIZE parameter. It processes
one line at a time calculating slope, beginning and ending
points to determine which pixels will be filled to connect
the points. It looks for intersections (previously coded
pixels) and outputs notations to the optionally tabular
file. The completed strip is written to the output dataset
before a new strip is started.
EXAMPLE
POLYPNT INP=G OUT=PIC SIZE=(1,1,512,512) 'PAINT 'INTE
In this example, POLYPNT reads the dataset, IN and writes
the scribed image onto the datset PIC. The output image is
512 x 512 and contains lines and intersections with sequential
DN values starting with DN 1. The background is DN 0.
WRITTEN BY: A. L. Zobrist, 27 April 1983
COGNIZANT PROGRAMMER: B. A, Mc Guffie
REVISION: New
PARAMETERS:
INP
Input Graphics file to scribe
OUT
PIC - output image file
SIZE
Standard size field (sl,ss,nl,ns)
DN
DN value for the first line
BDN
DN value for background
PDN
DN for the first intersection
RANGE
Range of G2 user codes to paint
SELECT
G2 user codes to paint
MODE
HALF - halfword output
PAINT- each line with unique DN
INTE - each intersection new DN
GR2 - Graphics II input
See Examples:
Cognizant Programmer: