[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmfreedom - Control automatic data type conversion.


Synopsis
Y = mmfreedom( L )
Input
L: level of FREEDOM: 0, 1 or 2. If the input parameter is omitted, the current level is returned. Default: 5.
Output
Y: current FREEDOM level
Description
mmfreedom controls the automatic data type conversion. There are 3 possible levels, called FREEDOM levels, for automatic conversion: 0 - image type conversion is not allowed; 1- image type conversion is allowed, but a warning is sent for each conversion; 2- image type conversion is allowed without warning. The FREEDOM levels are set or inquired by mmfreedom.
Examples
f=uint8([1 2 3]);
mmfreedom(2);
mmaddm(f,5)

ans =
     6     7     8
mmfreedom(1);
mmaddm(f,5)
Warning: Converting image from scalar to uint8.
ans =
     6     7     8
See Also
mmdataconv - Data type conversion

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems