KPG1_BOR2x

Places a border of constant values at the edges of a two-dimensional array

Description:

This routine assigns a constant value to the edge pixels of a two-dimensional array. The width of the edge is adjustable along each axis, but it is the same for the leading and trailing edges along a given dimension. If the border is wider than the array a SAI__ERROR status is returned.

Invocation

CALL KPG1_BOR2x( VALUE, BORWID, DIM1, DIM2, ARRAY, STATUS )

Arguments

VALUE = ? (Given)
Value to be assigned to the borders of the array.
BORWID( 2 ) = INTEGER (Given)
The width in pixels of the borders in each dimension, x then y. Each must be fewer than its corresponding dimension.
DIM1 = INTEGER (Given)
The first dimension of the array to have constant-valued peripheries.
DIM2 = INTEGER (Given)
The second dimension of the array to have constant-valued peripheries.
ARRAY( DIM1, DIM2 ) = ? (Given and Returned)
The array to have its borders set to a constant.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: