Bayer CFA Demosaicing and Mosaicing#

Demosaicing#

colour_demosaicing

demosaicing_CFA_Bayer_bilinear(CFA[, pattern])

Return the demosaiced RGB colourspace array from given Bayer CFA using bilinear interpolation.

demosaicing_CFA_Bayer_Malvar2004(CFA[, pattern])

Return the demosaiced RGB colourspace array from given Bayer CFA using Malvar (2004) demosaicing algorithm.

demosaicing_CFA_Bayer_Menon2007(CFA[, ...])

Return the demosaiced RGB colourspace array from given Bayer CFA using DDFAPD - Menon (2007) demosaicing algorithm.

Ancillary Objects

colour_demosaicing

demosaicing_CFA_Bayer_DDFAPD(CFA[, pattern, ...])

Return the demosaiced RGB colourspace array from given Bayer CFA using DDFAPD - Menon (2007) demosaicing algorithm.

Mosaicing#

colour_demosaicing

mosaicing_CFA_Bayer(RGB[, pattern])

Return the Bayer CFA mosaic for a given RGB colourspace array.

Masks#

colour_demosaicing

masks_CFA_Bayer(shape[, pattern])

Return the Bayer CFA red, green and blue masks for given pattern.