BinaryImageQ

BinaryImageQ[image]
yields True if image has the form of a binary Image or Image3D object, and False otherwise.

DetailsDetails

  • BinaryImageQ[image] tests that image is of type and contains only a single channel of values.

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

Test whether an image is binary:

In[1]:=
Click for copyable input
Out[1]=

Single-channel images with data type are binary:

In[1]:=
Click for copyable input
Out[1]=

Image by default creates images:

In[1]:=
Click for copyable input
Out[1]=

Test whether a 3D image is binary:

In[1]:=
Click for copyable input
Out[1]=
New in 7 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »