[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmdraw - Superpose rectangles and lines on an image. Obsolete, use mmdrawv.


Synopsis
y = mmdraw( f, RECTLIST, k1 )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8). uint8 or logical uint8.
RECTLIST: String. ' R1 C1 R2 C2' ( extremities).
k1: Non-negative integer. Default: Maximum pixel value allowed.
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8). y has the same type of f.
Description
mmdraw creates the image y by a superposition of rectangles and lines of gray-level k1 on the image f. Each rectangle or line is defined by two pairs of points (Row,Column): (R1,C1) and (R2,C2). For a rectangle, (R1,C1) and (R2,C2) represent, respectively, its left low and right upper corner, while for a line, they represent their extremities. The syntax of representation of a rectangle, a filled rectangle, and a line are, respectively, RECT: R1,C1,R2,C2, FRECT:R1,C1,R2,C2, and LINE:R1,C1,R2,C2. A sequence of definitions of lines and rectangles is closed by the command END. Lines and rectangles definitions are delimited by colon (:).
Examples
Draws a white rectangle and line on image f.

a=mmreadgray('n2538.tif');
b=mmdraw(a,'RECT:96,25,124,45:LINE:93,3,4,124:END');
mmshow(a);
mmshow(b);
image
(a)
image
(b)
See Also
mmframe - Create a frame image.
mmfreedom - Control automatic data type conversion.
mmtext - Create a binary image of a text.

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems