IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2023, 4:59:00 AM (3 years ago)
Author:
eugene
Message:

fixing tests so they compile (need to address some API changes to psPlaneTranformAlloc, psImageMapFit; fix unused vars, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psLib/test/imageops/tap_psImageMapFit2.c

    r20767 r42493  
    6161
    6262        // fit the data to the map
    63         psImageMapFit (map, x, y, f, NULL);
     63        bool status;
     64        psImageMapFit (&status, map, NULL, 0, x, y, f, NULL);
     65        ok (status, "ok fit");
     66        // psImageMapFit (map, x, y, f, NULL);
    6467
    6568        psImage *field = psImageAlloc(1000, 1000, PS_TYPE_F32);
     
    124127        for (int ix = 0; ix < 1000; ix += 20) {
    125128            for (int iy = 0; iy < 1000; iy += 20) {
    126                 x->data.F32[x->n] = ix + 0,5;
     129                x->data.F32[x->n] = ix + 0.5;
    127130                y->data.F32[y->n] = iy + 0.5;
    128131                f->data.F32[f->n] = PS_SQR(x->data.F32[x->n]) + PS_SQR(y->data.F32[x->n]);
     
    141144        // XXX this function needs to correct for the mean superpixel position
    142145        // which is sampled...
    143         psImageMapFit (map, NULL, 0, x, y, f, NULL);
     146        bool status;
     147        psImageMapFit (&status, map, NULL, 0, x, y, f, NULL);
     148        ok (status, "ok fit");
     149        // psImageMapFit (map, NULL, 0, x, y, f, NULL);
    144150        psFree (binning);
    145151
Note: See TracChangeset for help on using the changeset viewer.