A very simple ISP to convert bayer format image to RGB image
- Open Matlab
- run 'img2raw.m' to generate a raw file (with many frames)
- run 'main.m' to convert the raw file to many RGB images
A very simple implementation of Image Signal Processing pipeline, which contains:
- Black Level Correction
- Gain
- White Balance
- Demosaic
- Color Correction
- Gamma
A collection of demosaic methods. At the moment, only 'bilinear' is implemented. Would support more in the future :)
Refer to this document to learn more details of bilinear demosaicing.
- img_bayer_640x512_GBRG_12bits.raw -> raw file with only 1 frame, 'GBRG' format bayer image, height 640px, width 512px, precision uint16
- img_gt_001.jpg -> ground truth RGB image, where the raw file comes from
- img_rec_bilinear_001.jpg -> reconstructed RGB image, using bilinear demosaic method.
In a word, convert [1.] to [3.], compare [3.] with [2.]