IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 10, 2007, 7:54:05 AM (19 years ago)
Author:
magnier
Message:

adding psRegionAndParityFromString

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psRegion.h

    r11248 r13741  
    22 * @brief image regions and related functions
    33 *
    4  * $Revision: 1.8 $ $Name: not supported by cvs2svn $
    5  * $Date: 2007-01-23 22:47:23 $
     4 * $Revision: 1.9 $ $Name: not supported by cvs2svn $
     5 * $Date: 2007-06-10 17:54:05 $
    66 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    77 */
     
    7272);
    7373
     74/** Create a psRegion from a string in IRAF form '[x0:x1,y0:y1]', returning range parities
     75 *
     76 *  Create a psRegion using the range defined by a string in the standard IRAF form
     77 *  '[x0:x1,y0:y1]'.  Unlike psRegionFromString, the ranges may have x0 > x1 or y0 > y1, in
     78 *  which case the xParity or yParity terms will be set to -1 (instead of the default +1).
     79 *
     80 *  @return psRegion:       A new psRegion struct, or NULL is not successful.
     81 */
     82psRegion psRegionAndParityFromString(
     83    int *xParity,                     ///< +1 if x0 <= x1, -1 otherwise
     84    int *yParity,                     ///< +1 if y0 <= y1, -1 otherwise
     85    const char* region                ///< image rectangular region in the form '[x0:x1,y0:y1]'
     86);
     87
    7488/** Create a string of the standard IRAF form '[x0:x1,y0:y1]' from a psRegion.
    7589 *
Note: See TracChangeset for help on using the changeset viewer.