Bayer CFA Demosaicing and Mosaicing

Demosaicing

colour_demosaicing

demosaicing_CFA_Bayer_bilinear(CFA[, pattern])

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

demosaicing_CFA_Bayer_Malvar2004(CFA[, pattern])

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

demosaicing_CFA_Bayer_Menon2007(CFA[, ...])

Returns 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, ...])

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

Mosaicing

colour_demosaicing

mosaicing_CFA_Bayer(RGB[, pattern])

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

Masks

colour_demosaicing

masks_CFA_Bayer(shape[, pattern])

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