Changeset 7216 for trunk/ppImage/src/ppTest.c
- Timestamp:
- May 25, 2006, 12:20:53 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppTest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppTest.c
r6897 r7216 98 98 99 99 // Read the FPA 100 #if 1 101 pmFPARead(fpa, inFile, NULL); 102 #else 100 103 psArray *chips = fpa->chips; 101 pmFPAWrite(fpa, outFile, NULL, false);104 //pmFPAWrite(fpa, outFile, NULL, false); 102 105 for (int i = 0; i < chips->n; i++) { 103 106 pmChip *chip = chips->data[i]; 104 pmChipWrite(chip, outFile, NULL, false);107 //pmChipWrite(chip, outFile, NULL, false); 105 108 psArray *cells = chip->cells; 106 109 for (int j = 0; j < cells->n; j++) { 107 110 pmCell *cell = cells->data[j]; 108 pmCellWrite(cell, outFile, NULL, false);109 #if 1111 //pmCellWrite(cell, outFile, NULL, false); 112 #if 0 110 113 pmReadout *readout = pmReadoutAlloc(cell); 111 for (int z = 0; pmReadoutReadNext(readout, inFile, z, 100); z++) {114 for (int z = 0; pmReadoutReadNext(readout, inFile, z, 512); z++) { 112 115 do { 113 116 printf("Chip %d, Cell %d, Plane %d, row0 = %d\n", i, j, z, readout->row0); 114 117 pmReadoutWriteNext(readout, outFile, z); 115 118 //pmFPAPrint(fpa, false, true); 116 } while (pmReadoutReadNext(readout, inFile, z, 2048));119 } while (pmReadoutReadNext(readout, inFile, z, 512)); 117 120 } 118 121 psFree(readout); 119 122 #else 120 123 pmCellRead(cell, inFile, NULL); 124 printf("Read chip %d, cell %d\n", i, j); 121 125 #endif 122 psFree(cell);123 126 } 124 psFree(chip); 127 //pmChipMosaic(chip); 128 //psFree(chip); 125 129 } 130 #endif 126 131 127 #if 0 128 pmFPARead(fpa, inFile, NULL); 132 133 #if 1 129 134 // Copy to new camera format 130 135 pmFPA *newFPA = pmFPAConstruct(config->camera); 131 psMetadata *newFormat = psMetadataConfigParse(NULL, NULL, "mcshort_splice.config", true); 132 pmConfigConformHeader(phu, newFormat); 136 psMetadata *newFormat = psMetadataConfigParse(NULL, NULL, "/home/mithrandir/price/ipp/config/mcshort/format_spliced.config", true); 133 137 pmFPAAddSourceFromView(newFPA, view, newFormat); 134 pmFPAPrint(newFPA, true, true);135 pmFPACopy Structure(newFPA, fpa, 5, 5);136 pmFPAWrite(newFPA, outFile, NULL);137 exit(EXIT_SUCCESS);138 139 pmFPA Print(newFPA, true, true);138 //pmFPACopyStructure(newFPA, fpa, 5, 5); 139 pmFPACopy(newFPA, fpa); 140 //pmConfigConformHeader(phu, newFormat); 141 //pmHDUGenerateForFPA(newFPA); 142 //pmFPAPrint(newFPA, true, true); 143 pmFPAWrite(newFPA, outFile, NULL, true); 140 144 psFree(newFormat); 141 145 psFree(newFPA); … … 152 156 psTimerStop(); 153 157 psTraceReset(); 158 psErrorClear(); 154 159 pmConceptsDone(); 155 160 pmConfigDone();
Note:
See TracChangeset
for help on using the changeset viewer.
