IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 3, 2009, 4:55:27 PM (17 years ago)
Author:
Paul Price
Message:

Adding function to return an interpolation kernel. Intend to use this for calculating the covariance (pseudo-)matrix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageCovariance.h

    r21207 r21280  
    55 * @author Paul Price, IfA
    66 *
    7  * @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2009-01-28 22:16:33 $
     7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2009-02-04 02:55:27 $
    99 * Copyright 2009 Institute for Astronomy, University of Hawaii
    1010 */
     
    1717
    1818#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
     29psKernel *psImageCovarianceNone(void);
    1930
    2031/// Calculate the covariance pseudo-matrix for a convolution kernel
     
    2940    );
    3041
     42/// Average many covariance pseudo-matrices
     43psKernel *psImageCovarianceAverage(
     44    const psArray *array                ///< Array of covariance pseudo-matrices
     45    );
     46
    3147
    3248/// @}
Note: See TracChangeset for help on using the changeset viewer.