Changeset 23936 for trunk/magic/remove/src/streaksremove.c
- Timestamp:
- Apr 20, 2009, 2:38:45 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksremove.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksremove.c
r23911 r23936 23 23 } 24 24 25 psMetadata *masks = psMetadataLookupMetadata(&status, config->recipes, "MASKS"); 26 if (!status) { 27 psError(PM_ERR_CONFIG, false, "failed to lookup MASKS in recipes\n"); 28 streaksExit("", PS_EXIT_CONFIG_ERROR); 29 } 30 double maskStreak = (double) psMetadataLookupU16(&status, masks, "STREAK"); 31 if (!status) { 32 psError(PM_ERR_CONFIG, false, "failed to lookup mask value for STREAK in recipes\n"); 33 streaksExit("", PS_EXIT_CONFIG_ERROR); 34 } 35 36 // optionally setting pixels with any mask bits execpt POOR.WARP to NAN 37 psU16 poorWarp = (double) psMetadataLookupU16(&status, masks, "CONV.POOR"); 38 if (!status) { 39 psError(PM_ERR_CONFIG, false, "failed to lookup mask value for POOR.WARP in recipes\n"); 40 streaksExit("", PS_EXIT_CONFIG_ERROR); 41 } 42 psU16 maskMask = ~poorWarp; 25 psU32 maskStreak = 0; 26 psU32 maskMask = 0; 43 27 44 28 psString streaksFileName = psMetadataLookupStr(NULL, config->arguments, "STREAKS"); … … 114 98 } 115 99 100 // now that we've read the input files, lookup the mask values 101 if (maskStreak == 0) { 102 strkGetMaskValues(sfiles, &maskStreak, &maskMask); 103 } 104 116 105 totalPixels += sfiles->inImage->numRows * sfiles->inImage->numCols; 117 106 … … 131 120 psTimerStart("EXCISE_NON_WARPED"); 132 121 122 // set non-warped pixels and variance to NAN, mask to maskStreak (since the pixel 123 // is excised as part of the destreaking process) 133 124 exciseNonWarpedPixels(sfiles, maskStreak); 134 125 … … 648 639 } 649 640 } 641 // XXX: check this 650 642 // Assumption: there are no mask and weight images for video cells 651 643 return;
Note:
See TracChangeset
for help on using the changeset viewer.
