IRQ_CNTQ8

Count the number of pixels which are set in each bit-plane of the QUALITY component

Description:

This routine is equivalent to IRQ_CNTQ except that variable SET, is stored in an INTEGER8 array rather than INTEGER.

Each bit plane of the NDF QUALITY component corresponds to a different quality, described by a name stored in the quality names information structure in an NDF extension. A pixel is set in a bit plane of the QUALITY component if the pixel has the quality associated with the bit plane. This routine counts the number of such pixels in each bit plane.

Note, write or update access must be available for the NDF (as set up by routine LPG_ASSOC for instance), and the QUALITY component of the NDF must not be mapped on entry to this routine.

Invocation

CALL IRQ_CNTQ8( LOCS, SIZE, SET, STATUS )

Arguments

LOCS(5) = CHARACTER ( ) (Given)
An array of five HDS locators. These locators identify the NDF and the associated quality name information. They should have been obtained using routine IRQ_FIND or routine IRQ_NEW.
SIZE = INTEGER (Given)
The number of bit planes for which a count of set pixels is required.
SET( SIZE ) = INTEGER8 (Returned)
The number of pixels holding the corresponding quality in each of bit planes 1 to SIZE. The least-significant bit is Bit 1. If SIZE is larger than the number of bit planes in the QUALITY component, the unused elements are set to zero.
STATUS = INTEGER (Given and Returned)
The global status.