IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30088


Ignore:
Timestamp:
Dec 17, 2010, 9:16:02 AM (15 years ago)
Author:
eugene
Message:

add function to copy footprint data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psModules/src/objects/pmFootprint.c

    r29004 r30088  
    255255}
    256256
     257// create a new footprint with the same span set as the input footprint
     258pmFootprint *pmFootprintCopyData(pmFootprint *inFoot, psImage *image) {
     259
     260    pmFootprint *outFoot = pmFootprintAlloc(inFoot->nspans, image);
     261    for (int i = 0; i < inFoot->nspans; i++) {
     262        pmSpan *span = inFoot->spans->data[i];
     263        pmFootprintAddSpan(outFoot, span->y, span->x0, span->x1);
     264    }
     265    return outFoot;
     266}
     267
    257268/************************************************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.