Changeset 7432
- Timestamp:
- Jun 8, 2006, 10:40:36 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMaskWeight.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMaskWeight.c
r7417 r7432 34 34 continue; 35 35 } 36 masks->data[i] = psImageAlloc(image->numCols, image->numRows, PS_TYPE_ F32);36 masks->data[i] = psImageAlloc(image->numCols, image->numRows, PS_TYPE_U8); 37 37 } 38 38 … … 78 78 long index = -1; // Index of the readout 79 79 for (long i = 0; i < hdu->images->n && index == -1; i++) { 80 if (hdu->images->data[i] == readout->image ) {80 if (hdu->images->data[i] == readout->image->parent) { 81 81 index = i; 82 82 } … … 135 135 } 136 136 137 psImage *mask = psImageSubset(hdu-> images->data[index], *trimsec); // The mask pixels137 psImage *mask = psImageSubset(hdu->masks->data[index], *trimsec); // The mask pixels 138 138 if (!mask) { 139 139 psString trimsecString = psRegionToString(*trimsec); … … 207 207 } 208 208 209 psImage *weight = psImageSubset(hdu-> images->data[index], *trimsec); // The weight pixels209 psImage *weight = psImageSubset(hdu->weights->data[index], *trimsec); // The weight pixels 210 210 if (!weight) { 211 211 psString trimsecString = psRegionToString(*trimsec);
Note:
See TracChangeset
for help on using the changeset viewer.
