IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 2, 2012, 1:10:10 PM (14 years ago)
Author:
eugene
Message:

add satstar profile operations (add & sub profile and/or noise at appropriate locations; skip stars with profiles for some analysis steps, etc; some mods to visualization for testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120805/psphot/src/psphotVisual.c

    r34368 r34378  
    262262}
    263263
     264static psImage *posImage = NULL;
     265static psImage *delImage = NULL;
     266
    264267bool psphotVisualShowImage (pmReadout *readout) {
    265268
     
    277280    psphotVisualScaleImage (kapa, readout->variance, readout->mask, "variance", 1.0, 1);
    278281    psphotVisualScaleImage (kapa, readout->image, readout->mask, "image", sqrt(factor), 0);
     282
     283    if (posImage == NULL) {
     284        posImage = psImageCopy (NULL, readout->image, PS_TYPE_F32);
     285    }
    279286
    280287    pmVisualAskUser(NULL);
     
    25802587    }
    25812588
    2582     if (reshow) {
     2589    if (false && reshow) {
    25832590        psphotVisualShowMask (myKapa, readout->mask, "mask", 2);
    25842591        psphotVisualScaleImage (myKapa, readout->variance, readout->mask, "variance", 1.0, 1);
    25852592    }
    2586     psphotVisualScaleImage (myKapa, readout->image, readout->mask, "resid", sqrt(factor), 0);
     2593
     2594    if (posImage) {
     2595        delImage = (psImage *) psBinaryOp(delImage, posImage, "-", readout->image);
     2596        psphotVisualScaleImage (myKapa, posImage, readout->mask, "posimage", sqrt(factor), 0);
     2597        psphotVisualScaleImage (myKapa, delImage, readout->mask, "delimage", sqrt(factor), 2);
     2598    }
     2599
     2600    psphotVisualScaleImage (myKapa, readout->image, readout->mask, "resid", sqrt(factor), 1);
    25872601
    25882602    pmVisualAskUser(NULL);
Note: See TracChangeset for help on using the changeset viewer.