[mmwrite] [Up] [mmisequal] Relations

mmisbinary
Check for binary image

Synopsis

function boo = mmisbinary ( f )

Input

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

Output

boo Boolean

Description

mmisbinary returns TRUE(1) if the datatype of the input image is binary. A binary image has just the values 0 and 1.

Examples

a=uint8([0 1 0 1]);
mmisbinary(a)
ans =
     0
b=mmbinary(a)
b =
     0     1     0     1
mmisbinary(b)
ans =
     1

See also

mmfreedom Control automatic data type conversion.
mmbinary Convert a gray-scale image into a binary image
mmgray Convert a binary image into a gray-scale image.
mmis Verify if a relationship among images is true or false.
[mmwrite] [Up] [mmisequal]