Changeset 3387
- Timestamp:
- Mar 7, 2005, 6:03:09 PM (21 years ago)
- Location:
- trunk/stac/src
- Files:
-
- 4 edited
-
Makefile (modified) (3 diffs)
-
stacConfig.c (modified) (1 diff)
-
stacRejection.c (modified) (1 diff)
-
stacTransform.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/Makefile
r3375 r3387 12 12 13 13 FITTRANS = fitTrans.o fitTransConfig.o fitTransRead.o stacCheckMemory.o fitTransSolve.o 14 15 TEST_SHIFT = testShift.o stacConfig.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \ 16 stacInvertMaps.o 14 17 15 18 .PHONY: tags clean empty test profile optimise … … 36 39 $(CC) $(CFLAGS) -o $@ $(FITTRANS) $(LDFLAGS) $(OPTFLAGS) 37 40 41 testShift: $(TEST_SHIFT) 42 $(CC) $(CFLAGS) -o $@ $(TEST_SHIFT) $(LDFLAGS) $(OPTFLAGS) 43 38 44 clean: 39 45 -$(RM) *.o gmon.* profile.txt … … 51 57 -$(RM) test_[0-3].fits.shiftrej 52 58 -$(RM) test_[0-3].fits.shifterr.* 59 -$(RM) test_[0-3].fits.grad 60 -$(RM) test_[0-3].fits.region 61 -$(RM) test_[0-3].fits.rejmap 53 62 -$(RM) leaks.dat 54 ./stac -v -k 2.5 -f 0.5 -G 0.96 testout.fits test_0.fits test_1.fits test_2.fits test_3.fits 63 # ./stac -v -k 2.5 -f 0.5 -G 0.96 testout.fits test_0.fits test_1.fits test_2.fits test_3.fits 64 ./stac -v testout.fits test_0.fits test_1.fits test_2.fits test_3.fits 55 65 56 66 # Run profiling. -
trunk/stac/src/stacConfig.c
r2783 r3387 41 41 config->outnx = 512; 42 42 config->outny = 512; 43 config->saturated = 6553 6.0;43 config->saturated = 65535.0; 44 44 config->bad = 0.0; 45 config->reject = 3. 5;45 config->reject = 3.0; 46 46 config->frac = 0.5; 47 config->grad = 0. 4;47 config->grad = 0.6; 48 48 config->nReject = 2; 49 49 -
trunk/stac/src/stacRejection.c
r3375 r3387 110 110 if (region->data.U8[y][x]) { 111 111 112 inCoords->x = (double)x ;113 inCoords->y = (double)y ;112 inCoords->x = (double)x + 0.5; 113 inCoords->y = (double)y + 0.5; 114 114 (void)psPlaneTransformApply(outCoords, map, inCoords); 115 115 float maskVal = (float)psImagePixelInterpolate(reject, outCoords->x, outCoords->y, -
trunk/stac/src/stacTransform.c
r3375 r3387 190 190 for (int y = 0; y < ny; y++) { 191 191 for (int x = 0; x < nx; x++) { 192 193 192 // Only transform those pixels requested 194 193 if (!region || (region && region->data.U8[y][x])) { … … 199 198 200 199 // Change PS_INTERPOLATE_BILINEAR to best available technique. 201 outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, detector->x + 0.5,202 detector->y + 0.5, mask, 1, 0.0,200 outImage->data.F32[y][x] = (psF32)psImagePixelInterpolate(image, detector->x, 201 detector->y, mask, 1, 0.0, 203 202 PS_INTERPOLATE_BILINEAR); 204 203 // Error is actually the variance 205 204 outError->data.F32[y][x] = (psF32)p_psImageErrorInterpolateBILINEAR_F32(error, 206 detector->x + 0.5,207 detector->y + 0.5,205 detector->x, 206 detector->y, 208 207 mask, 1, 0.0); 209 208 } // Pixels of interest
Note:
See TracChangeset
for help on using the changeset viewer.
