Malvar-He-Cutler Linear Image Demosaicking
|
Malvar-He-Cutler demosaicing. More...
Go to the source code of this file.
Functions | |
void | MalvarDemosaic (float *Output, const float *Input, int Width, int Height, int RedX, int RedY) |
Demosaicing using the 5x5 linear method of Malvar et al. |
Malvar-He-Cutler demosaicing.
Copyright (c) 2010-2011, Pascal Getreuer All rights reserved.
This program is provided for scientific and educational only: you can use and/or modify it for these purposes, but you are not allowed to redistribute this work or derivative works in source or executable form. A license must be obtained from the patent right holders for any other use.
Definition in file dmmalvar.h.
void MalvarDemosaic | ( | float * | Output, |
const float * | Input, | ||
int | Width, | ||
int | Height, | ||
int | RedX, | ||
int | RedY | ||
) |
Demosaicing using the 5x5 linear method of Malvar et al.
Output | pointer to memory to store the demosaiced image |
Input | the input image as a flattened 2D array |
Width,Height | the image dimensions |
RedX,RedY | the coordinates of the upper-rightmost red pixel |
Malvar, He, and Cutler considered the design of a high quality linear demosaicing method using 5x5 filters. The method is essentially the bilinear demosaicing method that is "gradient-corrected" by adding the Laplacian from another channel. This enables the method to take advantage of correlation among the RGB channels.
The Input image is a 2D float array of the input RGB values of size Width*Height in row-major order. RedX, RedY are the coordinates of the upper-rightmost red pixel to specify the CFA pattern.
Definition at line 51 of file dmmalvar.c.