IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7553


Ignore:
Timestamp:
Jun 13, 2006, 3:29:16 PM (20 years ago)
Author:
Paul Price
Message:

Removing extraneous #if-ed out code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.h

    r7534 r7553  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-06-13 20:01:27 $
     13 *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-06-14 01:29:16 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    109109);
    110110
    111 
    112 // XXX these have been moved to psRegion* in src/math
    113 # if 0
    114 /** 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 format
    128  *  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 NULL
    139  *                  is not successful.
    140  */
    141 psString psRegionToString(
    142     const psRegion region              ///< the psRegion to convert to a string
    143 );
    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 a
    148  *  specific image with psRegionForImage.  The output of this function is a region with negative
    149  *  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 lower
    152  *  bound of the image.  Conversely, if the upper-limit coordinates are greater than the upper
    153  *  bound of the image, they are truncated to define only valid pixels.  If the lower-limit
    154  *  coordinates are greater than the upper bounds of the image, or the upper-limit coordinates
    155  *  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 corrected
    158  */
    159 psRegion psRegionForImage(
    160     psImage *image,                    ///< the image for which the region is to be set
    161     psRegion in                        ///< the image region limits
    162 );
    163 
    164 /** Defines a region corresponding to the square with center at coordinate x,y
    165  *  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-center
    171     double y,                           ///< y coordinate at square-center
    172     double radius                       ///< radius of square
    173 );
    174 # endif /* commented-out psRegions */
    175 
    176111/** Initializes the image with the given value.
    177112 *
Note: See TracChangeset for help on using the changeset viewer.