[mmgray] [Up] [mmdrawv] Image Creation

mmframe
Create a frame image.

Synopsis

y = mmframe ( f , WT = 1, HT = 1, DT = 0, k1 = Null, k2 = Null )

Input

f Image Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image

WT Double

Positive integer ( width thickness).

Default: 1 (1)

HT Double

Positive integer ( height thickness).

Default: 1 (1)

DT Double

Positive integer ( depth thickness).

Default: 0 (0)

k1 Double Non-negative integer.

Frame gray-level.

Default: Null

k2 Double Non-negative integer.

Background gray level.

Default: Null

Output

y Image

image of same type as f.

Description

mmframe creates an image y, with the same dimensions (W,H,D) and same pixel type of the image f, such that the value of the pixels in the image frame is k1 and the value of the other pixels is k2. The thickness of the image frame is DT.

Equation

Where is the image frame of f, characterized by wt and ht

See also

mmfreedom Control automatic data type conversion.
mmdraw Superpose rectangles and lines on an image. Obsolete, use mmdrawv.
mmlimits Get the possible minimum and maximum of an image.
[mmgray] [Up] [mmdrawv]