Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psRegionForImage.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

psRegion psRegionForImage (psImage *image, psRegion in)
 Sets an actual region based on image parameters.


Function Documentation

psRegion psRegionForImage psImage image,
psRegion  in
 

Sets an actual region based on image parameters.

An image region defined with negative upper limits may be rationalized for the bounds of a specific image with psRegionForImage. The output of this function is a region with negative upper limits replaced by their corrected value appropriate to the given image. In addition, the lower and upper limits are foced to lie within the bounds of the image. If the lower- limit coordinates are lewss than the lower bound of the image, they are limited to the lower bound of the image. Conversely, if the upper-limit coordinates are greater than the upper bound of the image, they are truncated to define only valid pixels. If the lower-limit coordinates are greater than the upper bounds of the image, or the upper-limit coordinates are less than the lower bounds of the image, the coordinates should saturate on those limits.

Returns:
psRegion: A region with negative upper limits replaced by the corrected
Parameters:
image  the image for which the region is to be set
in  the image region limits


Generated on Mon Jul 3 14:14:49 2006 for Pan-STARRS Foundation Library by  doxygen 1.4.4