Toast++  1.0.2 (r.539)
Forward and inverse modelling in optical tomography
util.h
1 // -*-C++-*-
2 // ============================================================================
3 // TOAST (c) Martin Schweiger 2000
4 // Library: libmath
5 // File: util
6 //
7 // General-purpose utility routines
8 // ============================================================================
9 
10 #ifndef __UTIL_H
11 #define __UTIL_H
12 
13 #include "vector.h"
14 
15 // string and file parsing auxiliary routines
16 char *ToupperString (char *str);
17 void SplitEqString (char *str, char **cat, char **val);
18 
19 // ============================================================================
20 // Write an image (stored in 1-D data array 'img') of dimension xdim,ydim
21 // to a PPM pixmap file. Image is scaled to range scalemin-scalemax.
22 // If scalemin and/or scalemax is NULL, then autscaling is used.
23 
24 void WritePPM (const RVector &img, int xdim, int ydim,
25  double *scalemin, double *scalemax, char *fname);
26 
27 #endif // !__UTIL_H
Templated vector class.
Definition: vector.h:39