- Timestamp:
- Aug 7, 2009, 12:45:24 PM (17 years ago)
- Location:
- branches/eam_branches/20090715
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppMerge/src/ppMergeLoop.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715
- Property svn:mergeinfo changed
/trunk (added) merged: 24801-24824,24827-24834,24836-24859,24861-24901,24903-24912,24914-24950,24953-24971,24973-24977,24986-24989,24993-25017
- Property svn:mergeinfo changed
-
branches/eam_branches/20090715/ppMerge/src/ppMergeLoop.c
r24797 r25022 65 65 int fringeSmoothX = psMetadataLookupS32(NULL, arguments, "FRINGE.XSMOOTH"); // Smoothing regions in x 66 66 int fringeSmoothY = psMetadataLookupS32(NULL, arguments, "FRINGE.YSMOOTH"); // Smoothing regions in y 67 bool fringeSmooth = psMetadataLookupBool(NULL, arguments, "FRINGE.SMOOTH"); // Smooth the output image? 68 float fringeSmoothSigma = psMetadataLookupF32(NULL, arguments, "FRINGE.SMOOTH.SIGMA"); // Smooth the output image? 67 69 68 70 // set the mask and mark bit values based on the named masks … … 150 152 pmChip *outChip; ///< Chip of interest 151 153 while ((outChip = pmFPAviewNextChip(view, outFPA, 1))) { 154 if (!outChip->process || !outChip->file_exists) { 155 continue; 156 } 152 157 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 153 158 goto ERROR; … … 159 164 160 165 while ((outCell = pmFPAviewNextCell(view, outFPA, 1))) { 166 if (!outCell->process || !outCell->file_exists) { 167 continue; 168 } 161 169 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 162 170 goto ERROR; … … 416 424 // Put the new readout into the cell after the existing readouts. 417 425 if (type == PPMERGE_TYPE_FRINGE && outRO) { 418 pmFringeRegions *regions = pmFringeRegionsAlloc(fringeNum, fringeSize, fringeSize, 419 fringeSmoothX, fringeSmoothY); 426 if (fringeSmooth) { 427 if (outRO->mask) { 428 psImage *smoothed = psImageSmoothMask (NULL, outRO->image, outRO->mask, maskVal, fringeSmoothSigma, 3, 0.2); 429 psFree (outRO->image); 430 outRO->image = smoothed; 431 } else { 432 psImageSmooth (outRO->image, fringeSmoothSigma, 3); 433 } 434 } 435 436 pmFringeRegions *regions = pmFringeRegionsAlloc(fringeNum, fringeSize, fringeSize, fringeSmoothX, fringeSmoothY); 420 437 pmFringeStats *fringe = pmFringeStatsMeasure(regions, outRO, maskVal); 421 438 psFree(regions); … … 429 446 fringes->data[0] = fringe; 430 447 431 pmFringesFormat(outCell, NULL, fringes); 448 // XXX replaced this : pmFringesFormat(outCell, NULL, fringes); 449 if (!psMetadataAdd(outCell->analysis, PS_LIST_TAIL, "FRINGE.MEASUREMENTS", PS_DATA_ARRAY, "Fringes", fringes)) { 450 psError(PS_ERR_UNKNOWN, false, "Unable to add fringe to analysis metadata\n"); 451 goto ERROR; 452 } 432 453 psFree(fringes); // Drop reference 433 454 }
Note:
See TracChangeset
for help on using the changeset viewer.
