IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2009, 10:42:16 AM (17 years ago)
Author:
eugene
Message:

updates from vysos branch: ppImage option to optionally flip images

File:
1 edited

Legend:

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

    r25847 r25875  
    9999                }
    100100
    101                 // perform the detrend analysis
    102                 if (!ppImageParityFlip(config, options, view)) {
     101                // flip the image to match the native detector orientation (to match bias, flat, etc)
     102                if (!ppImageParityFlip(config, options, view, true)) {
    103103                    ESCAPE("Unable to detrend readout");
    104104                }
    105 
    106                 // XXX TEST:
    107                 // psphotSaveImage (NULL, readout->image, "test.image.fits");
    108105
    109106                // XXX set the options->*Mask values here (after the mask images have been loaded
     
    132129                ppImageDetrendRecord(cell, config, options, view);
    133130            }
     131
     132            // process each of the readouts
     133            // XXX reset the view to the first readout?
     134            while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
     135                if (!readout->data_exists) {
     136                    continue;
     137                }
     138                // flip the image to match the raw readout orientation
     139                if (!ppImageParityFlip(config, options, view, false)) {
     140                    ESCAPE("Unable to detrend readout");
     141                }
     142            }
     143
    134144            // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
    135145            if (!ppImageDetrendFree (config, view)) {
     
    161171        }
    162172        timeDetrend += psTimerClear(TIMER_DETREND);
    163 
    164173
    165174        // we perform photometry on the readouts of this chip in the output
Note: See TracChangeset for help on using the changeset viewer.