Changeset 5089 for trunk/psLib/src/imageops/psImageStats.c
- Timestamp:
- Sep 21, 2005, 4:32:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageStats.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStats.c
r4970 r5089 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-09- 08 00:07:59$11 * @version $Revision: 1.78 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-22 02:32:00 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 250 250 Output: 251 251 Internal Data Structures: 252 chebPolys[i][j] 253 sums[i][j]: This will contain the sum of 252 chebPolys[i][j] 253 sums[i][j]: This will contain the sum of 254 254 input->data.F32[x][y] * 255 255 psPolynomial1DEval( … … 258 258 psPolynomial1DEval( 259 259 chebPolys[j], 260 (float) y, 260 (float) y, 261 261 ); 262 262 over all pixels (x,y) in the image. … … 373 373 Output: 374 374 Internal Data Structures: 375 chebPolys[i][j] 376 sums[i][j]: This will contain the sum of 375 chebPolys[i][j] 376 sums[i][j]: This will contain the sum of 377 377 input->data.F32[x][y] * 378 378 psPolynomial1DEval( … … 381 381 psPolynomial1DEval( 382 382 chebPolys[j], 383 (float) y, 383 (float) y, 384 384 ); 385 385 over all pixels (x,y) in the image. … … 514 514 515 515 /***************************************************************************** 516 XXX: Use static variables for Chebyshev polynomials and scaling factors. 516 XXX: Use static variables for Chebyshev polynomials and scaling factors. 517 517 *****************************************************************************/ 518 518 psImage* p_psImageEvalPolynomialCheb(psImage* input, … … 634 634 } 635 635 636 // count number of pixels with given mask value 637 long psImageCountPixelMask (psImage *mask, 638 psMaskType value) 639 { 640 long Npixels = 0; 641 642 for (long i = 0; i < mask->numRows; i++) { 643 for (long j = 0; j < mask->numCols; j++) { 644 if (mask->data.U8[i][j] & value) { 645 Npixels ++; 646 } 647 } 648 } 649 return (Npixels); 650 } 651
Note:
See TracChangeset
for help on using the changeset viewer.
