eric dubois, school of it and engineering (site), university of...

1
FILTER DESIGN FOR ADAPTIVE FREQUENCY-DOMAIN BAYER DEMOSAICKING Eric Dubois, School of IT and Engineering (SITE), University of Ottawa, Canada The problem: Most digital color cameras capture only one color component at each spatial location using a color filter array (CFA), such as the Bayer CFA. The remaining components must be reconstructed by interpolation from the captured samples. The raw CFA output is a spatial-domain multiplexing of the R,G,B components of the color image. Bayer color filter array ) ) 1 ( 1 )( ) 1 ( 1 ]( , [ ) ) 1 ( 1 )( ) 1 ( 1 ]( , [ ) ) 1 ( 1 ]( , [ ] , [ 2 1 2 1 4 1 2 1 2 1 4 1 2 1 2 1 2 1 2 1 CFA n n B n n R n n G n n f n n f n n f n n f - - - + + - + - - + - + = + Frequency Domain Model [1]: The spatial-domain multiplexing model can be converted to a frequency-domain multiplexing model by a simple manipulation of the above equation: ( ) ( ) 2 1 2 1 2 2 1 2 1 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 CFA ) 1 ( ) 1 ( ] , [ ) 1 ]( , [ ] , [ ) 1 ( ) 1 ( ] , [ 4 1 ] , [ 4 1 ) 1 ( ] , [ 4 1 ] , [ 2 1 ] , [ 4 1 ] , [ 4 1 ] , [ 2 1 ] , [ 4 1 ] , [ n n C n n C L n n B R n n B G R B G R n n f n n f n n f n n f n n f n n f n n f n n f n n f n n f n n f n n f - - - + - + = - - - + - + - - + - + + + = + + ) 5 . 0 , ( ) , 5 . 0 ( ) 5 . 0 , 5 . 0 ( ) , ( ) , ( 2 2 1 CFA - - - + - - + = v u F v u F v u F v u F v u F C C C L - - - = - - - = 2 1 4 1 4 1 4 1 2 1 4 1 4 1 2 1 4 1 2 1 2 1 1 0 1 1 2 1 1 0 C C L B G R B G R C C L f f f f f f f f f f f f Frequency domain approach: Estimate the three components f L , f C1 and f C2 from the CFA signal using filters and convert them to f R , f G , and f B as above. Main problem: L-C2 crosstalk Adaptive frequency-domain demosaicking KEY OBSERVATION: There are TWO separate copies of C2, and usually only ONE of them is locally affected by crosstalk. Original Bilinear Using C2a only Using C2b only h 2a h 2b + - f CFA × × × × × × (-1) n1+n2 -(-1) n2 (-1) n1 × × × h 1 combine × × × (-1) n1 -(-1) n2 + - matrix f R f G f B f C2am f C2bm f C1m f C1 f C2a f C2b f C2 f L f C1 f C2 h 2a h 2b + - f CFA × × × × × × (-1) n1+n2 -(-1) n2 (-1) n1 × × × h 1 combine × × × (-1) n1 -(-1) n2 + - matrix f R f G f B f C2am f C2bm f C1m f C1 f C2a f C2b f C2 f L f C1 f C2 Typical scenarios for local spectrum L C2a C2a C2b C2b C1 C1 C1 C1 B: C2b is better estimate L C2a C2a C2b C2b C1 C1 C1 C1 A: C2a is better estimate u v v u Block diagram of adaptive frequency-domain demosaicking system Main issue of this paper: how to choose the filters h 1 , h 2a , h 2b Filter design methods: Frequency domain design: The original algorithm [2] used 21 X 21 filters designed using the window method. Attempts were made to improve over these results using minimax design techniques, and to reduce the filter order. No improvements were achieved, and the filter order could only be reduced to 15 X 15. References: [1] D. Alleysson, S. Süsstrunk and J. Hérault, “Linear demosaicing inspired by the human visual system,” IEEE Trans. Image Processing, vol. 14, pp. 439-449, Apr. 2005. [2] E. Dubois, “Frequency-domain methods for demosaicking of Bayer-sampled color images,” IEEE Signal Processing Letters, vol. 12, pp. 847-850, Dec. 2005. [3] B.K. Gunturk, Y. Altunbasak and R.M. Mersereau, “Color plane interpolation using alternating projections,” IEEE. Trans. Image Processing, vol. 11, pp. 997-1013, Sept. 2002. 1 2 3 4 5 -0.5 0 0.5 -0.5 0 0.5 0 0.2 0.4 0.6 0.8 1 -0.5 0 0.5 -0.5 0 0.5 0 0.2 0.4 0.6 0.8 1 -0.5 0 0.5 -0.5 0 0.5 0 0.2 0.4 0.6 0.8 1 H 1 (u,v) H 2a (u,v) H 2b (u,v) Least-squares design: The filters h 1 , h 2a and h 2b have been designed to minimize the total squared error between the original C1 and C2 components and those estimated from the CFA signal using the system shown in box 4, over a training set of typical images. The details are presented in the paper. With this approach, filters of size 11 X 11 are sufficient to achieve the full benefit of the technique, while improving slightly over the results of [2]. 6 7 Conclusions The adaptive frequency-domain Bayer demosaicking algorithm has shown the lowest mean-square reconstruction error among published techniques for the Kodak dataset. The filter order can be reduced to 11 X 11 with no loss of performance, and very good results can be achieved with 7 X 7 filters Further work is evaluating the trade-off between demosaicking performance and computational complexity with this scheme. Thanks to Brian Leung for carrying out many of the experiments. demodulation remodulation adaptively -0.5 0 0.5 -0.5 0 0.5 0 0.2 0.4 0.6 0.8 1 -0.5 0 0.5 -0.5 0 0.5 0 0.2 0.4 0.6 0.8 1 -0.5 0 0.5 -0.5 0 0.5 0 0.2 0.4 0.6 0.8 1 H 1 (u,v) H 2a (u,v) H 2b (u,v) Note: POCS refers to method of [3] PSNR as a function of filter order Frequency response of 11 X 11 least squares filters Frequency response of 21 X 21 window-designed filters [2]

Upload: others

Post on 27-Mar-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Eric Dubois, School of IT and Engineering (SITE), University of ...edubois/CFA/Dubois_ICIP2006...Eric Dubois, School of IT and Engineering (SITE), University of Ottawa, Canada The

FILTER DESIGN FOR ADAPTIVE FREQUENCY-DOMAIN BAYER DEMOSAICKINGEric Dubois, School of IT and Engineering (SITE), University of Ottawa, Canada

The problem: Most digital color cameras capture only

one color component at each spatial location using a color filter array (CFA), such as the Bayer CFA. The remaining components must be reconstructed by interpolation from the captured samples.

The raw CFA output is a spatial-domain multiplexing of the R,G,B components of the color image.

Bayer colorfilter array

))1(1)()1(1](,[

))1(1)()1(1](,[))1(1](,[],[

21214

1

21214

121212

121CFA

nn

B

nn

R

nn

G

nnf

nnfnnfnnf

−−−++

−+−−+−+=+

Frequency Domain Model [1]: The spatial-domain

multiplexing model can be converted to a frequency-domain

multiplexing model by a simple manipulation of the above equation:

( )

( )21212

2121121

212121

21212121

21212121CFA

)1()1(],[)1](,[],[

)1()1(],[4

1],[

4

1

)1(],[4

1],[

2

1],[

4

1

],[4

1],[

2

1],[

4

1],[

nn

C

nn

CL

nn

BR

nn

BGR

BGR

nnfnnfnnf

nnfnnf

nnfnnfnnf

nnfnnfnnfnnf

−−−+−+=

−−−

+−+

−+−+

++=

+

+

)5.0,(),5.0()5.0,5.0(),(),( 221CFA −−−+−−+= vuFvuFvuFvuFvuF CCCL

−−

=

−−=

2

1

4

1

4

1

4

1

2

1

4

1

4

1

2

1

4

1

2

1

211

011

211

0 C

C

L

B

G

R

B

G

R

C

C

L

f

f

f

f

f

f

f

f

f

f

f

f

Frequency domain approach: Estimate the three

components fL, fC1 and fC2 from the CFA signal using filters and convert them to fR, fG, and fB as above.

Main problem: L-C2 crosstalk

Adaptive frequency-domain demosaickingKEY OBSERVATION: There are TWO separate copies of C2, and usually only ONE of them is locally affected by crosstalk.

Original Bilinear Using C2a

only

Using C2b

only

h2a

h2b

+-

fCFA

××××

××××

(-1)n1+n2

-(-1)n2

(-1)n1

××××h1

combine

××××(-1)n1-(-1)n2

+

-

matrix

fR

fG

fB

fC2am

fC2bm

fC1m fC1

fC2a

fC2b

fC2

fL

fC1

fC2

h2a

h2b

+-

fCFA

××××

××××

(-1)n1+n2

-(-1)n2

(-1)n1

××××h1

combine

××××(-1)n1-(-1)n2

+

-

matrix

fR

fG

fB

fC2am

fC2bm

fC1m fC1

fC2a

fC2b

fC2

fL

fC1

fC2

Typical scenarios for localspectrum

L C2aC2a

C2b

C2b

C1C1

C1 C1

B: C2b is better estimate

LC2a

C2a

C2b

C2b

C1C1

C1 C1

A: C2a is better estimate

u

v v

u

Block diagram of adaptive frequency-domain demosaicking system

Main issue of this paper: how to choose the filters h1, h2a, h2b

Filter design methods:Frequency domain design: The original algorithm [2] used 21 X 21 filters designed using the window method. Attempts were made to improve over these results using minimax design techniques, and to reduce the filter order. No improvements were achieved, and the filter order could only be

reduced to 15 X 15.

References:[1] D. Alleysson, S. Süsstrunk and J. Hérault, “Linear demosaicing inspired by the human visual system,” IEEE Trans. Image Processing, vol. 14, pp. 439-449, Apr. 2005.

[2] E. Dubois, “Frequency-domain methods for demosaicking of Bayer-sampled color images,”

IEEE Signal Processing Letters, vol. 12, pp. 847-850, Dec. 2005. [3] B.K. Gunturk, Y. Altunbasak and R.M. Mersereau, “Color plane interpolation using alternating

projections,” IEEE. Trans. Image Processing, vol. 11, pp. 997-1013, Sept. 2002.

1

2

3

4

5

-0.5

0

0.5

-0.5

0

0.5

0

0.2

0.4

0.6

0.8

1

-0.5

0

0.5

-0.5

0

0.5

0

0.2

0.4

0.6

0.8

1

-0.5

0

0.5

-0.5

0

0.5

0

0.2

0.4

0.6

0.8

1

H1(u,v) H2a(u,v) H2b(u,v)

Least-squares design: The filters h1, h2a and h2b have been designed to

minimize the total squared error between the original C1 and C2 components and those estimated from the CFA signal using the system shown in box 4, over a training set of typical images. The details are presented in the paper. With this approach, filters of size 11 X 11 are sufficient to achieve the full benefit of the technique, while improving slightly over the results of [2].

6

7Conclusions

• The adaptive frequency-domain Bayer demosaicking algorithm has shown the lowest mean-square reconstruction error among published techniques for the Kodak dataset.

• The filter order can be reduced to 11 X 11 with no loss of performance, and very good results can be achieved with 7 X 7 filters

• Further work is evaluating the trade-off between demosaickingperformance and computational complexity with this scheme.

• Thanks to Brian Leung for carrying out many of the experiments.

demodulation remodulation

adaptively

-0.5

0

0.5

-0.5

0

0.5

0

0.2

0.4

0.6

0.8

1

-0.5

0

0.5

-0.5

0

0.5

0

0.2

0.4

0.6

0.8

1

-0.5

0

0.5

-0.5

0

0.5

0

0.2

0.4

0.6

0.8

1

H1(u,v) H2a(u,v) H2b(u,v)

Note: POCS refers to

method of [3]PSNR as a function of filter order

Frequency response of 11 X 11 least squares filters

Frequency response of 21 X 21 window-designed filters [2]