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.

Details

  • 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.

Examples

open allclose all

Basic Examples  (3)

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:

Scope  (2)

By default, AudioData returns non-interleaved data:

Extract interleaved data:

By default, ImageData returns interleaved data:

Extract data in the planar form:

Properties & Relations  (1)

For single-channel images, the Interleaving option is always set to None:

Introduced in 2008
 (7.0)