WLJS LogoWLJS Notebook

BinaryImageQ

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

Examples

Test binary image:

img = Binarize[ExampleData[{"TestImage", "Lena"}]];
BinaryImageQ[img]
(* True *)

Test non-binary image:

BinaryImageQ[ExampleData[{"TestImage", "Lena"}]]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page