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

mmshow - Display binary or gray-scale images and optionally overlay it with binary images.


Synopsis
y = mmshow( f, f1, f2, f3, f4, f5, f6 )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8).
f1: Binary image (logical uint8). Red overlay. Default: No parameter.
f2: Binary image (logical uint8). Green overlay. Default: No parameter.
f3: Binary image (logical uint8). Blue overlay. Default: No parameter.
f4: Binary image (logical uint8). Magenta overlay. Default: No parameter.
f5: Binary image (logical uint8). Yellow overlay. Default: No parameter.
f6: Binary image (logical uint8). Cyan overlay. Default: No parameter.
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8). Optionally return RGB uint8 image
Description
Displays the binary (logical uint8) or gray-scale (uint8 or uint16) image f, and optionally overlay it with up to six binary images f1 to f6 in the following colors: f1 as red, f2 as green, f3 as blue, f4 as yellow, f5 as magenta, and f6 as cian. The image is displayed in the MATLAB figure only if no output parameter is given.
Examples
f=mmreadgray('mribrain.tif');
f150=mmthreshad(f,150);
Warning: Converting image from scalar to uint8.
f200=mmthreshad(f,200);
Warning: Converting image from scalar to uint8.
mmshow(f);
mmshow(f150);
mmshow(f,f150,f200);
image
(f)
image
(f150)
image
(f,f150,f200)
See Also
mmdtshow - Display a distance transform image with an iso-line color table.
mmlblshow - Display a labeled image assigning a random color for each label.
mmsurf - Generate a shaded visualization image of a gray-scale image as a topographic model.
Source code
mmshow.m

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