IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10548


Ignore:
Timestamp:
Dec 8, 2006, 1:37:31 AM (19 years ago)
Author:
magnier
Message:

changed psVectorStats return value to bool

Location:
trunk/psLib/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageGeomManip.c

    r9927 r10548  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-11-09 20:20:27 $
     12 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-12-08 11:37:31 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    134134                vec->n = n; \
    135135                maskVec->n = n; \
    136                 myStats = psVectorStats(myStats, vec, NULL, maskVec, maskVal); \
     136                psVectorStats(myStats, vec, NULL, maskVec, maskVal); \
    137137                outRowData[col] = (ps##TYPE)psStatsGetValue(myStats, statistic); \
    138138            } \
  • trunk/psLib/src/imageops/psImagePixelExtract.c

    r9730 r10548  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-10-24 22:52:55 $
     10 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-12-08 11:37:31 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    436436                    } \
    437437                } \
    438                 myStats = psVectorStats(myStats,imgVec,NULL,maskVec,maskVal); \
     438                psVectorStats(myStats,imgVec,NULL,maskVec,maskVal); \
    439439                *outData = psStatsGetValue(myStats, statistic); \
    440440                if (outPosition != NULL) { \
     
    516516                maskVec->data.U8 = (psPtr )(mask->data.U8[r] + col0 * sizeof(psMaskType));
    517517            }
    518             myStats = psVectorStats(myStats, imgVec, NULL, maskVec, maskVal);
     518            psVectorStats(myStats, imgVec, NULL, maskVec, maskVal);
    519519            *outData = psStatsGetValue(myStats, statistic);
    520520            if (outPosition != NULL) {
     
    905905
    906906    for (psS32 r = 0; r < numOut; r++) {
    907         myStats = psVectorStats(myStats,buffer[r], NULL, bufferMask[r],maskVal);
     907        psVectorStats(myStats,buffer[r], NULL, bufferMask[r],maskVal);
    908908        outData[r] = psStatsGetValue(myStats, statistic);
    909909    }
  • trunk/psLib/src/imageops/psImageStats.c

    r9730 r10548  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.101 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-10-24 22:52:55 $
     11 *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-12-08 11:37:31 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    108108    }
    109109
    110     stats = psVectorStats(stats, junkData, NULL, junkMask, maskVal);
     110    psVectorStats(stats, junkData, NULL, junkMask, maskVal);
    111111
    112112    psFree(junkMask);
     
    588588        return -1;
    589589    }/* else if (col0 == col1 && row0 == row1) {
    590                                                     psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    591                                                             "Invalid psRegion specified.  Region contains only 1 pixel.\n");
    592                                                     return -1;
    593                                                 }
    594                                             */
     590                                                        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     591                                                                "Invalid psRegion specified.  Region contains only 1 pixel.\n");
     592                                                        return -1;
     593                                                    }
     594                                                */
    595595    x0 = col0;
    596596    x1 = col1;
  • trunk/psLib/src/imageops/psImageStats.h

    r6874 r10548  
    99*  @author GLG, MHPCC
    1010*
    11 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2006-04-17 22:00:03 $
     11*  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2006-12-08 11:37:31 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2121#include "psImage.h"
    2222#include "psStats.h"
     23#include "psHistogram.h"
    2324#include "psPolynomial.h"
    2425#include "psRegion.h"
  • trunk/psLib/src/math/psMinimizePolyFit.c

    r9730 r10548  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-10-24 22:52:56 $
     12 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-12-08 11:37:31 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    855855        }
    856856
    857         stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
    858         if (stats == NULL) {
     857        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    859858            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    860859            psFree(resid)
     
    13041303        }
    13051304
    1306         stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
    1307         if (stats == NULL) {
     1305        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    13081306            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    13091307            psFree(resid)
     
    18351833        }
    18361834
    1837         stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
    1838         if (stats == NULL) {
     1835        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    18391836            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    18401837            psFree(resid)
     
    24122409        }
    24132410
    2414         stats  = psVectorStats (stats, resid, NULL, mask, maskValue);
    2415         if (stats == NULL) {
     2411        if (!psVectorStats (stats, resid, NULL, mask, maskValue)) {
    24162412            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    24172413            psFree(resid)
Note: See TracChangeset for help on using the changeset viewer.