Mathematica > Data Manipulation > Image Processing & Analysis > Image Representation > Interleaving >

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.
  • 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.
Change the internal representation of an image to store channels in planar form:
Create an image from data in which color channels are represented in interleaved form:
Create an image from data in which color channels are represented in planar form:
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]=
For single-channel images, the Interleaving option is always set to None:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF