- Timestamp:
- Aug 15, 2023, 4:59:00 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/psLib/test/imageops/tap_psImageMapFit2.c
r20767 r42493 61 61 62 62 // 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); 64 67 65 68 psImage *field = psImageAlloc(1000, 1000, PS_TYPE_F32); … … 124 127 for (int ix = 0; ix < 1000; ix += 20) { 125 128 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; 127 130 y->data.F32[y->n] = iy + 0.5; 128 131 f->data.F32[f->n] = PS_SQR(x->data.F32[x->n]) + PS_SQR(y->data.F32[x->n]); … … 141 144 // XXX this function needs to correct for the mean superpixel position 142 145 // 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); 144 150 psFree (binning); 145 151
Note:
See TracChangeset
for help on using the changeset viewer.
