Changeset 10551
- Timestamp:
- Dec 8, 2006, 1:39:56 AM (20 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 2 edited
-
imcombine/pmImageCombine.c (modified) (5 diffs)
-
objects/pmSource.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmImageCombine.c
r9730 r10551 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-1 0-24 22:55:05$10 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-12-08 11:39:30 $ 12 12 * 13 13 * XXX: pmRejectPixels() has a known bug with the pmImageTransform() call. … … 189 189 // Combine all the pixels, using the specified stat. 190 190 191 stats =psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal);191 psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal); 192 192 psF64 combinedPixel = psStatsGetValue(stats, statistic); 193 193 … … 202 202 psS32 numRejects = 0; 203 203 for (psS32 im = 0 ; im < numImages ; im++) { 204 stdevStats =psVectorStats(stdevStats, pixelData, pixelErrors, pixelMask, maskVal);204 psVectorStats(stdevStats, pixelData, pixelErrors, pixelMask, maskVal); 205 205 psF64 stdev = stdevStats->sampleStdev; 206 206 … … 285 285 } 286 286 // Combine all the pixels, using the specified stat. 287 stats =psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal);287 psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal); 288 288 combine->data.F32[row][col] = psStatsGetValue(stats, statistic); 289 289 } … … 356 356 // Get the median 357 357 psStats *stats = psStatsAlloc(PS_STAT_SAMPLE_MEDIAN); 358 (void)psVectorStats(stats, pixels, NULL, mask, 1);358 psVectorStats(stats, pixels, NULL, mask, 1); 359 359 float median = stats->sampleMedian; 360 360 psFree(stats); -
trunk/psModules/src/objects/pmSource.c
r10382 r10551 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-12-0 1 22:05:51$8 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-12-08 11:39:56 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 367 367 stats = psStatsAlloc (PS_STAT_CLIPPED_MEAN | PS_STAT_CLIPPED_STDEV); 368 368 369 stats =psVectorStats (stats, tmpSx, NULL, NULL, 0);369 psVectorStats (stats, tmpSx, NULL, NULL, 0); 370 370 psfClump.X = stats->clippedMean; 371 371 psfClump.dX = stats->clippedStdev; 372 372 373 stats =psVectorStats (stats, tmpSy, NULL, NULL, 0);373 psVectorStats (stats, tmpSy, NULL, NULL, 0); 374 374 psfClump.Y = stats->clippedMean; 375 375 psfClump.dY = stats->clippedStdev; … … 499 499 psStats *stats = NULL; 500 500 stats = psStatsAlloc (PS_STAT_MIN | PS_STAT_MAX); 501 stats = psVectorStats (stats, starsn, NULL, NULL, 0); 501 psVectorStats (stats, starsn, NULL, NULL, 0); 502 502 503 psLogMsg ("pmObjects", 3, "SN range: %f - %f\n", stats[0].min, stats[0].max); 503 504 psFree (stats);
Note:
See TracChangeset
for help on using the changeset viewer.
