JP2000350223A - Pixel data processor and pixel data processing method - Google Patents

Pixel data processor and pixel data processing method

Info

Publication number
JP2000350223A
JP2000350223A JP11159107A JP15910799A JP2000350223A JP 2000350223 A JP2000350223 A JP 2000350223A JP 11159107 A JP11159107 A JP 11159107A JP 15910799 A JP15910799 A JP 15910799A JP 2000350223 A JP2000350223 A JP 2000350223A
Authority
JP
Japan
Prior art keywords
data
interpolation
pixel
symmetry
unit
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
JP11159107A
Other languages
Japanese (ja)
Other versions
JP4371469B2 (en
Inventor
Chikako Nakanishi
知嘉子 中西
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 JP15910799A priority Critical patent/JP4371469B2/en
Publication of JP2000350223A publication Critical patent/JP2000350223A/en
Application granted granted Critical
Publication of JP4371469B2 publication Critical patent/JP4371469B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Color Television Image Signal Generators (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a pixel data processor and a pixel data processing method which can reproduce an image high in quality. SOLUTION: An image interpolation part 100 includes a feature extraction part 1, a system selection part 2, a 1st system part 3, a 2nd system part 4 and a selector 5. The feature extraction part 1 extracts features of input data of a Bayer array. A system selection part 2 outputs a select signal for selecting the 1st system part 3 or 2nd system part 4 according to the extracted features. When the image data of the Bayer array are symmetrical, the interpolating process of the 2nd system 4 is selected. In other cases, the interpolating processing of the 1st system part 3 is selected. The selector 5 outputs interpolation data outputted from the 1st system 3 or 2nd system 4. Consequently, the optimum interpolating processing can be selected according to the features of the image data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画素データ処理装
置および画素データ処理に関し、より特定的には、入力
された画素の色データから高品質な画像を再現するため
の画素データ処理装置および画素データ処理方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pixel data processing apparatus and a pixel data processing, and more particularly, to a pixel data processing apparatus and a pixel data reproducing apparatus for reproducing a high-quality image from input pixel color data. It relates to a data processing method.

【0002】[0002]

【従来の技術】デジタルスチルカメラの普及により、デ
ジタル処理に適した撮像素子の開発が進められている。
こうした撮像素子のなかでもベイヤー型原色方式のCC
Dイメージセンサは、色信号の感度、色再現性が良く多
くのデジタル機器に使用されている。
2. Description of the Related Art With the spread of digital still cameras, imaging devices suitable for digital processing have been developed.
Among these image sensors, Bayer-type primary color CC
D image sensors have good color signal sensitivity and color reproducibility and are used in many digital devices.

【0003】[0003]

【発明が解決しようとする課題】ところで、ベイヤー型
原色方式のCCDは、赤色(R)、青色(B)、緑色
(G)のフィルタが交互に配列されていて、たとえば、
赤色のフィルタが配置されている画素については、青デ
ータや緑データが得られない。したがって、ベイヤ型原
色方式のCCDを使用した場合、欠落したデータを補間
する必要が生じる。このため、従来のデジタルスチルカ
メラをはじめとするデジタル機器は、補間対象色と同一
色の画素だけを用いて欠落している色データを生成する
補間処理回路を備え、画像の再現を行なっている。
The Bayer type primary color CCD has red (R), blue (B) and green (G) filters alternately arranged.
Blue data and green data cannot be obtained for a pixel in which a red filter is arranged. Therefore, when a Bayer-type primary color CCD is used, it is necessary to interpolate missing data. For this reason, digital devices such as a conventional digital still camera are provided with an interpolation processing circuit that generates missing color data using only pixels of the same color as the interpolation target color, and reproduces an image. .

【0004】しかしながら、このような単純な補間処理
回路のみでは、高品質な画像を再現することは困難であ
る。その一方で、デジタルスチルカメラのような民生用
途では、高解像度化とともに高速処理、さらにはマイク
ロプロセッサでの実現(小型化)が必須となる。
[0004] However, it is difficult to reproduce a high-quality image only with such a simple interpolation processing circuit. On the other hand, in consumer applications such as digital still cameras, high resolution and high-speed processing, and furthermore, realization with a microprocessor (small size) are essential.

【0005】そこで、本発明はこのような問題を解決す
るためになされたものであり、その目的は、小規模の回
路で高速に高解像度の画素データを得ることができる画
素データ処理装置および当該画素データ処理装置のため
の画素データ処理方法を提供することにある。
Accordingly, the present invention has been made to solve such a problem, and an object of the present invention is to provide a pixel data processing apparatus and a pixel data processing apparatus which can obtain high-resolution pixel data at high speed with a small-scale circuit. An object of the present invention is to provide a pixel data processing method for a pixel data processing device.

【0006】[0006]

【課題を解決するための手段】請求項1に係る画素デー
タ処理装置は、複数の画素に対して配置される複数の色
フィルタから出力される複数の色データを処理する画素
データ処理装置であって、複数の色データの特徴を抽出
する特徴抽出部と、補間対象画素に色データを補間する
ための互いに異なる処理を並列して行なう補間部と、特
徴抽出部において抽出された特徴に基づき、補間部の出
力する複数の補間処理結果のうちいずれか一つを選択的
に出力するセレクタとを備え、補間部は、補間対象画素
の周辺領域における画素の色データの変化量に基づき色
データを補間する第1補間処理回路と、補間対象画素の
周辺領域における、補間する色データと同種類の色デー
タと補間対象画素と同種類の画素の色データとの比に基
づき、色データを補間する第2補間処理回路とを含む。
According to a first aspect of the present invention, there is provided a pixel data processing apparatus for processing a plurality of color data output from a plurality of color filters arranged for a plurality of pixels. A feature extraction unit that extracts features of a plurality of color data, an interpolation unit that performs mutually different processes for interpolating the color data to the interpolation target pixel in parallel, and a feature extracted by the feature extraction unit. A selector for selectively outputting any one of a plurality of interpolation processing results output by the interpolation unit, wherein the interpolation unit converts the color data based on a change amount of the color data of the pixel in a peripheral area of the interpolation target pixel. A first interpolation processing circuit that performs interpolation, and color data based on a ratio of color data of the same type as the color data to be interpolated and color data of a pixel of the same type as the interpolation target pixel in a peripheral area of the interpolation target pixel. And a second interpolation circuit for between.

【0007】請求項2に係る画素データ処理装置は、請
求項1に係る画素データ処理装置であって、特徴抽出部
は、補間対象画素の周辺領域における画素の色データ
が、補間対象画素に対して対称性があるか否かを検出
し、セレクタは、対称性がある場合には、第2補間処理
回路の出力を選択的に出力する。
According to a second aspect of the present invention, there is provided the pixel data processing apparatus according to the first aspect, wherein the feature extracting unit determines that the color data of the pixel in the peripheral area of the pixel to be interpolated is The selector detects whether or not there is symmetry. If there is symmetry, the selector selectively outputs the output of the second interpolation processing circuit.

【0008】請求項3に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、複数の画素
は、垂直方向および水平方向にマトリックス状に配置さ
れ、特徴抽出部は、垂直方向の対称性を検出する第1評
価部と、水平方向の対称性を検出する第2評価部とを含
み、第1評価部および第2評価部の結果を統合して、第
1補間処理回路または第2補間処理回路のいずれか一方
を選択するための選択信号を出力する方式選択部をさら
に備え、セレクタは、選択信号に応じて、第1補間処理
回路または第2補間処理回路のいずれか一方の出力を選
択的に出力する。
A pixel data processing apparatus according to a third aspect is the pixel data processing apparatus according to the second aspect, wherein the plurality of pixels are arranged in a matrix in the vertical direction and the horizontal direction, and A first evaluation unit for detecting symmetry in the direction and a second evaluation unit for detecting symmetry in the horizontal direction, integrating the results of the first and second evaluation units to form a first interpolation processing circuit Alternatively, the method further includes a method selection unit that outputs a selection signal for selecting one of the second interpolation processing circuits, wherein the selector is configured to output one of the first interpolation processing circuit and the second interpolation processing circuit in accordance with the selection signal. One output is selectively output.

【0009】請求項4に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、複数の画素
は、垂直方向および水平方向にマトリックス状に配置さ
れ、特徴抽出部は、垂直方向の前記対称性を検出する第
1評価部と、水平方向の前記対称性を検出する第2評価
部と、斜め方向の前記対称性を検出する第3評価部とを
含み、第1評価部、第2評価部および第3評価部の結果
を統合して、第1補間処理回路または第2補間処理回路
のいずれか一方を選択するための選択信号を出力する方
式選択部をさらに備え、セレクタは、選択信号に応じ
て、第1補間処理回路または第2補間処理回路のいずれ
か一方の出力を選択的に出力する。
A pixel data processing apparatus according to a fourth aspect is the pixel data processing apparatus according to the second aspect, wherein the plurality of pixels are arranged in a matrix in the vertical and horizontal directions, and A first evaluation unit that detects the symmetry in the direction, a second evaluation unit that detects the symmetry in the horizontal direction, and a third evaluation unit that detects the symmetry in the oblique direction; And a method selection unit that integrates the results of the second evaluation unit and the third evaluation unit and outputs a selection signal for selecting one of the first interpolation processing circuit and the second interpolation processing circuit, Selectively outputs the output of one of the first interpolation processing circuit and the second interpolation processing circuit in accordance with the selection signal.

【0010】請求項5に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、複数の色フ
ィルタは、ベイヤー配列に従って配置され、記複数の色
データのそれぞれは、赤データ、青データ、緑データの
いずれかであって、特徴抽出部は、緑データの対称性を
検出する。
A pixel data processing device according to a fifth aspect is the pixel data processing device according to the second aspect, wherein the plurality of color filters are arranged according to a Bayer array, and each of the plurality of color data is a red data. , Blue data, or green data, and the feature extraction unit detects the symmetry of the green data.

【0011】請求項6に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、特徴抽出部
は、補間対象画素の色データと同種類の色データの対称
性を検出する。
A pixel data processing apparatus according to a sixth aspect is the pixel data processing apparatus according to the second aspect, wherein the feature extraction unit detects the symmetry of the same kind of color data as the color data of the pixel to be interpolated. .

【0012】請求項7に係る画素データ処理方法は、複
数の画素のそれぞれに対して複数の種類の色フィルタか
ら出力される複数の色データを処理して画像を再現する
画素データ処理方法であって、補間対象画素に色データ
を補間するための互いに異なる複数の補間処理を並列し
て行なう補間ステップと、補間ステップに同期して、複
数の色データの特徴を抽出する特徴抽出ステップと、抽
出された特徴に応じて、複数の補間処理の結果のうちい
ずれか一つを選択的に出力する選択ステップとを備え、
複数の補間処理は、補間対処画素の周辺領域における画
素の色データの変化量に基づき色データを補間する第1
補間処理と、補間対象画素の周辺領域における、補間す
る色データと同種類の色データと補間対象画素と同種類
の画素の色データとの比に基づき色データを補間する第
2補間処理とを含む。
A pixel data processing method according to claim 7 is a pixel data processing method for processing a plurality of color data output from a plurality of types of color filters for each of a plurality of pixels to reproduce an image. An interpolation step of performing a plurality of different interpolation processes for interpolating color data on the interpolation target pixel in parallel; a feature extraction step of extracting a plurality of color data features in synchronization with the interpolation step; A selecting step of selectively outputting any one of the results of the plurality of interpolation processes according to the feature that has been performed,
The plurality of interpolation processes include first interpolation for interpolating color data based on a change amount of color data of a pixel in a peripheral area of the pixel to be interpolated.
An interpolation process and a second interpolation process of interpolating color data based on a ratio of color data of the same type as the color data to be interpolated and color data of the same type of pixel as the interpolation target pixel in a peripheral area of the interpolation target pixel. Including.

【0013】請求項8に係る画素データ処理方法は、請
求項7に係る画素データ処理方法であって、特徴抽出ス
テップは、補間対象画素の周辺領域に位置する画素の色
データが、補間対象画素に対して対称性があるか否かを
検出し、選択ステップは、対称性がある場合には、第2
補間処理の結果を選択的に出力する。
According to an eighth aspect of the present invention, there is provided the pixel data processing method according to the seventh aspect, wherein the feature extracting step comprises the steps of: To determine whether or not there is symmetry with respect to
The result of the interpolation process is selectively output.

【0014】請求項9に係る画素データ処理方法は、請
求項8に係る画素データ処理方法であって、複数の画素
は、垂直方向および水平方向にマトリックス状に配置さ
れ、特徴抽出ステップは、垂直方向の前記対称性、およ
び水平方向の対称性を検出する評価ステップと、評価ス
テップの結果を統合して、第1補間処理または第2補間
処理のいずれか一方を選択するための選択信号を出力す
る方式選択ステップとを含み、選択ステップは、選択信
号に応じて、第1補間処理または第2補間処理のいずれ
か一方の出力を選択的に出力する。
A pixel data processing method according to a ninth aspect is the pixel data processing method according to the eighth aspect, wherein the plurality of pixels are arranged in a matrix in the vertical and horizontal directions, and the feature extracting step includes An evaluation step of detecting the symmetry in the direction and the symmetry in the horizontal direction, and integrating a result of the evaluation step to output a selection signal for selecting one of a first interpolation process and a second interpolation process And selecting one of the first interpolation processing and the second interpolation processing according to the selection signal.

【0015】請求項10に係る画素データ処理方法は、
請求項8に係る画素データ処理方法であって、複数の画
素は、垂直方向および水平方向にマトリックス状に配置
され、特徴抽出部は、垂直方向、水平方向および斜め方
向の対称性を検出する評価ステップと、評価ステップの
結果を統合して、第1補間処理または第2補間処理のい
ずれか一方を選択するための選択信号を出力する方式選
択ステップとを含み、選択ステップは、選択信号に応じ
て、第1補間処理または第2補間処理のいずれか一方の
出力を選択的に出力する。
According to a tenth aspect of the present invention, there is provided a pixel data processing method comprising:
9. The pixel data processing method according to claim 8, wherein the plurality of pixels are arranged in a matrix in a vertical direction and a horizontal direction, and the feature extraction unit detects symmetry in the vertical, horizontal, and oblique directions. And a method selection step of integrating a result of the evaluation step and outputting a selection signal for selecting either the first interpolation processing or the second interpolation processing, wherein the selection step is performed according to the selection signal. Thus, either one of the first interpolation processing and the second interpolation processing is selectively output.

【0016】請求項11に係る画素データ処理方法は、
請求項8に係る画素データ処理方法であって、複数の色
フィルタは、ベイヤー配列に従って配置され、複数の色
データのそれぞれは、赤データ、青データ、緑データの
いずれかであって、特徴抽出ステップは、緑データの対
称性を検出する。
A pixel data processing method according to claim 11 is
9. The pixel data processing method according to claim 8, wherein the plurality of color filters are arranged according to a Bayer array, and each of the plurality of color data is any one of red data, blue data, and green data, and the feature extraction is performed. The step detects the symmetry of the green data.

【0017】請求項12に係る画素データ処理方法は、
請求項8に係る画素データ処理方法であって、特徴抽出
ステップは、補間対象画素の色データと同種類の色デー
タの対称性を検出する。
According to a twelfth aspect of the present invention, there is provided a pixel data processing method comprising:
9. The pixel data processing method according to claim 8, wherein the feature extracting step detects a symmetry of the same type of color data as the color data of the interpolation target pixel.

【0018】[0018]

【発明の実施の形態】[実施の形態1]本発明の実施の
形態1における画素データ処理装置について説明する。
本発明の実施の形態1における画素データ処理装置は、
入力した色データの特徴に基づき、特定の色データが与
えられている各々の画素に他の色データを補間するため
の処理を行なう。
[First Embodiment] A pixel data processing apparatus according to a first embodiment of the present invention will be described.
The pixel data processing device according to the first embodiment of the present invention
Based on the characteristics of the input color data, a process for interpolating other color data to each pixel to which specific color data is given is performed.

【0019】本発明の実施の形態1における画素データ
処理装置が適用されるデジタルスチルカメラについて図
1を用いて説明する。なお、以下において、同一構成要
素には同じ記号および符号を付しその説明を省略する。
A digital still camera to which the pixel data processing device according to the first embodiment of the present invention is applied will be described with reference to FIG. In the following, the same components are denoted by the same reference numerals and symbols, and description thereof will be omitted.

【0020】図1は、本発明の実施の形態1における画
素データ処理装置が適用されるデジタルスチルカメラ1
000の構成の概要を示すブロック図である。図1を参
照して、デジタルスチルカメラ1000は、光学系10
2、CCD104、周辺回路106、データ処理部11
2、メモリ114、カメラ制御部116および入出力イ
ンタフェース回路118を備える。
FIG. 1 shows a digital still camera 1 to which the pixel data processing device according to the first embodiment of the present invention is applied.
000 is a block diagram showing the outline of the configuration of FIG. Referring to FIG. 1, a digital still camera 1000 includes an optical system 10.
2. CCD 104, peripheral circuit 106, data processing unit 11
2, a memory 114, a camera control unit 116, and an input / output interface circuit 118.

【0021】光学系102は、内部に撮像レンズを含
む。カメラ制御部116は光学系の撮影動作やデータ処
理動作を制御する。光学系102で取得された光信号は
CCD104により電気信号に変換される。CCD10
4は、ベイヤー型原色フィルタで構成される。周辺回路
106は、CCD104の出力をデジタルデータに変換
し、データ処理部112に出力する。
The optical system 102 includes an image pickup lens inside. The camera control unit 116 controls a photographing operation and a data processing operation of the optical system. The optical signal obtained by the optical system 102 is converted into an electric signal by the CCD 104. CCD10
Reference numeral 4 denotes a Bayer type primary color filter. The peripheral circuit 106 converts the output of the CCD 104 into digital data and outputs the digital data to the data processing unit 112.

【0022】データ処理部112は、画像処理部108
と圧縮伸張部110とを含む。画像処理部108は、欠
落した色データを生成する(補間データを生成する)画
像補間部を含む。圧縮伸張部110は、画像データを圧
縮し、または圧縮された画像データを伸張するための伸
張処理を行なう。画像メモリ114は、画像データを記
憶する。入出力インタフェース回路118は、撮影条件
等を外部から受けたり、また所定の処理を施した画像デ
ータを図示しないメモリカードの形で取出すための制御
を行なう。
The data processing unit 112 includes an image processing unit 108
And a compression / expansion unit 110. The image processing unit 108 includes an image interpolation unit that generates missing color data (generates interpolation data). The compression / expansion unit 110 performs expansion processing for compressing image data or expanding the compressed image data. The image memory 114 stores image data. The input / output interface circuit 118 performs control for receiving photographing conditions and the like from the outside and extracting image data subjected to predetermined processing in the form of a memory card (not shown).

【0023】次に、画像処理部108に含まれる画像補
間部100について説明する。図2は、本発明の実施の
形態1における画像補間部100の構成の概要を説明す
るための図である。図2を参照して、画像補間部100
は、特徴抽出部1、方式選択部2、第1方式部3、第2
方式部4およびセレクタ5を含む。
Next, the image interpolation unit 100 included in the image processing unit 108 will be described. FIG. 2 is a diagram for describing an outline of a configuration of the image interpolation unit 100 according to Embodiment 1 of the present invention. Referring to FIG. 2, image interpolation unit 100
Are the feature extracting unit 1, the method selecting unit 2, the first method unit 3, the second
It includes a method unit 4 and a selector 5.

【0024】特徴抽出部1は、入力した画像データの特
徴を抽出する。方式選択部2は、特徴抽出部1における
抽出結果に基づき、第1方式部3または第2方式部4の
いずれかの補間処理を選択するための選択信号を出力す
る。第1方式部3および第2方式部4のそれぞれは、互
いに異なる補間処理を実行して補間データを生成する。
セレクタ5は、方式選択部2の出力する選択信号に従
い、第1方式部3または第2方式部4のいずれか一方の
補間データを選択的に出力する。
The feature extracting unit 1 extracts features of the input image data. The method selecting unit 2 outputs a selection signal for selecting one of the first method unit 3 and the second method unit 4 based on the extraction result of the feature extracting unit 1. Each of the first method unit 3 and the second method unit 4 performs interpolation processing different from each other to generate interpolation data.
The selector 5 selectively outputs the interpolation data of one of the first method unit 3 and the second method unit 4 according to the selection signal output from the method selection unit 2.

【0025】図3は、CCD104に含まれるベイヤー
型原色フィルタの特徴について説明するための図であ
る。Rは赤色、Gは緑色、Bは青色に対応する色フィル
タであり、それぞれは1画素に対応している。垂直方向
・水平方向ともに1画素おきに同色のフィルタが配置さ
れている(ベイヤー配列)。CCD104により、各画
素毎に、3原色(R、G、B)のうちの特定の色情報が
得られる。(R、G、B)のうち、Rデータを有する画
素をR画素、Gデータを有する画素をG画素、Bデータ
を有する画素をB画素とそれぞれ称す。
FIG. 3 is a diagram for explaining the characteristics of the Bayer type primary color filter included in the CCD 104. R is a color filter corresponding to red, G is green, and B is a color filter corresponding to blue, each of which corresponds to one pixel. Filters of the same color are arranged every other pixel in both the vertical and horizontal directions (Bayer arrangement). The CCD 104 obtains specific color information of three primary colors (R, G, B) for each pixel. Of (R, G, B), a pixel having R data is called an R pixel, a pixel having G data is called a G pixel, and a pixel having B data is called a B pixel.

【0026】図2を参照して、画像補間部100は、各
画素毎に特定の色情報を有する画像データ(入力デー
タ)を受ける。図4は、入力パターンの一例を示す図で
ある。画像補間部100は、図4(a)に示す入力パタ
ーンP1または図4(b)に示す入力パターンP2を受
ける。入力パターンP1およびP2において記号RはR
画素、記号GはG画素、記号BはB画素にそれぞれ対応
している。なお、記号Rと記号Bとを互いに入れ替えた
場合も含まれる。
Referring to FIG. 2, image interpolating section 100 receives image data (input data) having specific color information for each pixel. FIG. 4 is a diagram illustrating an example of the input pattern. The image interpolation unit 100 receives the input pattern P1 shown in FIG. 4A or the input pattern P2 shown in FIG. In the input patterns P1 and P2, the symbol R is R
A pixel and a symbol G correspond to a G pixel, and a symbol B corresponds to a B pixel. Note that the case where the symbol R and the symbol B are interchanged with each other is also included.

【0027】実施の形態1においては、第1方式部3お
よび第2方式部4は、R画素、B画素にGデータを与え
る(補間データGを与える)ための処理を行なう。特徴
抽出部1は、補間対象となる画素を中心にGデータの対
称性の有無を検出する。なお、処理時間を短縮するた
め、2種類の補間回路(第1方式部3および第2方式部
4)と特徴抽出部1とを並列に動作させ、特徴抽出およ
び方式選択を行なっている間に補間処理が実行されるよ
うに構成する。
In the first embodiment, the first method section 3 and the second method section 4 perform processing for providing G data (providing interpolation data G) to the R and B pixels. The feature extraction unit 1 detects the presence or absence of symmetry of the G data around the pixel to be interpolated. In order to reduce the processing time, the two types of interpolation circuits (the first method unit 3 and the second method unit 4) and the feature extraction unit 1 are operated in parallel to perform the feature extraction and the method selection. It is configured so that interpolation processing is executed.

【0028】なお、R画素に対するBデータの補間、B
画素に対するRデータの補間、およびG画素に対するR
データ、Bデータの補間については後述する実施の形態
において説明する。
It should be noted that interpolation of B data for R pixels, B
Interpolation of R data for pixels and R for G pixels
Interpolation of data and B data will be described in an embodiment described later.

【0029】次に、本発明の実施の形態1における特徴
抽出部1について図5を用いて説明する。図5は、本発
明の実施の形態1における特徴抽出部1の構成の概要を
説明するための図である。図5を参照して、特徴抽出部
1は、画素を抽出するための画素抽出部6、入力パター
ンP1およびP2に対応する切替を行なうためのカウン
タ7および抽出した画素の評価を行なう評価部を含む。
評価部は、水平方向の対称性を評価するための第1評価
部8a、第2評価部8bおよび第3評価部8cと、垂直
方向の対称性を評価するための第4評価部8d、第5評
価部8eおよび第6評価部8fとで構成される。なお、
以下の例では、特徴を抽出する範囲を5×5画素の範囲
とする。
Next, the feature extracting unit 1 according to the first embodiment of the present invention will be described with reference to FIG. FIG. 5 is a diagram for describing an outline of a configuration of the feature extracting unit 1 according to the first embodiment of the present invention. Referring to FIG. 5, feature extracting section 1 includes a pixel extracting section 6 for extracting pixels, a counter 7 for performing switching corresponding to input patterns P1 and P2, and an evaluating section for evaluating the extracted pixels. Including.
The evaluation section includes a first evaluation section 8a, a second evaluation section 8b, and a third evaluation section 8c for evaluating horizontal symmetry, a fourth evaluation section 8d for evaluating vertical symmetry, and a fourth evaluation section 8d. It comprises a fifth evaluation unit 8e and a sixth evaluation unit 8f. In addition,
In the following example, the range from which the feature is extracted is a range of 5 × 5 pixels.

【0030】画素抽出部6は、入力パターンP1または
P2に対し、G画素を抽出する。なお、入力パターンP
1とP2とは交互に入力されるため、画素抽出部6は、
1ビットカウンタ(カウンタ7)の出力に基づき抽出す
る画素を変える。
The pixel extracting section 6 extracts G pixels from the input pattern P1 or P2. Note that the input pattern P
Since 1 and P2 are alternately input, the pixel extraction unit 6
The pixels to be extracted are changed based on the output of the 1-bit counter (counter 7).

【0031】入力データとして、入力パターンP1を受
けた場合について説明する。入力パターンP1に対して
は、画素抽出部6は、G画素、すなわち画素G11、G
13、G15、G31、G33、G35、G51、G5
3およびG55を抽出する。第1評価部8a〜第3評価
部8cは、水平方向に配列するデータの対称性の有無を
調べる。具体的には、第1評価部8aは(G11、G1
3、G15)について次式(1)が、第2評価部8bは
(G31、G33、G35)について次式(2)が、第
3評価部8cは(G51、G53、G55)について次
式(3)が成り立つか否かをそれぞれ調べる。
A case where an input pattern P1 is received as input data will be described. For the input pattern P1, the pixel extraction unit 6 outputs G pixels, that is, pixels G11, G
13, G15, G31, G33, G35, G51, G5
Extract 3 and G55. The first evaluation unit 8a to the third evaluation unit 8c check the presence or absence of symmetry of the data arranged in the horizontal direction. Specifically, the first evaluation unit 8a determines (G11, G1
(3, G15), the following expression (2) for the second evaluation unit 8b for (G31, G33, G35), and the following expression (2) for the third evaluation unit 8c (G51, G53, G55). Check whether 3) is satisfied.

【0032】 G11−G15<th1、(G11+G15)−G13>th2…(1) G31−G35<th1、(G31+G35)−G33>th2…(2) G51−G55<th1、(G51+G55)−G53>th2…(3) なお、th1、th2はしきい値であり、th1<th
2が成り立つ任意の数で実験的に定めるものとする。回
路の大きさを考えて、第2評価部8bのみを配置するよ
うにしてもよい。
G11-G15 <th1, (G11 + G15) -G13> th2 (1) G31-G35 <th1, (G31 + G35) -G33> th2 (2) G51-G55 <th1, (G51 + G55) -G53> th2 (3) where th1 and th2 are threshold values, and th1 <th
It is determined experimentally by an arbitrary number in which 2 holds. Considering the size of the circuit, only the second evaluation unit 8b may be arranged.

【0033】同様に、第4評価部8d〜第6評価部8f
は、垂直方向に配列するデータの対称性の有無を調べ
る。具体的には、第4評価部8dは(G11、G31、
G51)について次式(4)が、第5評価部8eは(G
13、G33、G53)について次式(5)が、第6評
価部8fは(G15、G35、G55)について次式
(6)がそれぞれ成り立つか否かを調べる。
Similarly, the fourth evaluation unit 8d to the sixth evaluation unit 8f
Checks the symmetry of the data arranged in the vertical direction. Specifically, the fourth evaluation unit 8d outputs (G11, G31,
G51) is given by the following equation (4).
13, G33, G53), and the sixth evaluation unit 8f checks whether the following expression (6) holds for (G15, G35, G55).

【0034】 G11−G51<th1、(G11+G51)−G31>th2…(4) G13−G53<th1、(G13+G53)−G33>th2…(5) G15−G55<th1、(G15+G55)−G35>th2…(6) なお、回路の大きさを考えて、第5評価部8eのみを配
置するようにしてもよい。特徴抽出部1は、第1評価部
8a〜第6評価部8fの結果(真・偽)を出力A1〜A
6する。
G11-G51 <th1, (G11 + G51) -G31> th2 (4) G13-G53 <th1, (G13 + G53) -G33> th2 (5) G15-G55 <th1, (G15 + G55) -G35> th2 (6) In consideration of the size of the circuit, only the fifth evaluation unit 8e may be arranged. The feature extraction unit 1 outputs the results (true / false) of the first evaluation unit 8a to the sixth evaluation unit 8f as outputs A1 to A
6

【0035】次に、入力データとして入力パターンP2
を受けた場合について説明する。入力パターンP2につ
いては、画素抽出部6は、G画素である画素G12、G
14、G21、G23、G25、G32、G34、G4
1、G43、G45、G52およびG54を抽出する。
Next, the input pattern P2 is used as input data.
A description will be given of a case in which the information is received. For the input pattern P2, the pixel extraction unit 6 determines that the pixels G12 and G
14, G21, G23, G25, G32, G34, G4
1, G43, G45, G52 and G54 are extracted.

【0036】第1評価部8a〜第2評価部8bは、水平
方向に配列するデータの対称性の有無について調べる。
具体的には、第1評価部8aは(G21、G23、G2
5)について次式(1b)が、第2評価部8bは(G4
1、G43、G45)について次式(2b)が成り立つ
か否かを調べる。
The first evaluator 8a and the second evaluator 8b check whether or not the data arranged in the horizontal direction is symmetric.
Specifically, the first evaluation unit 8a determines (G21, G23, G2
The following expression (1b) is applied to the fifth evaluation unit 5b.
1, G43, G45) to determine whether the following equation (2b) holds.

【0037】 G21−G25<th1、(G21+G25)−G23>th2…(1b) G41−G45<th1、(G41+G45)−G43>th2…(2b) 第4評価部8d〜第5評価部8eは、垂直方向に配列す
るデータの対称性の有無について調べる。具体的には、
第4評価部8dは(G12、G32、G52)について
次式(4b)が、第5評価部8eは(G14、G34,
G54)について次式(5b)が成り立つか否かをそれ
ぞれ調べる。
G21-G25 <th1, (G21 + G25) -G23> th2 (1b) G41-G45 <th1, (G41 + G45) -G43> th2 (2b) The fourth evaluation unit 8d to the fifth evaluation unit 8e The data arranged in the vertical direction is checked for symmetry. In particular,
The fourth evaluation unit 8d calculates the following equation (4b) for (G12, G32, G52), and the fifth evaluation unit 8e calculates (G14, G34,
G54) is checked to determine whether or not the following expression (5b) holds.

【0038】 G12−G52<th1、(G12+G52)−G32>th2…(4b) G14−G54<th1、(G14+G54)−G34>th2…(5b) 特徴抽出部1は、第1評価部8a〜第2評価部8b、第
4評価部8d〜第5評価部8eの結果(真・偽)を出力
A1〜A2、A4〜A5する。この際、第3評価部8c
および第6評価部8fについては特に考慮しない。
G12-G52 <th1, (G12 + G52) -G32> th2 ... (4b) G14-G54 <th1, (G14 + G54) -G34> th2 ... (5b) The feature extraction unit 1 includes the first evaluation units 8a to 8th. The results (true / false) of the second evaluation unit 8b and the fourth evaluation unit 8d to the fifth evaluation unit 8e are output as A1 to A2 and A4 to A5. At this time, the third evaluation unit 8c
The sixth evaluation unit 8f is not particularly considered.

【0039】図6は、本発明の実施の形態1における方
式選択部2の構成の概要を説明するための図である。図
6を参照して、方式選択部2は、水平方向対称性判定回
路9、垂直方向対称性判定回路10、OR回路11およ
びカウンタ12を含む。水平方向対称性判定回路9は、
第1評価部8a、第2評価部8bおよび第3評価部8c
のそれぞれの出力A1〜A3に基づきGデータの水平方
向における対称性を判定する。垂直方向対称性判定回路
10は、第4評価部8d、第5評価部8eおよび第6評
価部8fのそれぞれの出力A4〜A6に基づきGデータ
の垂直方向における対称性を判定する。なお、水平方向
対称性判定回路9および垂直方向対称性判定回路10
は、1ビットカウンタ(カウンタ12)の出力0/1に
基づき、処理対象(入力パターンP1、P2)を切換え
る。
FIG. 6 is a diagram for explaining an outline of the configuration of the method selecting section 2 according to the first embodiment of the present invention. Referring to FIG. 6, scheme selecting section 2 includes a horizontal symmetry determining circuit 9, a vertical symmetry determining circuit 10, an OR circuit 11, and a counter 12. The horizontal symmetry determining circuit 9
First evaluation unit 8a, second evaluation unit 8b, and third evaluation unit 8c
Of the G data in the horizontal direction is determined based on the respective outputs A1 to A3. The vertical symmetry determination circuit 10 determines the vertical symmetry of the G data based on the outputs A4 to A6 of the fourth evaluation unit 8d, the fifth evaluation unit 8e, and the sixth evaluation unit 8f. The horizontal symmetry determining circuit 9 and the vertical symmetry determining circuit 10
Switches the processing target (input pattern P1, P2) based on the output 0/1 of the 1-bit counter (counter 12).

【0040】水平方向対称性判定回路9は、入力パター
ンP1については、出力A1〜A3のすべてが真の場合
には真を、それ以外の場合には偽を出力し、入力パター
ンP2については、出力A1およびA2が真の場合には
真を、それ以外の場合には偽を出力する。
The horizontal symmetry determining circuit 9 outputs true for the input pattern P1 if all of the outputs A1 to A3 are true, and outputs false otherwise. For the input pattern P2, It outputs true if the outputs A1 and A2 are true, and outputs false otherwise.

【0041】また、垂直方向対称性判定回路10は、入
力パターンP1については、出力A4〜A6のすべてが
真の場合には真を、それ以外の場合には偽を出力し、入
力パターンP2については、出力A4およびA5が真の
場合には真を、それ以外の場合には偽を出力する。
The vertical symmetry determining circuit 10 outputs true for the input pattern P1 if all of the outputs A4 to A6 are true, and outputs false otherwise. Outputs true if the outputs A4 and A5 are true, otherwise outputs false.

【0042】OR回路11は、水平方向対称性判定回路
9の出力または垂直方向対称性判定回路10の出力のい
ずれか一方が真の場合には、第2方式部4を、偽の場合
には第1方式部3を選択するための選択信号を出力す
る。すなわち、Gデータに関し水平方向または垂直方向
のいずれかに対称性がある場合には第2方式部4を選択
し、それ以外の場合には第1方式部3の補間処理を適用
することを指定する。
The OR circuit 11 performs the second method section 4 when one of the output of the horizontal symmetry determining circuit 9 and the output of the vertical symmetry determining circuit 10 is true, and the OR circuit 11 when the output is false. A selection signal for selecting the first method unit 3 is output. That is, when the G data has symmetry in either the horizontal direction or the vertical direction, the second method unit 4 is selected, and otherwise, the interpolation processing of the first method unit 3 is specified. I do.

【0043】続いて、本発明の実施の形態1における第
1方式部3および第4方式部4について説明する。図7
は、補間処理について説明するための図である。図7で
は、画素の並びを、水平方向をX軸で、垂直方向をY軸
で表現し、X座標(i−2)〜(i+2)、Y座標(j
−2)〜(j+2)に配置された25画素を表示してい
る。座標(K,L)の画素またはデータを、色G、R、
Bに対応して、記号G(K,L)、R(K,L)、B
(K,L)で表わす。
Next, the first method unit 3 and the fourth method unit 4 according to the first embodiment of the present invention will be described. FIG.
FIG. 9 is a diagram for describing an interpolation process. In FIG. 7, the arrangement of pixels is represented by the X axis in the horizontal direction and the Y axis in the vertical direction, and the X coordinate (i−2) to (i + 2) and the Y coordinate (j
-2) to (j + 2) are displayed in 25 pixels. Pixels or data at coordinates (K, L) are represented by colors G, R,
The symbols G (K, L), R (K, L), B
Expressed as (K, L).

【0044】図7を参照して、画素R(i,j)に対し
て補間データGを求める方法について説明する。なお、
R画素とB画素とを置換えることにより、同様の手順で
B画素の補間データGが算出される。
Referring to FIG. 7, a method for obtaining interpolation data G for pixel R (i, j) will be described. In addition,
By replacing the R pixel and the B pixel, the interpolation data G of the B pixel is calculated in the same procedure.

【0045】補間対象である画素R(i,j)を中心と
する垂直方向のRデータの変化量をΔV、水平方向のR
データの変化量をΔHとする。
The amount of change in R data in the vertical direction centering on the pixel R (i, j) to be interpolated is ΔV,
The change amount of the data is assumed to be ΔH.

【0046】 ΔV={R(i,j−2)+R(i,j+2)}−R(i,j) …(7) ΔH={R(i−2,j)+R(i+2,j)}−R(i,j) …(8) 第1方式部3では、色の変化の割合(差)が等しいと仮
定して、ΔVまたはΔHを予測誤差とみなして次式
(9)〜(10)に示す補間データgv、ghを算出す
る。
ΔV = {R (i, j−2) + R (i, j + 2)} − R (i, j) (7) ΔH = {R (i−2, j) + R (i + 2, j)} −R (i, j) (8) In the first method unit 3, assuming that the rate of change (difference) of color change is equal, ΔV or ΔH is regarded as a prediction error, and the following equations (9) to (10) ) Are calculated.

【0047】 gv(i,j)=1/2・{G(i,j+1)+G(i,j−1)} −1/2・ΔV …(9) gh(i,j)=1/2・{G(i−1,j)+G(i+1,j)} −1/2・ΔH …(10) 第1方式部3では、垂直方向の相関が強い場合(△H>
△V)、式(9)に示す補間データgvを、それ以外の
場合には式(10)に示す補間データghを出力する。
Gv (i, j) = 1 / · {G (i, j + 1) + G (i, j−1)} − 1 / · ΔV (9) gh (i, j) = 1 / · {G (i−1, j) + G (i + 1, j)} − 1 / · ΔH (10) In the first method unit 3, when the correlation in the vertical direction is strong (△ H>
ΔV), and outputs the interpolation data gv shown in Expression (9), and otherwise outputs the interpolation data gh shown in Expression (10).

【0048】第2方式部4では、色の変化の比率(低周
波成分の比率)が等しいと仮定して補間データを算出す
る。まず、次式に示す低周波成分を算出する。
The second method section 4 calculates interpolation data on the assumption that the rate of color change (the rate of low frequency components) is equal. First, a low frequency component represented by the following equation is calculated.

【0049】 GLPF3v=1/2・(G2v+G4v) …(11a) RLPF3v=1/4・R1v+1/2・R3+1/4・R5v …(12a) GLPF3h=1/2・(G2h+G4h) …(11b) RLPF3h=1/4・R1h+1/2・R3+1/4・R5h …(12b) ここで、R3は、補間対象となるR画素のRデータを、
G2v、G4vは、画素R3に対し垂直方向に隣接する
G画素のGデータを、R1v、R5vは、画素G2v、
G4vに対し垂直方向に隣接するR画素のRデータを示
している。具体的には、図7において、R3はR(i、
j)に、G2vはG(i,j+1)に、G4vはG
(i,j−1)に、R1vはR(i,j+2)に、R5
vはR(i,j−2)に、それぞれ対応している。
G LPF 3v = 1 / · (G2v + G4v) (11a) R LPF 3v = 1 / · R1v + / · R3 + / · R5v (12a) G LPF 3h = 1 / · (G2h + G4h) .. (11b) R LPF 3h = 1 / · R1h + / · R3 + / · R5h (12b) Here, R3 is R data of an R pixel to be interpolated.
G2v and G4v represent G data of a G pixel vertically adjacent to the pixel R3, and R1v and R5v represent pixels G2v and
The R data of the R pixel vertically adjacent to G4v is shown. Specifically, in FIG. 7, R3 is R (i,
j), G2v is G (i, j + 1), G4v is G
(I, j-1), R1v is R (i, j + 2), R5
v corresponds to R (i, j-2), respectively.

【0050】さらに、G2h、G4hは、画素R3に対
し水平方向で隣接するG画素のGデータを、R1h、R
5hは、画素G2h、G4hに対し水平方向で隣接する
R画素のRデータを示している。具体的には、図7にお
いて、G2hはG(i−1,j)に、G4hはG(i+
1,j)に、R1hはR(i−2,j)に、R5hはR
(i+2,j)にそれぞれ対応している。
Further, G2h and G4h represent the G data of the G pixel adjacent to the pixel R3 in the horizontal direction by R1h, R4
5h indicates the R data of the R pixel horizontally adjacent to the pixels G2h and G4h. Specifically, in FIG. 7, G2h is G (i−1, j) and G4h is G (i +
1,1), R1h is R (i-2, j), R5h is R
(I + 2, j) respectively.

【0051】座標(i,j)におけるGとRとの相関
は、低周波成分GLPFと低周波成分RL PFとの相関に等し
いと仮定する。第2方式部4は、式(11a)〜(12
a)を用いて式(13)の補間データを、式(11b)
〜(12b)を用いて式(14)の補間データを算出す
る。
The correlation between the G and R in the coordinate (i, j) is assumed to be equal to the correlation between the low frequency component G LPF and a low-frequency component R L PF. The second method unit 4 calculates the expressions (11a) to (12)
a) is used to convert the interpolation data of Expression (13) into Expression (11b)
(12b) is used to calculate the interpolation data of the equation (14).

【0052】 gv(i,j)=R(i,j)×GLPF3v/RLPF3v…(13) gh(i,j)=R(i,j)×GLPF3h/RLPF3h…(14) 第2方式部4は、垂直方向の相関が強い場合(ΔH>Δ
V)には式(13)の補間データgvを、それ以外の場
合には式(14)の補間データghを出力する。
[0052] gv (i, j) = R (i, j) × G LPF 3v / R LPF 3v ... (13) gh (i, j) = R (i, j) × G LPF 3h / R LPF 3h ... (14) When the correlation in the vertical direction is strong (ΔH> Δ
V) outputs the interpolation data gv of Expression (13), and otherwise outputs the interpolation data gh of Expression (14).

【0053】図2を参照して、セレクタ5は、選択信号
に応じて、Gデータに対称性がある場合には、低周波成
分を考慮した第2方式部4の補間データを、それ以外の
場合には第1方式部3の補間データを出力する。
Referring to FIG. 2, when G data has symmetry according to the selection signal, selector 5 replaces the interpolation data of second method unit 4 taking the low-frequency component into account with the other data. In this case, the interpolation data of the first method section 3 is output.

【0054】ここで、上述した補間処理を行なう方式部
(第1方式部3、第2方式部4)の構成例について、図
8〜図9を用いて説明する。
Here, an example of the configuration of the method section (first method section 3 and second method section 4) for performing the above-described interpolation processing will be described with reference to FIGS.

【0055】図8は、本発明の実施の形態1における第
1方式部3の構成例について説明するための図である。
図8を参照して、第1方式部3は、Gデータ算出回路5
0、比較判定回路51およびセレクタ52を含む。Gデ
ータ算出回路50は、入力データを受けて、式(9)〜
(10)に対応する補間データgv、ghを算出する。
比較判定回路51は、水平方向の変位ΔHおよび垂直方
向の変位ΔVの大小関係を比較し、補間データgv、g
hのいずれを出力すべきかを判定する。セレクタ52
は、比較判定回路51の判定結果に基づき、補間データ
gv、ghのいずれか一方を補間データGとして出力す
る。なお、比較判定回路51の結果に基づき、Gデータ
算出回路50においてgv、ghのいずれか一方を算出
するように構成してもよい。
FIG. 8 is a diagram for explaining a configuration example of the first method section 3 according to the first embodiment of the present invention.
Referring to FIG. 8, first method unit 3 includes a G data calculation circuit 5
0, a comparison / determination circuit 51 and a selector 52 are included. The G data calculation circuit 50 receives the input data,
The interpolation data gv and gh corresponding to (10) are calculated.
The comparison determination circuit 51 compares the magnitude relationship between the displacement ΔH in the horizontal direction and the displacement ΔV in the vertical direction, and calculates the interpolation data gv, g
h is to be output. Selector 52
Outputs one of the interpolation data gv and gh as the interpolation data G based on the determination result of the comparison determination circuit 51. Note that the G data calculation circuit 50 may be configured to calculate one of gv and gh based on the result of the comparison determination circuit 51.

【0056】図9は、本発明の実施の形態1における第
2方式部4の構成例について説明するための図である。
図9を参照して、第2方式部4は、Gデータ算出回路5
3、比較判定回路54およびセレクタ52を含む。Gデ
ータ算出回路53は、入力データを受けて式(13)〜
(14)に対応する補間データgv、ghを算出する。
比較判定回路54は、水平方向の変位ΔHおよび垂直方
向の変位ΔVの大小関係を比較し、補間データgv、g
hのいずれを出力すべきかを判定する。セレクタ52
は、比較判定回路54の判定結果に基づき、補間データ
gv、ghのいずれか一方を補間データGとして出力す
る。なお、比較判定回路54の結果に基づき、Gデータ
算出回路53においてgv、ghのいずれか一方を算出
するように構成してもよい。
FIG. 9 is a diagram for describing a configuration example of second method section 4 according to Embodiment 1 of the present invention.
Referring to FIG. 9, the second scheme unit 4 includes a G data calculation circuit 5
3. It includes a comparison determination circuit 54 and a selector 52. The G data calculation circuit 53 receives the input data, and
The interpolation data gv and gh corresponding to (14) are calculated.
The comparison determination circuit 54 compares the magnitude relation between the displacement ΔH in the horizontal direction and the displacement ΔV in the vertical direction, and calculates the interpolation data gv, g
h is to be output. Selector 52
Outputs one of the interpolation data gv and gh as the interpolation data G based on the determination result of the comparison determination circuit 54. It should be noted that the G data calculation circuit 53 may be configured to calculate one of gv and gh based on the result of the comparison determination circuit 54.

【0057】このように、画像の特徴に応じて最適な補
間処理を選択することにより、高画質な画像を得ること
が可能となる。また、第1方式部3および第2方式部4
の処理を並列して動作させるため、従来のシステムに比
べてセレクタ5での選択動作にかかる時間のみが増加す
る。したがって従来のシステムとほぼ同様の処理速度を
保証することが可能となる。
As described above, by selecting the optimal interpolation processing according to the characteristics of the image, a high-quality image can be obtained. In addition, the first method unit 3 and the second method unit 4
Are performed in parallel, only the time required for the selection operation by the selector 5 is increased as compared with the conventional system. Therefore, it is possible to guarantee almost the same processing speed as the conventional system.

【0058】[実施の形態2]本発明の実施の形態2で
は、補間対象の画素の周辺に位置する画素について、水
平方向・垂直方向および斜め方向の対称性を検出する。
図10は、本発明の実施の形態2における画像補間部2
00の構成を説明するための図である。図10に示す画
像補間部200が、図2に示す画像補間部100と異な
る点は、特徴抽出部1に代わり水平方向、垂直方向およ
び斜め方向の特徴を抽出する特徴抽出部21を、方式選
択部2に代わり方式選択部22を備える点にある。
[Second Embodiment] In a second embodiment of the present invention, the symmetry in the horizontal direction, the vertical direction, and the oblique direction is detected for pixels located around the pixel to be interpolated.
FIG. 10 shows an image interpolation unit 2 according to the second embodiment of the present invention.
FIG. 9 is a diagram for explaining the configuration of the 00. The image interpolating unit 200 shown in FIG. 10 differs from the image interpolating unit 100 shown in FIG. 2 in that a feature extracting unit 21 that extracts features in the horizontal, vertical, and oblique directions is used instead of the feature extracting unit 1. The point is that a method selecting unit 22 is provided instead of the unit 2.

【0059】図11は、本発明の実施の形態2における
特徴抽出部21の構成について説明するための図であ
る。図11を参照して、特徴抽出部21は、画素抽出部
6、カウンタ7、および抽出した画素の評価を行なう評
価部を含む。評価部は、水平方向の対称性を評価するた
めの第1評価部8a、第2評価部8bおよび第3評価部
8cと、垂直方向の対称性を評価するための第4評価部
8d、第5評価部8eおよび第6評価部8fと、斜め方
向の対称性を評価するための第7評価部8g、第8評価
部8h、第9評価部8i、第10評価部8j、第11評
価部8k、および第12評価部8lを含む。
FIG. 11 is a diagram for describing a configuration of feature extracting section 21 according to the second embodiment of the present invention. Referring to FIG. 11, feature extracting section 21 includes a pixel extracting section 6, a counter 7, and an evaluating section for evaluating the extracted pixels. The evaluation section includes a first evaluation section 8a, a second evaluation section 8b, and a third evaluation section 8c for evaluating horizontal symmetry, a fourth evaluation section 8d for evaluating vertical symmetry, and a fourth evaluation section 8d. A fifth evaluation unit 8e and a sixth evaluation unit 8f, and a seventh evaluation unit 8g, an eighth evaluation unit 8h, a ninth evaluation unit 8i, a tenth evaluation unit 8j, and an eleventh evaluation unit for evaluating symmetry in an oblique direction. 8k and a twelfth evaluation unit 8l.

【0060】画素抽出部6、カウンタ7および第1評価
部8a〜第6評価部8fは、実施の形態1で説明したと
おりである。斜め方向の対称性について評価する第7評
価部8g〜第12評価部8lについて説明する。
The pixel extraction unit 6, the counter 7, and the first to sixth evaluation units 8a to 8f are as described in the first embodiment. The seventh to twelfth evaluation units 8g to 8l for evaluating the symmetry in the oblique direction will be described.

【0061】入力データとして、入力パターンP1を受
けた場合について説明する。第7評価部8gは(G1
1、G33、G55)に対して次式(15)が、第8評
価部8hは(G15、G33、G51)に対して次式
(16)成り立つか否かをそれぞれ調べる。
A case where an input pattern P1 is received as input data will be described. The seventh evaluation unit 8g calculates (G1
1, G33, G55), and the eighth evaluation unit 8h checks whether the following expression (16) holds for (G15, G33, G51).

【0062】 G11−G55<th1、(G11+G55)−G33>th2…(15) G15−G51<th1、(G15+G51)−G33>th2…(16) なお、th1、th2はしきい値であり、th1<th
2が成り立つ任意の数で実験的に定めるものとする。特
徴抽出部21は、第1評価部8a〜第8評価部8hの結
果(真・偽)を出力A1〜A8する。この際、第9評価
部8i〜第12評価部8lは考慮しない。
G11−G55 <th1, (G11 + G55) −G33> th2 (15) G15−G51 <th1, (G15 + G51) −G33> th2 (16) where th1 and th2 are thresholds, and th1 <Th
It is determined experimentally by an arbitrary number in which 2 holds. The feature extraction unit 21 outputs the results (true / false) of the first evaluation unit 8a to the eighth evaluation unit 8h as A1 to A8. At this time, the ninth evaluation unit 8i to the twelfth evaluation unit 8l are not considered.

【0063】次に、入力データが入力パターンP2に対
応する場合について説明する。第9評価部8iは(G2
1、G32、G43、G54)について式(17)が、
第10評価部8jは(G12、G23、G34、G4
5)について式(18)が、第11評価部8kは(G1
4、G23、G32、G41)に対して式(19)が、
第12評価部8lは(G25、G34、G43、G5
2)について式(20)が成立するか否かをそれぞれ調
べる。
Next, a case where the input data corresponds to the input pattern P2 will be described. The ninth evaluation unit 8i calculates (G2
1, G32, G43, G54),
The tenth evaluation unit 8j calculates (G12, G23, G34, G4
Expression (18) is obtained for 5), and the eleventh evaluation unit 8k calculates (G1
4, G23, G32, G41),
The twelfth evaluation unit 8l includes (G25, G34, G43, G5
It is checked whether Expression (20) holds for 2).

【0064】 G21−G54<th1、G32−G43<th1、 (G21+G54)−(G32−G43)>th3 …(17) G12−G45<th1、G23−G34<th1、 (G12+G45)−(G23−G34)>th3 …(18) G14−G41<th1、G23−G32<th1、 (G14+G41)−(G23−G32)>th3 …(19) G25−G52<th1、G34−G43<th1、 (G25+G52)−(G34−G43)>th3 …(20) なお、th1、th3はしきい値であり、th1<th
3が成り立つ任意の数で実験的に定めるものとする。特
徴抽出部21は、第1評価部8a〜第6評価部8f、第
9評価部8i〜第12評価部8lの結果(真・偽)を出
力A1〜A6、A9〜A12する。この際、第7評価部
8g〜第8評価部8hについては特に考慮しない。
G21-G54 <th1, G32-G43 <th1, (G21 + G54)-(G32-G43)> th3 (17) G12-G45 <th1, G23-G34 <th1, (G12 + G45)-(G23-G34) )> Th3 (18) G14-G41 <th1, G23-G32 <th1, (G14 + G41)-(G23-G32)> th3 (19) G25-G52 <th1, G34-G43 <th1, (G25 + G52)- (G34-G43)> th3 (20) where th1 and th3 are threshold values, and th1 <th
It is determined experimentally by an arbitrary number in which 3 holds. The feature extraction unit 21 outputs the results (true / false) of the first to sixth evaluation units 8a to 8f and the ninth and twelfth evaluation units 8l to 8l as A1 to A6 and A9 to A12. At this time, the seventh evaluation unit 8g to the eighth evaluation unit 8h are not particularly considered.

【0065】図12は、本発明の実施の形態2における
方式選択部22の構成の概要を説明するための図であ
る。図12を参照して、方式選択部22は、水平方向対
称性判定回路9、垂直方向対称性判定回路10、カウン
タ12、斜め方向対称性判定回路26およびOR回路2
7を含む。水平方向対称性判定回路9、垂直方向対称性
判定回路10、カウンタ12については、実施の形態1
で説明したとおりである。
FIG. 12 is a diagram for describing an outline of the configuration of the method selecting section 22 according to the second embodiment of the present invention. Referring to FIG. 12, method selection unit 22 includes horizontal symmetry determining circuit 9, vertical symmetry determining circuit 10, counter 12, oblique symmetry determining circuit 26, and OR circuit 2.
7 inclusive. The horizontal symmetry determining circuit 9, the vertical symmetry determining circuit 10, and the counter 12 are described in the first embodiment.
As described in the above.

【0066】斜め方向対称性判定回路26は、斜め方向
の対称性を評価する第7評価部8g〜第12評価部8l
の出力A7〜A12を受けて、斜め方向の対称性につい
て判定する。この際、1ビットカウンタ(カウンタ1
2)の出力0/1に基づき、処理対象(入力パターンP
1、P2)を切換える。
The oblique direction symmetry determining circuit 26 evaluates the symmetry in the oblique direction from the seventh evaluator 8g to the twelfth evaluator 8l.
The outputs A7 to A12 of the above are received and the symmetry in the oblique direction is determined. At this time, a 1-bit counter (counter 1
Based on the output 0/1 of 2), the processing target (input pattern P
1, P2).

【0067】たとえば、入力データが入力パターンP1
に対応する場合には、出力A7が真または出力A8が真
の場合には真を、それ以外の場合には偽を出力する。入
力データが入力パターンP2に対応する場合には、出力
A9およびA10がともに真、または出力A11および
A12がともに真の場合には真を、それ以外の場合には
偽を出力する。
For example, if the input data is input pattern P1
If the output A7 is true or the output A8 is true, true is output; otherwise, false is output. When the input data corresponds to the input pattern P2, true is output when both outputs A9 and A10 are true, or true when both outputs A11 and A12 are true, and false otherwise.

【0068】OR回路27は、水平方向対称性判定回路
9の出力、垂直方向対称性判定回路10の出力および斜
め方向対称性判定回路26の出力のうちいずれか一つが
真の場合には、第2方式部4を、それ以外の場合には第
1方式部3を選択するための選択信号を出力する。すな
わち、水平方向、垂直方向または斜め方向のいずれかに
対称性がある場合には第2方式部4を選択し、いずれに
おいても対称性が検出されない場合には第1方式部3の
補間処理を適用することを指定する。
If any one of the output of the horizontal symmetry determining circuit 9, the output of the vertical symmetry determining circuit 10, and the output of the oblique symmetry determining circuit 26 is true, the OR circuit 27 outputs A selection signal for selecting the second method unit 4 and the first method unit 3 in other cases is output. That is, if there is symmetry in any of the horizontal direction, the vertical direction, or the oblique direction, the second method unit 4 is selected. If no symmetry is detected in any of them, the interpolation processing of the first method unit 3 is performed. Specifies to apply.

【0069】これにより、図10に示すセレクタ5は、
水平方向、垂直方向または斜め方向のいずれかに対称性
がある場合には第2方式部4の出力する補間データを、
それ以外の場合には第1方式部3の出力する補間データ
を選択的に出力することになる。
Thus, the selector 5 shown in FIG.
When there is symmetry in any of the horizontal direction, the vertical direction, or the oblique direction, the interpolation data output from the second method unit 4 is
In other cases, the interpolation data output from the first method section 3 is selectively output.

【0070】このように構成することにより、画像の特
徴(対称性)をより精度よく抽出することが可能となる
ため、より高画質な画像を得ることが可能となる。
With this configuration, it is possible to more accurately extract the features (symmetry) of the image, and thus it is possible to obtain a higher quality image.

【0071】[実施の形態3]本発明の実施の形態3で
は、補間対象の画素と同じ種類の色データを有する画素
を用いて、水平方向および垂直方向の対称性を検出す
る。
[Embodiment 3] In Embodiment 3 of the present invention, horizontal and vertical symmetry is detected using pixels having the same type of color data as the pixel to be interpolated.

【0072】図13は、本発明の実施の形態3における
画像補間部300の構成の概要を説明するための図であ
る。図13を参照して、画像補間部300は、特徴抽出
部31、方式選択部32、第1方式部33、第2方式部
34およびセレクタ5を備える。
FIG. 13 is a diagram for explaining the outline of the configuration of the image interpolation unit 300 according to the third embodiment of the present invention. Referring to FIG. 13, image interpolating section 300 includes feature extracting section 31, method selecting section 32, first method section 33, second method section 34, and selector 5.

【0073】特徴抽出部31は、補間対象の画素と同じ
種類の色データ(R、G、B)をもつ画素を抽出し、水
平方向・垂直方向に関して対称性があるか否かを調べ
る。具体的には、図14に示す入力パターンP3を入力
に受け、X画素の特徴を抽出する。なお、図14に示す
Xは、補間対象となる画素であって、R画素、G画素ま
たはB画素のいずれかに対応している。
The feature extraction unit 31 extracts pixels having the same type of color data (R, G, B) as the pixel to be interpolated, and checks whether there is symmetry in the horizontal and vertical directions. Specifically, an input pattern P3 shown in FIG. 14 is received as input, and the features of X pixels are extracted. Note that X shown in FIG. 14 is a pixel to be interpolated, and corresponds to any one of the R pixel, the G pixel, and the B pixel.

【0074】図15は、本発明の実施の形態3における
特徴抽出部31の構成の概要について説明するための図
である。図15を参照して、特徴抽出部31は、画素抽
出部35、第1評価部8a、第2評価部8b、第3評価
部8c、第4評価部8d、第5評価部8eおよび第6評
価部8fを含む。画素抽出部35は、図14に示す画素
X11、X13、X15、X31、X33、X35、X
51、X53およびX55を抽出する。
FIG. 15 is a diagram for describing an outline of the configuration of feature extracting section 31 according to the third embodiment of the present invention. Referring to FIG. 15, feature extraction unit 31 includes pixel extraction unit 35, first evaluation unit 8a, second evaluation unit 8b, third evaluation unit 8c, fourth evaluation unit 8d, fifth evaluation unit 8e, and sixth evaluation unit 8e. An evaluation unit 8f is included. The pixel extraction unit 35 includes pixels X11, X13, X15, X31, X33, X35, and X shown in FIG.
Extract 51, X53 and X55.

【0075】第1評価部8aは(X11、X13、X1
5)について次式(21)が、第2評価部8bは(X3
1、X33、X35)について次式(22)が、第3評
価部8cは(X51、X53、X55)について次式
(23)がそれぞれ成り立つか否かを調べる。
The first evaluation unit 8a calculates (X11, X13, X1
The following expression (21) is applied to 5), and the second evaluation unit 8b calculates (X3
1, X33, X35), and the third evaluation unit 8c checks whether the following expression (23) holds for (X51, X53, X55).

【0076】 X11−X15<th1、(X11+X15)−X13>th2…(21) X31−X35<th1、(X31+X35)−X33>th2…(22) X51−X55<th1、(X51+X55)−X53>th2…(23) なお、th1、th2はしきい値であり、th1<th
2が成り立つ任意の数で実験的に定めるものとする。回
路の大きさを考慮して、第2評価部8bのみで構成して
もよい。
X11-X15 <th1, (X11 + X15) -X13> th2 (21) X31-X35 <th1, (X31 + X35) -X33> th2 (22) X51-X55 <th1, (X51 + X55) -X53> th2 (23) where th1 and th2 are threshold values, and th1 <th
It is determined experimentally by an arbitrary number in which 2 holds. In consideration of the size of the circuit, it may be configured only with the second evaluation unit 8b.

【0077】第4評価部8dは(X11、X31、X5
1)について次式(24)が、第5評価部8eは(X1
3、X33、X53)について次式(25)が、第6評
価部8fは(X15、X35、X55)について次式
(26)がそれぞれ成立するか否かを調べる。
The fourth evaluation section 8d calculates (X11, X31, X5
The following expression (24) is applied to the first evaluation unit 1), and the fifth evaluation unit 8e calculates (X1
3, X33, X53), and the sixth evaluation unit 8f checks whether the following expression (26) holds for (X15, X35, X55).

【0078】 X11−X51<th1、(X11+X51)−X31>th2…(24) X13−X53<th1、(X13+X53)−X33>th2…(25) X15−X55<th1、(X15+X55)−X35>th2…(26) なお、回路の大きさを考慮して、第5評価部8eのみを
配置するようにしてもよい。特徴抽出部31は、第1評
価部8a〜第6評価部8fの結果(真・偽)を出力A1
〜A6する。
X11-X51 <th1, (X11 + X51) -X31> th2 (24) X13-X53 <th1, (X13 + X53) -X33> th2 (25) X15-X55 <th1, (X15 + X55) -X35> th2 (26) In addition, only the fifth evaluation unit 8e may be arranged in consideration of the size of the circuit. The feature extraction unit 31 outputs the result (true / false) of the first evaluation unit 8a to the sixth evaluation unit 8f as an output A1.
A6.

【0079】図16は、本発明の実施の形態3における
方式選択部32の構成の概要について説明するための図
である。図16を参照して、方式選択部32は、水平方
向対称性判定回路9、垂直方向対称性判定回路10およ
びOR回路11を含む。水平方向対称性判定回路9は、
第1評価部8a、第2評価部8bおよび第3評価部8c
のそれぞれの出力A1〜A3に基づき水平方向に並ぶX
画素のデータの対称性を判定する。垂直方向対称性判定
回路10は、第4評価部8d、第5評価部8eおよび第
6評価部8fのそれぞれの出力A4〜A6に基づき垂直
方向に並ぶX画素のデータの対称性を判定する。
FIG. 16 is a diagram for describing an outline of the configuration of system selecting section 32 according to the third embodiment of the present invention. Referring to FIG. 16, scheme selecting section 32 includes a horizontal symmetry determining circuit 9, a vertical symmetry determining circuit 10, and an OR circuit 11. The horizontal symmetry determining circuit 9
First evaluation unit 8a, second evaluation unit 8b, and third evaluation unit 8c
X arranged in the horizontal direction based on the respective outputs A1 to A3
The symmetry of the pixel data is determined. The vertical symmetry determination circuit 10 determines the symmetry of the data of the X pixels arranged in the vertical direction based on the outputs A4 to A6 of the fourth evaluation unit 8d, the fifth evaluation unit 8e, and the sixth evaluation unit 8f.

【0080】OR回路11は、水平方向対称性判定回路
9の出力または垂直方向対称性判定回路10の出力のい
ずれか一方が真の場合には、第2方式部34を、偽の場
合には第1方式部33を選択するための選択信号を出力
する。すなわち、水平方向、垂直方向のいずれかに対称
性がある場合には第2方式部34を、それ以外の場合に
は第1方式部33の補間処理を適用することを指示す
る。
The OR circuit 11 outputs the result of the second method unit 34 when either the output of the horizontal symmetry judging circuit 9 or the output of the vertical symmetry judging circuit 10 is true. A selection signal for selecting the first method unit 33 is output. In other words, when there is symmetry in either the horizontal direction or the vertical direction, it instructs to apply the interpolation processing of the second method unit 34, and otherwise applies the interpolation processing of the first method unit 33.

【0081】続いて、本発明の実施の形態3における第
1方式部33および第2方式部34の補間処理について
説明する。R画素およびB画素のそれぞれに補間データ
Gを与えるための処理については実施の形態1で説明し
たとおりである。以下、G画素に補間データR、Bを与
え、B画素に補間データRを、R画素に補間データBを
求める処理について説明する。
Next, an explanation will be given of the interpolation processing of the first method unit 33 and the second method unit 34 according to the third embodiment of the present invention. The process for providing the interpolation data G to each of the R pixel and the B pixel is as described in the first embodiment. In the following, a description will be given of a process of providing interpolation data R and B to G pixels, obtaining interpolation data R to B pixels, and obtaining interpolation data B to R pixels.

【0082】なお、R、B画素は、G画素と異なり、補
間する画素の位置によって参照できる画素の位置が変化
する。よって、補間する画素の位置により補間式を変更
しなければならない。このため、補間データR、Bを求
める場合は、参照する画素範囲を3×3に限定し、その
範囲内にある補間対象色の色データと同位置における補
間後のデータ(補間データG)とを用いて色データ間の
関係を求める。これらの関係に基づき補間位置のGデー
タから補間位置の色データを算出する。以下の式におい
て、Gは、入力データまたは補間データを表わしてい
る。
The R and B pixels differ from the G pixels in that the position of the referenceable pixel changes depending on the position of the pixel to be interpolated. Therefore, the interpolation formula must be changed according to the position of the pixel to be interpolated. For this reason, when obtaining the interpolation data R and B, the reference pixel range is limited to 3 × 3, and the interpolated data (interpolation data G) at the same position as the color data of the color to be interpolated within that range. Is used to determine the relationship between the color data. Based on these relationships, color data at the interpolation position is calculated from the G data at the interpolation position. In the following equations, G represents input data or interpolation data.

【0083】第1方式部33の処理について説明する。
図17は、補間処理について説明するための概念図であ
り、図17(a)は、X・Y座標系における座標(i,
j)がG画素に、図17(b)は、座標(i,j)がB
画素に対応する場合をそれぞれ示している。
The processing of the first method section 33 will be described.
FIG. 17 is a conceptual diagram for explaining the interpolation process. FIG. 17A shows the coordinates (i,
j) is a G pixel, and FIG. 17B is a diagram in which the coordinates (i, j) are B pixels.
Cases corresponding to pixels are shown.

【0084】図17(a)を参照して、G画素は、上下
方向および左右方向に補間すべき色の画素が存在する。
色の変化の割合(差)が等しいと仮定すると、式(2
7)〜(28)が成立する。
Referring to FIG. 17A, G pixels include pixels of colors to be interpolated in the vertical and horizontal directions.
Assuming that the rate of change (difference) of color change is equal, Equation (2)
7) to (28) hold.

【0085】 R(i,j)−G(i,j)≒R(i−1,j)−G(i−1,j) ≒R(i+1,j)−G(i+1,j) …(27) B(i,j)−G(i,j)≒B(i,j−1)−G(i,j−1) ≒B(i,j+1)−G(i,j+1) …(28) よって、G(i,j)における補間データR、Bを、式
(29)〜(30)を用いて算出する。 R(i,j)=G(i,j)+1/2・{R(i−1,j)−G(i−1,j) +R(i+1,j)−G(i+1,j)} …(29) B(i,j)=G(i,j)+1/2・{B(i,j−1)−G(i,j−1) +B(i,j+1)−B(i,j+1)} …(30) 図17(b)を参照して、B画素(またはR画素)は、
斜め方向、上下および左右方向に補間すべき色の画素が
存在する。よって、式(31)が成立する。
R (i, j) −G (i, j) ≒ R (i−1, j) −G (i−1, j) ≒ R (i + 1, j) −G (i + 1, j) ( 27) B (i, j) -G (i, j) ≒ B (i, j-1) -G (i, j-1) ≒ B (i, j + 1) -G (i, j + 1) (28) Therefore, the interpolation data R and B in G (i, j) are calculated using equations (29) to (30). R (i, j) = G (i, j) + / · {R (i−1, j) −G (i−1, j) + R (i + 1, j) −G (i + 1, j)} (29) B (i, j) = G (i, j) + / · B (i, j−1) −G (i, j−1) + B (i, j + 1) −B (i, j + 1) (30) Referring to FIG. 17B, the B pixel (or R pixel)
There are pixels of colors to be interpolated in the oblique direction, up and down, and left and right directions. Therefore, equation (31) holds.

【0086】 R(i,j)−G(i,j)≒R(i−1,j−1)−G(i−1,j−1) ≒R(i+1,j−1)−G(i+1,j−1) ≒R(i−1,j+1)−G(i−1,j+1) ≒R(i+1,j+1)−G(i+1、j+1) …(31) よって、B(i,j)における補間データRを式(3
2)に基づき算出する(なお、座標(i,j)がR画素
の場合には、式(31)〜(32)におけるRを対応す
るBに置換える。
R (i, j) −G (i, j) ≒ R (i−1, j−1) −G (i−1, j−1) ≒ R (i + 1, j−1) −G ( i + 1, j-1) ≒ R (i-1, j + 1) -G (i-1, j + 1) ≒ R (i + 1, j + 1) -G (i + 1, j + 1) (31) Therefore, B (i, j) Of the interpolation data R in the equation (3)
(If the coordinates (i, j) are R pixels, R in equations (31) to (32) is replaced with the corresponding B).

【0087】 R(i,j)=G(i,j)+1/4・{R(i−1,j−1)−G(i−1 ,j−1)+R(i+1,j−1)−G(i+1,j−1)+R(i−1,j+ 1)−G(i−1,j+1)+R(i+1,j+1)−G(i+1,j+1)} …(32) 続いて、第2方式部34の処理について説明する。色の
変化の比率が等しい(低周波成分の比率が等しい)と仮
定すると、図17(a)については式(33)〜(3
4)が成立し、図17(b)については、式(35)が
成立する。
R (i, j) = G (i, j) + / · {R (i−1, j−1) −G (i−1, j−1) + R (i + 1, j−1) −G (i + 1, j−1) + R (i−1, j + 1) −G (i−1, j + 1) + R (i + 1, j + 1) −G (i + 1, j + 1)} (32) The processing of the method unit 34 will be described. Assuming that the ratios of the color changes are equal (the ratios of the low-frequency components are equal), the equations (33) to (3) in FIG.
4) holds, and with respect to FIG. 17B, the equation (35) holds.

【0088】 R(i,j)/G(i,j)≒R(i−1,j)/G(i−1,j) ≒R(i+1,j)/G(i+1,j) …(33) B(i,j)/G(i,j)≒B(i,j−1)/G(i,j−1) ≒B(i,j+1)/G(i,j+1) …(34) R(i,j)/G(i,j)≒R(i−1,j−1)/G(i−1,j−1) ≒R(i+1,j−1)/G(i+1,j−1) ≒R(i−1,j+1)/G(i−1,j+1) ≒R(i+1,j+1)/G(i+1,j+1) …(35) したがって、図17(a)におけるG(i,j)の補間
データR、Bを式(36)〜(37)を用いて算出す
る。図17(b)におけるB(i,j)の補間データR
を式(38)を用いて算出する。なお、座標(i,j)
がR画素の場合には、式(35)、(38)におけるR
を対応するBに置換える。
R (i, j) / G (i, j) ≒ R (i−1, j) / G (i−1, j) ≒ R (i + 1, j) / G (i + 1, j) ( 33) B (i, j) / G (i, j) ≒ B (i, j−1) / G (i, j−1) ≒ B (i, j + 1) / G (i, j + 1) (34) ) R (i, j) / G (i, j) ≒ R (i−1, j−1) / G (i−1, j−1) ≒ R (i + 1, j−1) / G (i + 1, j-1) ≒ R (i-1, j + 1) / G (i-1, j + 1) ≒ R (i + 1, j + 1) / G (i + 1, j + 1) (35) Therefore, G ( The interpolation data R and B of (i, j) are calculated using equations (36) to (37). The interpolation data R of B (i, j) in FIG.
Is calculated using equation (38). Note that the coordinates (i, j)
Is an R pixel, R in equations (35) and (38)
To the corresponding B.

【0089】 R(i,j)=G(i,j)×{R(i−1,j)+R(i+1,j)}/G (i+1,j)+G(i−1,j) …(36) B(i,j)=G(i,j)×{B(i,j−1)+B(i,j+1)}/{ G(i,j+1)+G(i,j−1)} …(37) R(i,j)=G(i,j)×{R(i−1,j−1)+R(i+1,j−1 )+R(i−1,j+1)+R(i+1,j+1)}/G(i−1,j+1)+ G(i+1,j−1)+G(i−1,j+1)+G(i+1,j+1) …(38) ここで、本発明の実施の形態3における方式部(第1方
式部33、第2方式部34)の構成例について、図18
〜図19を用いて説明する。
R (i, j) = G (i, j) × {R (i−1, j) + R (i + 1, j)} / G (i + 1, j) + G (i−1, j) ( 36) B (i, j) = G (i, j) × {B (i, j-1) + B (i, j + 1)} / {G (i, j + 1) + G (i, j-1)} (37) R (i, j) = G (i, j) × {R (i−1, j−1) + R (i + 1, j−1) + R (i−1, j + 1) + R (i + 1, j + 1) } / G (i−1, j + 1) + G (i + 1, j−1) + G (i−1, j + 1) + G (i + 1, j + 1) (38) Here, the system unit according to Embodiment 3 of the present invention. FIG. 18 shows an example of the configuration of the (first method unit 33 and the second method unit 34).
This will be described with reference to FIG.

【0090】図18は、本発明の実施の形態3における
第1方式部33の構成例について説明するための図であ
る。図18を参照して、第1方式部33は、画素判定回
路60、Gデータ算出回路55、R/Bデータ算出回路
56および57を含む。画素判定回路60は、入力する
画素が、G画素、R画素またはB画素であるか否かを判
定する。G画素であれば、R/Bデータ算出回路56
を、R画素またはB画素であれば、R/Bデータ算出回
路57およびGデータ算出回路55を実行する。
FIG. 18 is a diagram for describing a configuration example of first method section 33 according to Embodiment 3 of the present invention. Referring to FIG. 18, first method unit 33 includes a pixel determination circuit 60, a G data calculation circuit 55, and R / B data calculation circuits 56 and 57. The pixel determination circuit 60 determines whether the input pixel is a G pixel, an R pixel, or a B pixel. If it is a G pixel, the R / B data calculation circuit 56
Is an R pixel or a B pixel, the R / B data calculation circuit 57 and the G data calculation circuit 55 are executed.

【0091】R/Bデータ算出回路56は、式(29)
〜(30)で説明したように、GデータおよびRデータ
に基づきG画素におけるRデータを算出し、Gデータお
よびBデータに基づきG画素におけるBデータを算出す
る。
The R / B data calculation circuit 56 uses the equation (29)
As described in (30), the R data at the G pixel is calculated based on the G data and the R data, and the B data at the G pixel is calculated based on the G data and the B data.

【0092】Gデータ算出回路55は、実施の形態1で
説明したGデータ算出回路50、比較判定回路51およ
びセレクタ52を含み、R画素またはB画素のGデータ
を算出する。
The G data calculation circuit 55 includes the G data calculation circuit 50, the comparison / determination circuit 51, and the selector 52 described in the first embodiment, and calculates G data of an R pixel or a B pixel.

【0093】R/Bデータ算出回路57は、式(32)
で説明したように、RデータおよびGデータに基づきB
画素のRデータを、BデータおよびGデータに基づきR
画素のBデータを算出する。
The R / B data calculation circuit 57 uses the equation (32)
As described in the above, B based on R data and G data
The R data of the pixel is calculated based on the B data and the G data.
The B data of the pixel is calculated.

【0094】図19は、本発明の実施の形態3における
第2方式部34の構成を説明するための図である。第2
方式部34は、画素判定回路60、Gデータ算出回路6
5、R/Bデータ算出回路66および67を含む。画素
判定回路60の判定に基づき、G画素であれば、R/B
データ算出回路66を、R画素またはB画素であれば、
R/Bデータ算出回路67およびGデータ算出回路65
を実行する。
FIG. 19 is a diagram for illustrating a configuration of second method section 34 according to the third embodiment of the present invention. Second
The method unit 34 includes a pixel determination circuit 60, a G data calculation circuit 6
5, including R / B data calculation circuits 66 and 67. If it is a G pixel based on the determination of the pixel determination circuit 60, R / B
If the data calculation circuit 66 is an R pixel or a B pixel,
R / B data calculation circuit 67 and G data calculation circuit 65
Execute

【0095】R/Bデータ算出回路66は、式(36)
〜(37)で説明したように、GデータおよびRデータ
に基づきG画素におけるRデータを算出し、Gデータお
よびBデータに基づきG画素におけるBデータを算出す
る。
The R / B data calculation circuit 66 uses the equation (36)
As described in (37), the R data at the G pixel is calculated based on the G data and the R data, and the B data at the G pixel is calculated based on the G data and the B data.

【0096】Gデータ算出回路65は、実施の形態1で
説明したGデータ算出回路53、比較判定回路54およ
びセレクタ52を含み、R画素またはB画素のGデータ
を算出する。
The G data calculation circuit 65 includes the G data calculation circuit 53, the comparison determination circuit 54, and the selector 52 described in the first embodiment, and calculates G data of an R pixel or a B pixel.

【0097】R/Bデータ算出回路67は、式(38)
で説明したように、RデータおよびGデータに基づきB
画素のRデータを、BデータおよびGデータに基づきR
画素のBデータを算出する。
The R / B data calculation circuit 67 uses the equation (38)
As described in the above, B based on R data and G data
The R data of the pixel is calculated based on the B data and the G data.
The B data of the pixel is calculated.

【0098】図13におけるセレクタ5は、G、B、R
画素のそれぞれについて、方式選択部32の出力する選
択信号が真の場合(データの対称性あり)は、第2方式
部34の補間データを、それ以外の場合には第2方式部
33の補間データを出力する。
The selector 5 shown in FIG.
For each of the pixels, when the selection signal output from the method selecting unit 32 is true (there is data symmetry), the interpolation data of the second method unit 34 is used. Output data.

【0099】なお、本発明の実施の形態3においては入
力パターンが1種類であるためカウンタは不要となる。
したがって、単純な回路構成でかつ実施の形態1と同様
に高画質な画像を得ることが可能となる。
In the third embodiment of the present invention, since there is only one type of input pattern, no counter is required.
Therefore, a high-quality image can be obtained with a simple circuit configuration as in the first embodiment.

【0100】[実施の形態4]本発明の実施の形態4に
おいては、補間対象の画素と同じ種類の色データを有す
る画素を用いて、垂直方向、水平方向および斜め方向の
対称性を検出する。
[Fourth Embodiment] In a fourth embodiment of the present invention, the symmetry in the vertical, horizontal, and oblique directions is detected using pixels having the same type of color data as the pixel to be interpolated. .

【0101】図20は、実施の形態4における画像補間
部400の構成を説明するための図である。図20に示
す画像補間部400は、図13に示す特徴抽出部31に
代わり水平方向、垂直方向および斜め方向の特徴を抽出
する特徴抽出部41を、方式選択部32に代わり方式選
択部42を備える。
FIG. 20 is a diagram for describing a configuration of image interpolating section 400 according to the fourth embodiment. An image interpolating unit 400 shown in FIG. 20 includes a feature extracting unit 41 that extracts horizontal, vertical, and oblique features instead of the feature extracting unit 31 shown in FIG. Prepare.

【0102】図21は、本発明の実施の形態4における
特徴抽出部41の構成の概要について説明するための図
である。図21を参照して、特徴抽出部41は、画素抽
出部35、第1評価部8a、第2評価部8b、第3評価
部8c、第4評価部8d、第5評価部8e、第6評価部
8f、第7評価部8gおよび第8評価部8hを含む。
FIG. 21 is a diagram for describing an outline of the configuration of feature extracting section 41 according to Embodiment 4 of the present invention. Referring to FIG. 21, feature extraction unit 41 includes pixel extraction unit 35, first evaluation unit 8a, second evaluation unit 8b, third evaluation unit 8c, fourth evaluation unit 8d, fifth evaluation unit 8e, and sixth evaluation unit 8e. An evaluation unit 8f, a seventh evaluation unit 8g, and an eighth evaluation unit 8h are included.

【0103】第1評価部8a〜第6評価部8fは、実施
の形態3で説明したように(X11、X13、X1
5)、(X31、X33、X35)、(X51、X5
3、X55)、(X11、X31、X51)、(X1
3、X33、X53)および(X15、X35、X5
5)についての対称性の有無を評価する。
As described in the third embodiment, the first evaluation unit 8a to the sixth evaluation unit 8f (X11, X13, X1
5), (X31, X33, X35), (X51, X5
3, X55), (X11, X31, X51), (X1
3, X33, X53) and (X15, X35, X5
The presence or absence of symmetry in 5) is evaluated.

【0104】第7評価部8gおよび第8評価部8hは、
斜め方向の対称性について評価する。具体的には、第7
評価部8gは、(X11、X33、X55)について次
式(39)が成り立つか否かを調べる。また、第8評価
部8hは、(X15、X33、X51)について次式
(40)が成立するか否かを調べる。
The seventh evaluation unit 8g and the eighth evaluation unit 8h
Evaluate the symmetry in the oblique direction. Specifically, the seventh
The evaluation unit 8g checks whether or not the following equation (39) holds for (X11, X33, X55). Further, the eighth evaluation unit 8h checks whether or not the following expression (40) holds for (X15, X33, X51).

【0105】 X11−X55<th1、(X11+X55)−X33>th2 …(39) X15−X51<th1、(X15+X51)−X33>th2 …(40) なお、th1、th2はしきい値であり、th1>th
2が成り立つ任意の数で実験的に定めるものとする。特
徴抽出部41は、第1評価部8a〜第8評価部8hの結
果(真・偽)を出力A1〜A8する。
X11−X55 <th1, (X11 + X55) −X33> th2 (39) X15−X51 <th1, (X15 + X51) −X33> th2 (40) where th1 and th2 are thresholds and th1 > Th
It is determined experimentally by an arbitrary number in which 2 holds. The feature extraction unit 41 outputs the results (true / false) of the first evaluation unit 8a to the eighth evaluation unit 8h as A1 to A8.

【0106】図22は、本発明の実施の形態4における
方式選択部42の構成の概要を説明するための図であ
る。方式選択部42は、水平方向対称性判定回路9、垂
直方向対称性判定回路10、斜め方向対称性判定回路4
6およびOR回路27を含む。斜め方向対称性判定回路
46は、第7評価部8gの出力A7または第8評価部8
hの出力A8が真の場合には真を、それ以外の場合には
偽を出力する。OR回路27は、水平方向対称性判定回
路9の出力、垂直方向対称性判定回路10の出力および
斜め方向対称性判定回路46の出力のうちいずれか一つ
が真であれば真を、それ以外の場合は偽を出力する。O
R回路27から出力される選択信号が真の場合には、図
20に示すセレクタ5は、第2方式部34の補間データ
を、それ以外の場合には第1方式部33の補間データを
選択的に出力する。
FIG. 22 is a diagram for describing an outline of the configuration of system selecting section 42 according to the fourth embodiment of the present invention. The method selection unit 42 includes a horizontal symmetry determination circuit 9, a vertical symmetry determination circuit 10, and a diagonal symmetry determination circuit 4.
6 and an OR circuit 27. The oblique direction symmetry determination circuit 46 outputs the output A7 of the seventh evaluation unit 8g or the eighth evaluation unit 8
If the output A8 of h is true, it outputs true; otherwise, it outputs false. The OR circuit 27 outputs true if any one of the output of the horizontal symmetry determining circuit 9, the output of the vertical symmetry determining circuit 10, and the output of the oblique symmetry determining circuit 46 is true, and If false, output false. O
When the selection signal output from the R circuit 27 is true, the selector 5 shown in FIG. 20 selects the interpolation data of the second method unit 34, and otherwise selects the interpolation data of the first method unit 33. Output.

【0107】以上のように、本発明の実施の形態4にお
ける構成をとることにより、すべての画素に対して最適
な補間処理を行なうことができるため、高画質な画像を
得ることが可能となる。また、カウンタを必要としない
ため回路構成を単純化することが可能となる。
As described above, by adopting the configuration of the fourth embodiment of the present invention, it is possible to perform an optimal interpolation process for all the pixels, so that a high quality image can be obtained. . Further, since a counter is not required, the circuit configuration can be simplified.

【0108】なお、実施の形態1〜実施の形態4はハー
ドウェアまたはソフトウェアのいずれにおいても実現可
能である。
The first to fourth embodiments can be realized by either hardware or software.

【0109】今回開示された実施の形態はすべての点で
例示であって制限的なものではないと考えられるべきで
ある。本発明の範囲は上記した実施の形態の説明ではな
くて特許請求の範囲によって示され、特許請求の範囲と
均等の意味および範囲内でのすべての変更が含まれるこ
とが意図される。
The embodiments disclosed this time are to be considered in all respects as illustrative and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description of the embodiments, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

【0110】[0110]

【発明の効果】以上のように、請求項1および請求項2
に係る画素データ処理装置によれば、各々が特定の色デ
ータを有する複数の画素について、色データの特徴に応
じて補間データを選択するように構成することにより、
高精度な画像を再現することが可能となる。また、補間
処理を並列して実施することにより高速性を満たすこと
が可能となる。
As described above, claims 1 and 2 are as described above.
According to the pixel data processing device according to the above, for a plurality of pixels each having specific color data, by configuring to select the interpolation data according to the characteristics of the color data,
It is possible to reproduce a highly accurate image. In addition, it is possible to satisfy high speed by performing the interpolation processing in parallel.

【0111】請求項3に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、特に色デー
タの水平方向・垂直方向の対称性を特徴として抽出し、
これにより補正データを選択する。この結果、対称性が
認められる場合には色の変化の割合に基づく補正データ
を、その他の場合には、色の変化の割合に基づく補正デ
ータを選択的に出力できるため適切な補間が可能とな
る。
A pixel data processing apparatus according to a third aspect is the pixel data processing apparatus according to the second aspect, wherein the pixel data processing apparatus extracts, in particular, the symmetry of the color data in the horizontal and vertical directions,
Thereby, the correction data is selected. As a result, when symmetry is recognized, correction data based on the rate of color change can be selectively output, and in other cases, correction data based on the rate of color change can be selectively output, so that appropriate interpolation can be performed. Become.

【0112】請求項4に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、特に色デー
タの水平方向・垂直方向・斜め方向の対称性を特徴とし
て抽出し、これにより補正データを選択する。この結
果、対称性が認められる場合には色の変化の割合に基づ
く補正データを、その他の場合には、色の変化の割合に
基づく補正データを選択的に出力できるため高精度な補
間が可能となる。
A pixel data processing apparatus according to a fourth aspect is the pixel data processing apparatus according to the second aspect, and in particular, extracts the feature of the horizontal, vertical, and oblique symmetry of the color data, thereby extracting Select the correction data. As a result, correction data based on the rate of color change can be selectively output when symmetry is recognized, and correction data based on the rate of color change can be selectively output otherwise. Becomes

【0113】請求項5に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、Gデータの
対称性を特徴として抽出する。データ数の最も多いGデ
ータを用いるため、高精度な特徴抽出が可能となる。
A pixel data processing apparatus according to a fifth aspect is the pixel data processing apparatus according to the second aspect, and extracts the characteristic of the symmetry of the G data. Since the G data having the largest number of data is used, highly accurate feature extraction becomes possible.

【0114】請求項6に係る画素データ処理装置は、請
求項2に係る画素データ処理装置であって、補間する画
素と同色の色データの対称性を特徴として抽出する。こ
れにより、ベイヤー配列のCCDを介して得た色データ
の全てに対して対称性を容易に抽出することが可能とな
る。
A pixel data processing apparatus according to a sixth aspect is the pixel data processing apparatus according to the second aspect, wherein the pixel data processing apparatus extracts the feature of the symmetry of color data of the same color as the pixel to be interpolated. This makes it possible to easily extract the symmetry for all the color data obtained via the Bayer array CCD.

【0115】さらに、請求項7および請求項8に係る画
素データ処理方法によれば、各々が特定の色データを有
する複数の画素について、色データの特徴に応じて補間
データを選択することにより、高精度な画像を再現する
ことが可能となる。また、補間処理を並列して実施する
ことにより高速性を満たすことが可能となる。
Further, according to the pixel data processing method according to the seventh and eighth aspects, interpolation data is selected for a plurality of pixels each having specific color data according to the characteristics of the color data. It is possible to reproduce a highly accurate image. In addition, it is possible to satisfy high speed by performing the interpolation processing in parallel.

【0116】請求項9に係る画素データ処理方法は、請
求項8に係る画素データ処理方法であって、特に色デー
タの水平方向・垂直方向の対称性を特徴として抽出し、
これにより補正データを選択する。この結果、対称性が
認められる場合には色の変化の割合に基づく補正データ
を、その他の場合には、色の変化の割合に基づく補正デ
ータを選択的に出力できるため適切な補間が可能とな
る。
A pixel data processing method according to a ninth aspect is the pixel data processing method according to the eighth aspect, in which the color data is extracted as a feature of the horizontal and vertical symmetry.
Thereby, the correction data is selected. As a result, when symmetry is recognized, correction data based on the rate of color change can be selectively output, and in other cases, correction data based on the rate of color change can be selectively output, so that appropriate interpolation can be performed. Become.

【0117】請求項10に係る画素データ処理方法は、
請求項8に係る画素データ処理方法であって、特に色デ
ータの水平方向・垂直方向・斜め方向の対称性を特徴と
して抽出し、これにより補正データを選択する。この結
果、対称性が認められる場合には色の変化の割合に基づ
く補正データを、その他の場合には、色の変化の割合に
基づく補正データを選択的に出力できるため高精度な補
間が可能となる。
According to a tenth aspect of the present invention, there is provided a pixel data processing method comprising:
9. The pixel data processing method according to claim 8, wherein in particular, the symmetry of the color data in the horizontal direction, the vertical direction, and the oblique direction is extracted as a feature, and the correction data is selected. As a result, correction data based on the rate of color change can be selectively output when symmetry is recognized, and correction data based on the rate of color change can be selectively output otherwise. Becomes

【0118】請求項11に係る画素データ処理方法は、
請求項8に係る画素データ処理方法であって、Gデータ
の対称性を特徴として抽出する。データ数の最も多いG
データを用いるため、高精度な特徴抽出が可能となる。
The pixel data processing method according to claim 11 is
9. The pixel data processing method according to claim 8, wherein the symmetry of the G data is extracted as a feature. G with the largest number of data
Since data is used, highly accurate feature extraction is possible.

【0119】請求項12に係る画素データ処理方法は、
請求項8に係る画素データ処理方法であって、補間する
画素と同色の色データの対称性を特徴として抽出する。
これにより、ベイヤー配列のCCDを介して得た色デー
タの全てに対して対称性を容易に抽出することが可能と
なる。
According to a twelfth aspect of the present invention, there is provided a pixel data processing method comprising:
9. The pixel data processing method according to claim 8, wherein the feature is that the symmetry of color data of the same color as the pixel to be interpolated is extracted as a feature.
This makes it possible to easily extract the symmetry for all the color data obtained via the Bayer array CCD.

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

【図1】 本発明の実施の形態1における画素データ処
理装置および画素データ処理方法が適用されるデジタル
スチルカメラ1000の構成の概要を示すブロック図で
ある。
FIG. 1 is a block diagram illustrating an outline of a configuration of a digital still camera 1000 to which a pixel data processing device and a pixel data processing method according to Embodiment 1 of the present invention are applied.

【図2】 本発明の実施の形態1における画像補間部1
00の構成を説明するための図である。
FIG. 2 is an image interpolation unit 1 according to the first embodiment of the present invention.
FIG. 9 is a diagram for explaining the configuration of the 00.

【図3】 CCD104に含まれるベイヤー型原色フィ
ルタの特徴について説明するための図である。
FIG. 3 is a diagram illustrating characteristics of a Bayer type primary color filter included in a CCD 104;

【図4】 本発明の実施の形態1における入力パターン
を説明するための図である。
FIG. 4 is a diagram for explaining an input pattern according to the first embodiment of the present invention.

【図5】 本発明の実施の形態1における特徴抽出部1
の構成の概要について説明するための図である。
FIG. 5 is a feature extraction unit 1 according to the first embodiment of the present invention.
FIG. 2 is a diagram for describing an outline of the configuration of FIG.

【図6】 本発明の実施の形態1における方式選択部2
の構成の概要について説明するための図である。
FIG. 6 is a diagram illustrating a method selection unit 2 according to the first embodiment of the present invention.
FIG. 2 is a diagram for describing an outline of the configuration of FIG.

【図7】 補間処理について説明するための図である。FIG. 7 is a diagram illustrating an interpolation process.

【図8】 本発明の実施の形態1における第1方式部3
の構成例について説明するための図である。
FIG. 8 shows a first method unit 3 according to the first embodiment of the present invention.
FIG. 3 is a diagram for describing a configuration example of FIG.

【図9】 本発明の実施の形態1における第2方式部4
の構成例について説明するための図である。
FIG. 9 is a diagram illustrating a second method unit 4 according to the first embodiment of the present invention.
FIG. 3 is a diagram for describing a configuration example of FIG.

【図10】 本発明の実施の形態2における画像補間部
200の構成の概要について説明するための図である。
FIG. 10 is a diagram for describing an outline of a configuration of an image interpolation unit 200 according to Embodiment 2 of the present invention.

【図11】 本発明の実施の形態2における特徴抽出部
21の構成の概要について説明するための図である。
FIG. 11 is a diagram for describing an outline of a configuration of a feature extraction unit 21 according to the second embodiment of the present invention.

【図12】 本発明の実施の形態2における方式選択部
22の構成の概要について説明するための図である。
FIG. 12 is a diagram for describing an outline of a configuration of a method selection unit 22 according to the second embodiment of the present invention.

【図13】 本発明の実施の形態3における画像補間部
300の構成の概要について説明するための図である。
FIG. 13 is a diagram for describing an outline of a configuration of an image interpolation unit 300 according to Embodiment 3 of the present invention.

【図14】 本発明の実施の形態3における入力パター
ンについて説明するための図である。
FIG. 14 is a diagram for describing an input pattern according to Embodiment 3 of the present invention.

【図15】 本発明の実施の形態3における特徴抽出部
31の構成の概要について説明するための図である。
FIG. 15 is a diagram for describing an outline of a configuration of a feature extracting unit 31 according to Embodiment 3 of the present invention.

【図16】 本発明の実施の形態3における方式選択部
32の構成の概要について説明するための図である。
FIG. 16 is a diagram for describing an outline of a configuration of a method selection unit 32 according to Embodiment 3 of the present invention.

【図17】 補間処理について説明するための概念図で
ある。
FIG. 17 is a conceptual diagram for describing an interpolation process.

【図18】 本発明の実施の形態3における第1方式部
33の構成例について説明するための図である。
FIG. 18 is a diagram for describing a configuration example of a first method unit 33 according to Embodiment 3 of the present invention.

【図19】 本発明の実施の形態3における第2方式部
34の構成例について説明するための図である。
FIG. 19 is a diagram for describing a configuration example of a second method unit according to Embodiment 3 of the present invention.

【図20】 本発明の実施の形態4における画像補間部
400の構成の概要について説明するための図である。
FIG. 20 is a diagram for describing an outline of a configuration of an image interpolation unit 400 according to Embodiment 4 of the present invention.

【図21】 本発明の実施の形態4における特徴抽出部
41の構成の概要について説明するための図である。
FIG. 21 is a diagram for describing an outline of a configuration of a feature extraction unit 41 according to Embodiment 4 of the present invention.

【図22】 本発明の実施の形態4における方式選択部
42の構成の概要について説明するための図である。
FIG. 22 is a diagram for describing an outline of a configuration of a scheme selection unit according to Embodiment 4 of the present invention.

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

102 光学系、104 CCD、106 周辺回路、
112 データ処理部、116 カメラ制御部、118
入出力インタフェース回路、114 メモリ、100
〜400 画像補間部、1,21,31,41 特徴抽
出部、2,22,32,42 方式選択部、3,33
第1方式部、4,34 第2方式部、5セレクタ、8a
〜8f 評価部、7 カウンタ、6,35 画像抽出
部、1000 デジタルスチルカメラ。
102 optical system, 104 CCD, 106 peripheral circuit,
112 data processing unit, 116 camera control unit, 118
I / O interface circuit, 114 memory, 100
~ 400 Image interpolation unit, 1,21,31,41 Feature extraction unit, 2,22,32,42 Method selection unit, 3,33
1st method part, 4,34 2nd method part, 5 selectors, 8a
88f Evaluation unit, 7 counter, 6,35 image extraction unit, 1000 digital still camera.

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 複数の画素に対して配置される複数の色
フィルタから出力される複数の色データを処理する画素
データ処理装置であって、 前記複数の色データの特徴を抽出する特徴抽出部と、 補間対象画素に色データを補間するための互いに異なる
処理を並列して行なう補間部と、 前記特徴抽出部において抽出された前記特徴に基づき、
前記補間部の出力する複数の補間処理結果のうちいずれ
か一つを選択的に出力するセレクタとを備え、 前記補間部は、 前記補間対象画素の周辺領域における画素の色データの
変化量に基づき前記色データを補間する第1補間処理回
路と、 前記補間対象画素の周辺領域における、前記補間する色
データと同種類の色データと前記補間対象画素と同種類
の画素の色データとの比に基づき、前記色データを補間
する第2補間処理回路とを含む、画素データ処理装置。
1. A pixel data processing device for processing a plurality of color data output from a plurality of color filters arranged for a plurality of pixels, wherein the feature extraction unit extracts features of the plurality of color data. And an interpolation unit that performs mutually different processes for interpolating the color data on the interpolation target pixel in parallel, based on the feature extracted by the feature extraction unit,
A selector that selectively outputs any one of a plurality of interpolation processing results output by the interpolation unit, wherein the interpolation unit is configured to perform a process based on a change amount of color data of a pixel in a peripheral region of the interpolation target pixel. A first interpolation processing circuit that interpolates the color data; and a ratio of color data of the same type as the color data to be interpolated to color data of the same type of pixel as the interpolation target pixel in a peripheral area of the interpolation target pixel. A second interpolation processing circuit for interpolating the color data based on the color data.
【請求項2】 前記特徴抽出部は、 前記補間対象画素の周辺領域における画素の色データ
が、前記補間対象画素に対して対称性があるか否かを検
出し、 前記セレクタは、前記対称性がある場合には、前記第2
補間処理回路の出力を選択的に出力する、請求項1記載
の画素データ処理装置。
2. The feature extraction unit detects whether color data of a pixel in a peripheral area of the pixel to be interpolated has symmetry with respect to the pixel to be interpolated. If there is, the second
2. The pixel data processing device according to claim 1, wherein the output of the interpolation processing circuit is selectively output.
【請求項3】 前記複数の画素は、 垂直方向および水平方向にマトリックス状に配置され、 前記特徴抽出部は、 垂直方向の前記対称性を検出する第1評価部と、 水平方向の前記対称性を検出する第2評価部とを含み、 前記第1評価部および前記第2評価部の結果を統合し
て、前記第1補間処理回路または前記第2補間処理回路
のいずれか一方を選択するための選択信号を出力する方
式選択部をさらに備え、 前記セレクタは、前記選択信号に応じて、前記第1補間
処理回路または前記第2補間処理回路のいずれか一方の
出力を選択的に出力する、請求項2記載の画素データ処
理装置。
3. The plurality of pixels are arranged in a matrix in a vertical direction and a horizontal direction. The feature extraction unit includes: a first evaluation unit that detects the symmetry in the vertical direction; and the symmetry in the horizontal direction. And a second estimator for detecting the first and second interpolators, and integrating the results of the first evaluator and the second evaluator to select either the first interpolation circuit or the second interpolation circuit. And a selector for selectively outputting one of the outputs of the first interpolation processing circuit and the second interpolation processing circuit according to the selection signal. The pixel data processing device according to claim 2.
【請求項4】 前記複数の画素は、 垂直方向および水平方向にマトリックス状に配置され、 前記特徴抽出部は、 垂直方向の前記対称性を検出する第1評価部と、 水平方向の前記対称性を検出する第2評価部と、 斜め方向の前記対称性を検出する第3評価部とを含み、 前記第1評価部、前記第2評価部および前記第3評価部
の結果を統合して、前記第1補間処理回路または前記第
2補間処理回路のいずれか一方を選択するための選択信
号を出力する方式選択部をさらに備え、 前記セレクタは、前記選択信号に応じて、前記第1補間
処理回路または前記第2補間処理回路のいずれか一方の
出力を選択的に出力する、請求項2記載の画素データ処
理装置。
4. The method according to claim 1, wherein the plurality of pixels are arranged in a matrix in a vertical direction and a horizontal direction, the feature extraction unit includes: a first evaluation unit that detects the symmetry in a vertical direction; And a third estimator for detecting the symmetry in the oblique direction, integrating the results of the first evaluator, the second evaluator, and the third evaluator, A selector for outputting a selection signal for selecting one of the first interpolation processing circuit and the second interpolation processing circuit, wherein the selector performs the first interpolation processing in accordance with the selection signal. 3. The pixel data processing device according to claim 2, wherein the output of one of the circuit and the second interpolation processing circuit is selectively output.
【請求項5】 前記複数の色フィルタは、 ベイヤー配列に従って配置され、 前記複数の色データのそれぞれは、 赤データ、青データ、緑データのいずれかであって、 前記特徴抽出部は、 前記緑データの対称性を検出する、請求項2記載の画素
データ処理装置。
5. The color filter according to claim 1, wherein the plurality of color filters are arranged according to a Bayer array, and each of the plurality of color data is one of red data, blue data, and green data. 3. The pixel data processing device according to claim 2, which detects data symmetry.
【請求項6】 前記特徴抽出部は、 前記補間対象画素の色データと同種類の色データの対称
性を検出する、請求項2記載の画素データ処理装置。
6. The pixel data processing device according to claim 2, wherein the feature extraction unit detects the symmetry of the same type of color data as the color data of the pixel to be interpolated.
【請求項7】 複数の画素のそれぞれに対して複数の色
フィルタから出力される複数の色データを処理して画像
を再現する画素データ処理方法であって、 補間対象画素に色データを補間するための互いに異なる
複数の補間処理を並列して行なう補間ステップと、 前記補間ステップに同期して、複数の色データの特徴を
抽出する特徴抽出ステップと、 前記抽出された特徴に応じて、前記複数の補間処理の結
果のうちいずれか一つを選択的に出力する選択ステップ
とを備え、 前記複数の補間処理は、 前記補間対象画素の周辺領域における画素の色データの
変化量に基づき前記色データを補間する第1補間処理
と、前記補間対象画素の周辺領域における、前記補間す
る色データと同種類の色データと前記補間対象画素と同
種類の画素の色データとの比に基づき前記色データを補
間する第2補間処理とを含む、画素データ処理方法。
7. A pixel data processing method for reproducing an image by processing a plurality of color data output from a plurality of color filters for each of a plurality of pixels, wherein the color data is interpolated to a pixel to be interpolated. An interpolation step of performing a plurality of different interpolation processes in parallel for each other; a feature extraction step of extracting a feature of a plurality of color data in synchronization with the interpolation step; And a selecting step of selectively outputting any one of the results of the interpolation processing. The plurality of interpolation processings are performed based on a change amount of color data of a pixel in a peripheral area of the interpolation target pixel. A first interpolation process of interpolating the color data of the same type as the color data to be interpolated and the color data of the same type of pixel as the interpolation target pixel in the peripheral area of the interpolation target pixel. And a second interpolation process of interpolating the color data based on the ratio, the pixel data processing method.
【請求項8】 前記特徴抽出ステップは、 前記補間対象画素の周辺領域に位置する画素の色データ
が、前記補間対象画素に対して対称性があるか否かを検
出し、 前記選択ステップは、 前記対称性がある場合には、前記第2補間処理の結果を
選択的に出力する、請求項7記載の画素データ処理方
法。
8. The feature extracting step detects whether or not color data of a pixel located in a peripheral area of the interpolation target pixel is symmetric with respect to the interpolation target pixel. The pixel data processing method according to claim 7, wherein when the symmetry is present, a result of the second interpolation processing is selectively output.
【請求項9】 前記複数の画素は、 垂直方向および水平方向にマトリックス状に配置され、 前記特徴抽出ステップは、 垂直方向の前記対称性、および水平方向の前記対称性を
検出する評価ステップと、 前記評価ステップの結果を統合して、前記第1補間処理
または前記第2補間処理のいずれか一方を選択するため
の選択信号を出力する方式選択ステップとを含み、 前記選択ステップは、 前記選択信号に応じて、前記第1補間処理または前記第
2補間処理のいずれか一方の出力を選択的に出力する、
請求項8記載の画素データ処理方法。
9. The method according to claim 9, wherein the plurality of pixels are arranged in a matrix in a vertical direction and a horizontal direction, and the feature extracting step includes an evaluation step of detecting the symmetry in a vertical direction and the symmetry in a horizontal direction; A method selection step of integrating a result of the evaluation step and outputting a selection signal for selecting one of the first interpolation processing and the second interpolation processing, wherein the selection step includes: And selectively outputs one of the outputs of the first interpolation process and the second interpolation process.
The pixel data processing method according to claim 8.
【請求項10】 前記複数の画素は、 垂直方向および水平方向にマトリックス状に配置され、 前記特徴抽出部は、 垂直方向、水平方向および斜め方向の前記対称性を検出
する評価ステップと、 前記評価ステップの結果を統合して、前記第1補間処理
または前記第2補間処理のいずれか一方を選択するため
の選択信号を出力する方式選択ステップとを含み、 前記選択ステップは、 前記選択信号に応じて、前記第1補間処理または前記第
2補間処理のいずれか一方の出力を選択的に出力する、
請求項8記載の画素データ処理方法。
10. The method according to claim 10, wherein the plurality of pixels are arranged in a matrix in a vertical direction and a horizontal direction, wherein the feature extracting unit detects the symmetry in a vertical direction, a horizontal direction, and an oblique direction; Integrating a result of the step and outputting a selection signal for selecting one of the first interpolation processing and the second interpolation processing, wherein the selection step is performed according to the selection signal. Selectively outputting either one of the first interpolation processing and the second interpolation processing,
The pixel data processing method according to claim 8.
【請求項11】 複数の種類の色フィルタは、 ベイヤー配列に従って配置され、 前記複数の色データのそれぞれは、 赤データ、青データ、緑データのいずれかであって、 前記特徴抽出ステップは、 前記緑データの対称性を検出する、請求項8記載の画素
データ処理方法。
11. A plurality of types of color filters are arranged according to a Bayer array, wherein each of the plurality of color data is one of red data, blue data, and green data, and the feature extracting step includes: 9. The pixel data processing method according to claim 8, wherein a symmetry of the green data is detected.
【請求項12】 前記特徴抽出ステップは、前記補間対
象画素の色データと同種類の色データの対称性を検出す
る、請求項8記載の画素データ処理方法。
12. The pixel data processing method according to claim 8, wherein the feature extracting step detects a symmetry of color data of the same type as the color data of the pixel to be interpolated.
JP15910799A 1999-06-07 1999-06-07 Pixel data processing apparatus and pixel data processing method Expired - Fee Related JP4371469B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15910799A JP4371469B2 (en) 1999-06-07 1999-06-07 Pixel data processing apparatus and pixel data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15910799A JP4371469B2 (en) 1999-06-07 1999-06-07 Pixel data processing apparatus and pixel data processing method

Publications (2)

Publication Number Publication Date
JP2000350223A true JP2000350223A (en) 2000-12-15
JP4371469B2 JP4371469B2 (en) 2009-11-25

Family

ID=15686408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15910799A Expired - Fee Related JP4371469B2 (en) 1999-06-07 1999-06-07 Pixel data processing apparatus and pixel data processing method

Country Status (1)

Country Link
JP (1) JP4371469B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004066637A1 (en) * 2003-01-22 2004-08-05 Olympus Corporation Imaging system and image processing program
JP2006115408A (en) * 2004-10-18 2006-04-27 Mitsubishi Electric Corp Pixel signal generation device, imaging device, and pixel signal generation method
KR100967742B1 (en) 2004-09-07 2010-07-06 크로스텍 캐피탈, 엘엘씨 Method for color interpolation of image sensor
CN101337631B (en) * 2007-07-04 2011-09-28 东芝电梯株式会社 Elevator group management system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004066637A1 (en) * 2003-01-22 2004-08-05 Olympus Corporation Imaging system and image processing program
KR100967742B1 (en) 2004-09-07 2010-07-06 크로스텍 캐피탈, 엘엘씨 Method for color interpolation of image sensor
USRE43239E1 (en) 2004-09-07 2012-03-13 Intellectual Ventures Ii Llc Color interpolation method of image sensor
JP2006115408A (en) * 2004-10-18 2006-04-27 Mitsubishi Electric Corp Pixel signal generation device, imaging device, and pixel signal generation method
JP4583871B2 (en) * 2004-10-18 2010-11-17 三菱電機株式会社 Pixel signal generation device, imaging device, and pixel signal generation method
CN101337631B (en) * 2007-07-04 2011-09-28 东芝电梯株式会社 Elevator group management system

Also Published As

Publication number Publication date
JP4371469B2 (en) 2009-11-25

Similar Documents

Publication Publication Date Title
EP1357760B1 (en) Image processing device and method
US7667738B2 (en) Image processing device for detecting chromatic difference of magnification from raw data, image processing program, and electronic camera
JP2931520B2 (en) Color separation circuit for single-chip color video camera
KR100505681B1 (en) Interpolator providing for high resolution by interpolation with adaptive filtering for Bayer pattern color signal, digital image signal processor comprising it, and method thereof
US7092020B2 (en) Resizing images captured by an electronic still camera
US8031232B2 (en) Image pickup apparatus including a first image formation system and a second image formation system, method for capturing image, and method for designing image pickup apparatus
US20080123997A1 (en) Providing a desired resolution color image
US7995868B2 (en) Image processing method and image processing device
EP1351521A1 (en) Imaging device
JP5513978B2 (en) Imaging apparatus, integrated circuit, and image processing method
JP4329542B2 (en) Image processing apparatus and image processing program for determining similarity of pixels
JP2010034964A (en) Image composition apparatus, image composition method and image composition program
JP4649171B2 (en) Magnification Chromatic Aberration Correction Device, Magnification Chromatic Aberration Correction Method, and Magnification Chromatic Aberration Correction Program
US11089211B2 (en) Image processing apparatus, image processing method, and program for switching between two types of composite images
JP5212046B2 (en) Digital camera, image processing apparatus, and image processing program
CN101854462A (en) Image processing equipment, image processing method and computer program
WO2017154293A1 (en) Image processing apparatus, imaging apparatus, image processing method, and program
KR20040111184A (en) Data processing apparatus, image processing apparatus, camera, and data processing method
JP3862506B2 (en) Signal processing apparatus, signal processing method thereof, operation processing program thereof, and storage medium storing the program
JP4371469B2 (en) Pixel data processing apparatus and pixel data processing method
JP4448027B2 (en) Image processing apparatus and method, image output apparatus, and digital camera apparatus and portable information terminal using the same
JP2003134523A (en) Image pickup apparatus and method
JP2014110507A (en) Image processing device and image processing method
JP4128536B2 (en) Pixel signal processing apparatus and method
JPH0795595A (en) Color image pickup device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060605

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090602

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090730

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090901

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

Free format text: PAYMENT UNTIL: 20120911

Year of fee payment: 3

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

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120911

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120911

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130911

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees