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

  • ImageDemosaic[image,] works only with single channel images and generates a color image.
  • ImageDemosaic[image,"cfa"] is equivalent to ImageDemosaic[image,{"cfa",{0,0}}].
  • Possible "cfa" settings are:
  • "RGGB", "Bayer"
    "CYGM"
    "CYGM2"
    "LRGB"

Examples

open allclose all

Basic Examples  (2)

Demosaic an astronomical image:

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

Demosaic using a specific color function array and offset:

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

Possible Issues  (1)

See Also

Image  Import

Introduced in 2012
(9.0)