We propose a method for high dynamic range (HDR) mapping that is directly applied on the color filter array (CFA) image instead of the already demosaiced image. This rendering is closer to retinal processing where an image is acquired by a mosaic of cones and where adaptive non-linear functions apply before interpolation. Thus, in our framework, demosaicing is the final step of the rendering. Our method, inspired by retinal sampling and adaptive processing is very simple, fast because only one third of operations are needed, and gives good result as shown by experiments.
Matlab code is available upon request.
Figure 4: Example of image processing (Top left) The image is solely demosaiced (Top right) The first non linearity and the demosaicing process (Bottom) two non-linearities followed by demosaicing.
Figure 5: Comparison between several methods (Top left) method of  (Top right) method of  (Bottom) our presented method.
Figure 6: Comparison between several methods (Top left) method in  (Top right) our method (Bottom left) method in  (Bottom right) our method.
Left: gamma-encoded image. Right: image rendered with our method.