IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 20, 2006, 6:37:29 PM (20 years ago)
Author:
Paul Price
Message:

Freeing detrend cells as we go

File:
1 edited

Legend:

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

    r6079 r6114  
    8989
    9090            ppDetrendCell(&detrend, options, config);
     91
     92            // Need to free detrend cells here so we have enough memory to do other stuff
     93            psFree(detrend.bias);
     94            psFree(detrend.dark);
     95            psFree(detrend.mask);
     96            psFree(detrend.flat);
    9197        }
     98
     99        int numMosaicked = pmChipMosaic(inputChip, 1, 1); // Number of cells mosaicked together
     100        psLogMsg(__func__, PS_LOG_INFO, "%d cells mosaicked.\n", numMosaicked);
     101
    92102    }
     103
     104    // Free the detrend FPA and chips
     105    psFree(data->bias);
     106    psFree(data->dark);
     107    psFree(data->mask);
     108    psFree(data->flat);
     109
     110
    93111    return true;
    94112}
Note: See TracChangeset for help on using the changeset viewer.