Changeset 21466
- Timestamp:
- Feb 13, 2009, 11:47:42 AM (17 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageCovariance.c (modified) (1 diff)
-
psImageCovariance.h (modified) (2 diffs)
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 } -
trunk/psLib/src/imageops/psImageCovariance.h
r21316 r21466 5 5 * @author Paul Price, IfA 6 6 * 7 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $8 * @date $Date: 2009-02- 05 20:15:32 $7 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2009-02-13 21:47:42 $ 9 9 * Copyright 2009 Institute for Astronomy, University of Hawaii 10 10 */ … … 59 59 ); 60 60 61 /// Transfer covariance factor from covariance pseudo-matrix to variance map 62 bool psImageCovarianceTransfer( 63 psImage *variance, ///< Variance map to which to transfer 64 psKernel *covar ///< Covariance pseudo-matrix from which to transfer 65 ); 66 67 61 68 /// @} 62 69 #endif // #ifndef PS_IMAGE_COVARIANCE_H
Note:
See TracChangeset
for help on using the changeset viewer.
