IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 21, 2006, 12:29:48 AM (20 years ago)
Author:
Paul Price
Message:

Working, but leaks memory something chronic

File:
1 edited

Legend:

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

    r6114 r6125  
    66pmReadout *ppDetrendSelectFirst(pmCell *cell, char *name, bool doThis)
    77{
    8 
    98    if (!doThis) {
    109        return NULL;
     
    3433#endif
    3534
    36     // Dark time for dark image
    37     float darkTime = 1.0;
    38     if (options->doDark) {
    39         darkTime = psMetadataLookupF32(NULL, detrend->dark->concepts, "CELL.DARKTIME");
    40         if (darkTime <= 0.0) {
    41             psErrorStackPrint(stderr, "DARKTIME for dark image (%f) is non-positive.\n", darkTime);
    42             exit(EXIT_FAILURE);
    43         }
    44     }
    45 
    4635    for (int k = 0; k < detrend->input->readouts->n; k++) {
    4736
     
    5039        // Mask bad pixels
    5140        if (options->doMask) {
    52             ppDetrendMask (detrend->input, input, mask);
     41            ppDetrendMask(detrend->input, input, mask);
    5342        }
    5443
    5544        // Non-linearity correction
    5645        if (options->doNonLin) {
    57             ppDetrendNonLinear (detrend->input, input, options);
     46            ppDetrendNonLinear(detrend->input, input, options);
    5847        }
    5948
Note: See TracChangeset for help on using the changeset viewer.