IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2005, 4:25:10 PM (21 years ago)
Author:
desonia
Message:

Bug #382 -- added some simple functions for tracing.

File:
1 edited

Legend:

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

    r3264 r3786  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-02-17 19:26:24 $
     9 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-04-29 02:25:10 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    419419    return true;
    420420}
     421
     422bool p_psImagePrint (FILE *f, psImage *a, char *name)
     423{
     424
     425    fprintf (f, "matrix: %s\n", name);
     426
     427    for (int j = 0; j < a[0].numRows; j++) {
     428        for (int i = 0; i < a[0].numCols; i++) {
     429            fprintf (f, "%f  ", p_psImageGetElementF64(a, i, j));
     430        }
     431        fprintf (f, "\n");
     432    }
     433    fprintf (f, "\n");
     434    return (true);
     435}
     436
Note: See TracChangeset for help on using the changeset viewer.