Module bayer::demosaic::linear

source ·
Expand description

Demosaicing using linear interpolation.

  green_kernel = (1 / 4) *
      [ 0 1 0
      ; 1 4 1
      ; 0 1 0 ];

  red/blue_kernel = (1 / 4) *
      [ 1 2 1
      ; 2 4 2
      ; 1 2 1 ];

Functions§