IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2007, 11:20:20 AM (19 years ago)
Author:
Paul Price
Message:

Fixing compilation error.

File:
1 edited

Legend:

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

    r14752 r14753  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-09-05 21:17:59 $
     6 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-09-05 21:20:20 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    7979                                )
    8080{
    81     psKernel *kernel = psKernelAlloc(normalKernel->xMin, normalKernel->xMax,
    82                                      normalKernel->yMin, normalKernel->yMax); // Kernel to return
     81    // Kernel range
     82    int xMin = normalKernel->xMin, xMax = normalKernel->xMax;
     83    int yMin = normalKernel->yMin, yMax = normalKernel->yMax;
     84
     85    psKernel *kernel = psKernelAlloc(xMin, xMax, yMin, yMax); // Kernel to return
    8386
    8487    // Take the square of the normal kernel
    85     for (int v = -size; v <= size; v++) {
    86         for (int u = -size; u <= size; u++) {
     88    for (int v = yMin; v <= yMax; v++) {
     89        for (int u = xMin; u <= xMax; u++) {
    8790            kernel->kernel[v][u] = PS_SQR(normalKernel->kernel[v][u]);
    8891        }
Note: See TracChangeset for help on using the changeset viewer.