IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2005, 9:55:31 PM (21 years ago)
Author:
eugene
Message:

finshed deblender, dropped local copies of psModule code

File:
1 edited

Legend:

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

    r5672 r5718  
    100100new implementation of source contour function
    101101*****************************************************************************/
    102 psArray *pmSourceContour_EAM (psImage *image, int x, int y, float threshold) {
     102psArray *pmSourceContour_EAM (psImage *image, int xc, int yc, float threshold) {
    103103
    104104    int xR, yR, x0, x1, x0s, x1s;
     
    106106    psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
    107107    PS_ASSERT_PTR_NON_NULL(image, false);
     108
     109    int x = xc - image->col0;
     110    int y = yc - image->row0;
    108111
    109112    // the requested point must be within the contour
     
    141144            x0 = findContourPos (image, threshold, xR, yR, RIGHT, x1);
    142145            if (x0 == x1) {
    143                 fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
     146                // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
    144147                goto pt1;
    145148            }
     
    150153            x1 = findContourNeg (image, threshold, xR, yR, RIGHT);
    151154        }
    152         fprintf (stderr, "pos: %d (%d - %d)\n", yR, x0, x1);
     155        // fprintf (stderr, "pos: %d (%d - %d)\n", yR, x0, x1);
    153156
    154157        xVec->data.F32[Npt + 0] = image->col0 + x0;
     
    175178            x0 = findContourPos (image, threshold, xR, yR, RIGHT, x1);
    176179            if (x0 == x1) {
    177                 fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
     180                // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
    178181                goto pt2;
    179182            }
     
    184187            x1 = findContourNeg (image, threshold, xR, yR, RIGHT);
    185188        }
    186         fprintf (stderr, "neg: %d (%d - %d)\n", yR, x0, x1);
     189        // fprintf (stderr, "neg: %d (%d - %d)\n", yR, x0, x1);
    187190
    188191        xVec->data.F32[Npt + 0] = image->col0 + x0;
     
    202205    yVec->n = Npt;
    203206
    204     fprintf (stderr, "done\n");
     207    // fprintf (stderr, "done\n");
    205208    psArray *tmpArray = psArrayAlloc(2);
    206209    tmpArray->data[0] = (psPtr *) xVec;
Note: See TracChangeset for help on using the changeset viewer.