Changeset 21183 for trunk/psLib/src/imageops/psImageBackground.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageBackground.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageBackground.c
r20216 r21183 18 18 // XXX allow the user to choose the stats method? 19 19 // (SAMPLE_MEAN, CLIPPED_MEAN, ROBUST_MEDIAN, FITTED_MEAN) 20 bool psImageBackground(psStats *stats, psVector **sample, const psImage *image, const psImage *mask, ps MaskType maskValue, psRandom *rng)20 bool psImageBackground(psStats *stats, psVector **sample, const psImage *image, const psImage *mask, psImageMaskType maskValue, psRandom *rng) 21 21 { 22 22 PS_ASSERT_IMAGE_NON_NULL(image, NULL); 23 23 if (mask) { 24 24 PS_ASSERT_IMAGE_NON_NULL(mask, NULL); 25 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_ U8, NULL);25 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_IMAGE_MASK, NULL); 26 26 PS_ASSERT_IMAGES_SIZE_EQUAL(mask, image, NULL); 27 27 } … … 63 63 int iy = pixel / nx; 64 64 65 if (!isfinite(image->data.F32[iy][ix]) || (mask && mask->data. U8[iy][ix] & maskValue)) {65 if (!isfinite(image->data.F32[iy][ix]) || (mask && mask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] & maskValue)) { 66 66 continue; 67 67 }
Note:
See TracChangeset
for help on using the changeset viewer.
