Changeset 7553
- Timestamp:
- Jun 13, 2006, 3:29:16 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mathtypes/psImage.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.h
r7534 r7553 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-06-1 3 20:01:27$13 * @version $Revision: 1.78 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-06-14 01:29:16 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 109 109 ); 110 110 111 112 // XXX these have been moved to psRegion* in src/math113 # if 0114 /** Create a psRegion with the specified attributes.115 *116 * @return psRegion : a cooresponding psRegion.117 */118 psRegion psRegionSet(119 float x0, ///< the first column of the region.120 float x1, ///< the last column of the region + 1.121 float y0, ///< the first row of the region.122 float y1 ///< the last row of the region + 1.123 );124 125 /** Create a psRegion with the attribute values given as a string.126 *127 * Create a psRegion with the attribute values given as a string. The format128 * shall be of the standard IRAF form '[x0:x1,y0:y1]'129 *130 * @return psRegion: A new psRegion struct, or NULL is not successful.131 */132 psRegion psRegionFromString(133 const char* region ///< image rectangular region in the form '[x0:x1,y0:y1]'134 );135 136 /** Create a string of the standard IRAF form '[x0:x1,y0:y1]' from a psRegion.137 *138 * @return psString: A new string representing the psRegion as text, or NULL139 * is not successful.140 */141 psString psRegionToString(142 const psRegion region ///< the psRegion to convert to a string143 );144 145 /** Sets an actual region based on image parameters.146 *147 * An image region defined with negative upper limits may be rationalized for the bounds of a148 * specific image with psRegionForImage. The output of this function is a region with negative149 * upper limits replaced by their corrected value appropriate to the given image. In addition,150 * the lower and upper limits are foced to lie within the bounds of the image. If the lower-151 * limit coordinates are lewss than the lower bound of the image, they are limited to the lower152 * bound of the image. Conversely, if the upper-limit coordinates are greater than the upper153 * bound of the image, they are truncated to define only valid pixels. If the lower-limit154 * coordinates are greater than the upper bounds of the image, or the upper-limit coordinates155 * are less than the lower bounds of the image, the coordinates should saturate on those limits.156 *157 * @return psRegion: A region with negative upper limits replaced by the corrected158 */159 psRegion psRegionForImage(160 psImage *image, ///< the image for which the region is to be set161 psRegion in ///< the image region limits162 );163 164 /** Defines a region corresponding to the square with center at coordinate x,y165 * and with coderadius. The width of the square is 2radius + 1.166 *167 * @return psRegion: the newly defined psRegion.168 */169 psRegion psRegionForSquare(170 double x, ///< x coordinate at square-center171 double y, ///< y coordinate at square-center172 double radius ///< radius of square173 );174 # endif /* commented-out psRegions */175 176 111 /** Initializes the image with the given value. 177 112 *
Note:
See TracChangeset
for help on using the changeset viewer.
