|[Up] [mmSE]||Data Types|
The Morphology Toolbox mainly supports four types of images according to their pixel datatypes : binary, unsigned gray scale uint8 and uint16, and signed gray scale int32. Most functions work for 1D, 2D and 3D images. If an operation involves images of specific datatype, an automatic conversion can take place, controlled by the function mmfreedom . To verify the datatype of an image, use the functions: mmdatatype and mmlimits .
In the examples below, all images has pixels with values zero and one, but only the first one is a binary image. This can be verified by calling the function mmlimits that outputs the minimum and maximum pixel values allowed in an image.
f1 = mmbinary([[0,1,0,1], [0,0,1,1]])
f2 = uint8([[0,1,0,1], [0,0,1,1]])
[ 0 255]
f3 = uint16([[0,1,0,1], [0,0,1,1]])
[ 0 65535]
f4 = int32([[0,1,0,1], [0,0,1,1]])
|Copyright (c) 1998-2008 by SDC Information Systems|