Patent ID: 8897551

Claim:
A data processing apparatus comprising: a horizontal interpolation unit which performs interpolation in order for each of pixels forming a horizontal line to have two color data and creates interpolation data for each of the pixels, one of the two color data being the interpolation data and another of the two color data being original pixel data, for each horizontal line of Bayer data output from an imaging section; and a data size reducing unit which creates data having reduced data amount for each horizontal line by using the two color data of each of the pixels and outputs Bayer data being formed with the data being created, wherein the horizontal interpolation unit performs the interpolation by using the following expressions (1) to (5): IMP ⁡ ( i ) = ∑ a = 0 3 ⁢ ⁢ k_imp ⁢ ( a ) · Din ⁡ ( i + 2 ⁢ a - 3 ) ∑ a = 0 3 ⁢ ⁢ k_imp ⁢ ( a ) ( 1 ) CD ⁡ ( i ) = { Din ⁡ ( i ) - IMP ⁡ ( i ) ( if ⁢ ⁢ i = even ⁢ ⁢ number ) IMP ⁡ ( i ) - Din ⁡ ( i ) ( if ⁢ ⁢ i = odd ⁢ ⁢ number ) ( 2 ) CD_avg ⁢ ( i ) = ∑ a = - 2 2 ⁢ ⁢ k_cd ⁢ ( a + 2 ) · CD ⁡ ( i + a ) ∑ a = - 2 2 ⁢ ⁢ k_cd ⁢ ( a + 2 ) ( 3 ) IMP ′ ⁡ ( i ) = { Din ⁡ ( i ) - CD_avg ⁢ ( i ) ( if ⁢ ⁢ i = even ⁢ ⁢ number ) Din ⁡ ( i ) + CD_avg ⁢ ( i ) ( if ⁢ ⁢ i = odd ⁢ ⁢ number ) ( 4 ) Deven ⁡ ( i ) = { Din ⁡ ( i ) ( if ⁢ ⁢ i = even ⁢ ⁢ number ) IMP ′ ⁡ ( i ) ( if ⁢ ⁢ i = odd ⁢ ⁢ number ) ⁢ ⁢ Dodd ⁡ ( i ) = { IMP ′ ⁡ ( i ) ( if ⁢ ⁢ i = even ⁢ ⁢ number ) Din ⁡ ( i ) ( if ⁢ ⁢ i = odd ⁢ ⁢ number ) ( 5 ) wherein Din(i) indicates data of a pixel in each horizontal line in the Bayer data, i indicates a position of the pixel in the each horizontal line, IMP(i) indicates the interpolation data being created, IMP'(i) indicates interpolation data being corrected, k_imp and k_cd each indicates a coefficient for weighting, CD(i) indicates a difference between the two color data, CD_avg(i) indicates an average of the difference, and Deven(i) and Dodd(i) each indicates data of a pixel to which the interpolation in the horizontal direction is performed.