| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmdraw( f, RECTLIST, k1 ) 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.y: Gray-scale (uint8 or uint16) or binary image (logical uint8). y has the same type of f.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 (:).f.
a=mmreadgray('n2538.tif'); b=mmdraw(a,'RECT:96,25,124,45:LINE:93,3,4,124:END'); mmshow(a); mmshow(b);
|
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||