Changeset 42822 for trunk/psLib/test/imageops/tap_psImageMapFit2.c
- Timestamp:
- May 8, 2025, 4:42:12 PM (12 months ago)
- Location:
- trunk/psLib/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test
- Property svn:ignore
-
old new 6 6 *.da 7 7 gmon.out 8 test.00.jpg 9 test.01.jpg 10 test.02.jpg 11 test.03.jpg 12 test.04.jpg 13 test.05.jpg 14 test.06.jpg 15 test.07.jpg 16 test.08.jpg 17 test.09.jpg 18 test.10.jpg 19 test.11.jpg 20 test.12.jpg 21 test.im.fits 22 test.mk.fits 23 test.sm1.fits 24 test.sm2.fits 25 test.sm3.fits 26 test.sm4.fits 27 tmpImages 28 tst_psTrace02_OUT
-
- Property svn:ignore
-
trunk/psLib/test/imageops
- Property svn:ignore
-
old new 38 38 tap_psImageMapFit 39 39 tap_psImageMapFit2 40 tap_psImageCovariance 41 tap_psImageSmoothMask_Threaded 42 test-suite.log
-
- Property svn:ignore
-
trunk/psLib/test/imageops/tap_psImageMapFit2.c
r20767 r42822 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.
