# Bayer CFA Decoding Methods

Various Bayer CFA decoding methods are defined to transform the raw Bayer CFA data stream issued by the camera into an RGB color data stream

(1-camera), (2-camera)

(1-camera)

(1-camera), (1-df-camera)

(1-camera), (2-camera)

(1-camera)

(1-camera)

(1-camera), (1-df-camera)

(1-camera)

The CFA decoding method 1 also known as "Legacy method" uses a 3 x 3 kernel and a linear interpolation method to compute the missing color components.

**See also: ** Advanced and Legacy Methods for an extensive description

(1-camera), (2-camera)

(1-camera)

(1-camera), (1-df-camera)

(1-camera), (2-camera)

(1-camera)

(4-camera)

(1-camera)

(1-camera), (1-df-camera)

(1-camera)

The CFA decoding method 2 also known as "Advanced method" uses a 3 x 3 kernel and an advanced interpolation method to compute the missing color components.

**See also: ** Advanced and Legacy Methods for an extensive description

(4-camera)

The CFA decoding method 2 is only available for Stream0 of each device.

(2-camera), (2-camera, bayer)

(1-camera), (1-df-camera)

(1-camera)

(1-camera)

The CFA decoding method 3 uses a 5 x 5 kernel and a gradient-based interpolation method to compute the missing color components.

(2-camera)

The Method 3 decoder is only available for Device0.