[mmGshow] [Up] [mmBshow] Visualization

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

Synopsis

Image mmSurf ( const Image& f , const String& option = "NW" );

Input

f Image [ Gray-scale (uint8 or uint16) image ]

option String

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

Default: "NW"

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.

See also

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]