[mmlblshow] [Up] [mmbshow] | Visualization |
Implemented in Python.
f | Image Gray-scale (uint8 or uint16) or binary image. |
f1 | Image Binary image.
Red overlay. Default:
|
f2 | Image Binary image.
Green overlay. Default:
|
f3 | Image Binary image.
Blue overlay. Default:
|
f4 | Image Binary image.
Magenta overlay. Default:
|
f5 | Image Binary image.
Yellow overlay. Default:
|
f6 | Image Binary image.
Cyan overlay. Default:
|
Displays the binary or gray-scale (uint8 or uint16) image
f
, and optionally overlay it with up to six binary images
f1
to
f6
in the following colors:
f1
as red,
f2
as green,
f3
as blue,
f4
as yellow,
f5
as magenta, and
f6
as cian. The image is displayed in the MATLAB figure only if no output parameter is given.
>>> f=mmreadgray('mribrain.tif');
>>> f150=mmthreshad(f,150);
Warning: Converting input image from int32 to uint8.
>>> f200=mmthreshad(f,200);
Warning: Converting input image from int32 to uint8.
>>> mmshow(f);
>>> mmshow(f150);
>>> mmshow(f,f150,f200);
![]() |
![]() |
|
f | f150 |
![]() |
|
f,f150,f200 |
def mmshow(f, f1=None, f2=None, f3=None, f4=None, f5=None, f6=None): import adpil if len(f.shape) != 2: print "Error, mmshow: can only process gray-scale and binary images." return if f1 == None: y = mmgshow(f) elif f2 == None: y = mmgshow(f,f1) elif f3 == None: y = mmgshow(f,f1,f2) elif f4 == None: y = mmgshow(f,f1,f2,f3) elif f5 == None: y = mmgshow(f,f1,f2,f3,f4) elif f6 == None: y = mmgshow(f,f1,f2,f3,f4,f5) elif f6 == None: y = mmgshow(f,f1,f2,f3,f4,f5) else: y = mmgshow(f,f1,f2,f3,f4,f5,f6) adpil.adshow(y) return
[mmlblshow] [Up] [mmbshow] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |