Changeset 21471 for trunk/psModules/test/objects/tap_pmSourceFitSet.c
- Timestamp:
- Feb 13, 2009, 12:41:28 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/objects/tap_pmSourceFitSet.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/objects/tap_pmSourceFitSet.c
r15985 r21471 30 30 if (1) { 31 31 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); 33 33 src->maskObj = psImageAlloc(TEST_NUM_COLS, TEST_NUM_ROWS, PS_TYPE_U8); 34 34 if (1) { … … 36 36 for (int j = 0 ; j < TEST_NUM_COLS ; j++) { 37 37 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; 39 39 src->maskObj->data.U8[i][j] = 0; 40 40 } … … 663 663 664 664 665 // Call pmSourceFitSet() with NULL psSource pixels, weight, maskObj input parameters665 // Call pmSourceFitSet() with NULL psSource pixels, variance, maskObj input parameters 666 666 { 667 667 psMemId id = psMemGetId(); … … 677 677 src->pixels = tmpImg; 678 678 679 tmpImg = src-> weight;680 src-> weight= NULL;679 tmpImg = src->variance; 680 src->variance = NULL; 681 681 rc = pmSourceFitSet(src, modelSet, PM_SOURCE_FIT_PSF, 1); 682 ok(rc == false, "pmSourceFitSet() returned FALSE with NULL src-> weightinput parameter");683 src-> weight= tmpImg;682 ok(rc == false, "pmSourceFitSet() returned FALSE with NULL src->variance input parameter"); 683 src->variance = tmpImg; 684 684 685 685 tmpImg = src->maskObj;
Note:
See TracChangeset
for help on using the changeset viewer.
