Changeset 9738
- Timestamp:
- Oct 24, 2006, 2:18:06 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ppImage/src/ppFocus.c (modified) (1 diff)
-
ppNorm/src/ppNormCalc.c (modified) (1 diff)
-
ppStats/src/ppStatsLoop.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 -
trunk/ppNorm/src/ppNormCalc.c
r8999 r9738 114 114 // Do the normalisation 115 115 psVector *gains = psVectorAlloc(numComps, PS_TYPE_F32); // Vector of gains for each component 116 gains->n = numComps;117 116 psVectorInit(gains, 100.0); 118 117 if (!pmFlatNormalize(NULL, &gains, matrix)) { -
trunk/ppStats/src/ppStatsLoop.c
r9539 r9738 157 157 int sampleSpace = 1.0 / data->sample; // Space between samples 158 158 psVector *sampleValues = psVectorAlloc(numSamples, PS_TYPE_F32); // Vector of samples 159 sampleValues->n = numSamples;160 159 psVector *sampleMask = NULL; // Corresponding mask 161 160 if (mask) { 162 161 sampleMask = psVectorAlloc(numSamples, PS_TYPE_U8); 163 sampleMask->n = numSamples;164 162 } 165 163 for (int i = 0; i < numSamples; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
