Changeset 41265 for trunk/ppImage/src
- Timestamp:
- Feb 11, 2020, 1:12:02 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageDetrendPattern.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendPattern.c
r37406 r41265 38 38 if (options->doPatternRow) { 39 39 40 //psLogMsg("ppImage", PS_LOG_INFO, "Log: entering pattern.row routine"); 41 //psWarning ("Entering pattern.row routine"); 42 40 43 bool status; 41 44 pmHDU *hdu = pmHDUFromChip(chip); … … 45 48 } 46 49 50 const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME"); 51 psLogMsg("ppImage", PS_LOG_INFO, "Performing row pattern correction for %s\n", chipName); 52 47 53 pmFPAfile *input = psMetadataLookupPtr(&status, config->files, "PPIMAGE.INPUT"); 48 54 pmFPAview *view = pmFPAviewAlloc(0); // View for local processing 49 55 *view = *inputView; 50 56 while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) { 57 //const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME"); 58 //const char *cellName = psMetadataLookupStr(NULL, cell->concepts, "CELL.NAME"); 59 //psWarning ("Looping through %s, %s\n", chipName, cellName); 60 51 61 if (!cell->process || !cell->file_exists) { 52 62 continue; … … 69 79 ESCAPE(false, "Unable to determine whether row pattern matching should be applied."); 70 80 } 81 //psWarning ("Row: %d\n", doPattern); 71 82 if (!doPattern) continue; 72 83 … … 116 127 } 117 128 129 const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME"); 130 psLogMsg("ppImage", PS_LOG_INFO, "Performing pattern continuity correction for %s\n", chipName); 131 118 132 for (int i = 0; i < chip->cells->n; i++) { 119 133 view->cell = i; … … 130 144 ESCAPE(false, "Unable to determine whether row pattern matching should be applied."); 131 145 } 146 132 147 if (doPattern) { 133 148 tweak->data.U8[i] = 0xFF; … … 161 176 goto pattern_done; 162 177 } 178 179 const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME"); 180 psLogMsg("ppImage", PS_LOG_INFO, "Performing cell pattern correction for %s\n", chipName); 163 181 164 182 for (int i = 0; i < chip->cells->n; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
