The upper and lower bounds of these boxes are returned to the calling application when the mask is complete. If an application is only interested in included pixels, it may then restrict its attention to the region of the data array contained within the internal bounding box (all pixels outside this box are guaranteed to be excluded). It is still necessary for the application to check mask pixels to see if they are included or excluded, but the checks can at least be restricted to the region of the internal bounding box. The external bounding box can be used in a similar way if the application is only interested in excluded pixels.
If all mask pixels are included (i.e. if there are no excluded pixels)
then the external bounding box will be returned ``null'', and the internal
bounding box will be returned covering the entire mask. Likewise, if all
mask pixels are excluded (i.e. if there are no included pixels) then the
internal bounding box will be returned ``null'', and the external bounding box
will be returned covering the entire mask. Null bounding boxes are identified by
the fact that the lower bound of each axis is greater than the corresponding
upper bound. This condition should always be checked for before using a
bounding box.
ARD A Textual Language for Describing Regions within a Data Array