ImageDemosaic

ImageDemosaic[image,{"cfa",{row,col}}]

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"
    "CYGM"
    "CYGM2"
    "LRGB"

Examples

open all close all

Basic Examples  (1)

Reconstruct an image from raw CCD data:

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

Scope  (1)

Applications  (1)

Possible Issues  (1)

Introduced in 2012
(9.0)