Changeset 21280 for trunk/psLib/src/imageops/psImageCovariance.h
- Timestamp:
- Feb 3, 2009, 4:55:27 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageCovariance.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageCovariance.h
r21207 r21280 5 5 * @author Paul Price, IfA 6 6 * 7 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2009-0 1-28 22:16:33$7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2009-02-04 02:55:27 $ 9 9 * Copyright 2009 Institute for Astronomy, University of Hawaii 10 10 */ … … 17 17 18 18 #include <psImageConvolve.h> 19 20 // We don't carry the entire covariance matrix for an image (the size goes as N^2, for N pixels, which makes 21 // storage difficult; and if that's not enough, the time to do the calculation is definitely impractical). 22 // Since there are (generally) lots of zeros in the covariance matrix, and the same basic pattern repeats (for 23 // background pixels), we can just carry that pattern. We carry this in a psKernel, since the values are the 24 // covariance between the pixel of consideration (at 0,0 in the kernel) and neighbouring pixels. Note that 25 // this may not be strictly correct near sources, but this is the best we can do (and much better than most 26 // currently do). 27 28 /// Allocate a covariance pseudo-matrix with no covariance 29 psKernel *psImageCovarianceNone(void); 19 30 20 31 /// Calculate the covariance pseudo-matrix for a convolution kernel … … 29 40 ); 30 41 42 /// Average many covariance pseudo-matrices 43 psKernel *psImageCovarianceAverage( 44 const psArray *array ///< Array of covariance pseudo-matrices 45 ); 46 31 47 32 48 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
