[mmLicensedays] [Up] [mmBit] Data Type Conversion

mmBinary
Convert a gray-scale image into a binary image

Synopsis

Image mmBinary ( const Image& f , const Double& k1 = 1 );

Input

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

k1 Double

Threshold value.

Default: 1

Output

y Image [ Binary image ]

Description

mmBinary converts a gray-scale image f into a binary image y by a threshold rule. A pixel in y has the value 1 if and only if the corresponding pixel in f has a value greater or equal k1.

Equation

See also

mmThreshad Threshold (adaptive)
mmIsbinary Check for binary image
mmGray Convert a binary image into a gray-scale image.
[mmLicensedays] [Up] [mmBit]