IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2009, 12:41:28 PM (17 years ago)
Author:
giebink
Message:

Account for weight(s) to variance(s) change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/objects/tap_pmSourceFitSet.c

    r15985 r21471  
    3030    if (1) {
    3131        src->pixels = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_F32);
    32         src->weight = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_F32);
     32        src->variance = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_F32);
    3333        src->maskObj = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_U8);
    3434        if (1) {
     
    3636                for (int j = 0 ; j < TEST_NUM_COLS ; j++) {
    3737                    src->pixels->data.F32[i][j] = 0.0;
    38                     src->weight->data.F32[i][j] = 1.0;
     38                    src->variance->data.F32[i][j] = 1.0;
    3939                    src->maskObj->data.U8[i][j] = 0;
    4040                }
     
    663663
    664664
    665     // Call pmSourceFitSet() with NULL psSource pixels, weight, maskObj input parameters
     665    // Call pmSourceFitSet() with NULL psSource pixels, variance, maskObj input parameters
    666666    {
    667667        psMemId id = psMemGetId();
     
    677677        src->pixels = tmpImg;
    678678
    679         tmpImg = src->weight;
    680         src->weight = NULL;
     679        tmpImg = src->variance;
     680        src->variance = NULL;
    681681        rc = pmSourceFitSet(src, modelSet, PM_SOURCE_FIT_PSF, 1);
    682         ok(rc == false, "pmSourceFitSet() returned FALSE with NULL src->weight input parameter");
    683         src->weight = tmpImg;
     682        ok(rc == false, "pmSourceFitSet() returned FALSE with NULL src->variance input parameter");
     683        src->variance = tmpImg;
    684684
    685685        tmpImg = src->maskObj;
Note: See TracChangeset for help on using the changeset viewer.