IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15251


Ignore:
Timestamp:
Oct 9, 2007, 9:10:48 AM (19 years ago)
Author:
Paul Price
Message:

Using a Waussian instead of a Gaussian, so as to have some power in the wings. I believe the lack of power in the wings in the Gaussian is causing the convolved image PSF to go negative in the wings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionStamps.c

    r15220 r15251  
    520520        psKernel *input = stamp->input; // Target stamp
    521521
    522         // Put in a Gaussian, just for fun!
     522        // Put in a Waussian, just for fun!
    523523        for (int v = -size; v <= size; v++) {
    524524            for (int u = -size; u <= size; u++) {
    525                 input->kernel[v][u] = flux / sigma * 0.5 * M_2_SQRTPI * M_SQRT1_2 *
    526                     expf(-0.5 * (PS_SQR(u + xStamp) + PS_SQR(v + yStamp)) / PS_SQR(sigma));
     525                float z = (PS_SQR(x + xStamp) + PS_SQR(y + yStamp)) / (2.0 * PS_SQR(sigma));
     526                input->kernel[v][u] = flux / sigma * 0.5 * M_2_SQRTPI * M_SQRT1_2 / (1.0 + z + PS_SQR(z));
    527527            }
    528528        }
Note: See TracChangeset for help on using the changeset viewer.