Changeset 17459
- Timestamp:
- Apr 21, 2008, 8:18:33 AM (18 years ago)
- Location:
- branches/eam_branch_20080413/psphot/src
- Files:
-
- 2 edited
-
pmFootprint.h (modified) (1 diff)
-
pmFootprintIDs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080413/psphot/src/pmFootprint.h
r17443 r17459 47 47 48 48 psImage *pmSetFootprintArrayIDs(const psArray *footprints, const bool relativeIDs); 49 psImage *pmSetFootprintID( const pmFootprint *fp, const int id);49 psImage *pmSetFootprintID(psImage *idImage, const pmFootprint *fp, const int id); 50 50 void pmSetFootprintArrayIDsForImage(psImage *idImage, 51 51 const psArray *footprints, // the footprints to insert -
branches/eam_branch_20080413/psphot/src/pmFootprintIDs.c
r17443 r17459 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.
