IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19705


Ignore:
Timestamp:
Sep 23, 2008, 1:21:33 PM (18 years ago)
Author:
Paul Price
Message:

Update concepts, esp. binning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPABin.c

    r19695 r19705  
    6060    out->data_exists = true;
    6161    if (out->parent) {
    62         out->parent->data_exists = out->parent->parent->data_exists = true;
     62        pmCell *outCell = out->parent;  // Output cell
     63        outCell->data_exists = outCell->parent->data_exists = true;
     64
     65        if (in->parent) {
     66            pmCell *inCell = in->parent;// Input cell
     67            psFree(outCell->concepts);
     68            outCell->concepts = psMetadataCopy(NULL, inCell->concepts);
     69        }
     70
     71        // Update the concepts with the new values for the binning
     72        psMetadataItem *binItem = psMetadataLookup(outCell->concepts, "CELL.XBIN");
     73        binItem->data.S32 *= xBin;
     74        binItem = psMetadataLookup(outCell->concepts, "CELL.YBIN");
     75        binItem->data.S32 *= yBin;
    6376    }
    6477
Note: See TracChangeset for help on using the changeset viewer.