IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2006, 6:25:28 PM (20 years ago)
Author:
Paul Price
Message:

Fixing mosaicking of binned images: cell concepts (CELL.XBIN and CELL.YBIN) weren't being set for the input and output images.

File:
1 edited

Legend:

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

    r7621 r7629  
    7272    pmFPAfile *bin2 = pmFPAfileDefineFromFPA (config, byChip->fpa, options->xBin2, options->yBin2, "PPIMAGE.BIN2");
    7373
    74     // set the CELL.XBIN and CELL.YBIN for the output mosaiced FPAs
    75     for (int i = 0; i < byFPA1->fpa->chips->n; i++) {
    76         pmChip *chip = byFPA1->fpa->chips->data[i];
    77         for (int j = 0; j < chip->cells->n; j++) {
    78             pmCell *cell = chip->cells->data[j];
    79             psMetadataAddF32 (cell->concepts, PS_LIST_TAIL, "CELL.XBIN", PS_META_REPLACE, "", options->xBin1);
    80             psMetadataAddF32 (cell->concepts, PS_LIST_TAIL, "CELL.YBIN", PS_META_REPLACE, "", options->yBin1);
    81         }
    82     }
    83     for (int i = 0; i < byFPA2->fpa->chips->n; i++) {
    84         pmChip *chip = byFPA2->fpa->chips->data[i];
    85         for (int j = 0; j < chip->cells->n; j++) {
    86             pmCell *cell = chip->cells->data[j];
    87             psMetadataAddF32 (cell->concepts, PS_LIST_TAIL, "CELL.XBIN", PS_META_REPLACE, "", options->xBin2);
    88             psMetadataAddF32 (cell->concepts, PS_LIST_TAIL, "CELL.YBIN", PS_META_REPLACE, "", options->yBin2);
    89         }
    90     }
    91 
    9274    // bin1 and bin2 are used as carriers: input for byFPA1, byFPA2
    9375    bin1->freeLevel = PM_FPA_LEVEL_FPA;
Note: See TracChangeset for help on using the changeset viewer.