Comparative Study of Demosaicing Algorithms for Bayer and Pseudo-Random Bayer Color Filter Arrays

Similar documents
Demosaicing Algorithms

AN EFFECTIVE APPROACH FOR IMAGE RECONSTRUCTION AND REFINING USING DEMOSAICING

Color Filter Array Interpolation Using Adaptive Filter

Image Demosaicing. Chapter Introduction. Ruiwen Zhen and Robert L. Stevenson

A Novel Method for Enhancing Satellite & Land Survey Images Using Color Filter Array Interpolation Technique (CFA)

Artifacts Reduced Interpolation Method for Single-Sensor Imaging System

IN A TYPICAL digital camera, the optical image formed

An Improved Color Image Demosaicking Algorithm

ABSTRACT I. INTRODUCTION. Kr. Nain Yadav M.Tech Scholar, Department of Computer Science, NVPEMI, Kanpur, Uttar Pradesh, India

Analysis on Color Filter Array Image Compression Methods

A new edge-adaptive demosaicing algorithm for color filter arrays

Color Demosaicing Using Variance of Color Differences

Demosaicking methods for Bayer color arrays

Edge Potency Filter Based Color Filter Array Interruption

Color filter arrays revisited - Evaluation of Bayer pattern interpolation for industrial applications

COLOR demosaicking of charge-coupled device (CCD)

DIGITAL color images from single-chip digital still cameras

Two-Pass Color Interpolation for Color Filter Array

Interpolation of CFA Color Images with Hybrid Image Denoising

Demosaicing Algorithm for Color Filter Arrays Based on SVMs

Practical Implementation of LMMSE Demosaicing Using Luminance and Chrominance Spaces.

Image Interpolation Based On Multi Scale Gradients

COLOR DEMOSAICING USING MULTI-FRAME SUPER-RESOLUTION

MOST digital cameras capture a color image with a single

NOVEL COLOR FILTER ARRAY DEMOSAICING IN FREQUENCY DOMAIN WITH SPATIAL REFINEMENT

Multi-sensor Super-Resolution

Lecture Notes 11 Introduction to Color Imaging

An evaluation of debayering algorithms on GPU for real-time panoramic video recording

High Dynamic Range image capturing by Spatial Varying Exposed Color Filter Array with specific Demosaicking Algorithm

A robust, cost-effective post-processor for enhancing demosaicked camera images

Recent Patents on Color Demosaicing

Color Demosaicing Using Asymmetric Directional Interpolation and Hue Vector Smoothing

RGB RESOLUTION CONSIDERATIONS IN A NEW CMOS SENSOR FOR CINE MOTION IMAGING

DEMOSAICING, also called color filter array (CFA)

Normalized Color-Ratio Modeling for CFA Interpolation

Method of color interpolation in a single sensor color camera using green channel separation

Research Article Discrete Wavelet Transform on Color Picture Interpolation of Digital Still Camera

No-Reference Perceived Image Quality Algorithm for Demosaiced Images

THE commercial proliferation of single-sensor digital cameras

A new CFA interpolation framework

An Effective Directional Demosaicing Algorithm Based On Multiscale Gradients

VLSI Implementation of Impulse Noise Suppression in Images

Cameras. Outline. Pinhole camera. Camera trial #1. Pinhole camera Film camera Digital camera Video camera

Simultaneous Capturing of RGB and Additional Band Images Using Hybrid Color Filter Array

Adaptive demosaicking

Optimal Color Filter Array Design: Quantitative Conditions and an Efficient Search Procedure

AUTOMATIC DETECTION AND CORRECTION OF PURPLE FRINGING USING THE GRADIENT INFORMATION AND DESATURATION

PCA Based CFA Denoising and Demosaicking For Digital Image

Two Improved Forensic Methods of Detecting Contrast Enhancement in Digital Images

New Efficient Methods of Image Compression in Digital Cameras with Color Filter Array

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

COMPRESSION OF SENSOR DATA IN DIGITAL CAMERAS BY PREDICTION OF PRIMARY COLORS

A New Adaptive Method for Removing Impulse Noise from Medical Images

Image Demosaicing: A Systematic Survey

IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 15, NO. 1, JANUARY Sina Farsiu, Michael Elad, and Peyman Milanfar, Senior Member, IEEE

Improved sensitivity high-definition interline CCD using the KODAK TRUESENSE Color Filter Pattern

Denoising and Demosaicking of Color Images

New Edge-Directed Interpolation

Simultaneous geometry and color texture acquisition using a single-chip color camera

Review of Bayer Pattern Color Filter Array (CFA) Demosaicing with New Quality Assessment Algorithms

TO reduce cost, most digital cameras use a single image

Design and Simulation of Optimized Color Interpolation Processor for Image and Video Application

Color Digital Imaging: Cameras, Scanners and Monitors

Correction of Clipped Pixels in Color Images

ADAPTIVE JOINT DEMOSAICING AND SUBPIXEL-BASED DOWN-SAMPLING FOR BAYER IMAGE

Evaluation of a Hyperspectral Image Database for Demosaicking purposes

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

Cameras. Digital Visual Effects, Spring 2008 Yung-Yu Chuang 2008/2/26. with slides by Fredo Durand, Brian Curless, Steve Seitz and Alexei Efros

Color interpolation algorithm for an RWB color filter array including double-exposed white channel

Practical Content-Adaptive Subsampling for Image and Video Compression

Color Models and Color Image Processing. CS 663, Ajit Rajwade

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

Digital Image Processing Chapter 6: Color Image Processing

Image acquisition. In both cases, the digital sensing element is one of the following: Line array Area array. Single sensor

Digital Images. Back to top-level. Digital Images. Back to top-level Representing Images. Dr. Hayden Kwok-Hay So ENGG st semester, 2010

Digital Cameras The Imaging Capture Path

1982 IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, VOL. 24, NO. 11, NOVEMBER 2014

TRUESENSE SPARSE COLOR FILTER PATTERN OVERVIEW SEPTEMBER 30, 2013 APPLICATION NOTE REVISION 1.0

Module 3: Video Sampling Lecture 18: Filtering operations in Camera and display devices. The Lecture Contains: Effect of Temporal Aperture:

in association with Getting to Grips with Printing

Design of Practical Color Filter Array Interpolation Algorithms for Cameras, Part 2

IMPROVEMENTS ON SOURCE CAMERA-MODEL IDENTIFICATION BASED ON CFA INTERPOLATION

Cameras. Shrinking the aperture. Camera trial #1. Pinhole camera. Digital Visual Effects Yung-Yu Chuang. Put a piece of film in front of an object.

Color Image Processing EEE 6209 Digital Image Processing. Outline

Dr. J. J.Magdum College. ABSTRACT- Keywords- 1. INTRODUCTION-

Universal Demosaicking of Color Filter Arrays

Improvements of Demosaicking and Compression for Single Sensor Digital Cameras

Cluster-Dot Halftoning based on the Error Diffusion with no Directional Characteristic

A Linear Interpolation Algorithm for Spectral Filter Array Demosaicking

IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 19, NO. 9, SEPTEMBER /$ IEEE

Ranked Dither for Robust Color Printing

Performance Analysis of Color Components in Histogram-Based Image Retrieval

Image Processing (EA C443)

Digital Imaging with the Nikon D1X and D100 cameras. A tutorial with Simon Stafford

A Unified Framework for the Consumer-Grade Image Pipeline

FPGA Implementation of Global Vision for Robot Soccer as a Smart Camera

A Survey of Demosaicing: Issues and Challenges

Image Processing for feature extraction

Joint Demosaicing and Super-Resolution Imaging from a Set of Unregistered Aliased Images

Color Transformations

Transcription:

Comparative Stud of Demosaicing Algorithms for Baer and Pseudo-Random Baer Color Filter Arras Georgi Zapranov, Iva Nikolova Technical Universit of Sofia, Computer Sstems Department, Sofia, Bulgaria Abstract: The image registration b digital cameras and video cameras requires digital filters to be posed onto the photo-sensitive sensors (CCD and CMOS). The filters are arranged in patterns across the face of the image sensing arra. The most commonl used color filter arra is Baer pattern. An alternative of this pattern is a Pseudo-Random Baer color filter arra (CFA). Its structure differs considerabl from the regular structure of the original Baer filter. The purpose of this research is to present a comparison and evaluation of both color filters, based on two criteria: an objective peak signal-to-noise ratio (PSNR) and subjective (visual qualit). The filters efficienc is assessed b experimental studies on a set of test images vector and real photographic ones. The results obtained during the experiments are presented and discussed. Kewords: Baer filter, Pseudo-Random Baer filter, Demosaicing, CFA interpolation, peak signal-to-noise ratio (PSNR), mean squared error (MSE). 1. INTRODUCTION Baer filter [1] is one of the most currentl used color filters (Fig. 1a). There are man different realizations of such filters. A Pseudo-Random Baer (PRB) is one of them. The filter forms b overlaing with pseudo-random pattern, as it is illustrated on Fig. 1b,c. The pseudo-randomness determines b position the blue and red pixels, while the green pixels keep their positions as in the original Baer filter. The position of a filter element in Baer and PRB filters set that in each sensing element (pixel) there is an information of one color component onl (R, G or B). To produce the Fig. 1: Baer and Pseudo-Random Baer CFAs. (a): Baer CFA, (b): PRB pattern; (c): pattern, overlaid on matrix 7х7 (PRB CFA). A pattern is outlined with ellow color. full-colored image b analog of color photo film, each pixel must keep data for the three colors: R, G and B. To obtain the missing color information interpolation is used. These interpolation methods are often called demosaicing. Demosaicing algorithms interpolate each of the color planes at the position where the corresponding values are missing. A comparative stud of different Baer CFA demosaicing algorithms is presented in [2, 3], and of PRB CFA in [4]. The purpose of this paper is to compare the applicabilit of the two tpes of filters for registration visual information, b modifing some of the best demosaicing algorithms according to the PRB filter structure. Two tpes of images are used as an experimental data set vector and real photographic ones. The filters efficienc is 133

assessed b experimental studies, using both evaluation approaches: an objective (peak signal-to-noise ratio) and subjective a visual comparison of the qualit of the received results. The paper is organized as follows. Section II, briefl presents some of the demosaicing methods and their essential features. The used test images and the motivation for selecting them are given in Section III. Section IV discusses results, obtained via our experimental studies. Some concluding remarks are provided in the final section. 2. REVIEW OF EXPLORED ALGORITHMS 2.1. Interpolation algorithms for Baer filter 2.1.1. Freeman interpolation This method (proposed in [5]) attempt to reduce the effects of fringing b removing sudden jumps in hue, interpreted in a similar wa as in Cok s algorithm [6]. Median filtering is used to remove such jumps while preserving important hue changes. In the first step of the algorithm, complete bilinear interpolation of RGB components is performed (Fig. 2). Difference images R-G and B-G are subsequentl constructed and filtered b median filter. Resulting differences are then used with original measurements to compute all the RGB values in each pixel. This is possible as we have one value and two differences for each pixel. Fig. 2: Diagram of Freeman interpolation 2.1.2. Kimmel algorithm Kimmel [7] follows Cok s assumption, that within a given object the ratios red / green and blue / green are locall constant. This rule falls apart across the edges where the color gradient is high, which are the interesting and problematic locations from reconstruction point of view. A Kimmel demosaicing algorithm includes three stages: Interpolation of green color. Interpolation of red and blue colors using the interpolated green color. Correction (enhancement) stage. 134

2.1.3. Tsai-Achara Interpolation Tsai-Achara interpolation method [8] is an adaptive algorithm, based on the concept of smooth hue transition. The main idea is to assign weight coefficients to the pixels, adjacent to the currentl processed one. The pixels values are determined depending upon the correlation amongst the surrounding pixels, whether or not the pixel belongs to the edge. The Tsai-Achara interpolation performs on three stages: Estimation of all missing Green values. Estimation of missing Blue (Red) color component at each pixel location containing Red (Blue) color component onl. The green values estimated in the previous step are used in this step. The decision is based on the change of hue value. Estimation of missing Red and Blue at green pixels, using the estimated Red/Blue at blue/red pixels in the previous step. 2.1.4. Wenmiao-Peng Interpolation Wenmiao-Peng algorithm [9] is based on the spatial correlation among pixels along the respective interpolation direction. There are two assumptions: The green and blue/red pixel values are well correlated with constant offset. The rate of change of neighboring pixel values along an interpolation direction is a constant. The post processing step is suppressing of noticeable demosaicing artifacts b using median interpolation (Eq. 1 and Eq. 2) b analog of the Freeman algorithm. (1) G x, ( New( Rx, ) MRG) + ( New( Bx, = 2 ) M BG ) (2) Rx = New( Gx, ) MRG,, Bx, = New( Gx, ) MBG, where: M = median R G }, M = median R G }, RG ( R x, { i, j i, j ( B x, BG { i, j i, j New ( G x, ), New ), New ) RGB values after interpolation, i, j positions of median filter according to Fig. 1a. 2.2. Interpolation algorithms for Pseudo-random Baer filter In contrast to the original Baer filter, the processing of the PRB is complicated b the fact that depending on their neighbors, pixels are divided into more groups. Depending on these groups some of the well known algorithms for interpolation could be full applied as well as for PRB filter, with others the implementation is possible onl for some tpes of pixels, while third algorithms cannot be executed with this tpe of pattern. Having in mind Fig. 1c, we have the several positions of the pixels, for which there is a measured value (red, green or blue center) [4]. There are the following tpes of pixels: three tpes of red and of blue pixels, and four tpes of green pixels. The four investigated algorithms (Freeman, Kimmel, Wenmiao-Peng and Tsai-Achara) are adapted to the structure of the PRB filter. The computation of the particular values and coefficients is related with the tpe of a given pixel. 135

3. TEST IMAGES FOR COMPARISON OF DEMOSAICING METHODS To compare the demosaicing algorithms 12 images are generall used: 6 are snthetic vector images (1024x1024 pixels) and 6 are photographic images (768x512 pixels) from the Kodak test bed: RedRidingHood, Statue, LightHome, Flowers, Parrots, Girl (Fig. 3). The snthetic images (Fig. 3 (1)-(6)) are created with Adobe Illustrator, after which the are rasterized with Adobe Photoshop. Test images 1,2 are used for evaluation of the algorithms for reproducing smoothing transitions. Test image 3 contains a lot of high frequenc pattern in the form of black and white sharp edges in different angles, divided in several semicircles for evaluation of the resolution. Each wedge is 2 degree wide, so the black and white ras are with a period of 4 degrees. Test image 5 imitates the regular structure of Baer filter and the pixels in images. Test image 4 and Test image 6 are selected to displa artifacts, caused b different black and white stripes. Real photographic images are selected so as to contain abrupt transitions as well as smooth ones, pastels and saturated colors, details with high spatial frequenc. Fig. 3: Collection of 12 test images (images are numbered from (1) to (12) in order of left-to-right and topto-bottom) 4. RESULTS AND DISCUSSION Results from the described in Section II demosaicing algorithms for Baer and PRB CFAs, applied over both tpes test images are shown in Figs. 4-8. For objective metric PSNR is used. Although, this approach is not directl connected with the human visual sstem, it is widel used because of eas interpretation of results. 4.1. Artifacts evaluation (visual comparison) In Fig. 4 some of the basic shortcomings of demosaicing algorithms are shown (Test image 9 ): zipper effect, corrode effect, blurring, and isolated bright dots. Zipper effect (fringe artifact) appears when it is interpolated around edges, where the color leap is abrupt. In this case, the edges look like zipper or colored fringes of a carpet. The effect is most visible in Tsai-Achara (T-A) interpolation for both filters, but it can be found in the Freeman s method as well. In Kimmel interpolation for Baer filter, small blurring (smoothing) of image is observed. Kimmel for PRB introduces a few false bright dots. Corrode effect, described in [4], can also be observed here. Wenmiao method gives best results for both filters. 136

Fig. 4: Region of interest (ROI) of test image 9. Images are numbered from (a) to (h) in order of left-to-right and top-to-bottom: (a) Freeman for Baer; (b) Freeman for PRB; (c) Kimmel for Baer; (d) Kimmel for PRB; (e) Wenmiao for Baer; (f) Wenmiao for PRB; (g) Tsai-Achara for Baer; (h) Tsai-Achara for PRB. When there is smoothing transitions (Test image 2 ) most of the algorithms, except Kimmel for PRB and T-A for both filters, interpolate ver well. Since the diagonal top-left to bottom-right in PRB filter is not well balanced with blue and red color (Fig. 1c), theoreticall the number of artifacts there should be maximal. Exactl the same effect (green-blue diagonal), is strongl expressed visuall as well in Kimmel and T-A interpolations (Fig. 5a, b). In Wenmiao (Fig. 5c), this effect is almost missing. In the center of the star (Test image 1, Fig. 5d-f), where there is a high spatial frequenc, all algorithms introduce another demosaicing effect aliasing. Between the individual parts of the star, zipper effect in Freeman and T-A interpolations for Baer filter, and T-A for PRB is observed. Such effect is missing in Wenmiao interpolation for both filters. Fig. 5: Green-blue diagonal effect and aliasing. Images are numbered from (a) to (f) in order of left-toright (a)-(c) ROI of test image 2 : Kimmel, Tsai-Achara and Wenmiao for PRB; (d)-(f) ROI of test image 1 : Tsai-Achara for Baer and PRB, Wenmiao for PRB. For Test image 11 Kimmel s algorithm introduce another effect for both filters posterization replacement of big parts in the images with one homogeneous color (Fig. 6b, c). Such an effect is caused from the incorrect reconstruction of the green color component in the ellow areas of the image. Fig. 6: Posterization effect. Images are numbered from (a) to (d) in order of left-to-right. ROI of test image 11 : (a) original; (b) Kimmel for Baer; (c) Kimmel for PRB; (d) Wenmiao for PRB. 137

4.2. PSNR evaluation (objective comparison) For Baer filter Wenmiao s algorithm outperforms the other algorithms (Fig. 7a). Similar results can be seen, appling Freeman s algorithm, as it is in the case of Test image 3 where the results are better than in the rest of algorithms. Freeman s algorithm performs poorl when the images contain a lot of horizontal or vertical stripes, or regular structure (Test images 4,5,6,9 ) because it first performs a linear interpolation for green channel, which is a blur process. Kimmel s and Tsai-Achara algorithms show approximatel the same results, as both don t cope well with the vector images. (a) (b) Fig. 7: Average PSNR-RGB values for each test image (a) Baer CFA; (b) PRB CFA For PRB filter Freeman s algorithm works better than the other algorithms (Fig. 7b). This fact could be explained with the easier adaptation of this algorithm to the structure of PRB filter the unbalanced top-left to bottom-right diagonal in PRB filter has no influence over the interpolation. On the other hand, for Test images 4,6,9 Wenmiao s algorithm has better PSNR (for the same reasons, mentioned above). Comparing the results, obtained from Baer and PRB filters over the all experimental image data set, for onl two images (Test image 4 for Freeman algorithm and Test image 6 for Tsai-Achara algorithm), PRB filter works better. The main reason is that those algorithms are not speciall designed for PRB, but are onl adapted to it. (a) (b) Fig. 8: Timing results for test images 1-6 (a) Baer CFA; (b) PRB CFA 4.3. Computation time evaluation Timing tests were performed on a 2.0GHz Intel Core2 Duo T7250 processor, RAM 2038 MB. The learned interpolation algorithms have been compared and the results for 138

Test images 1-6 are presented on Fig. 8. The Tsai-Achara algorithm is faster, in contrast to the Kimmel s algorithms, which is the slowest, because of the final post processing (correction) stage, which performs 3 times. For Baer CFA, the Freeman s algorithm is slightl faster than the Wenmiao s algorithm. It is interesting to note that Kimmel s algorithm, adapted for PRB filter, works faster with all of the test images than its original version for Baer filter. 5. CONCLUSION Our results show that despite the unbalanced structure along one of the diagonals of PRB filter and the most complicated developing approach, it is able to reconstruct the images as good as the original Baer filter, especiall for Freeman interpolation. Consequentl, when using algorithms, speciall created to take into account the specifics of this filter s structure, as well as in modifing others well known demosaicing algorithms, such filter could be used successfull in real practice. ACKNOWLEDGMENTS This paper is partiall supported b the Bulgarian Ministr of Education and Science under grants VU-MI-204/06. 6. REFERENCES [1] Baer, B., Color imaging arra, U.S. Patent No.: 3,971,065, Eastman Kodak Compan, Jul 20, 1976. [2] Ramanath, R., Snder, W.E., Bilbro, G.L., and Sander, W.A. III, Demosaicing methods for Baer color arras, J. Electron. Imaging, vol. 11, no. 3, pp. 306-315, Jul 2002. [3] Gunturk, B.K., Glotzbach, J., Altunbasak, Y., Schafer, R.W., Mersereau, R.M., Demosaicing: Color filter arra plane interpolation, IEEE Signal Processing Magazine, vol. 22, no. 1, pp. 44-54, Jan. 2005. [4] Zapranov, G., Nikolova, I., "Demosaicing Methods for Pseudo-Random Baer Color Filter Arra", pp. 687-692, Annual Workshop on Circuits, Sstems and Signal Processing, ProRISC'2005, November 17-18, 2005, Veldhoven, the Netherlands. [5] Freeman, W., Median Filter For Reconstructing Missing Color Samples, US Patent 4,724,395, Cambridge, 1988. [6] Cok, D., Signal processing method and apparatus for producing interpolated chrominance values in a sampled color image signal, U.S. Patent No.: 4,642,678, Eastman Kodak Compan, Feb. 10, 1987. [7] Kimmel, R., Demosaicing: image reconstruction from CCD samples, IEEE Trans. Image Processing, vol. 8, no. 9, pp 1221-1228, 1999. [8] Tsai, P.-S., Achara, T., Ra, A., Adaptive Fuzz Color Interpolation, Journal of Electronic Imaging Vol. 11(3), Jul 2002 [9] Wenmiao, L., Lu, Y., Tan, Y., Color Filter Arra Demosaicking: New Method and Performance Measures, IEEE Transactions on image processing, Vol. 12, No. 10, Oct. 2003. 139