- Timestamp:
- Feb 6, 2013, 2:34:49 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20121219
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219
-
branches/eam_branches/ipp-20121219/psModules
- Property svn:mergeinfo changed
/trunk/psModules merged: 35038,35081-35082
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20121219/psModules/src/camera/pmFPAMaskWeight.c
r31451 r35096 538 538 psF32 **imageData = readout->image->data.F32;// Dereference image 539 539 psF32 **varianceData = readout->variance ? readout->variance->data.F32 : NULL; // Dereference variance map 540 540 float maskFrac = 0.0; 541 541 for (int y = 0; y < numRows; y++) { 542 542 for (int x = 0; x < numCols; x++) { 543 543 if (maskData[y][x] & maskVal) { 544 maskFrac += 1; 544 545 imageData[y][x] = NAN; 545 546 if (varianceData) { … … 549 550 } 550 551 } 551 552 maskFrac = maskFrac / (1.0 * numRows * numCols); 553 psMetadataAddF32(readout->analysis, PS_LIST_TAIL, "READOUT.MASK.FRAC", PS_META_REPLACE, 554 "fraction of pixels masked by pmReadoutMaskApply",maskFrac); 552 555 return true; 553 556 }
Note:
See TracChangeset
for help on using the changeset viewer.
