MegaWave2 objects such as images, movies, signals, curves, ..., are
represented in the module code as pointers to a structure.
The type of the structure defines the object you want to process, as
struct fimage for an image of Floating points values (the pointer of
this structure is of type
Each structure has particular fields, as
gray for a
represents the gray levels plane. They are described in the section presenting
the structure (Section 2.3.1 page for
Some fields are common to most structures, they are:
cmt: string of maximum size
mw_cmtsizewhere to put the comment associated to the object. For input objects and at the beginning of the module statement, this field contains the comment field of the corresponding file object (if the file type provides a comment field). For output objects and at the end of the module statement, this field contains the name of the module plus the comments of the input objects, if any. This default output value can be overwritten by setting a value to
name: string of maximum size
mw_namesizewhere to put the name of this object. For input objects, this field contains the file name of the corresponding file object. The default output value is ``?''. It can be overwritten.
You can of course access to any field in order to read its content. But be carefull
when you want to overwrite the content of a field: some fields have to be
updated by the system library only (e.g. the dimension fields
ncol of image objects).
Some structures may contain undocumented fields: they are used internally by the system library and users should not access to them, especially for writing.
Some conversions between memory types are available as functions of the System Library, see Section 9.2 of this guide for a list of the most current conversion functions.