Malvar-He-Cutler Linear Image Demosaicking
Functions

dmmalvar.c File Reference

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.

Detailed Description

Malvar-He-Cutler demosaicing.

Author:
Pascal Getreuer <getreuer@gmail.com>

Copyright (c) 2011, Pascal Getreuer <getreuer@gmail.com> All rights reserved.

This file implements an algorithm possibly linked to the patent U.S. Patent 7502505, “High-quality gradient-corrected linear interpolation for demosaicing of color images."

This file is made available for the exclusive aim of serving as scientific tool to verify the soundness and completeness of the algorithm description. Compilation, execution and redistribution of this file may violate patents rights in certain countries. The situation being different for every country and changing over time, it is your responsibility to determine which patent rights restrictions apply to you before you compile, use, modify, or redistribute this file. A patent lawyer is qualified to make this determination. If and only if they don't conflict with any patent terms, you can benefit from the following license terms attached to this file.

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.c.


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