[mmgshow] [Up] [mmbshow] Visualization

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

Synopsis

function y = mmsurf ( f , option )

Input

f Image Gray-scale (uint8 or uint16) image
option String

Default: 'NW'

light direction: 'N', 'S', 'E', 'W', 'NE', 'SE', 'NW', 'SW'.

Output

y Image 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));
f mmsurf(f)
f=mmreadgray('n2538.tif');
mmshow(f);
mmshow(mmsurf(f));
f 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.
[mmgshow] [Up] [mmbshow]