IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2008, 9:50:56 AM (18 years ago)
Author:
Paul Price
Message:

Previous merge didn't have the expected result, probably because of the revert-and-branch I did earlier. I think this is the expected result.

File:
1 edited

Legend:

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

    r16604 r16607  
    88 *  @author GLG, MHPCC
    99 *
     10 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2008-02-22 19:50:56 $
    1012 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
    1113 *
     
    510512        for (int j = 0; j < pixels->n; j++) {
    511513            int x = pixels->data[j].x, y = pixels->data[j].y; // Coordinates of interest
     514            if (x < 0 || x >= numCols || y < 0 || y >= numRows) {
     515                psWarning("Bad pixel coordinate: %d,%d --- ignored.", x, y);
     516                continue;
     517            }
    512518            psArray *columns = map->data[y]; // The columns for that row
    513519            psVector *images = columns->data[x]; // The images for that column
Note: See TracChangeset for help on using the changeset viewer.