Malvar-He-Cutler Linear Image Demosaicking
Functions

dmmalvar.h File Reference

Malvar-He-Cutler demosaicing. More...

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Malvar-He-Cutler demosaicing.

Author:
Pascal Getreuer <getreuer@gmail.com>

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.


Function Documentation

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.

Parameters:
Outputpointer to memory to store the demosaiced image
Inputthe input image as a flattened 2D array
Width,Heightthe image dimensions
RedX,RedYthe 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.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines