IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10551


Ignore:
Timestamp:
Dec 8, 2006, 1:39:56 AM (20 years ago)
Author:
magnier
Message:

changed psVectorStats return to bool

Location:
trunk/psModules/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmImageCombine.c

    r9730 r10551  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-10-24 22:55:05 $
     10 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-12-08 11:39:30 $
    1212 *
    1313 *  XXX: pmRejectPixels() has a known bug with the pmImageTransform() call.
     
    189189                // Combine all the pixels, using the specified stat.
    190190
    191                 stats = psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal);
     191                psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal);
    192192                psF64 combinedPixel = psStatsGetValue(stats, statistic);
    193193
     
    202202                psS32 numRejects = 0;
    203203                for (psS32 im = 0 ; im < numImages ; im++) {
    204                     stdevStats = psVectorStats(stdevStats, pixelData, pixelErrors, pixelMask, maskVal);
     204                    psVectorStats(stdevStats, pixelData, pixelErrors, pixelMask, maskVal);
    205205                    psF64 stdev = stdevStats->sampleStdev;
    206206
     
    285285                }
    286286                // Combine all the pixels, using the specified stat.
    287                 stats = psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal);
     287                psVectorStats(stats, pixelData, pixelErrors, pixelMask, maskVal);
    288288                combine->data.F32[row][col] = psStatsGetValue(stats, statistic);
    289289            }
     
    356356    // Get the median
    357357    psStats *stats = psStatsAlloc(PS_STAT_SAMPLE_MEDIAN);
    358     (void)psVectorStats(stats, pixels, NULL, mask, 1);
     358    psVectorStats(stats, pixels, NULL, mask, 1);
    359359    float median = stats->sampleMedian;
    360360    psFree(stats);
  • trunk/psModules/src/objects/pmSource.c

    r10382 r10551  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-12-01 22:05:51 $
     8 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-12-08 11:39:56 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    367367        stats = psStatsAlloc (PS_STAT_CLIPPED_MEAN | PS_STAT_CLIPPED_STDEV);
    368368
    369         stats = psVectorStats (stats, tmpSx, NULL, NULL, 0);
     369        psVectorStats (stats, tmpSx, NULL, NULL, 0);
    370370        psfClump.X  = stats->clippedMean;
    371371        psfClump.dX = stats->clippedStdev;
    372372
    373         stats = psVectorStats (stats, tmpSy, NULL, NULL, 0);
     373        psVectorStats (stats, tmpSy, NULL, NULL, 0);
    374374        psfClump.Y  = stats->clippedMean;
    375375        psfClump.dY = stats->clippedStdev;
     
    499499    psStats *stats  = NULL;
    500500    stats = psStatsAlloc (PS_STAT_MIN | PS_STAT_MAX);
    501     stats = psVectorStats (stats, starsn, NULL, NULL, 0);
     501    psVectorStats (stats, starsn, NULL, NULL, 0);
     502
    502503    psLogMsg ("pmObjects", 3, "SN range: %f - %f\n", stats[0].min, stats[0].max);
    503504    psFree (stats);
Note: See TracChangeset for help on using the changeset viewer.