IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2006, 9:01:19 PM (20 years ago)
Author:
eugene
Message:

mods to fix mask issues, negative-radius errors, simpsons formula for integral

File:
1 edited

Legend:

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

    r6862 r6900  
    2525    // we use an index for this so the spatial sorting is kept
    2626    psVector *SN = psVectorAlloc (sources->n, PS_DATA_F32);
     27    SN->n = SN->nalloc;
    2728    for (int i = 0; i < SN->n; i++) {
    2829        source = sources->data[i];
     
    4041
    4142        // temporary array for overlapping objects we find
    42         // XXX psArrayAlloc should set ->n to 0 *and* all objects to NULL
    43         // XXX I need a psArrayEmpty function to free the elements without the array
    44         // XXX then, I could allocate 'overlap' once outside the loop and only
    45         // XXX clear at the end of each loop
    4643        psArray *overlap = psArrayAlloc (100);
    4744        overlap->n = 0;
     
    117114                    source->blends->n = 0;
    118115                }
    119 
    120116                psArrayAdd (source->blends, 16, testSource);
    121117
Note: See TracChangeset for help on using the changeset viewer.