ImageQ

ImageQ[image]

yields True if image has the form of a valid Image or Image3D object, and False otherwise.

Examples

open allclose all

Basic Examples  (3)

A valid image object:

A valid 3D image object:

An expression with head Image that is not a valid image object:

Properties & Relations  (1)

Testing for a valid 2D image:

Testing for a valid 3D image:

Possible Issues  (2)

An expression of the form Graphics[Raster[}] is not a valid image object:

An expression of the form Graphics3D[Raster3D[}] is not a valid image object:

Introduced in 2008
 (7.0)
 |
Updated in 2012
 (9.0)