IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2004, 5:07:52 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageStats.c

    r773 r775  
    2020/// This routine must determine the various statistics for the image.
    2121psStats *
     22
    2223psImageGetStats(const psImage *input,
    2324                psStats *stats)
    2425{
    2526    psVector *junk=NULL;
     27    psStats *stats2= NULL;
    2628
    2729    junk = psVectorAlloc(input->numRows * input->numCols, input->type.type);
    28     return(psArrayStats(junk, NULL, 0xffffffff, stats));
     30    stats2 = psArrayStats(junk, NULL, 0xffffffff, stats);
     31    psVectorFree(junk);
     32
     33    return(stats2);
    2934}
    3035
     
    4651    Internal Data Structures:
    4752 chebPolys[i][j]
    48  
     53        sums[i][j]
    4954 *****************************************************************************/
    5055psPolynomial2D *
     
    107112    }
    108113
    109 
     114    // GUS: Check the math on this at a later date.
    110115    coeffs->coeff[0][0] = sums[0][0] / (coeffs->nX * coeffs->nY);
    111116    for (i=0;i<coeffs->nX;i++) {
Note: See TracChangeset for help on using the changeset viewer.