IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2008, 4:00:44 PM (18 years ago)
Author:
Paul Price
Message:

Set the variance factors for smoothed images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackMatch.c

    r18100 r18183  
    126126        psFree(optWidths);
    127127
     128        // Set the variance factor
     129        float vfNew = psMetadataLookupF32(NULL, output->analysis, PM_SUBTRACTION_ANALYSIS_VARFACTOR);
     130        float vfOld = psMetadataLookupF32(NULL, readout->concepts, "CELL.VARFACTOR");
     131        if (isfinite(vfOld)) {
     132            vfNew *= vfOld;
     133        }
     134        psMetadataItem *vfItem = psMetadataLookup(output->parent->concepts, "CELL.VARFACTOR");
     135        if (!isfinite(vfItem->data.F32)) {
     136            vfItem->data.F32 *= vfNew;
     137        } else {
     138            vfItem->data.F32 = vfNew;
     139        }
     140
    128141        // Replace original images with convolved
    129142        psFree(readout->image);
Note: See TracChangeset for help on using the changeset viewer.