IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 29, 2009, 4:14:16 PM (17 years ago)
Author:
Paul Price
Message:

Add check of position offsets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackSources.c

    r25313 r25970  
    188188    }
    189189
     190#if 0
     191    // Position offsets
     192    {
     193        psArray *offsets = pmSourceMatchRelastro(matches, num, tol, iter1, starRej1,
     194                                                  iter2, starRej2, starLimit); // Shifts for each image
     195        if (!offsets) {
     196            psError(PS_ERR_UNKNOWN, false, "Unable to measure offsets");
     197            return false;
     198        }
     199        for (int i = 0; i < num; i++) {
     200            psVector *offset = offsets->data[i];
     201            fprintf(stderr, "Offset %d: %f,%f\n", i, offset->data.F32[0], offset->data.F32[1]);
     202        }
     203        psFree(offsets);
     204    }
     205#endif
     206
    190207#ifdef TESTING
    191208    dumpMatches("source_mags.dat", num, matches, zp, trans);
Note: See TracChangeset for help on using the changeset viewer.