[mmgshow] [Up] [mmlblshow] | Visualization |
Displays the distance transform image
f
(uint8 or uint16) with a special gray-scale color table with
n
pseudo-color equaly spaced. The final appearance of this display is similar to an iso-contour image display. The infinity value, which is the maximum level allowed in the image, is displayed as black. The image is displayed in the MATLAB figure only if no output parameter is given.
def mmdtshow(f, n=10): import adpil if (mmisbinary(f)) or (len(f.shape) != 2): print 'Error, mmdtshow: works only for grayscale labeled image' return y=mmgdtshow(f, n) adpil.adshow(y) return return y
[mmgshow] [Up] [mmlblshow] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |