reconstructs a color image using the specified color filter array "cfa", aligning the top-left pixel of the pattern with the {row,col} pixel of image.

Details and Options

  • ImageDemosaic[image,] works only with single channel images and generates a color image.
  • The color filter array cfa can be any of the following:
  • "cfa"uses an explicit color filter array with zero offset
    {"cfa",{row,col}}aligning the top-left pixel of "cfa" with {row,col}
  • Possible "cfa" settings are:
  • "RGGB", "Bayer"


open allclose all

Basic Examples  (1)

Reconstruct an image from raw CCD data:

Scope  (1)

Demosaic using a specific color function array and offset:

Applications  (1)

Demosaic an astronomical image:

Possible Issues  (1)

Demosaicing with a wrong offset results in a wrong reconstruction:

Result of the reconstruction with the correct offset:

Introduced in 2012