| |
Program Functions
108
6.3 DataStructure
Variables are stored in a user data structure ud within mrFindBorders' main figure. They are
accessed by the two functions vGetUd and vSetUd. If the content of ud is always accessed
directly by using these functions, it is always up-to-date and there are no old copies some-
where else in the program.
vGetUd.m
vGetUd returns the content of the specified field of the user data structure ud. If the field
does not exist, then an empty matrix [] is returned. Since the user data structure is stored
within the mrFindBorders figure, this figure is needed. If it does not exist, an error message is
given.
vSetUd.m
This function writes a value to the specified field of the ud structure. If the mrFindBorders
figure cannot be found, an error message is given.
vSetUdDefault.m
At the top of the function, the fields of ud.data are listed. In general, no values are set for the
ud.data fields. The list is useful to see which field names are used for which purposes. The
options field (vFbOptions) of the user data (ud) structure is set to default values by vSetUdDe-
fault. Some of these options can be changed in the options window of mrFindBorders.
vUpdateUdData.m
This function is called to create color maps according to the settings in the options menu.
|  |
|
| |
|
|