IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27348


Ignore:
Timestamp:
Mar 18, 2010, 5:19:16 PM (16 years ago)
Author:
bills
Message:

extend the diffed pixels boundary a bit to avoid boundaries showing up in output images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/diffedpixels.c

    r27342 r27348  
    11#include "streaksremove.h"
    22#include "pmAstrometryWCS.h"
    3 
    4 #define DEBUG_PRINT 1
    53
    64static void addTouchedPixels(streakFiles *sf, psString fileName);
     
    148146#endif
    149147    for (int y = ymin ; y <= ymax; y++) {
    150         int xleft  = xLeft(pt, y);
    151         int xright = xRight(pt, y);
     148        int xleft  = xLeft(pt, y) - 1;
     149        int xright = xRight(pt, y) + 1;
    152150
    153151        if (xleft < 0) {
     
    197195        x_d = xOfY(&pt[0], &pt[3], y);
    198196    }
    199     return (int) (x_d + 0.5);
     197    return (int) floor(x_d);
    200198}
    201199
     
    211209        x_d = xOfY(&pt[2], &pt[3], y);
    212210    }
    213     return (int) x_d;
     211    return (int) ceil(x_d);
    214212}
    215213
Note: See TracChangeset for help on using the changeset viewer.