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

Similar documents
Demosaicing Algorithms

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)

An Improved Color Image Demosaicking Algorithm

Color Filter Array Interpolation Using Adaptive Filter

Edge Potency Filter Based Color Filter Array Interruption

AN EFFECTIVE APPROACH FOR IMAGE RECONSTRUCTION AND REFINING USING DEMOSAICING

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

Color image Demosaicing. CS 663, Ajit Rajwade

Artifacts Reduced Interpolation Method for Single-Sensor Imaging System

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

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

Analysis on Color Filter Array Image Compression Methods

Interpolation of CFA Color Images with Hybrid Image Denoising

Practical Implementation of LMMSE Demosaicing Using Luminance and Chrominance Spaces.

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

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

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

COLOR demosaicking of charge-coupled device (CCD)

Color Demosaicing Using Variance of Color Differences

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

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

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

Evaluation of a Hyperspectral Image Database for Demosaicking purposes

Demosaicing Algorithm for Color Filter Arrays Based on SVMs

COLOR DEMOSAICING USING MULTI-FRAME SUPER-RESOLUTION

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

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

Lecture Notes 11 Introduction to Color Imaging

NOVEL COLOR FILTER ARRAY DEMOSAICING IN FREQUENCY DOMAIN WITH SPATIAL REFINEMENT

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

Two-Pass Color Interpolation for Color Filter Array

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

Introduction. Prof. Lina Karam School of Electrical, Computer, & Energy Engineering Arizona State University

MOST digital cameras capture a color image with a single

IN A TYPICAL digital camera, the optical image formed

Design of practical color filter array interpolation algorithms for digital cameras

THE commercial proliferation of single-sensor digital cameras

Smart Interpolation by Anisotropic Diffusion

Lecture 2: Digital Image Fundamentals -- Sampling & Quantization

An Effective Directional Demosaicing Algorithm Based On Multiscale Gradients

Image Interpolation Based On Multi Scale Gradients

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

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

IMPROVEMENTS ON SOURCE CAMERA-MODEL IDENTIFICATION BASED ON CFA INTERPOLATION

PCA Based CFA Denoising and Demosaicking For Digital Image

Sampling Efficiency in Digital Camera Performance Standards

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

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

EMVA1288 compliant Interpolation Algorithm

Universal Demosaicking of Color Filter Arrays

Denoising and Demosaicking of Color Images

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

VLSI Implementation of Impulse Noise Suppression in Images

DEMOSAICING, also called color filter array (CFA)

An Efficient DTBDM in VLSI for the Removal of Salt-and-Pepper Noise in Images Using Median filter

Demosaicing and Denoising on Simulated Light Field Images

digital film technology Resolution Matters what's in a pattern white paper standing the test of time

Joint Chromatic Aberration correction and Demosaicking

Image Processing for feature extraction

Practical Content-Adaptive Subsampling for Image and Video Compression

Improvements of Demosaicking and Compression for Single Sensor Digital Cameras

A Study of Slanted-Edge MTF Stability and Repeatability

Multi-sensor Super-Resolution

Vision Review: Image Processing. Course web page:

No-Reference Perceived Image Quality Algorithm for Demosaiced Images

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

Digital Cameras The Imaging Capture Path

Image Demosaicing: A Systematic Survey

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

Target detection in side-scan sonar images: expert fusion reduces false alarms

Double resolution from a set of aliased images

Moving Object Detection for Intelligent Visual Surveillance

Image and Video Processing

VISUAL sensor technologies have experienced tremendous

Compressive Sensing Multi-spectral Demosaicing from Single Sensor Architecture. Hemant Kumar Aggarwal and Angshul Majumdar

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

The Necessary Resolution to Zoom and Crop Hardcopy Images

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

Local Linear Approximation for Camera Image Processing Pipelines

Image Interpolation. Image Processing

Image Scaling. This image is too big to fit on the screen. How can we reduce it? How to generate a halfsized

DIGITAL color images from single-chip digital still cameras

COLOR FILTER PATTERNS

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

PERFORMANCE ANALYSIS OF LINEAR AND NON LINEAR FILTERS FOR IMAGE DE NOISING

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

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

International Journal of Scientific & Engineering Research, Volume 7, Issue 2, February-2016 ISSN

Detection and Verification of Missing Components in SMD using AOI Techniques

A DUAL TREE COMPLEX WAVELET TRANSFORM CONSTRUCTION AND ITS APPLICATION TO IMAGE DENOISING

Defense Technical Information Center Compilation Part Notice

Chapter 4 SPEECH ENHANCEMENT

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Filters. Materials from Prof. Klaus Mueller

Recent Patents on Color Demosaicing

Image Enhancement in Spatial Domain

Spatially Adaptive Color Filter Array Interpolation for Noiseless and Noisy Data

Poisson Noise Removal for Image Demosaicing

Transcription:

Color filter arrays revisited - Evaluation of Bayer pattern interpolation for industrial applications Matthias Breier, Constantin Haas, Wei Li and Dorit Merhof Institute of Imaging and Computer Vision RWTH Aachen University Aachen, Germany Email: mb@lfb.rwth-aachen.de Abstract Modern industrial cameras mainly use the Bayer pattern as color filter array (CFA). However, this filtering limits the resolution of the color space. As interpolation methods cannot reconstruct the original image perfectly, they have to be optimized for a specific application. Therefore, the interpolation should match the purpose of the image processing system. Many standard algorithms are optimized for the subjective impression of a human observer which is not necessarily ideal for industrial applications. This paper introduces a new methodology for evaluating interpolation algorithms in industrial applications. For this purpose, a new dataset based on printed circuit boards as representatives for objects in industrial application is introduced. It shows many distinct features which are typical for industrial scenarios such as high contrast object edges, highly reflective materials and low variety of surface colors. Furthermore, two new error measures based on edge accuracy are presented which are tailored to many measurement tasks which employ edges. It can be shown in an evaluation of common CFA interpolation algorithms that these new error measures are better suited to identify the best interpolation algorithm for retaining edge accuracy than conventional error measures. contributions: First of all, a new data set based on images of printed circuit boards (PCBs) is created, which covers several features of industrial scenarios. This is detailed in Section II. Furthermore, the evaluation results of eight interpolation algorithms on our newly introduced data set are presented. CFA interpolation algorithms can be categorized into heuristic methods, edge oriented methods, Fourier based methods and wavelet based methods [3]. The evaluated algorithms cover all aforementioned groups and are presented in Section III. Finally, we present a new error measure assessing the accuracy of the position of edges after interpolation as edges are widely used features especially in measurement applications. I. INTRODUCTION AND RELATED WORK For industrial applications the use of color cameras has become more widespread in the last decade as color is a valuable source for distinct image features. Due to lower production costs cameras with single sensor chips predominate the market of industrial cameras. They apply color filter arrays (CFA) in front of the light sensitive CCD or CMOS sensor pixels to sample the frequency space of the incident light rays. Nearly all CFAs are implemented employing the scheme presented by Bryce E. Bayer [1] as shown in Figure 1. Due to the spatial subsampling of color information an interpolation step - also known as demosaicing - is necessary to reconstruct color information at each sensor pixel for full resolution images. This interpolation is not perfect as the Nyquist condition is violated in most image acquisition scenarios (e.g. sharp edges on object contours). To minimize the impact of reconstruction errors, the interpolation scheme has to be optimized for a specific application. Optimization criteria frequently applied in literature are the perceived image quality and the reconstruction error in natural scenes. Most algorithms were evaluated on image data sets such as the Kodak Photo CD and the more recent McMaster or IMAX dataset []. To our knowledge scenes appearing in industrial applications have not been properly addressed so far. This paper comprises the following Fig. 1: Illustration of Bayer CFA. One segment is highlighted which illustrates the combination of CFA pixels to create a reference image (see Section II) II. SYSTEM AND IMAGE DATA There are several image datasets commonly used for evaluating interpolation algorithms. The Kodak Photo CD dataset consists of example images taken from a promotional Photo CD by Kodak. These images were acquired with analog film material and then digitized with a Kodak photo scanner. Thus, no CFA was present at acquisition time. This dataset is rather old, thus the images do not represent the current camera

technology. Another frequently used dataset is the IMAX high quality dataset (also known as McMaster dataset) [] which contains 18 images with more details than in the Kodak dataset. Algorithms optimized for the Kodak Dataset may show suboptimal results for the McMaster dataset. Especially the constant hue assumption (see Section III) does not hold for the McMaster dataset. Images in both aforementioned datasets depict everyday scenes which are common in consumer scenarios. In contrast, scenes in industrial applications differ significantly, as they contain only few objects which have to undergo inspection for measurements and quality control. These objects often have sharp edges, metallic surfaces and a limited variety of surface colors. To evaluate the CFA interpolation quality in these scenes other image datasets are needed which reflect the requirements of industrial applications. Thus, we introduce a new dataset which meets the aforementioned requirements. This dataset comprises 18 images of printed circuit boards (PCBs) as they contain many features which are common in many industrial scenes (e.g. box-like structures, sharp edges, metallic surfaces and homogeneous areas). The images were acquired by a 5 mega pixel RGB camera (Baumer TXG50c). The TXG50c is a single sensor chip camera equipped with a Bayer CFA. Thus, the acquired images cannot be employed directly to evaluate the interpolation quality. For obtaining reference images, the images are downsampled to compensate for the subsampling of the CFA images as described by Kashabi et al. []. For this purpose, the raw CFA image is divided into square regions with three pixel edge length (see Figure 1 for illustration). In each region the values of the sensor elements of each color are averaged and combined to form a single pixel with all three components and, thus, forming the subsampled image. A low pass filter step can be omitted as most digital cameras are equipped with an optical low pass filter. The remaining aliasing is negligibly small. For the evaluation of the interpolation algorithms, the image acquisition with Bayer CFA has to be emulated. Therefore, images of each data set have to be stripped of two of the three color components at each pixel according to the CFA configuration. These CFA images form the input of the interpolation algorithms. The results are then compared to the original images. For further details for the evaluation process, see Section V. See Figure dataset examples. The PCB dataset can be downloaded from our website 1. III. METHODS Due to the CFA each sensor pixel carries only the information of a single color channel. Thus, the missing color information has to be reconstructed to obtain the complete full color image. Unfortunately, a perfect reconstruction is not possible in nearly all cases because of the subsampling of the color information and the violation of the Nyquist criterion. Therefore, only an approximation of the original information can be achieved. There are many approaches in 1 www.lfb.rwth-aachen.de/research/industrial/platinenrecycling/ a b c d e f g h i Fig. : Examples for datasets: First row Kodak, second row McM and third row PCBs literature for CFA interpolation. An overview can be found in the survey papers by X. Li, B. Gunturk and L. Zhang [5] and by D. Menon and G. Calvagno [3]. These approaches can be grouped in four categories: heuristic methods, edge-oriented methods, Fourier-based methods and wavelet-based methods. In the following, the evaluated algorithms, which cover all these categories, are presented. A. Heuristic methods The most basic interpolation methods do not consider the inter-channel correlations and only interpolate the missing values in each channel based on the neighboring values. More sophisticated algorithms make general assumption about the content of the images such as the constant hue condition (the hue changes only slowly between adjacent pixels) to use also information from other color channels. These algorithms do not adapt to the content of the images to interpolate, though. Thus, they may be called heuristic. In the following the pixel values of the red channel are denoted r(x, y, the values of the blue channel b(x, y) and the values of the green channel g(x, y) where x an y are the pixel coordinates. 1) Bilinear interpolation: The bilinear interpolation was added to the evaluation to include a classical approach as benchmark. All other algorithms should outperform the bilinear interpolation as it interpolates each color channel separately. For the green channel it is calculated by g(x 1, y) + g(x + 1, y) + g(x, y 1) + g(x, y + 1) g(x, y) = (1) The red channel at green CFA pixel positions is calculated by { r(x 1,y),r(x+1,y) r g (x, y) =, if y is even r(x,y 1),r(x,y+1) (), if y is odd

while the red channel at blue CFA pixels is calculated by r b (x, y) = 1 (r(x 1, y 1) + r(x + 1, y 1)+ r(x 1, y + 1) + r(x + 1, y + 1)) The blue channel is calculated analogously. ) Constant Hue Based: One of the first algorithms employing the correlation between the color channels is the one by D.Cok [6]. The basic assumption here is, that the color ratios (hue) are constant or change only slightly in an image. The first step here is the interpolation of the green channel by employing bilinear interpolation. Then, the color ratios H r and H b at the positions where red respectively blue values are present in the CFA image are calculated by (3) H r (x, y) = r(x, y)/g(x, y) () H b (x, y) = b(x, y)/g(x, y) (5) In the next step the missing color ratio values are interpolated by using bilinear interpolation. Finally, the actual red and blue values are calculated by multiplying every color ratio with the green value at each position. 3) Improved Linear Interpolation: H.S. Malvar et al. [7] presented an improved linear interpolation approach extending the classical bilinear interpolation by employing the gradient between adjacent pixels. The idea behind this extension is that the luminance (i.e. the green values) is much more influenced by edges than the chrominance (i.e. the red and blue values). Thus, the information of blue and red pixels at positions where the green pixels have to be interpolated is still useful to obtain the real luminance values at these position. Therefore, the actual value of the current red (respectively) blue pixel is compared to the bilinear interpolation of its nearest neighbors. If both values differ this pixel lies probably on an edge. This difference is employed by modifying the interpolation of the green value by ĝ(x, y) = ĝ B + α r (x, y) (6) where the subscript B means bilinearly interpolated, α is the gain parameter controlling the influence of α r (x, y) which is the gradient of r(x, y) at that location which is computed by r (x, y) = r(x, y) 1 r(x + i, y + j) (7) where (i,j) S S = {(0, ), (0, ), (, 0), (, 0)}. (8) This idea is also employed for the other pixel colors accordingly. ) Effective color interpolation in CCD color filter arrays using signal correlation: S.-C. Pei and I.-K. Tam propose an algorithm [8] also employing the correlation between the color channels. In contrast to the by D.Cok [6] all channels are interpolated without interpolating the green channel first. Instead, a difference color space is introduced: K R (x, y) = g(x, y) r(x, y) (9) K B (x, y) = g(x, y) b(x, y) (10) At each position only one component of K R and K B is available. The missing component has to be interpolated: { g(x, y) r(x 1,y),r(x+1,y) K R (x, y) =, if y is even g(x, y) r(x,y 1),r(x,y+1), if y is odd (11) The calculations for K B are similar. The innovation of this algorithm in comparison to algorithms such as the one by Cok is the use of other channels to interpolate the green channel. For example the green interpolation at a red CFA pixel is obtained as follows: g r (x, y) = r(x, y) + 1 (K R(x 1, y 1) + K R(x + 1, y 1)+ K R(x 1, y + 1) + K R(x + 1, y + 1)) (1) where K R denotes the interpolated value. The interpolation of blue and red channels is computed accordingly. B. Edge-oriented methods The next category of interpolation algorithms employs image edges to facilitate the demosaicing. Classical interpolation algorithms such as bilinear interpolation produce artifacts especially on edges in images because of the violation of the Nyquist criterion. Thus edge-oriented algorithms adapt to the local edge direction. 1) Highly effective iterative demosaicing using weightededge and color-difference interpolations: The algorithm presented by C.-Y. Su [9] works iteratively. In the initialization stage the green channel is filled by a weighted, edge oriented interpolation. At each blue or red CFA pixel position the vertical and horizontal gradients are calculated combining the first order derivatives of the green channel and the second order derivatives of the blue and red channel respectively. Depending on the highest gradient value the interpolation is only calculated orthogonal to the gradient to retain sharp edges in the green channel. In the refinement stage the blue and red channels are filled by employing the same difference color space as in algorithm by Pei [8]. In contrast to the latter, the green channel is already completely filled and is employed directly to interpolate the difference colors bilinearly. In the last step of the refinement stage the values of the green channel at red and blue positions are updated by using the difference colors at these positions. In the end of the refinement stage all color channels are completely filled. In the iteration stage, the interpolation results in all channels are optimized iteratively. The stop condition is the variance of the difference between each iteration step for each color channel. If the variance is below a threshold in all three color channels, the iteration stops. In each iteration steps the difference color interpolation described in the refinement stage are repeated.

) Contour Stencils: P. Getreuer introduced contour stencils [10] to the domain of CFA interpolation. [11] Here, the idea is to find curves which minimize the total variation T T V (C) := t u(γ(t)) dt (13) 0 where u(γ) is the image, γ(t), 0 t T parametrizes the curve C. If the data is interpolated along the curve with minimal total variation the interpolation error is minimized. Contour stencil is the discrete approximation of a set of parallel curves which have very similar total variation values. Each stencil encodes a scheme for interpolation directions. Thus, the aim is to find the stencil with the lowest total variation to get the best interpolation directions for each image part. C. Fourier-based method Fourier based methods employ the frequency characteristics of the subsampling scheme of the Bayer CFA. The basic idea is that the amount of aliasing in the green channel is lower than in the red and blue channels. Thus, for reconstructing the image, high frequency information of the green channel is used to enrich the spectrum of the red and blue channels and, thus, to reduce aliasing artifacts. As representative for the Fourier based methods the algorithm by D. Alleysson et al. [1] was included in the evaluation. This algorithm was inspired by the human visual system. It is based on a color space with one luminance and two chrominance components. Alleysson observed that the chrominance and luminance are at different locations in the frequency domain due to the subsampling of the Bayer CFA. The algorithm basically calculates the luminance information at every pixel position, subtracts it from the three demultiplexed color channels, which are then interpolated bilinearly. The luminance information is then added to the interpolation results again. [3] D. Wavelet based method The effects of the Bayer CFA in the frequency domain can be also exploited in the wavelet framework. As representative for the wavelet based methods the algorithm by K.Hirakawa et al. [13] was included in the evaluation. This algorithm employs the second order wavelet transform on the subsampled image which is composed out of the green channel and two difference images between green and red and green and blue respectively. The difference images show a strong decay of information in high frequencies in contrast to the green channel. Thus, by combining the high frequency filter responses of the green channel with the low frequency filter responses of difference channels, the complete image can be reconstructed with reduced reconstruction errors. IV. EVALUATION To evaluate the quality of the CFA interpolation algorithms, the reconstructed images are compared to the images without CFA filtering as described in Section II. In literature, the most employed error measure is the color mean squared error 1 CMSE := ((Îc(m, n) I c (m, n)) (1) 3 w h m,n c r,g,b where w and h are the width and height, respectively, of the original image I and the interpolated version ˆ(I c ),c indicating the color channel. The CMSE is a formulation for the interpolation error energy. For industrial applications the measurement of image features is of great importance. Especially edges are the basis for many subsequent analysis steps in measurement and quality control applications. The accuracy of these algorithms relies particularly on the accuracy of edge detection. Therefore, we present an error measure evaluating the accuracy of edge detection in the reconstructed images compared to the original images. Our error measure is based on the results of the classical edge detection algorithm by Canny [1]. The results of edge detection with Canny s algorithm are binary images in which the edges are marked. These binary images are compared pixel-wise with the XOR operator. Differences are regarded as interpolation errors. Often, only grayscale images are used for edge detection. Therefore, the (interpolated) color image is converted to grayscale, first. To measure errors in grayscale image edge detection caused by interpolation we define the edge oriented error based on the ratio of wrong detected edge pixel to the global number of correct edge pixel. This is defined by Ie EOE := Îe (15) Ie where I e and Îe are the binary edge images of the original image and the interpolated image (both grayscale), respectively. CFA interpolation can cause color fringes. This effect can be measured by an extension of the EOE, the color edge oriented error (Ie,r I e,g I e,b ) (Îe,r EOE c := Îe,g Îe,b) 3 (16) I e where I e,c and Îe,c with c r, g, b are the binary edge image and the interpolated binary edge image, respectively, of the three color channels, where each image is connected with the logical OR operator. V. RESULTS AND DISCUSSION The interpolation results were evaluated employing the error measures detailed in Section IV. An example illustrating the interpolation results for the PCB dataset is shown in Figure 3. Blurred edges and fluctuating colors are noticeable at the characters and the edge of the golden clock socket, especially for bilinear interpolation, effective color interpolation and Fourierbased interpolation. Nevertheless, the subjective impression of the interpolation results is relatively similar. However, there are differences which have an impact on the edge interpolation accuracy, as can be seen in the error measure results. The resulting error measurements are illustrated in Figures, 5 and 6.

1 3 5 6 7 8 9 Fig. 3: Interpolation example. The area marked with a red square is enlarged in the right figure. (1) Original - () Constant Hue - (3) Fourier-based Interpolation - () Effective Color Interpolation - (5) Contour Stencils - (6) Iterative Weighted Edge (7) Bilinear - (8) Improved Linear Interpolation - (9) Wavelet-based Interpolation The interpolation algorithms are sorted in ascending order with respect to the median error of the PCB dataset. As illustrated in Figure for the color mean square error (CMSE) the interpolation quality is not always consistent for all datasets. Especially for Fourier-based interpolation, iterative weighted edge and contour stencils the results differ between datasets. Therefore, a problem domain specific evaluation should always be conducted to find the best interpolation algorithm for each application(e.g. on our PCB dataset). In our comparison, the contour stencil algorithm performs best for all datasets with CMSE as criterion. Still, contour stencils have comparatively high computational complexity and, thus, may be not the first choice for time critical industrial applications. The CMSE compares each pixel of the original image with the interpolated image. Therefore, the CMSE is biased in favor of large areas without any or only with little structure. For industrial applications, edges are particularly important as they are the basis for many measurement tasks. Thus, the reconstruction of image edges should be as accurate as possible. The edge oriented error (EOE) addresses this issue by specifically comparing the edge detection results of the interpolated image with the result of the original image. The results of this error measure are presented in Figure 5 for gray-scale edge detection and in Figure 6 for edge detection in each color channel. It can be seen that the results differ significantly from the CMSE results. While the CSME results are nearly consistent for all datasets, the EOE shows different outcomes for each dataset. The images of the PCB dataset show very distinctive structures with high contrast edges. It can be seen that the algorithms which perform better to retain edge accuracy do not necessarily perform best with respect to the overall interpolation performance measured by Color Mean Square Error Kodak Data Set : images. McM Data Set : 18 images. PCB Data Set : 18 images. Contour Stencils Iterative Weighted Edge Effective Color Interpolation Improved Linear Interpolation Fourier-based Interpolation Wavelet-based Interpolation Constant Hue Bilinear 0 5 10 15 0 5 30 35 0 5 Fig. : CMSE of interpolation results the CMSE. However, for industrial applications they may still be the algorithm of choice due to computational complexity. In the case of both EOE measures effective color interpolation performs best. Still, several other algorithms perform similarly well. Thus, algorithms with lower computational complexity may be chosen without the risk of a suboptimal interpolation performance. The choice between EOE and EOEC depends on

Effective Color Interpolation Contour Stencils Constant Hue Iterative Weighted Edge Fourier-based Interpolation Improved Linear Interpolation Edge Oriented Error Measure Grayscale Kodak Data Set : images. McM Data Set : 18 images. PCB Data Set : 18 images. VI. CONCLUSION In this paper we presented an evaluation of Bayer CFA interpolation algorithms on commonly employed datasets (Kodak and MCM) as well as on a newly introduced dataset depicting PCBs as representatives for objects in industrial applications. Additionally, we presented two new error measures which are based on edge accuracy and, thus, are tailored to industrial applications, as edges are the predominant features for many measurement tasks. We showed that, if edge accuracy is the most important feature for a specific application, several state of the art interpolation algorithms show similar performance, thus, criteria such as computational complexity may guide the decision for an application specific CFA interpolation algorithm. Our new error measures facilitate this process and should be added to any CFA interpolation evaluation. Wavelet-based Interpolation Bilinear Effective Color Interpolation Improved Linear Interpolation Iterative Weighted Edge Contour Stencils Fourier-based Interpolation Wavelet-based Interpolation 0.0 0.1 0. 0.3 0. 0.5 0.6 0.7 Fig. 5: EOE of interpolation results Constant Hue Bilinear Edge Oriented Error Measure Colorscale Kodak Data Set : images. McM Data Set : 18 images. PCB Data Set : 18 images. 0.1 0. 0.3 0. 0.5 0.6 0.7 Fig. 6: EOE c of interpolation results the next processing steps of the measurement algorithm of the respective application. If further processing is performed on a gray-scale converted image, then EOE is the error measure of choice. Otherwise, EOE C is a good measure for edge accuracy after interpolation for algorithms employing all three color channels. REFERENCES [1] N. Bayer, Bryce E. (Rochester, Color imaging array, Patent 3 971 065, July, 1976. [Online]. Available: http://www.freepatentsonline.com/ 3971065.html [] L. Zhang, X. Wu, A. Buades, and X. Li, Color demosaicking by local directional interpolation andnonlocal adaptive thresholding, Journal of Electronic Imaging, vol. 0, no., pp. 03 016 03 016 16, 011. [Online]. Available: http://dx.doi.org/10.1117/1.360063 [3] D. Menon and G. Calvagno, Color image demosaicking: An overview, Signal Processing: Image Communication, vol. 6, no. 89, pp. 518 533, 011. [Online]. Available: http://www.sciencedirect.com/science/ article/pii/s09359651100015 [] D. Khashabi, S. Nowozin, J. Jancsary, and A. Fitzgibbon, Joint Demosaicing and Denoising via Learned Nonparametric Random Fields, Image Processing, IEEE Transactions on, vol. 3, no. 1, pp. 968 981, Dec 01. [5] Image demosaicing: a systematic survey, vol. 68, 008. [Online]. Available: http://dx.doi.org/10.1117/1.766768 [6] D. Cok, Signal processing method and apparatus for producing interpolated chrominance values in a sampled color image signal, Feb. 10 1987, us Patent,6,678. [Online]. Available: https: //www.google.com/patents/us6678 [7] H. Malvar, L.-W. He, and R. Cutler, High-quality linear interpolation for demosaicing of Bayer-patterned color images, in Acoustics, Speech, and Signal Processing, 00. Proceedings. (ICASSP 0). IEEE International Conference on, vol. 3, May 00, pp. iii 85 8 vol.3. [8] S.-C. Pei and I.-K. Tam, Effective color interpolation in CCD color filter arrays using signal correlation, Circuits and Systems for Video Technology, IEEE Transactions on, vol. 13, no. 6, pp. 503 513, June 003. [9] C.-Y. Su, Highly effective iterative demosaicing using weighted-edge and color-difference interpolations, Consumer Electronics, IEEE Transactions on, vol. 5, no., pp. 639 65, May 006. [10] P. Getreuer, Contour stencils for edge-adaptive image interpolation, vol. 757, 009, pp. 75 718 75 718 13. [Online]. Available: http://dx.doi.org/10.1117/1.80601 [11] P. Getreuer, Color demosaicing with contour stencils, in Digital Signal Processing (DSP), 011 17th International Conference on, July 011, pp. 1 6. [1] D. Alleysson, S. Susstrunk, and J. Herault, Linear demosaicing inspired by the human visual system, Image Processing, IEEE Transactions on, vol. 1, no., pp. 39 9, April 005. [13] K. Hirakawa, X.-L. Meng, and P. Wolfe, A Framework for wavelet- Based Analysis and Processing of Color Filter Array Images with Applications to Denoising and Demosaicing, in Acoustics, Speech and Signal Processing, 007. ICASSP 007. IEEE International Conference on, vol. 1, April 007, pp. I 597 I 600. [1] J. Canny, A Computational Approach to Edge Detection, Pattern Analysis and Machine Intelligence, IEEE Transactions on, vol. PAMI-8, no. 6, pp. 679 698, Nov 1986.