JPH08307833A - Image data interpolation circuit - Google Patents

Image data interpolation circuit

Info

Publication number
JPH08307833A
JPH08307833A JP7105131A JP10513195A JPH08307833A JP H08307833 A JPH08307833 A JP H08307833A JP 7105131 A JP7105131 A JP 7105131A JP 10513195 A JP10513195 A JP 10513195A JP H08307833 A JPH08307833 A JP H08307833A
Authority
JP
Japan
Prior art keywords
interpolation
pixel data
pixel
image data
data
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.)
Pending
Application number
JP7105131A
Other languages
Japanese (ja)
Inventor
Keitarou Ato
恵太郎 阿戸
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP7105131A priority Critical patent/JPH08307833A/en
Publication of JPH08307833A publication Critical patent/JPH08307833A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Television Systems (AREA)
  • Complex Calculations (AREA)

Abstract

(57)【要約】 【目的】 フィールド画像から画素補間によりフレーム
画像を生成する場合において、画像データ入力時に補間
画素データを連続的に生成してフィールドメモリへのア
クセス回数を少なくすることを目的とする。 【構成】 入力されてくる画像データを記憶するメモリ
2と、前記入力されてくる画像データおよび前記メモリ
2から読み出した画像データにて補間画素の周囲画素の
画素データ群を保有するシフトレジスタ4,5と、前記
シフトレジスタ4,5の出力から周囲画素パターンの判
断材料となる演算結果を出力する演算器群6〜9と、前
記演算器群6〜9の演算結果を保持するフラグ群10〜
13と、前記フラグ群10〜13の出力に基づいて補間
方法を決定する補間判定部14と、決定された補間方法
にて補間画素データを生成して前記メモリ2に記憶させ
る手段(補間演算部15及び切替部16)とを備えた。
(57) [Abstract] [Purpose] When a frame image is generated from a field image by pixel interpolation, the purpose is to continuously generate interpolated pixel data at the time of image data input to reduce the number of access to the field memory. To do. A memory 2 for storing input image data, a shift register 4, which holds a pixel data group of pixels surrounding interpolation pixels based on the input image data and the image data read from the memory 2. 5, a group of arithmetic units 6 to 9 which outputs the arithmetic result as a judgment material of the surrounding pixel pattern from the outputs of the shift registers 4 and 5, and a group of flags 10 which holds the arithmetic result of the arithmetic units 6 to 9.
13, an interpolation determination unit 14 that determines an interpolation method based on the outputs of the flag groups 10 to 13, and a unit that generates interpolation pixel data by the determined interpolation method and stores the interpolation pixel data in the memory 2 (interpolation calculation unit). 15 and a switching unit 16).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、画像データ補間回路に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data interpolation circuit.

【0002】[0002]

【従来の技術】NTSC放送方式等の映像信号は、イン
ターレース方式を採用しており、1枚のフレーム画面は
2枚のフィールド画面から構成される。このフィールド
画面には、1/60秒の時間差があるため、フレーム画
像をビデオプリンタによってプリント出力すると、動画
の場合には、そのプリント出力画像の品質が、前記時間
差のために低下するという問題がある。
2. Description of the Related Art A video signal such as an NTSC broadcasting system adopts an interlace system, and one frame screen is composed of two field screens. Since there is a time difference of 1/60 seconds in this field screen, when a frame image is printed out by a video printer, in the case of a moving image, the quality of the printout image deteriorates due to the time difference. is there.

【0003】このため、1つのフィールド画面に対して
走査線補間処理を行うことでフレーム画面を生成し、こ
のフレーム画像をビデオプリンタによってプリント出力
することが考えられている。
Therefore, it is considered that a frame screen is generated by performing scanning line interpolation processing on one field screen and the frame image is printed out by a video printer.

【0004】そして、上記の走査線補間処理としては、
線形補間処理による輪郭部でのギザギザを解消するた
め、適応型走査線補間処理が提案されている。この適応
型走査線補間処理は、例えば、補間画素に近接している
6個の補間参照画素を抽出し、この抽出した補間参照画
素から最大値と最小値の平均値を算出し、この平均値を
閾値にして補間参照画素を2値値し、この2値化した結
果と所定のパターンテーブルとを照合することによって
補間方向を決定し、この決定した補間方向にある画素対
の平均値を算出して補間画素データを生成する方法であ
る。
The scanning line interpolation process is as follows.
An adaptive scanning line interpolation process has been proposed in order to eliminate the jaggedness at the contour portion due to the linear interpolation process. In this adaptive scanning line interpolation processing, for example, six interpolation reference pixels that are close to the interpolation pixel are extracted, an average value of the maximum value and the minimum value is calculated from the extracted interpolation reference pixels, and the average value is calculated. Is set as a threshold value, the interpolation reference pixel is binarized, the binarized result is collated with a predetermined pattern table to determine the interpolation direction, and the average value of pixel pairs in the decided interpolation direction is calculated. Is used to generate interpolated pixel data.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記の
補間画素データを生成する際に、例えば、フィールドメ
モリ中の画素データに逐次アクセスするとすれば、一つ
の補間画素生成に際して6回のメモリアクセスが必要に
なり、消費電力の増加や回路の複雑化を招来することに
なる。また、特開平4−188987号公報には、補間
画素に近接している6個の補間参照画素を抽出し、この
6個の画素のクロスの補間方向及び上下の補間方向にそ
れぞれ平均値を取り、これらの平均値に所定の重み付け
等を行って補間画素データを生成するようにした画像処
理装置が提案され、その回路構成が示されているが、こ
の回路構成では、補間画素データ生成のためのデータ入
力に際して別途フィールドメモリにアクセスする必要あ
る。
However, when the above-mentioned interpolation pixel data is generated, for example, if the pixel data in the field memory is sequentially accessed, it is necessary to access the memory six times to generate one interpolation pixel. Therefore, the power consumption increases and the circuit becomes complicated. Further, in Japanese Laid-Open Patent Publication No. 4-188987, six interpolation reference pixels that are close to the interpolation pixel are extracted, and average values are obtained in the cross interpolation direction and the upper and lower interpolation directions of the six pixels. , An image processing apparatus has been proposed in which these average values are subjected to predetermined weighting or the like to generate interpolated pixel data, and the circuit configuration thereof is shown. When inputting data, it is necessary to access the field memory separately.

【0006】本発明は、上記の事情に鑑み、画像データ
入力時に補間画素データを連続的に生成してフィールド
メモリへのアクセス回数を少なくすることを目的とす
る。
In view of the above circumstances, it is an object of the present invention to continuously generate interpolation pixel data when inputting image data and reduce the number of times of access to the field memory.

【0007】[0007]

【課題を解決するための手段】本発明の画像データ補間
回路は、入力されてくる画像データを記憶する記憶手段
と、前記入力されてくる画像データおよび前記記憶手段
から読み出した画像データを補間画素の周囲画素の画素
データ群として保有するシフトレジスタと、前記シフト
レジスタの出力から周囲画素パターンの判断材料となる
演算結果を出力する演算器群と、前記演算器群の演算結
果を保持するフラグ群と、前記フラグ群のフラグ内容に
基づいて補間方法を決定する補間方法決定部と、決定さ
れた補間方法にて補間画素データを生成して記憶手段に
記憶させる手段とを備えたことを特徴とする。
An image data interpolation circuit according to the present invention comprises a storage means for storing input image data, an interpolation pixel for storing the input image data and the image data read from the storage means. Shift register held as a pixel data group of surrounding pixels, an arithmetic unit group that outputs an operation result that is a judgment material of the peripheral pixel pattern from the output of the shift register, and a flag group that holds the operation result of the arithmetic unit group And an interpolation method determination unit that determines an interpolation method based on the flag contents of the flag group, and a unit that generates interpolation pixel data by the determined interpolation method and stores the interpolation pixel data in the storage unit. To do.

【0008】また、本発明の画像データ補間回路は、入
力されてくる画像データを記憶する記憶手段と、前記入
力されてくる画像データおよび前記記憶手段から読み出
した画像データを補間画素の周囲画素の画素データ群と
して保有する現画素用シフトレジスタと、暫定補間画素
データ群を保有する暫定補間画素用シフトレジスタと、
前記現画素用シフトレジスタ及び暫定補間画素用シフト
レジスタの出力から周囲画素パターンの判断材料となる
演算結果を出力する演算器群と、前記演算器群の演算結
果を保持するフラグ群と、前記フラグ群のフラグ内容に
基づいて第1回目処理として暫定補間画素データ生成の
ための補間方法を決定するとともに、第2回目処理とし
て前記暫定補間画素データも用いて最終補間画素データ
生成のための補間方法を決定する補間方法決定部と、決
定された補間方法にて第1回目処理として暫定補間画素
データを生成して前記暫定補間画素用シフトレジスタに
記憶させるとともに第2回目処理として最終補間画素デ
ータを生成して記憶手段に記憶させる手段とを備えたこ
とを特徴とする。
Further, the image data interpolation circuit of the present invention stores the input image data and the input image data and the image data read from the storage unit in the surrounding pixels of the interpolation pixel. A current pixel shift register held as a pixel data group, a temporary interpolation pixel shift register holding a temporary interpolation pixel data group,
An arithmetic unit group that outputs an arithmetic result serving as a judgment material of the surrounding pixel pattern from the outputs of the current pixel shift register and the temporary interpolation pixel shift register, a flag group that holds the arithmetic result of the arithmetic unit group, and the flag The interpolation method for generating the temporary interpolation pixel data is determined as the first processing based on the flag content of the group, and the interpolation method for generating the final interpolation pixel data is also used as the second processing by using the temporary interpolation pixel data. And a temporary interpolation pixel data is generated as the first processing by the determined interpolation method and stored in the temporary interpolation pixel shift register, and the final interpolation pixel data is stored as the second processing. Means for generating and storing in the storage means.

【0009】[0009]

【作用】上記第1の構成によれば、画像データの入力時
に、順次入力される各画素データをレジスタに格納し、
このレジスタに格納した画素データからフラグ情報を順
次生成し、このフラグ情報にて順次補間方法を決定して
順次補間画素データを生成するので、この補間画素デー
タ生成に際して一々メモリにアクセスする必要が無くな
り、メモリアクセス回数を減らすことができる。
According to the first configuration, when the image data is input, each pixel data that is sequentially input is stored in the register,
Since the flag information is sequentially generated from the pixel data stored in this register, the interpolation method is sequentially determined by this flag information, and the sequential interpolation pixel data is generated, it is not necessary to access the memory one by one when generating the interpolation pixel data. , The number of memory accesses can be reduced.

【0010】また、上記第2の構成のごとく、第1回目
の処理で暫定補間画素データを生成し、第2回目の処理
で前記暫定補間画素データを用いて最終補間画素データ
を生成する場合においても、上記と同様に、メモリへの
アクセス回数を少なくできるとともに、2回処理のため
に記憶手段を1走査線分増やす必要がないので、消費電
力を増やさずにより少ない画素データによって高品質な
画像を得ることが可能となる。
Further, in the case where the temporary interpolation pixel data is generated in the first processing and the final interpolation pixel data is generated using the temporary interpolation pixel data in the second processing as in the second configuration. Also, similarly to the above, since the number of times of accessing the memory can be reduced and it is not necessary to increase the storage means by one scanning line for processing twice, a high quality image can be obtained with less pixel data without increasing power consumption. Can be obtained.

【0011】[0011]

【実施例】【Example】

(実施例1)以下、本発明をその実施例を示す図に基づ
いて説明する。
(Embodiment 1) The present invention will be described below with reference to the drawings showing the embodiment.

【0012】図1は、本実施例の画像データ補間回路を
示したブロック図である。入力切替部1は、図示しない
例えばフィールドメモリから読み出された画素データを
入力し、メモリ2における第1メモリ部2aと第2メモ
リ部2bのいずれかに前記画素データを交互に切り替え
て供給する。
FIG. 1 is a block diagram showing an image data interpolation circuit of this embodiment. The input switching unit 1 inputs pixel data read from a field memory (not shown), for example, and alternately switches and supplies the pixel data to either the first memory unit 2a or the second memory unit 2b in the memory 2. .

【0013】前記メモリ2は、第1メモリ部2aと第2
メモリ部2bと第3メモリ部2cとから成り、これらメ
モリ部2a〜2cは、それぞれ1ライン分の画素データ
を格納できるメモリ容量を備えている。第1メモリ部2
a及び第2メモリ部2bには現画素データが格納され、
第3メモリ部2cには、後述するように、補間画素デー
タが格納される。また、メモリ部2a〜2cの出力は、
出力切替部3に供給されるようになっている。
The memory 2 includes a first memory section 2a and a second memory section 2a.
It comprises a memory unit 2b and a third memory unit 2c, and each of these memory units 2a to 2c has a memory capacity capable of storing pixel data for one line. First memory unit 2
a and the second memory unit 2b store current pixel data,
Interpolation pixel data is stored in the third memory unit 2c as described later. The outputs of the memory units 2a to 2c are
It is adapted to be supplied to the output switching unit 3.

【0014】出力切替部3は、前記メモリ部2a〜2c
に格納されている画素データを順次選択して出力する。
選択の順序は、第1メモリ部2a→第3メモリ部2c→
第2メモリ部2b→第3メモリ部2c→第1メモリ部2
a,…のように行われる。
The output switching unit 3 includes the memory units 2a to 2c.
The pixel data stored in is sequentially selected and output.
The order of selection is as follows: first memory unit 2a → third memory unit 2c →
Second memory section 2b → third memory section 2c → first memory section 2
It is performed like a, ....

【0015】また、前記図示しないフィールドメモリか
ら読み出される画素データのうち、前記第1メモリ部2
aに入力される画素データは、第1シフトレジスタ4に
も供給され、第2メモリ部2bに入力される画素データ
は、第2シフトレジスタ5にも供給されるようになって
いる。ただし、第1シフトレジスタ4に前記フィールド
メモリからの画素データが入力されるときには、第2シ
フトレジスタ5には、第2メモリ部2bに格納されてい
る画素データが読み出されて入力され、第2シフトレジ
スタ5に前記フィールドメモリからの画素データが入力
されるときには、第1シフトレジスタ4には、第1メモ
リ部2aに格納されている画素データが読み出されて入
力される。なお、メモリ部2a,2bに格納される画素
データが読み出されるとき、この画素データは、出力切
替部3を経て出力される。
Further, of the pixel data read from the field memory (not shown), the first memory unit 2
The pixel data input to a is also supplied to the first shift register 4, and the pixel data input to the second memory unit 2b is also supplied to the second shift register 5. However, when the pixel data from the field memory is input to the first shift register 4, the pixel data stored in the second memory unit 2b is read and input to the second shift register 5, When the pixel data from the field memory is input to the 2 shift register 5, the pixel data stored in the first memory unit 2 a is read and input to the first shift register 4. When the pixel data stored in the memories 2a and 2b is read, this pixel data is output via the output switching unit 3.

【0016】前記シフトレジスタ4,5は、それぞれ3
段に構成されたものであり、画素データの入力が生じる
度に次段にデータシフトが行われるようになっている。
即ち、本実施例は、補間画素に近接している6個の補間
参照画素を抽出して補間画素データを生成するようにし
たものであり、第1シフトレジスタ4には、補間画素の
前走査線上の3つの現画素データa〜cが格納されるこ
とになり、第2シフトレジスタ5には、補間画素の後走
査線上の3つの現画素データd〜fが格納されることに
なる。
The shift registers 4 and 5 each have 3
It is configured in stages, and data shift is performed to the next stage every time pixel data is input.
That is, in the present embodiment, six interpolated reference pixels that are close to the interpolated pixel are extracted to generate interpolated pixel data. The three current pixel data a to c on the line will be stored, and the second shift register 5 will store the three current pixel data d to f on the post-scan line of the interpolation pixel.

【0017】第1〜第4演算器6〜9は、二つのデータ
入力の大小関係を演算する回路(例えば、コンパレー
タ)であり、この演算による大小関係を示す演算結果を
第1〜第4フラグ10〜13に格納するようになってい
る。
The first to fourth calculators 6 to 9 are circuits (for example, comparators) for calculating the magnitude relation between two data inputs, and the calculation results showing the magnitude relation by this calculation are the first to fourth flags. It is designed to be stored in 10 to 13.

【0018】具体的には、第1演算器6は、第1シフト
レジスタ4の第1段の画素データaと第2段の画素デー
タbを入力し、それらの大小関係(濃淡関係)を演算し
その結果を第1フラグ10に格納し、第2演算器7は、
第1シフトレジスタ4の第2段の画素データbと第3段
の画素データcを入力し、それらの大小関係を演算して
その結果を第2フラグ11に格納し、第3演算器8は、
第2シフトレジスタ5の第1段の画素データdと第2段
の画素データeを入力し、それらの大小関係を演算して
その結果を第3フラグ12に格納し、第4演算器9は、
第2シフトレジスタ5の第2段の画素データeと第3段
の画素データfを入力し、それらの大小関係を演算して
その結果を第4フラグ13に格納する。
Specifically, the first calculator 6 inputs the pixel data a of the first stage and the pixel data b of the second stage of the first shift register 4, and calculates the magnitude relationship (shade relationship) between them. Then, the result is stored in the first flag 10, and the second computing unit 7
The pixel data b of the second stage and the pixel data c of the third stage of the first shift register 4 are input, the magnitude relationship between them is calculated, the result is stored in the second flag 11, and the third computing unit 8 ,
The pixel data d of the first stage and the pixel data e of the second stage of the second shift register 5 are input, the magnitude relation between them is calculated, the result is stored in the third flag 12, and the fourth computing unit 9 ,
The pixel data e of the second stage and the pixel data f of the third stage of the second shift register 5 are input, the magnitude relationship between them is calculated, and the result is stored in the fourth flag 13.

【0019】補間判定部14は、前記第1〜第4フラグ
10〜13の内容を判断して、補間方向を決定する。例
えば、第1〜第4フラグ10〜13の内容で、画素デー
タdefのデータ列において徐々に明るくなるのか、そ
れとも暗くなるのか、或いはeにおいて山又は谷のポイ
ントがあるのかといったことが判断でき、この場合にお
いて、画素データabcのデータ列においても同様に判
断し、両データ列がともに明るくなるようであれば、補
間方向を上下方向として画素データeとbの平均をと
り、画素データdefのデータ列が徐々に明るくなり、
画素データabcのデータ列が徐々に暗くなるようであ
れば、補間方向をクロスとする。
The interpolation judging section 14 judges the contents of the first to fourth flags 10 to 13 to decide the interpolation direction. For example, with the contents of the first to fourth flags 10 to 13, it is possible to judge whether the data string of the pixel data def gradually becomes brighter or darker, or there is a point of a peak or a valley in e, In this case, the same determination is made for the data row of the pixel data abc, and if both data rows become brighter, the interpolation direction is the vertical direction, the pixel data e and b are averaged to obtain the data of the pixel data def. The rows get brighter,
If the data string of the pixel data abc gradually darkens, the interpolation direction is set to cross.

【0020】上記補間方向は、従来例でも述べたよう
に、左上段から右下段への第1クロス方向、右上段から
左下段への第2クロス方向、中上段から中下段への上下
方向が設定されている。ここで、第1クロス方向による
補間とは、画素データaと画素データfの平均値((a
+f)/2)を補間画素データとするものであり、上下
方向による補間とは、画素データbと画素データeの平
均値((b+e)/2)を補間画素データとするもので
あり、第2クロス方向による補間とは、画素データcと
画素データdの平均値((c+d)/2)を補間画素デ
ータとするものである。
As described in the conventional example, the interpolation direction is the first cross direction from the upper left stage to the lower right stage, the second cross direction from the upper right stage to the lower left stage, and the vertical direction from the middle upper stage to the middle lower stage. It is set. Here, the interpolation in the first cross direction means the average value of the pixel data a and the pixel data f ((a
+ F) / 2) is the interpolated pixel data, and the interpolation in the vertical direction means that the average value ((b + e) / 2) of the pixel data b and the pixel data e is the interpolated pixel data. The interpolation in the two-cross direction is to use the average value ((c + d) / 2) of the pixel data c and the pixel data d as the interpolated pixel data.

【0021】切替部16は、前記補間判定部14の判定
出力に基づいて、補間演算部15の3つの互いに異なる
出力(3種の補間画素データ)のうちから一つを選択し
て前記第3メモリ部2cに供給するようになっている。
なお、図面上は補間演算部15が3つの演算器にて構成
されるように見えるが、実際は、補間演算部15を一つ
の演算器で構成し、この演算器に入力するデータ(a〜
f)を切り替えることで3種類の補間画素データを切り
替えて出力するようにしている。
The switching unit 16 selects one of the three different outputs (three types of interpolation pixel data) of the interpolation calculation unit 15 based on the determination output of the interpolation determination unit 14 and selects the third output. It is supplied to the memory unit 2c.
Although it seems that the interpolation calculation unit 15 is composed of three calculation units in the drawing, in reality, the interpolation calculation unit 15 is composed of one calculation unit and the data (a ...
By switching f), three types of interpolation pixel data are switched and output.

【0022】上記の構成であれば、例えば、第2メモリ
部2bに画素データが書き込まれるとき、この画素デー
タは第2シフトレジスタ5にも書き込まれ、これと同時
に第1メモリ部2aに格納されている画素データが読み
出されて第1シフトレジスタ4に書き込まれる。そし
て、第1,第2シフトレジスタ4,5に格納した画素デ
ータに基づいて補間判定がなされ、この判定に基づいて
補間画素データが補間演算部15と切替部16の処理に
よって第3メモリ部2cに書き込まれる。
With the above configuration, for example, when pixel data is written in the second memory section 2b, this pixel data is also written in the second shift register 5, and at the same time, stored in the first memory section 2a. The pixel data that has been read is read and written to the first shift register 4. Then, an interpolation determination is made based on the pixel data stored in the first and second shift registers 4 and 5, and based on this determination, the interpolated pixel data is processed by the interpolation calculation unit 15 and the switching unit 16 to the third memory unit 2c. Written in.

【0023】また、第1メモリ部2aに画素データが書
き込まれるとき、この画素データは第1シフトレジスタ
4にも書き込まれ、これと同時に第2メモリ部2bに格
納されている画素データが読み出されて第2シフトレジ
スタ5に書き込まれる。そして、第1,第2シフトレジ
スタ4,5に格納した画素データに基づいて補間判定が
なされ、この判定に基づいて補間画素データが補間演算
部15と切替部16の処理によって第3メモリ部2cに
書き込まれる。
When the pixel data is written in the first memory section 2a, this pixel data is also written in the first shift register 4, and at the same time, the pixel data stored in the second memory section 2b is read out. It is written in the second shift register 5. Then, an interpolation determination is made based on the pixel data stored in the first and second shift registers 4 and 5, and based on this determination, the interpolated pixel data is processed by the interpolation calculation unit 15 and the switching unit 16 to the third memory unit 2c. Written in.

【0024】即ち、画像データの入力時に、順次入力さ
れる各画素データをシフトレジスタ4,5に格納し、こ
のレジスタ4,5に格納した画素データからフラグ情報
を順次生成し、このフラグ情報にて順次補間方法を決定
して順次補間画素データを生成するので、この補間画素
データ生成に際して一々メモリにアクセスする必要が無
くなり、メモリアクセス回数を減らすことができる。
That is, when the image data is input, each pixel data that is sequentially input is stored in the shift registers 4 and 5, flag information is sequentially generated from the pixel data stored in the registers 4 and 5, and this flag information is used as the flag information. Since the sequential interpolation method is determined to sequentially generate the interpolated pixel data, it is not necessary to access the memory one by one when generating the interpolated pixel data, and the number of memory accesses can be reduced.

【0025】図2は、入力画素データとメモリ2のリー
ド/ライトタイミングとシフトレジスタ4,5のシフト
との関係を示したタイミングチャートである。この図か
らも分かるように、補間画素データは、フィールドメモ
リからの画素データ入力がある度に生成されて第3メモ
リ部2cに書き込まれる。なお、メモリ2内の画素デー
タの出力は、前述したように、第1メモリ部2aのデー
タ→第3メモリ部2cのデータ→第2メモリ部2bのデ
ータ→第3メモリ部2cのデータ→第1メモリ部2aの
データ,…のように出力される。
FIG. 2 is a timing chart showing the relationship between the input pixel data, the read / write timing of the memory 2 and the shift of the shift registers 4 and 5. As can be seen from this figure, the interpolated pixel data is generated and written in the third memory unit 2c every time the pixel data is input from the field memory. As described above, the output of the pixel data in the memory 2 is the data of the first memory unit 2a → the data of the third memory unit 2c → the data of the second memory unit 2b → the data of the third memory unit 2c → the data of the third memory unit 2c. The data of one memory section 2a is output.

【0026】(実施例2)以下、本発明の他の実施例を
説明する。なお、説明の便宜上、実施例1と同一の構成
部分には同一の符号を付記してその説明を省略する。
(Embodiment 2) Another embodiment of the present invention will be described below. For convenience of explanation, the same components as those in the first embodiment will be designated by the same reference numerals and the description thereof will be omitted.

【0027】本実施例は、上記実施例1が切替部16の
出力をそのまま補間画素データとして用いるように構成
されたのに対し、補間画素データの生成に2段階補間を
行った上で第2メモリ部2cに格納するようにした点で
相違するものである。
In the present embodiment, the output of the switching unit 16 is used as it is as the interpolated pixel data in the first embodiment, whereas the second step is performed after the two-step interpolation is performed to generate the interpolated pixel data. It is different in that it is stored in the memory unit 2c.

【0028】図3は、本実施例の画像データ補間回路を
示すブロック図である。なお、演算器31〜37の演算
結果が格納されるフラグは省略して示している。そし
て、この画像データ補間回路は、第1〜第3シフトレジ
スタ20,21,22を備えており、第1シフトレジス
タ20は4段に、第2,第3シフトレジスタ21,22
は3段にそれぞれ構成されている。第3シフトレジスタ
22は、補間演算部15の出力(本実施例では、暫定補
間画素データとなる)の入力を受ける度にi→j→kと
次段にデータシフトを行うようになっている。
FIG. 3 is a block diagram showing the image data interpolation circuit of this embodiment. The flag for storing the calculation results of the calculators 31 to 37 is omitted. The image data interpolating circuit includes first to third shift registers 20, 21 and 22. The first shift register 20 has four stages and second and third shift registers 21 and 22.
Are each configured in three stages. The third shift register 22 performs data shift to the next stage i → j → k every time the output of the interpolation calculation unit 15 (in the present embodiment, it becomes provisional interpolation pixel data) is input. .

【0029】また、図示しない前記フラグ(7つ)のう
ち後述するように4つのフラグ出力を選択して補間判定
部14に出力する第1マルチプレクサ23、及び、前記
暫定補間画素データは第3シフトレジスタ22に供給
し、2段階補間により得られた最終補間画素データは第
3メモリ部2cに供給するように切替え動作を行う第2
マルチプレクサ27を備える。また、実施例1の補間演
算部15に加えて補間演算部26を備えている。この補
間演算部26は、画素データbと暫定補間画素データk
の平均値((b+k)/2)、画素データcと暫定補間
画素データjの平均値((c+j)/2)、画素データ
dと暫定補間画素データiの平均値((d+i)/2)
を出力するように構成されている。
The first multiplexer 23, which selects four flag outputs among the seven flags (not shown) and outputs them to the interpolation determination unit 14, and the temporary interpolation pixel data are third-shifted. The second interpolating operation is performed such that the final interpolated pixel data supplied to the register 22 and obtained by the two-step interpolation is supplied to the third memory unit 2c.
The multiplexer 27 is provided. Further, an interpolation calculation unit 26 is provided in addition to the interpolation calculation unit 15 of the first embodiment. The interpolation calculation unit 26 uses the pixel data b and the temporary interpolation pixel data k.
Average value ((b + k) / 2), average value of pixel data c and provisional interpolation pixel data j ((c + j) / 2), average value of pixel data d and provisional interpolation pixel data i ((d + i) / 2)
Is configured to output.

【0030】次に、上記画像データ補間回路の動作を第
1段階処理と第2段階処理とに分けて説明する。
Next, the operation of the image data interpolating circuit will be described separately for the first step processing and the second step processing.

【0031】(第1段階処理)第1シフトレジスタ20
の画素データa〜cおよび第2シフトレジスタ21の画
素データf〜hにより、実施例1と同様、補間判定部1
4は、図示しないフラグの内容を判断して、補間方向を
決定する。なお、このとき、第1のマルチプレクサ23
は、演算器31,32,34,35に接続された図示し
ない4つのフラグの出力が補間判定部14に供給される
ようにスイッチ動作を行う。
(First Stage Processing) First Shift Register 20
In accordance with the pixel data a to c and the pixel data f to h of the second shift register 21, as in the first embodiment, the interpolation determination unit 1 is generated.
Reference numeral 4 determines the interpolation direction by judging the content of a flag (not shown). At this time, the first multiplexer 23
Performs a switch operation so that the outputs of four flags (not shown) connected to the computing units 31, 32, 34, and 35 are supplied to the interpolation determination unit 14.

【0032】補間判定部14により判定された補間方向
に基づき、第2のマルチプレクサ27は、補間演算部1
5の3つの互いに異なる出力(3種の暫定補間画素デー
タ)のうちから一つの暫定補間画素データを選択する。
このとき、第2マルチプレクサ27は、前記選択した一
つの暫定補間画素データを第3シフトレジスタ22に供
給するようにスイッチ動作を行う。
On the basis of the interpolation direction determined by the interpolation determination unit 14, the second multiplexer 27 operates the interpolation calculation unit 1
One of the five different outputs (three types of temporary interpolation pixel data) is selected as one temporary interpolation pixel data.
At this time, the second multiplexer 27 performs a switching operation so as to supply the selected one provisional interpolation pixel data to the third shift register 22.

【0033】即ち、上記の第1段階処理は、図4(a)
に示すように、画素データa〜cおよび画素データf〜
hから、暫定補間画素データi〜kを生成して第3レジ
スタ22に格納する処理である。
That is, the above-mentioned first stage processing is as shown in FIG.
, The pixel data a to c and the pixel data f to
This is a process of generating the temporary interpolation pixel data i to k from h and storing them in the third register 22.

【0034】(第2段階処理)暫定補間画素データiを
第3レジスタ22に格納したら、次に、第1シフトレジ
スタ20の画素データb〜dおよび第3シフトレジスタ
33の暫定補間画素データi〜kにより、補間判定部1
4は、図示しないフラグの内容を判断して、補間方向を
決定する。なお、このとき、第1のマルチプレクサ23
は、演算器32,33,36,37に接続された図示し
ない4つのフラグの出力が補間判定部14に供給される
ようにスイッチ動作を行う。
(Second Stage Processing) After the temporary interpolation pixel data i is stored in the third register 22, next, the pixel data b to d of the first shift register 20 and the temporary interpolation pixel data i to the third shift register 33. interpolation determination unit 1 according to k
Reference numeral 4 determines the interpolation direction by judging the content of a flag (not shown). At this time, the first multiplexer 23
Performs a switch operation so that the outputs of four flags (not shown) connected to the computing units 32, 33, 36, and 37 are supplied to the interpolation determination unit 14.

【0035】補間判定部14により判定された補間方向
に基づき、第2のマルチプレクサ27は、補間演算部2
6の3つの互いに異なる出力(3種の補間画素データ)
のうちから一つの補間画素データを選択する。このと
き、第2マルチプレクサ27は、前記選択した一つの補
間画素データを第3メモリ部2cに供給するようにスイ
ッチ動作を行う。
On the basis of the interpolation direction determined by the interpolation determination unit 14, the second multiplexer 27 operates the interpolation calculation unit 2
6 different outputs (3 types of interpolated pixel data)
One of the interpolated pixel data is selected from the above. At this time, the second multiplexer 27 performs a switching operation so as to supply the selected one interpolated pixel data to the third memory unit 2c.

【0036】即ち、上記の第2段階処理は、図4(b)
に示すように、画素データb〜dおよび画素データi〜
kから、補間画素データを生成して第3メモリ部2cに
格納する処理である。
That is, the above-mentioned second stage processing is performed as shown in FIG.
, The pixel data b to d and the pixel data i to
This is a process of generating interpolated pixel data from k and storing it in the third memory unit 2c.

【0037】このような2段階処理により補間画素デー
タを生成する場合においても、本実施例の画像データ補
間回路は、フィールドメモリからの画素データ入力があ
る度に補間画素データを生成し、第3メモリ部2cに書
き込むようにしたので、補間画素データ生成のために別
途フィールドメモリにアクセスする必要をなくすことが
できる。また、2回処理のためにメモリ2のメモリ部を
1走査線分増やす必要がないので、消費電力を増やさず
により少ない画素データで高品質な画像を得ることがで
きる
Even when the interpolated pixel data is generated by such a two-step process, the image data interpolating circuit of this embodiment generates the interpolated pixel data every time the pixel data is input from the field memory, and the third Since the data is written in the memory unit 2c, it is possible to eliminate the need to separately access the field memory for generating the interpolated pixel data. Further, since it is not necessary to increase the memory portion of the memory 2 by one scanning line for the processing twice, it is possible to obtain a high-quality image with less pixel data without increasing the power consumption.

【0038】なお、以上の実施例では、補間演算部15
又は補間演算部26において3種の補間方向による画素
データの平均値で補間画素データ、又は暫定的補間画素
データを生成するようにしたが、これら3種の画素デー
タに適宜重み付けをして補間を行うようにしてもよく、
また、補間画素の近辺の周囲画素として6つ以外の周囲
画素を用いるようにしてもよいものである。
In the above embodiment, the interpolation calculation unit 15
Alternatively, the interpolation calculation unit 26 is configured to generate the interpolated pixel data or the tentative interpolated pixel data by the average value of the pixel data in the three types of interpolation directions, but the three types of pixel data are appropriately weighted for interpolation. You may do it,
Further, peripheral pixels other than six may be used as the peripheral pixels near the interpolation pixel.

【0039】[0039]

【発明の効果】以上のように、本発明によれば、画像デ
ータ入力時に補間画素データが連続的に生成され、メモ
リへのアクセス回数を少なくできる。また、2回処理に
て最終補間画素データを生成する場合においても、上記
と同様の効果が得られるとともに、2回処理のために記
憶手段を1ライン分増やす必要がないので、消費電力を
増やさずにより少ない画素データで高品質な画像を得る
ことができるという効果を奏する。
As described above, according to the present invention, interpolation pixel data is continuously generated when image data is input, and the number of times of accessing the memory can be reduced. Further, even when the final interpolated pixel data is generated by the two-time processing, the same effect as described above can be obtained, and since it is not necessary to increase the storage means for one line for the two-time processing, the power consumption is increased. The effect is that a high quality image can be obtained with less pixel data.

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

【図1】本発明の第1の実施例の画像データ補間回路を
示す回路図である。
FIG. 1 is a circuit diagram showing an image data interpolation circuit according to a first embodiment of the present invention.

【図2】図1の回路におけるメモリアクセス等のタイミ
ングを示すタイミングチャートである。
FIG. 2 is a timing chart showing timings of memory access and the like in the circuit of FIG.

【図3】本発明の第2の実施例の画像データ補間回路を
示す回路図である。
FIG. 3 is a circuit diagram showing an image data interpolation circuit according to a second embodiment of the present invention.

【図4】図3の回路における動作内容を説明するための
説明図である。
FIG. 4 is an explanatory diagram for explaining operation contents in the circuit of FIG.

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

1 入力切替部 2 メモリ 3 出力切替部 4 第1シフトレジスタ 5 第2シフトレジスタ 6〜9 演算器 10〜13 フラグ 14 補間判定部 15 補間演算部 16 切替部 DESCRIPTION OF SYMBOLS 1 input switching unit 2 memory 3 output switching unit 4 first shift register 5 second shift register 6 to 9 computing unit 10 to 13 flag 14 interpolation determination unit 15 interpolation computing unit 16 switching unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力されてくる画像データを記憶する記
憶手段と、前記入力されてくる画像データおよび前記記
憶手段から読み出した画像データを補間画素の周囲画素
の画素データ群として保有するシフトレジスタと、前記
シフトレジスタの出力から周囲画素パターンの判断材料
となる演算結果を出力する演算器群と、前記演算器群の
演算結果を保持するフラグ群と、前記フラグ群のフラグ
内容に基づいて補間方法を決定する補間方法決定部と、
決定された補間方法にて補間画素データを生成して記憶
手段に記憶させる手段とを備えたことを特徴とする画像
データ補間回路。
1. A storage unit for storing input image data, and a shift register for storing the input image data and the image data read from the storage unit as a pixel data group of pixels surrounding an interpolation pixel. , An arithmetic unit group that outputs an arithmetic result that is a material for determining a surrounding pixel pattern from an output of the shift register, a flag group that holds the arithmetic result of the arithmetic unit group, and an interpolation method based on flag contents of the flag group An interpolation method determination unit that determines
An image data interpolating circuit, comprising: means for generating interpolated pixel data by the determined interpolating method and storing the interpolated pixel data in a storage means.
【請求項2】 入力されてくる画像データを記憶する記
憶手段と、前記入力されてくる画像データおよび前記記
憶手段から読み出した画像データを補間画素の周囲画素
の画素データ群として保有する現画素用シフトレジスタ
と、暫定補間画素データ群を保有する暫定補間画素用シ
フトレジスタと、前記現画素用シフトレジスタ及び暫定
補間画素用シフトレジスタの出力から周囲画素パターン
の判断材料となる演算結果を出力する演算器群と、前記
演算器群の演算結果を保持するフラグ群と、前記フラグ
群のフラグ内容に基づいて第1回目処理として暫定補間
画素データ生成のための補間方法を決定するとともに、
第2回目処理として前記暫定補間画素データも用いて最
終補間画素データ生成のための補間方法を決定する補間
方法決定部と、決定された補間方法にて第1回目処理と
して暫定補間画素データを生成して前記暫定補間画素用
シフトレジスタに記憶させるとともに第2回目処理とし
て最終補間画素データを生成して記憶手段に記憶させる
手段とを備えたことを特徴とする画像データ補間回路。
2. A storage unit for storing input image data, and a current pixel for storing the input image data and the image data read from the storage unit as a pixel data group of pixels surrounding the interpolation pixel. A shift register, a temporary interpolating pixel shift register that holds a temporary interpolating pixel data group, and an operation that outputs an operation result that is a material for determining surrounding pixel patterns from the outputs of the current pixel shift register and the temporary interpolating pixel shift register. Device group, a flag group that holds the calculation result of the arithmetic unit group, and an interpolation method for temporary interpolation pixel data generation as the first processing based on the flag contents of the flag group,
An interpolation method determination unit that determines an interpolation method for generating final interpolation pixel data by using the temporary interpolation pixel data as the second processing, and a temporary interpolation pixel data is generated as the first processing by the determined interpolation method. Then, the image data interpolating circuit is further provided with means for storing the temporary interpolating pixel shift register in the temporary interpolating pixel shift register and generating the final interpolating pixel data in the storage means as the second processing.
JP7105131A 1995-04-28 1995-04-28 Image data interpolation circuit Pending JPH08307833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7105131A JPH08307833A (en) 1995-04-28 1995-04-28 Image data interpolation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7105131A JPH08307833A (en) 1995-04-28 1995-04-28 Image data interpolation circuit

Publications (1)

Publication Number Publication Date
JPH08307833A true JPH08307833A (en) 1996-11-22

Family

ID=14399216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7105131A Pending JPH08307833A (en) 1995-04-28 1995-04-28 Image data interpolation circuit

Country Status (1)

Country Link
JP (1) JPH08307833A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007060512A (en) * 2005-08-26 2007-03-08 Pioneer Electronic Corp Scanning line interpolating circuit, scanning line interpolating method used therein, and image displaying apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007060512A (en) * 2005-08-26 2007-03-08 Pioneer Electronic Corp Scanning line interpolating circuit, scanning line interpolating method used therein, and image displaying apparatus

Similar Documents

Publication Publication Date Title
JP2591292B2 (en) Image processing device and automatic optical inspection device using it
JP3233895B2 (en) Display device and driving method thereof
JPH01248889A (en) Method and apparatus for evaluating rate of movement of picture elements of television picture
US4607340A (en) Line smoothing circuit for graphic display units
JP3243894B2 (en) Shading image processing device
US6091859A (en) Image data enlarging/smoothing processor
JP2000155561A (en) Gradation conversion circuit and picture display device
US5887079A (en) Image processing apparatus
JP2001022342A (en) Pixel number conversion circuit and image display device using the same
JPH08307833A (en) Image data interpolation circuit
JP4910254B2 (en) Image processing apparatus and method
US5606656A (en) Image data processing unit for forming a plurality of identical images in a single output image area
JP3483751B2 (en) Motion vector detecting device and motion vector detecting method
JPH11203467A (en) Display device and display method
JPWO2000057631A1 (en) Image processing device and processing method
US5727086A (en) Device and method for picture processing including contraction of toned image
KR960011228B1 (en) Video histogram
JPS63313967A (en) Dot density converter
JPH10162138A (en) Image processing method
JP3557650B2 (en) Television signal interpolation method and interpolation circuit
JPH02288668A (en) Picture element density conversion processor
JP3119613B2 (en) Image processing apparatus and image processing method
JP3877054B2 (en) Image reduction scaling device
JPH01215546A (en) Video printer
JP3411950B2 (en) Motion detection device