Changeset 775 for trunk/psLib/src/image/psImageStats.c
- Timestamp:
- May 24, 2004, 5:07:52 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageStats.c
r773 r775 20 20 /// This routine must determine the various statistics for the image. 21 21 psStats * 22 22 23 psImageGetStats(const psImage *input, 23 24 psStats *stats) 24 25 { 25 26 psVector *junk=NULL; 27 psStats *stats2= NULL; 26 28 27 29 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); 29 34 } 30 35 … … 46 51 Internal Data Structures: 47 52 chebPolys[i][j] 48 53 sums[i][j] 49 54 *****************************************************************************/ 50 55 psPolynomial2D * … … 107 112 } 108 113 109 114 // GUS: Check the math on this at a later date. 110 115 coeffs->coeff[0][0] = sums[0][0] / (coeffs->nX * coeffs->nY); 111 116 for (i=0;i<coeffs->nX;i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
