demosaic 0.3.0

Demosaicing algorithms for Bayer and X-Trans CFA sensors
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod bilinear_impl;
mod qppg_impl;
pub(crate) mod binning;

use crate::CfaPattern;

pub fn bilinear(input: &[f32], width: usize, height: usize, cfa: &CfaPattern, output: &mut [f32]) {
    bilinear_impl::demosaic(input, width, height, cfa, output);
}

pub fn qppg(input: &[f32], width: usize, height: usize, cfa: &CfaPattern, output: &mut [f32]) {
    qppg_impl::demosaic(input, width, height, cfa, output);
}