[mmGconst] [Up] [mmText] Image Creation

mmDrawv
Superpose points, rectangles and lines on an image.

Synopsis

Image mmDrawv ( const Image& f , const Image& data , const Image& value , const String& GEOM );

Input

f Image [ Gray-scale (uint8 or uint16) or binary image ]

data Image [ Gray-scale (uint8 or uint16) or binary image ]

vector of points. Each row gives information regarding a geometrical primitive. The interpretation of this data is dependent on the parameter GEOM.

The line drawing algorithm is not invariant to image transposition.

value Image [ Gray-scale (uint8 or uint16) or binary image ]

pixel gray-scale value associated to each point in parameter data. It can be a column vector of values or a single value.

GEOM String

geometrical figure. One of 'point','line', 'rect', or 'frect' for drawing points, lines, rectangles or filled rectangles respectively.

Output

y Image [ Gray-scale (uint8 or uint16) or binary image ]

y has the same type of f.

Description

mmDrawv creates the image y by a superposition of points, rectangles and lines of gray-level k1 on the image f. The parameters for each geometrical primitive are defined by each line in the 'data' parameter. For points, they are represented by a matrix where each row gives the point's row and column, in this order. For lines, they are drawn with the same convention used by points, with a straight line connecting them in the order given by the data matrix. For rectangles and filled rectangles, each row in the data matrix gives the two points of the diagonal of the rectangle, where the points use the same row, column convention.

See also

mmFrame Create a frame image.
mmText Create a binary image of a text.
mmBlob Blob measurements from a labeled image.
[mmGconst] [Up] [mmText]