IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2007, 2:20:44 PM (19 years ago)
Author:
Paul Price
Message:

Put regions onto metadata as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r14585 r14591  
    335335            }
    336336
     337            // Put the solution on the metadata
    337338            {
    338339                psString comment = NULL; // Comment for metadata
     
    341342                                    PS_META_DUPLICATE_OK, comment, solution);
    342343                psFree(comment);
     344                if (region) {
     345                    psMetadataAddPtr(convolved->analysis, PS_LIST_TAIL, "SUBTRACTION.REGION",
     346                                     PS_META_DUPLICATE_OK | PS_DATA_REGION, comment, region);
     347                } else {
     348                    region = psRegionAlloc(0, numCols, 0, numRows);
     349                    psMetadataAddPtr(convolved->analysis, PS_LIST_TAIL, "SUBTRACTION.REGION",
     350                                     PS_META_DUPLICATE_OK | PS_DATA_REGION, comment, region);
     351                    psFree(region);
     352                    region = NULL;
     353                }
    343354            }
    344355
     
    348359            // There is data in the readout now
    349360            convolved->data_exists = true;
    350             convolved->parent->data_exists = true;
    351             convolved->parent->parent->data_exists = true;
     361            if (convolved->parent) {
     362                convolved->parent->data_exists = true;
     363                convolved->parent->parent->data_exists = true;
     364            }
    352365        }
    353366    }
Note: See TracChangeset for help on using the changeset viewer.