Changeset 34721 for trunk/psphot/src/psphotStackMatchPSFs.c
- Timestamp:
- Nov 27, 2012, 3:17:21 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackMatchPSFs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackMatchPSFs.c
r34404 r34721 108 108 bool notMatched = psMetadataLookupBool(NULL, readoutOut->analysis, "NOT.PSF.MATCHED"); 109 109 if (notMatched) { 110 if (!readoutOut->image) { 111 // our images got freed in the matching process. Recreate them so that they 112 // are available when sources are copied to this readout. 113 readoutOut->image = psImageCopy(NULL, readoutSrc->image, PS_TYPE_F32); 114 if (readoutSrc->variance) { 115 psFree(readoutOut->variance); 116 readoutOut->variance = psImageCopy(NULL, readoutSrc->variance, PS_TYPE_F32); 117 } 118 if (readoutSrc->mask) { 119 psFree(readoutOut->mask); 120 readoutOut->mask = psImageCopy(NULL, readoutSrc->mask, PS_TYPE_IMAGE_MASK); 121 } 110 psFree(readoutOut->image); 111 readoutOut->image = psImageCopy(NULL, readoutSrc->image, PS_TYPE_F32); 112 psFree(readoutOut->variance); 113 if (readoutSrc->variance) { 114 readoutOut->variance = psImageCopy(NULL, readoutSrc->variance, PS_TYPE_F32); 115 } 116 psFree(readoutOut->mask); 117 if (readoutSrc->mask) { 118 readoutOut->mask = psImageCopy(NULL, readoutSrc->mask, PS_TYPE_IMAGE_MASK); 122 119 } 123 120 }
Note:
See TracChangeset
for help on using the changeset viewer.
