SURFLIB_TRIM_IMAGE

Sets quality bit for specified distance from exisiting bad data

Description:

Will take the quality array of a 2-D image and set the quality bit of all pixels within the specified trimming distance of a pixel that has bit 0 set. The output pixel bit is only set explicitly if bit 0 is not already set. This is so that the effect of the trim can be removed simply by changing the bad bits mask.

Invocation

CALL SURFLIB_TRIM_IMAGE( TRIM, NX, NY, BITNUM, IN_QUAL, OUT_QUAL, STATUS)

Arguments

TRIM = REAL (Given)
The distance in pixels inside which quality bits will be set.
NX = INTEGER (Given)
Number of X pixels in image
NY = INTEGER (Given)
Number of Y pixels in image
BITNUM = INTEGER (Given)
Bit number to set to bad if within TRIM distance of a pixel that has bit 0 set. Start counting at 0.
IN_QUAL(NX,NY) = UBYTE (Given)
Input image.
OUT_QUAL(NX,NY) = UBYTE (Returned)
Output image quality.
STATUS = INTEGER (Given and Returned)
Global status

Copyright

Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.

G.3 SCULIB

This section describes the subroutines that are available in the sculib distribution (libsculib.a).