ImageType

ImageType[image]
gives the underlying type of values used for each pixel element in the Image or Image3D object image.

DetailsDetails

  • Possible types returned by ImageType are:
  • "Bit"integer 0 or 1
    "Byte"integer 0 through 255
    "Bit16"integer 0 through 65535
    "Real32"single-precision real (32-bit)
    "Real"double-precision real (64-bit)
  • For all binary images, ImageType gives "Bit".

ExamplesExamplesopen allclose all

Basic Examples  (5)Basic Examples  (5)

Byte image:

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

A 16-bit grayscale image:

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

A real-valued RGB image:

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

A binary image:

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

A 3D image:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2008
(7.0)
| Updated in 2012
(9.0)