Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Image Representation >

BinaryImageQ

BinaryImageQ[image]
yields True if image has the form of a binary image, and False otherwise.
  • BinaryImageQ[image] tests that image is of type "Bit", and contains only a single channel of values.
Test whether an image is binary:
Single-channel images with data type "Bit" are binary:
Image by default creates "Real" images:
Test whether an image is binary:
In[1]:=
Click for copyable input
Out[1]=
 
Single-channel images with data type "Bit" are binary:
In[1]:=
Click for copyable input
Out[1]=
 
Image by default creates "Real" images:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team