Changeset 9738 for trunk/ppImage/src/ppFocus.c
- Timestamp:
- Oct 24, 2006, 2:18:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppFocus.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppFocus.c
r8751 r9738 29 29 30 30 // allocate vectors for analysis 31 psVector *focus = psVectorAlloc (infiles->n, PS_TYPE_F32);32 psVector *fwhm = psVectorAlloc (infiles->n, PS_TYPE_F32);31 psVector *focus = psVectorAllocEmpty(infiles->n, PS_TYPE_F32); 32 psVector *fwhm = psVectorAllocEmpty(infiles->n, PS_TYPE_F32); 33 33 34 34 for (int i = 0; i < infiles->n; i++) { 35 35 36 // define recipe options37 // define the active I/O files38 ppImageOptions *options = ppFocusParseCamera(config, i);39 if (options == NULL) {40 psErrorStackPrint(stderr, " ");41 exit(1);42 }36 // define recipe options 37 // define the active I/O files 38 ppImageOptions *options = ppFocusParseCamera(config, i); 39 if (options == NULL) { 40 psErrorStackPrint(stderr, " "); 41 exit(1); 42 } 43 43 44 // Image Arithmetic Loop 45 // XXX ppFocus REQUIRES photom: for it to be true? 46 // 47 if (!ppImageLoop(config, options)) { 48 psErrorStackPrint(stderr, " "); 49 exit(1); 50 } 51 52 // determine FWHM at reference location in image 53 // (also removes PPIMAGE.INPUT from config->files) 54 ppFocusGetFWHM (config, focus, fwhm); 44 // Image Arithmetic Loop 45 // XXX ppFocus REQUIRES photom: for it to be true? 46 // 47 if (!ppImageLoop(config, options)) { 48 psErrorStackPrint(stderr, " "); 49 exit(1); 50 } 55 51 56 ppFocusDropCamera (config); 57 psFree (options); 52 // determine FWHM at reference location in image 53 // (also removes PPIMAGE.INPUT from config->files) 54 ppFocusGetFWHM (config, focus, fwhm); 55 56 ppFocusDropCamera (config); 57 psFree (options); 58 58 } 59 59
Note:
See TracChangeset
for help on using the changeset viewer.
