IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2008, 5:10:17 PM (18 years ago)
Author:
Paul Price
Message:

Merging pap_branch_080328 so we can use the modernised version of ppMerge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDark.c

    r17058 r17228  
    227227    }
    228228
     229    psImage *counts = pmReadoutAnalysisImage(output->readouts->data[0], PM_READOUT_STACK_ANALYSIS_COUNT,
     230                                             xSize, ySize, PS_TYPE_U16, 0);
     231    if (!counts) {
     232        return false;
     233    }
     234    psImage *sigma = pmReadoutAnalysisImage(output->readouts->data[0], PM_READOUT_STACK_ANALYSIS_SIGMA,
     235                                            xSize, ySize, PS_TYPE_F32, NAN);
     236    if (!sigma) {
     237        psFree(counts);
     238        return false;
     239    }
     240
    229241    // Iterate over pixels, fitting polynomial
    230242    psVector *pixels = psVectorAlloc(numInputs, PS_TYPE_F32); // Stack of pixels
     
    269281                ro->image->data.F32[yOut][xOut] = poly->coeff->data.F64[k];
    270282            }
     283            counts->data.U16[yOut][xOut] = poly->numFit;
     284            sigma->data.F32[yOut][xOut] = poly->stdevFit;
    271285        }
    272286    }
Note: See TracChangeset for help on using the changeset viewer.