Changeset 7757
- Timestamp:
- Jun 29, 2006, 10:47:55 AM (20 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 3 edited
-
ppFocus.c (modified) (2 diffs)
-
ppFocusFitFWHM.c (modified) (2 diffs)
-
ppFocusGetFWHM.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppFocus.c
r7749 r7757 40 40 // Image Arithmetic Loop 41 41 // XXX ppFocus REQUIRES photom: for it to be true? 42 // 42 43 if (!ppImageLoop(config, options)) { 43 44 psErrorStackPrint(stderr, ""); … … 58 59 59 60 // Cleaning up 61 psFree (focus); 62 psFree (fwhm); 60 63 ppImageCleanup(config, NULL); 61 64 return EXIT_SUCCESS; -
trunk/ppImage/src/ppFocusFitFWHM.c
r7738 r7757 7 7 psPolynomial1D *poly = psPolynomial1DAlloc (PS_POLYNOMIAL_ORD, 2); 8 8 9 psVectorFitPolynomial1D (poly, NULL, 0, fwhm, NULL, focus); 9 poly = psVectorFitPolynomial1D (poly, NULL, 0, fwhm, NULL, focus); 10 if (!poly) { 11 psError (PS_ERR_UNKNOWN, false, "failed to fit focus/fwhm trend; invalid image data?"); 12 return false; 13 } 10 14 11 15 if (poly->coeff[2] <= 0.0) { … … 19 23 psLogMsg ("ppFocus", 3, "fwhm @ min: %f\n", psPolynomial1DEval (poly, minFocus)); 20 24 25 psFree (poly); 21 26 return true; 22 27 } -
trunk/ppImage/src/ppFocusGetFWHM.c
r7749 r7757 37 37 38 38 // get average FWHM 39 // XXX one option is to use the PSF model to determine the FWHM somewhere 40 # if 0 41 psf = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.PSF"); 42 if (psf == NULL) continue; 43 # endif 44 45 // in this example, we use the supplied PSPHOT.HEADER data in which FWHM_X,Y are supplied 39 // psphotReadout writes the FWHM values into the PSPHOT.HEADER table 40 // the source of this value depends on the psphot options. 41 // - if breakPoint is set to PEAKS, the value will not be defined 42 // - if breakPoint is set to MOMENTS, the PSFSTAR moments are used 43 // - in all other cases, the psf model is used 46 44 header = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.HEADER"); 47 45 if (header == NULL) { … … 63 61 FWHM = FWHMsum / FWHMnum; 64 62 65 // FOCUS = pmConcepts (&status, input->fpa, "FOCUS"); 66 FOCUS = 0; 63 FOCUS = psMetadataLookupF32 (&status, input->fpa->concepts, "FPA.FOCUS"); 67 64 68 65 fwhm->data.F32[fwhm->n] = FWHM;
Note:
See TracChangeset
for help on using the changeset viewer.
