Changeset 4128 for trunk/psLib/src/mathtypes
- Timestamp:
- Jun 6, 2005, 4:29:44 PM (21 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r3977 r4128 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.6 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 5-19 05:18:20$11 * @version $Revision: 1.67 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-07 02:29:44 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 352 352 353 353 return numFreed; 354 } 355 356 bool p_psImagePrint (FILE *f, psImage *a, char *name) 357 { 358 359 fprintf (f, "matrix: %s\n", name); 360 361 for (int j = 0; j < a[0].numRows; j++) { 362 for (int i = 0; i < a[0].numCols; i++) { 363 fprintf (f, "%f ", p_psImageGetElementF64(a, i, j)); 364 } 365 fprintf (f, "\n"); 366 } 367 fprintf (f, "\n"); 368 return (true); 354 369 } 355 370 -
trunk/psLib/src/mathtypes/psImage.h
r3990 r4128 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.5 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 5-19 23:57:37$13 * @version $Revision: 1.54 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-07 02:29:44 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 176 176 ); 177 177 178 /** print image pixel values. 179 * 180 * @return bool TRUE is successful, otherwise FALSE. 181 */ 182 bool p_psImagePrint( 183 FILE *f, ///< Destination stream 184 psImage *a, ///< image to print 185 char *name ///< name of the image (for title) 186 ); 187 178 188 /** Interpolate image pixel value given floating point coordinates. 179 189 *
Note:
See TracChangeset
for help on using the changeset viewer.
