# mmshow
Display binary or gray-scale images and optionally overlay it with binary images.

## Synopsis

mmshow( f, f1 = None, f2 = None, f3 = None, f4 = None, f5 = None, f6 = None )

Implemented in Python.

### Input

f | Image Gray-scale (uint8 or uint16) or binary image.
f1 | Image Binary image. Red overlay. Default: `None`
f2 | Image Binary image. Green overlay. Default: `None`
f3 | Image Binary image. Blue overlay. Default: `None`
f4 | Image Binary image. Magenta overlay. Default: `None`
f5 | Image Binary image. Yellow overlay. Default: `None`
f6 | Image Binary image. Cyan overlay. Default: `None`

## Description

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.

## Examples

    >>> 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 |

## Source Code

    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

## See also

mmlblshow | Display a labeled image assigning a random color for each label.
mmdtshow | Display a distance transform image with an iso-line color table.

[`mmlblshow`] [Up] [`mmbshow`] |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.