Patent ID: 7453503

Claim:
A pixel interpolation method for interpolating image data for a green pixel captured by an electronic imaging device having a Bayer arrangement, wherein, taking the image data of a red pixel situated at row M and column N to be RMN, taking the image data of a green pixel situated at row M and column N to be GMN, taking the image data of a blue pixel situated at row M and column N to be BMN, and taking the image data of an interpolation pixel situated at row M and column N to be XMN; calculating ave by: ave=(G(M−1)(N−1)+G(M−1)(N+1)+G(M+1)(N−1)+G(M+1)(N+1))/4; calculating horiz by: horiz=median (GM(N−2), (G(M−1)(N−1)+G(M+1)(N−1))/2, (G(M−1)(N+1)+G(M+1)(N+1))/2, GM(N+2)); calculating Slash by: Slash=median (G(M−2)(N+2), G(M−1)(N+1), G(M+1)(N−1), G(M+2)(N−2)); calculating Bslash by: Bslash=median(G(M−2)(N−2), G(M−1)(N−1), G(M+1)(N+1), G(M+2)(N+2)); and taking the image data of said interpolation pixel XMN as the value of said horiz value, said Slash value and said Bslash value which produces the smallest differential with respect to said ave value.