next up previous contents index
Next: Related file (external) types Up: Float Images Previous: Float Images   Contents   Index

The structure Fimage

This memory type is exactly the same as Cimage (See section 2.1.1 page [*]): the only difference is about the gray field which is a pointer to floating points values.

Consequently, there is no formal correspondance between a gray level value and a visual gray level (e.g. 255.0 may not represent ``white'').

typedef struct fimage {
  int nrow;        /* Number of rows (dy) */
  int ncol;        /* Number of columns (dx) */
  float *gray;     /* The Gray level plane (may be NULL) */

  float scale;     /* Scale of the picture (should be 1 for original pict.) */
  char cmt[mw_cmtsize]; /* Comments */
  char name[mw_namesize]; /* Name of the image */
  /* Defines the signifiant part of the picture : */
  int firstcol;    /* index of the first col not affected by left side effect*/
  int lastcol;     /* index of the last col not affected by right side effect*/
  int firstrow;    /* index of the first row not aff. by upper side effect */  
  int lastrow;     /* index of the last row not aff. by lower side effect */  

} *Fimage;

mw 2004-05-05