IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14356


Ignore:
Timestamp:
Jul 20, 2007, 3:29:23 PM (19 years ago)
Author:
Paul Price
Message:

Mask bad pixels in the combined image.

Location:
trunk/ppMerge/src
Files:
3 edited

Legend:

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

    r14007 r14356  
    286286                        data->stats = psMetadataAlloc();
    287287                    }
    288                     if (!ppStatsFPA(data->stats, data->out, view, options->combine->maskVal, config)) {
     288                    if (!ppStatsFPA(data->stats, data->out, view,
     289                                    options->combine->maskVal | pmConfigMask("BLANK", config),
     290                                    config)) {
    289291                        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to generate stats for image.\n");
    290292                        return false;
     
    304306            for (int i = 0; i < filenames->n; i++) {
    305307                pmFPA *fpaIn = data->in->data[i]; // Input FPA
    306                 if (!fpaIn) { continue; } // was not a valid input file
     308                if (!fpaIn) { continue; } // was not a valid input file
    307309                pmChip *chipIn = fpaIn->chips->data[view->chip]; // Input chip
    308310                pmCell *cellIn = chipIn->cells->data[view->cell]; // Input cell
     
    325327        for (int i = 0; i < filenames->n; i++) {
    326328            pmFPA *fpaIn = data->in->data[i]; // Input FPA
    327             if (!fpaIn) { continue; } // was not a valid input file
     329            if (!fpaIn) { continue; } // was not a valid input file
    328330            pmChip *chipIn = fpaIn->chips->data[view->chip]; // Input chip
    329331            pmChipFreeData(chipIn);
     
    345347    for (int i = 0; i < filenames->n; i++) {
    346348        pmFPA *fpaIn = data->in->data[i]; // Input FPA
    347         if (!fpaIn) { continue; } // was not a valid input file
     349        if (!fpaIn) { continue; } // was not a valid input file
    348350        pmFPAFreeData(fpaIn);
    349351    }
  • trunk/ppMerge/src/ppMergeOptions.c

    r13873 r14356  
    2424
    2525// Allocator
    26 ppMergeOptions *ppMergeOptionsAlloc(void)
     26ppMergeOptions *ppMergeOptionsAlloc(const pmConfig *config)
    2727{
    2828    ppMergeOptions *options = psAlloc(sizeof(ppMergeOptions)); // The options, to return
     
    5959    options->combine->maskVal = 0xff;
    6060    options->combine->weights = false;
     61    options->combine->blank = pmConfigMask("BLANK", config);
    6162    options->satMask = 0x00;
    6263    options->badMask = 0x00;
     
    9697    )
    9798{
    98     ppMergeOptions *options = ppMergeOptionsAlloc(); // The merge options
     99    ppMergeOptions *options = ppMergeOptionsAlloc(config); // The merge options
    99100
    100101    // We need to work out the camera before we can get the recipe.  Take the first input and inspect it.
  • trunk/ppMerge/src/ppMergeOptions.h

    r13593 r14356  
    4444
    4545// Allocator
    46 ppMergeOptions *ppMergeOptionsAlloc(void);
     46ppMergeOptions *ppMergeOptionsAlloc(const pmConfig *config);
    4747
    4848
Note: See TracChangeset for help on using the changeset viewer.