Next Article in Journal
Experimental and Simulation Identification of Xanthohumol as an Inhibitor and Substrate of ABCB1
Previous Article in Journal
Experimental Study of Ground Subsidence Mechanism Caused by Sewer Pipe Cracks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Effective Directional Residual Interpolation Algorithm for Color Image Demosaicking

School of Mechanical, Electrical and Information Engineering, Shandong University, Weihai 264209, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2018, 8(5), 680; https://doi.org/10.3390/app8050680
Submission received: 12 March 2018 / Revised: 20 April 2018 / Accepted: 21 April 2018 / Published: 26 April 2018

Abstract

:
In this paper, we propose an effective directional Bayer color filter array (CFA) demosaicking algorithm based on residual interpolation (RI). The proposed directional interpolation algorithm aims to reduce computational complexity and get more accurate interpolated pixel values in the complex edge areas. We use the horizontal and vertical weights to combine and smooth color difference estimations. Compared with four directional weights in minimized Laplacian residual interpolation, the proposed algorithm not only guarantees the quality of color images but also reduces the computational complexity. Generally, the directional estimations may be inaccurately calculated because of the false edge information in irregular edges. We alleviate it by using a new method to calculate the directional color difference estimations. Experimental results show that the proposed algorithm provides outstanding performance compared with some previous algorithms, especially in the complex edge areas. In addition, it has lower computational complexity and better visual effect.

Graphical Abstract

1. Introduction

In recent years, many more people choose digital cameras to take pictures. Each digital color image needs at least three color samples at each pixel. To achieve the requirement, cameras have to set three sensors to get red (R), green (G), and blue (B) components at each pixel. However, in view of equipment costs, there is only one signal sensor set at each pixel. The sensors compose a color filter array (CFA). The CFA needs only one color to be observed and the other two missing colors can be estimated at each pixel. The process of estimation is called demosaicking [1]. The method effectively reduces the density of the sensors.
Bayer pattern CFA [2] is the most common pattern for CFA, as shown in Figure 1. The G pixels are estimated on a quincunx grid, while R or B pixels are estimated on a rectangular grid in Bayer pattern CFA. The density of G pixels is as twice as that of R or that of B in Bayer pattern CFA, because the peak sensitivity of human visual system (HVS) lies in the wavelength of G light.
For the original Bayer pattern CFA, the commonly used demosaicking algorithms include the nearest neighbor interpolation [3], bilinear interpolation [4], and bicubic interpolation [5]. These demosaicking algorithms generate the other two missing colors at each pixel with linear averaging color pixel values. They can be widely applied in a real-time system because of the lower computational complexity. However, they have significant zipper artifacts around line edges in demosaicking images.
To solve this problem, several demosaicking algorithms [6,7,8] have been proposed. Malvar [6] proposed a high-quality linear interpolation algorithm for CFA demosaicking. It presents a simple linear demosaicking filter that has better performance and lower computational complexity. Many previous demosaicking algorithms are based on inter-channel color difference interpolation. For instance, Yu [7] proposed a novel demosaicking algorithm exploiting joint intra-channel color correlation and inter-channel color difference, but it does not perform well enough when images have sharp color transition areas. Normally, G pixel values are first interpolated in most Bayer pattern CFA demosaicking algorithms, since the density of G pixel is as twice as that of R or that of B. On the contrary, Zhang et al. [8] proposed a novel demosaicking algorithm that estimated two independent chrominance components (R and B). Then they estimated the luminance component (G). As a result, the demosaicking algorithm can avoid the associated estimation error.
Although the above mentioned nonadaptive algorithms [6,7,8] have lower computational complexity for the CFA, most of them perform color directional interpolation based on the estimated gradient. However, the gradient estimations of the methods may not be robust in texture areas and edges. Based on the directional linear minimum mean square-error estimation (DLMMSE) framework, Zhang and Wu [9] proposed an adaptive algorithm to improve the problem. They assumed that the primary difference signals between G and R or G and B channels are low-pass. In both horizontal and vertical directions, the missing G pixel values are adaptively estimated by DLMMSE. Some demosaicking algorithms provide novel contributions such as square-on-point neighborhood and lattice variables [10]. In [10], a corrective term and localized polling were used to improve the performance of the reconstructed images. However, the corrective term is empirically derived. Shi et al. [11] demonstrated that the input image is divided into two different area types and each type adopts different interpolation respectively. In edge areas, they recovered edge information with weights by using multidirectional components. The demosaicking algorithm has the advantages of region adaptation. Chen and Chang [12] detected edge characteristics by comparing color difference in horizontal and vertical directions. Then they used different weighted interpolation to effectively reduce the color artifacts at the edge of the image and enhance the image quality. Pekkucuksen and Altunbasak [13] exploited an orientation-free edge strength filter to estimate edge information, and applied it to reconstruction process. However, the demosaicking algorithm failed in utilizing spectral correlation.
To solve this problem, Tsai and Song [14] proposed a novel edge-adaptive demosaicking algorithm, which reduces the aliasing error in R and B channels by exploiting high-frequency information of the G channel. Adams and Hamilton [15] exploited chrominance and luminance with 5 × 5 neighborhoods interpolation equation. The advantage of method is computationally efficient in both execution time and memory storage requirements. On the basis of this interpolation method, several demosaicking algorithms [16,17,18] have been proposed. Pekkucuksen and Altunbasak [16] designed a gradient-based threshold free color filter. It combined the estimations of color difference from each direction into a gradient without setting the thresholds. To estimate different directions, in [17], the color differences were combined by using multiscale color gradients adaptively. This algorithm does not need any threshold because it makes no hard decision. Chen et al. [18] proposed an algorithm by combining voting-based edge direction detection with weighting-based interpolation, because some other algorithms may use false edge information in irregular edges.
The residual interpolation (RI) method has been widely used recently [19,20,21,22,23,24,25]. The RI algorithm exploited the characteristics of the guided filter [26] and showed outstanding performance [19]. Kiku et al. [20] incorporated the RI into the gradient-based threshold free algorithm. The better the interpolation results of images are, the smaller the Laplacian energies of images will have. In this way, the RI algorithm combined with minimizing the Laplacian energies of the residuals, which is termed as minimized Laplacian RI (MLRI) [21]. Ye and Ma [22] exploited iterative RI process and reconstructed a highly accurate G channel to reduce reconstruction error for the first time. Wang and Jeon [23] reconstructed only R and B channels by using RI algorithm, while the missing color components of G channel were estimated by eight-direction weighted color difference interpolation. The demosaicking algorithm effectively combined the advantages of color difference interpolation and residual interpolation. Kim and Jeong [24] proposed a four-directional RI algorithm to reduce severe demosaicking artifacts. The adaptive residual interpolation (ARI) algorithm [25] adaptively combined two RI-based algorithms and selected the appropriate number of iterations at each pixel to improve the existing RI-based algorithm. However, the weakness of this algorithm is that the algorithm has high computational complexity.
Furthermore, a demosaicking algorithm was proposed for the multispectral filter array about RI in [27]. There are some demosaicking algorithms based on other patterns such as RGB-white color filter arrays [28]. The image reconstructed in [28] contains much important information that cannot be perceived in the color image reconstructed by conventional CFA. However, they still have other artifacts, and further improvements are needed.
RI can be used as an alternative to the widely used color different interpolation and it performs better in some image datasets. MLRI has better interpolation results because the images have smaller Laplacian energies. Furthermore, MLRI also produces other artifacts in some complex edge areas. However, we find that the directional color difference estimations are not completely the same as the actual values sometimes. With the process of research, we think the problem can be solved by reducing the weights of directional color difference estimations. This paper proposes an effective directional residual interpolation algorithm for color image demosaicking based on MLRI. We use the two weights, horizontal and vertical weights, while there are four directional weights in MLRI. In this way, our method reduces the computational complexity. Afterwards, we use a novel method to calculate the directional color difference estimations, and to combine and smooth the color difference estimations. The proposed algorithm can effectively reduce the influence of false edge information in irregular edges. In the following experiments, our proposed algorithm outperforms previous algorithms and provides better color fidelity.
The rest of this paper is organized as follows. Section 2 starts with a brief of MLRI and related work. The proposed method is described in Section 3. Experimental results of the proposed method are presented in Section 4. Conclusions and remarks on possible future work are given in Section 5.

2. Related Work

2.1. The Outline of MLRI

The proposed algorithm is based on MLRI. First, we introduce the outline of MLRI. The interpolation process of the G pixel can be divided into three steps in MLRI.
Step 1.
The G pixel values are calculated through residuals at the location of R and B pixels from horizontal and vertical directions. R and B pixel values also are calculated at the location of G pixels. The calculation of the residuals replaces the calculation of the color difference in Adams and Hamilton’s interpolation equation [15].
Step 2.
MLRI calculates both horizontal and vertical color difference estimations based on Step 1 at each pixel, then MLRI combines and smooths the color difference estimations.
Step 3.
The color difference estimations are added to the observed R or B pixel values. It aims to interpolate G pixel values.
After interpolating the G pixel, MLRI interpolates the R and B pixel values, and the method simply replaces the traditional method of using color difference as shown in Figure 2.
In the past decades, color difference interpolation has been used gradually in image demosaicking. However, residual interpolation has been used recently in MLRI. MLRI uses a novel filter called guided filter. We compare the process of MLRI with that of the color difference interpolation in calculating R pixel. The process of calculating B pixel is similar.
We introduce the process of color difference interpolation to help us understand the process of MLRI. Firstly, the missing pixel in G image is the average of four observed G pixels around it. By this way, it can get G pixel values at each pixel to combine the interpolated G image. Secondly, the color differences between R and G are calculated at the locations of R pixel by subtracting the interpolated G pixel values from the observed R pixel values ( R G ). Then color differences are interpolated. Finally, an interpolated R image can be calculated by adding G pixel values to the interpolated color image.
Figure 2 shows the interpolation of the R pixel values by using MLRI in detail according to [21]. First, it can get the interpolated G image as the same method as the color difference interpolation. To minimize the Laplacian energies of the residuals, the guided image and the input image are first passed through a sparse Laplacian filter. The sparse Laplacian filter with MLRI is shown in Table 1. Then MLRI uses the guided filter to generate the tentative estimation of the R ( R ) image. The interpolated G image is used as the guided image, and the observed R image is used as the input image. After that, tentative estimation of the R image uses a mask to obtain the value at the location of R image. Then minimized Laplacian residuals are calculated at the location of R pixel by subtracting the tentative estimation R H values from the observed R pixel values ( R R ). Then MLRI interpolates the residuals. Finally, an interpolated R image can be calculated by adding the R image to the interpolated residual image.

2.2. Guided Filter

As an example, we describe how to get the R image by the guided filter in detail. The guided filter can accurately transfer the structures of the guided image to the filtered output. It has a good performance in edge-preserving smoothing and does not suffer from reversal artifacts. Thus, it can be used in demosaicking area. Furthermore, the guided filter also can be applied in denoising, edge-preserving, dehazing, and guided feathering.
The interpolated G image can be regarded as a guided image, and the observed R image can be regarded as an input image. To minimize the Laplacian energies of the residuals, the guided image and the input image are first passed through a sparse Laplacian filter. After that, the guided image uses a mask to obtain the value at the location of input image.
The guided filter assumption is a local linear model between the guided image I and the filtering output q in a window as shown in Equation (1):
q i = a k I i + b k ,   i w k ,
where i is the pixel in w k , and w k is a window centered at the pixel k ; ( a k , b k ) , which are assumed to be constant, are linear coefficients in w k . To determine the linear coefficients ( a k , b k ) , the cost function is given as:
E ( a k , b k ) = i w k ( a k I i + b k p i ) 2 ,
where p i is a pixel at w k in the input image. To minimize Equation (2), the solution is given by:
a k = 1 | w | i w k I i μ k p ¯ k σ k 2 ,
b k = p ¯ k a k μ k ,
where μ k and σ k 2 are the mean and variance of I in w k , | w | is the number of pixels in w k , and p ¯ k = 1 | w | i w k p i is the mean of p in w k . However, a pixel i is involved in all the overlapping windows w k that covers i . The value of q i in Equation (1) is not identical when it is computed in different windows, so we rewrite Equation (1) by:
q i = a ¯ i I i + b ¯ i ,
where a ¯ i = k w i a k | w | and b ¯ i = k w i b k | w | are the average coefficients of all windows overlapping i .

3. The Proposed Demosaicking Algorithm

Our proposed demosaicking algorithm, which is a high-performance algorithm, is based on MLRI. We designed a new method that could effectively calculate the horizontal and vertical weights. It can also combine and smooth the horizontal and vertical color difference estimations. It improves the visual effect of the complex texture region. Compared with four directional weights in MLRI, the amount of calculation in the proposed demosaicking algorithm is efficiently reduced.
It is vital to interpolate the missing G pixel values because the peak sensitivity in HVS lies in the wavelength of the green light. Since the missing G pixel values are the key to the performance of the proposed algorithm, we first estimate the G pixel values at each pixel. Then we estimate the R and B pixel values, which are based on the interpolated G pixel values.
Similarly, compared with MLRI, the interpolation processes of the missing G pixel values can be divided into three steps in the same way as that in MLRI [21].
Step 1.
The linear color difference interpolation in Adams and Hamilton’s interpolation equation [15] can be replaced by MLRI [21]. Then the new equation estimates the G, R, and B pixels in horizontal and vertical directions, so we can get G H , G V , R H , R V , B H , and B V .
Step 2.
The horizontal and vertical color difference estimations are calculated, and we can generate the horizontal and vertical weights at each pixel.
Step 3.
To get color difference, the horizontal and vertical color difference estimations are combined and smoothed by two directional weights. As a result, the G pixel values at the location of R and B pixels are generated by adding final color difference to the observed R or B pixel values.
To sum up, the outline of the interpolation processes of the missing G pixel values is shown in Figure 3.

3.1. The Calculation Process of Directionaly Estimated Pixel Value

In Step 1, the Adams and Hamilton’s interpolation equation [15] can be considered as a linear model, as shown in Figure 4a. The linear color model can be replaced by MLRI [21]. The locations of R and B are symmetrical and the amount of R pixels and B pixels are same. To simplify the explanation, we explain the estimation of the R pixel values in the horizontal direction in detail, as shown in Figure 4b.
The linear model in Adams and Hamilton’s interpolation equation can be expressed as:
R i , j H = ( R i , j 1 + R i , j + 1 ) / 2 + ( 2 × G i , j G i , j 2 G i , j + 2 ) / 4 ,
where R H is the horizontally estimated R pixel value, the suffix ( i , j ) represents the target pixel coordinates. This interpolation equation can be considered the linear interpolation, which is shown in Equation (7):
R i , j H G i , j = ( R i , j 1 G i , j 1 H ) / 2 + ( R i , j + 1 G i , j + 1 H ) / 2 .
Here G H is the G pixel value horizontally estimated at the R pixel and G H is calculated as follows:
G i , j 1 H = ( G i , j 2 + G i , j ) / 2 ,
G i , j + 1 H = ( G i , j + G i , j + 2 ) / 2 .
Similarly, we can calculate G H and G V at the R and B pixels. MLRI uses the tentative estimations to replace of these estimated G pixel values as shown in Figure 4b. As a result, Equation (6) can be rewritten as:
R i , j H R i , j H = ( R i , j 1 R i , j 1 H ) / 2 + ( R i , j + 1 R i , j + 1 H ) / 2 ,
where R H is the tentative estimated R image.
To sum up, the horizontally estimated G pixel value at the location of R pixel can be calculated by Equations (8) and (9) at first. Then the interpolated G H image is used as the guided image. As a result, the tentative estimation R H is generated by guided filter. The residual can be calculated after subtracting the tentative estimation R H value from the observed R pixel values. After that, residuals are interpolated by Equation (10) at each pixel. We use the residuals to add the tentative estimation R H and generate the horizontally estimated R pixel value R H .
R V , B H , and B V at G pixel can be similarly generated by Step 1.

3.2. The Calculation Process of Directional Weights

We can get an observed pixel value and two directionally estimated values at each pixel after Step 1. In this section, we use the directional color difference estimations and the absolute color difference gradients to calculate the directional weights. The process is shown in Figure 5.
The directional color difference estimations can be calculated by Equation (11) in MLRI.
Δ ˜ g , r H ( i , j ) = { G i , j H R i , j ,   G   is   interpolated G i , j R i , j H ,   R   is   interpolated ,   Δ ˜ g , r V ( i , j ) = { G i , j V R i , j ,   G   is   interpolated G i , j R i , j V ,   R   is   interpolated ,
where Δ ˜ g , r H is the horizontal color difference estimation between G and R image, and Δ ˜ g , r V is the vertical color difference estimation between G and R image. The effective combination of the directional color difference estimations is the most important factor of a successful algorithm. However, the horizontally estimated R pixel value R H in Equation (11) is not completely the same as the actual value. There are differences between the missing actual value during imaging and the reconstructed value. To reduce the influence of differences and to get estimated values, we reduce the weight of R H in Equation (11). Compared with MLRI, we use Equation (12) to calculate the directional color difference estimations.
Δ ˜ g , r H ( i , j ) = { G i , j H R i , j / 2 ,   G   is   interpolated G i , j R i , j H / 2 ,   R   is   interpolated ,   Δ ˜ g , r V ( i , j ) = { G i , j V R i , j / 2 ,   G   is   interpolated G i , j R i , j V / 2 ,   R   is   interpolated .
Similarly, we can calculate the directional color difference estimations between G and B image. As a result, the observed pixel value and the two directional color difference estimations are generated at each pixel. It provides convenience for the reconstruction of missing G pixel values. Furthermore, the directional estimation may be inaccurately calculated because of the false edge information in irregular edges. However, experimental results show that Equation (12) can effectively reduce this influence of it. From the above steps, we use the directional color difference estimations to calculate the color difference gradients. The absolute color difference gradients at pixel coordinates ( i , j ) are given by:
D i , j H = | Δ ˜ H ( i , j 1 ) Δ ˜ H ( i , j + 1 ) | ,   D i , j V = | Δ ˜ V ( i , j 1 ) Δ ˜ V ( i , j + 1 ) | ,
where Δ ˜ H ( i , j ) is the horizontal color difference estimation in ( i , j ) , and Δ ˜ V ( i , j ) is the vertical color difference estimation in ( i , j ) . Then we use the absolute color difference gradients to calculate horizontal and vertical weights. As we all know, the average without directional weights usually causes aliasing in the edge and the texture areas, so it is necessary to distinguish direction to avoid aliasing. In a word, the values around the target pixel are averaged according to different weights. It can effectively reduce aliasing which is caused by the abrupt color change. Thus, the weight will become smaller when the abrupt color change becomes larger. As a result, directional color difference estimations will be given a small weight in color difference combination if there is a sharp color transition area. The weights in horizontal and vertical, w h and w v , are given as:
w h = 1 / ( a = i 2 i + 2 b = j 2 j + 2 D a , b H ) 2 ,   w v = 1 / ( a = i 2 i + 2 b = j 2 j + 2 D a , b V ) 2 .

3.3. The Calculation Process of Estimated Pixel Values

We can get the weights and the directional color difference estimations at each pixel after Step 2. Then, the directional color difference estimations are combined and smoothed by Equation (15):
Δ ˜ g , r ( i , j ) = { w h f * Δ ˜ g , r h ( i , j 1 : j + 1 ) + w v f T * Δ ˜ g , r v ( i 1 : i + 1 , j ) } / ( w h + w v ) ,
where f is a linear filter f = ( 1 / 4 2 / 4 1 / 4 ) . To make the sum of the weights equal to 1, the weights should be allocated in the combination and smoothness.
Once the color difference is estimated, we add it to the available target pixels to obtain the estimated G pixel value:
G ˜ ( i , j ) = R ( i , j ) / 2 + Δ ˜ g , r ( i , j ) ,   G ˜ ( i , j ) = B ( i , j ) / 2 + Δ ˜ g , b ( i , j ) .
After G image is interpolated, the R and B pixel values are interpolated by guided filter. The interpolation is described in Figure 2.

4. Experimental Results

In this section, 18 images in the MCMaster dataset [29] are used to evaluate the effectiveness of the proposed algorithm. These images have a resolution of 500 × 500 as shown in Figure 6. The MCMaster dataset images are more in line with the characteristics of digital color images. The proposed algorithm is compared with DLMMSE [9], LDI-NAT [29], LDI-NLM [29], VDI [18], RI [19], and MLRI [21]. Especially, the guided filter is applied in the proposed algorithm, RI, and MLRI.
To simulate the proposed algorithm, we use MATLAB R2015b with Inter Core i7-5500U and 2.4 GHz CPU processors. Each calculation excludes the boundary of 10 pixels around the interpolated image in order to avoid the boundary effect.
Two indexes, peak signal-to-noise ratio (PSNR) and composite PSNR (CPSNR), are used to calculate the quality of the reconstructed demosaicking images, which are defined as:
PSNR = 10 log 10 [ 255 2 1 M N i = 1 M j = 1 N [ I in ( i , j ) I out ( i , j ) ] 2 ] ( dB ) ,
and
CPSNR = 10 log 10 [ 255 2 1 3 M N k = 1 3 i = 1 M j = 1 N [ I in ( i , j , k ) I out ( i , j , k ) ] 2 ] ( dB ) ,
where M and N are the row and column sizes of image; I in and I out are the input image and the output image, respectively; i and j are the locations of pixels in the color plane, and k represents the color plane.
Table 2 shows the PSNR of different algorithms to G components, since G components are the peak sensitivity of HVS. The highest PSNR of each image is marked in bold. Table 3 shows the CPSNR of different algorithms. The highest CPSNR of each image is marked in bold.
As shown in Table 2, the proposed algorithm performs better than the other six algorithms on 10 out of 18 images. The average PSNR of G components in the proposed algorithm is higher than MLRI and RI by 0.31 dB and 0.20 dB, respectively. Moreover, as for CPSNR in Table 3, the proposed algorithm performs better than the other six algorithms on 11 out of 18 images. The average CPSNR of the proposed algorithm is higher than that of MLRI and RI by 0.35 dB and 0.25 dB, respectively. In brief, among the three methods, RI [19], MLRI [21], and the proposed algorithm, those use the guided filter, the proposed algorithm is superior to MLRI and RI. This demonstrates that the proposed algorithm is effective for image demosaicking.
Objective measures are not reliable enough to judge the performance of the proposed method sometimes. Thus, we choose Figure 6a,h to show visual comparison of the interpolated images. Figure 7 shows the visual comparison of the yellow rectangular frame in Figure 6a. Figure 8 shows the visual comparison of the yellow rectangular frame in Figure 6h. We can find that the proposed algorithm produces precise image color information in details. In Figure 7, the Figure 7i has fewer artifacts than other subfigures. In Figure 8, the Figure 8i reconstructs the dots more exactly than other subfigures.
We use CPU processing time to compare computational complexity. The original source codes of [9,19,21,29] are used to record the CPU processing time under the same test conditions. The average computation time for each method is shown in Table 4. For each image, the proposed algorithm takes 1.50 s while MLRI takes 1.57 s. The proposed algorithm reduces two directional-weight calculation processes. Therefore, it shows lower complexity. LDI-NAT and LDI-NLM take more than 60 s in the same condition because of the nonlocal mean method that is used to refine the interpolation. To sum up, the proposed algorithm provides a relatively low computational complexity.

5. Conclusions

In this paper, an effective directional residual interpolation algorithm for color image demosaicking is presented. With the use of directional weights by residual interpolation, more precise color components are interpolated. The proposed algorithm can be an alternative to color difference interpolation and MLRI, because it provides lower computational complexity by using horizontal and vertical weights. Besides, based on calculating the color difference estimations, we use a novel method to effectively reduce the influence of false edge information in irregular edges. It provides better color fidelity. Experimental results show that the proposed algorithm has outstanding performance on more complicated edge areas with lower computational complexity. In addition, it shows better subjective quality. For further work, we will continue to focus on the improved algorithm with better visual effect on more types of images. However, this improvement does not necessarily make the estimated values closest to the true values. Therefore, future research efforts will focus on finding an optimal algorithm to remove the difference caused by the directional color difference estimations absolutely.

Author Contributions

K.Y., C.W., and S.Y. conceived the algorithm and designed the experiments; K.Y., Z.L., and D.Z. performed the experiments; K.Y., C.W., and S.Y. analyzed the results; K.Y. drafted the manuscript; K.Y., C.W., S.Y., Z.L., and D.Z. revised the manuscript. All authors read and approved the final manuscript.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (No. 61702303); the Natural Science Foundation of Shandong Province, China (No. ZR2017MF020); the 12th student research training program (SRTP); the 8th undergraduate research apprentice program (URAP); and the 9th URAP at Shandong University (Weihai), China. We are particularly grateful to the authors of the references for providing open source codes. The authors thank Heng Zhang, Yunpeng Zhang, Jie Lv, Yiming Zhang, Surong Zhang, Qingyang Zhang, Xiuhong Wei, and Meiling Li for their help in revising this paper. The authors also thank the anonymous reviewers and editors for their valuable comments to improve the presentation of the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gunturk, B.K.; Glotzbach, J.; Altunbasak, Y.; Schafer, R.W.; Mersereau, R.M. Demosaicking: Color filter array interpolation. IEEE Signal Process. Mag. 2005, 22, 44–54. [Google Scholar] [CrossRef]
  2. Bayer, B.E. Color Imaging Array. U.S. Patent 3,971,065, 20 July 1976. [Google Scholar]
  3. Adams, J.E. Interactions between color plane interpolation and other image processing functions in electronic photography. In Proceedings of the SPIE—Cameras and Systems for Electronic Photography and Scientific Imaging, San Jose, CA, USA, 8–9 February 1995; Volume 2416, pp. 144–151. [Google Scholar]
  4. Longère, P.; Zhang, X.; Delahunt, P.B.; Brainard, D.H. Perceptual assessment of demosaicing algorithm performance. Proc. IEEE 2002, 90, 123–132. [Google Scholar] [CrossRef]
  5. Yu, W. Colour demosaicking method using adaptive cubic convolution interpolation with sequential averaging. IEE Proc. Vis. Image Signal Process. 2006, 153, 666–676. [Google Scholar] [CrossRef]
  6. Malvar, H.S.; He, L.W.; Cutler, R. High-quality linear interpolation for demosaicing of Bayer-patterned color images. In Proceedings of the IEEE International Conference on Acoustics, Speech, and Signal Processing, Montreal, QC, Canada, 17–21 May 2004; Volume 3, pp. 485–488. [Google Scholar]
  7. Yu, T.; Hu, W.; Xue, W.; Zhang, W. Colour image demosaicking via joint intra and inter channel information. Electron. Lett. 2016, 52, 605–607. [Google Scholar] [CrossRef]
  8. Zhang, C.; Li, Y.; Wang, J.; Hao, P. Universal demosaicking of color filter arrays. IEEE Trans. Image Process. 2016, 25, 5173–5186. [Google Scholar] [CrossRef] [PubMed]
  9. Zhang, L.; Wu, X. Color demosaicking via directional linear minimum mean square-error estimation. IEEE Trans. Image Process. 2005, 14, 2167–2178. [Google Scholar] [CrossRef] [PubMed]
  10. Wachira, K.; Mwangi, E. A multi-variate weighted interpolation technique with local polling for Bayer CFA demosaicking. In Proceedings of the 1st International Conference on Information and Communication Technology Research, Abu Dhabi, UAE, 17–19 May 2015; pp. 76–79. [Google Scholar]
  11. Shi, J.; Wang, C.; Zhang, S. Region-adaptive demosaicking with weighted values of multidirectional information. J. Commun. 2014, 9, 930–936. [Google Scholar] [CrossRef]
  12. Chen, W.J.; Chang, P.Y. Effective demosaicking algorithm based on edge property for color filter arrays. Digit. Signal Process. 2012, 22, 163–169. [Google Scholar] [CrossRef]
  13. Pekkucuksen, I.; Altunbasak, Y. Edge strength filter based color filter array interpolation. IEEE Trans. Image Process. 2012, 21, 393–397. [Google Scholar] [CrossRef] [PubMed]
  14. Tsai, C.Y.; Song, K.T. A new edge-adaptive demosaicing algorithm for color filter arrays. Image Vis. Comput. 2007, 25, 1495–1508. [Google Scholar] [CrossRef]
  15. Adams, J.E.; Hamilton, J.F. Adaptive Color Plan Interpolation in Single Sensor Color Electronic Camera. U.S. Patent 5,629,734, 13 May 1997. [Google Scholar]
  16. Pekkucuksen, I.; Altunbasak, Y. Gradient based threshold free color filter array interpolation. In Proceedings of the 17th IEEE International Conference on Image Processing, Hong Kong, China, 26–29 September 2010; pp. 137–140. [Google Scholar]
  17. Pekkucuksen, I.; Altunbasak, Y. Multiscale gradients-based color filter array interpolation. IEEE Trans. Image Process. 2013, 22, 157–165. [Google Scholar] [CrossRef] [PubMed]
  18. Chen, X.; Jeon, G.; Jeong, J. Voting-based directional interpolation method and its application to still color image demosaicking. IEEE Trans. Circuits Syst. Video Technol. 2014, 24, 255–262. [Google Scholar] [CrossRef]
  19. Kiku, D.; Monno, Y.; Tanaka, M.; Okutomi, M. Residual interpolation for color image demosaicking. In Proceedings of the 20th IEEE International Conference on Image Processing, Melbourne, Australia, 15–18 September 2013; pp. 2304–2308. [Google Scholar]
  20. Kiku, D.; Monno, Y.; Tanaka, M.; Okutomi, M. Beyond color difference: Residual interpolation for color image demosaicking. IEEE Trans. Image Process. 2016, 25, 1288–1300. [Google Scholar] [CrossRef] [PubMed]
  21. Kiku, D.; Monno, Y.; Tanaka, M.; Okutomi, M. Minimized-Laplacian residual interpolation for color image demosaicking. In Proceedings of the SPIE—IS and T Electronic Imaging—Digital Photography X, San Francisco, CA, USA, 3–5 February 2014; Volume 9023, pp. 1–8. [Google Scholar]
  22. Ye, W.; Ma, K.K. Color image demosaicing using iterative residual interpolation. IEEE Trans. Image Process. 2015, 24, 5879–5891. [Google Scholar] [CrossRef] [PubMed]
  23. Wang, L.; Jeon, G. Bayer pattern CFA demosaicking based on multi-directional weighted interpolation and guided filter. IEEE Signal Process. Lett. 2015, 22, 2083–2087. [Google Scholar] [CrossRef]
  24. Kim, Y.; Jeong, J. Four-direction residual interpolation for demosaicking. IEEE Trans. Circuits Syst. Video Technol. 2016, 26, 881–890. [Google Scholar] [CrossRef]
  25. Monno, Y.; Kiku, D.; Tanaka, M.; Okutomi, M. Adaptive residual interpolation for color and multispectral image demosaicking. Sensors 2017, 17, 2787. [Google Scholar] [CrossRef] [PubMed]
  26. He, K.; Sun, J.; Tang, X. Guided image filtering. IEEE Trans. Pattern Anal. Mach. Intell. 2013, 35, 1397–1409. [Google Scholar] [CrossRef] [PubMed]
  27. Monno, Y.; Kiku, D.; Kikuchi, S.; Tanaka, M.; Okutomi, M. Multispectral demosaicking with novel guide image generation and residual interpolation. In Proceedings of the IEEE International Conference on Image Processing, Paris, France, 27–30 October 2014; pp. 645–649. [Google Scholar]
  28. Oh, P.; Lee, S.; Kang, M.G. Colorization-based RGB-white color interpolation using color filter array with randomly sampled pattern. Sensors 2017, 17, 1523. [Google Scholar] [CrossRef] [PubMed]
  29. Zhang, L.; Wu, X.; Buades, A.; Li, X. Color demosaicking by local directional interpolation and nonlocal adaptive thresholding. J. Electron. Imaging 2011, 20, 1–16. [Google Scholar]
Figure 1. Bayer pattern CFA.
Figure 1. Bayer pattern CFA.
Applsci 08 00680 g001
Figure 2. The interpolation of the R pixel values by using MLRI.
Figure 2. The interpolation of the R pixel values by using MLRI.
Applsci 08 00680 g002
Figure 3. The outline of the proposed algorithm.
Figure 3. The outline of the proposed algorithm.
Applsci 08 00680 g003
Figure 4. The horizontal R pixel value interpolation: (a) Adams and Hamilton’s interpolation equation [15]; (b) MLRI [21].
Figure 4. The horizontal R pixel value interpolation: (a) Adams and Hamilton’s interpolation equation [15]; (b) MLRI [21].
Applsci 08 00680 g004aApplsci 08 00680 g004b
Figure 5. The calculation process of the directional weights.
Figure 5. The calculation process of the directional weights.
Applsci 08 00680 g005
Figure 6. The MCMaster dataset images.
Figure 6. The MCMaster dataset images.
Applsci 08 00680 g006aApplsci 08 00680 g006b
Figure 7. The processing results of image Figure 6a: (a) the original image marked with the yellow rectangular frame; (b) the enlarged area of the yellow rectangular frame; (c) DLMMSE [9]; (d) LDI-NAT [29]; (e) LDI-NLM [29]; (f) VDI [18]; (g) RI [19]; (h) MLRI [21]; (i) the proposed algorithm.
Figure 7. The processing results of image Figure 6a: (a) the original image marked with the yellow rectangular frame; (b) the enlarged area of the yellow rectangular frame; (c) DLMMSE [9]; (d) LDI-NAT [29]; (e) LDI-NLM [29]; (f) VDI [18]; (g) RI [19]; (h) MLRI [21]; (i) the proposed algorithm.
Applsci 08 00680 g007
Figure 8. The processing results of image Figure 6h: (a) the original image marked with the yellow rectangular frame; (b) the polka dots of the tie in the yellow rectangular frame; (c) DLMMSE [9]; (d) LDI-NAT [29]; (e) LDI-NLM [29]; (f) VDI [18]; (g) RI [19]; (h) MLRI [21]; (i) the proposed algorithm.
Figure 8. The processing results of image Figure 6h: (a) the original image marked with the yellow rectangular frame; (b) the polka dots of the tie in the yellow rectangular frame; (c) DLMMSE [9]; (d) LDI-NAT [29]; (e) LDI-NLM [29]; (f) VDI [18]; (g) RI [19]; (h) MLRI [21]; (i) the proposed algorithm.
Applsci 08 00680 g008
Table 1. The sparse Laplacian filter used in MLRI.
Table 1. The sparse Laplacian filter used in MLRI.
DirectionG Channel InterpolationR and B Channels Interpolation
Horizontal ( 1 0 2 0 1 ) ( 0 0 1 0 0 0 0 0 0 0 1 0 4 0 1 0 0 0 0 0 0 0 1 0 0 )
Vertical ( 1 0 2 0 1 )
Table 2. The PSNR (dB) of G components for the MCMaster images.
Table 2. The PSNR (dB) of G components for the MCMaster images.
ImageDLMMSE [9]LDI-NAT [29]LDI-NLM [29]VDI [18]RI [19]MLRI [21]Proposed
Figure 6a27.5132.6632.3132.5732.3732.3932.64
Figure 6b31.9139.0039.0938.9539.4439.2439.47
Figure 6c34.4635.4635.5035.4436.7536.6836.38
Figure 6d36.8040.4038.9941.3142.1441.1643.15
Figure 6e32.4838.0537.6138.1337.8637.6938.73
Figure 6f33.0943.3641.8742.4942.1641.8543.12
Figure 6g40.5437.2437.5836.6338.7739.3437.34
Figure 6h40.4340.1540.3239.6041.3741.7340.36
Figure 6i32.2741.6341.4941.9041.6241.5441.97
Figure 6j31.1542.6642.2442.4742.0741.9842.95
Figure 6k31.8742.7342.0041.7842.0342.0541.97
Figure 6l31.5541.5241.5241.6542.2442.0442.38
Figure 6m33.5444.8045.5045.3845.1044.8745.77
Figure 6n30.8942.8042.6242.9643.0542.7843.71
Figure 6o32.1942.6542.5142.5442.6742.4843.00
Figure 6p26.7035.6035.1035.2035.1635.2835.35
Figure 6q29.2837.7437.4937.8637.3836.9038.16
Figure 6r30.4337.6637.7436.3637.6837.8936.89
Average32.6239.7839.5339.6239.9939.8840.19
Table 3. The CPSNR (dB) of MCMaster images.
Table 3. The CPSNR (dB) of MCMaster images.
ImageDLMMSE [9]LDI-NAT [29]LDI-NLM [29]VDI [18]RI [19]MLRI [21]Proposed
Figure 6a24.1229.0128.7028.0228.9828.8729.37
Figure 6b28.3935.0134.8634.1635.0035.0935.17
Figure 6c31.7832.5733.0832.6333.7133.7933.72
Figure 6d34.1335.9536.4736.0037.8837.4838.56
Figure 6e28.5534.1033.7732.6333.9233.7934.59
Figure 6f29.2437.8637.1235.6438.3238.2938.62
Figure 6g38.3835.9836.2836.0336.9737.4336.00
Figure 6h36.6437.4637.8237.4136.9836.8338.20
Figure 6i28.8536.9136.9835.9635.9236.5336.69
Figure 6j27.7638.7338.3637.2638.1538.5538.92
Figure 6k28.6639.4739.1937.9639.4339.9639.74
Figure 6l27.3538.8938.5937.1039.6439.6739.58
Figure 6m29.1040.7840.8539.4140.3140.5340.71
Figure 6n27.2538.6838.4837.3238.9538.7439.16
Figure 6o28.7838.9338.9437.8538.3538.9239.27
Figure 6p24.2333.5032.9831.4135.1535.1635.30
Figure 6q26.3932.8332.5431.1632.3932.4833.26
Figure 6r27.8334.9835.2134.2436.4836.2335.95
Average29.3036.2036.1235.1236.4736.5736.82
Table 4. Average computation time (s) on MCMaster images.
Table 4. Average computation time (s) on MCMaster images.
DLMMSE [9]LDI-NAT [29]LDI-NLM [29]VDI [18]RI [19]MLRI [21]Proposed
6.68397.9466.901.961.201.571.50

Share and Cite

MDPI and ACS Style

Yu, K.; Wang, C.; Yang, S.; Lu, Z.; Zhao, D. An Effective Directional Residual Interpolation Algorithm for Color Image Demosaicking. Appl. Sci. 2018, 8, 680. https://doi.org/10.3390/app8050680

AMA Style

Yu K, Wang C, Yang S, Lu Z, Zhao D. An Effective Directional Residual Interpolation Algorithm for Color Image Demosaicking. Applied Sciences. 2018; 8(5):680. https://doi.org/10.3390/app8050680

Chicago/Turabian Style

Yu, Ke, Chengyou Wang, Sen Yang, Zhiwei Lu, and Dan Zhao. 2018. "An Effective Directional Residual Interpolation Algorithm for Color Image Demosaicking" Applied Sciences 8, no. 5: 680. https://doi.org/10.3390/app8050680

APA Style

Yu, K., Wang, C., Yang, S., Lu, Z., & Zhao, D. (2018). An Effective Directional Residual Interpolation Algorithm for Color Image Demosaicking. Applied Sciences, 8(5), 680. https://doi.org/10.3390/app8050680

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop