[mmlblshow] [Up] [mmdraw] Visualization

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

Synopsis

function y = mmshow ( f , f1 , f2 , f3 , f4 , f5 , f6 , title , id )

Input

f Image Gray-scale (uint8 or uint16) or binary image
f1 Image Binary image

Default: NULL

Red overlay.

f2 Image Binary image

Default: NULL

Green overlay.

f3 Image Binary image

Default: NULL

Blue overlay.

f4 Image Binary image

Default: NULL

Magenta overlay.

f5 Image Binary image

Default: NULL

Yellow overlay.

f6 Image Binary image

Default: NULL

Cyan overlay.

title String

Default: 'mmshow'

id String

Default: 'mmshow'

Output

y Image Gray-scale (uint8 or uint16) or binary image

Optionally return RGB uint8 image

Description

Displays the binary 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);
f f150
f,f150,f200

See also

mmlblshow Display a labeled image assigning a random color for each label.
mmdtshow Display a distance transform image with an iso-line color table.
mmsurf Generate a shaded visualization image of a gray-scale image as a topographic model.
[mmlblshow] [Up] [mmdraw]