[mmreadgray] [Up] [mmisequal] Relations

mmisbinary
Check for binary image

Synopsis

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])
print mmisbinary(a)
0.0
b=(a)
print mmisbinary(b)
0.0

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.
[mmreadgray] [Up] [mmisequal]