IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2006, 1:30:35 PM (20 years ago)
Author:
eugene
Message:

updated to use new image/subimage/region coordinate consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageBackground.c

    r6056 r6311  
    2828        double frnd = psRandomUniform (rnd);
    2929        int pixel = Npixels * frnd;
    30         int ix = pixel / image->numCols;
    31         int iy = pixel % image->numCols;
     30        int ix = pixel % image->numCols;
     31        int iy = pixel / image->numCols;
    3232        float value = image->data.F32[iy][ix];
    3333        if (fabs(value - Sky) > dSky) continue;
Note: See TracChangeset for help on using the changeset viewer.