psRegionForImage.h

Go to the documentation of this file.
00001 /* @file  psRegionForImage.h
00002  * @brief regions definitions based on images
00003  *
00004  * $Revision: 1.3 $ $Name:  $
00005  * $Date: 2007/01/23 22:47:23 $
00006  * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00007  */
00008 
00009 #ifndef PS_REGION_FOR_IMAGE_H
00010 #define PS_REGION_FOR_IMAGE_H
00011 
00012 /// @addtogroup MathOps Mathematical Operations
00013 /// @{
00014 
00015 /** Sets an actual region based on image parameters.
00016  *
00017  *  An image region defined with negative upper limits may be rationalized for the bounds of a
00018  *  specific image with psRegionForImage.  The output of this function is a region with negative
00019  *  upper limits replaced by their corrected value appropriate to the given image.  In addition,
00020  *  the lower and upper limits are foced to lie within the bounds of the image.  If the lower-
00021  *  limit coordinates are lewss than the lower bound of the image, they are limited to the lower
00022  *  bound of the image.  Conversely, if the upper-limit coordinates are greater than the upper
00023  *  bound of the image, they are truncated to define only valid pixels.  If the lower-limit
00024  *  coordinates are greater than the upper bounds of the image, or the upper-limit coordinates
00025  *  are less than the lower bounds of the image, the coordinates should saturate on those limits.
00026  *
00027  *  @return psRegion:       A region with negative upper limits replaced by the corrected
00028  */
00029 psRegion psRegionForImage(
00030     psImage *image,                    ///< the image for which the region is to be set
00031     psRegion in                        ///< the image region limits
00032 );
00033 
00034 /// @}
00035 #endif

Generated on Fri Feb 2 22:24:35 2007 for pslib by  doxygen 1.5.1