[mmBit] [Up] [mmUbyte] Data Type Conversion

mmGray
Convert a binary image into a gray-scale image.

Synopsis

Image mmGray ( const Image& f , const String& TYPE = "uint8", const Double& k1 = NullDouble );

Input

f Image [ Binary image ]

TYPE String

Image data type: 'uint8', 'uint16', or 'int32'.

Default: "uint8"

k1 Double [ Non-negative integer. ]

Default: NullDouble

Output

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

Description

mmGray converts a binary image into a gray-scale image of a specified data type. The value k1 is assigned to the 1 pixels of f, while the 0 pixels are assigned to the minimum value associated to the specified data type.

Equation

See also

mmBinary Convert a gray-scale image into a binary image
mmThreshad Threshold (adaptive)
[mmBit] [Up] [mmUbyte]