- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
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:
-
There is a routine for each numeric data type: replace "
x"
in the routine name by D, R, I, W, UW, B or
UB as appropriate. The array and value to be substituted that are supplied to the routine must have
the data type specified.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑