| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmthreshad( f, f1, f2 ) f: Gray-scale (uint8 or uint16) image. f1: Gray-scale (uint8 or uint16) image. Or constant. f2: Gray-scale (uint8 or uint16) image. Or constant. Default: Maximum pixel value allowed.f, f1, f2 must have the same data type.y: Binary image (logical uint8). mmthreshad creates the image y as the threshold of the image f by the images f1 and f2. A pixel in y has the value 1 when the value of the corresponding pixel in f is between the values of the corresponding pixels in f1 and f2.a = mmreadgray('keyb.tif'); mmshow(a); b = mmthreshad(a,uint8(10), uint8(50)); mmshow(b); c = mmthreshad(a,238); Warning: Converting image from scalar to uint8. mmshow(c);
|

function y = mmthreshad_equ( f, f1, f2 ) y = (f1 <= f) & (f <= f2);
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||