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

mmsurf - Generate a shaded visualization image of a gray-scale image as a topographic model.


Synopsis
y = mmsurf( f, option )
Input
f: Gray-scale (uint8 or uint16) image.
option: String. light direction: 'N', 'S', 'E', 'W', 'NE', 'SE', 'NW', 'SW'. Default: "NW".
Output
y: Gray-scale uint8 image. shaded image.
Description
The gray-scale image is modeled as a topographic model of a terrain where the pixel value represents the height at the pixel coordinates. The surface is rendered using the top-view direction and the light direction selected from the 8 compass directions N,NE,E,SE,S,SW,W,NW. This function is very useful to visualize the distance transform image and the results of many morphological operators on gray-scale images.
Examples
f=mmreadgray('n2538.tif');
mmshow(f);
mmshow(mmsurf(f));
image
(f)
image
(mmsurf(f))
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.
mmshow - Display binary or gray-scale images and optionally overlay it with binary images.

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