Changeset 17516 for trunk/psphot/src/pmFootprintIDs.c
- Timestamp:
- May 4, 2008, 2:10:40 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/pmFootprintIDs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/pmFootprintIDs.c
r17443 r17516 74 74 * Set an image to the value of footprint's ID whever they may fall 75 75 */ 76 psImage *pmSetFootprintID(const pmFootprint *fp, // the footprint to insert 76 psImage *pmSetFootprintID(psImage *idImage, 77 const pmFootprint *fp, // the footprint to insert 77 78 const int id) { // the desired ID 78 79 assert(fp != NULL && pmFootprintTest((const psPtr)fp)); … … 83 84 assert (numCols >= 0 && numRows >= 0); 84 85 85 psImage *idImage = psImageAlloc(numCols, numRows, PS_TYPE_S32); 86 if (idImage == NULL) { 87 idImage = psImageAlloc(numCols, numRows, PS_TYPE_S32); 88 } else { 89 assert (idImage->numCols == numCols); 90 assert (idImage->numRows == numRows); 91 // XXX assert on type (S32) 92 } 86 93 P_PSIMAGE_SET_ROW0(idImage, row0); 87 94 P_PSIMAGE_SET_COL0(idImage, col0);
Note:
See TracChangeset
for help on using the changeset viewer.
