IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2007, 9:36:07 AM (19 years ago)
Author:
eugene
Message:

modified ppStats API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r13667 r13677  
    265265            // Statistics on the merged cell
    266266            if (data->statsFile) {
    267                 data->stats = ppStats(data->stats, data->out, view, options->combine->maskVal,
    268                                       config); // Statistics for output FPA
    269             }
     267                if (!data->stats) {
     268                    data->stats = psMetadataAlloc();
     269                }
     270                if (!ppStats(data->stats,
     271                             data->out,
     272                             view,
     273                             options->combine->maskVal,
     274                             config)) {
     275                    psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to generate stats for image.\n");
     276                    return false;
     277                }
     278            }
    270279
    271280            // We threw away the bias sections --- record this
Note: See TracChangeset for help on using the changeset viewer.