JPH11215513A - Image-pickup device - Google Patents

Image-pickup device

Info

Publication number
JPH11215513A
JPH11215513A JP10017083A JP1708398A JPH11215513A JP H11215513 A JPH11215513 A JP H11215513A JP 10017083 A JP10017083 A JP 10017083A JP 1708398 A JP1708398 A JP 1708398A JP H11215513 A JPH11215513 A JP H11215513A
Authority
JP
Japan
Prior art keywords
signal
pixel
output
color
horizontal
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
JP10017083A
Other languages
Japanese (ja)
Other versions
JP3926019B2 (en
Inventor
Masako Asamura
まさ子 浅村
Yoshiko Hatano
喜子 幡野
Hiroaki Sugiura
博明 杉浦
Tetsuya Kuno
徹也 久野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP01708398A priority Critical patent/JP3926019B2/en
Publication of JPH11215513A publication Critical patent/JPH11215513A/en
Application granted granted Critical
Publication of JP3926019B2 publication Critical patent/JP3926019B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain an image whose false color and false contour are reduced by calculating a signal at a prescribed pixel position based on an edge component at a prescribed pixel position of a chrominance signal, decoding a signal corresponding to pixel number of an image-pickup element and decoding the signal corresponding to the pixel number of the image-pickup element, based on the decoded chrominance signal and the edge component. SOLUTION: A separate means 4 separates R, G, B signals from a signal received by a frame memory 3, and the G signal is fed to an edge discrimination means 5 and a G component decoding means 6. The R, B signals are fed to the G component decoding means 6 and RB decoding means 7. The edge discrimination means 5 discriminates an edge component at a prescribed pixel position at a prescribed pixel position in the G signal and gives the discrimination result to the G component decoding means 6. The G component decoding means 6 decodes a pixel signal of the G component to obtain the G signal with a total pixel number in an image-pickup element 1, based on the discrimination result from the edge discrimination means 5. Then the result is fed to RB component decoding means 7, 9 and an edge discrimination means 8, where the pixel is decoded and generated.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、電子スチルカメ
ラのような撮像装置における高画質化、小型化に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to high image quality and miniaturization of an image pickup apparatus such as an electronic still camera.

【0002】[0002]

【従来の技術】従来、電子スチルカメラのような撮像装
置においては、小型化のために1枚の撮像素子(以下、
単板撮像素子と呼ぶ)を用いている。図19は従来にお
ける撮像素子の代表的な色フィルタ配列の一例を示す図
である。図において、RはRの光を通過させる分光特性
を持った色フィルタを有した撮像素子であり、同様に
B、Gについてもそれぞれの色フィルタを有した撮像素
子である。図19に示されるように、nラインにはG、
Rが2画素毎に配列され、n+1ラインではB、Gが2
画素毎に配列されている。したがって、R、B信号は上
下4画素毎(図中の斜線部)に、G信号は2画素毎に得
られることとなり、撮像素子の画素数の各信号を得て解
像度の向上を図るには、得られている画素信号より演算
処理を行い撮像素子数のR、G、B信号を生成すること
となる。
2. Description of the Related Art Conventionally, in an image pickup apparatus such as an electronic still camera, a single image pickup element (hereinafter, referred to as a single image pickup element) has been used for miniaturization.
(Referred to as a single-chip image sensor). FIG. 19 is a diagram showing an example of a typical color filter array of a conventional image sensor. In the figure, R is an image sensor having a color filter having a spectral characteristic for transmitting light of R, and similarly, B and G are image sensors having respective color filters. As shown in FIG. 19, G,
R is arranged every two pixels, and B and G are 2 in the (n + 1) th line.
It is arranged for each pixel. Therefore, the R and B signals are obtained every four pixels in the upper and lower portions (hatched portions in the drawing), and the G signal is obtained every two pixels. Then, arithmetic processing is performed from the obtained pixel signals to generate R, G, and B signals of the number of imaging elements.

【0003】図20は上記図19に示された原色の色フ
ィルタを用いた撮像素子において、撮像素子からの信号
よりR、G、B信号を生成する従来の撮像装置の構成の
一例を示すブロック図である。図20において、101
は撮像素子、102はフレームメモリ、103はフレー
ムメモリ102における信号をR、G、Bそれぞれの信
号に分離する分離手段、104は補間手段であり、上記
撮像素子101は、図19に示すように、画素R、G、
Bから構成される。
FIG. 20 is a block diagram showing an example of the configuration of a conventional image pickup apparatus that generates R, G, and B signals from signals from the image pickup element in the image pickup element using the primary color filters shown in FIG. FIG. In FIG. 20, 101
Is an image sensor, 102 is a frame memory, 103 is a separating means for separating the signals in the frame memory 102 into R, G, and B signals, and 104 is an interpolating means. , Pixels R, G,
B.

【0004】次に、動作を説明する。撮像素子101か
ら各画素信号R、G、Bを読み出し、フレームメモリ1
02に各画素信号を取り込む。前記フレームメモリ10
2に取り込まれた信号から、分離手段103により各信
号を分離し、それぞれを補間手段104へと送る。補間
手段104では、各R、G、B信号において得られてい
ない画素の信号を隣接画素の信号より補間生成し、撮像
素子すべての画素数のRGB信号を算出し出力される。
Next, the operation will be described. The respective pixel signals R, G, and B are read from the image sensor 101, and the frame memory 1
02 receives each pixel signal. The frame memory 10
Each signal is separated by the separating means 103 from the signal taken in by 2 and sent to the interpolating means 104. The interpolation means 104 interpolates and generates a signal of a pixel not obtained in each of the R, G, and B signals from a signal of an adjacent pixel, and calculates and outputs RGB signals of all the pixels of the image sensor.

【0005】ここで、上記補間手段104における補間
方法の一例について図21により説明する。分離手段1
03により分離されたR、G、B信号は図21(a)
(b)(c)に示されるようになり、図中G、R、Bで
示された画素が撮像素子102より得られた各信号であ
り、一方、空白の画素が得られていない画素信号であ
る。G信号(図21(a))については、垂直nライ
ン、水平m番目の画素位置の信号g(以下、画素位置
(n,m)と記す。)を補間するために、上下方向の隣
接画素の差分(|G(n−1,m)−G(n+1,m)
|)と左右方向の隣接画素の差分(|G(n,m−1)
−G(n,m+1)|)を求め、この差分が少ない方向
の画素信号により補間する。例えば、左右方向の隣接画
素の差分が少ない場合は、g(n,m)=(G(n,m
−1)+G(n,m+1))/2として算出し、上下方
向の隣接画素の差分が少ない場合は、g(n,m)=
(G(n−1,m)+G(n+1,m))/2として算
出する。
Here, an example of an interpolation method in the interpolation means 104 will be described with reference to FIG. Separation means 1
The R, G, and B signals separated by H.03 are shown in FIG.
(B) As shown in (c), the pixels indicated by G, R, and B in the figure are the respective signals obtained from the image sensor 102, while the pixel signals from which no blank pixels are obtained It is. As for the G signal (FIG. 21A), in order to interpolate a signal g (hereinafter, referred to as a pixel position (n, m)) at a vertical n-th line and a horizontal m-th pixel position, adjacent pixels in a vertical direction are interpolated. (| G (n−1, m) −G (n + 1, m))
|) And the difference (| G (n, m-1)
−G (n, m + 1) |), and interpolates the pixel signals in the direction in which the difference is small. For example, if the difference between adjacent pixels in the left-right direction is small, g (n, m) = (G (n, m)
-1) + G (n, m + 1)) / 2, and when the difference between adjacent pixels in the vertical direction is small, g (n, m) =
It is calculated as (G (n-1, m) + G (n + 1, m)) / 2.

【0006】RおよびB信号(図21(b)および
(c))については、まず水平方向の画素の補間を行
い、次に垂直方向で補間を行う。例えば図21(b)の
Rについては、垂直n−1ライン、n+1ラインでの補
間を行い、画素位置(n−1,m)(n+1,m)の信
号を、 r(n−1,m)=(R(n−1,m−1)+R(n−
1,m+1))/2 r(n+1,m)=(R(n+1,m−1)+R(n+
1,m+1))/2 のように算出し、つぎにnラインの画素を上下(n−1
およびn+1ライン)の画素の補間により各水平画素位
置m−1、m、m+1の信号を求める。Bについても同
様な方法で得られる。
For the R and B signals (FIGS. 21 (b) and (c)), first, horizontal pixel interpolation is performed, and then vertical interpolation is performed. For example, for R in FIG. 21B, interpolation is performed on the vertical n-1 line and the n + 1 line, and the signal at the pixel position (n-1, m) (n + 1, m) is converted into r (n-1, m). ) = (R (n-1, m-1) + R (n-
1, m + 1)) / 2 r (n + 1, m) = (R (n + 1, m-1) + R (n +
1, m + 1)) / 2, and then the pixels of the n-th line are moved up and down (n-1).
And n + 1 lines), the signal of each horizontal pixel position m-1, m, m + 1 is obtained. B can be obtained in a similar manner.

【0007】以上の補間方法により、補間手段104の
出力において、撮像素子すべての画素数のR、G、B信
号を算出することができる。
By the above-described interpolation method, it is possible to calculate R, G, and B signals of the number of pixels of all the image pickup devices at the output of the interpolation means 104.

【0008】また、図22は特開平6−178307号
公報に示された上下2画素を混合して読み出す画素混合
方式の撮像素子による従来の撮像装置の一例を示してお
り、上記の従来例と同様、撮像素子からの信号を水平走
査3ラインから補間生成するよう構成する場合のブロッ
ク図を示したものである。同図において、105は撮像
素子、106はフレームメモリ、107は信号選択回
路、108は色補間回路、109はRGBマトリクスで
ある。撮像素子105は、図22に示すように、4つの
画素A,B,C,D(以下、各画素信号に付けられた番
号は画素位置を示す)から構成され、画素混合読み出し
により色信号が生成できるようにA、Bの画素が1ライ
ン毎に交互に配列される。
FIG. 22 shows an example of a conventional image pickup apparatus using a pixel mixing type image pickup device disclosed in Japanese Patent Application Laid-Open No. 6-178307, in which two upper and lower pixels are mixed and read. Similarly, FIG. 10 is a block diagram showing a case in which a signal from an image sensor is generated by interpolation from three horizontal scanning lines. In the figure, 105 is an image sensor, 106 is a frame memory, 107 is a signal selection circuit, 108 is a color interpolation circuit, and 109 is an RGB matrix. As shown in FIG. 22, the image sensor 105 is composed of four pixels A, B, C, and D (hereinafter, the number assigned to each pixel signal indicates a pixel position). Pixels A and B are alternately arranged for each line so that they can be generated.

【0009】次に、動作を説明する。撮像素子105か
ら画素混合読み出しせずそのまま各画素信号を読み出
し、フレームメモリ106に各画素信号を取り込む。前
記フレームメモリ106に取り込まれた信号から、信号
選択回路107により隣接した垂直3ラインの信号を選
択し、色補間回路108へと送る。色補間回路108で
は、上記垂直3ラインの信号から各色信号A、B、C、
Dを補間生成した後、RGBマトリクス回路109によ
りRGB信号として出力される。
Next, the operation will be described. Each pixel signal is read out from the image sensor 105 without pixel mixture readout, and each pixel signal is taken into the frame memory 106. From the signals fetched into the frame memory 106, a signal of adjacent three lines is selected by a signal selection circuit 107 and sent to a color interpolation circuit 108. In the color interpolation circuit 108, the color signals A, B, C,
After D is generated by interpolation, it is output as an RGB signal by the RGB matrix circuit 109.

【0010】ここで、上記色補間回路108では各色信
号を補間生成するのであるが、この補間方法について説
明する。例えば、n2ラインの色信号補間生成では、信
号選択回路107により垂直3ラインn1,n2,n3
の信号が選択されて色補間回路108へと送られてお
り、n2ラインにおいて得られている色信号はC、D画
素であり、A,Bの画素はない。したがって、A,Bの
画素については垂直方向でのn1、n3ラインの信号よ
り補間するのであるが、n1、n3ラインではA,Bの
画素位置が異なるので、水平方向の補間係数を変えるこ
ととなる。いま、補間後の色信号のn2ラインの3番目
の画素(n2,3)に対し、補間前の水平5画素より各
色信号A′、B′、C′、D′を補間生成するとする
と、例えば、C′、D′については、水平方向のみ中心
に重みをつけて補間生成し、 C23′=(C21/2+ C23+ C25/2)/2 D23′=(D22+ D24)/2 とする。一方、 A′、B′に対しては、 A23′=(A11/4+ A13/2+ A15/4 )/2+
(A31/4+ A33/2+A35/4)/2 B23′=(B12/2+ B14/2)/2+(B32/2+
34/2)/2 なる式から水平画素に重みをつけ補間することができ
る。
Here, the color interpolation circuit 108 generates each color signal by interpolation. This interpolation method will be described. For example, in the color signal interpolation generation for the n2 line, the signal selection circuit 107 causes the three vertical lines n1, n2, n3
Are selected and sent to the color interpolation circuit 108. The color signals obtained in the n2 line are C and D pixels, and there are no A and B pixels. Therefore, the pixels of A and B are interpolated from the signals of the n1 and n3 lines in the vertical direction. However, since the positions of the pixels of A and B are different in the n1 and n3 lines, the interpolation coefficient in the horizontal direction must be changed. Become. Now, for the third pixel (n2, 3) of the n2 line of the color signal after interpolation, the respective color signals A ', B', C ', and D' are generated by interpolation from five horizontal pixels before interpolation. , C ', D' for interpolates generated weighted horizontally only center, C 23 '= (C 21 /2 + C 23 + C 25/2) / 2 D 23' = (D 22 + D 24 ) / 2. On the other hand, A ', B' for the, A 23 '= (A 11 /4 + A 13/2 + A 15/4) / 2 +
(A 31/4 + A 33 /2 + A 35/4) / 2 B 23 '= (B 12/2 + B 14/2) / 2 + (B 32/2 +
From the formula B 34/2 ) / 2, horizontal pixels can be weighted and interpolated.

【0011】次に、n3ラインの色信号の補間生成で
は、A、Bの画素はn3ラインから補間生成し、C、D
画素についてはn2、n4ラインから補間生成する。つ
まり、画素位置(3、3)において、例えば、 A33′=(A32+ A34)/2 B33′=(B31/2+ B33+ B35/2)/2 C33′=( C21/4+ C23/2+ C25/4)/2+
(C41/4+ C43/2+C45/4)/2 D33′=(D22/2+ D24/2)/2+(D42/2+
44/2)/2 となる。
Next, in the interpolation generation of the color signal of the n3 line, the pixels of A and B are generated by interpolation from the n3 line, and C, D
Pixels are generated by interpolation from lines n2 and n4. That is, at the pixel position (3, 3), for example, A 33 ′ = (A 32 + A 34 ) / 2 B 33 ′ = (B 31/2 + B 33 + B 35/2 ) / 2 C 33 ′ = ( C 21/4 + C 23/ 2 + C 25/4) / 2 +
(C 41/4 + C 43 /2 + C 45/4) / 2 D 33 '= (D 22/2 + D 24/2) / 2 + (D 42/2 +
D 44/2 ) / 2.

【0012】以下、A,Bの画素配置がライン毎で入れ
替わることを考慮し、n4ラインでは、画素位置(4、
3)に対し、 A43′=(A31/4+A33/2+A35/4)/2+(A
51/4+A53/2+A55/4)/2 B43′=(B32/2+ B34/2)/2+(B52/2+
54/2)/2 C43′=(C41/2+ C43+ C45/2)/2 D43′=(D42+ D44)/2 n5ラインでは、画素位置(5、3)に対し、 A53′=(A52+ A54)/2 B53′=(B52+ B54)/2 C53′=(C41/4+C43/2+C45/4)/2+(C
61/4+C63/2+C65/4)/2 D53′=(D42/2+ D44/2)/2+(D62/2+
64/2)/2 となる。以後、上記n2、n3,n4、n5ラインでの
補間方法を順次繰り返すことにより、色信号A′、
B′、C′、D′を生成することとなる。
In consideration of the fact that the pixel arrangements of A and B are interchanged for each line, the pixel positions (4,
3), A 43 ′ = (A 31/4 + A 33/2 + A 35/4 ) / 2 + (A
51/4 + A53 / 2 + A55 / 4) / 2 B43 '= ( B32 / 2 + B34 / 2) / 2 + ( B52 / 2 +
B 54/2) / 2 C 43 In '= (C 41/2 + C 43 + C 45/2) / 2 D 43' = (D 42 + D 44) / 2 n5 line, the pixel position (5,3) A53 '= ( A52 + A54 ) / 2 B53 ' = ( B52 + B54 ) / 2 C53 '= ( C41 / 4 + C43 / 2 + C45 / 4) / 2 + (C
61/4 + C63 / 2 + C65 / 4) / 2 D53 '= ( D42 / 2 + D44 / 2) / 2 + ( D62 / 2 +
D 64/2 ) / 2. Thereafter, the color signals A ′,
B ', C', and D 'will be generated.

【0013】したがって、垂直3ラインにより色信号を
補間生成しているので、色信号の垂直解像度劣化の少な
い撮像素子の画素数の信号を得られる。なお、上記で
は、4つの色信号をA,B,C,Dとして説明している
が、これは、例えば、Mg(マゼンダ)、G(グリー
ン)、Cy(シアン)、Ye(イエロー)の4色が考え
られ、また、色補間回路108での補間係数については
色信号を補間生成できる係数であればよい。
[0013] Therefore, since the color signal is interpolated and generated by three vertical lines, it is possible to obtain a signal of the number of pixels of the image sensor with little deterioration in the vertical resolution of the color signal. In the above description, the four color signals are described as A, B, C, and D. However, the four color signals are, for example, Mg (magenta), G (green), Cy (cyan), and Ye (yellow). A color can be considered, and the interpolation coefficient in the color interpolation circuit 108 may be any coefficient that can generate a color signal by interpolation.

【0014】[0014]

【発明が解決しようとする課題】従来の撮像装置は、水
平方向の隣接画素と上下のラインにおける画素信号によ
る補間によって色信号を生成するよう構成されており、
得られた色信号からの画像におけるエッジ等局所的な領
域での空間周波数の変化を考慮しておらず、そのため、
偽色、偽輪郭が生じるという問題点があった。
A conventional image pickup apparatus is configured to generate a color signal by interpolation between adjacent pixels in the horizontal direction and pixel signals in upper and lower lines.
It does not consider changes in spatial frequency in local areas such as edges in images from the obtained color signals,
There is a problem that false colors and false contours occur.

【0015】この発明は上記のような問題点を解消する
ためになされたもので、垂直2行水平2列の上下4画素
において、第1の色信号に対する分光感度特性を持つ第
1の色フィルタと第2の色信号に対する分光感度特性を
持つ第2の色フィルタとが垂直1行目に配列され、垂直
2行目には上記垂直1行目における第1の色フィルタが
配列された画素位置と同一の列に第3の色信号に対する
分光感度特性を持つ第3の色フィルタが配列され、第2
の色フィルタと同一の列に第1の色信号に対する分光感
度特性を持つ第1の色フィルタが配列されており、上記
上下4画素の色フィルタが順次垂直および水平方向に繰
り返し配列される撮像素子を備えた撮像装置において、
上記第1の色フィルタによる第1の色信号の所定画素位
置におけるエッジ成分に基づき、第1の色信号における
所定画素位置での信号を算出して撮像素子の画素数の信
号を復元し、復元した第1の色信号と上記エッジ成分に
基づき、第2および第3の色信号を算出して撮像素子の
画素数分の信号を復元することにより、偽色、偽輪郭の
軽減された画像を得る撮像装置を得ることを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and has a first color filter having a spectral sensitivity characteristic for a first color signal in upper and lower four pixels in two vertical rows and two horizontal columns. And a second color filter having a spectral sensitivity characteristic for the second color signal are arranged in the first vertical line, and the second vertical line is a pixel position where the first color filter in the first vertical line is arranged. A third color filter having a spectral sensitivity characteristic for the third color signal is arranged in the same column as
An image sensor in which a first color filter having a spectral sensitivity characteristic for a first color signal is arranged in the same column as the color filters described above, and the color filters of the upper and lower four pixels are sequentially arranged vertically and horizontally repeatedly. In an imaging device provided with
Based on the edge component of the first color signal at the predetermined pixel position by the first color filter, a signal at the predetermined pixel position in the first color signal is calculated to restore the signal of the number of pixels of the image sensor, and the restoration is performed. By calculating the second and third color signals based on the obtained first color signal and the edge component and restoring the signals corresponding to the number of pixels of the image sensor, an image with reduced false colors and false contours can be obtained. It is an object to obtain an imaging device that can be obtained.

【0016】[0016]

【課題を解決するための手段】この発明に係る撮像装置
は、垂直2行水平2列の上下4画素において、第1の色
信号に対する分光感度特性を持つ第1の色フィルタと第
2の色信号に対する分光感度特性を持つ第2の色フィル
タとが第1の行に配列され、第2の行においては上記第
1の行における第1の色フィルタが配列された画素位置
と同一の列に第3の色信号に対する分光感度特性を持つ
第3の色フィルタが配列され、第2の色フィルタと同一
の列に上記第1の色フィルタと同一の第1の色信号に対
する分光感度特性を持つ第1の色フィルタが配列されて
おり、上記上下4画素の色フィルタが順次垂直および水
平方向に繰り返し配列される撮像素子を備えた撮像装置
において、上記第1の色フィルタによる第1の色信号の
所定画素位置での周辺画素信号に基づき、所定画素位置
におけるエッジ成分を判定するエッジ判定手段と、前記
エッジ判定手段の出力に基づき、上記第1、第2、第3
の色フィルタにより読み出された第1、第2および第3
の色信号により第1の色信号における上記所定画素位置
での信号を算出する第1の算出手段と、上記エッジ判定
手段の出力に基づき、第1の算出手段の出力と色フィル
タからの第2および第3の色信号により第2および第3
の色信号における信号を算出する第2の算出手段とを備
え、上記撮像素子における画素数の第1、第2、第3の
色信号を得るものである。
An image pickup apparatus according to the present invention comprises a first color filter having a spectral sensitivity characteristic for a first color signal and a second color filter in four upper and lower pixels of two vertical rows and two horizontal columns. A second color filter having a spectral sensitivity characteristic with respect to a signal is arranged in a first row, and a second row is arranged in the same column as a pixel position where the first color filter is arranged in the first row. A third color filter having a spectral sensitivity characteristic for the third color signal is arranged, and has the same spectral sensitivity characteristic for the first color signal as the first color filter in the same column as the second color filter. In an imaging apparatus including an imaging element in which a first color filter is arranged and the upper and lower four-pixel color filters are sequentially arranged in a vertical and horizontal direction, a first color signal by the first color filter is provided. At a given pixel position Based on the sides pixel signal, and determines the edge determination means an edge component in a predetermined pixel position, based on the output of the edge determination means, said first, second, third
, Second and third read out by the color filters
A first calculating means for calculating a signal at the predetermined pixel position in the first color signal from the color signal of the first color signal, and an output of the first calculating means and a second signal from the color filter based on the output of the edge determining means. And the third and the third color signals
And second calculation means for calculating a signal of the color signal of the image sensor, and obtains first, second, and third color signals of the number of pixels in the image sensor.

【0017】また、この発明に係る撮像装置は、前記エ
ッジ判定手段が、上記第1の色信号の所定画素位置にお
ける左右の隣接画素の差の絶対値を算出して水平方向の
エッジ成分を検出する水平方向エッジ検出手段と、第1
の色信号の所定画素位置における上下の画素の差の絶対
値を算出して垂直方向のエッジ成分を検出する垂直方向
エッジ検出手段と、前記水平方向エッジ検出手段と垂直
方向エッジ検出手段からの出力に基づき、前記所定画素
における水平または垂直方向のエッジ成分を判定する判
定手段を備えるものである。
Further, in the image pickup apparatus according to the present invention, the edge determination means detects a horizontal edge component by calculating an absolute value of a difference between left and right adjacent pixels at a predetermined pixel position of the first color signal. Horizontal edge detecting means for performing
Vertical edge detecting means for calculating an absolute value of a difference between upper and lower pixels at a predetermined pixel position of a color signal to detect a vertical edge component; and outputs from the horizontal edge detecting means and the vertical edge detecting means. And determining means for determining a horizontal or vertical edge component in the predetermined pixel based on

【0018】また、この発明に係る撮像装置は、前記エ
ッジ判定手段における判定手段が、上記水平方向エッジ
検出手段からの出力または上記垂直方向エッジ検出手段
からの出力が予め定めた値より大きい場合は、上記所定
画素の周辺画素にエッジ成分を検出したとし、さらに、
水平方向エッジ検出手段からの出力が上記垂直方向エッ
ジ検出手段の出力より大きい場合は垂直方向により相関
があり、水平方向エッジ検出手段からの出力が上記垂直
方向エッジ検出手段の出力より小さい場合は水平方向に
より相関があると判定するとともに、上記水平方向エッ
ジ検出手段および垂直方向エッジ検出手段からの出力が
ともに予め定めた値より小さい場合にはエッジ成分を検
出しないと判定するものである。
Also, in the imaging apparatus according to the present invention, when the judgment means in the edge judgment means determines that the output from the horizontal edge detection means or the output from the vertical edge detection means is larger than a predetermined value. , It is assumed that an edge component is detected in the peripheral pixels of the predetermined pixel,
If the output from the horizontal edge detecting means is larger than the output of the vertical edge detecting means, there is a vertical correlation.If the output from the horizontal edge detecting means is smaller than the output of the vertical edge detecting means, the correlation is horizontal. It is determined that there is a correlation depending on the direction, and when both the outputs from the horizontal edge detecting means and the vertical edge detecting means are smaller than a predetermined value, it is determined that no edge component is detected.

【0019】また、この発明に係る撮像装置は、前記第
1の算出手段が、第2の色信号Bのある所定画素l行m
列B(l、m)の位置において、第1の色信号A、第2
の色信号Bのそれぞれに対し水平方向のローパスフィル
タを介した値Ahlpf(l、m )、Bhlpf
(l、m)を算出し、前記水平方向ローパスフィルタか
らの出力信号であるAhlpf(l、m)とBhlpf
(l、m)との比と上記画素位置の画素値B(l、m)
により、l行m列の第1の色信号Aにおける画素値A
(l、m)を、A(l、m)=B(l、m)×{Ahl
pf(l、m)/Bhlpf(l、m)}により算出
し、第3の色信号Cのある他の画素位置においても同様
に第1の色信号Aにおける画素値を算出する水平方向信
号算出手段と、上記所定画素l行m列B(l、m)の位
置において、第1の色信号A、第2の色信号Bのそれぞ
れに対し垂直方向のローパスフィルタを介した値Avl
pf(l、m)、Bvlpf(l、m)を算出し、前記
垂直方向ローパスフィルタからの出力信号であるAvl
pf (l、m)とBvlpf(l、m)との比と上記
画素位置の画素値B(l、m)により、l行m列の第1
の色信号Aにおける画素値A(l、m)を、A(l、
m)=B(l、m)×{Avlpf(l、m)/Bvl
pf(l、m)}により算出し、第3の色信号Cのある
他の画素位置においても同様に第1の色信号Aにおける
画素値を算出する垂直方向信号算出手段と、第1の色信
号Aにおける上記所定画素l行m列の位置での上下左右
の隣接画素の平均値よりl行m列の第1の色信号Aにお
ける画素値A(l、m)を算出する平均値算出手段とを
備え、上記エッジ判定手段の出力に基づき、上記水平方
向信号算出手段の出力または垂直方向信号算出手段出
力、または、平均値算出手段からの出力より選択し、上
記所定画素l行m列における第1の色信号Aの画素値A
(l、m)を得て、撮像素子における画素数の第1の色
信号を得るものである。
Further, in the image pickup apparatus according to the present invention, the first calculating means may determine that the second color signal B has a predetermined pixel l row m
At the position of column B (l, m), the first color signal A, the second color signal A
Ahlpf (l, m), Bhlpf for each of the color signals B through a horizontal low-pass filter
(L, m) is calculated, and Ahlpf (l, m) and Bhlpf which are output signals from the horizontal low-pass filter are calculated.
(L, m) and the pixel value B (l, m) at the pixel position
As a result, the pixel value A in the first color signal A in l rows and m columns
(L, m) is calculated by A (l, m) = B (l, m) × {Ahl
pf (l, m) / Bhlpf (l, m)}, and the horizontal direction signal calculation for calculating the pixel value of the first color signal A at another pixel position of the third color signal C similarly Means and a value Avl via a low-pass filter in the vertical direction for each of the first color signal A and the second color signal B at the position of the predetermined pixel l row m column B (l, m)
pf (l, m) and Bvlpf (l, m) are calculated, and Avl which is an output signal from the vertical low-pass filter is calculated.
Based on the ratio of pf (l, m) to Bvlpf (l, m) and the pixel value B (l, m) at the above pixel position, the first of l rows and m columns
The pixel value A (l, m) of the color signal A of A is represented by A (l,
m) = B (l, m) × {Avlpf (l, m) / Bvl
pf (l, m)}, a vertical signal calculating means for calculating a pixel value of the first color signal A at another pixel position of the third color signal C, and a first color signal. Average value calculating means for calculating a pixel value A (l, m) of the first color signal A in l rows and m columns from an average value of upper, lower, left and right adjacent pixels at the position of the predetermined pixel l rows and m columns in the signal A Based on the output of the edge judging means, selected from the output of the horizontal direction signal calculating means or the output of the vertical direction signal calculating means, or the output from the average value calculating means. Pixel value A of first color signal A
(L, m) to obtain a first color signal of the number of pixels in the image sensor.

【0020】また、この発明に係る撮像装置は、前記第
1の算出する手段が、上記エッジ判定手段の出力が所定
画素l行m列の位置においてエッジ成分を検出しないと
判定した場合は上記平均値算出手段の出力を選択し、垂
直方向に相関があると判定した場合は上記垂直方向信号
算出手段の出力を選択し、水平方向に相関があると判定
した場合は上記水平方向信号算出手段の出力を選択し、
撮像素子における画素数の第1の色信号を得るものであ
る。
Also, in the imaging apparatus according to the present invention, when the first calculating means determines that the output of the edge determining means does not detect an edge component at a position of a predetermined pixel at l rows and m columns, the average is calculated. The output of the value calculation means is selected, and when it is determined that there is a correlation in the vertical direction, the output of the vertical signal calculation means is selected. When it is determined that there is a correlation in the horizontal direction, the output of the horizontal signal calculation means is determined. Select the output,
This is for obtaining a first color signal of the number of pixels in the image sensor.

【0021】また、この発明に係る撮像装置は、上記第
2の算出手段が、所定画素l行m列の位置において、上
記第1の算出手段からの出力Aに対して水平方向のロー
パスフィルタを介した値A1hlpf(l、m)と垂直
方向ローパスフィルタを介した値A1vlpf(l、
m)を算出し、第2の色信号Bに対し水平方向のローパ
スフィルタを介した値B1hlpf(l、m)と第3の
色信号Cに対し垂直方向のローパスフィルタを介した値
C1vlpf(l、m)(または、第2の色信号Bに対
し垂直方向のローパスフィルタを介した値B1vlpf
(l、m)と第3の色信号Cに対して水平方向のローパ
スフィルタを介した値C1hlpf(l、m ))とを
算出し、A1hlpf(l、m)とB1hlpf(l、
m)との比(またはC1hlpf(l、m)との比)
と、A1vlpf(l、m)とC1vlpf(l、m)
との比(または、B1vlpf(l、m)との比)と、
上記第1の算出手段からの出力Aにおける所定画素l行
m列での画素値A(l、m)から、l行m列の第2の色
信号Bと第3の色信号Cにおける画素値B(l、m)と
C(l、m)を、B(l、m)=A(l、m)×{B1
hlpf(l、m)/A1hlpf(l、m)}、C
(l、m)=A(l、m)×{C1vlpf(l、m)
/A1vlpf(l、m)}、(または、B(l、m)
=A(l、m)×{B1vlpf(l、m)/A1vl
pf(l、m)}C(l、m)=A(l、m)×{C1
hlpf(l、m)/A1hlpf(l、m)})によ
り算出する信号算出手段を備えるとともに、上記l行m
列の位置とは異なる所定画素x行y列の位置において、
上記第1の算出手段からの出力Aに対し水平方向のロー
パスフィルタを介した値A2hlpf(x、y)、前記
信号算出手段からの出力での第2の色信号Bに対し水平
方向のローパスフィルタを介した値B2hlpf(x、
y)を算出し、A2hlpf(x、y)とB2hlpf
(x、y)の比と上記第1の算出手段からの出力Aでの
画素x行y列での画素値A(x、y)により、x行y列
の位置における第2の色信号B(x、y)を、B(x、
y)=A(x、y)×{B2hlpf(x、y)/A2
hlpf(x、y)}により算出し、第3の色信号Cに
おいても同様にC信号を算出する水平方向信号算出手段
と、上記第1の算出手段からの出力Aに対し垂直方向の
ローパスフィルタを介した値A2vlpf(x、y)、
前記信号算出手段からの出力での第2の色信号Bに対し
垂直方向のローパスフィルタを介した値B2vlpf
(x、y)を算出し、A2vlpf(x、y)とB2v
lpf(x、y)の比と上記第1の算出手段からの出力
Aでの画素x行y列での画素値A(x、y)により、x
行y列の位置における第2の色信号B(x、y)を、B
(x、y)=A(x、y)×{B2vlpf(x、y)
/A2vlpf(x、y)}により算出し、第3の色信
号Cにおいても同様にC信号を算出する垂直方向信号算
出手段と、上記信号算出手段からの出力における第2、
第3の色信号での所定画素x行y列の位置において、斜
めに隣接する画素の平均値を算出する平均値算出手段と
を備え、上記エッジ判定手段の出力に基づき、前記水平
方向信号算出手段、垂直方向信号算出手段、平均値算出
手段からのそれぞれの出力から選択して、上記所定画素
x行y列での第2、第3の色信号を得て、撮像素子にお
ける画素数の第2、第3の色信号を得るものである。
Further, in the imaging apparatus according to the present invention, the second calculating means may apply a low-pass filter in the horizontal direction to the output A from the first calculating means at the position of predetermined pixel l row and m column. Value A1hlpf (l, m) through the vertical low-pass filter and value A1vlpf (l,
m), and the value B1hlpf (l, m) of the second color signal B through a horizontal low-pass filter and the value C1vlpf (l) of the third color signal C through a vertical low-pass filter. , M) (or the value B1vlpf through the low-pass filter in the vertical direction with respect to the second color signal B)
(L, m) and the value C1hlpf (l, m)) of the third color signal C through a horizontal low-pass filter are calculated, and A1hlpf (l, m) and B1hlpf (l, m) are calculated.
m) (or the ratio with C1hlpf (l, m))
And A1vlpf (l, m) and C1vlpf (l, m)
(Or the ratio to B1vlpf (l, m)) and
From the pixel value A (l, m) at the predetermined pixel l row m column in the output A from the first calculating means, the pixel value at the second color signal B and the third color signal C at l row m column Let B (l, m) and C (l, m) be B (l, m) = A (l, m) x {B1
hlpf (l, m) / A1hlpf (l, m)}, C
(L, m) = A (l, m) × {C1vlpf (l, m)
/ A1vlpf (l, m)}, (or B (l, m)
= A (l, m) × {B1vlpf (l, m) / A1vl
pf (l, m)} C (l, m) = A (l, m) × {C1
hlpf (l, m) / A1hlpf (l, m)})
At a predetermined pixel x row y column position different from the column position,
The value A2hlpf (x, y) of the output A from the first calculating means through a horizontal low-pass filter, and the horizontal low-pass filter of the second color signal B at the output from the signal calculating means. B2hlpf (x,
y) is calculated, and A2hlpf (x, y) and B2hlpf
The second color signal B at the position of x row and y column is obtained from the ratio of (x, y) and the pixel value A (x, y) at the pixel x row and y column at the output A from the first calculating means. (X, y) is converted to B (x,
y) = A (x, y) × {B2hlpf (x, y) / A2
hlpf (x, y)}, and a horizontal signal calculating means for calculating the C signal in the same manner also for the third color signal C, and a low-pass filter in the vertical direction with respect to the output A from the first calculating means. A2vlpf (x, y) via
The value B2vlpf of the second color signal B output from the signal calculation means through a vertical low-pass filter.
(X, y) is calculated, and A2vlpf (x, y) and B2v
By the ratio of lpf (x, y) and the pixel value A (x, y) at the pixel x row and y column at the output A from the first calculating means, x
The second color signal B (x, y) at the position of the row y column is represented by B
(X, y) = A (x, y) × {B2vlpf (x, y)
/ A2vlpf (x, y)}, and a vertical signal calculating means for calculating the C signal for the third color signal C in the same manner.
Average value calculation means for calculating an average value of obliquely adjacent pixels at a position of a predetermined pixel x row and y column in the third color signal, wherein the horizontal direction signal calculation is performed based on an output of the edge determination means. Means, the vertical direction signal calculating means, and the average value calculating means, to obtain the second and third color signals at the predetermined pixel x row and y column to obtain the second and third color signals. Second, a third color signal is obtained.

【0022】さらに、この発明に係る撮像装置は、前記
第2の算出手段が、上記エッジ判定手段の出力が所定画
素x行y列の位置においてエッジ成分を検出しないと判
定した場合は上記平均値算出手段の出力を選択し、垂直
方向に相関があると判定した場合は上記垂直方向信号算
出手段の出力を選択し、水平方向に相関があると判定し
た場合は上記水平方向信号算出手段の出力を選択し、撮
像素子における画素数の第2、第3の色信号を得るもの
である。
Further, in the imaging apparatus according to the present invention, when the second calculating means determines that the output of the edge determining means does not detect an edge component at a position of a predetermined pixel x row and y column, the average value is obtained. The output of the calculation means is selected, and when it is determined that there is a correlation in the vertical direction, the output of the vertical signal calculation means is selected. When it is determined that there is a correlation in the horizontal direction, the output of the horizontal signal calculation means is determined. Is selected to obtain the second and third color signals of the number of pixels in the image sensor.

【0023】[0023]

【発明の実施の形態】以下、この発明をその実施の形態
を示す図面に基づいて具体的に説明する。 実施の形態1.図1はこの発明の実施の形態1による電
子スチルカメラにおける撮像素子の色フィルタ配列の一
例を示す図であり、原色の色フィルタを用い、各光電変
換素子を独立に呼び出す方式の撮像素子を示している。
図において、Gは垂直方向2i(i=0、1、2、
…)、水平方向2j(j=0、1、2、…)の画素位置
(以下、画素位置(2i,2j)のように記す。)と、
画素位置(2i+1、2j+1)にあり、G信号を通過
させる分光特性を持った第1の色フィルタ、Rは画素位
置(2i、2j+1)にあり、R信号を通過させる分光
特性を持った第2の色フィルタ、Bは画素位置(2i+
1、2j)にあり、B信号を通過させる分光特性を持っ
た第3の色フィルタである。図1に示されるように、
R、B信号は上下4画素毎(図中の斜線部)に、G信号
は2画素毎に得られることとなり、この上下4画素が垂
直水平方向に繰り返し配列されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be specifically described with reference to the drawings showing the embodiments. Embodiment 1 FIG. FIG. 1 is a diagram showing an example of a color filter array of an image pickup device in an electronic still camera according to Embodiment 1 of the present invention, and shows an image pickup device of a system using primary color filters and independently calling each photoelectric conversion element. ing.
In the figure, G is the vertical direction 2i (i = 0, 1, 2,.
..), Pixel positions in the horizontal direction 2j (j = 0, 1, 2,...) (Hereinafter referred to as pixel positions (2i, 2j)).
A first color filter located at the pixel position (2i + 1, 2j + 1) and having a spectral characteristic for passing the G signal, R is a second color filter located at the pixel position (2i, 2j + 1) and having a spectral characteristic for passing the R signal The color filter B has a pixel position (2i +
1, 2j), and is a third color filter having a spectral characteristic for passing the B signal. As shown in FIG.
The R and B signals are obtained every four pixels in the upper and lower portions (hatched portions in the figure), and the G signal is obtained every two pixels. The four upper and lower pixels are repeatedly arranged in the vertical and horizontal directions.

【0024】図2は上記図1に示された色フィルタ配列
の撮像素子をもつ実施の形1態による電子スチルカメラ
における撮像装置の構成を示すブロック図である。図に
おいて、1は図1に示す色フィルタ配列で構成された撮
像素子、2はA/Dコンバータ、3はフレームメモリ、
4はR、G、Bの各画素信号を分離しそれぞれの信号を
出力する分離手段、5はG信号における所定画素でのエ
ッジを判定する第1のエッジ判定手段、6は上記分離手
段4からの各信号および前記第1のエッジ判定手段5か
らの出力に基づき、撮像素子1での総画素数のG信号を
得るようGの復元を行うG成分復元手段である。7は上
記G成分復元手段6の出力である総画素数の信号を持つ
復元後のG信号と、上記分離手段4からのR、B信号か
らR、Bにおける画素位置(2i、2j)および(2i
+1,2j+1)での画素を復元するための第1のRB
成分復元手段、8は上記G成分復元手段6からのG信号
における所定画素でのエッジを判定する第2のエッジ判
定手段、9は上記第1のRB成分復元手段7からのR、
B信号と上記第2のエッジ判定手段8からの出力に基づ
き、Rにおける画素位置(2i+1,2j)での画素
R、およびBにおける画素位置(2i,2j+1)での
画素Bを復元するための第2のRB成分復元手段であ
る。
FIG. 2 is a block diagram showing a configuration of an image pickup apparatus in an electronic still camera according to the first embodiment having an image pickup device having the color filter array shown in FIG. In the figure, reference numeral 1 denotes an image sensor configured with the color filter array shown in FIG. 1, 2 denotes an A / D converter, 3 denotes a frame memory,
Reference numeral 4 denotes separation means for separating the R, G, and B pixel signals and outputs respective signals. Reference numeral 5 denotes first edge determination means for determining an edge at a predetermined pixel in the G signal. Is a G component restoring means for restoring G so as to obtain a G signal of the total number of pixels in the image pickup device 1 based on each of the above signals and the output from the first edge judging means 5. Reference numeral 7 denotes a restored G signal having a signal of the total number of pixels, which is an output of the G component restoring means 6, and pixel positions (2i, 2j) and ( 2i
RB for restoring pixel at (+1, 2j + 1)
The component restoring means 8 is a second edge judging means for judging an edge at a predetermined pixel in the G signal from the G component restoring means 6.
Based on the B signal and the output from the second edge judging means 8, the pixel R at the pixel position (2i + 1,2j) at R and the pixel B at the pixel position (2i, 2j + 1) at B are restored. This is a second RB component restoration unit.

【0025】また、図3は上記第1のエッジ判定手段5
およびG成分復元手段6の一構成例を示すブロック図で
ある。図において、11はG信号の所定画素における左
右の画素の差分つまりエッジ成分を検出する水平方向エ
ッジ検出手段、12はG信号の所定画素における上下画
素の差分であるエッジ成分を検出する垂直方向エッジ検
出手段、13は前記水平および垂直方向エッジ検出手段
11および12から出力により、水平垂直方向での周辺
画素での信号レベルの変化を判定し、その判定結果を出
力する判定手段であり、水平方向エッジ検出手段11、
垂直方向エッジ検出手段12および判定手段13により
第1のエッジ判定手段5を構成する。14はG信号の所
定画素での上下左右の画素の平均値を算出する平均値算
出手段、15〜17は水平方向のローパスフィルタ、1
8はR信号と水平方向ローパスフィルタ15による出力
信号Ghlpfおよび水平方向ローパスフィルタ16に
よる出力信号Rhlpfから演算を行い、水平方向に相
関をもつ画素位置(2i、2j+1)でのG信号を出力
する演算手段、19はB信号と水平方向ローパスフィル
タ15による出力信号Ghlpfおよび水平方向ローパ
スフィルタ17による出力信号Bhlpfにより演算を
行い、水平方向に相関をもつ画素位置(2i+1、2
j)でのG信号を出力する演算手段である。20〜22
は垂直方向のローパスフィルタ、23はR信号と垂直方
向ローパスフィルタ20による出力信号Gvlpfおよ
び垂直方向ローパスフィルタ21による出力信号Rvl
pfにより演算を行い、垂直方向に相関をもつ画素位置
(2i、2j+1)でのG信号を出力する演算手段、2
4はB信号と垂直方向ローパスフィルタ20による出力
信号Gvlpfおよび垂直方向ローパスフィルタ22に
よる出力信号Bvlpfにより演算を行い、垂直方向に
相関をもつ画素位置(2i+1、2j)でのG信号を出
力する演算手段である。25は切り換え手段であり、上
記第1のエッジ判定手段5からの周辺画素の信号レベル
変化を判定した結果と画素位置に基づき、Gの画素信号
を上記平均値算出手段14、演算手段18、19および
演算手段23、24、分離手段4からの信号より、切り
換え選択する。
FIG. 3 shows the first edge determining means 5.
FIG. 3 is a block diagram showing a configuration example of a G component restoring unit 6. In the figure, reference numeral 11 denotes a horizontal edge detecting means for detecting a difference between left and right pixels in a predetermined pixel of the G signal, that is, an edge component, and 12 denotes a vertical edge for detecting an edge component which is a difference between upper and lower pixels in a predetermined pixel of the G signal. The detecting means 13 is a judging means for judging a change in the signal level in the peripheral pixels in the horizontal and vertical directions based on the outputs from the horizontal and vertical edge detecting means 11 and 12, and outputting the judgment result. Edge detection means 11,
The vertical edge detecting means 12 and the judging means 13 constitute the first edge judging means 5. Numeral 14 denotes an average value calculating means for calculating the average value of the upper, lower, left, and right pixels of a predetermined pixel of the G signal.
An operation 8 performs an operation from the R signal, the output signal Ghlpf from the horizontal low-pass filter 15 and the output signal Rhlpf from the horizontal low-pass filter 16, and outputs a G signal at a pixel position (2i, 2j + 1) having a correlation in the horizontal direction. Means 19 performs an operation on the B signal, the output signal Ghlpf from the horizontal low-pass filter 15 and the output signal Bhlpf from the horizontal low-pass filter 17, and calculates pixel positions (2i + 1, 2
This is an arithmetic means for outputting the G signal in j). 20-22
Is a vertical low-pass filter, 23 is an R signal, an output signal Gvlpf from the vertical low-pass filter 20, and an output signal Rvl from the vertical low-pass filter 21.
calculation means for performing a calculation by pf and outputting a G signal at a pixel position (2i, 2j + 1) having a vertical correlation;
An operation 4 performs an operation based on the B signal, the output signal Gvlpf from the vertical low-pass filter 20 and the output signal Bvlpf from the vertical low-pass filter 22, and outputs a G signal at a pixel position (2i + 1, 2j) having a vertical correlation. Means. Reference numeral 25 denotes a switching unit, which converts the G pixel signal into the average value calculating unit 14 and the calculating units 18 and 19 based on the result of determining the signal level change of the peripheral pixel from the first edge determining unit 5 and the pixel position. Switching is selected from signals from the arithmetic means 23 and 24 and the separating means 4.

【0026】また、図4は第2のエッジ判定手段8およ
び第2のRB成分復元手段9の一構成例を示すブロック
図である。図において、第2のエッジ判定手段8は、G
信号の所定画素における左右の画素の差分を検出する水
平方向エッジ検出手段30、および上下画素の差分を検
出する垂直方向エッジ検出手段31、前記水平および垂
直方向エッジ検出手段30および31からの出力によ
り、水平垂直方向での周辺画素での信号レベルの変化を
判定し、R信号の画素位置(2i+1,2j)に対する
判定結果とB信号の画素位置(2i+1,2j)に対す
る判定結果を出力する判定手段32により構成される。
Rにおける画素位置(2i+1,2j)での画素R、お
よびBにおける画素位置(2i,2j+1)での画素B
を復元するための第2のRB成分復元手段9において
は、33はR信号での斜め方向に隣接する画素の平均値
を算出するR平均値算出手段、34はG成分復元手段6
からのG信号と第1のRB復元手段7からのR信号によ
り、Rにおける画素位置(2i+1,2j)での画素信
号を水平方向の隣接画素により演算するR水平方向演算
手段、35は垂直方向の隣接画素により、前記と同様に
して画素位置(2i+1,2j)での画素信号を演算す
るR垂直方向演算手段、36は上記第2のエッジ判定手
段8からの判定結果に基づき、画素位置に応じR画素を
切り換えるR切り換え手段であり、37はB信号での斜
め方向に隣接する画素の平均値を算出するB平均値算出
手段、38はG成分復元手段6からのG信号と第1のR
B復元手段7からのB信号により、Bにおける画素位置
(2i,2j+1)での画素信号を水平方向の隣接画素
により演算するB水平方向演算手段、39は垂直方向の
隣接画素により、前記と同様にして画素位置(2i,2
j+1)での画素信号を演算するB垂直方向演算手段、
40は上記第2のエッジ判定手段8からの判定結果に基
づき、画素位置に応じB画素を切り換えるB切り換え手
段である。
FIG. 4 is a block diagram showing an example of the configuration of the second edge judging means 8 and the second RB component restoring means 9. In the figure, the second edge determination means 8 is G
A horizontal edge detecting means 30 for detecting a difference between left and right pixels in a predetermined pixel of a signal, a vertical edge detecting means 31 for detecting a difference between upper and lower pixels, and outputs from the horizontal and vertical edge detecting means 30 and 31 Determining means for determining a change in signal level of peripheral pixels in the horizontal and vertical directions, and outputting a determination result for the pixel position (2i + 1, 2j) of the R signal and a determination result for the pixel position (2i + 1, 2j) of the B signal. 32.
Pixel R at pixel position (2i + 1,2j) in R and pixel B at pixel position (2i, 2j + 1) in B
In the second RB component restoring means 9 for restoring R, 33 is an R average value calculating means for calculating an average value of obliquely adjacent pixels in the R signal, and 34 is a G component restoring means 6.
Horizontal calculating means for calculating a pixel signal at a pixel position (2i + 1,2j) in R by horizontally adjacent pixels based on the G signal from the R and the R signal from the first RB restoring means 7; In the same manner as described above, the R vertical direction calculating means 36 for calculating the pixel signal at the pixel position (2i + 1, 2j) by the adjacent pixels of the above, based on the determination result from the second edge determining means 8, R switching means for switching the R pixels in response to the B signal; 37 means a B average value calculating means for calculating an average value of pixels adjacent in the diagonal direction in the B signal; 38 indicates the G signal from the G component restoring means 6 and the first signal; R
B horizontal direction calculating means for calculating a pixel signal at a pixel position (2i, 2j + 1) in B by horizontally adjacent pixels based on the B signal from the B restoring means 7; And the pixel position (2i, 2
j + 1), a B vertical direction calculating means for calculating the pixel signal at
Reference numeral 40 denotes a B switching unit that switches a B pixel according to the pixel position based on the determination result from the second edge determination unit 8.

【0027】次に動作について説明する。撮像素子1か
ら各画素信号R、G、Bを読み出し、その出力はA/D
コンバータ2によりA/D変換され、フレームメモリ3
に入力される。フレームメモリ3に入力された信号か
ら、分離手段4により各R、G、B信号を分離し、G信
号は第1のエッジ判定手段5とG成分復元手段6へと送
られ、R、B信号はG成分復元手段6および第1のRB
復元手段7へと送られる。第1のエッジ判定手段5では
G信号における所定画素位置でのエッジ成分を判定して
判定結果をG成分復元手段6へと送り、G成分復元手段
6では上記第1のエッジ判定手段5からの判定結果の基
づき、撮像素子1での総画素数のG信号を得るようG成
分の画素信号の復元を行うのであるが、この動作を図3
に従って説明する。
Next, the operation will be described. Each pixel signal R, G, B is read from the image sensor 1 and the output is A / D
A / D conversion is performed by the converter 2 and the frame memory 3
Is input to Each of the R, G, and B signals is separated from the signal input to the frame memory 3 by a separation unit 4, and the G signal is sent to a first edge determination unit 5 and a G component restoration unit 6, and the R, B signal Is the G component restoration means 6 and the first RB
It is sent to the restoration means 7. The first edge determination means 5 determines an edge component at a predetermined pixel position in the G signal and sends the determination result to the G component restoration means 6. Based on the determination result, the G component pixel signal is restored so as to obtain the G signal of the total number of pixels in the image sensor 1. This operation is described in FIG.
It will be described according to.

【0028】第1のエッジ判定手段5において、G信号
は水平方向エッジ検出手段11および垂直方向エッジ判
定手段12へと入力される。いま、撮像素子1における
G成分は図1にあるように画素位置(2i、2j)と
(2i+1、2j+1)で得られており、撮像素子の画
素数のG信号を得るために、画素位置(2i、2j+
1)と(2i+1、2j)の画素での信号を求めること
となる。図5は分離手段4からのそれぞれの画素位置で
のG信号を示す図であり、図中Gは撮像素子1からのG
信号を、gは信号が得られていない画素を示している。
よって、水平方向エッジ検出手段11および垂直方向エ
ッジ判定手段12では、画素位置(2i、2j+1)お
よび(2i+1、2j)(図5中斜線で示すg)での左
右および上下の画素の差分つまりエッジ成分を検出す
る。水平方向エッジ検出手段11では、上記画素位置で
の左右の画素の差の絶対値ΔHを得て、これを判定手段
13へと出力し、垂直方向エッジ検出手段12では、上
下の画素の差の絶対値ΔVを得て、判定手段13へと出
力する。例えば、画素位置(2i、2j+1)において
は、水平方向エッジ検出手段11で、 ΔH=|G(2i、2j)−G(2i、2j+2)| (1) を算出し、垂直方向エッジ検出手段12で ΔV=|G(2i−1、2j+1)−G(2i+1、2j+1)| (2) を算出し、上記ΔH、ΔVを判定手段13へと送る。以
下、この画素の差の絶対値をエッジ成分と呼ぶ。
In the first edge judging means 5, the G signal is inputted to the horizontal edge detecting means 11 and the vertical edge judging means 12. Now, the G component in the image sensor 1 is obtained at pixel positions (2i, 2j) and (2i + 1, 2j + 1) as shown in FIG. 1, and in order to obtain a G signal of the number of pixels of the image sensor, the pixel position ( 2i, 2j +
Signals at the pixels 1) and (2i + 1, 2j) are obtained. FIG. 5 is a diagram showing the G signal at each pixel position from the separating means 4, where G is the G signal from the image sensor 1.
The signal g indicates a pixel from which no signal is obtained.
Therefore, the horizontal edge detecting means 11 and the vertical edge determining means 12 determine the difference between the left and right and upper and lower pixels at the pixel positions (2i, 2j + 1) and (2i + 1, 2j) (g indicated by oblique lines in FIG. 5), that is, the edge. Detect the component. The horizontal edge detecting means 11 obtains the absolute value ΔH of the difference between the left and right pixels at the pixel position and outputs the absolute value ΔH to the determining means 13. The vertical edge detecting means 12 calculates the difference between the upper and lower pixels. The absolute value ΔV is obtained and output to the determination means 13. For example, at the pixel position (2i, 2j + 1), the horizontal edge detecting means 11 calculates ΔH = | G (2i, 2j) -G (2i, 2j + 2) | (1) and the vertical edge detecting means 12 ΔV = | G (2i−1, 2j + 1) −G (2i + 1, 2j + 1) | (2), and sends ΔH and ΔV to the determination unit 13. Hereinafter, the absolute value of the difference between the pixels is referred to as an edge component.

【0029】上記判定手段13では、水平方向でのエッ
ジ成分ΔHおよび垂直方向エッジ成分ΔVにより、水平
垂直方向での周辺画素での信号レベルの変化を判定し、
その判定結果を示す信号ed1を出力する。つまり、Δ
HとΔVの両方が予め定めた値th1以下の場合は、周
辺画素での信号レベルの変化がないと判定し、例えばe
d1=1として出力する。一方、ΔHまたはΔVが予め
定めた値th1より大きい場合は、その画素においてエ
ッジ成分があると判定し、さらに、ΔH>ΔVの場合は
垂直方向に相関が高いと判定して例えばed1=2を出
力し、ΔH≦ΔVの場合は水平方向に相関が高いと判定
して例えばed1=3を出力する。なお、Gが得られて
いる画素位置(2i、2j)、(2i+1、2j+1)
においてはエッジ成分を判定する必要はなく、判定手段
13からは例えばed1=0を出力するものとする。判
定手段13の出力ed1はG成分復元手段6における切
り換え手段25へと送られる。
The determination means 13 determines a change in the signal level in the peripheral pixels in the horizontal and vertical directions based on the edge component ΔH in the horizontal direction and the edge component ΔV in the vertical direction.
A signal ed1 indicating the determination result is output. That is, Δ
If both H and ΔV are equal to or less than the predetermined value th1, it is determined that there is no change in the signal level in the peripheral pixels, and for example, e
Output as d1 = 1. On the other hand, if ΔH or ΔV is larger than the predetermined value th1, it is determined that there is an edge component in the pixel, and if ΔH> ΔV, it is determined that the correlation is high in the vertical direction, and for example, ed1 = 2 If ΔH ≦ ΔV, it is determined that the correlation is high in the horizontal direction, and for example, ed1 = 3 is output. Note that pixel positions (2i, 2j), (2i + 1, 2j + 1) where G is obtained
In, it is not necessary to determine the edge component, and the determination unit 13 outputs, for example, ed1 = 0. The output ed1 of the judging means 13 is sent to the switching means 25 in the G component restoring means 6.

【0030】次に、G成分復元手段6において、G信号
は平均値算出手段14および水平方向ローパスフィルタ
15、垂直方向ローパスフィルタ20へと入力される。
平均値算出手段14では、画素位置(2i、2j+1)
および(2i+1、2j)において上下左右4画素の値
の平均値gaを算出し、切り換え手段25へと送る。水
平方向ローパスフィルタ15からはGの水平方向のロー
パスフィルタを介した値Ghlpfが、垂直方向ローパ
スフィルタ20からはGの垂直方向のローパスフィルタ
を介した値Gvlpfが出力され、例えば画素位置(2
i、2j+1)では次式のように算出される。 Ghlpf={G(2i、2j)+ G(2i、2j−2) +G(2i、2j+2)+G(2i、2j+4)}/4 (3) Gvlpf={G(2i−3、2j+1)+ G(2i−1、2j+1) +G(2i+1、2j+1)+G(2i+3、2j+1)}/4 (4) 上記水平方向ローパスフィルタ15の出力Ghlpfは
演算手段18および19へ、垂直方向ローパスフィルタ
20の出力Gvlpfは演算手段23および24へと送
られる。
Next, in the G component restoring means 6, the G signal is inputted to the average value calculating means 14, the horizontal low-pass filter 15, and the vertical low-pass filter 20.
In the average value calculating means 14, the pixel position (2i, 2j + 1)
In (2i + 1, 2j), the average value ga of the values of the four pixels in the upper, lower, left and right directions is calculated and sent to the switching means 25. The horizontal low-pass filter 15 outputs a value Ghlpf through a G horizontal low-pass filter, and the vertical low-pass filter 20 outputs a value Gvlpf through a vertical G low-pass filter.
i, 2j + 1) is calculated as in the following equation. Ghlpf = {G (2i, 2j) + G (2i, 2j-2) + G (2i, 2j + 2) + G (2i, 2j + 4)} / 4 (3) Gvlpf = {G (2i-3,2j + 1) + G ( 2i−1, 2j + 1) + G (2i + 1, 2j + 1) + G (2i + 3, 2j + 1)} / 4 (4) The output Ghlpf of the horizontal low-pass filter 15 is sent to the calculation means 18 and 19, and the output Gvlpf of the vertical low-pass filter 20 is It is sent to the calculating means 23 and 24.

【0031】一方、R信号は水平方向ローパスフィルタ
16、垂直方向ローパスフィルタ21へと入力されて、
水平および垂直方向のローパスフィルタを介した値Rh
lpf、Rvlpfを出力し、B信号については水平方
向ローパスフィルタ17、垂直方向ローパスフィルタ2
2へと入力され、それぞれ水平および垂直方向のローパ
スフィルタを介した値Bhlpf、Bvlpfを出力す
る。ここで、撮像素子1におけるR成分は図1にあるよ
うに画素位置(2i、2j+1)で得られ、分離手段4
からのそれぞれの画素位置でのR信号は図6(a)示さ
れるようになり、また、B成分は画素位置(2i+1、
2j)で得られ、分離手段4からの各画素位置でのB信
号は図6(b)に示されるようになる。なお、空白の画
素は撮像素子により信号を得られていない画素である。
したがって、画素位置(2i、2j+1)ではR信号の
水平および垂直方向ローパスフィルタ16および21を
介した値を例えば次式により得る。 Rhlpf={R(2i、2j−3)+ 2×R(2i、2j−1) +2×R(2i、2j+1)+2×R(2i、2j+3) +R(2i、2j+5)}/8 (5) Rvlpf={R(2i−4、2j+1)+2×R(2i−2、2j+1) +2×R(2i、2j+1)+2×R(2i+2、2j+1) +R(2i+4、2j+1)}/8 (6) また、画素位置(2i+1、2j)ではB信号の水平お
よび垂直方向ローパスフィルタ17および22を介した
値を例えば次式により得る。 Bhlpf={B(2i+1、2j−4)+2×B(2i+1、2j−2) +2×B(2i+1、2j)+2×B(2i+1、2j+2) +B(2i+1、2j+4)}/8 (7) Bvlpf={B(2i−3、2j)+ 2×B(2i−1、2j) + 2×B(2i+1、2j)+ 2×B(2i+3、2j) +R(2i+5、2j)}/8 (8)
On the other hand, the R signal is input to the horizontal low-pass filter 16 and the vertical low-pass filter 21.
Value Rh through horizontal and vertical low pass filters
lpf and Rvlpf, and outputs a low-pass filter 17 in the horizontal direction and a low-pass filter 2 in the vertical direction for the B signal.
2 and output values Bhlpf and Bvlpf through low-pass filters in the horizontal and vertical directions, respectively. Here, the R component in the image sensor 1 is obtained at the pixel position (2i, 2j + 1) as shown in FIG.
, The R signal at each pixel position is as shown in FIG. 6A, and the B component is at the pixel position (2i + 1,
2B), and the B signal at each pixel position from the separation means 4 is as shown in FIG. 6B. Note that blank pixels are pixels for which no signal has been obtained by the image sensor.
Accordingly, at the pixel position (2i, 2j + 1), the value of the R signal through the horizontal and vertical low-pass filters 16 and 21 is obtained by, for example, the following equation. Rhlpf = {R (2i, 2j-3) + 2 × R (2i, 2j-1) + 2 × R (2i, 2j + 1) + 2 × R (2i, 2j + 3) + R (2i, 2j + 5)} / 8 (5) Rvlpf = {R (2i-4, 2j + 1) + 2 × R (2i-2, 2j + 1) + 2 × R (2i, 2j + 1) + 2 × R (2i + 2, 2j + 1) + R (2i + 4, 2j + 1)} / 8 (6) At the pixel position (2i + 1, 2j), the value of the B signal through the horizontal and vertical low-pass filters 17 and 22 is obtained by, for example, the following equation. Bhlpf = {B (2i + 1, 2j-4) + 2 × B (2i + 1, 2j-2) + 2 × B (2i + 1, 2j) + 2 × B (2i + 1, 2j + 2) + B (2i + 1, 2j + 4)} / 8 (7) Bvlpf = {B (2i-3,2j) + 2 × B (2i-1,2j) + 2 × B (2i + 1,2j) + 2 × B (2i + 3,2j) + R (2i + 5,2j)} / 8 (8 )

【0032】なお、上記式(3)〜(8)は各水平方向
ローパスフィルタおよび垂直方向ローパスフィルタ出力
の算出例であり、フィルタのタップ数および係数は上記
式(3)〜(8)に限るものではなく、他のタップ数お
よび係数でもよい。
The above equations (3) to (8) are examples of calculating the output of each horizontal low-pass filter and vertical low-pass filter, and the number of taps and coefficients of the filter are limited to the above equations (3) to (8). Instead, other tap numbers and coefficients may be used.

【0033】そして、上記水平方向ローパスフィルタ1
6での出力Rhlpfは演算手段18へと送られ、演算
手段18へはR信号と水平方向ローパスフィルタ15の
出力信号Ghlpfも入力されており、画素位置(2
i、2j+1)での水平方向の相関をもつG信号gh1
(2i、2j+1)を次式 gh1(2i、2j+1)=R(2i、2j+1)×(Ghlpf/Rhlpf ) (9) により算出し、切り換え手段25へと送る。また、垂直
方向ローパスフィルタ21での出力Rvlpfは演算手
段23へと送られ、演算手段23へはR信号と垂直方向
ローパスフィルタ20の出力信号Gvlpfも入力され
ており、画素位置(2i、2j+1)での垂直方向に相
関をもつG信号gv1(2i、2j+1)を次式 gv1(2i、2j+1)=R(2i、2j+1)×(Gvlpf/Rvlpf ) (10) により算出し、切り換え手段25へと送る。
The horizontal low-pass filter 1
The output Rhlpf at 6 is sent to the calculating means 18 to which the R signal and the output signal Ghlpf of the horizontal low-pass filter 15 are also input, and the pixel position (2
G signal gh1 having a horizontal correlation at (i, 2j + 1)
(2i, 2j + 1) is calculated by the following equation: gh1 (2i, 2j + 1) = R (2i, 2j + 1) × (Ghlpf / Rhlpf) (9), and sent to the switching means 25. The output Rvlpf from the vertical low-pass filter 21 is sent to the calculating means 23. The R signal and the output signal Gvlpf from the vertical low-pass filter 20 are also input to the calculating means 23, and the pixel position (2i, 2j + 1) The G signal gv1 (2i, 2j + 1) having a correlation in the vertical direction is calculated by the following equation: gv1 (2i, 2j + 1) = R (2i, 2j + 1) × (Gvlpf / Rvlpf) (10) send.

【0034】同様に、上記水平方向ローパスフィルタ1
7での出力Bhlpfは演算手段19へと送られ、演算
手段19へはB信号と水平方向ローパスフィルタ15の
出力信号Ghlpfも入力されており、画素位置(2i
+1、2j)での水平方向の相関をもつG信号gh2
(2i+1、2j)を次式 gh2(2i+1、2j)=B(2i+1、2j)×(Ghlpf/Bhlpf ) (11) により算出し、切り換え手段25へと送る。また、垂直
方向ローパスフィルタ22での出力Bvlpfは演算手
段24へと送られ、演算手段24へはB信号と垂直方向
ローパスフィルタ20の出力信号Gvlpfも入力され
ており、画素位置(2i+1、2j)での垂直方向に相
関をもつG信号gv2(2i+1、2j)を次式 gv2(2i+1、2j)=B(2i+1、2j)×(Gvlpf/Bvlpf ) (12) により算出し、切り換え手段25へと送る。
Similarly, the horizontal low-pass filter 1
The output Bhlpf at 7 is sent to the calculating means 19, to which the B signal and the output signal Ghlpf of the horizontal low-pass filter 15 are also input, and the pixel position (2i
G signal gh2 having a horizontal correlation at (+1, 2j)
(2i + 1, 2j) is calculated by the following equation: gh2 (2i + 1, 2j) = B (2i + 1, 2j) × (Ghlpf / Bhlpf) (11), and is sent to the switching means 25. The output Bvlpf from the vertical low-pass filter 22 is sent to the calculating means 24. The B signal and the output signal Gvlpf from the vertical low-pass filter 20 are also input to the calculating means 24, and the pixel position (2i + 1, 2j) The G signal gv2 (2i + 1, 2j) having a correlation in the vertical direction is calculated by the following equation: gv2 (2i + 1, 2j) = B (2i + 1, 2j) × (Gvlpf / Bvlpf) (12) send.

【0035】上記式(9)〜(12)による算出方式
は、局所的領域での色の変化が少ないことを前提として
おり、つまり、局所的な領域での各色信号の比はほぼ等
しいことにより、水平方向または垂直方向における局所
的な領域での各色信号の比はR、G、Bの水平方向また
は垂直方向のローパスフィルタを介した値の比で与えら
れる。
The calculation method using the above equations (9) to (12) is based on the premise that there is little change in color in a local area. , The ratio of each color signal in a local region in the horizontal direction or the vertical direction is given by the ratio of values through a low-pass filter in the horizontal or vertical direction of R, G, and B.

【0036】切り換え手段25では、第1のエッジ判定
手段5における判定手段13からの周辺画素の信号レベ
ル変化を判定した結果ed1と画素位置に基づき、Gの
画素信号を上記平均値算出手段14、演算手段18、1
9および演算手段23、24、分離手段4からの信号よ
り選択し切り換える。つまり、判定手段13による出力
信号ed1が‘2’を示す場合、すなわち、その画素に
おいてエッジ成分があると判定されるが、ΔH>ΔVで
垂直方向に相関が高いと判定される場合は、各画素位置
での垂直方向に相関を持つGを出力する演算手段の信号
を選択する。判定手段13による出力信号ed1が
‘3’を示す場合、すなわち、その画素においてエッジ
成分があると判定されるが、ΔH≦ΔVで水平方向に相
関が高いと判定される場合には、各画素位置での水平方
向に相関を持つGを出力する演算手段の信号を選択す
る。さらに、判定手段13による出力信号ed1が
‘1’を示す場合には、ΔHとΔVの両方が予め定めた
値th1以下であり、周辺画素での信号レベルの変化が
ないと判定されるため、周波数の変化を考慮する必要が
なく、平均値算出手段14によるG信号gaを選択す
る。
The switching means 25 converts the G pixel signal into the average value calculating means 14, based on the result ed1 of the judgment of the signal level change of the peripheral pixel from the judgment means 13 in the first edge judgment means 5 and the pixel position. Arithmetic means 18, 1
9 and signals from the arithmetic means 23, 24 and the separating means 4 for selection. That is, when the output signal ed1 from the determination unit 13 indicates “2”, that is, when it is determined that an edge component exists in the pixel, but when it is determined that ΔH> ΔV and the correlation is high in the vertical direction, The signal of the arithmetic means for outputting G having a correlation in the vertical direction at the pixel position is selected. When the output signal ed1 from the determination means 13 indicates '3', that is, when it is determined that there is an edge component in the pixel, but when it is determined that ΔH ≦ ΔV and the correlation in the horizontal direction is high, each pixel A signal of the calculating means for outputting G having a correlation in the horizontal direction at the position is selected. Further, when the output signal ed1 by the determination means 13 indicates “1”, both ΔH and ΔV are equal to or smaller than the predetermined value th1, and it is determined that there is no change in the signal level in the peripheral pixels. There is no need to consider a change in frequency, and the G signal ga by the average value calculation means 14 is selected.

【0037】すなわち、切り換え手段25において、画
素位置(2i、2j+1)のG信号g(2i、2j+
1)の場合は、判定手段13からの出力ed1=1では
平均値算出手段14からのG信号gaを、ed=2の場
合は演算手段23からのG信号gv1を、ed=3の場
合は演算手段18からのG信号gh1を選択し、一方、
画素位置(2i+1、2j)のG信号g(2i+1、2
j)の場合は、判定手段13からの出力ed1=1では
平均値算出手段14からのG信号gaを、ed=2の場
合は演算手段24からのG信号gv2を、ed=3の場
合は演算手段19からのG信号gh2を選択する。な
お、Gが得られている画素位置(2i、2j)、(2i
+1、2j+1)においては、判定手段13からは例え
ばed1=0が出力されており、このときは分離手段4
からのG信号をそのまま出力すればよい。
That is, in the switching means 25, the G signal g (2i, 2j +) at the pixel position (2i, 2j + 1)
In the case of 1), when the output ed1 = 1 from the determination unit 13, the G signal ga from the average value calculation unit 14 is used, when ed = 2, the G signal gv1 from the calculation unit 23 is used. The G signal gh1 from the calculating means 18 is selected.
G signal g (2i + 1,2) at pixel position (2i + 1,2j)
In the case of j), when the output ed1 = 1 from the determination unit 13, the G signal ga from the average value calculation unit 14 is used, when ed = 2, the G signal gv2 from the calculation unit 24 is used. The G signal gh2 from the calculating means 19 is selected. Note that pixel positions (2i, 2j), (2i
In (+1, 2j + 1), for example, ed1 = 0 is output from the determination unit 13;
May be output as it is.

【0038】したがって、G成分復元手段6からは画素
位置(2i、2j)、(2i、2j+1)、(2i+
1、2j)、(2i+1、2j+1)それぞれの画素で
のG信号が出力され、つまり、撮像素子の画素数分の解
像度のG信号を得られる。このG成分復元手段6からの
出力G0は次に、第1のRB成分復元手段7、および第
2のエッジ判定手段8と第2のRB成分復元手段9へと
送られる。
Therefore, the pixel positions (2i, 2j), (2i, 2j + 1), (2i +
A G signal is output at each pixel of (1, 2j) and (2i + 1, 2j + 1), that is, a G signal having a resolution equal to the number of pixels of the image sensor is obtained. Next, the output G0 from the G component restoring means 6 is sent to the first RB component restoring means 7, the second edge judging means 8 and the second RB component restoring means 9.

【0039】次に、第1のRB成分復元手段7では、分
離手段4からのR、B信号(図6(a)および(b))
と上記G成分復元手段6からの全画素の信号をもつG信
号G0により、R、B信号それぞれにおける画素位置
(2i、2j)および(2i+1,2j+1)での画素
を復元生成する。図7(a)、(b)は第1のRB成分
復元手段7におけるR、B信号の算出を説明するための
各画素のR、Bを示す図であり、図中rおよびbは第1
のRB成分復元手段7において復元生成されるR、B画
素信号を示している。R信号での画素位置(2i、2
j)においては、水平方向に隣接するの2iラインの画
素が撮像素子1より得られており、また、G信号はG成
分復元手段6により全画素復元されている(図5)。よ
って、画素位置(2i、2j)において、G、R信号に
対して水平方向のローパスフィルタを介した値G1hl
pf、R1hlpfを例えば、 G1hlpf=(g(2i、2j−1)+g(2i、2j+1))/2 (13) R1hlpf=(R(2i、2j−1)+R(2i、2j+1))/2 (14) により算出し、このG1hlpfとR1hlpfの比と
画素G(2i、2j)により、画素位置(2i、2j)
でのR信号r(2i、2j)を次式により算出する。 r(2i、2j)= G(2i、2j)×(R1hlpf/G1hlpf) =G(2i、2j)×( R(2i、2j−1)+R(2i、2j+1)) /(g(2i、2j−1)+g(2i、2j+1)) (15)
Next, in the first RB component restoring means 7, the R and B signals from the separating means 4 (FIGS. 6A and 6B)
And the G signal G0 having the signals of all the pixels from the G component restoring means 6 to restore and generate the pixels at the pixel positions (2i, 2j) and (2i + 1, 2j + 1) in the R and B signals, respectively. FIGS. 7A and 7B are diagrams showing the R and B of each pixel for explaining the calculation of the R and B signals in the first RB component restoring means 7, where r and b are the first.
5 shows R and B pixel signals restored and generated by the RB component restoring means 7 of FIG. The pixel position (2i, 2
In j), pixels on the 2i-th line adjacent in the horizontal direction are obtained from the image sensor 1, and all the G signals are restored by the G component restoration means 6 (FIG. 5). Therefore, at the pixel position (2i, 2j), the value G1hl through the horizontal low-pass filter is applied to the G and R signals.
For example, pf and R1hlpf are expressed as follows: G1hlpf = (g (2i, 2j-1) + g (2i, 2j + 1)) / 2 (13) R1hlpf = (R (2i, 2j-1) + R (2i, 2j + 1)) / 2 ( 14) and the ratio of G1hlpf to R1hlpf and the pixel G (2i, 2j) are used to calculate the pixel position (2i, 2j).
Is calculated by the following equation. r (2i, 2j) = G (2i, 2j) × (R1hlpf / G1hlpf) = G (2i, 2j) × (R (2i, 2j−1) + R (2i, 2j + 1)) / (g (2i, 2j) -1) + g (2i, 2j + 1)) (15)

【0040】また、画素位置(2i+1、2j+1)に
おいては、垂直方向に隣接する2j+1列の画素が撮像
素子1より得られており、また、G信号はG成分復元手
段6により全画素復元されているので、画素位置(2i
+1、2j+1)において、G、R信号に対して垂直方
向のローパスフィルタを介した値G1vlpf、R1v
lpfを例えば、 G1vlpf=(g(2i、2j+1)+g(2i+2、2j+1))/2 (16) R1vlpf=(R(2i、2j+1)+R(2i+2、2j+1))/2 (17) により算出し、このG1vlpfとR1vlpfの比と
画素G(2i+1、2j+1)により、画素位置(2i
+1、2j+1)でのR信号r(2i+1、2j+1)
を次式により算出する。 r(2i+1、2j+1)=G(2i+1、2j+1)×(R1vlpf/G1 vlpf) =G(2i+1、2j+1)×(R(2i、2j+1)+R(2i+2、 2j+1)) /(g(2i、2j+1)+g(2i+2、2j+1)) (18)
Further, at the pixel position (2i + 1, 2j + 1), pixels in the vertically adjacent 2j + 1 columns are obtained from the image pickup device 1, and all the G signals are restored by the G component restoring means 6. The pixel position (2i
+1 and 2j + 1), the values G1vlppf and R1v of the G and R signals through the low-pass filter in the vertical direction.
Ipf is calculated by, for example, G1vlpf = (g (2i, 2j + 1) + g (2i + 2, 2j + 1)) / 2 (16) R1vlpf = (R (2i, 2j + 1) + R (2i + 2, 2j + 1)) / 2 (17) By the ratio of G1vlpf to R1vlpf and the pixel G (2i + 1, 2j + 1), the pixel position (2i
R signal r (2i + 1, 2j + 1) at (+1, 2j + 1)
Is calculated by the following equation. r (2i + 1, 2j + 1) = G (2i + 1, 2j + 1) × (R1vlppf / G1vlpf) = G (2i + 1, 2j + 1) × (R (2i, 2j + 1) + R (2i + 2, 2j + 1)) / (g (2i, 2j + 1)) + G (2i + 2,2j + 1)) (18)

【0041】同様に、B信号については、画素位置(2
i、2j)においては、垂直方向に隣接する2j列の画
素が撮像素子1より得られており、また、G信号はG成
分復元手段6により全画素復元されている(図5)。よ
って、画素位置(2i、2j)において、G、B信号に
対して垂直方向のローパスフィルタを介した値G1vl
pf、B1vlpfを例えば、 G1vlpf=(g(2i−1、2j)+g(2i+1、2j))/2 (19) B1vlpf=(B(2i−1、2j)+B(2i+1、2j))/2 (20) により算出し、このG1vlpfとB1vlpfの比と
画素G(2i、2j)により、画素位置(2i、2j)
でのB信号b(2i、2j)を次式により算出する。 b(2i、2j)= G(2i、2j)×(B1vlpf/G1vlpf) =G(2i、2j)×( B(2i−1、2j)+B(2i+1、2j)) /(g(2i−1、2j)+g(2i+1、2j)) (21)
Similarly, for the B signal, the pixel position (2
In (i, 2j), pixels in 2j columns adjacent in the vertical direction are obtained from the image sensor 1, and all the G signals are restored by the G component restoration means 6 (FIG. 5). Therefore, at the pixel position (2i, 2j), the value G1vl obtained by passing the G and B signals through the vertical low-pass filter.
pf and B1vlpf are, for example, G1vlpf = (g (2i-1, 2j) + g (2i + 1, 2j)) / 2 (19) B1vlpf = (B (2i-1, 2j) + B (2i + 1, 2j)) / 2 ( 20) and the ratio of G1vlpf to B1vlpf and the pixel G (2i, 2j) are used to calculate the pixel position (2i, 2j).
Is calculated according to the following equation. b (2i, 2j) = G (2i, 2j) × (B1vlpf / G1vlpf) = G (2i, 2j) × (B (2i−1, 2j) + B (2i + 1, 2j)) / (g (2i−1) , 2j) + g (2i + 1, 2j)) (21)

【0042】また、画素位置(2i+1、2j+1)に
おいては、水平方向に隣接するの2i+1ラインの画素
が撮像素子1より得られており、また、G信号はG成分
復元手段6により全画素復元されている。よって、画素
位置(2i+1、2j+1)において、G、B信号に対
して水平方向のローパスフィルタを介した値G1hlp
f、B1hlpfを例えば、 G1hlpf=(g(2i+1、2j)+g(2i+1、2j+2))/2 (22) B1hlpf=(B(2i+1、2j)+B(2i+1、2j+2))/2 (23) により算出し、このG1hlpfとB1hlpfの比と
画素G(2i+1、2j+1)により、画素位置(2i
+1、2j+1)でのB信号b(2i+1、2j+1)
を次式により算出する。 b(2i+1、2j+1)=G(2i+1、2j+1)×(B1hlpf/G1 hlpf) =G(2i+1、2j+1)×( B(2i+1、2j) +B(2i+1、2j+2)) /(g(2i+1、2j)+g(2i+1、2j+2)) (24)
Further, at the pixel position (2i + 1, 2j + 1), the pixels of the horizontally adjacent 2i + 1 line are obtained from the image pickup device 1, and the G signal is restored by the G component restoring means 6 to all pixels. ing. Therefore, at the pixel position (2i + 1, 2j + 1), the value G1hlp obtained through the low-pass filter in the horizontal direction is applied to the G and B signals.
f, B1hlpf is calculated by, for example, G1hlpf = (g (2i + 1, 2j) + g (2i + 1, 2j + 2)) / 2 (22) B1hlpf = (B (2i + 1, 2j) + B (2i + 1, 2j + 2)) / 2 (23) Then, by the ratio of G1hlpf to B1hlpf and the pixel G (2i + 1, 2j + 1), the pixel position (2i
B signal b (2i + 1, 2j + 1) at (+1, 2j + 1)
Is calculated by the following equation. b (2i + 1, 2j + 1) = G (2i + 1, 2j + 1) × (B1hlpf / G1hlpf) = G (2i + 1, 2j + 1) × (B (2i + 1, 2j) + B (2i + 1, 2j + 2)) / (g (2i + 1, 2j) + G (2i + 1, 2j + 2)) (24)

【0043】なお、上記式(15)、(18)、(2
1)、(24)は上記Gでの復元方法と同様局所的領域
での色信号の変化が少ないことを前提としており、つま
り、各信号の比は局所的な領域ではほぼ等しいというこ
とによる。また、式(13)〜(24)におけるG1h
lpf、G1vlpf、R1hlpf、R1vlpf、
B1hlpf、B1vlpfの算出式は、水平および垂
直方向のローパスフィルタ出力の算出例であり、フィル
タのタップ数および係数は上記に限るものではなく、他
のタップ数および係数であってもよい。そして、第1の
RB成分復元手段7からは図7に示すR、rおよびB、
bの画素信号R1およびB1が出力されて、第2のRB
成分復元手段9へと送られる。
The above equations (15), (18) and (2)
1) and (24) are based on the premise that the change of the color signal in the local region is small as in the above-described restoration method in G, that is, the ratio of each signal is almost equal in the local region. G1h in the equations (13) to (24)
lpf, G1vlpf, R1hlpf, R1vlpf,
The formulas for calculating B1hlpf and B1vlpf are calculation examples of low-pass filter outputs in the horizontal and vertical directions, and the number of taps and coefficients of the filter are not limited to the above, and other tap numbers and coefficients may be used. Then, R, r and B shown in FIG.
b are output and the second RB
It is sent to the component restoring means 9.

【0044】次に、第2のRB成分復元手段9および第
2のエッジ判定手段8の動作について図4により説明す
る。第2のエッジ判定手段8において、G成分復元手段
6から出力されたG信号G0は水平方向エッジ検出手段
30および垂直方向エッジ判定手段31へと入力され、
画素位置(2i、2j+1)および(2i+1、2j)
の画素での左右および上下の画素の差分つまりエッジ成
分を検出する。水平方向エッジ検出手段30では、上記
画素位置での左右の画素の差の絶対値ΔHを得て、これ
を判定手段32へと出力し、垂直方向エッジ検出手段3
1では、上下の画素の差の絶対値ΔVを得て、判定手段
32へと出力する。例えば、上記画素位置(2i、2j
+1)においては、水平方向エッジ検出手段30で、 ΔH=|G(2i、2j)−G(2i、2j+2)| を算出し、垂直方向エッジ検出手段31で、 ΔV=| G(2i−1、2j+1)−G(2i+1、
2j+1)| を算出し、上記ΔH、ΔVを判定手段32へと送る。以
下、この画素の差の絶対値をエッジ成分と呼ぶ。
Next, the operation of the second RB component restoring means 9 and the second edge judging means 8 will be described with reference to FIG. In the second edge determining means 8, the G signal G0 output from the G component restoring means 6 is input to the horizontal edge detecting means 30 and the vertical edge determining means 31,
Pixel positions (2i, 2j + 1) and (2i + 1, 2j)
, The difference between the left and right and upper and lower pixels, that is, the edge component is detected. The horizontal edge detecting means 30 obtains the absolute value ΔH of the difference between the left and right pixels at the pixel position, outputs the absolute value ΔH to the determining means 32, and outputs
In step 1, the absolute value ΔV of the difference between the upper and lower pixels is obtained and output to the determination means 32. For example, the pixel position (2i, 2j
In (+1), the horizontal edge detecting means 30 calculates ΔH = | G (2i, 2j) −G (2i, 2j + 2) |, and the vertical edge detecting means 31 calculates ΔV = | G (2i−1). , 2j + 1) -G (2i + 1,
2j + 1) | and sends the above ΔH and ΔV to the determination means 32. Hereinafter, the absolute value of the difference between the pixels is referred to as an edge component.

【0045】上記判定手段32では、水平方向でのエッ
ジ成分ΔHおよび垂直方向エッジ成分ΔVにより、水平
垂直方向での周辺画素での信号レベルの変化を判定し、
その判定結果を示す信号を出力するのであるが、ここ
で、上記第1のRB成分復元手段7により、R信号R1
では画素位置(2i+1、2j)以外の画素信号が得ら
れており(図7(a))、B信号B1では画素位置(2
i、2j+1)以外の画素信号が得られている(図7
(b))。したがって、画素位置(2i+1、2j)で
のエッジ成分を判定した結果edrをR信号の画素位置
(2i+1,2j)の復元に対して出力し、一方、画素
位置(2i、2j+1)でのエッジ成分を判定した結果
edbをB信号の画素位置(2i、2j+1)の復元に
対して出力する。すなわち、画素位置(2i+1、2
j)における判定結果edrと画素位置(2i、2j+
1)における判定結果edbにおいて、ΔHとΔVの両
方が予め定めた値th2以下の場合は、周辺画素での信
号レベルの変化がないと判定し、例えばedr=1およ
びedb=1として出力する。一方、ΔHまたはΔVが
予め定めた値th2より大きい場合は、その画素におい
てエッジ成分があると判定し、さらに、ΔH>ΔVの場
合は垂直方向に相関が高いと判定して、例えばedr=
2およびedb=2を出力し、ΔH≦ΔVの場合は水平
方向に相関が高いと判定して例えばedr=3およびe
db=3を出力する。なお、R、Bが得られている画素
位置においてはエッジ成分を判定する必要はなく、判定
手段32からは例えばedr=0およびedb=0を出
力するものとする。そして、判定手段32の出力edr
は第2のRB成分復元手段9におけるR切り換え手段3
6へ、また、出力edbは第2のRB成分復元手段9に
おけるB切り換え手段40へと送られる。
The determining means 32 determines a change in the signal level of the peripheral pixels in the horizontal and vertical directions based on the edge component ΔH in the horizontal direction and the edge component ΔV in the vertical direction.
A signal indicating the determination result is output. Here, the first RB component restoring means 7 outputs the R signal R1
In FIG. 7, pixel signals other than the pixel position (2i + 1, 2j) are obtained (FIG. 7A), and in the B signal B1, the pixel position (2
Pixel signals other than (i, 2j + 1) are obtained (FIG. 7).
(B)). Therefore, the result edr of determining the edge component at the pixel position (2i + 1, 2j) is output for the restoration of the pixel position (2i + 1, 2j) of the R signal, while the edge component at the pixel position (2i, 2j + 1) is output. Is output for the restoration of the pixel position (2i, 2j + 1) of the B signal. That is, the pixel position (2i + 1, 2
j) and the pixel position (2i, 2j +
In the determination result edb in 1), when both ΔH and ΔV are equal to or less than the predetermined value th2, it is determined that there is no change in the signal level in the peripheral pixels, and the output is made, for example, as edr = 1 and edb = 1. On the other hand, if ΔH or ΔV is larger than the predetermined value th2, it is determined that there is an edge component in the pixel, and if ΔH> ΔV, it is determined that the correlation is high in the vertical direction.
2 and edb = 2, and when ΔH ≦ ΔV, it is determined that the correlation is high in the horizontal direction, and for example, edr = 3 and e
db = 3 is output. It is not necessary to determine the edge component at the pixel position where R and B are obtained, and the determination unit 32 outputs, for example, edr = 0 and edb = 0. Then, the output edr of the judgment means 32
Is the R switching means 3 in the second RB component restoring means 9
6 and the output edb is sent to the B switching means 40 in the second RB component restoring means 9.

【0046】次に、第2のRB成分復元手段9におい
て、第1のRB成分復元手段7からのR信号出力R1は
R平均値算出手段33、R水平方向演算手段34および
R垂直方向演算手段35、R切り換え手段36へと入力
される。図8(a)は第2のRB成分復元手段9におい
て画素位置(2i+1、2j)のR信号の復元を説明す
るための図であり、図中Rおよびrで示された画素は撮
像素子で得られた信号と上記第1のRB復元手段7にお
いて復元された画素信号であり、よって、斜線で示され
たr′画素の信号を求めることとなる。まず、R平均値
算出手段33では、R信号R1において、画素位置(2
i+1、2j)での斜め方向に隣接する4画素R(2
i、2j−1)、R(2i、2j+1)、R(2i+
2、2j−1)、R(2i+2、2j+1)の平均値r
aを次式により算出する。 ra(2i+1、2j)={ R(2i、2j−1)+
R(2i、2j+1)+ R(2i+2、2j−1)+
R(2i+2、2j+1)}/4
Next, in the second RB component restoring means 9, the R signal output R1 from the first RB component restoring means 7 is output to the R average value calculating means 33, the R horizontal direction calculating means 34 and the R vertical direction calculating means. 35, input to the R switching means 36. FIG. 8A is a diagram for explaining the restoration of the R signal at the pixel position (2i + 1, 2j) in the second RB component restoration means 9, and the pixels indicated by R and r in the figure are image pickup devices. The obtained signal and the pixel signal restored by the first RB restoring means 7 are obtained. Therefore, the signal of the pixel r 'indicated by oblique lines is obtained. First, the R average value calculating means 33 calculates the pixel position (2
i + 1, 2j), four pixels R (2
i, 2j-1), R (2i, 2j + 1), R (2i +
2, 2j-1), the average value r of R (2i + 2, 2j + 1)
a is calculated by the following equation. ra (2i + 1, 2j) = {R (2i, 2j−1) +
R (2i, 2j + 1) + R (2i + 2, 2j-1) +
R (2i + 2, 2j + 1)} / 4

【0047】R水平方向演算手段34ではG成分復元手
段6からのG信号G0(図5)も入力されており、Rお
よびG信号の画素位置(2i+1,2j)において、水
平方向のローパスフィルタを介した値R2hlpf、G
2hlpfを例えば、 R2hlpf=(r(2i+1、2j−1)+r(2i+1、2j+1))/2 (25) G2hlpf=(G(2i+1、2j−1)+G(2i+1、2j+1))/2 (26) により算出し、このR2hlpfとG2hlpfの比と
画素g(2i+1、2j)により、次式の演算で(2i
+1,2j)の水平方向に相関を持つ画素値rhを算出
し出力する。 rh(2i+1、2j)=g(2i+1、2j)×(R2hlpf/G2hlp f) =g(2i+1、2j) ×( r(2i+1、2j−1)+r(2i+1、2j+1)) /(G(2i+1、2j−1)+G(2i+1、2j+1)) (27)
The R horizontal direction calculating means 34 also receives the G signal G0 (FIG. 5) from the G component restoring means 6 and applies a horizontal low-pass filter at the pixel positions (2i + 1, 2j) of the R and G signals. Via the value R2hlpf, G
For example, 2hlpf is calculated as follows: R2hlpf = (r (2i + 1, 2j-1) + r (2i + 1, 2j + 1)) / 2 (25) G2hlpf = (G (2i + 1, 2j-1) + G (2i + 1, 2j + 1)) / 2 (26) And the ratio of R2hlpf to G2hlpf and the pixel g (2i + 1, 2j) are used to calculate (2i
A pixel value rh having a horizontal correlation of (+1, 2j) is calculated and output. rh (2i + 1, 2j) = g (2i + 1, 2j) × (R2hlpf / G2hlpf) = g (2i + 1, 2j) × (r (2i + 1, 2j−1) + r (2i + 1, 2j + 1)) / (G (2i + 1, 2j-1) + G (2i + 1, 2j + 1)) (27)

【0048】R垂直方向演算手段35ではG成分復元手
段6からのG信号G0も入力されており、RおよびG信
号における画素位置(2i+1,2j)において、垂直
方向のローパスフィルタを介した値R2vlpf、G2
vlpfを例えば、 R2vlpf=(r(2i、2j)+r(2i+2、2j))/2 (28) G2vlpf=(G(2i、2j)+G(2i+2、2j))/2 (29) により算出し、このR2vlpfとG2vlpfの比と
画素g(2i+1、2j)により、次式の演算で(2i
+1,2j)の垂直方向に相関を持つ画素値rvを算出
し出力する。 rv(2i+1、2j)=g(2i+1、2j)×(R2vlpf/G2vlp f) =g(2i+1、2j)×(r(2i、2j)+r(2i+2、2j)) /(G(2i、2j)+G(2i+2、2j)) (30)
The G signal G0 from the G component restoring means 6 is also input to the R vertical direction calculating means 35. At the pixel position (2i + 1,2j) in the R and G signals, the value R2vlpf passed through the vertical low-pass filter. , G2
vlpf is calculated by, for example, R2vlpf = (r (2i, 2j) + r (2i + 2, 2j)) / 2 (28) G2vlpf = (G (2i, 2j) + G (2i + 2, 2j)) / 2 (29) Based on the ratio of R2vlpf to G2vlpf and pixel g (2i + 1, 2j), (2i
A pixel value rv having a correlation in the vertical direction of (+1, 2j) is calculated and output. rv (2i + 1, 2j) = g (2i + 1, 2j) × (R2vlpf / G2vlpf) = g (2i + 1, 2j) × (r (2i, 2j) + r (2i + 2, 2j)) / (G (2i, 2j) + G (2i + 2,2j)) (30)

【0049】なお、上記式(27)、(30)は上述し
たように、局所的領域での色信号の変化が少ないことを
前提としており、つまり、各信号の比は局所的な領域で
はほぼ等しいということにより、また、式(25)〜
(30)におけるG2hlpf、G2vlpf、R2h
lpf、R2vlpfの算出式は、水平および垂直方向
のローパスフィルタ出力の算出例であり、フィルタのタ
ップ数および係数は上記に限るものではなく、他のタッ
プ数および係数であってもよい。そして、上記出力rh
およびrvはともにR切り換え手段36へと送られる。
As described above, the above equations (27) and (30) are based on the premise that the change of the color signal in the local region is small, that is, the ratio of each signal is almost equal in the local region. By being equal, the equations (25) to
G2hlpf, G2vlpf, R2h in (30)
The formulas for calculating lpf and R2vlpf are calculation examples of low-pass filter outputs in the horizontal and vertical directions, and the number of taps and coefficients of the filter are not limited to the above, and other tap numbers and coefficients may be used. And the output rh
And rv are both sent to the R switching means 36.

【0050】R切り換え手段36では、第2のエッジ判
定手段8における判定手段32からの周辺画素の信号レ
ベル変化を判定した結果edrに基づき、画素位置(2
i+1、2j)の信号を上記R平均値算出手段33、R
水平方向演算手段34およびR垂直方向演算手段35、
第1のRB成分復元手段7からの信号より選択し切り換
える。つまり、判定手段32による出力信号edrが
‘2’を示す場合、すなわち、その画素においてエッジ
成分があると判定されるが、ΔH>ΔVで垂直方向に相
関が高いと判定される場合は、垂直方向に相関を持つR
を出力するR垂直方向演算手段35の信号rvを選択す
る。判定手段32による出力信号edrが‘3’を示す
場合、すなわち、その画素においてエッジ成分があると
判定されるが、ΔH≦ΔVで水平方向に相関が高いと判
定される場合には、水平方向に相関を持つRを出力する
R水平方向演算手段34の信号を選択する。さらに、判
定手段32による出力信号edrが‘1’を示す場合に
は、ΔHとΔVの両方が予め定めた値th2以下であ
り、周辺画素での信号レベルの変化がないと判定される
ため、周波数の変化を考慮する必要がなく、R平均値算
出手段33によるR信号raを選択する。なお、Rが得
られている画素位置(2i、2j)、(2i、2j+
1)、(2i+1、2j+1)においては、判定手段3
2からは例えばedr=0が出力されており、このとき
は第1のRB成分復元手段7からのR信号をそのまま出
力すればよい。
The R switching means 36 determines the pixel position (2
i + 1, 2j) by the R average value calculating means 33, R
Horizontal operation means 34 and R vertical operation means 35,
The signal is selected from the signal from the first RB component restoring means 7 and switched. That is, when the output signal edr by the determination means 32 indicates “2”, that is, when it is determined that the pixel has an edge component, but when it is determined that ΔH> ΔV and the correlation in the vertical direction is high, the vertical R with correlation in direction
Is selected from the signal Rv of the R vertical direction calculation means 35 which outputs. When the output signal edr by the determination means 32 indicates '3', that is, when it is determined that the pixel has an edge component, but when it is determined that ΔH ≦ ΔV and the correlation in the horizontal direction is high, the horizontal direction The signal of the R horizontal direction calculation means 34 which outputs R having a correlation with is selected. Further, when the output signal edr by the determination means 32 indicates “1”, both ΔH and ΔV are equal to or smaller than the predetermined value th2, and it is determined that there is no change in the signal level in the peripheral pixels. There is no need to consider a change in frequency, and the R signal ra by the R average value calculation means 33 is selected. Note that pixel positions (2i, 2j) and (2i, 2j +
In 1) and (2i + 1, 2j + 1), the judgment means 3
2 outputs edr = 0, for example, and in this case, the R signal from the first RB component restoration means 7 may be output as it is.

【0051】B信号についても上記R信号での処理と同
様であり、第2のRB成分復元手段9において、第1の
RB成分復元手段7からのB信号出力B1はB平均値算
出手段37、B水平方向演算手段38およびB垂直方向
演算手段39、B切り換え手段40へと入力される。図
8(b)は第2のRB成分復元手段9において画素位置
(2i、2j+1)のB信号の復元を説明するための図
であり、図中Bおよびbで示された画素は撮像素子で得
られた信号と上記第1のRB復元手段7において復元さ
れた画素信号であり、よって、斜線で示されたb′画素
の信号を求めることとなる。まず、B平均値算出手段3
7では、B信号B1において、画素位置(2i、2j+
1)での斜め方向に隣接する4画素の平均値baを次式
により算出する。 ba(2i、2j+1)={B(2i−1、2j)+B
(2i−1、2j+2)+B(2i+1、2j)+B
(2i+1、2j+2)}/4
The processing for the B signal is the same as that for the R signal. In the second RB component restoring means 9, the B signal output B 1 from the first RB component restoring means 7 is converted to a B average value calculating means 37. The signals are inputted to the B horizontal direction calculating means 38, the B vertical direction calculating means 39, and the B switching means 40. FIG. 8B is a diagram for explaining the restoration of the B signal at the pixel position (2i, 2j + 1) in the second RB component restoration means 9, and the pixels indicated by B and b in the figure are image pickup devices. The obtained signal and the pixel signal restored by the first RB restoration means 7 are obtained. Therefore, the signal of the b 'pixel indicated by oblique lines is obtained. First, the B average value calculation means 3
7, in the B signal B1, the pixel position (2i, 2j +
The average value ba of four pixels obliquely adjacent to each other in 1) is calculated by the following equation. ba (2i, 2j + 1) = {B (2i-1, 2j) + B
(2i-1, 2j + 2) + B (2i + 1, 2j) + B
(2i + 1, 2j + 2)} / 4

【0052】B水平方向演算手段38ではG成分復元手
段6からのG信号G0(図5)も入力されており、Bお
よびG信号における画素位置(2i,2j+1)におい
て、水平方向のローパスフィルタを介した値B2hlp
f、G3hlpfを例えば、 B2hlpf=(b(2i、2j)+b(2i、2j+2))/2 (31) G3hlpf=(G(2i、2j)+G(2i、2j+2))/2 (32) により算出し、このB2hlpfとG3hlpfの比と
画素g(2i、2j+1)により、次式の演算で(2
i,2j+1)の水平方向に相関を持つ画素値bhを算
出し出力する。 bh(2i、2j+1)=g(2i、2j+1)×(B2hlpf/G3hlp f) =g(2i、2j+1)×(b(2i、2j)+b(2i、2j+2)) /(G(2i、2j)+G(2i、2j+2)) (33)
The B horizontal direction calculating means 38 also receives the G signal G0 (FIG. 5) from the G component restoring means 6 and applies a horizontal low-pass filter at the pixel position (2i, 2j + 1) in the B and G signals. Through the value B2hlp
f, G3hlpf is calculated by, for example, B2hlpf = (b (2i, 2j) + b (2i, 2j + 2)) / 2 (31) G3hlpf = (G (2i, 2j) + G (2i, 2j + 2)) / 2 (32) Then, based on the ratio of B2hlpf to G3hlpf and the pixel g (2i, 2j + 1), (2
A pixel value bh having a horizontal correlation of (i, 2j + 1) is calculated and output. bh (2i, 2j + 1) = g (2i, 2j + 1) × (B2hlpf / G3hlpf) = g (2i, 2j + 1) × (b (2i, 2j) + b (2i, 2j + 2)) / (G (2i, 2j) + G (2i, 2j + 2)) (33)

【0053】B垂直方向演算手段39ではG成分復元手
段6からのG信号G0も入力されており、BおよびG信
号における画素位置(2i,2j+1)において、垂直
方向のローパスフィルタを介した値B2vlpf、G3
vlpfを例えば、 B2vlpf=(b(2i−1、2j+1)+b(2i+1、2j+1))/2 (34) G3vlpf=(G(2i−1、2j+1)+G(2i+1、2j+1))/2 (35) により算出し、このB2vlpfとG3vlpfの比と
画素g(2i、2j+1)により、次式の演算で(2
i,2j+1)の垂直方向に相関を持つ画素値bvを算
出し出力する。 bv(2i、2j+1)=g(2i、2j+1)×(B2vlpf/G3vlp f) =g(2i、2j+1)×(b(2i−1、2j+1)+b(2i+1、2j+ 1)) /(G(2i−1、2j+1)+G(2i+1、2j+1))(36)
The B signal G0 from the G component restoring means 6 is also input to the B vertical direction calculating means 39. At the pixel position (2i, 2j + 1) in the B and G signals, the value B2vlpf passed through the vertical low-pass filter. , G3
For example, v2pf is calculated as follows: B2vlpf = (b (2i-1, 2j + 1) + b (2i + 1, 2j + 1)) / 2 (34) G3vlpf = (G (2i-1, 2j + 1) + G (2i + 1, 2j + 1)) / 2 (35) The ratio of B2vlpf to G3vlpf and the pixel g (2i, 2j + 1) are used to calculate (2)
A pixel value bv having a correlation in the vertical direction (i, 2j + 1) is calculated and output. bv (2i, 2j + 1) = g (2i, 2j + 1) × (B2vlpf / G3vlpf) = g (2i, 2j + 1) × (b (2i−1, 2j + 1) + b (2i + 1, 2j + 1)) / (G (2i -1, 2j + 1) + G (2i + 1, 2j + 1)) (36)

【0054】なお、上記式(33)、(36)は上述し
たように、局所的領域での色信号の変化が少ないことを
前提としており、つまり、各信号の比は局所的な領域で
はほぼ等しいということにより、また、式(31)〜
(36)におけるG3hlpf、G3vlpf、B2h
lpf、B2vlpfの算出式は、水平および垂直方向
のローパスフィルタ出力の算出例であり、フィルタのタ
ップ数および係数は上記に限るものではなく、他のタッ
プ数および係数であってもよい。そして、上記出力bh
およびbvはともにB切り換え手段40へと送られる。
As described above, the above equations (33) and (36) are based on the premise that the change of the color signal in the local region is small, that is, the ratio of each signal is almost equal in the local region. By being equal, the equations (31) to
G3hlpf, G3vlpf, B2h in (36)
The formulas for calculating lpf and B2vlpf are calculation examples of low-pass filter outputs in the horizontal and vertical directions, and the number of taps and coefficients of the filter are not limited to the above, and other tap numbers and coefficients may be used. And the output bh
And bv are both sent to the B switching means 40.

【0055】B切り換え手段40では、第2のエッジ判
定手段8における判定手段32からの周辺画素の信号レ
ベル変化を判定した結果edbに基づき、画素位置(2
i、2j+1)の信号を上記B平均値算出手段37、B
水平方向演算手段38およびB垂直方向演算手段39、
第1のRB成分復元手段7からの信号より選択し切り換
える。つまり、判定手段32による出力信号edbが
‘2’を示す場合、すなわち、その画素においてエッジ
成分があると判定されるが、ΔH>ΔVで垂直方向に相
関が高いと判定される場合は、垂直方向に相関を持つR
を出力するR垂直方向演算手段39の信号bvを選択す
る。判定手段32による出力信号edbが‘3’を示す
場合、すなわち、その画素においてエッジ成分があると
判定されるが、ΔH≦ΔVで水平方向に相関が高いと判
定される場合には、水平方向に相関を持つBを出力する
B水平方向演算手段38の信号を選択する。さらに、判
定手段32による出力信号edbが‘1’を示す場合に
は、ΔHとΔVの両方が予め定めた値th2以下であ
り、周辺画素での信号レベルの変化がないと判定される
ため、周波数の変化を考慮する必要がなく、B平均値算
出手段37によるB信号baを選択する。なお、Bが得
られている画素位置(2i、2j)、(2i+1、2
j)、(2i+1、2j+1)においては、判定手段3
2からは例えばedb=0が出力されており、このとき
は第1のRB成分復元手段7からのB信号をそのまま出
力すればよい。
The B-switching means 40 determines the pixel position (2
i, 2j + 1) is converted to the B average value calculating means 37, B
Horizontal operation means 38 and B vertical operation means 39;
The signal is selected from the signal from the first RB component restoring means 7 and switched. In other words, when the output signal edb from the determination means 32 indicates “2”, that is, when it is determined that the pixel has an edge component, but when it is determined that ΔH> ΔV and the correlation in the vertical direction is high, the vertical R with correlation in direction
Is selected from the signal bv of the R vertical direction calculating means 39 which outputs the following. When the output signal edb from the determination means 32 indicates “3”, that is, when it is determined that the pixel has an edge component, but when it is determined that ΔH ≦ ΔV and the correlation in the horizontal direction is high, the horizontal direction The signal of the B horizontal direction operation means 38 which outputs B having a correlation with is selected. Further, when the output signal edb by the determination means 32 indicates “1”, both ΔH and ΔV are equal to or less than the predetermined value th2, and it is determined that there is no change in the signal level in the peripheral pixels. There is no need to consider a change in frequency, and the B signal ba by the B average value calculation means 37 is selected. Note that pixel positions (2i, 2j), (2i + 1, 2) where B is obtained
j) and (2i + 1, 2j + 1), the judgment means 3
For example, edb = 0 is output from 2; in this case, the B signal from the first RB component restoration means 7 may be output as it is.

【0056】以上より、第2のRB成分復元手段9から
は画素位置(2i、2j)、(2i、2j+1)、(2
i+1、2j)、(2i+1、2j+1)それぞれの画
素でのRおよびB信号が出力され、つまり、撮像素子の
画素数分の解像度のR、B信号を得られるとになる。G
信号は上記G成分復元手段6においてすでに撮像素子の
画素数分の解像度の信号を得ており、したがって、G成
分を用い水平垂直方向のエッジ成分を判定して局所的な
領域での空間周波数の変化を判定し、その判定結果に基
づき各色信号の生成を切り換えるともに、エッジ成分が
所定値を越える場合の信号の算出において、局所的な領
域での色信号の比により算出を行い、エッジ成分が所定
値以下では周辺画素の平均値で求めるので、そのため、
偽色、偽輪郭が軽減された画像を得ることになる。
As described above, the pixel positions (2i, 2j), (2i, 2j + 1), (2
The R and B signals at the respective pixels of (i + 1, 2j) and (2i + 1, 2j + 1) are output, that is, R and B signals having the resolution of the number of pixels of the image sensor can be obtained. G
The signal has already been obtained in the G component restoration means 6 with a resolution of the number of pixels of the image sensor. Therefore, the edge component in the horizontal and vertical directions is determined using the G component, and the spatial frequency of the local region is determined. The change is determined, the generation of each color signal is switched based on the determination result, and in the calculation of the signal when the edge component exceeds a predetermined value, the calculation is performed based on the ratio of the color signal in a local region, and the edge component is calculated. If the value is equal to or less than the predetermined value, the average value of the peripheral pixels is obtained.
An image in which false colors and false contours are reduced is obtained.

【0057】図9は、ゾーンプレートを画像シミュレー
ションにより処理した場合の水平方向において発生する
偽色レベル(color-alias level 、縦軸)と解像度(横
軸)との関係を示すものであり、上記図20による従来
技術による処理後の偽色レベルを波線で示し、図2によ
る実施の形態1による処理後の偽色レベルを実線で示し
ている。従来の技術による処理では多くの偽色が発生し
ているが、実施の形態1による処理では偽色の発生が抑
圧されている。各処理でこの水平方向の偽色信号のレベ
ルを積分して比較すると、約18.4dBの抑圧効果が
ある。
FIG. 9 shows the relationship between the false color level (color-alias level, vertical axis) and the resolution (horizontal axis) generated in the horizontal direction when the zone plate is processed by image simulation. The false color level after processing according to the prior art according to FIG. 20 is indicated by a dashed line, and the false color level after processing according to the first embodiment according to FIG. 2 is indicated by a solid line. Many false colors are generated in the processing according to the related art, but the processing according to the first embodiment suppresses the generation of false colors. When the levels of the false color signal in the horizontal direction are integrated and compared in each process, a suppression effect of about 18.4 dB is obtained.

【0058】また、図10は、垂直方向での発生する偽
色レベル(color-alias level 、縦軸)と解像度(横
軸)との関係を示すものであり、上記と同様に、上記図
20による従来技術による処理後の偽色レベルを波線で
示し、図2による実施の形態1による処理後の偽色レベ
ルを実線で示している。従来の技術による処理では多く
の偽色が発生しているが、実施の形態1による処理では
偽色の発生が抑圧されており、垂直方向の偽色信号のレ
ベルを積分して比較すると、約18.5dBの抑圧効果
がある。
FIG. 10 shows the relationship between the false-color level (color-alias level, vertical axis) generated in the vertical direction and the resolution (horizontal axis). The false color level after processing according to the related art is indicated by a dashed line, and the false color level after processing according to the first embodiment shown in FIG. 2 is indicated by a solid line. Although many false colors are generated in the processing according to the related art, the generation of the false colors is suppressed in the processing according to the first embodiment. There is a suppression effect of 18.5 dB.

【0059】さらに、図11および図12は、ゾーンプ
レートを画像シミュレーションにより処理した場合の水
平方向における輝度信号のレベルをRGB信号より算出
して縦軸に、解像度を横軸に示した図であり、図2によ
る実施の形態1による処理後の場合を図11に、上記図
20による従来技術による処理後の場合を図12に示
す。また、垂直方向における輝度信号のレベルと解像度
との関係を、図13に図2による実施の形態1による処
理後の場合を、図14に上記図20による従来技術によ
る処理後の場合示す。水平および垂直方向どちらに対し
ても、従来の技術による処理に比較して実施の形態1に
よる処理ではレベルの低下が少なく、水平垂直方向の解
像度が向上している。
Further, FIGS. 11 and 12 are diagrams in which the level of the luminance signal in the horizontal direction when the zone plate is processed by the image simulation is calculated from the RGB signals, and the vertical axis represents the resolution and the horizontal axis represents the resolution. FIG. 11 shows the case after the processing according to the first embodiment shown in FIG. 2, and FIG. 12 shows the case after the processing according to the prior art shown in FIG. FIG. 13 shows the relationship between the level of the luminance signal and the resolution in the vertical direction after processing according to the first embodiment shown in FIG. 2, and FIG. 14 shows the case after processing according to the prior art shown in FIG. In both the horizontal and vertical directions, in the processing according to the first embodiment, the reduction in level is small and the resolution in the horizontal and vertical directions is improved as compared with the processing according to the conventional technique.

【0060】なお、上記実施の形態1では、撮像素子1
の色フィルタの配列を図1に示す原色の色フィルタであ
り、各光電変換素子を独立に呼び出す方式の撮像素子と
し、画素位置(2i,2j)と画素位置(2i+1、2
j+1)(i=0、1、2、…、j=0、1、2、…)
にG信号を通過させる分光特性を持った第1の色フィル
タを、画素位置(2i、2j+1)にR信号を通過させ
る分光特性を持った第2の色フィルタを、画素位置(2
i+1、2j)にB信号を通過させる分光特性を持った
第3の色フィルタを配列した場合として説明したが、撮
像素子におけるは第1、第2および第3の色フィルタの
分光特性はR、G、Bに限るものではなく、例えば画素
混合方式の撮像素子であってもよく、図15に示すよう
に、画素位置(2i,2j)と画素位置(2i+1、2
j+1)(i=0、1、2、…、j=0、1、2、…)
に第1の信号Aを通過させる分光特性を持った第1の色
フィルタを、画素位置(2i、2j+1)に第2の信号
Bを通過させる分光特性を持った第2の色フィルタを、
画素位置(2i+1、2j)に第3の信号Cを通過させ
る分光特性を持った第3の色フィルタを配列し、上記実
施の形態1の処理により撮像素子の画素数分の各A、
B、Cの信号を復元した後RGBの色信号を再生できれ
ばよく、上記と同様の効果を奏する。
In the first embodiment, the image pickup device 1
The color filter array is a primary color filter shown in FIG. 1, and each photoelectric conversion element is an image pickup element that is independently called, and a pixel position (2i, 2j) and a pixel position (2i + 1, 2
j + 1) (i = 0, 1, 2,..., j = 0, 1, 2,...)
A first color filter having a spectral characteristic to pass a G signal through the pixel position, and a second color filter having a spectral characteristic to pass an R signal to the pixel position (2i, 2j + 1).
The description has been made assuming that a third color filter having a spectral characteristic for passing the B signal is arranged in (i + 1, 2j). However, in the imaging device, the spectral characteristics of the first, second, and third color filters are R, The image sensor is not limited to G and B, but may be, for example, a pixel-mixing type image sensor. As shown in FIG. 15, the pixel position (2i, 2j) and the pixel position (2i + 1, 2
j + 1) (i = 0, 1, 2,..., j = 0, 1, 2,...)
A first color filter having a spectral characteristic to pass the first signal A, a second color filter having a spectral characteristic to pass the second signal B to the pixel position (2i, 2j + 1),
A third color filter having a spectral characteristic for passing the third signal C is arranged at the pixel position (2i + 1, 2j).
It is sufficient that the RGB color signals can be reproduced after the B and C signals have been restored, and the same effects as described above can be obtained.

【0061】また、上記実施の形態1では、図1および
図15の撮像素子の色フィルタの配列を画素位置(2
i,2j)と画素位置(2i+1、2j+1)(i=
0、1、2、…、j=0、1、2、…)に第1の色フィ
ルタを、画素位置(2i、2j+1)に第2の色フィル
タを、画素位置(2i+1、2j)に第3の色フィルタ
を配列した場合(図1、15中の斜線部分)として説明
したが、図16に示されるように、画素位置(2i,2
j+1)と画素位置(2i+1、2j)(i=0、1、
2、…、j=0、1、2、…)に第1の色フィルタを、
画素位置(2i、2j)に第2の色フィルタを、画素位
置(2i+1、2j+1)に第3の色フィルタを配列し
た場合(図16中の斜線部分)でも同様の効果を奏し、
上下4画素毎にnラインには第1の色フィルタ、第2の
色フィルタが配列され、n+1ラインでは第3の色フィ
ルタと第1の色フィルタが配列されて、上下のラインで
第1のフィルタが斜め方向の画素に配列されていればよ
い。
In the first embodiment, the arrangement of the color filters of the image pickup device shown in FIGS.
i, 2j) and pixel position (2i + 1, 2j + 1) (i =
, J = 0, 1, 2,...), The second color filter at the pixel position (2i, 2j + 1), and the second color filter at the pixel position (2i + 1, 2j). Although the case where three color filters are arranged (shaded portions in FIGS. 1 and 15) has been described, as shown in FIG. 16, the pixel positions (2i, 2
j + 1) and pixel positions (2i + 1, 2j) (i = 0, 1,
, J = 0, 1, 2,...) And the first color filter,
When the second color filter is arranged at the pixel position (2i, 2j) and the third color filter is arranged at the pixel position (2i + 1, 2j + 1) (the hatched portion in FIG. 16), the same effect is obtained.
A first color filter and a second color filter are arranged on an n-line every four pixels in the upper and lower pixels, and a third color filter and a first color filter are arranged on an n + 1-th line. It suffices if the filters are arranged in oblique pixels.

【0062】また、上記実施の形態1において、第1の
エッジ判定手段5および第2のエッジ判定手段8におい
ての判定結果を示す信号を、ΔHとΔVの両方が予め定
めた値以下の場合は‘1’とし、エッジ成分があると判
定しΔH>ΔVの場合は‘2’とし、ΔH≦ΔVの場合
は‘3’とし、画素信号が得られている画素位置におい
ては‘0’として出力する場合について説明している
が、これに限るものではなく、それぞれの判定結果を区
別できる信号を出力するのであれば、他の値であっても
よい。
In the first embodiment, the signals indicating the results of the judgment by the first edge judgment means 5 and the second edge judgment means 8 are determined when both ΔH and ΔV are smaller than a predetermined value. It is determined to be “1”, and it is determined that there is an edge component. If ΔH> ΔV, it is set to “2”. If ΔH ≦ ΔV, it is set to “3”. Although the description has been given of a case where the determination is made, the present invention is not limited to this, and other values may be used as long as a signal capable of distinguishing each determination result is output.

【0063】なお、上記実施の形態1では、ハードウェ
アにより図2の構成の処理を行う場合について説明して
いるが、撮像装置におけるソフトウェアにより同様の処
理を行うことができることは言うまでもなく、上記実施
の形態1と同様の効果を奏する。
In the first embodiment, the case where the processing of the configuration shown in FIG. 2 is performed by hardware has been described. The same effect as in the first embodiment is exerted.

【0064】実施の形態2.実施の形態1では第1のエ
ッジ判定手段5において、G信号における画素位置(2
i、2j+1)および(2i+1、2j)での上下左右
でのエッジ成分を判定し、第2のエッジ判定手段8にお
いては、R信号の復元に対してG信号における画素位置
(2i+1、2j)でのエッジ成分を、B信号の復元に
対しG信号における画素位置(2i、2j+1)でのエ
ッジ成分を判定するよう構成したが、どちらも画素位置
(2i、2j+1)、(2i+1、2j)での左右およ
び上下の画素のエッジ成分を検出しており、これらの画
素位置での上下左右の画素信号は撮像素子より得られた
信号であるため、同一のエッジ成分を求めることとな
る。よって、図17に示すように、1つのG成分エッジ
判定手段によりG信号における画素位置(2i、2j+
1)および(2i+1、2j)でのエッジ成分を判定す
るような構成とすることもできる。
Embodiment 2 In the first embodiment, the first edge determination means 5 determines the pixel position (2
i, 2j + 1) and (2i + 1, 2j) to determine the edge components at the top, bottom, left, and right, and the second edge determination means 8 performs the restoration of the R signal at the pixel position (2i + 1, 2j) in the G signal. Is configured to determine the edge component at the pixel position (2i, 2j + 1) in the G signal with respect to the restoration of the B signal. Since the edge components of the left, right, upper and lower pixels are detected, and the upper, lower, left and right pixel signals at these pixel positions are signals obtained from the image sensor, the same edge component is obtained. Therefore, as shown in FIG. 17, the pixel position (2i, 2j +
It is also possible to adopt a configuration in which the edge components in (1) and (2i + 1, 2j) are determined.

【0065】図17において、1〜4、6〜7、および
9は上記実施の形態1での撮像装置と同一のものであ
り、41はG成分エッジ判定手段であり、水平方向エッ
ジ検出手段42、垂直方向エッジ検出手段43、判定手
段44により構成される。
In FIG. 17, reference numerals 1 to 4, 6 to 7, and 9 are the same as those in the image pickup apparatus according to the first embodiment. , Vertical edge detecting means 43 and determining means 44.

【0066】次に動作を説明する。撮像素子1から各画
素信号R、G、Bを読み出し、A/Dコンバータ2によ
りA/D変換されてフレームメモリ3に入力され、分離
手段4により各R、G、B信号を分離し、G成分復元手
段6、第1のRB復元手段7および第2のRB復元手段
9で撮像素子の画素数の各信号を生成し復元する動作は
上記実施の形態1と同一であるのでその詳細な説明は省
略する。
Next, the operation will be described. The pixel signals R, G, and B are read from the image sensor 1, A / D converted by the A / D converter 2 and input to the frame memory 3, and the R, G, and B signals are separated by the separation unit 4, and G The operation of generating and restoring each signal of the number of pixels of the image sensor by the component restoring means 6, the first RB restoring means 7, and the second RB restoring means 9 is the same as that in the first embodiment, so that the detailed description will be made. Is omitted.

【0067】G成分エッジ判定手段41には分離手段4
におけるG信号(図18)が入力され、G成分エッジ判
定手段41内の水平方向エッジ検出手段42、垂直方向
エッジ検出手段43へと与えられる。水平方向エッジ検
出手段42および垂直方向エッジ検出手段43において
は画素位置(2i、2j+1)、(2i+1、2j)
(図18中斜線で示す画素)での左右および上下の画素
の差分つまりエッジ成分を検出する。つまり、水平方向
エッジ検出手段42では、上記画素位置での左右の画素
の差の絶対値ΔHgを得て、これを判定手段44へと出
力し、垂直方向エッジ検出手段43では、上下の画素の
差の絶対値ΔVgを得て、判定手段55へと出力する。
例えば、画素位置(2i、2j+1)においては、水平
方向エッジ検出手段42で、 ΔHg=|G(2i、2j)−G(2i、2j+2)| を算出し、垂直方向エッジ検出手段43で ΔVg=| G(2i−1、2j+1)−G(2i+
1、2j+1)| を算出し、上記ΔHg、ΔVgを判定手段44へと送
る。
The G component edge determining means 41 includes a separating means 4
The G signal (FIG. 18) is input to the horizontal edge detecting means 42 and the vertical edge detecting means 43 in the G component edge determining means 41. The pixel positions (2i, 2j + 1) and (2i + 1, 2j) in the horizontal edge detecting means 42 and the vertical edge detecting means 43
A difference between left and right and upper and lower pixels (pixels indicated by oblique lines in FIG. 18), that is, an edge component is detected. That is, the horizontal edge detection means 42 obtains the absolute value ΔHg of the difference between the left and right pixels at the pixel position and outputs this to the determination means 44. The absolute value ΔVg of the difference is obtained and output to the determination means 55.
For example, at the pixel position (2i, 2j + 1), the horizontal edge detection means 42 calculates ΔHg = | G (2i, 2j) -G (2i, 2j + 2) |, and the vertical edge detection means 43 calculates ΔVg = | G (2i-1, 2j + 1) -G (2i +
1, 2j + 1) | and sends the above ΔHg and ΔVg to the determination means 44.

【0068】上記判定手段44では、水平方向でのエッ
ジ成分ΔHgおよび垂直方向エッジ成分ΔVgにより、
水平垂直方向での周辺画素での信号レベルの変化を判定
し、入力されるG信号の各画素位置に応じて、その判定
結果を示す信号ed1をG成分復元手段6へ、edr、
edbを第2のRB成分復元手段9へと出力する。各判
定信号は、ΔHgとΔVgの両方が予め定めた値以下の
場合は、周辺画素での信号レベルの変化がないと判定
し、例えば‘1’とする。一方、ΔHgまたはΔVgが
予め定めた値より大きい場合は、その画素においてエッ
ジ成分があると判定し、さらに、ΔHg>ΔVgの場合
は垂直方向に相関が高いと判定して例えば‘2’とし、
ΔHg≦ΔVgの場合は水平方向に相関が高いと判定し
て例えば、‘3’とする。ここで、G成分復元手段6に
おいては、画素位置(2i、2j+1)と(2i+1、
2j)での画素を復元するため、両画素位置において上
記エッジ判定結果をed1として出力し、Gが得られて
いる画素位置(2i、2j)、(2i+1、2j+1)
においては例えばed1=0を出力する。そして、判定
手段44の出力ed1はG成分復元手段6における切り
換え手段25へと送られる。
In the determination means 44, the edge component ΔHg in the horizontal direction and the edge component ΔVg in the vertical direction are used.
A change in the signal level of the peripheral pixels in the horizontal and vertical directions is determined, and a signal ed1 indicating the determination result is sent to the G component restoring means 6 according to each pixel position of the input G signal, to edr,
edb is output to the second RB component restoration means 9. If each of the determination signals is less than or equal to a predetermined value, ΔHg and ΔVg are determined to have no change in the signal level in the peripheral pixels, and are set to “1”, for example. On the other hand, if ΔHg or ΔVg is larger than a predetermined value, it is determined that there is an edge component in the pixel. Further, if ΔHg> ΔVg, it is determined that the correlation is high in the vertical direction, and is set to, for example, “2”.
When ΔHg ≦ ΔVg, it is determined that the correlation is high in the horizontal direction, and is set to, for example, “3”. Here, in the G component restoration means 6, the pixel positions (2i, 2j + 1) and (2i + 1,
In order to restore the pixel in 2j), the edge determination result is output as ed1 at both pixel positions, and pixel positions (2i, 2j) and (2i + 1, 2j + 1) where G is obtained
Outputs, for example, ed1 = 0. Then, the output ed1 of the judging means 44 is sent to the switching means 25 in the G component restoring means 6.

【0069】一方、第2のRB成分復元手段9において
は、R信号の画素位置(2i+1,2j)の復元を行
い、B信号の画素位置(2i、2j+1)の復元を行
う。よって、画素位置(2i+1、2j)において上記
エッジ成分を判定した結果をedrとして、第2のRB
成分復元手段9での処理する画素位置にタイミングを合
わせて出力し、他の画素位置(2i、2j)、(2i、
2j+1)、(2i+1、2j+1)においては例えば
edr=0を出力する。そして、判定手段44の出力e
drは第2のRB成分復元手段9におけるR切り換え手
段36へと送られる。一方、画素位置(2i、2j+
1)において上記エッジ成分を判定した結果をedbと
して、第2のRB成分復元手段9での処理する画素位置
にタイミングを合わせて出力し、他の画素位置(2i、
2j)、(2i+1、2j)、(2i+1、2j+1)
においては例えばedb=0を出力する。そして、判定
手段44の出力edbは第2のRB成分復元手段9にお
けるB切り換え手段40へと送られる。
On the other hand, the second RB component restoring means 9 restores the pixel position (2i + 1, 2j) of the R signal and restores the pixel position (2i, 2j + 1) of the B signal. Therefore, the result of determining the edge component at the pixel position (2i + 1, 2j) is defined as edr, and the second RB
The timing is output in synchronization with the pixel position to be processed by the component restoring means 9, and the other pixel positions (2i, 2j), (2i,
In (2j + 1) and (2i + 1, 2j + 1), for example, edr = 0 is output. Then, the output e of the determination means 44
dr is sent to the R switching means 36 in the second RB component restoring means 9. On the other hand, pixel positions (2i, 2j +
In 1), the result of the edge component determination is set as edb, and the timing is output in synchronization with the pixel position to be processed by the second RB component restoring means 9, and the other pixel positions (2i,
2j), (2i + 1, 2j), (2i + 1, 2j + 1)
Output edb = 0, for example. Then, the output edb of the judging means 44 is sent to the B switching means 40 in the second RB component restoring means 9.

【0070】よって、G成分エッジ判定手段41におい
て、上記G成分復元手段6および第2のRB成分復元手
段9におけるG、R、B信号を復元する画素位置に対応
するG信号でのエッジ成分の判定結果を出力されること
となる。
Therefore, in the G component edge judging means 41, the edge component of the G signal corresponding to the pixel position at which the G, R, B signal is restored in the G component restoring means 6 and the second RB component restoring means 9 is obtained. The judgment result is output.

【0071】なお、上記実施の形態2では、画素位置
(2i、2j)、(2i+1、2j+1)にG信号が、
画素位置(2i、2j+1)にR信号が、画素位置(2
i+1、2j+1)にB信号が撮像素子より得られる場
合について説明したが、上記実施の形態1同様、画素位
置(2i、2j+1)、(2i+1、2j)にG信号
が、画素位置(2i、2j)にR信号が、画素位置(2
i+1、2j+1)にB信号が配列されていてもよく、
また、色信号はRGBに限ることはない。
In the second embodiment, the G signal is applied to the pixel positions (2i, 2j) and (2i + 1, 2j + 1).
The R signal is applied to the pixel position (2i, 2j + 1) at the pixel position (2
The case where the B signal is obtained from the image sensor at (i + 1, 2j + 1) has been described. However, as in the first embodiment, the G signal is at pixel positions (2i, 2j + 1) and (2i + 1, 2j) and the pixel position (2i, 2j). ) At the pixel position (2).
i + 1, 2j + 1), a B signal may be arranged,
Further, the color signal is not limited to RGB.

【0072】また、上記実施の形態1と同様、実施の形
態2においても、図17の構成の処理を撮像装置におけ
るソフトウェアにより同様の処理を行うことができるこ
とは言うまでもなく、上記実施の形態2と同様の効果を
奏する。
In the second embodiment as well as in the first embodiment, it is needless to say that the same processing as the processing in the configuration of FIG. 17 can be performed by software in the imaging apparatus. A similar effect is achieved.

【0073】[0073]

【発明の効果】この発明は、以上説明したように構成さ
れているので、以下に示すような効果を奏する。
Since the present invention is configured as described above, it has the following effects.

【0074】この発明に係る撮像装置によれば、画素位
置(2i、2j)(i=0、1、2、…およびj=0、
1、2、…)と(2i+1、2j+1)に第1の色信号
を通過させる分光特性を持った第1の色フィルタを、画
素位置(2i、2j+1)に第2の色信号を通過させる
分光特性を持った第2の色フィルタ、画素位置(2i+
1、2j)に第3の色信号を通過させる分光特性を持っ
た第3の色フィルタを配列した上下4画素が垂直水平方
向に繰り返し配列された撮像素子において、第1の色フ
ィルタにより読み出された第1の色信号の画素位置(2
i、2j+1)、(2i+1、2j)において、周辺画
素信号に基づきエッジ成分を判定し、この判定結果に基
づき、第1、第2および第3の色信号により第1の色信
号の上記画素位置での信号を算出して撮像素子の画素数
の第1の色信号を復元し、上記エッジ判定結果に基づ
き、復元された第1の色信号と各色フィルタからの色信
号により第2および第3の色信号を算出し撮像素子の画
素数の第2、第3の色信号を得ることにより、偽色、偽
輪郭の軽減された画像を得ることができる。
According to the imaging apparatus of the present invention, the pixel positions (2i, 2j) (i = 0, 1, 2,... And j = 0,
, And (2i + 1, 2j + 1) pass through a first color filter having a spectral characteristic of passing a first color signal, and pass through a pixel position (2i, 2j + 1) through a second color signal. The second color filter having characteristics, the pixel position (2i +
1, 2j) read out by the first color filter in an image sensor in which four upper and lower pixels in which a third color filter having a spectral characteristic for passing a third color signal is arranged are repeatedly arranged vertically and horizontally. The pixel position (2
In (i, 2j + 1) and (2i + 1, 2j), the edge component is determined based on the peripheral pixel signal, and based on the determination result, the pixel position of the first color signal is determined by the first, second, and third color signals. Is calculated to restore the first color signal of the number of pixels of the image sensor, and based on the edge determination result, the second and third color signals from the restored first color signal and the color signals from the respective color filters are used. By calculating the second color signal and the second and third color signals of the number of pixels of the image sensor, an image with reduced false colors and false contours can be obtained.

【0075】また、この発明に係る撮像装置によれば、
エッジ判定手段が、第1の色信号の所定画素における左
右の隣接画素の差の絶対値を算出して水平方向のエッジ
成分ΔHを検出し、上下の画素の差の絶対値を算出して
垂直方向のエッジ成分ΔVを検出して、水平方向のエッ
ジ成分ΔHと垂直方向のエッジ成分ΔVに基づき、前記
所定画素における水平または垂直方向のエッジ成分を判
定する判定することにより、局所的な領域での水平、垂
直方向の空間周波数の変化を判定することができ、偽
色、偽輪郭の軽減された画像を得ることができる。
According to the imaging apparatus of the present invention,
The edge determination means calculates the absolute value of the difference between the left and right adjacent pixels in the predetermined pixel of the first color signal, detects the horizontal edge component ΔH, calculates the absolute value of the difference between the upper and lower pixels, and calculates the vertical value. Direction edge component ΔV, and based on the horizontal edge component ΔH and the vertical edge component ΔV, determine the horizontal or vertical edge component in the predetermined pixel to determine the local region. Can be determined in the horizontal and vertical directions, and an image with reduced false colors and false contours can be obtained.

【0076】また、この発明に係る撮像装置によれば、
前記エッジ判定手段における判定手段が、上記水平方向
エッジ検出手段からの出力ΔHまたは上記垂直方向エッ
ジ検出手段からの出力ΔVが予め定めた値より大きい場
合は、所定画素の周辺画素にエッジ成分を検出したと
し、さらに、ΔH>ΔVであれば垂直方向により相関が
あり、ΔH≦ΔVであれば水平方向により相関があると
判定するとともに、上記ΔHとΔVがともに予め定めた
値より小さい場合にはエッジ成分を検出しないと判定す
ることにより、局所的な領域での水平、垂直方向の空間
周波数の変化を判定することができ、偽色、偽輪郭の軽
減された画像を得ることができる。
According to the imaging apparatus of the present invention,
When the output ΔH from the horizontal edge detector or the output ΔV from the vertical edge detector is larger than a predetermined value, the edge detector detects an edge component in a peripheral pixel of the predetermined pixel. If ΔH> ΔV, it is determined that there is a correlation in the vertical direction. If ΔH ≦ ΔV, it is determined that there is a correlation in the horizontal direction. If both ΔH and ΔV are smaller than a predetermined value, By determining that no edge component is detected, it is possible to determine a change in the spatial frequency in the horizontal and vertical directions in a local region, and to obtain an image with reduced false colors and false contours.

【0077】また、この発明に係る撮像装置によれば、
第1の色信号を算出して復元する手段が、第2の色信号
Bのある所定画素l行m列B(l、m)の位置(l=2
i、m=2j+1またはl=2i+1、m=2j)にお
いて、第1の色信号A、第2の色信号Bのそれぞれに対
して水平方向のローパスフィルタを介した値Ahlpf
(l、m)、Bhlpf(l、m)を算出し、前記水平
方向ローパスフィルタからの出力信号であるAhlpf
(l、m)とBhlpf(l、m)との比と上記画素位
置の画素値B(l、m)により、l行m列の第1の色信
号Aにおける画素値A(l、m)を、A(l、m)=B
(l、m)×{Ahlpf(l、m)/Bhlpf
(l、m)}により算出し、第3の色信号Cのある他の
画素位置においても同様に第1の色信号Aにおける画素
値を算出する水平方向信号算出手段と、上記所定画素l
行m列B(l、m)の位置において、第1の色信号A、
第2の色信号Bのそれぞれに対して垂直方向のローパス
フィルタを介した値Avlpf(l、m)、Bvlpf
(l、m)を算出し、前記垂直方向ローパスフィルタか
らの出力信号であるAvlpf(l、m)とBvlpf
(l、m)との比と上記画素位置の画素値B(l、m)
により、l行m列の第1の色信号Aである画素値A
(l、m)を、A(l、m)=B(l、m)×{Avl
pf(l、m)/Bvlpf(l、m)}により算出
し、第3の色信号Cのある他の画素位置においても同様
に第1の色信号Aにおける画素値を算出する垂直方向信
号算出手段と、第1の色信号Aにおける上記所定画素l
行m列の位置での上下左右の隣接画素の平均値よりl行
m列の第1の色信号Aにおける画素値A(l、m)を算
出する平均値算出手段とを備え、上記エッジ判定手段の
出力に基づき、上記水平方向信号算出手段の出力または
垂直方向信号算出手段出力、または、平均値算出手段か
らの出力より選択し、上記所定画素l行m列における第
1の色信号Aの画素値A(l、m)を得て、撮像素子に
おける画素数の第1の色信号を得ることにより、偽色、
偽輪郭の軽減された画像を得ることができる。
According to the imaging apparatus of the present invention,
The means for calculating and restoring the first color signal is used to calculate the position (l = 2) of a predetermined pixel l row m column B (l, m) of the second color signal B
i, m = 2j + 1 or l = 2i + 1, m = 2j), the value Ahlpf of each of the first color signal A and the second color signal B through a horizontal low-pass filter
(L, m) and Bhlpf (l, m) are calculated, and Ahlpf which is an output signal from the horizontal low-pass filter is calculated.
The pixel value A (l, m) in the first color signal A of l rows and m columns is obtained from the ratio of (l, m) to Bhlpf (l, m) and the pixel value B (l, m) at the pixel position. A (l, m) = B
(L, m) × {Ahlpf (l, m) / Bhlpf
(L, m)}, a horizontal direction signal calculating means for calculating a pixel value of the first color signal A at another pixel position of the third color signal C, and the predetermined pixel l
At the position of row m column B (l, m), the first color signal A,
Values Avlpf (l, m), Bvlpf for each of the second color signals B through a vertical low-pass filter
(L, m) is calculated, and Avlpf (l, m) and Bvlpf, which are output signals from the vertical low-pass filter, are calculated.
(L, m) and the pixel value B (l, m) at the pixel position
As a result, the pixel value A which is the first color signal A of l rows and m columns
Let (l, m) be A (l, m) = B (l, m) × {Avl
pf (l, m) / Bvlpf (l, m)}, and the vertical direction signal calculation for calculating the pixel value of the first color signal A at another pixel position of the third color signal C similarly Means, and the predetermined pixel l in the first color signal A.
Average value calculating means for calculating a pixel value A (l, m) of the first color signal A in l rows and m columns from an average value of adjacent pixels in the upper, lower, left, and right positions at the position of the row m. Based on the output of the means, the output is selected from the output of the horizontal signal calculation means, the output of the vertical signal calculation means, or the output from the average value calculation means, and the first color signal A in the predetermined pixel l row m column is selected. By obtaining a pixel value A (l, m) and obtaining a first color signal of the number of pixels in the image sensor, a false color,
An image with reduced false contours can be obtained.

【0078】また、この発明に係る撮像装置によれば、
前記第1の色信号を算出する手段が、上記エッジ判定手
段の出力が所定画素l行m列位置においてエッジ成分を
検出しないと判定した場合は上記平均値算出手段の出力
を選択し、垂直方向に相関があると判定した場合は上記
垂直方向信号算出手段の出力を選択し、水平方向に相関
があると判定した場合は上記水平方向信号算出手段の出
力を選択し、撮像素子における画素数の第1の色信号を
得ることにより、偽色、偽輪郭の軽減された画像を得る
ことができる。
According to the imaging apparatus of the present invention,
When the means for calculating the first color signal determines that the output of the edge determination means does not detect an edge component at the position of predetermined pixel l row and m column, the output of the average value calculation means is selected and If it is determined that there is a correlation, the output of the vertical direction signal calculation means is selected.If it is determined that there is a correlation in the horizontal direction, the output of the horizontal direction signal calculation means is selected. By obtaining the first color signal, an image with reduced false colors and false contours can be obtained.

【0079】また、この発明に係る撮像装置によれば、
第2、第3の色信号を算出して復元する手段が、所定画
素l行m列の位置(l=2i、m=2jまたはl=2i
+1、m=2j+1)において、上記第1の色信号を算
出する手段からの出力Aに対し水平方向のローパスフィ
ルタを介した値A1hlpf(l、m)と垂直方向ロー
パスフィルタを介した値A1vlpf(l、m)を算出
し、第2の色信号Bに対して水平方向のローパスフィル
タを介した値B1hlpf(l、m)と第3の色信号C
に対して垂直方向のローパスフィルタを介した値C1v
lpf(l、m)(または、第2の色信号Bに対して垂
直方向のローパスフィルタを介した値B1vlpf
(l、m)と第3の色信号Cに対して水平方向のローパ
スフィルタを介した値C1hlpf(l、m))とを算
出し、A1hlpf(l、m)とB1hlpf(l、
m)との比(またはC1hlpf(l、m)との比)
と、A1vlpf(l、m)とC1vlpf(l、m)
との比(または、B1vlpf(l、m)との比)と、
第1の色信号を算出する手段からの出力Aにおける所定
画素l行m列での画素値A(l、m)から、l行m列の
第2の色信号Bと第3の色信号Cにおける画素値B
(l、m)とC(l、m)を、B(l、m)=A(l、
m)×{B1hlpf(l、m)/A1hlpf(l、
m)}、C(l、m)=A(l、m)×{C1vlpf
(l、m)/A1vlpf(l、m)}、(または、B
(l、m)=A(l、m)×{B1vlpf(l、m)
/A1vlpf(l、m)}、C(l、m)=A(l、
m)×{C1hlpf (l、m)/A1hlpf
(l、m)})により算出する信号算出手段を備えると
ともに、上記l行m列の位置とは異なる所定画素x行y
列の位置(x=2i+1、y=2jまたはx=2i、y
=2j+1)において、上記第1の色信号を算出する手
段からの出力Aに対し水平方向のローパスフィルタを介
した値A2hlpf(x、y)、前記信号算出手段から
の出力での第2の色信号Bに対し水平方向のローパスフ
ィルタを介した値B2hlpf(x、y)を算出し、A
2hlpf(x、y)とB2hlpf(x、y)の比と
上記第1の算出手段からの出力Aでの画素x行y列での
画素値A(x、y)により、x行y列の位置における第
2の色信号B(x、y)を、B(x、y)=A(x、
y)×{B2hlpf(x、y)/A2hlpf(x、
y)}により算出し、第3の色信号Cにおいても同様に
C信号を算出する水平方向信号算出手段と、上記第1の
色信号を算出する手段からの出力Aに対し垂直方向のロ
ーパスフィルタを介した値A2vlpf(x、y)、前
記信号算出手段からの出力での第2の色信号Bに対して
垂直方向のローパスフィルタを介した値B2vlpf
(x、y)を算出し、A2vlpf(x、y)とB2v
lpf(x、y)の比と上記第1の算出手段からの出力
Aでの画素x行y列での画素値A(x、y)により、x
行y列の位置における第2の色信号B(x、y)を、B
(x、y)=A(x、y)×{B2vlpf(x、y)
/A2vlpf(x、y)}により算出し、第3の色信
号Cにおいても同様にC信号を算出する垂直方向信号算
出手段と、上記信号算出手段からの出力における第2、
第3の色信号での所定画素x行y列の位置において、斜
めに隣接する画素の平均値を算出する平均値算出手段と
を備え、上記エッジ判定手段の出力に基づき、前記水平
方向信号算出手段、垂直方向信号算出手段、平均値算出
手段からのそれぞれの出力から選択して、上記所定画素
x行y列での第2、第3の色信号を得て、撮像素子にお
ける画素数の第2、第3の色信号を得ることにより、偽
色、偽輪郭の軽減された画像を得ることができる。
According to the imaging apparatus of the present invention,
The means for calculating and restoring the second and third color signals is provided at the position (l = 2i, m = 2j or l = 2i) of the predetermined pixel l row and m column.
+1 and m = 2j + 1), the output A from the means for calculating the first color signal has a value A1hlpf (l, m) through a horizontal low-pass filter and a value A1vlpf (l, m) through a vertical low-pass filter. l, m), the value B1hlpf (l, m) of the second color signal B via a horizontal low-pass filter and the third color signal C
To the value C1v through a low-pass filter in the vertical direction
lpf (l, m) (or the value B1vlpf through the low-pass filter in the vertical direction with respect to the second color signal B)
(L, m) and a value C1hlpf (l, m)) of the third color signal C through a horizontal low-pass filter are calculated, and A1hlpf (l, m) and B1hlpf (l, m) are calculated.
m) (or the ratio with C1hlpf (l, m))
And A1vlpf (l, m) and C1vlpf (l, m)
(Or the ratio to B1vlpf (l, m)) and
From the pixel value A (l, m) at the predetermined pixel l row m column in the output A from the means for calculating the first color signal, the second color signal B and the third color signal C l row m columns Pixel value B at
Let (l, m) and C (l, m) be B (l, m) = A (l,
m) × {B1hlpf (l, m) / A1hlpf (l,
m)}, C (l, m) = A (l, m) × {C1vlpf
(L, m) / A1vlpf (l, m)}, (or B
(L, m) = A (l, m) × {B1vlpf (l, m)
/ A1vlpf (l, m)}, C (l, m) = A (l,
m) × ΔC1hlpf (1, m) / A1hlpf
(L, m)}) and a predetermined pixel x row y different from the position of the l row and m column
Column position (x = 2i + 1, y = 2j or x = 2i, y
= 2j + 1), the value A2hlpf (x, y) through a horizontal low-pass filter for the output A from the means for calculating the first color signal, the second color at the output from the signal calculating means A value B2hlpf (x, y) is calculated for the signal B through a horizontal low-pass filter, and A
Based on the ratio of 2hlpf (x, y) to B2hlpf (x, y) and the pixel value A (x, y) at the pixel x row y column at the output A from the first calculating means, x row y column The second color signal B (x, y) at the position is expressed as B (x, y) = A (x,
y) × {B2hlpf (x, y) / A2hlpf (x,
y) A horizontal signal calculating means for calculating the third color signal C in the same manner as for the third color signal C, and a low-pass filter in the vertical direction for the output A from the means for calculating the first color signal. A2vlpf (x, y) via the low-pass filter in the vertical direction with respect to the second color signal B at the output from the signal calculation means.
(X, y) is calculated, and A2vlpf (x, y) and B2v
By the ratio of lpf (x, y) and the pixel value A (x, y) at the pixel x row and y column at the output A from the first calculating means, x
The second color signal B (x, y) at the position of the row y column is represented by B
(X, y) = A (x, y) × {B2vlpf (x, y)
/ A2vlpf (x, y)}, and a vertical signal calculating means for calculating the C signal for the third color signal C in the same manner.
Average value calculating means for calculating an average value of obliquely adjacent pixels at a position of a predetermined pixel x row and y column in the third color signal, wherein the horizontal direction signal calculation is performed based on an output of the edge determining means. Means, the vertical direction signal calculation means, and the average value calculation means, to obtain the second and third color signals at the predetermined pixel x row and y column to obtain the second and third color signals. By obtaining the second and third color signals, an image with reduced false colors and false contours can be obtained.

【0080】さらに、この発明に係る撮像装置によれ
ば、前記第2、第3の色信号を算出する手段が、上記エ
ッジ判定手段の出力が所定画素x行y列の位置において
エッジ成分を検出しないと判定した場合は上記平均値算
出手段の出力を選択し、垂直方向に相関があると判定し
た場合は上記垂直方向信号算出手段の出力を選択し、水
平方向に相関があると判定した場合は上記水平方向信号
算出手段の出力を選択し、撮像素子における画素数の第
2、第3の色信号を得ることにより、偽色、偽輪郭の軽
減された画像を得ることができる。
Further, according to the image pickup apparatus of the present invention, the means for calculating the second and third color signals detects an edge component at a position of a predetermined pixel x row and y column when the output of the edge determination means is detected. If it is determined not to be performed, the output of the average value calculation means is selected.If it is determined that there is a correlation in the vertical direction, the output of the vertical signal calculation means is selected, and it is determined that there is a correlation in the horizontal direction. By selecting the output of the horizontal direction signal calculating means and obtaining the second and third color signals of the number of pixels in the image sensor, an image with reduced false colors and false contours can be obtained.

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

【図1】 この発明の実施の形態1における撮像素子の
色フィルタの配列の一例を示す図である。
FIG. 1 is a diagram showing an example of an arrangement of color filters of an image sensor according to Embodiment 1 of the present invention.

【図2】 この発明の実施の形態1による撮像装置の構
成の一例を示すブロック図である。
FIG. 2 is a block diagram illustrating an example of a configuration of an imaging device according to Embodiment 1 of the present invention;

【図3】 この発明の実施の形態1による撮像装置にお
ける第1のエッジ判定手段5とG成分復元手段6の構成
の一例を示すブロック図である。
FIG. 3 is a block diagram showing an example of a configuration of a first edge determination unit 5 and a G component restoration unit 6 in the imaging device according to the first embodiment of the present invention.

【図4】 この発明の実施の形態1による撮像装置にお
ける第2のエッジ判定手段8と第2のRB成分復元手段
9の構成の一例を示すブロック図である。
FIG. 4 is a block diagram illustrating an example of a configuration of a second edge determination unit 8 and a second RB component restoration unit 9 in the imaging device according to the first embodiment of the present invention.

【図5】 この発明の実施の形態1による撮像装置にお
けるG信号の復元の動作を説明するためのG信号の画素
を示す図である。
FIG. 5 is a diagram showing pixels of a G signal for describing an operation of restoring the G signal in the imaging device according to the first embodiment of the present invention;

【図6】 この発明の実施の形態1による撮像装置にお
けるG信号の復元の動作を説明するためのR信号および
B信号の画素を示す図である。
FIG. 6 is a diagram illustrating pixels of an R signal and a B signal for describing an operation of restoring a G signal in the imaging device according to the first embodiment of the present invention;

【図7】 この発明の実施の形態1による撮像装置にお
ける第1のRB成分復元装置7の動作を説明するための
R、B信号の画素を示す図である。
FIG. 7 is a diagram showing pixels of R and B signals for explaining the operation of the first RB component restoration device 7 in the imaging device according to the first embodiment of the present invention.

【図8】 この発明の実施の形態1による撮像装置にお
ける第2のエッジ判定手段8と第2のRB成分復元手段
9の動作を説明するためのR、B信号の画素を示す図で
ある。
FIG. 8 is a diagram illustrating pixels of R and B signals for explaining the operation of the second edge determination unit 8 and the second RB component restoration unit 9 in the imaging device according to the first embodiment of the present invention.

【図9】 この発明の実施の形態1による撮像装置と従
来の装置により処理したシミュレーション画像での水平
方向の解像度での偽色レベルを示す図である。
FIG. 9 is a diagram showing a false color level at a horizontal resolution in a simulation image processed by the imaging device according to the first embodiment of the present invention and a conventional device.

【図10】 この発明の実施の形態1による撮像装置と
従来の装置により処理したシミュレーション画像での垂
直方向の解像度での偽色レベルを示す図である。
FIG. 10 is a diagram illustrating a false color level at a vertical resolution in a simulation image processed by the imaging device according to the first embodiment of the present invention and a conventional device.

【図11】 この発明の実施の形態1による撮像装置に
より処理したシミュレーション画像での水平方向の解像
度での輝度信号のレベルを示す図である。
FIG. 11 is a diagram illustrating a level of a luminance signal at a horizontal resolution in a simulation image processed by the imaging device according to the first embodiment of the present invention;

【図12】 従来の装置により処理したシミュレーショ
ン画像での水平方向の解像度での輝度信号のレベルを示
す図である。
FIG. 12 is a diagram illustrating a level of a luminance signal at a horizontal resolution in a simulation image processed by a conventional device.

【図13】 この発明の実施の形態1による撮像装置に
より処理したシミュレーション画像での垂直方向の解像
度での輝度信号のレベルを示す図である。
FIG. 13 is a diagram showing a level of a luminance signal at a vertical resolution in a simulation image processed by the imaging device according to the first embodiment of the present invention;

【図14】 従来の装置により処理したシミュレーショ
ン画像での垂直方向の解像度での輝度信号のレベルを示
す図である。
FIG. 14 is a diagram showing a level of a luminance signal at a vertical resolution in a simulation image processed by a conventional device.

【図15】 この発明の実施の形態1による撮像素子の
他の色フィルタ配列の例を示す図である。
FIG. 15 is a diagram showing an example of another color filter array of the imaging device according to the first embodiment of the present invention.

【図16】 この発明の実施の形態1による撮像素子の
他の色フィルタ配列の例を示す図である。
FIG. 16 is a diagram showing an example of another color filter array of the imaging device according to the first embodiment of the present invention.

【図17】 この発明の実施の形態2による撮像装置の
構成の一例を示すブロック図である。
FIG. 17 is a block diagram illustrating an example of a configuration of an imaging device according to a second embodiment of the present invention.

【図18】 この発明の実施の形態2による撮像装置に
おけるG成分エッジ判定手段41の動作を説明するため
のG信号の画素を示す図である。
FIG. 18 is a diagram illustrating pixels of a G signal for describing an operation of a G component edge determination unit 41 in the imaging device according to the second embodiment of the present invention.

【図19】 従来の撮像装置における撮像素子の色フィ
ルタ配列の一例を示す図である。
FIG. 19 is a diagram illustrating an example of a color filter array of an imaging device in a conventional imaging device.

【図20】 従来の撮像装置の構成の一例を示すブロッ
ク図である。
FIG. 20 is a block diagram illustrating an example of a configuration of a conventional imaging device.

【図21】 従来の撮像装置の動作を説明するための各
信号の画素を示す図である。
FIG. 21 is a diagram illustrating pixels of respective signals for explaining the operation of the conventional imaging apparatus.

【図22】 従来の撮像装置の他の構成の例を示すブロ
ック図である。
FIG. 22 is a block diagram illustrating an example of another configuration of a conventional imaging device.

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

1 撮像素子、2 A/Dコンバータ、3 フレームメ
モリ、4 分離手段、5 第1のエッジ判定手段、6
G成分復元手段、7 第1のRB成分復元手段、8 第
2のエッジ判定手段、9 第2のRB成分復元手段、1
1,30,42水平方向エッジ検出手段、12,31,
43 垂直方向エッジ検出手段、13判定手段、14
平均値算出手段、15〜17 水平方向ローパスフィル
タ、18,19 演算手段、20〜22 垂直方向ロー
パスフィルタ、23、24演算手段、25 切り換え手
段、32 判定手段、33 R平均値算出手段、34
R水平方向演算手段、35 R垂直方向演算手段、36
R切り換え手段、37 B平均値算出手段、38 B
水平方向演算手段、39 B垂直方向演算手段、40
B切り換え手段、41 G成分エッジ判定手段、44判
定手段。
REFERENCE SIGNS LIST 1 imaging device, 2 A / D converter, 3 frame memory, 4 separation means, 5 first edge determination means, 6
G component restoring means, 7 first RB component restoring means, 8 second edge determining means, 9 second RB component restoring means, 1
1, 30, 42 horizontal edge detecting means, 12, 31,
43 vertical edge detecting means, 13 determining means, 14
Average value calculation means, 15 to 17 horizontal low-pass filter, 18, 19 calculation means, 20 to 22 vertical low-pass filter, 23, 24 calculation means, 25 switching means, 32 determination means, 33 R average value calculation means, 34
R horizontal operation means, 35 R vertical operation means, 36
R switching means, 37 B average value calculating means, 38 B
Horizontal computing means, 39 B Vertical computing means, 40
B switching means, 41 G component edge determining means, 44 determining means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 久野 徹也 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 ──────────────────────────────────────────────────続 き Continued from the front page (72) Inventor Tetsuya Kuno 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Mitsubishi Electric Corporation

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 垂直2行水平2列の上下4画素におい
て、第1の色信号に対する分光感度特性を持つ第1の色
フィルタと第2の色信号に対する分光感度特性を持つ第
2の色フィルタとが垂直1行目に配列され、垂直2行目
には上記垂直1行目の第1の色フィルタが配列された画
素位置と同一の列に第3の色信号に対する分光感度特性
を持つ第3の色フィルタが配列され、第2の色フィルタ
と同一の列に第1の色信号に対する分光感度特性を持つ
第1の色フィルタが配列されており、上記上下4画素の
色フィルタが順次垂直および水平方向に繰り返し配列さ
れる撮像素子を備えた撮像装置において、上記第1の色
フィルタによる第1の色信号の所定画素位置での周辺画
素信号に基づき、所定画素位置におけるエッジ成分を判
定するエッジ判定手段と、前記エッジ判定手段の出力に
基づき、上記第1、第2、第3の色フィルタにより読み
出された第1、第2および第3の色信号により第1の色
信号における上記所定位置での信号を算出する第1の算
出手段と、上記エッジ判定手段の出力に基づき、上記第
1の算出手段の出力と色フィルタからの第2および第3
の色信号により第2および第3の色信号を算出する第2
の算出手段とを備え、上記撮像素子における画素数の第
1、第2、第3の色信号を得ることを特徴とする撮像装
置。
1. A first color filter having a spectral sensitivity characteristic for a first color signal and a second color filter having a spectral sensitivity characteristic for a second color signal in upper and lower four pixels in two rows and two columns. Are arranged in the first vertical line, and the second vertical line has a spectral sensitivity characteristic for the third color signal in the same column as the pixel position where the first color filter in the first vertical line is arranged. Three color filters are arranged, and a first color filter having a spectral sensitivity characteristic for the first color signal is arranged in the same column as the second color filter. And an image pickup apparatus having an image pickup element repeatedly arranged in a horizontal direction, wherein an edge component at a predetermined pixel position is determined based on a peripheral pixel signal of the first color signal at a predetermined pixel position by the first color filter. Edge judgment means And the first, second, and third color signals read by the first, second, and third color filters based on the output of the edge determination means at the predetermined position in the first color signal. Based on the output of the first calculating means and the second and third signals from the color filter based on the output of the edge determining means.
Calculating the second and third color signals from the color signals
An image pickup apparatus, comprising: calculating means for obtaining first, second, and third color signals of the number of pixels in the image sensor.
【請求項2】 前記エッジ判定手段が、上記第1の色信
号の所定画素位置における左右の隣接画素の差の絶対値
を算出して水平方向のエッジ成分を検出する水平方向エ
ッジ検出手段と、第1の色信号の所定画素位置における
上下の画素の差の絶対値を算出して垂直方向のエッジ成
分を検出する垂直方向エッジ検出手段と、前記水平方向
エッジ検出手段と垂直方向エッジ検出手段からの出力に
基づき、前記所定画素における水平または垂直方向のエ
ッジ成分を判定する判定手段を備えることを特徴とする
請求項1記載の撮像装置。
2. A horizontal edge detecting means for calculating an absolute value of a difference between left and right adjacent pixels at a predetermined pixel position of the first color signal and detecting a horizontal edge component, A vertical edge detecting means for calculating an absolute value of a difference between upper and lower pixels at a predetermined pixel position of the first color signal to detect a vertical edge component; and the horizontal edge detecting means and the vertical edge detecting means. 2. The imaging apparatus according to claim 1, further comprising: a determination unit configured to determine a horizontal or vertical edge component of the predetermined pixel based on the output of the imaging device.
【請求項3】 前記エッジ判定手段における判定手段
が、上記水平方向エッジ検出手段からの出力または上記
垂直方向エッジ検出手段からの出力が予め定めた値より
大きい場合は、上記所定画素の周辺画素にエッジ成分を
検出したとし、さらに、水平方向エッジ検出手段からの
出力が上記垂直方向エッジ検出手段の出力より大きい場
合は垂直方向により相関があり、水平方向エッジ検出手
段からの出力が上記垂直方向エッジ検出手段の出力より
小さい場合は水平方向により相関があると判定するとと
もに、上記水平方向エッジ検出手段および垂直方向エッ
ジ検出手段からの出力がともに予め定めた値より小さい
場合にはエッジ成分を検出しないと判定することを特徴
とする請求項1または請求項2記載の撮像装置。
3. When the output from the horizontal edge detecting means or the output from the vertical edge detecting means is larger than a predetermined value, the determining means in the edge determining means determines whether or not the pixel is a peripheral pixel of the predetermined pixel. If an edge component is detected and the output from the horizontal edge detecting means is larger than the output of the vertical edge detecting means, there is a vertical correlation, and the output from the horizontal edge detecting means is the vertical edge. When the output is smaller than the output of the detecting means, it is determined that there is a correlation in the horizontal direction. When both the outputs from the horizontal edge detecting means and the vertical edge detecting means are smaller than a predetermined value, no edge component is detected. The imaging apparatus according to claim 1, wherein the imaging apparatus is determined to be:
【請求項4】 前記第1の算出手段が、第2の色信号B
のある所定画素l行m列B(l、m)の位置において、
第1の色信号A、第2の色信号Bのそれぞれに対し水平
方向のローパスフィルタを介した値Ahlpf(l、
m)、Bhlpf(l、m)を算出し、前記水平方向ロ
ーパスフィルタからの出力信号であるAhlpf(l、
m)とBhlpf(l、m)との比と上記画素位置の画
素値B(l、m)により、l行m列の第1の色信号Aに
おける画素値A(l、m)を、A(l、m)=B(l、
m)×{Ahlpf(l、m)/Bhlpf(l、
m)}により算出し、第3の色信号Cのある他の画素位
置においても同様に第1の色信号Aにおける画素値を算
出する水平方向信号算出手段と、上記所定画素l行m列
B(l、m)の位置において、第1の色信号A、第2の
色信号Bのそれぞれに対し垂直方向のローパスフィルタ
を介した値Avlpf(l、m)、Bvlpf(l、
m)を算出し、前記垂直方向ローパスフィルタからの出
力信号であるAvlpf(l、m)とBvlpf(l、
m)との比と上記画素位置の画素値B(l、m)によ
り、l行m列の第1の色信号Aにおける画素値A(l、
m)を、A(l、m)=B(l、m)×{Avlpf
(l、m)/Bvlpf(l、m)}により算出し、第
3の色信号Cのある他の画素位置においても同様に第1
の色信号Aにおける画素値を算出する垂直方向信号算出
手段と、第1の色信号Aにおける上記所定画素l行m列
の位置での上下左右の隣接画素の平均値よりl行m列の
第1の色信号Aにおける画素値A(l、m)を算出する
平均値算出手段とを備え、上記エッジ判定手段の出力に
基づき、上記水平方向信号算出手段の出力または垂直方
向信号算出手段出力、または、平均値算出手段からの出
力より選択し、上記所定画素l行m列における第1の色
信号Aの画素値A(l、m)を得て、撮像素子における
画素数の第1の色信号を得ることを特徴とする請求項1
記載の撮像装置。
4. The method according to claim 1, wherein the first calculating means calculates a second color signal B
At a given pixel l row m column B (l, m)
The value Ahlpf (l, 1) of each of the first color signal A and the second color signal B via a horizontal low-pass filter
m) and Bhlpf (l, m) are calculated, and Ahlpf (l, m) which is an output signal from the horizontal low-pass filter is calculated.
m) and Bhlpf (l, m) and the pixel value B (l, m) at the pixel position, the pixel value A (l, m) of the first color signal A in l rows and m columns is represented by A (L, m) = B (l,
m) × {Ahlpf (l, m) / Bhlpf (l,
m), the horizontal direction signal calculating means for calculating the pixel value of the first color signal A at another pixel position of the third color signal C in the same manner, and the predetermined pixel l row m column B At the position (l, m), the values Avlpf (l, m) and Bvlpf (l, l) of the first color signal A and the second color signal B are respectively passed through the low-pass filter in the vertical direction.
m), and output signals from the vertical low-pass filter, Avlpf (l, m) and Bvlpf (l,
m) and the pixel value B (l, m) at the pixel position, the pixel value A (l, l) in the first color signal A in l rows and m columns
m) is given by A (l, m) = B (l, m) × {Avlpf
(L, m) / Bvlpf (l, m)}, and the first pixel is similarly set at another pixel position where the third color signal C exists.
A vertical direction signal calculating means for calculating a pixel value in the color signal A of the first color signal A; Average value calculating means for calculating a pixel value A (l, m) in one color signal A, and based on the output of the edge determining means, the output of the horizontal signal calculating means or the output of the vertical signal calculating means, Alternatively, the pixel value A (l, m) of the first color signal A in the predetermined pixel l row m column is selected from the output from the average value calculating means, and the first color of the number of pixels in the image sensor is obtained. 2. A signal is obtained.
An imaging device according to any one of the preceding claims.
【請求項5】 前記第1の算出手段が、上記エッジ判定
手段の出力が所定画素l行m列の位置においてエッジ成
分を検出しないと判定した場合は上記平均値算出手段の
出力を選択し、垂直方向に相関があると判定した場合は
上記垂直方向信号算出手段の出力を選択し、水平方向に
相関があると判定した場合は上記水平方向信号算出手段
の出力を選択し、撮像素子における画素数の第1の色信
号を得ることを特徴とする請求項1〜請求項4のいずれ
かに記載の撮像装置。
5. When the first calculating means determines that the output of the edge determining means does not detect an edge component at a position of a predetermined pixel at l rows and m columns, the output of the average value calculating means is selected. If it is determined that there is a correlation in the vertical direction, the output of the vertical signal calculation means is selected.If it is determined that there is a correlation in the horizontal direction, the output of the horizontal signal calculation means is selected. The imaging device according to claim 1, wherein a number of first color signals are obtained.
【請求項6】 上記第2の算出手段が、所定画素l行m
列の位置において、上記第1の算出手段からの出力Aに
対して水平方向のローパスフィルタを介した値A1hl
pf(l、m)と垂直方向ローパスフィルタを介した値
A1vlpf(l、m)を算出し、第2の色信号Bに対
し水平方向のローパスフィルタを介した値B1hlpf
(l、m)と第3の色信号Cに対し垂直方向のローパス
フィルタを介した値C1vlpf(l、m)(または、
第2の色信号Bに対し垂直方向のローパスフィルタを介
した値B1vlpf(l、m)と第3の色信号Cに対し
て水平方向のローパスフィルタを介した値C1hlpf
(l、m))とを算出し、A1hlpf(l、m)とB
1hlpf(l、m)との比(またはC1hlpf
(l、m)との比)と、A1vlpf(l、m)とC1
vlpf(l、m)との比(または、B1vlpf
(l、m)との比)と、上記第1の算出手段からの出力
Aにおける所定画素l行m列での画素値A(l、m)か
ら、l行m列の第2の色信号Bと第3の色信号Cにおけ
る画素値B(l、m)とC(l、m)を、B(l、m)
=A(l、m)×{B1hlpf (l、m)/A1h
lpf(l、m)}、C(l、m)=A(l、m)×
{C1vlpf(l、m)/A1vlpf(l、
m)}、(または、B(l、m)=A(l、m)×{B
1vlpf(l、m)/A1vlpf(l、m)}、C
(l、m)=A(l、m)×{C1hlpf(l、m)
/A1hlpf(l、m)})により算出する信号算出
手段を備えるとともに、上記l行m列の位置とは異なる
所定画素x行y列の位置において、上記第1の算出手段
からの出力Aに対して水平方向のローパスフィルタを介
した値A2hlpf(x、y)、前記信号算出手段から
の出力での第2の色信号Bに対し水平方向のローパスフ
ィルタを介した値B2hlpf(x、y)を算出し、A
2hlpf(x、y)とB2hlpf(x、y)の比と
上記第1の算出手段からの出力Aでの画素x行y列での
画素値A(x、y)により、x行y列の位置における第
2の色信号B(x、y)を、B(x、y)=A(x、
y)×{B2hlpf(x、y)/A2hlpf(x、
y)}により算出し、第3の色信号Cにおいても同様に
C信号を算出する水平方向信号算出手段と、上記第1の
算出手段からの出力Aに対し垂直方向のローパスフィル
タを介した値A2vlpf(x、y)、前記信号算出手
段からの出力での第2の色信号Bに対し垂直方向のロー
パスフィルタを介した値B2vlpf(x、y)を算出
し、A2vlpf(x、y)とB2vlpf(x、y)
の比と上記第1の算出手段からの出力Aでの画素x行y
列での画素値A(x、y)により、x行y列の位置にお
ける第2の色信号B(x、y)を、B(x、y)=A
(x、y)×{B2vlpf(x、y)/A2vlpf
(x、y)}により算出し、第3の色信号Cにおいても
同様にC信号を算出する垂直方向信号算出手段と、上記
信号算出手段からの出力における第2、第3の色信号で
の所定画素x行y列の位置において、斜めに隣接する画
素の平均値を算出する平均値算出手段とを備え、上記エ
ッジ判定手段の出力に基づき、前記水平方向信号算出手
段、垂直方向信号算出手段、平均値算出手段からのそれ
ぞれの出力から選択して、上記所定画素x行y列での第
2、第3の色信号を得て、撮像素子における画素数の第
2、第3の色信号を得ることを特徴とする請求項1、請
求項4および請求項5のいずれかに記載の撮像装置。
6. The method according to claim 1, wherein the second calculating means calculates a predetermined pixel of l rows m
At the position of the column, the value A1hl through the horizontal low-pass filter is applied to the output A from the first calculating means.
pf (l, m) and a value A1vlpf (l, m) through a vertical low-pass filter are calculated, and a value B1hlpf through a horizontal low-pass filter is calculated for the second color signal B.
The value C1vlpf (l, m) (or, through a low-pass filter in the vertical direction) for (l, m) and the third color signal C (or
A value B1vlpf (l, m) through a low-pass filter in the vertical direction for the second color signal B and a value C1hlpf through a low-pass filter in the horizontal direction for the third color signal C
(L, m)) and A1hlpf (l, m) and B1
1hlpf (l, m) (or C1hlpf
(L, m)), A1vlpf (l, m) and C1
vlpf (l, m) (or B1vlpf)
(Ratio to (l, m)) and the pixel value A (l, m) at l rows and m columns of the predetermined pixel in the output A from the first calculating means, the 1st row and m columns of the second color signal The pixel values B (l, m) and C (l, m) of B and the third color signal C are represented by B (l, m)
= A (l, m) × {B1hlpf (l, m) / A1h
lpf (l, m)}, C (l, m) = A (l, m) ×
{C1vlpf (l, m) / A1vlpf (l,
m)}, (or B (l, m) = A (l, m) × {B
1vlpf (l, m) / A1vlpf (l, m)}, C
(L, m) = A (l, m) × {C1hlpf (l, m)
/ A1hlpf (l, m)}), and the output A from the first calculating means at a position of a predetermined pixel x row and y column different from the position of l row and m column. On the other hand, a value A2hlpf (x, y) through a horizontal low-pass filter, and a value B2hlpf (x, y) through a horizontal low-pass filter with respect to the second color signal B at the output from the signal calculating means. , And A
Based on the ratio of 2hlpf (x, y) to B2hlpf (x, y) and the pixel value A (x, y) at the pixel x row y column at the output A from the first calculating means, x row y column The second color signal B (x, y) at the position is expressed as B (x, y) = A (x,
y) × {B2hlpf (x, y) / A2hlpf (x,
y) A horizontal signal calculating means for calculating the third color signal C in the same manner as for the third color signal C, and a value obtained through a vertical low-pass filter for the output A from the first calculating means. A2vlpf (x, y) calculates a value B2vlpf (x, y) through a low-pass filter in the vertical direction with respect to the second color signal B at the output from the signal calculation means. B2vlpf (x, y)
Of the pixel x row y at the output A from the first calculating means.
The second color signal B (x, y) at the position of x row and y column is obtained by B (x, y) = A by the pixel value A (x, y) in the column.
(X, y) × {B2vlpf (x, y) / A2vlpf
(X, y)}, the vertical color signal calculating means for calculating the C signal in the same manner also for the third color signal C, and the second and third color signals in the output from the signal calculating means. Average value calculating means for calculating an average value of obliquely adjacent pixels at a position of a predetermined pixel x row and y column, and the horizontal signal calculating means and the vertical signal calculating means based on an output of the edge determining means. , The second and third color signals at the predetermined pixel x row and y column are selected from the respective outputs from the average value calculation means, and the second and third color signals of the number of pixels in the image sensor are obtained. The imaging device according to claim 1, wherein the imaging device is obtained.
【請求項7】 前記第2の算出手段が、上記エッジ判定
手段の出力が所定画素x行y列の位置においてエッジ成
分を検出しないと判定した場合は上記平均値算出手段の
出力を選択し、垂直方向に相関があると判定した場合は
上記垂直方向信号算出手段の出力を選択し、水平方向に
相関があると判定した場合は上記水平方向信号算出手段
の出力を選択し、撮像素子における画素数の第2、第3
の色信号を得ることを特徴とする請求項1〜請求項6の
いずれかに記載の撮像装置。
7. When the second calculating means determines that the output of the edge determining means does not detect an edge component at the position of a predetermined pixel x row and y column, the output of the average value calculating means is selected. If it is determined that there is a correlation in the vertical direction, the output of the vertical signal calculation means is selected.If it is determined that there is a correlation in the horizontal direction, the output of the horizontal signal calculation means is selected. Second and third of numbers
The imaging device according to claim 1, wherein the color signal is obtained as follows.
JP01708398A 1998-01-29 1998-01-29 Imaging device Expired - Lifetime JP3926019B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01708398A JP3926019B2 (en) 1998-01-29 1998-01-29 Imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01708398A JP3926019B2 (en) 1998-01-29 1998-01-29 Imaging device

Publications (2)

Publication Number Publication Date
JPH11215513A true JPH11215513A (en) 1999-08-06
JP3926019B2 JP3926019B2 (en) 2007-06-06

Family

ID=11934096

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01708398A Expired - Lifetime JP3926019B2 (en) 1998-01-29 1998-01-29 Imaging device

Country Status (1)

Country Link
JP (1) JP3926019B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6853748B2 (en) 2000-05-12 2005-02-08 Canon Kabushiki Kaisha Signal processing apparatus and method for reducing generation of false color by adaptive luminance interpolation
JP2006166258A (en) * 2004-12-09 2006-06-22 Matsushita Electric Ind Co Ltd Color imaging device and color image signal compensation method
US7362894B2 (en) 2003-01-14 2008-04-22 Sony Corporation Image processing apparatus and method, recording medium, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6853748B2 (en) 2000-05-12 2005-02-08 Canon Kabushiki Kaisha Signal processing apparatus and method for reducing generation of false color by adaptive luminance interpolation
US7362894B2 (en) 2003-01-14 2008-04-22 Sony Corporation Image processing apparatus and method, recording medium, and program
JP2006166258A (en) * 2004-12-09 2006-06-22 Matsushita Electric Ind Co Ltd Color imaging device and color image signal compensation method

Also Published As

Publication number Publication date
JP3926019B2 (en) 2007-06-06

Similar Documents

Publication Publication Date Title
US7835573B2 (en) Method and apparatus for edge adaptive color interpolation
KR100657772B1 (en) Image processing apparatus, image processing method and camera
US7792356B2 (en) Imaging device
JP2931520B2 (en) Color separation circuit for single-chip color video camera
KR0146260B1 (en) Solid state image pick-up apparatus
US7760255B2 (en) Method and apparatus for interpolation of interlaced CMYG color format
WO1999004555A2 (en) Color sample interpolation
EP1187491B1 (en) Horizontal contour signal generation circuit in a color camera
US20060188154A1 (en) Digital video signal processing apparatus and method for compensating a chrominance signal
TWI338511B (en)
JP3458080B2 (en) Color imaging device
US20140293088A1 (en) Image processing apparatus and method, and program
JPH11215513A (en) Image-pickup device
JPH11234690A (en) Image pickup device
KR100776385B1 (en) Color interpolation apparatus for edge enhancement and noise removal
JPH11220751A (en) Image-pickup device
JPH0823541A (en) Color image pickup device
JPH11177996A (en) Image processing device and method and camera
JP2004032662A (en) Image signal processor
JP2001186534A (en) Solid-state image pickup device
JPH077736A (en) Solid-state image pickup device
JPH11177997A (en) Correlation value calculation circuit and method
JPH04304089A (en) Signal interpolation device
JP3406674B2 (en) Two-chip imaging device
JP2000308073A (en) Image pickup element, picture signal processor, and camera device

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040625

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060110

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060306

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060620

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060809

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061107

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061225

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: 20070227

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070227

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100309

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120309

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130309

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130309

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140309

Year of fee payment: 7

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