Changeset 21466 for trunk/psLib/src/imageops/psImageCovariance.c
- Timestamp:
- Feb 13, 2009, 11:47:42 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageCovariance.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageCovariance.c
r21383 r21466 221 221 return trunc; 222 222 } 223 224 225 bool psImageCovarianceTransfer(psImage *variance, psKernel *covar) 226 { 227 PS_ASSERT_IMAGE_NON_NULL(variance, NULL); 228 PS_ASSERT_KERNEL_NON_NULL(covar, NULL); 229 230 float factor = psImageCovarianceFactor(covar); // Factor to transfer 231 psBinaryOp(variance, variance, "*", psScalarAlloc(factor, PS_TYPE_F32)); 232 psBinaryOp(covar->image, covar->image, "/", psScalarAlloc(factor, PS_TYPE_F32)); 233 234 return true; 235 }
Note:
See TracChangeset
for help on using the changeset viewer.
