IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7523


Ignore:
Timestamp:
Jun 12, 2006, 10:42:38 AM (20 years ago)
Author:
magnier
Message:

removed psRegion definition (was ifdef-ed out and moved to psRegion.h long ago)
added {} around definition of P_PSIMAGE_SET_NUMCOLS, etc
fixed error in P_PSIMAGE_SET_NUMROWS (was setting numCols instead)

File:
1 edited

Legend:

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

    r6874 r7523  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-04-17 22:00:03 $
     13 *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-06-12 20:42:38 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8080psImage;
    8181
    82 #define P_PSIMAGE_SET_NUMCOLS(img,nc) *(int*)&img->numCols = nc
    83         #define P_PSIMAGE_SET_NUMROWS(img,nr) *(int*)&img->numCols = nr
    84                 #define P_PSIMAGE_SET_TYPE(img,t) *(psMathType*)&img->type = t
    85 
    86                         // XXX moved to psRegion.h in src/math
    87                         # if 0
    88                         /** Basic image region structure.
    89                          *
    90                          * Struct for specifying a rectangular area in an image.
    91                          *
    92                          */
    93                         typedef struct
    94                         {
    95                             float x0;                         ///< the first column of the region.
    96                             float x1;                         ///< the last column of the region.
    97                             float y0;                         ///< the first row of the region.
    98                             float y1;                         ///< the last row of the region.
    99                         }
    100                         psRegion;
    101 # endif
     82#define P_PSIMAGE_SET_NUMCOLS(img,nc) {*(int*)&img->numCols = nc;}
     83#define P_PSIMAGE_SET_NUMROWS(img,nr) {*(int*)&img->numRows = nr;}
     84#define P_PSIMAGE_SET_TYPE(img,t) {*(psMathType*)&img->type = t;}
    10285
    10386/** Create an image of the specified size and type.
Note: See TracChangeset for help on using the changeset viewer.