Changeset 8822
- Timestamp:
- Sep 18, 2006, 9:34:16 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppTest.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppTest.c
r8776 r8822 11 11 int main(int argc, char *argv[]) 12 12 { 13 psLibInit(NULL); 14 13 15 14 16 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 99 101 100 102 101 #if 1103 #if 0 102 104 // A mosaic 103 105 psMetadata *mosaicCamera = psMetadataConfigRead(NULL, NULL, "/home/mithrandir/price/ipp/config/mcshort_mosaic/camera.config", true); … … 112 114 pmFPARead(fpa, inFile, NULL); 113 115 114 #if 0116 #if 1 115 117 psArray *chips = fpa->chips; 116 118 pmFPAWrite(fpa, outFile, NULL, false, false); … … 118 120 printf("Chip %d\n", i); 119 121 pmChip *chip = chips->data[i]; 120 pmChipRead(chip, inFile, NULL); 121 #if 0 122 #if 1 122 123 //pmChipRead(chip, inFile, NULL); 123 //pmChipWrite(chip, outFile, NULL, false);124 pmChipWrite(chip, outFile, NULL, false, false); 124 125 psArray *cells = chip->cells; 125 126 for (int j = 0; j < cells->n; j++) { 126 127 pmCell *cell = cells->data[j]; 127 //pmCellWrite(cell, outFile, NULL, false); 128 pmCellWrite(cell, outFile, NULL, false); 129 #if 0 // Read bit by bit 128 130 pmReadout *readout = pmReadoutAlloc(cell); 129 131 for (int z = 0; pmReadoutReadNext(readout, inFile, z, 512); z++) { … … 135 137 } 136 138 psFree(readout); 139 #else // Read the whole cell at once 140 pmCellRead(cell, inFile, NULL); 141 pmCellWrite(cell, outFile, NULL, true); 142 #endif 137 143 } 138 144 #endif 145 146 #if 0 139 147 pmChipMosaic(mosaicFPA->chips->data[i], chip); 140 148 pmChipWrite(mosaicFPA->chips->data[i], outFile, NULL, true, true); 141 149 pmChipFreeData(chip); 142 150 pmChipFreeData(mosaicFPA->chips->data[i]); 151 #endif 143 152 } 144 153 #endif 145 154 146 #if 1155 #if 0 147 156 pmFPAMosaic(mosaicFPA, fpa); 148 157 pmFPAWrite(mosaicFPA, outFile, NULL, true, true); … … 152 161 psFree(mosaicView); 153 162 //psFree(mosaicFPA); 163 #endif 164 165 #if 1 166 pmFPAPrint(stdout, fpa, true, true); 154 167 #endif 155 168 … … 165 178 psFree(cameraFormat); 166 179 167 psTimerStop();168 psTraceReset();169 psErrorClear();170 180 pmConceptsDone(); 171 181 pmConfigDone(); 172 173 174 ppMemCheck(); 182 psLibFinalize(); 175 183 176 184 // Pau.
Note:
See TracChangeset
for help on using the changeset viewer.
