| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmgray( f, TYPE, k1 ) f: Binary image (logical uint8). TYPE: String. 'uint8' or 'uint16'. Default: "uint8".k1: Non-negative integer. Default: Maximum pixel value allowed.y: Gray-scale (uint8 or uint16) image. mmgray converts a binary image into a gray-scale image of a specified data type. The value k1 is assigned to the 1 pixels of f, while the 0 pixels keep their value.a=uint8([0 1 0 1]); b=mmbinary(a) b = 0 1 0 1 c=mmgray(b) c = 0 255 0 255 d=mmgray(b,'uint8',100) d = 0 100 0 100 |

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