Interleaving

Interleaving
is an option for Image and related functions that specifies whether data corresponding to different channels in an object such as an image should be interleaved.

DetailsDetails

  • With the typical default setting Interleaving->True, objects are represented by an array of lists, where each list gives the value of each channel for each array element.
  • With Interleaving->False, objects are represented by a list of arrays, where each array gives all the values for a particular channel.
  • For single-channel images, Interleaving is always set to None.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Change the internal representation of an image to store channels in planar form:

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

Create an image from data in which color channels are represented in interleaved form:

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

Create an image from data in which color channels are represented in planar form:

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