JP2001157217A - Color interpolation method for single board type solid- state imaging device and recording medium for recording color interpolation processing program for the single board type solid-state imaging device - Google Patents

Color interpolation method for single board type solid- state imaging device and recording medium for recording color interpolation processing program for the single board type solid-state imaging device

Info

Publication number
JP2001157217A
JP2001157217A JP33641499A JP33641499A JP2001157217A JP 2001157217 A JP2001157217 A JP 2001157217A JP 33641499 A JP33641499 A JP 33641499A JP 33641499 A JP33641499 A JP 33641499A JP 2001157217 A JP2001157217 A JP 2001157217A
Authority
JP
Japan
Prior art keywords
pixel
row
lines
color
coefficients
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP33641499A
Other languages
Japanese (ja)
Other versions
JP4006908B2 (en
Inventor
Shinichi Arasaki
真一 荒崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP33641499A priority Critical patent/JP4006908B2/en
Publication of JP2001157217A publication Critical patent/JP2001157217A/en
Application granted granted Critical
Publication of JP4006908B2 publication Critical patent/JP4006908B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce a computing amount even while realizing an image with high quality through the use of principles of the bi-cubic method and to select values easily processed by a computer for coefficients used for arithmetic operations. SOLUTION: A pixel actually in existence (to be a pixel corresponding to cyan C33) is selected for a position to which color interpolation is applied. The color component cyan C33 of the pixel (target pixel) is used for the color component thereof, as to yellow, magenta, green, a pixel rage of 4×4 is set around the target pixel for each of the color components. Then pixel lines A1-A4 in row directions and pixel lines B1-B4 in column directions are set within a 4×4 pixel range of a color component (let it be yellow) to obtain 4 coefficients on the basis of distances Dy1-Dy4 between each row direction pixel line and the target pixel and 4 coefficients on the basis of distances Dx1-Dx4 between each column direction pixel line and the target pixel and the value of the yellow of the target pixel is obtained through a matrix arithmetic operation by using the coefficients and the pixel values in existence within the 4×4 pixel range. The other color components can similarly be obtained.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は単板式固体撮像素子
の色補間を行う方法に係わり、特に、バイキュービック
(Bi Cubic)法の原理を用いた色補間を少ない演算量で
可能とする単板式固体撮像素子の色補間方法および単板
式固体撮像素子の色補間処理プログラムを記録した記録
媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for performing color interpolation of a single-chip solid-state imaging device, and more particularly to a single-chip solid-state imaging device capable of performing color interpolation using the principle of the Bi Cubic method with a small amount of calculation. The present invention relates to a color interpolation method for a solid-state imaging device and a recording medium that stores a color interpolation processing program for a single-chip solid-state imaging device.

【0002】[0002]

【従来の技術】ディジタルカメラなど画像をディジタル
データとして取り出すことのできる画像入力装置には、
CCD(Charge Coupled Device)と呼ばれる固体撮像
素子が用いられている。このCCDは一般の家庭用機器
では、単一のCCDから3つの基本となる色を取り出
す、いわゆる単板式方式が採用されている。
2. Description of the Related Art Image input devices such as a digital camera capable of extracting an image as digital data include:
A solid-state imaging device called a CCD (Charge Coupled Device) is used. In a general household appliance, a so-called single-panel type CCD is used for extracting three basic colors from a single CCD.

【0003】この単板式のCCDは基本となる色(ここ
では補色を用いて説明する)として、シアン(C)、イ
エロ(Y)、マゼンタ(M)とそれにグリーン(G)を
加えた4つの色を1セットとしてたとえば図4に示すよ
うにそれぞれの画素対応に2次元平面的な配列となって
いる。
This single-plate CCD has four basic colors (described here using complementary colors): cyan (C), yellow (Y), magenta (M), and green (G). As a set of colors, for example, as shown in FIG. 4, a two-dimensional planar array is provided for each pixel.

【0004】この図4において、今、シアンC22に対
応する画素部分に注目して考えると、この画素(注目画
素という)における色はシアンのみの色情報しか得られ
ないことになる。したがって、この部分の色再現を行う
には、近傍の色を用いた色補間を行う必要がある。一例
としては、マゼンタはシアンC22の直ぐ上にあるマゼ
ンタM12と直ぐ下にあるマゼンタM22を用いて、両
者の値を足して2で割るいわゆる単純平均によって求め
た値を注目画素のマゼンタの値とする。なお、ここでの
説明では、C22やM12などの数値「22」や「1
2」は、図4において、それぞれの色成分の座標上の位
置を示しているが、便宜的にれぞれの色成分の値(画素
値)を示すものとする、これは、他の色においても同様
であり、以下の説明でもこれを用いる。
In FIG. 4, when attention is paid to a pixel portion corresponding to cyan C22, only the color information of cyan in the pixel (referred to as a pixel of interest) can be obtained. Therefore, in order to reproduce the color of this portion, it is necessary to perform color interpolation using nearby colors. As an example, magenta uses magenta M12 immediately above cyan C22 and magenta M22 immediately below cyan C22, and adds the values of the two and divides by 2 to obtain the value obtained by so-called simple averaging as the value of the magenta of the pixel of interest. I do. In the description here, numerical values “22” and “1” such as C22 and M12 are used.
In FIG. 4, “2” indicates the position on the coordinates of each color component. For convenience, it indicates the value (pixel value) of each color component. And the same is used in the following description.

【0005】同様に、イエロはシアンC22の左隣にあ
るイエロY21と右隣にあるイエロY22を用いて、両
者の値を足して2で割る単純平均によって得られた値を
注目画素C22のイエロの値とする。
Similarly, yellow uses the yellow Y21 to the left of cyan C22 and the yellow Y22 to the right of cyan C22, adds the values of both, and divides the value obtained by simple averaging by 2 to the yellow of the pixel of interest C22. Value.

【0006】同様に、グリーンはシアンC22の斜め左
上にあるグリーンG11と斜め右上にあるグリーンG1
2、斜め左下にあるグリーンG21と斜め右下にるグリ
ーンG22をいて、これらの値を足して4で割る単純平
均によって得られた値を注目画素のグリーンの値とす
る。
Similarly, green is green G11 at the upper left corner of cyan C22 and green G1 at the upper right corner of cyan C22.
2. There is a green G21 at the diagonally lower left and a green G22 at the diagonally lower right, and a value obtained by a simple average of adding these values and dividing by 4 is defined as the green value of the target pixel.

【0007】このように、注目画素を中心とした所定の
画素範囲に存在するそれぞれの画素対応の色成分を用い
て注目画素の色補間を行うようにしている。
As described above, the color interpolation of the target pixel is performed using the color components corresponding to the respective pixels existing in the predetermined pixel range centering on the target pixel.

【0008】また、これとは別にたとえば、もともと存
在していない部分の画素に対する色補間を行うこともあ
る。これは画素データを内挿することによって、主に、
画像の平滑化とともに画像の鮮鋭化を図るためであり、
その手法として従来より、バイキュービック法と呼ばれ
る補間方法がある。このバイキュービック法について以
下に簡単に説明する。
Alternatively, for example, color interpolation may be performed on pixels that do not exist originally. This is mainly by interpolating the pixel data,
This is for sharpening the image as well as smoothing the image.
Conventionally, there is an interpolation method called a bicubic method. The bicubic method will be briefly described below.

【0009】バイキュービックは、本来、無限に広がる
範囲からそれぞれの色成分ごとに画素補間演算を行う
が、処理を簡略化するために、それぞれの色成分ごとに
4×4の画素範囲を設定して行うことが一般的に行われ
ている。
In the bicubic, a pixel interpolation operation is originally performed for each color component from an infinitely wide range, but in order to simplify the processing, a 4 × 4 pixel range is set for each color component. It is generally done.

【0010】たとえば、ある1つの色成分について図5
に示すような4×4の画素範囲を設定し、その範囲内に
存在するそれぞれの画素の色成分の値(画素値)をQ1
1,Q12,・・・,Q44で表すとする。このような
設定において、周囲4画素の中心に位置する格子点p
(この場合は、Q22,Q23,Q32,Q33の中心
位置)に画素補間することを考える。一般に、求めるべ
き点の画素値Gpは、次に示す行列式で求めることがで
きる。
For example, FIG. 5 shows one color component.
Is set as a 4 × 4 pixel range, and the value (pixel value) of the color component of each pixel within the range is set to Q1.
1, Q12,..., Q44. In such a setting, the grid point p located at the center of the surrounding four pixels
(In this case, the pixel interpolation to Q22, Q23, Q32, and Q33) is considered. Generally, the pixel value Gp of a point to be obtained can be obtained by the following determinant.

【0011】[0011]

【数1】 (Equation 1)

【0012】この行列式における行ベクトル(y1,y
2,y3,y4)と列ベクトル(x1,x2,x3,x
4)は、色補間すべき点からその色成分に対応する既存
の画素の存在する列方向ライン及び行方向ラインまでの
距離から決まる係数である。
The row vector (y1, y
2, y3, y4) and column vector (x1, x2, x3, x
4) is a coefficient determined from a distance from a point to be color-interpolated to a column direction line and a row direction line where existing pixels corresponding to the color component exist.

【0013】これを図5によって説明すると、y1は格
子点pと行方向画素ラインA1との間の距離Dy1によ
って決まる係数、y2は格子点pと行方向画素ラインA
2との間の距離Dy2によって決まる係数、y3は格子
点pと行方向画素ラインA3との間の距離Dy3によっ
て決まる係数、y4は格子点pと行方向画素ラインA4
との間の距離Dy4によって決まる係数である。また、
x1は格子点pと列方向画素ラインB1との間の距離D
x1によって決まる係数、x2は格子点pと列方向画素
ラインB2との間の距離Dx2によって決まる係数、x
3は格子点pと列方向画素ラインB3との間の距離Dx
3によって決まる係数、x4は格子点pと列方向画素ラ
インB4との間の距離Dx4によって決まる係数であ
る。
Referring to FIG. 5, y1 is a coefficient determined by the distance Dy1 between the grid point p and the row-direction pixel line A1, and y2 is a coefficient determined by the grid point p and the row-direction pixel line A1.
2, a coefficient determined by the distance Dy3 between the grid point p and the row direction pixel line A3, and y4 is a coefficient determined by the distance Dy3 between the grid point p and the row direction pixel line A4.
Is a coefficient determined by the distance Dy4 between. Also,
x1 is the distance D between the grid point p and the pixel line B1 in the column direction.
a coefficient determined by x1, x2 is a coefficient determined by a distance Dx2 between the grid point p and the column-direction pixel line B2, x
3 is the distance Dx between the grid point p and the column-direction pixel line B3
X4 is a coefficient determined by the distance Dx4 between the grid point p and the column-direction pixel line B4.

【0014】そして、これらそれぞれの係数y1,y
2,y3,y4とx1,x2,x3,x4を、ここでは
これらを代表して係数kと表し、かつ、上述のそれぞれ
の距離Dy1、 Dy1、 Dy1、 Dy1とDx1、
Dx1、 Dx1、 Dx1を代表して距離Dと表せば、
定数kは、距離Dの大きさに応じて K=1−2|D|2+|D|3 (ただし、0≦|D|<1) ( 2) K=4−8|D|+5|D|2−|D|3 (ただし、1≦|D|<2) ( 3) K=0 (ただし、2≦|D|) ( 4) で求められる。
The coefficients y1, y
2, y3, y4 and x1, x2, x3, x4 are represented here as a coefficient k, and the respective distances Dy1, Dy1, Dy1, Dy1 and Dx1,
If Dx1, Dx1, and Dx1 are represented as distance D,
The constant k is given by K = 1-2 | D | 2+ | D | 3 (where 0 ≦ | D | <1) (2) K = 4-8 | D | +5 | D | 2- | D | 3 (1 ≦ | D | <2) (3) K = 0 (2 ≦ | D |) (4)

【0015】つまり、距離Dが0≦|D|<1である場
合には(2)式を用い、1≦|D|<2である場合には
(3)式を用い、2≦|D|である場合には(4)式を
用いる。
That is, when the distance D satisfies 0 ≦ | D | <1, the expression (2) is used. When 1 ≦ | D | <2, the expression (3) is used. If |, equation (4) is used.

【0016】なお、距離Dは、行方向および列方向のそ
れぞれの画素ライン間隔をD=1としている。したがっ
て、画素ライン間隔の1/2であればD=0.5、画素ラ
イン間隔の1/4であればD=0.25とする。たとえば、
図5において、格子点pと行方向画素ラインA1との間
の距離D(この場合はDy1で表される)はDy1=1.5
であり、格子点pと行方向画素ラインA2との間の距離
D(この場合はDy2で表される)はDy2=0.5であ
る。また、格子点pと列方向画素ラインB1との間の距
離D(この場合はDx1で表される)はDx1=1.5であ
り、格子点pと列方向画素ラインB2との間の距離D
(この場合はDx2で表される)はDx2=0.5である。
The distance D is set such that the pixel line interval in the row direction and the column direction is D = 1. Therefore, if the pixel line interval is 2, D = 0.5, and if it is 画素, D = 0.25. For example,
In FIG. 5, the distance D (in this case, represented by Dy1) between the grid point p and the row-direction pixel line A1 is Dy1 = 1.5.
And the distance D between the grid point p and the row-direction pixel line A2 (in this case, represented by Dy2) is Dy2 = 0.5. The distance D between the lattice point p and the column-direction pixel line B1 (in this case, represented by Dx1) is Dx1 = 1.5, and the distance D between the lattice point p and the column-direction pixel line B2.
(Represented by Dx2 in this case) is Dx2 = 0.5.

【0017】このような距離をその値の大きさに応じて
上述の(2)〜(4)式のいずれかに代入することによ
って、係数y1,y2,y3,y4とx1,x2,x
3,x4が求められる。以下、具体例により説明する。
By substituting such a distance into any of the above equations (2) to (4) according to the magnitude of the value, the coefficients y1, y2, y3, y4 and x1, x2, x
3, x4 are required. Hereinafter, a specific example will be described.

【0018】マトリクス状の画素配列のそれぞれの画素
に対し図6に示すような色成分配列(図4と同じ色成分
配列)となっている単板式固体撮像素子を考える。この
ような単板式固体撮像素子において、格子点pの位置に
画素補間(色補間)を行う例について説明する。なお、
この格子点pは、その周囲にある4画素(G22、M2
3,Y32.C33)の中心に位置しているものとす
る。
Consider a single-chip solid-state imaging device having a color component array as shown in FIG. 6 (the same color component array as in FIG. 4) for each pixel in a matrix pixel array. An example in which pixel interpolation (color interpolation) is performed at the position of the lattice point p in such a single-plate solid-state imaging device will be described. In addition,
This grid point p is composed of four pixels (G22, M2
3, Y32. C33).

【0019】この格子点pを中心にしてシアン、マゼン
タ、イエロ、グリーンそれぞれについて4画素×4画素
の16画素を用いて格子点pにおけるそれぞれの色成分
(シアンCp、イエロYp、マゼンタMp、グリーンG
p)の値を求める。
Each of the color components (cyan Cp, yellow Yp, magenta Mp, green) at grid point p using 16 pixels of 4 pixels × 4 pixels for each of cyan, magenta, yellow, and green around grid point p. G
Find the value of p).

【0020】すなわち、シアンについては、図6におい
て、C11〜C14、 C21〜C24、 C31〜C3
4、 C41〜C44でなる4画素×4画素の16画
素、イエロについては同様にY11〜Y14、Y21〜
Y24、 Y31〜Y34、Y41〜Y44でなる4画
素×4画素の16画素、マゼンタについては同様にM1
1〜M14、 M21〜M24、 M31〜M34、M4
1〜M44でなる4画素×4画素の16画素、 グリー
ンについても同様にG11〜G14、G21〜G24、
G31〜G34、G41〜G44でなる4画素×4画素
の16画素を用いるものとする。
That is, for cyan, in FIG. 6, C11 to C14, C21 to C24, C31 to C3
4, 16 pixels of 4 pixels × 4 pixels composed of C41 to C44, and similarly for yellow, Y11 to Y14, Y21 to Y21
Y24, Y31 to Y34, Y41 to Y44, 4 pixels × 4 pixels, 16 pixels, magenta is similarly M1
1 to M14, M21 to M24, M31 to M34, M4
16 pixels of 4 × 4 pixels consisting of 1 to M44, and similarly for green, G11 to G14, G21 to G24,
It is assumed that 16 pixels of 4 × 4 pixels G31 to G34 and G41 to G44 are used.

【0021】このような範囲を設定したとき、格子点p
におけるシアンCpは、
When such a range is set, the lattice point p
Is Cp in

【0022】[0022]

【数2】 (Equation 2)

【0023】の行列式で表される。Is represented by the following determinant.

【0024】この(5)式における係数y1,y2,y
3,y4とx1,x2,x3,x4を求める。なお、こ
こでは、格子点pにおけるシアンの値Cpを求めるので
あるから、図6に示すように、C11〜C14の存在す
る画素ラインを行方向画素ラインA1、 C21〜C2
4の存在する画素ラインを行方向画素ラインA2、 C
31〜C34の存在する画素ラインを行方向画素ライン
A3、 C41〜C44の存在する画素ラインを行方向
画素ラインA4とし、C11〜C41の存在する画素ラ
インを列方向画素ラインB1、 C12〜C42の存在
する画素ラインを列方向画素ラインB2、 C13〜C
43の存在する画素ラインを列方向画素ラインB3、
C14〜C44の存在する画素ラインを列方向画素ライ
ンB4とする。
The coefficients y1, y2, y in the equation (5)
3, y4 and x1, x2, x3, x4 are obtained. In this case, since the cyan value Cp at the grid point p is determined, as shown in FIG. 6, the pixel lines where C11 to C14 exist are replaced with the row direction pixel lines A1, C21 to C2.
4 are located in the row direction pixel lines A2, C
A pixel line where 31 to C34 is present is a row direction pixel line A3, a pixel line where C41 to C44 is present is a row direction pixel line A4, and a pixel line where C11 to C41 is present is a column direction pixel line B1, C12 to C42. The existing pixel lines are defined as column-direction pixel lines B2, C13 to C13.
The pixel line in which 43 exists is defined as a column-direction pixel line B3,
The pixel line where C14 to C44 exists is defined as a column direction pixel line B4.

【0025】ここで、係数y1は格子点pと行方向画素
ラインA1との間の距離Dy1によって求められる。つ
まり、この場合、Dy1はDy1=1.75であるので、上
述した(2)〜(4)式のうち(3)式を用いる。これ
によって、y1=−0.046875と求められる。
Here, the coefficient y1 is obtained from the distance Dy1 between the grid point p and the row-direction pixel line A1. That is, in this case, since Dy1 is 1.75, Dy1 is used, and the expression (3) among the expressions (2) to (4) is used. Thus, y1 = −0.046875 is obtained.

【0026】また、係数y2は格子点pと行方向画素ラ
インA2との間の距離Dy2によって求められる。つま
り、この場合、Dy2はDy2=0.75であるので、上述
した(2)〜(4)式のうち(2)式を用いる。これに
よって、y2=0.296875と求められる。
The coefficient y2 is obtained from the distance Dy2 between the grid point p and the row pixel line A2. That is, in this case, Dy2 is Dy2 = 0.75, and therefore, Expression (2) of the above Expressions (2) to (4) is used. Thus, y2 = 0.296875 is obtained.

【0027】また、係数y3は格子点pと行方向画素ラ
インA3との間の距離Dy3によって求められる。つま
り、この場合、Dy3はDy3=0.25であるので、上述
した(2)〜(4)式のうち(2)式を用いる。これに
よって、y3=0.890625と求められる。
The coefficient y3 is obtained from the distance Dy3 between the grid point p and the row pixel line A3. That is, in this case, since Dy3 is Dy3 = 0.25, the expression (2) among the above expressions (2) to (4) is used. Thereby, y3 = 0.906625 is obtained.

【0028】また、係数y4は格子点pと行方向画素ラ
インA4との間の距離Dy4によって求められる。つま
り、この場合、Dy4はDy4=1.25であるので、上述
した(2)〜(4)式のうち(3)式を用いる。これに
よって、y4=−0.140625と求められる。
The coefficient y4 is obtained from the distance Dy4 between the grid point p and the row pixel line A4. That is, in this case, since Dy4 is Dy4 = 1.25, the expression (3) among the above expressions (2) to (4) is used. Thus, y4 = −0.140625 is obtained.

【0029】同様に、係数x1,x2,x3,x4を求
める。係数x1は格子点pと列方向画素ラインB1との
間の距離Dx1によって求められる。つまり、この場
合、Dx1はDx1=1.75であるので、上述した(2)
〜(4)式のうち(3)式を用いる。これによって、x
1=−0.046875と求められる。
Similarly, coefficients x1, x2, x3 and x4 are obtained. The coefficient x1 is obtained from the distance Dx1 between the grid point p and the pixel line B1 in the column direction. That is, in this case, since Dx1 is Dx1 = 1.75, the above-mentioned (2)
Expression (3) among Expressions (4) to (4) is used. This gives x
1 = −0.046875.

【0030】また、係数x2は格子点pと列方向画素ラ
インB2との間の距離Dx2によって求められる。つま
り、この場合、Dx2はDx2=0.75であるので、上述
した(2)〜(4)式のうち(2)式を用いる。これに
よって、x2=0.296875と求められる。
The coefficient x2 is obtained from the distance Dx2 between the grid point p and the pixel line B2 in the column direction. That is, in this case, since Dx2 is Dx2 = 0.75, Expression (2) of the above Expressions (2) to (4) is used. Thus, x2 = 0.296875 is obtained.

【0031】また、係数x3は格子点pと列方向画素ラ
インB3との間の距離Dx3によって求められる。つま
り、この場合、Dx3はDx3=0.25であるので、上述
した(2)〜(4)式のうち(2)式を用いる。これに
よって、x3=0.890625と求められる。
The coefficient x3 is obtained from the distance Dx3 between the grid point p and the pixel line B3 in the column direction. That is, in this case, since Dx3 is Dx3 = 0.25, the expression (2) among the above expressions (2) to (4) is used. As a result, x3 = 0.90625 is obtained.

【0032】また、係数x4は格子点pと列方向画素ラ
インB4との間の距離Dy4によって求められる。つま
り、この場合、Dx4はDx4=1.25であるので、上述
した(2)〜(4)式のうち(3)式を用いる。これに
よって、x4=−0.140625と求められる。
The coefficient x4 is obtained from the distance Dy4 between the grid point p and the pixel line B4 in the column direction. That is, in this case, since Dx4 is Dx4 = 1.25, Expression (3) among Expressions (2) to (4) described above is used. Thus, x4 = −0.140625 is obtained.

【0033】このようにして求められた係数y1,y
2,y3,y4とx1,x2,x3,x4を上述の行列
式(5)式に代入して行列演算を行えば、格子点pにお
けるシアンCpが求められる。
The coefficients y1, y thus obtained
By substituting 2, y3, y4 and x1, x2, x3, x4 into the above-described determinant (5) and performing a matrix operation, cyan Cp at the lattice point p can be obtained.

【0034】次に、格子点p1におけるイエロYpを求
める。このイエロYpは、行列式
Next, the yellow Yp at the lattice point p1 is determined. This yellow Yp is a determinant

【0035】[0035]

【数3】 (Equation 3)

【0036】で表される。Is represented by

【0037】この(6)式におけるそれぞれの係数y
1,y2,y3,y4とx1,x2,x3,x4を求め
る。なお、ここでは、イエロについて求めるのであるか
ら、図7に示すように、イエロY11〜Y14の存在す
る画素ラインを行方向画素ラインA1、 Y21〜Y2
4の存在する画素ラインを行方向画素ラインA2、 Y
31〜Y34の存在する画素ラインを行方向画素ライン
A3、Y41〜Y44の存在する画素ラインを行方向画
素ラインA4とし、Y11〜Y41の存在する画素ライ
ンを列方向画素ラインB1、 Y12〜Y42の存在す
る画素ラインを列方向画素ラインB2、Y13〜Y43
の存在する画素ラインを列方向画素ラインB3、Y14
〜Y44の存在する画素ラインを列方向画素ラインB4
とする。
Each coefficient y in the equation (6)
1, y2, y3, y4 and x1, x2, x3, x4 are obtained. In this case, since the yellow is obtained, the pixel lines in which the yellows Y11 to Y14 exist are replaced with the row direction pixel lines A1, Y21 to Y2 as shown in FIG.
4 is defined as a row-direction pixel line A2, Y
A pixel line where 31 to Y34 is present is a row direction pixel line A3, a pixel line where Y41 to Y44 is present is a row direction pixel line A4, and a pixel line where Y11 to Y41 is present is a column direction pixel line B1 and Y12 to Y42. The existing pixel lines are defined as column-direction pixel lines B2, Y13 to Y43.
Are located in the column direction pixel lines B3 and Y14.
To the pixel line B4 in the column direction.
And

【0038】ここで、係数y1は格子点pと行方向画素
ラインA1との間の距離Dy1によって求められる。つ
まり、この場合、Dy1はDy1=1.75であるので、上
述した(2)〜(4)式のうち(3)式を用いる。これ
によって、 y1=−0.046875と求められる。
Here, the coefficient y1 is obtained from the distance Dy1 between the grid point p and the row-direction pixel line A1. That is, in this case, since Dy1 is 1.75, Dy1 is used, and the expression (3) among the expressions (2) to (4) is used. Thus, y1 = −0.046875 is obtained.

【0039】また、係数y2は格子点pと行方向画素ラ
インA2との間の距離Dy2によって求められる。つま
り、この場合、Dy2はDy2=0.75であるので、上述
した(2)〜(4)式のうち(2)式を用いる。これに
よって、y2=0.296875と求められる。
The coefficient y2 is obtained from the distance Dy2 between the grid point p and the row-direction pixel line A2. That is, in this case, Dy2 is Dy2 = 0.75, and therefore, Expression (2) of the above Expressions (2) to (4) is used. Thus, y2 = 0.296875 is obtained.

【0040】また、係数y3は格子点pと行方向画素ラ
インA3との間の距離Dy3によって求められる。この
場合、Dy3はDy3=0.25であるので、上述した
(2)〜(4)式のうち(2)式を用いる。これによ
り、y3=0.890625と求められる。
The coefficient y3 is obtained from the distance Dy3 between the grid point p and the row pixel line A3. In this case, since Dy3 is Dy3 = 0.25, Expression (2) among Expressions (2) to (4) described above is used. Thus, y3 = 0.890625 is obtained.

【0041】また、係数y4は点pと行方向画素ライン
A4との間の距離Dy4によって求められる。この場
合、Dy4はDy3=1.25であるので、上述した(2)
〜(4)式のうち(3)式を用いる。これにより、同様
にして計算すると、y4=−0.140625と求められる。
The coefficient y4 is obtained from the distance Dy4 between the point p and the pixel line A4 in the row direction. In this case, since Dy4 is Dy3 = 1.25, the above-mentioned (2)
Expression (3) among Expressions (4) to (4) is used. Thus, when similarly calculated, y4 = −0.140625 is obtained.

【0042】同様に、係数x1,x2,x3,x4を求
めるが、この係数x1,x2,x3,x4も係数y1,
y2,y3,y4と同じようにして求められる。ただ
し、この場合は、格子点pと列方向画素ラインB1との
間の距離Dx1(Dx1=1.25)、格子点pと列方向画
素ラインB2との間の距離Dx2(Dx2=0.25)、格
子点pと列方向画素ラインB3との間の距離Dx3(D
x3=0.75)、格子点pと列方向画素ラインB4との間
の距離Dx4(Dx4=1.75)の距離に基づき、(2)
式〜(4)式のいずれかを用いて係数x1,x2,x
3,x4が求められる。ここで、 x1=−0.140625、
x2=0.890625、x3=0.296875、x4=−0.046875と
求められる。
Similarly, the coefficients x1, x2, x3, and x4 are obtained.
It is obtained in the same way as y2, y3, y4. However, in this case, the distance Dx1 between the grid point p and the column direction pixel line B1 (Dx1 = 1.25), the distance Dx2 between the grid point p and the column direction pixel line B2 (Dx2 = 0.25), the grid point distance Dx3 (D
x3 = 0.75), based on the distance Dx4 (Dx4 = 1.75) between the grid point p and the column-direction pixel line B4, (2)
Coefficients x1, x2, x using any of Equations (4) to (4)
3, x4 are required. Here, x1 = −0.140625,
x2 = 0.890625, x3 = 0.296875, x4 = -0.046875.

【0043】このようにして求められた係数y1,y
2,y3,y4とx1,x2,x3,x4を上述の行列
式(6)式に代入して行列演算を行えば、格子点pにお
けるイエロYpが求められる。
Coefficients y1, y thus obtained
By substituting 2, y3, y4 and x1, x2, x3, x4 into the above determinant (6), and performing a matrix operation, the yellow Yp at the lattice point p is obtained.

【0044】次に、格子点p1におけるマゼンタMpを
求める。マゼンタMpは行列式
Next, the magenta Mp at the lattice point p1 is determined. Magenta Mp is determinant

【0045】[0045]

【数4】 (Equation 4)

【0046】で表される。Is represented by

【0047】この(7)式におけるそれぞれの係数y
1,y2,y3,y4とx1,x2,x3,x4を求め
る。ここでは、格子点pにおけるマゼンタの値Mpを求
めるのであるから、図8に示すように、マゼンタM11
〜M14の存在する画素ラインを行方向画素ラインA
1、M21〜M24の存在する画素ラインを行方向画素
ラインA2、M31〜M34の存在する画素ラインを行
方向画素ラインA3、M41〜M44の存在する画素ラ
インを行方向画素ラインA4とし、M11〜M41の存
在する画素ラインを列方向画素ラインB1、 M12〜
M42の存在する画素ラインを列方向画素ラインB2、
M13〜M43の存在する画素ラインを列方向画素ライ
ンB3、 M14〜M44の存在する画素ラインを列方
向画素ラインB4とする。
Each coefficient y in the equation (7)
1, y2, y3, y4 and x1, x2, x3, x4 are obtained. Here, since the magenta value Mp at the lattice point p is obtained, as shown in FIG.
To M14 is defined as a pixel line A in the row direction.
1, the pixel line where M21 to M24 exists is a row direction pixel line A2, the pixel line where M31 to M34 exists is a row direction pixel line A3, and the pixel line where M41 to M44 is present is a row direction pixel line A4. The pixel line in which M41 exists is defined as a column-direction pixel line B1, M12-
A pixel line in which M42 exists is defined as a column-direction pixel line B2,
A pixel line in which M13 to M43 exists is defined as a column direction pixel line B3, and a pixel line in which M14 to M44 exists is defined as a column direction pixel line B4.

【0048】ここで、係数y1は格子点pと行方向画素
ラインA1との間の距離Dy1によって求められる。つ
まり、この場合、Dy1はDy1=1.25であるので、上
述した(2)〜(4)式のうち(3)式を用いる。これ
によって、y1=−0.140625と求められる。
Here, the coefficient y1 is obtained from the distance Dy1 between the grid point p and the row-direction pixel line A1. That is, in this case, since Dy1 is Dy1 = 1.25, the expression (3) among the expressions (2) to (4) is used. Thus, y1 = −0.140625 is obtained.

【0049】また、係数y2は格子点pと行方向画素ラ
インA2との間の距離Dy2によって求められる。つま
り、この場合、Dy2はDy2=0.25であるので、上述
した(2)〜(4)式のうち(2)式を用いる。これに
よって、y2=0.890625と求められる。
The coefficient y2 is obtained from the distance Dy2 between the grid point p and the row pixel line A2. That is, in this case, since Dy2 is Dy2 = 0.25, the expression (2) among the above expressions (2) to (4) is used. Thus, y2 = 0.906625 is obtained.

【0050】また、係数y3は格子点pと行方向画素ラ
インA3との間の距離Dy3によって求められる。つま
り、この場合、Dy3はDy3=0.75であるので、上述
した(2)〜(4)式のうち(2)式を用いる。これに
よって、y3=0.296875と求められる。
The coefficient y3 is obtained from the distance Dy3 between the grid point p and the row-direction pixel line A3. That is, in this case, since Dy3 is Dy3 = 0.75, Expression (2) among Expressions (2) to (4) described above is used. Thus, y3 = 0.296875 is obtained.

【0051】また、係数y4は格子点pと行方向画素ラ
インA4との間の距離Dy4によって求められる。つま
り、この場合、Dy4はDy4=1.75であるので、上述
した(2)〜(4)式のうち(3)式を用いる。これに
よって、同様にして計算すると、y4=−0.046875と求
められる。
The coefficient y4 is obtained from the distance Dy4 between the grid point p and the row pixel line A4. In other words, in this case, since Dy4 is 1.75, Dy4 uses the expression (3) among the above expressions (2) to (4). Thus, when similarly calculated, y4 = −0.046875 is obtained.

【0052】同様に、係数x1,x2,x3,x4を求
めるが、この係数x1,x2,x3,x4も係数y1,
y2,y3,y4と同じようにして求められる。ただ
し、この場合は、格子点pと列方向画素ラインB1との
間の距離Dx1(Dx1=1.75)、格子点pと列方向画
素ラインB2との間の距離Dx2(Dx2=0.75)、格
子点pと列方向画素ラインB3との間の距離Dx3(D
x3=0.25)、格子点pに対する列方向画素ラインB4
の距離Dx4(Dx4=1.25)の距離に基づき、(2)
式〜(4)式のいずれかを用いて係数x1,x2,x
3,x4が求められる。ここで、x1=−0.046875、x
2=0.296875、x3=0.890625、x4=−0.140625と求
められる。
Similarly, coefficients x1, x2, x3, and x4 are obtained.
It is obtained in the same way as y2, y3, y4. However, in this case, the distance Dx1 between the grid point p and the column direction pixel line B1 (Dx1 = 1.75), the distance Dx2 between the grid point p and the column direction pixel line B2 (Dx2 = 0.75), the grid point distance Dx3 (D
x3 = 0.25), column-direction pixel line B4 for grid point p
(2) based on the distance Dx4 (Dx4 = 1.25)
Coefficients x1, x2, x using any of Equations (4) to (4)
3, x4 are required. Here, x1 = −0.046875, x
2 = 0.296875, x3 = 0.906625, x4 = −0.140625.

【0053】このようにして求められた係数y1,y
2,y3,y4とx1,x2,x3,x4を上述の行列
式(7)式に代入して行列演算を行えば、格子点pにお
けるマゼンタMpが求められる。次に、格子点p1にお
けるグリーンGpを求める。グリーンGpは行列式
The coefficients y1, y thus obtained
If the matrix operation is performed by substituting 2, y3, y4 and x1, x2, x3, x4 into the above determinant (7), the magenta Mp at the lattice point p is obtained. Next, a green Gp at the lattice point p1 is obtained. Green Gp is determinant

【0054】[0054]

【数5】 (Equation 5)

【0055】で表される。ここでは、格子点pにおける
グリーンの値Gpを求めるのであるから、図9に示すよ
うに、グリーンG11〜G14の存在する画素ラインを
行方向画素ラインA1、G21〜G24の存在する画素
ラインを行方向画素ラインA2、G31〜G34の存在
する画素ラインを行方向画素ラインA3、G41〜G4
4の存在する画素ラインを行方向画素ラインA4とし、
グリーンG11〜G41の存在する画素ラインを列方向
画素ラインB1、G12〜G42の存在する画素ライン
を列方向画素ラインB2、G13〜G43の存在する画
素ラインを列方向画素ラインB3、G14〜G44の存
在する画素ラインを列方向画素ラインB4とする。
Is represented by Here, since the green value Gp at the grid point p is determined, as shown in FIG. 9, the pixel lines where the greens G11 to G14 exist are replaced with the row direction pixel lines A1 and the pixel lines where the G21 to G24 exist. The pixel lines in which the directional pixel lines A2, G31 to G34 are present are referred to as row direction pixel lines A3, G41 to G4.
4 is defined as a row direction pixel line A4,
The pixel lines where the greens G11 to G41 are present are defined as the column direction pixel lines B1, the pixel lines where the G12 to G42 are present are defined as the column direction pixel lines B2, and the pixel lines where the G13 to G43 are present are defined as the column direction pixel lines B3 and G14 to G44. The existing pixel line is defined as a column direction pixel line B4.

【0056】上述したと同じ考え方で、係数y1,y
2,y3,y4を求めるが、この場合は、格子点pと行
方向画素ラインA1との間の距離Dy1(Dy1=1.2
5)、格子点pと行方向画素ラインA2との間の距離D
y2(Dy2=0.25)、格子点pと行方向画素ラインA
3との間の距離Dy3(Dy3=0.75)、格子点pと行
方向画素ラインA4との間の距離Dy4(Dy4=1.7
5)の距離に基づき、(2)式〜(4)式のいずれかを
用いて係数y1,y2,y3,y4が求められる。ここ
で、y1=−0.140625、y2=0.890625、y3=0.2968
75、y4=−0.046875と求められる。
In the same way as described above, the coefficients y1, y
2, y3, y4 are obtained. In this case, the distance Dy1 (Dy1 = 1.2) between the grid point p and the row-direction pixel line A1 is obtained.
5) The distance D between the grid point p and the row-direction pixel line A2
y2 (Dy2 = 0.25), grid point p and row direction pixel line A
3, a distance Dy3 (Dy3 = 0.75) and a distance Dy4 (Dy4 = 1.7) between the grid point p and the row-direction pixel line A4.
Based on the distance of 5), the coefficients y1, y2, y3, y4 are obtained by using any of the equations (2) to (4). Here, y1 = −0.140625, y2 = 0.906625, y3 = 0.2968
75, y4 = -0.046875.

【0057】同様に、係数x1,x2,x3,x4を求
めるが、この係数x1,x2,x3,x4は、格子点p
と列方向画素ラインB1との間の距離Dx1(Dx1=
1.25)、格子点pと列方向画素ラインB2との間の距離
Dx2(Dx2=0.25)、格子点pと列方向画素ライン
B3との間の距離Dx3(Dx3=0.75)、格子点pと
列方向画素ラインB4との間の距離Dx4(Dx4=1.
75)の距離に基づき、(2)式〜(4)式のいずれかを
用いて係数x1,x2,x3,x4が求められる。ここ
で、x1=−0.140625、x2=0.890625、x3=0.2968
75、x4=−0.046875と求められる。
Similarly, the coefficients x1, x2, x3, and x4 are obtained.
Dx1 (Dx1 =
1.25), the distance Dx2 between the grid point p and the column-direction pixel line B2 (Dx2 = 0.25), the distance Dx3 between the grid point p and the column-direction pixel line B3 (Dx3 = 0.75), the grid point p and the column The distance Dx4 (Dx4 = 1.
Based on the distance of (75), the coefficients x1, x2, x3, and x4 are obtained by using any of the equations (2) to (4). Here, x1 = -0.140625, x2 = 0.890625, x3 = 0.2968
75, x4 = -0.046875.

【0058】このようにして求められた係数y1,y
2,y3,y4とx1,x2,x3,x4を上述の行列
式(8)式に代入して行列演算を行えば、格子点pにお
けるグリーンGpが求められる。
Coefficients y1, y thus obtained
If the matrix operation is performed by substituting 2, y3, y4 and x1, x2, x3, x4 into the above determinant (8), the green Gp at the lattice point p is obtained.

【0059】[0059]

【発明が解決しようとする課題】以上説明したように色
補間を行う方法は従来より各種存在するが、最初に説明
した近傍の画素の色成分を単純平均した値で色補間する
方法では、高品質な画像が得られない場合も多く、ま
た、バイキュービック法による画素補間(色補間)は、
確かに、画像の平滑化や鮮鋭化が図れ良好な画質が得ら
れる利点があるが、非常に計算量が多いのが欠点であ
る。
As described above, there are various methods of performing color interpolation. Conventionally, the method of performing color interpolation by simply averaging the color components of the neighboring pixels described above has a high value. In many cases, high-quality images cannot be obtained. In addition, pixel interpolation (color interpolation) by the bicubic method
Certainly, there is an advantage that an image can be smoothed and sharpened to obtain good image quality, but a disadvantage is that the amount of calculation is extremely large.

【0060】すなわち、1つの画素を補間する際の1つ
の色成分を求めるに必要な処理として、4×4+4=2
0回の乗算を行う必要があるため、1画素について全て
の色成分(シアン。マゼンタ、イエロ、グリーン)を求
めるには、20×4=80回もの乗算処理が必要となっ
てくる。
That is, 4 × 4 + 4 = 2 as processing necessary for obtaining one color component when interpolating one pixel.
Since 0 multiplications need to be performed, 20 × 4 = 80 multiplications are required to obtain all the color components (cyan, magenta, yellow, and green) for one pixel.

【0061】また、行列式に用いられる係数y1,y
2,y3,y4やx1,x2,x3,x4の値は前述し
たように、たとえば、「−0.140625」、「0.890625」と
いうような値であるため、ビットシフトで対応するのが
困難な値となっていて、コンピュータ処理がしにくいな
どの問題もある。
The coefficients y1, y used for the determinant
Since the values of 2, y3, y4 and x1, x2, x3, x4 are, for example, values such as “−0.140625” and “0.890625” as described above, it is difficult to deal with the bit shift. There are also problems such as difficulty in computer processing.

【0062】そこで本発明は、バイキュービック法によ
る画素補間(色補間)の原理を用いながらもその計算量
を大幅に削減することができ、しかも、バイキュービッ
クによる画素補間を行ったと同じような高品質な画像を
得ることができる単板式固体撮像素子の色補間方法およ
び単板式固体撮像素子の色補間処理プログラムを記録し
た記録媒体を提供することを目的とする。
Therefore, according to the present invention, the amount of calculation can be greatly reduced while using the principle of pixel interpolation (color interpolation) by the bicubic method. An object of the present invention is to provide a color interpolation method for a single-chip solid-state imaging device capable of obtaining a high-quality image and a recording medium in which a color-interpolation processing program for the single-chip solid-state imaging device is recorded.

【0063】[0063]

【課題を解決するための手段】上述した目的を達成する
ために、本発明のる単板式固体撮像素子の色補間方法
は、基本となる色成分を構成する個々の色成分が、一定
の繰り返しで個々の画素対応に2次元平面的に配列され
てなる単板式固体撮像素子の色補間方法において、 色
補間を行うべき位置を実際に存在する画素に選び、この
画素を注目画素として、前記補間すべき色成分のうち当
該注目画素がもともと有する色成分についてはそれをそ
の色成分とし、それ以外の色成分については、前記補間
すべき各色成分ごとに、前記注目画素の周囲にm×n
(m,nは正の整数)でなる画素範囲を設定し、この設
定された或る色成分におけるm×nの画素範囲の行方向
画素ライン上にm本の行方向画素ラインを設定し、この
m本の行方向画素ラインそれぞれと前記注目画素との間
の距離に基づいて得られるm個の係数を求めるととも
に、当該色成分におけるm×nの画素範囲の列方向画素
ライン上にn本の列方向画素ラインを設定し、このn本
の列方向画素ラインそれぞれと前記注目画素との間の距
離に基づいて得られるn個の係数を求め、求められたm
個の係数およびn個の係数と、前記m×nの画素範囲に
存在する画素の値とから当該注目画素の色成分を求める
ようにしている。
In order to achieve the above-mentioned object, a color interpolation method for a single-chip solid-state imaging device according to the present invention is provided. In the color interpolation method for a single-chip solid-state imaging device which is two-dimensionally arranged corresponding to individual pixels, a position where color interpolation is to be performed is selected as an actually existing pixel. Of the color components to be used, the color component originally included in the pixel of interest is used as that color component, and the other color components are m × n around the pixel of interest for each color component to be interpolated.
(M, n are positive integers) are set, and m row-direction pixel lines are set on the row-direction pixel lines in the set m × n pixel range for a certain color component, In addition to obtaining m coefficients obtained based on the distance between each of the m row-directional pixel lines and the pixel of interest, n pixels are arranged on a column-direction pixel line of an m × n pixel range in the color component. Are set, and n coefficients obtained based on a distance between each of the n column-direction pixel lines and the pixel of interest are obtained.
The color component of the pixel of interest is determined from the number of coefficients, the number of coefficients n, and the values of the pixels existing in the m × n pixel range.

【0064】また、本発明の単板式固体撮像素子の色補
間処理プログラムを記録した記録媒体は、基本となる色
成分を構成する個々の色成分が、一定の繰り返しで個々
の画素対応に2次元平面的に配列されてなる単板式固体
撮像素子の色補間処理プログラムを記録した記録媒体で
あって、その色補間処理プログラムは、色補間を行うべ
き位置を実際に存在する画素に選び、この画素を注目画
素として、前記補間すべき色成分のうち当該注目画素が
もともと有する色成分についてはそれをその色成分とす
る手順と、それ以外の色成分については、前記補間すべ
き各色成分ごとに、前記注目画素の周囲にm×n(m,
nは正の整数)でなる画素範囲を設定する手順と、この
設定された或る色成分におけるm×nの画素範囲の行方
向画素ライン上にm本の行方向画素ラインを設定し、こ
のm本の行方向画素ラインそれぞれと前記注目画素との
間の距離に基づいて得られるm個の係数を求めるととも
に、当該色成分におけるm×nの画素範囲の列方向画素
ライン上にn本の列方向画素ラインを設定し、このn本
の列方向画素ラインそれぞれと前記注目画素との間の距
離に基づいて得られるn個の係数を求める手順と、求め
られたm個の係数およびn個の係数と、前記m×nの画
素範囲に存在する画素の値とから当該注目画素の色成分
を求める手順とを含んでいる。
The recording medium on which the color interpolation processing program for the single-chip solid-state imaging device of the present invention is recorded is such that each color component constituting a basic color component is two-dimensionally corresponding to each pixel at a constant repetition. A recording medium on which a color interpolation processing program for a single-plate solid-state imaging device arranged in a plane is recorded, wherein the color interpolation processing program selects a position where color interpolation is to be performed to a pixel that actually exists. As a pixel of interest, a procedure for using the color component originally included in the pixel of interest among the color components to be interpolated as the color component, and for the other color components, for each color component to be interpolated, M × n (m, m,
n is a positive integer), and m row-direction pixel lines are set on the row-direction pixel lines in the m × n pixel range for the set color component. While obtaining m coefficients obtained based on the distance between each of the m row-direction pixel lines and the pixel of interest, n pieces of the row-direction pixel lines in the m × n pixel range of the color component A procedure of setting a column-direction pixel line and obtaining n coefficients obtained based on a distance between each of the n column-direction pixel lines and the pixel of interest; And a procedure for obtaining the color component of the pixel of interest from the coefficients of the pixels in the m × n pixel range.

【0065】また、前記求められたm個の係数およびn
個の係数と、m×nの画素範囲に存在する画素の値とか
ら当該注目画素の色成分を求める演算処理は、m×nの
画素範囲におけるm行n列の行列とm個の係数でなる行
ベクトルとn個の係数でなる列ベクトルとの積をとる行
列演算である。
Further, the obtained m coefficients and n
The arithmetic processing for obtaining the color component of the pixel of interest from the number of coefficients and the values of the pixels present in the m × n pixel range is performed by using a matrix of m rows and n columns and m coefficients in the m × n pixel range. This is a matrix operation that takes the product of a given row vector and a column vector consisting of n coefficients.

【0066】そして、前記m,nはm=n=4であっ
て、色補間すべき或る色成分について前記注目画素の周
囲に4×4の画素範囲を設定するとともに、その色成分
で構成される4×4の画素範囲における4本の行方向画
素ラインと4本の列方向画素ラインを設定し、前記注目
画素が4本の行方向画素ラインの中のいずれかの行方向
画素ライン上に存在する場合には、その注目画素と4本
の行方向画素ラインとの間隔が整数値で表わされ、その
場合、その注目画素と4本の行方向画素ラインとの間隔
から求められる4個の係数が0または1となり、また、
前記注目画素が4本の列方向画素ラインの中のいずれか
の列方向画素ライン上に存在する場合には、その注目画
素と4本の列方向画素ラインとの間隔が整数値で表わさ
れ、その場合、その注目画素と4本の列方向画素ライン
との間隔から求められる4個の係数が0または1とな
り、また、前記注目画素がいずれの行方向画素ライン上
にも存在しない場合には、その注目画素と4本の行方向
画素ラインとの間隔から求められる4個の係数の値がビ
ットシフトで対応可能な値で表わされ、前記注目画素が
いずれの列方向画素ライン上にも存在しない場合には、
その注目画素と4本の列方向画素ラインとの間隔から求
められる4個の係数がビットシフトで対応可能な値で表
せる。
M and n are m = n = 4, and for a certain color component to be color-interpolated, a 4 × 4 pixel range is set around the pixel of interest, and the color component is used. Four row-direction pixel lines and four column-direction pixel lines in a 4 × 4 pixel range to be set are set, and the target pixel is located on any one of the four row-direction pixel lines. , The interval between the pixel of interest and the four row-directional pixel lines is represented by an integer value. In this case, 4 is obtained from the interval between the pixel of interest and the four row-directional pixel lines. Coefficients are 0 or 1, and
When the target pixel exists on any one of the four column-direction pixel lines, the interval between the target pixel and the four column-direction pixel lines is represented by an integer value. In this case, if the four coefficients obtained from the distance between the target pixel and the four column-directional pixel lines are 0 or 1, and the target pixel does not exist on any of the row-directional pixel lines, Is represented by the values of the four coefficients obtained from the interval between the target pixel and the four row-direction pixel lines, which can be handled by bit shift. Also does not exist,
The four coefficients obtained from the distance between the pixel of interest and the four pixel lines in the column direction can be represented by values that can be handled by bit shifting.

【0067】これら各発明において、前記注目画素の周
囲にm×nの画素範囲を設定する際、当該注目画素を中
心とした上下左右対称となるm×nの画素範囲の設定が
行えない場合は、すでに処理の終了した画素を優先して
含むようなm×nの画素範囲設定を行うようにしてい
る。
In each of these inventions, when an m × n pixel range is set around the target pixel, it is difficult to set an m × n pixel range that is vertically and horizontally symmetrical about the target pixel. The m × n pixel range is set so as to preferentially include the pixels for which processing has already been completed.

【0068】本発明は、原理的にはバイキュービック法
による画素補間(色補間)の原理を用いるのであるが、
色補間を行うべき位置を実際に存在する画素に選ぶよう
にする。これによって、従来から行われているバイキュ
ービック法に比べて、計算量を大幅に削減することがで
き、しかも、バイキュービックによる画素補間を行った
と同じような高品質な画像を得ることができる。
The present invention uses the principle of pixel interpolation (color interpolation) by the bicubic method in principle.
The position where the color interpolation is to be performed is selected for the pixel that actually exists. As a result, the amount of calculation can be greatly reduced as compared with the conventional bicubic method, and a high-quality image similar to that obtained by performing pixel interpolation by bicubic can be obtained.

【0069】そして、求められたm個の係数およびn個
の係数と、m×nの画素範囲に存在する画素の値とから
当該注目画素の色成分を求める演算処理は、m×nの画
素範囲におけるm行n列の行列とm個の係数でなる行ベ
クトルとn個の係数でなる列ベクトルとの積をとる演算
処理であり、このとき、本発明では、それぞれライン間
距離から求められる係数の値が0または1となることも
多く、このため、行列演算を大幅に簡略化することがで
きる。また、それぞれライン間距離から求められる係数
の値が0または1とならない場合であっても、それぞれ
の係数の値を、計算機がビットシフトで対応できる数値
とすることができ、計算機の処理負担を小さくすること
ができ処理の高速化を図ることできる。
Then, the arithmetic processing for obtaining the color component of the pixel of interest from the obtained m coefficients and n coefficients and the values of the pixels existing in the m × n pixel range is performed by m × n pixels This is an arithmetic process for calculating the product of a matrix of m rows and n columns in a range, a row vector composed of m coefficients, and a column vector composed of n coefficients. At this time, according to the present invention, each is obtained from the distance between lines. In many cases, the value of the coefficient is 0 or 1, so that the matrix operation can be greatly simplified. Further, even when the value of the coefficient obtained from the distance between lines does not become 0 or 1, the value of each coefficient can be set to a value that can be handled by the computer by bit shifting, and the processing load on the computer is reduced. The size can be reduced and the processing speed can be increased.

【0070】また、注目画素の周囲にm×nの画素範囲
を設定する際、注目画素を中心とした上下左右対称とな
るm×nの画素範囲の設定が行えない場合は、すでに処
理の終了した画素を優先して含むような画素範囲設定を
行うようにする。このようにすでに色補間がなされた画
素を、限られた範囲内で少しでも多く使うことによっ
て、処理後の画像全体を高品質なものとすることができ
る。
When an m × n pixel range is set around the target pixel, if the m × n pixel range that is vertically and horizontally symmetrical about the target pixel cannot be set, the processing is already terminated. The pixel range is set so as to preferentially include the selected pixel. By using as many of the pixels already color-interpolated as possible within a limited range, the entire image after processing can be made of high quality.

【0071】[0071]

【発明の実施の形態】以下、本発明の実施の形態につい
て説明する。なお、この実施の形態で説明する内容は、
本発明の単板式固体撮像素子の色補間方法および単板式
固体撮像素子の色補間処理プログラムを記録した記録媒
体における画素補間処理プログラムの具体的な処理内容
をも含むものである。
Embodiments of the present invention will be described below. The contents described in this embodiment are as follows.
The present invention also includes the specific processing content of the pixel interpolation processing program in the recording medium in which the color interpolation method for the single-chip solid-state imaging device and the color interpolation processing program for the single-chip solid-state imaging device according to the present invention are recorded.

【0072】本発明は基本的な原理としては前述した従
来技術の項で説明したバイキュービック法を用いるので
あるが、本発明では格子点ではなく実際に画素の存在す
る位置で色補間を行うようにしている。以下、具体例に
ついて説明する。
The basic principle of the present invention is to use the bicubic method described in the section of the prior art, but in the present invention, color interpolation is performed not at the lattice point but at the position where the pixel actually exists. I have to. Hereinafter, a specific example will be described.

【0073】本発明の実施の形態を説明する画素配列に
対する色成分配列は前述のバイキュービック法の説明で
用いた図6〜図9と同じものを使用する。
The same color component array as the pixel array for explaining the embodiment of the present invention is the same as that shown in FIGS. 6 to 9 used in the description of the bicubic method described above.

【0074】従来では実際に存在しない画素を補間する
例として格子点pの画素補間(色補間)を行う例につい
て説明したが、ここでは、補間する画素の位置を少し変
えて実際に存在する画素での色補間を行うようにしたこ
とに特徴がある。
Conventionally, an example in which pixel interpolation (color interpolation) of a grid point p is performed as an example of interpolating a pixel that does not actually exist has been described. It is characterized in that the color interpolation is performed in.

【0075】この実施の形態では、シアンC33の位置
(点qとする)に存在する画素(注目画素という)の色
補間を行う例について説明する。この場合、その注目画
素におけるシアンの色成分はシアンC33の値をそのま
ま使用する。したがって、それ以外のイエロ、マゼン
タ、グリーンを求めればよい。なお、求めようとするイ
エロ、マゼンタ、グリーンをイエロYq、マゼンタM
q、グリーンGqとする。そして、イエロYqは図1、
マゼンタMqは図2、グリーンGqは図3を参照しなが
ら説明する。
In this embodiment, an example will be described in which color interpolation is performed on a pixel (referred to as a pixel of interest) existing at the position (point q) of cyan C33. In this case, the cyan color component of the target pixel uses the value of cyan C33 as it is. Therefore, other yellow, magenta and green may be sought. The yellow, magenta, and green that are sought are yellow Yq and magenta M, respectively.
q, green Gq. And yellow Yq is in Figure 1,
The magenta Mq will be described with reference to FIG. 2 and the green Gq will be described with reference to FIG.

【0076】また、ここでも、1つ1つの色成分につい
て注目画素の周辺に存在する4×4の画素範囲を用い
る。ただし、色成分によっては注目画素を中心とした左
右上下対称となる4×4の画素範囲を設定できない場合
も生じるので、その場合は、すでに処理の終了した画素
を優先した画素範囲の設定を行う。たとえば、1つの画
像について最上段の画素ラインについて最も左に存在す
る画素から右方向へと処理を行い、次のラインについて
も最も左に存在する画素から右方向へと処理を行うとい
うように、画像全体で見れば左上から右下へと処理を行
ういわゆるラスタスキャン的な処理を行う場合には、注
目画素を基準として左方向や上方向に存在する画素を優
先して4×4の画素範囲を設定するようにする。
Also, here, a 4 × 4 pixel range existing around the target pixel is used for each color component. However, depending on the color component, a 4 × 4 pixel range that is symmetrical left and right with respect to the target pixel may not be able to be set. In this case, a pixel range that has been given priority to a pixel that has already been processed is set. . For example, for one image, processing is performed from the leftmost pixel to the right for the uppermost pixel line, and processing is also performed to the next line from the leftmost pixel to the right. When performing a so-called raster scan-like process in which the entire image is processed from the upper left to the lower right, a 4 × 4 pixel range is given with priority given to pixels existing in the left direction or the upper direction with respect to the target pixel. To be set.

【0077】この図1〜図3の例においては、点qにお
けるイエロYqを求める際には、イエロY11〜Y1
4、Y21〜Y24、Y31〜Y34、Y41〜Y44
で構成される4画素×4画素の16画素を用い、点qに
おけるマゼンタMqを求める際は、マゼンタM11〜M
14、M21〜M24、M31〜M34、M41〜M4
4で構成される4画素×4画素の16画素を用い、ま
た、点qにおけるグリーンGqを求める際には、グリー
ンG11〜G14、G21〜G24、G31〜G34、
G41〜G44で構成される4画素×4画素の16画素
を用いる。
In the examples shown in FIGS. 1 to 3, when obtaining the yellow Yq at the point q, the yellow Y11 to Y1
4, Y21 to Y24, Y31 to Y34, Y41 to Y44
When the magenta Mq at the point q is obtained by using 16 pixels of 4 pixels × 4 pixels constituted by
14, M21 to M24, M31 to M34, M41 to M4
When 16 pixels of 4 × 4 pixels composed of 4 are used, and green Gq at point q is obtained, green G11 to G14, G21 to G24, G31 to G34,
16 pixels of 4 × 4 pixels composed of G41 to G44 are used.

【0078】このような処理範囲の設定を行ったあと
は、前述の(2)〜(4)式を用いてそれぞれの係数を
求める。
After setting the processing range, the respective coefficients are obtained by using the above-mentioned equations (2) to (4).

【0079】まず、イエロについて考える。求めるべき
イエロYpは、前述したように、(6)式で求められ
る。
First, consider yellow. The yellow Yp to be obtained is obtained by Expression (6) as described above.

【0080】この(6)式におけるそれぞれの係数y
1,y2,y3,y4とx1,x2,x3,x4を求め
る。なお、ここでは、イエロについて求めるのであるか
ら、図1に示すように、イエロY11〜Y14の存在す
る画素ラインを行方向画素ラインA1、 Y21〜Y2
4の存在する画素ラインを行方向画素ラインA2、 Y
31〜Y34の存在する画素ラインを行方向画素ライン
A3、Y41〜Y44の存在する画素ラインを行方向画
素ラインA4とし、イエロY11〜Y41の存在する画
素ラインを列方向画素ラインB1、Y12〜Y42の存
在する画素ラインを列方向画素ラインB2、 Y13〜
Y43の存在する画素ラインを列方向画素ラインB3、
Y14〜Y44の存在する画素ラインを列方向画素ライ
ンB4とする。
Each coefficient y in this equation (6)
1, y2, y3, y4 and x1, x2, x3, x4 are obtained. In this case, since yellow is determined, as shown in FIG. 1, the pixel lines where yellows Y11 to Y14 exist are replaced with the row direction pixel lines A1, Y21 to Y2.
4 is defined as a row-direction pixel line A2, Y
A pixel line where 31 to Y34 is present is a row direction pixel line A3, a pixel line where Y41 to Y44 is present is a row direction pixel line A4, and a pixel line where yellows Y11 to Y41 are present is a column direction pixel line B1, Y12 to Y42. Are located in the column direction pixel lines B2, Y13 to
A pixel line in which Y43 exists is defined as a column direction pixel line B3,
The pixel line where Y14 to Y44 exists is defined as a column direction pixel line B4.

【0081】ここで、まず、係数y1,y2,y3,y
4を求める。係数y1はシアンC33の画素位置(点
q)と行方向画素ラインA1との間の距離Dy1によっ
て求められる。つまり、この場合、Dy1はDy1=2
であるので、上述した(2)〜(4)式のうち(4)式
を用いる。これによって、y1=0と求められる。
Here, first, the coefficients y1, y2, y3, y
Ask for 4. The coefficient y1 is obtained from the distance Dy1 between the pixel position (point q) of cyan C33 and the row-direction pixel line A1. That is, in this case, Dy1 is Dy1 = 2
Therefore, the expression (4) among the above expressions (2) to (4) is used. As a result, y1 = 0 is obtained.

【0082】また、係数y2はシアンC33の画素位置
(点q)と行方向画素ラインA2との間の距離Dy2に
よって求められる。つまり、この場合、Dy2はDy2
=1であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、y2=0と求められ
る。
The coefficient y2 is obtained from the distance Dy2 between the pixel position (point q) of cyan C33 and the pixel line A2 in the row direction. That is, in this case, Dy2 is Dy2
Since = 1, equation (3) of equations (2) to (4) described above is used. As a result, y2 = 0 is obtained.

【0083】また、係数y3はシアンC33(点q)の
画素位置と行方向画素ラインA3との間の距離Dy3に
よって求められる。この場合、点qは行方向画素ライン
A3上に存在するので、Dy3=0となり、上述した
(2)〜(4)式のうち(2)式を用いる。これによっ
て、y3=1と求められる。
The coefficient y3 is obtained from the distance Dy3 between the pixel position of cyan C33 (point q) and the row-direction pixel line A3. In this case, since the point q exists on the row-direction pixel line A3, Dy3 = 0, and the equation (2) among the above equations (2) to (4) is used. Thus, y3 = 1 is obtained.

【0084】また、係数y4はシアンC33の画素位置
(点q)と行方向画素ラインA4との間の距離Dy4に
よって求められる。この場合、Dy4はDy4=1であ
るので、上述した(2)〜(4)式のうち(3)式を用
いる。これによって、y4=0と求められる。
The coefficient y4 is obtained from the distance Dy4 between the pixel position (point q) of cyan C33 and the pixel line A4 in the row direction. In this case, since Dy4 is Dy4 = 1, Expression (3) among Expressions (2) to (4) described above is used. As a result, y4 = 0 is obtained.

【0085】次に、係数x1,x2,x3,x4を求め
る。係数x1はシアンC33の画素位置(点q)と列方
向画素ラインB1との間の距離Dx1によって求められ
る。つまり、この場合、Dx1はDx1=1.5であるの
で、上述した(2)〜(4)式のうち(3)式を用い
る。これによって、x1=−0.125と求められる。
Next, coefficients x1, x2, x3 and x4 are obtained. The coefficient x1 is obtained from the distance Dx1 between the pixel position (point q) of the cyan C33 and the column direction pixel line B1. That is, in this case, since Dx1 is Dx1 = 1.5, Expression (3) among Expressions (2) to (4) described above is used. Thereby, x1 = −0.125 is obtained.

【0086】また、係数x2はシアンC33の画素位置
(点q)と列方向画素ラインB2との間の距離Dx2に
よって求められる。つまり、この場合、Dx2はDx2
=0.5であるので、上述した(2)〜(4)式のうち
(2)式を用いる。これによって、x2=0.625と求め
られる。
The coefficient x2 is obtained from the distance Dx2 between the pixel position (point q) of cyan C33 and the pixel line B2 in the column direction. That is, in this case, Dx2 is Dx2
= 0.5, the equation (2) among the above equations (2) to (4) is used. Thus, x2 = 0.625 is obtained.

【0087】また、係数x3はシアンC33の画素位置
(点q)と列方向画素ラインB3との間の距離Dx3に
よって求められる。つまり、この場合、Dx3はDx3
=0.5であるので、上述した(2)〜(4)式のうち
(2)式を用いる。これによって、x3=0.625と求め
られる。
The coefficient x3 is obtained from the distance Dx3 between the pixel position (point q) of cyan C33 and the pixel line B3 in the column direction. That is, in this case, Dx3 is Dx3
= 0.5, the equation (2) among the above equations (2) to (4) is used. Thus, x3 = 0.625 is obtained.

【0088】また、係数x4はシアンC33の画素位置
(点q)と列方向画素ラインB4との間の距離Dx4に
よって求められる。つまり、この場合、Dx4はDx4
=1.5であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、x4=−0.125と求
められる。
The coefficient x4 is obtained from the distance Dx4 between the pixel position (point q) of cyan C33 and the pixel line B4 in the column direction. That is, in this case, Dx4 is Dx4
Since 1.5 = 1.5, Expression (3) of Expressions (2) to (4) is used. Thus, x4 = −0.125 is obtained.

【0089】このようにして求められた係数y1,y
2,y3,y4とx1,x2,x3,x4を(6)式に
代入して行列演算を行えば、求めるべきYqは、 Yq=−0.125×Y31+0.625×Y32+0.625×Y33−0.125×Y34 (9) となる。なお、(6)式の行列式は、この場合、行ベク
トルであるy1,y2,y3,y4がy1=0,y2=
0,y3=1,y4=0であるので、簡略化された行列
式となって結局は(9)式のように求められる。
The coefficients y1, y thus obtained
By substituting 2, y3, y4 and x1, x2, x3, x4 into equation (6) and performing a matrix operation, Yq to be obtained is: Yq = −0.125 × Y31 + 0.625 × Y32 + 0.625 × Y33−0.125 × Y34 (9). In this case, the determinant of the equation (6) indicates that the row vectors y1, y2, y3, and y4 are y1 = 0, y2 =
Since 0, y3 = 1, and y4 = 0, a simplified determinant is obtained, which is eventually obtained as in equation (9).

【0090】次に、マゼンタM33を求める。マゼンタ
Mpは、前述した(7)式の行列式で表される。
Next, magenta M33 is obtained. Magenta Mp is represented by the determinant of the above-described equation (7).

【0091】この(7)式におけるそれぞれの係数y
1,y2,y3,y4とx1,x2,x3,x4を求め
る。なお、ここでは、マゼンタについて求めるのである
から、図2に示すように、マゼンタM11〜M14の存
在する画素ラインを行方向画素ラインA1、 M21〜
M24の存在する画素ラインを行方向画素ラインA2、
M31〜M34の存在する画素ラインを行方向画素ライ
ンA3、M41〜M44の存在する画素ラインを行方向
画素ラインA4とし、マゼンタM11〜M41の存在す
る画素ラインを列方向画素ラインB1、M12〜M42
の存在する画素ラインを列方向画素ラインB2、 M1
3〜M43の存在する画素ラインを列方向画素ラインB
3、M14〜M44の存在する画素ラインを列方向画素
ラインB4とする。
Each coefficient y in the equation (7)
1, y2, y3, y4 and x1, x2, x3, x4 are obtained. In this case, since magenta is determined, as shown in FIG. 2, the pixel lines where magenta M11 to M14 exist are replaced with the row direction pixel lines A1, M21 to M21.
A pixel line in which M24 exists is defined as a row direction pixel line A2,
The pixel line where M31 to M34 exists is the row direction pixel line A3, the pixel line where M41 to M44 exists is the row direction pixel line A4, and the pixel line where the magenta M11 to M41 exists is the column direction pixel line B1, M12 to M42.
Are located in the column direction pixel lines B2 and M1.
The pixel line where 3-M43 exists is defined as a pixel line B in the column direction.
3. The pixel line in which M14 to M44 exists is defined as a column direction pixel line B4.

【0092】ここで、係数y1はシアンC33の画素位
置(点q)と行方向画素ラインA1との間の距離Dy1
によって求められる。つまり、この場合、Dy1はDy
1=1.5であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、y1=−0.125と求
められる。
Here, the coefficient y1 is a distance Dy1 between the pixel position (point q) of the cyan C33 and the row direction pixel line A1.
Required by That is, in this case, Dy1 is Dy
Since 1 = 1.5, equation (3) of equations (2) to (4) described above is used. Thus, y1 = −0.125 is obtained.

【0093】また、係数y2はシアンC33の画素位置
(点q)と行方向画素ラインA2との間の距離Dy2に
よって求められる。つまり、この場合、Dy2はDy2
=0.5であるので、上述した(2)〜(4)式のうち
(2)式を用いる。これによって、y2=0.625と求め
られる。
The coefficient y2 is obtained from the distance Dy2 between the pixel position (point q) of cyan C33 and the row-direction pixel line A2. That is, in this case, Dy2 is Dy2
= 0.5, the equation (2) among the above equations (2) to (4) is used. Thus, y2 = 0.625 is obtained.

【0094】また、係数y3はシアンC33の画素位置
(点q)と行方向画素ラインA3との間の距離Dy3に
よって求められる。この場合、Dy3はDy3=0.5で
あるので、上述した(2)〜(4)式のうち(2)式を
用いる。これによって、y3=0.625と求められる。
The coefficient y3 is obtained from the distance Dy3 between the pixel position (point q) of cyan C33 and the pixel line A3 in the row direction. In this case, since Dy3 is Dy3 = 0.5, Expression (2) among Expressions (2) to (4) described above is used. Thus, y3 = 0.625 is obtained.

【0095】また、係数y4はシアンC33の画素位置
(点q)と行方向画素ラインA4との間の距離Dy4に
よって求められる。つまり、この場合、Dy4はDy4
=1.5であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、y4=−0.125と求
められる。
The coefficient y4 is obtained from the distance Dy4 between the pixel position (point q) of cyan C33 and the pixel line A4 in the row direction. That is, in this case, Dy4 is Dy4
Since 1.5 = 1.5, Expression (3) of Expressions (2) to (4) is used. Thus, y4 = −0.125 is obtained.

【0096】同様に、係数x1,x2,x3,x4を求
める。係数x1はシアンC33の画素位置(点q)と列
方向画素ラインB1との間の距離Dx1によって求めら
れる。つまり、この場合、Dx1はDy1=2であるの
で、上述した(2)〜(4)式のうち(4)式を用い
る。これによって、x1=0と求められる。
Similarly, coefficients x1, x2, x3 and x4 are obtained. The coefficient x1 is obtained from the distance Dx1 between the pixel position (point q) of the cyan C33 and the column direction pixel line B1. That is, in this case, since Dx1 is Dy1 = 2, the expression (4) among the above expressions (2) to (4) is used. As a result, x1 = 0 is obtained.

【0097】また、係数x2はシアンC33の画素位置
(点q)と列方向画素ラインB2との間の距離Dx2に
よって求められる。つまり、この場合、Dx2はDx2
=1であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、x2=0と求められ
る。
The coefficient x2 is obtained from the distance Dx2 between the pixel position (point q) of cyan C33 and the pixel line B2 in the column direction. That is, in this case, Dx2 is Dx2
Since = 1, equation (3) of equations (2) to (4) described above is used. Thus, x2 = 0 is obtained.

【0098】また、係数x3はシアンC33の画素位置
(点q)と列方向画素ラインB3との間の距離Dx3に
よって求められる。つまり、この場合、点qは列方向画
素ラインB3上に存在するので、Dx3=0であり、上
述した(2)〜(4)式のうち(2)式を用いる。これ
によって、x3=1と求められる。
The coefficient x3 is obtained from the distance Dx3 between the pixel position (point q) of cyan C33 and the pixel line B3 in the column direction. That is, in this case, since the point q exists on the pixel line B3 in the column direction, Dx3 = 0, and the equation (2) among the above equations (2) to (4) is used. Thus, x3 = 1 is obtained.

【0099】また、係数x4はシアンC33の画素位置
(点q)と列方向画素ラインB4との間の距離Dx4に
よって求められる。つまり、この場合、Dx4はDx4
=1であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、x4=0と求められ
る。
The coefficient x4 is obtained from the distance Dx4 between the pixel position (point q) of cyan C33 and the pixel line B4 in the column direction. That is, in this case, Dx4 is Dx4
Since = 1, equation (3) of equations (2) to (4) described above is used. Thus, x4 = 0 is obtained.

【0100】このようにして求められた係数y1,y
2,y3,y4とx1,x2,x3,x4を(7)式に
代入すれば、求めるべきMpは、 Mp=−0.125×M13+0.625×M23+0.625×M33−0.125×M43 (10) となる。なお、(7)式の行列演算を行う際、列ベクト
ルx1,x2,x3,x4は、 x1=0,x2=0,
x3=1,x4=0であるので、簡略化された行列式と
なって結局は(10)式のように求められる。
The coefficients y1, y thus obtained
By substituting 2, y3, y4 and x1, x2, x3, x4 into equation (7), Mp to be obtained is: Mp = −0.125 × M13 + 0.625 × M23 + 0.625 × M33−0.125 × M43 (10) Become. When performing the matrix operation of equation (7), the column vectors x1, x2, x3, and x4 are represented by x1 = 0, x2 = 0,
Since x3 = 1 and x4 = 0, the determinant becomes a simplified determinant, and is eventually obtained as in equation (10).

【0101】次にグリーンについて求める。グリーンG
pは、前述した(8)式の行列式で表される。
Next, green is determined. Green G
p is represented by the determinant of equation (8) described above.

【0102】この(8)式におけるそれぞれの係数y
1,y2,y3,y4とx1,x2,x3,x4を求め
る。なお、ここでは、グリーンについて求めるのである
から、図3に示すように、グリーンG11〜G14の存
在する画素ラインを行方向画素ラインA1、G21〜G
24の存在する画素ラインを行方向画素ラインA2、G
31〜G34の存在する画素ラインを行方向画素ライン
A3、G41〜G44の存在する画素ラインを行方向画
素ラインA4とし、グリーンG11〜G41の存在する
画素ラインを列方向画素ラインB1、G12〜G42の
存在する画素ラインを列方向画素ラインB2、G13〜
G43の存在する画素ラインを列方向画素ラインB3、
G14〜G44の存在する画素ラインを列方向画素ライ
ンB4とする。
Each coefficient y in this equation (8)
1, y2, y3, y4 and x1, x2, x3, x4 are obtained. In this case, since the determination is made for the green, as shown in FIG. 3, the pixel lines where the greens G11 to G14 exist are replaced with the row direction pixel lines A1, G21 to G21.
24 exist pixel lines in the row direction pixel lines A2, G
A pixel line in which 31 to G34 exists is a row direction pixel line A3, a pixel line in which G41 to G44 exists is a row direction pixel line A4, and pixel lines in which greens G11 to G41 exist are column direction pixel lines B1, G12 to G42. Are located in the column direction pixel lines B2, G13 to
The pixel line where G43 exists is defined as a column-direction pixel line B3,
The pixel line where G14 to G44 exists is defined as a column direction pixel line B4.

【0103】ここで、まず、係数y1,y2,y3,y
4を求める。係数y1はシアンC33の画素位置(点
q)と行方向画素ラインA1との間の距離Dy1によっ
て求められる。つまり、この場合、Dy1はDy1=1.
5であるので、上述した(2)〜(4)式のうち(3)
式を用いる。これによって、y1=−0.125と求められ
る。
Here, first, the coefficients y1, y2, y3, y
Ask for 4. The coefficient y1 is obtained from the distance Dy1 between the pixel position (point q) of cyan C33 and the row-direction pixel line A1. That is, in this case, Dy1 is Dy1 = 1.
Since it is 5, (3) in the above equations (2) to (4)
Use the formula. Thus, y1 = −0.125 is obtained.

【0104】また、係数y2はシアンC33の画素位置
(点q)と行方向画素ラインA2との間の距離Dy2に
よって求められる。つまり、この場合、Dy2はDy2
=0.5であるので、上述した(2)〜(4)式のうち
(2)式を用いる。これによって、x2=0.625と求め
られる。
The coefficient y2 is obtained from the distance Dy2 between the pixel position (point q) of cyan C33 and the pixel line A2 in the row direction. That is, in this case, Dy2 is Dy2
= 0.5, the equation (2) among the above equations (2) to (4) is used. Thus, x2 = 0.625 is obtained.

【0105】また、係数y3はシアンC33の画素位置
(点q)と行方向画素ラインA3との間の距離Dy3に
よって求められる。つまり、この場合、Dy3はDy3
=0.5であるので、上述した(2)〜(4)式のうち
(2)式を用いる。これによって、y3=0.625と求め
られる。
The coefficient y3 is obtained from the distance Dy3 between the pixel position (point q) of cyan C33 and the pixel line A3 in the row direction. That is, in this case, Dy3 is Dy3
= 0.5, the equation (2) among the above equations (2) to (4) is used. Thus, y3 = 0.625 is obtained.

【0106】また、係数y4はシアンC33の画素位置
(点q)と行方向画素ラインA4との間の距離Dy4に
よって求められる。つまり、この場合、Dy4はDy4
=1.5であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、y4=−0.125と求
められる。
The coefficient y4 is obtained from the distance Dy4 between the pixel position (point q) of cyan C33 and the pixel line A4 in the row direction. That is, in this case, Dy4 is Dy4
Since 1.5 = 1.5, Expression (3) of Expressions (2) to (4) is used. Thus, y4 = −0.125 is obtained.

【0107】次に、係数x1,x2,x3,x4を求め
る。係数x1はシアンC33の画素位置(点q)と列方
向画素ラインB1との間の距離Dx1によって求められ
る。つまり、この場合、Dx1はDx1=1.5であるの
で、上述した(2)〜(4)式のうち(3)式を用い
る。これによって、x1=−0.125と求められる。
Next, coefficients x1, x2, x3 and x4 are obtained. The coefficient x1 is obtained from the distance Dx1 between the pixel position (point q) of the cyan C33 and the column direction pixel line B1. That is, in this case, since Dx1 is Dx1 = 1.5, Expression (3) among Expressions (2) to (4) described above is used. Thereby, x1 = −0.125 is obtained.

【0108】また、係数x2はシアンC33の画素位置
(点q)と列方向画素ラインB2との間の距離Dy2に
よって求められる。つまり、この場合、Dx2はDx2
=0.5であるので、上述した(2)〜(4)式のうち
(2)式を用いる。これによって、x2=0.625と求め
られる。
The coefficient x2 is obtained from the distance Dy2 between the pixel position (point q) of cyan C33 and the pixel line B2 in the column direction. That is, in this case, Dx2 is Dx2
= 0.5, the equation (2) among the above equations (2) to (4) is used. Thus, x2 = 0.625 is obtained.

【0109】また、係数x3はシアンC33の画素位置
(点q)と列方向画素ラインB3との間の距離Dx3に
よって求められる。この場合、Dx3はDx3=0.5で
あるので、上述した(2)〜(4)式のうち(2)式を
用いる。これによって、x3=0.625と求められる。
The coefficient x3 is obtained from the distance Dx3 between the pixel position (point q) of cyan C33 and the column direction pixel line B3. In this case, since Dx3 is Dx3 = 0.5, Expression (2) among Expressions (2) to (4) described above is used. Thus, x3 = 0.625 is obtained.

【0110】また、係数x4はシアンC33の画素位置
(点q)と列方向顔ラインB4との間の距離Dx4によ
って求められる。つまり、この場合、Dx4はDx4=
1.5であるので、上述した(2)〜(4)式のうち
(3)式を用いる。これによって、x4=−0.125と求
められる。
The coefficient x4 is obtained from the distance Dx4 between the pixel position (point q) of cyan C33 and the face line B4 in the column direction. That is, in this case, Dx4 = Dx4 =
Since it is 1.5, equation (3) of equations (2) to (4) described above is used. Thus, x4 = −0.125 is obtained.

【0111】このようにして求められた係数定数y1,
y2,y3,y4とx1,x2,x3,x4を(8)式
に代入して行列演算を行うことでGpが求められる。
The coefficient constants y1,
Gp is obtained by substituting y2, y3, y4 and x1, x2, x3, x4 into equation (8) and performing a matrix operation.

【0112】このように、この実施の形態によれば、イ
エロとマゼンタについては、注目画素であるシアンC3
3の画素とそれぞれの画素ラインまでの距離に基づいて
求められる係数が0や1となる場合も多く、これによっ
て、行列演算を大幅に簡略化することができる。
As described above, according to this embodiment, for yellow and magenta, cyan C3
In many cases, the coefficient obtained based on the distance between the three pixels and each of the pixel lines is 0 or 1, thereby greatly simplifying the matrix operation.

【0113】すなわち、この実施の形態におけるイエロ
やマゼンタの場合、それらの色成分による4×4の画素
範囲を設定し、それぞれの行方向画素ラインおよび列方
向画素ラインを設定すると、図1および図2からもわか
るように、イエロの場合は行方向画素ラインA1〜A4
のうち行方向画素ラインA3上に注目画素(点q)が存
在し(図1参照)、マゼンタの場合は列方向画素ライン
B1〜B4のうち列方向画素ラインB3上に注目画素
(点q)が存在する(図2参照)。このような場合、注
目画素(点q)からのそれぞれの画素ラインまでの距離
が整数値(ここでは、0または1または2)で表され、
それをその数値に応じて(2)〜(4)式のいずれかに
代入すると、係数y1,y2,y3,y4やx1,x
2,x3,x4の値が0や1となる。
That is, in the case of yellow and magenta in this embodiment, when a 4 × 4 pixel range is set by their color components, and the respective row-direction pixel lines and column-direction pixel lines are set, FIGS. As can be seen from FIG. 2, in the case of yellow, the row direction pixel lines A1 to A4
Of the target pixel (point q) exists on the row direction pixel line A3 (see FIG. 1), and in the case of magenta, the target pixel (point q) exists on the column direction pixel line B3 among the column direction pixel lines B1 to B4. Exists (see FIG. 2). In such a case, the distance from the target pixel (point q) to each pixel line is represented by an integer value (here, 0, 1, or 2),
By substituting it into any of the equations (2) to (4) according to the numerical values, the coefficients y1, y2, y3, y4 and x1, x
The values of 2, x3 and x4 are 0 and 1.

【0114】このように、係数y1,y2,y3,y4
やx1,x2,x3,x4の値が0や1となれば、前述
した行列式は簡略化されたものとなる。
Thus, the coefficients y1, y2, y3, y4
When the values of x1, x2, x3, and x4 are 0 and 1, the determinant described above is simplified.

【0115】結局、この実施の形態では、注目画素の色
補間を行う際に必要な演算量としては、4+4+4×4
+4=28となり、従来の80回に比べその演算回数を
大幅に削減できる。
After all, in this embodiment, the amount of calculation necessary for performing color interpolation of the target pixel is 4 + 4 + 4 × 4
+ 4 = 28, and the number of operations can be greatly reduced as compared with the conventional 80 times.

【0116】また、この実施の形態では、係数y1,y
2,y3,y4やx1,x2,x3,x4の値が0や1
とならない場合であっても、その値は、0.125や0.625と
いうようにビットシフトで対応できる数値となるため、
計算機での処理を行う上できわめて都合のよいものとな
る。
In this embodiment, the coefficients y1, y
2, y3, y4 or x1, x2, x3, x4 are 0 or 1
Even if it is not the case, the value is a numerical value that can be handled by bit shift such as 0.125 or 0.625,
This is very convenient for performing processing on a computer.

【0117】このように、本発明は、バイキュービック
法による画素補間(色補間)の原理を用いながらもその
計算量を大幅に削減することができ、しかも、バイキュ
ービックによる画素補間を行ったと同じような高品質な
画像を得ることができる。
As described above, according to the present invention, the amount of calculation can be significantly reduced while using the principle of pixel interpolation (color interpolation) by the bicubic method. Such high-quality images can be obtained.

【0118】なお、前述の実施の形態では、注目画素を
シアンC33の位置に存在する画素とした場合について
説明したが、注目画素を次の画素に移しても同じような
考え方で実現できる。たとえば、注目画素をY33の位
置に存在する画素とした場合には、補間すべき色成分と
してはイエロはY33をそのまま用い、シアン、マゼン
タ、グリーンについて補間すべき値を求めればよい。こ
のとき、イエロY33の周囲に、シアン、マゼンタ、グ
リーンそれぞれについて4×4の画素範囲を設定し、そ
れぞれに色成分における4×4の画素範囲における行方
向画素ラインと列方向画素ラインを設定して、注目画素
からの距離に基づく係数y1,y2,y3,y4とx
1,x2,x3,x4を求める。そして、これらの係数
とそれぞれの色成分における4×4の行列とによりシア
ン、マゼンタ、グリーンを求めればよい。この求め方は
前述の実施の形態に準じて行うことができるので、ここ
ではその説明は省略する。
In the above-described embodiment, a case has been described where the pixel of interest is a pixel existing at the position of cyan C33. However, the same idea can be realized by moving the pixel of interest to the next pixel. For example, when the pixel of interest is a pixel existing at the position of Y33, yellow may use Y33 as it is as a color component to be interpolated, and a value to be interpolated for cyan, magenta, and green may be obtained. At this time, a 4 × 4 pixel range is set for each of cyan, magenta, and green around the yellow Y33, and a row direction pixel line and a column direction pixel line are set for each of the 4 × 4 pixel ranges of the color components. And coefficients y1, y2, y3, y4 and x based on the distance from the pixel of interest.
1, x2, x3, x4 are obtained. Then, cyan, magenta, and green may be obtained from these coefficients and a 4 × 4 matrix for each color component. Since this method can be performed according to the above-described embodiment, the description thereof is omitted here.

【0119】なお、本発明は以上説明した実施の形態に
限定されるものではなく、本発明の要旨を逸脱しない範
囲で種々変形実施可能となるものである。たとえば、前
述の実施の形態では、基本となる色成分としてシアン、
マゼンタ、イエロ、グリーンといった補色系での説明を
行ったが、本発明は、R(赤)・G(グリーン)・B
(青)の原色系であっても同様に実施できる。
The present invention is not limited to the above-described embodiment, but can be variously modified without departing from the gist of the present invention. For example, in the above-described embodiment, cyan and cyan are used as basic color components.
Although the explanation has been given in terms of complementary colors such as magenta, yellow, and green, the present invention relates to R (red), G (green), and B
The same can be applied to the (blue) primary color system.

【0120】また、以上説明した本発明の処理を行う単
板式固体撮像素子の画素補間処理プログラムは、フロッ
ピィディスク、光ディスク、ハードディスクなどの記録
媒体に記録させておくことができ、本発明はその記録媒
体をも含むものである。また、ネットワークから処理プ
ログラムを得るようにしてもよい。
The above-described pixel interpolation processing program for the single-chip solid-state imaging device for performing the processing of the present invention can be recorded on a recording medium such as a floppy disk, an optical disk, or a hard disk. It also includes a medium. Further, the processing program may be obtained from a network.

【0121】[0121]

【発明の効果】以上説明したように本発明によれば、色
補間を行うべき位置を実際に存在する画素に選ぶように
することで、バイキュービック法による画素補間(色補
間)の原理を用いながらも従来から行われているバイキ
ュービック法に比べて、計算量を大幅に削減することが
でき、しかも、バイキュービックによる画素補間を行っ
たと同じような高品質な画像を得ることができる。しか
も演算に用いられる係数の値が、計算機がビットシフト
で対応できる数値として求められるので、計算機の処理
負担を小さくすることができ処理の高速化を図ることで
きる。
As described above, according to the present invention, the position at which color interpolation is to be performed is selected for an actually existing pixel, so that the principle of pixel interpolation (color interpolation) by the bicubic method is used. However, the amount of calculation can be greatly reduced as compared with the conventional bicubic method, and a high-quality image similar to that obtained by performing pixel interpolation using bicubic can be obtained. In addition, since the value of the coefficient used for the calculation is obtained as a numerical value that the computer can handle by bit shifting, the processing load on the computer can be reduced and the processing can be speeded up.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態を説明する色成分配列の一
例を示すもので、注目画素におけるイエロの色補間を行
う処理を説明する図である。
FIG. 1 is a diagram illustrating an example of a color component array for describing an embodiment of the present invention, and is a diagram illustrating a process of performing yellow color interpolation on a target pixel.

【図2】本発明の実施の形態を説明する色成分配列の一
例を示すもので、注目画素におけるマゼンタの色補間を
行う処理を説明する図である。
FIG. 2 is a diagram illustrating an example of a color component array illustrating an embodiment of the present invention, and is a diagram illustrating a process of performing magenta color interpolation on a target pixel.

【図3】本発明の実施の形態を説明する色成分配列の一
例を示すもので、注目画素におけるグリーンの色補間を
行う処理を説明する図である。
FIG. 3 is a diagram illustrating an example of a color component array for describing an embodiment of the present invention, and is a diagram illustrating a process of performing green color interpolation on a target pixel.

【図4】注目画素に対する従来の色補間について説明す
る色成分配列の一例を示すものである。
FIG. 4 shows an example of a color component array for explaining conventional color interpolation for a pixel of interest.

【図5】バイキュービック法について説明する図であ
り、ある1つの色成分について4×4の画素範囲を設定
して画素補間すべき点に対する画素補間を行う処理を説
明する図である。
FIG. 5 is a diagram illustrating a bicubic method, and is a diagram illustrating a process of setting a pixel range of 4 × 4 for a certain color component and performing pixel interpolation on a point to be pixel-interpolated.

【図6】バイキュービック法の具体的な画素補間例を説
明する色成分配置例であり、画素補間すべき点における
シアンの値を求める処理を説明する図である。
FIG. 6 is an example of a color component arrangement for explaining a specific pixel interpolation example of the bicubic method, and is a diagram for explaining a process of obtaining a cyan value at a point where pixel interpolation is to be performed.

【図7】バイキュービック法の具体的な画素補間例を説
明する色成分配置例であり、画素補間すべき点における
イエロの値を求める処理を説明する図である。
FIG. 7 is a diagram illustrating an example of a color component arrangement for explaining a specific pixel interpolation example of the bicubic method, and is a diagram illustrating a process of obtaining a yellow value at a point where pixel interpolation is to be performed.

【図8】バイキュービック法の具体的な画素補間例を説
明する色成分配置例であり、画素補間すべき点における
マゼンタの値を求める処理を説明する図である。
FIG. 8 is an example of a color component arrangement for explaining a specific pixel interpolation example of the bicubic method, and is a diagram for explaining a process of obtaining a magenta value at a point where pixel interpolation is to be performed.

【図9】バイキュービック法の具体的な画素補間例を説
明する色成分配置例であり、画素補間すべき点における
グリーンの値を求める処理を説明する図である。
FIG. 9 is an example of a color component arrangement for explaining a specific pixel interpolation example of the bicubic method, and is a diagram for explaining a process of obtaining a green value at a point where pixel interpolation is to be performed.

【符号の説明】[Explanation of symbols]

A1〜A4 行方向画素ライン B1〜B4 列方向画素ライン q 色補間すべき点 C11〜C44 シアン Y11〜Y44 イエロ M11〜M44 マゼンタ G11〜G44 グリーン A1 to A4 Row direction pixel line B1 to B4 Column direction pixel line q Points to be color-interpolated C11 to C44 Cyan Y11 to Y44 Yellow M11 to M44 Magenta G11 to G44 Green

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 BA02 BA12 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CD06 CE11 CE16 CH01 CH08 5C065 AA03 CC01 DD02 DD17 EE07 GG13 5C076 AA21 AA26 BA06 BB04 BB25 BB27 5C079 HB01 HB02 JA23 LA10 LA17 LA28 MA11 NA01 NA03 NA05 NA09 NA11  ──────────────────────────────────────────────────続 き Continued on the front page F-term (reference) NA01 NA03 NA05 NA09 NA11

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 基本となる色成分を構成する個々の色成
分が、一定の繰り返しで個々の画素対応に2次元平面的
に配列されてなる単板式固体撮像素子の色補間方法にお
いて、 色補間を行うべき位置を実際に存在する画素に選び、こ
の画素を注目画素として、前記補間すべき色成分のうち
当該注目画素がもともと有する色成分についてはそれを
その色成分とし、 それ以外の色成分については、 前記補間すべき各色成分ごとに、前記注目画素の周囲に
m×n(m,nは正の整数)でなる画素範囲を設定し、 この設定された或る色成分におけるm×nの画素範囲の
行方向画素ライン上にm本の行方向画素ラインを設定
し、このm本の行方向画素ラインそれぞれと前記注目画
素との間の距離に基づいて得られるm個の係数を求める
とともに、当該色成分におけるm×nの画素範囲の列方
向画素ライン上にn本の列方向画素ラインを設定し、こ
のn本の列方向画素ラインそれぞれと前記注目画素との
間の距離に基づいて得られるn個の係数を求め、 求められたm個の係数およびn個の係数と、前記m×n
の画素範囲に存在する画素の値とから当該注目画素の色
成分を求める、 ことを特徴とする単板式固体撮像素子の色補間方法。
1. A color interpolation method for a single-chip solid-state imaging device in which individual color components constituting a basic color component are arranged in a two-dimensional plane corresponding to individual pixels at a constant repetition. Is selected as a pixel that actually exists, and this pixel is set as a target pixel. Of the color components to be interpolated, a color component originally included in the target pixel is used as its color component, and other color components are used. For each of the color components to be interpolated, a pixel range of m × n (m and n are positive integers) is set around the target pixel, and m × n in the set color component is set. M row-direction pixel lines are set on the row-direction pixel lines in the pixel range, and m coefficients obtained based on the distance between each of the m row-direction pixel lines and the pixel of interest are obtained. Along with the color , N column-direction pixel lines are set on the column-direction pixel lines in the m × n pixel range, and n pixels obtained based on the distance between each of the n column-direction pixel lines and the pixel of interest And the obtained m and n coefficients, and m × n
A color interpolation method for a single-chip solid-state imaging device, wherein a color component of the pixel of interest is obtained from a value of a pixel existing in the pixel range.
【請求項2】 前記求められたm個の係数およびn個の
係数と、m×nの画素範囲に存在する画素の値とから当
該注目画素の色成分を求める演算処理は、 m×nの画素範囲におけるm行n列の行列とm個の係数
でなる行ベクトルとn個の係数でなる列ベクトルとの積
をとる行列演算であることを特徴とする請求項1記載の
単板式固体撮像素子の色補間方法。
2. An arithmetic process for calculating a color component of a pixel of interest from the obtained m coefficients and n coefficients and a value of a pixel existing in an m × n pixel range includes: 2. A single-chip solid-state imaging device according to claim 1, wherein the matrix operation is a product of a product of a matrix of m rows and n columns in a pixel range, a row vector composed of m coefficients, and a column vector composed of n coefficients. Element color interpolation method.
【請求項3】 前記m,nはm=n=4であって、色補
間すべき或る色成分について前記注目画素の周囲に4×
4の画素範囲を設定するとともに、その色成分で構成さ
れる4×4の画素範囲における4本の行方向画素ライン
と4本の列方向画素ラインを設定し、前記注目画素が4
本の行方向画素ラインの中のいずれかの行方向画素ライ
ン上に存在する場合には、その注目画素と4本の行方向
画素ラインとの間隔が整数値で表わされ、その場合、そ
の注目画素と4本の行方向画素ラインとの間隔から求め
られる4個の係数が0または1となり、 また、前記注目画素が4本の列方向画素ラインの中のい
ずれかの列方向画素ライン上に存在する場合には、その
注目画素と4本の列方向画素ラインとの間隔が整数値で
表わされ、その場合、その注目画素と4本の列方向画素
ラインとの間隔から求められる4個の係数が0または1
となり、 また、前記注目画素がいずれの行方向画素ライン上にも
存在しない場合には、その注目画素と4本の行方向画素
ラインとの間隔から求められる4個の係数の値がビット
シフトで対応可能な値で表わされ、前記注目画素がいず
れの列方向画素ライン上にも存在しない場合には、その
注目画素と4本の列方向画素ラインとの間隔から求めら
れる4個の係数がビットシフトで対応可能な値で表せる
ことを特徴とする請求項2記載の単板式固体撮像素子の
色補間方法。
3. The m and n are such that m = n = 4, and for a certain color component to be color-interpolated, 4 ×
4 are set, and four row-direction pixel lines and four column-direction pixel lines in a 4 × 4 pixel range constituted by the color components are set.
If it exists on any of the row direction pixel lines among the row direction pixel lines, the interval between the target pixel and the four row direction pixel lines is represented by an integer value. Four coefficients obtained from the distance between the target pixel and the four row-directional pixel lines are 0 or 1, and the target pixel is located on any one of the four column-directional pixel lines. , The interval between the pixel of interest and the four column-direction pixel lines is represented by an integer value. In this case, 4 is obtained from the interval between the pixel of interest and the four column-direction pixel lines. Coefficients are 0 or 1
When the target pixel does not exist on any of the row-direction pixel lines, the values of the four coefficients obtained from the distance between the target pixel and the four row-direction pixel lines are bit-shifted. When the target pixel is not present on any of the column-direction pixel lines, the four coefficients obtained from the interval between the target pixel and the four column-direction pixel lines are represented by responsive values. 3. The color interpolation method for a single-chip solid-state imaging device according to claim 2, wherein the value can be represented by a value that can be handled by a bit shift.
【請求項4】 前記注目画素の周囲にm×nの画素範囲
を設定する際、当該注目画素を中心とした上下左右対称
となるm×nの画素範囲の設定が行えない場合は、すで
に処理の終了した画素を優先して含むようなm×nの画
素範囲設定を行うことを特徴とする請求項3記載の単板
式固体撮像素子の色補間方法。
4. When an m × n pixel range is set around the target pixel, if an m × n pixel range that is vertically and horizontally symmetrical with respect to the target pixel cannot be set, processing is already performed. 4. A color interpolation method for a single-chip solid-state imaging device according to claim 3, wherein an m × n pixel range is set so as to preferentially include the pixels for which the processing has been completed.
【請求項5】 基本となる色成分を構成する個々の色成
分が、一定の繰り返しで個々の画素対応に2次元平面的
に配列されてなる単板式固体撮像素子の色補間処理プロ
グラムを記録した記録媒体であって、その色補間処理プ
ログラムは、 色補間を行うべき位置を実際に存在する画素に選び、こ
の画素を注目画素として、前記補間すべき色成分のうち
当該注目画素がもともと有する色成分についてはそれを
その色成分とする手順と、 それ以外の色成分については、 前記補間すべき各色成分ごとに、前記注目画素の周囲に
m×n(m,nは正の整数)でなる画素範囲を設定する
手順と、 この設定された或る色成分におけるm×nの画素範囲の
行方向画素ライン上にm本の行方向画素ラインを設定
し、このm本の行方向画素ラインそれぞれと前記注目画
素との間の距離に基づいて得られるm個の係数を求める
とともに、当該色成分におけるm×nの画素範囲の列方
向画素ライン上にn本の列方向画素ラインを設定し、こ
のn本の列方向画素ラインそれぞれと前記注目画素との
間の距離に基づいて得られるn個の係数を求める手順
と、 求められたm個の係数およびn個の係数と、前記m×n
の画素範囲に存在する画素の値とから当該注目画素の色
成分を求める手順と、 を含むことを特徴とする単板式固体撮像素子の色補間処
理プログラムを記録した記録媒体。
5. A color interpolation processing program for a single-chip solid-state imaging device in which individual color components constituting a basic color component are arranged in a two-dimensional plane corresponding to individual pixels at a constant repetition. The recording medium, wherein the color interpolation processing program selects a position at which color interpolation is to be performed as an actually existing pixel, and sets this pixel as a target pixel, and selects a color originally included in the target pixel among the color components to be interpolated. For the component, the procedure for setting it as the color component, and for the other color components, m × n (m and n are positive integers) around the pixel of interest for each color component to be interpolated. A procedure of setting a pixel range; and setting m row-direction pixel lines on the row-direction pixel lines of the m × n pixel range in the set color component, and setting the m row-direction pixel lines respectively. And the note above While obtaining m coefficients obtained based on the distance from the pixel, n column-direction pixel lines are set on the column-direction pixel lines in the mxn pixel range of the color component, and A procedure for calculating n coefficients obtained based on the distance between each of the pixel lines in the column direction and the pixel of interest; m coefficients and n coefficients obtained;
A step of obtaining a color component of the pixel of interest from values of pixels existing in the pixel range of (a), (b), and (b), wherein a color interpolation processing program for a single-chip solid-state imaging device is recorded.
【請求項6】 前記求められたm個の係数およびn個の
係数と、m×nの画素範囲に存在する画素の値とから当
該注目画素の色成分を求める演算処理は、 m×nの画素範囲におけるm行n列の行列とm個の係数
でなる行ベクトルとn個の係数でなる列ベクトルとの積
をとる行列演算であることを特徴とする請求項5記載の
単板式固体撮像素子の色補間処理プログラムを記録した
記録媒体。
6. The arithmetic processing for obtaining the color component of the pixel of interest from the obtained m coefficients and n coefficients and the values of the pixels existing in the m × n pixel range includes: 6. A single-chip solid-state imaging according to claim 5, wherein the matrix operation is a product of a matrix of m rows and n columns in a pixel range, a row vector composed of m coefficients, and a column vector composed of n coefficients. A recording medium on which a color interpolation processing program for an element is recorded.
【請求項7】 前記m,nはm=n=4であって、色補
間すべき或る色成分について前記注目画素の周囲に4×
4の画素範囲を設定するとともに、その色成分で構成さ
れる4×4の画素範囲における4本の行方向画素ライン
と4本の列方向画素ラインを設定し、前記注目画素が4
本の行方向画素ラインの中のいずれかの行方向画素ライ
ン上に存在する場合には、その注目画素と4本の行方向
画素ラインとの間隔が整数値で表わされ、その場合、そ
の注目画素と4本の行方向画素ラインとの間隔から求め
られる4個の係数が0または1となり、 また、前記注目画素が4本の列方向画素ラインの中のい
ずれかの列方向画素ライン上に存在する場合には、その
注目画素と4本の列方向画素ラインとの間隔が整数値で
表わされ、その場合、その注目画素と4本の列方向画素
ラインとの間隔から求められる4個の係数が0または1
となり、 また、前記注目画素がいずれの行方向画素ライン上にも
存在しない場合には、その注目画素と4本の行方向画素
ラインとの間隔から求められる4個の係数の値がビット
シフトで対応可能な値で表わされ、前記注目画素がいず
れの列方向画素ライン上にも存在しない場合には、その
注目画素と4本の列方向画素ラインとの間隔から求めら
れる4個の係数がビットシフトで対応可能な値で表せる
ことを特徴とする請求項6記載の単板式固体撮像素子の
色補間処理プログラムを記録した記録媒体。
7. The m and n are such that m = n = 4, and for a certain color component to be color-interpolated, 4 ×
4 are set, and four row-direction pixel lines and four column-direction pixel lines in a 4 × 4 pixel range constituted by the color components are set.
If it exists on any of the row direction pixel lines among the row direction pixel lines, the interval between the target pixel and the four row direction pixel lines is represented by an integer value. Four coefficients obtained from the distance between the target pixel and the four row-directional pixel lines are 0 or 1, and the target pixel is located on any one of the four column-directional pixel lines. , The interval between the pixel of interest and the four column-direction pixel lines is represented by an integer value. In this case, 4 is obtained from the interval between the pixel of interest and the four column-direction pixel lines. Coefficients are 0 or 1
When the target pixel does not exist on any of the row-direction pixel lines, the values of the four coefficients obtained from the distance between the target pixel and the four row-direction pixel lines are bit-shifted. When the target pixel is not present on any of the column-direction pixel lines, the four coefficients obtained from the interval between the target pixel and the four column-direction pixel lines are represented by responsive values. 7. The recording medium according to claim 6, wherein the color interpolation processing program for a single-chip solid-state imaging device can be represented by a value that can be handled by a bit shift.
【請求項8】 前記注目画素の周囲にm×nの画素範囲
を設定する際、当該注目画素を中心とした上下左右対称
となるm×nの画素範囲の設定が行えない場合は、すで
に処理の終了した画素を優先して含むようなm×nの画
素範囲設定を行うことを特徴とする請求項7記載の単板
式固体撮像素子の色補間処理プログラムを記録した記録
媒体。
8. When an m × n pixel range is set around the target pixel, if an m × n pixel range that is vertically and horizontally symmetrical with respect to the target pixel cannot be set, processing is already performed. 8. A recording medium storing a color interpolation processing program for a single-chip solid-state imaging device according to claim 7, wherein an m × n pixel range is set so as to preferentially include pixels for which the image processing has been completed.
JP33641499A 1999-11-26 1999-11-26 Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program Expired - Lifetime JP4006908B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33641499A JP4006908B2 (en) 1999-11-26 1999-11-26 Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33641499A JP4006908B2 (en) 1999-11-26 1999-11-26 Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program

Publications (2)

Publication Number Publication Date
JP2001157217A true JP2001157217A (en) 2001-06-08
JP4006908B2 JP4006908B2 (en) 2007-11-14

Family

ID=18298890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33641499A Expired - Lifetime JP4006908B2 (en) 1999-11-26 1999-11-26 Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program

Country Status (1)

Country Link
JP (1) JP4006908B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7304672B2 (en) 2002-12-25 2007-12-04 Hitachi, Ltd. Contour correcting video signal processing apparatus
JP2009282527A (en) * 2004-04-30 2009-12-03 Nvidia Corp Method and device for scaling vertically pixel data
US7801355B2 (en) 2004-02-13 2010-09-21 Seiko Epson Corporation Image processing method, image processing device, semiconductor device, electronic apparatus, image processing program, and computer-readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7304672B2 (en) 2002-12-25 2007-12-04 Hitachi, Ltd. Contour correcting video signal processing apparatus
US7801355B2 (en) 2004-02-13 2010-09-21 Seiko Epson Corporation Image processing method, image processing device, semiconductor device, electronic apparatus, image processing program, and computer-readable storage medium
JP2009282527A (en) * 2004-04-30 2009-12-03 Nvidia Corp Method and device for scaling vertically pixel data

Also Published As

Publication number Publication date
JP4006908B2 (en) 2007-11-14

Similar Documents

Publication Publication Date Title
JP4351394B2 (en) Non-linear and linear methods for enlarging or reducing image resolution conversion
CN1812592B (en) Method and apparatus for processing image data of a color filter array
US6707937B1 (en) Interpolation of edge portions of a digital image
US7643676B2 (en) System and method for adaptive interpolation of images from patterned sensors
JP3771054B2 (en) Image processing apparatus and image processing method
CN108961167B (en) Finite difference and gradient-based Bayer-CFA interpolation method
US8041152B2 (en) Image resolution increasing method and apparatus
US8085320B1 (en) Early radial distortion correction
CN110852953B (en) Image interpolation method and device, storage medium, image signal processor and terminal
JP4317619B2 (en) Image processing device
US7801355B2 (en) Image processing method, image processing device, semiconductor device, electronic apparatus, image processing program, and computer-readable storage medium
JP4321064B2 (en) Image processing apparatus and image processing program
CN106296614B (en) Image processing apparatus and image processing method
JP4006908B2 (en) Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program
JPWO2017203941A1 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
Saito et al. Demosaicing approach based on extended color total-variation regularization
JP4032579B2 (en) Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program
JPH0654172A (en) Image enlarging method
US7567732B2 (en) Image resolution conversion
Sudhakaran et al. High-quality image scaling using v-model
JPH0846778A (en) Image magnification method
JP3783815B2 (en) Image processing device
JP4139672B2 (en) Interpolation apparatus and interpolation method of captured image by single-plate color digital camera
JP4139587B2 (en) Interpolation apparatus and method for captured image in single-plate color digital camera
JP4748278B2 (en) Interpolation processing apparatus and recording medium recording interpolation processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060418

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060509

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060615

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060707

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070807

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070820

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100907

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4006908

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100907

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110907

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120907

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130907

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term