IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8822 for trunk/ppImage/src


Ignore:
Timestamp:
Sep 18, 2006, 9:34:16 AM (20 years ago)
Author:
Paul Price
Message:

Altering to simply read in a file, and write it back out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppTest.c

    r8776 r8822  
    1111int main(int argc, char *argv[])
    1212{
     13    psLibInit(NULL);
     14
    1315
    1416//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    99101
    100102
    101 #if 1
     103#if 0
    102104    // A mosaic
    103105    psMetadata *mosaicCamera = psMetadataConfigRead(NULL, NULL, "/home/mithrandir/price/ipp/config/mcshort_mosaic/camera.config", true);
     
    112114    pmFPARead(fpa, inFile, NULL);
    113115
    114 #if 0
     116#if 1
    115117    psArray *chips = fpa->chips;
    116118    pmFPAWrite(fpa, outFile, NULL, false, false);
     
    118120        printf("Chip %d\n", i);
    119121        pmChip *chip = chips->data[i];
    120         pmChipRead(chip, inFile, NULL);
    121 #if 0
     122#if 1
    122123        //pmChipRead(chip, inFile, NULL);
    123         //pmChipWrite(chip, outFile, NULL, false);
     124        pmChipWrite(chip, outFile, NULL, false, false);
    124125        psArray *cells = chip->cells;
    125126        for (int j = 0; j < cells->n; j++) {
    126127            pmCell *cell = cells->data[j];
    127             //pmCellWrite(cell, outFile, NULL, false);
     128            pmCellWrite(cell, outFile, NULL, false);
     129#if 0 // Read bit by bit
    128130            pmReadout *readout = pmReadoutAlloc(cell);
    129131            for (int z = 0; pmReadoutReadNext(readout, inFile, z, 512); z++) {
     
    135137            }
    136138            psFree(readout);
     139#else // Read the whole cell at once
     140            pmCellRead(cell, inFile, NULL);
     141            pmCellWrite(cell, outFile, NULL, true);
     142#endif
    137143        }
    138144#endif
     145
     146#if 0
    139147        pmChipMosaic(mosaicFPA->chips->data[i], chip);
    140148        pmChipWrite(mosaicFPA->chips->data[i], outFile, NULL, true, true);
    141149        pmChipFreeData(chip);
    142150        pmChipFreeData(mosaicFPA->chips->data[i]);
     151#endif
    143152    }
    144153#endif
    145154
    146 #if 1
     155#if 0
    147156    pmFPAMosaic(mosaicFPA, fpa);
    148157    pmFPAWrite(mosaicFPA, outFile, NULL, true, true);
     
    152161    psFree(mosaicView);
    153162    //psFree(mosaicFPA);
     163#endif
     164
     165#if 1
     166    pmFPAPrint(stdout, fpa, true, true);
    154167#endif
    155168
     
    165178    psFree(cameraFormat);
    166179
    167     psTimerStop();
    168     psTraceReset();
    169     psErrorClear();
    170180    pmConceptsDone();
    171181    pmConfigDone();
    172 
    173 
    174     ppMemCheck();
     182    psLibFinalize();
    175183
    176184    // Pau.
Note: See TracChangeset for help on using the changeset viewer.