demosaic
Convert Bayer pattern encoded image to truecolor image
Description
converts the Bayer pattern encoded image,RGB
= demosaic(I
,sensorAlignment
)I
, to the truecolor image,RGB
, using gradient-corrected linear interpolation.sensorAlignment
指定了拜耳的模式。
A Bayer filter mosaic, or color filter array, refers to the arrangement of color filters that let each sensor in a single-sensor digital camera record only red, green, or blue data. The patterns emphasize the number of green sensors to mimic the human eye's greater sensitivity to green light. Thedemosaic
function uses interpolation to convert the two-dimensional Bayer-encoded image into the truecolor image.
Examples
Input Arguments
Output Arguments
References
[1] Malvar, H.S., L. He, and R. Cutler,High quality linear interpolation for demosaicing of Bayer-patterned color images. ICASPP, Volume 34, Issue 11, pp. 2274-2282, May 2004.