Function bayer::run_demosaic
[−]
[src]
pub fn run_demosaic(
r: &mut Read,
depth: BayerDepth,
cfa: CFA,
alg: Demosaic,
dst: &mut RasterMut
) -> BayerResult<()>
Run the demosaicing algorithm on the Bayer image.
Example
use std::io::Cursor; let width: usize = 320; let height: usize = 200; let img = vec![0; width * height]; let mut buf = vec![0; 3 * width * height]; let mut dst = bayer::RasterMut::new( width, height, bayer::RasterDepth::Depth8, &mut buf); bayer::run_demosaic(&mut Cursor::new(&img[..]), bayer::BayerDepth::Depth8, bayer::CFA::RGGB, bayer::Demosaic::None, &mut dst);