[mmUint16] [Up] [mmConst] Image Creation

mmFrame
Create a frame image.

Synopsis

Image mmFrame ( const Image& f , const Double& WT = 1, const Double& HT = 1, const Double& DT = 0, const Double& k1 = NullDouble, const Double& k2 = NullDouble );

Input

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

WT Double

Positive integer ( width thickness).

Default: 1

HT Double

Positive integer ( height thickness).

Default: 1

DT Double

Positive integer ( depth thickness).

Default: 0

k1 Double [ Non-negative integer. ]

Frame gray-level.

Default: NullDouble

k2 Double [ Non-negative integer. ]

Background gray level.

Default: NullDouble

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

mmDraw Superpose rectangles and lines on an image. Obsolete, use mmdrawv.
mmLimits Get the possible minimum and maximum of an image.
[mmUint16] [Up] [mmConst]