IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 14, 2008, 12:15:10 PM (18 years ago)
Author:
bills
Message:

make stamps of weight and mask images if requested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampMakeStamp.c

    r18981 r20148  
    282282    pmFPAview *srcView = pmFPAviewAlloc(0);
    283283    if (psArrayLength(inChip->cells) > 1) {
    284         // we extract our postage stamp from a mosaic so that
    285         // we don't have to manage extracting from multiple cells
     284        // we extract our postage stamp from a mosaic
    286285        pmFPAfile *mosaic = ppstampBuildMosaic(config, input, view);
    287286        if (mosaic == NULL) {
     
    327326            status = false;
    328327            break;
     328        }
     329        if (readout->mask) {
     330            outReadout->mask = extractStamp(readout->mask, extractRegion,  0);
     331            if (!outReadout->mask) {
     332                psError(PS_ERR_UNKNOWN, false, "failed to create postage stamp mask image\n");
     333                status = false;
     334                break;
     335            }
     336        }
     337        if (readout->weight) {
     338            outReadout->weight = extractStamp(readout->weight, extractRegion,  0);
     339            if (!outReadout->weight) {
     340                psError(PS_ERR_UNKNOWN, false, "failed to create postage stamp weight image\n");
     341                status = false;
     342                break;
     343            }
    329344        }
    330345
Note: See TracChangeset for help on using the changeset viewer.