| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmbinary( f, k1 ) f: Gray-scale (uint8 or uint16) image. k1: Non-negative integer. Threshold value. Default: 1.y: Binary image (logical uint8). mmbinary converts a gray-scale image f into a binary image y by a threshold rule. A pixel in y has the value 1 if and only if the corresponding pixel in f has a value greater or equal k1.
a = [0 1 2 3 4];
b=mmbinary(a)
Warning: Converting image from double to uint16.
b =
0 1 1 1 1
|
a=mmreadgray('mm3.tif'); b=mmbinary(a,82); mmshow(a); mmshow(b);
|

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