[mmdtshow] [Up] [mmshow] | Visualization |
Implemented in Python.
y | Image Gray-scale (uint8 or uint16) or binary image.
Optionally return RGB uint8 image |
Displays the labeled image
f
(uint8 or uint16) with a pseudo color where each label appears with a random color. The image is displayed in the MATLAB figure only if no output parameter is given.
>>> f=mmreadgray('blob3.tif')
>>> f1=mmlabel(f,mmsebox())
>>> mmshow(f1)
>>> mmlblshow(f1)
>>> mmlblshow(f1,'border')
![]() |
![]() |
![]() |
|
f1 | f1 | f1,'border' |
def mmlblshow(f, option='noborder'): import string import adpil if (mmisbinary(f)) or (len(f.shape) != 2): print 'Error, mmlblshow: works only for grayscale labeled image' return option = string.upper(option); if option == 'NOBORDER': border = 0.0; elif option == 'BORDER': border = 1.0; else: print 'Error: option must be BORDER or NOBORDER' y=mmglblshow(f, border); adpil.adshow(y) return return y
[mmdtshow] [Up] [mmshow] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |