JPH0823440A - Image signal processing method and device - Google Patents

Image signal processing method and device

Info

Publication number
JPH0823440A
JPH0823440A JP6153978A JP15397894A JPH0823440A JP H0823440 A JPH0823440 A JP H0823440A JP 6153978 A JP6153978 A JP 6153978A JP 15397894 A JP15397894 A JP 15397894A JP H0823440 A JPH0823440 A JP H0823440A
Authority
JP
Japan
Prior art keywords
data
image signal
interpolation
area
pixels
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
JP6153978A
Other languages
Japanese (ja)
Other versions
JP3617075B2 (en
Inventor
Kaoru Ogawa
薫 小川
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP15397894A priority Critical patent/JP3617075B2/en
Publication of JPH0823440A publication Critical patent/JPH0823440A/en
Application granted granted Critical
Publication of JP3617075B2 publication Critical patent/JP3617075B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4007Interpolation-based scaling, e.g. bilinear interpolation

Abstract

PURPOSE:To improve quality of an image interpolated/magnified by classifying patterns of plural picture element data comprising plural adjacent columns in horizontal and vertical lines of an original image signal and controlling the size of the classification area based on the result of classification. CONSTITUTION:Plural picture element data in, e.g. 3X2 picture element areas in a 2nd area comprising plural adjacent columns in 7X2 picture element areas stored in a shift register 13 being a means storing, e.g. 7X2 picture elements in a 1st area are classified and the size of the 3X2 picture element area is controlled based on a pattern recognition result. Then interpolation is made depending on the result of recognition by using the plural picture element data in the 2nd area and a magnified picture element signal is formed by inserting interpolation picture element data between picture element data through the use of an interpolation arithmetic circuit 14 and an interpolation register 15. The register 13 conducts interpolation by using data of the 1st area read from line buffer memories 10a, 10b.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばビデオプリンタ
等に好適な、原画像信号から原画像を拡大した拡大画像
信号を形成する画像信号処理方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image signal processing method and apparatus suitable for, for example, a video printer, for forming an enlarged image signal by enlarging an original image from the original image signal.

【0002】[0002]

【従来の技術】従来より、例えばテレビジョン画像のハ
ードコピーを得るようなビデオプリンタにおいて拡大画
像を印画する場合には、例えば印画画像の画素数が印画
可能画素数の1/2や1/4であれば、同一画素を2回
又は4回続けて印画していた。すなわち、ビデオプリン
タのサーマルヘッドが例えば2000ドット分に対応す
るヘッド素子を有している場合において、印画画像がヘ
ッド方向に1000ドットしかないようなものであると
きには、ヘッド方向に2ドット同一データを並べて印画
することで、また、ヘッド送り方向についても同様に行
うことで、拡大画像の印画を可能としている。
2. Description of the Related Art Conventionally, when printing an enlarged image in a video printer for obtaining a hard copy of a television image, for example, the number of pixels of the printed image is 1/2 or 1/4 of the number of printable pixels. In that case, the same pixel was printed twice or four times in succession. That is, in the case where the thermal head of the video printer has a head element corresponding to 2000 dots, for example, and the printed image has only 1000 dots in the head direction, the same data of 2 dots in the head direction is used. It is possible to print an enlarged image by printing side by side and similarly in the head feeding direction.

【0003】[0003]

【発明が解決しようとする課題】ここで、上述のように
して拡大画像を得るための構成は、回路的には非常に簡
単に実現できるものである。しかし、これにより得られ
た拡大画像は、階調性や解像度、ジャーキネス等の点で
画質が良くないものとなる。
The configuration for obtaining an enlarged image as described above can be realized very easily in terms of circuit. However, the enlarged image thus obtained has poor image quality in terms of gradation, resolution, jerkiness, and the like.

【0004】そこで、本発明は、このような実情を鑑み
てなされたものであり、階調性、解像度、ジャーキネス
の点で充分な拡大画像を得ることができると共に、回路
も複雑化することなく実現できる画像信号処理方法及び
装置を提供することを目的とするものである。
Therefore, the present invention has been made in view of such circumstances, and it is possible to obtain a sufficiently enlarged image in terms of gradation, resolution, and jerkiness, and the circuit is not complicated. An object is to provide an image signal processing method and device that can be realized.

【0005】[0005]

【課題を解決するための手段】本発明はこのような実情
を鑑みてなされたものであり、原画像信号から原画像を
拡大した拡大画像信号を形成する画像信号処理方法であ
り、原画像信号の水平方向及び垂直方向の列であって隣
接する複数の列からなる所定領域内の複数画素データに
対して、所定のテーブルに従ったパターン分類を行うと
共に、当該パターン分類結果に基づいて上記所定領域の
大きさを適応的に制御し、上記パターン分類して大きさ
を適応制御した所定領域内の複数画素データを用いて、
上記パターン分類結果に応じた補間演算を行い、当該補
間演算による補間画素のデータを上記原画像信号の各画
素のデータ間に挿入して拡大画像信号を形成することを
特徴とするものである。
The present invention has been made in view of such circumstances, and is an image signal processing method for forming an enlarged image signal by enlarging an original image from the original image signal. The plurality of pixel data in a predetermined area consisting of a plurality of adjacent rows in the horizontal and vertical directions are subjected to pattern classification according to a predetermined table, and the predetermined classification is performed based on the pattern classification result. By adaptively controlling the size of the area, using the plural pixel data in the predetermined area in which the pattern is classified and the size is adaptively controlled,
An interpolation operation is performed according to the pattern classification result, and the data of the interpolation pixel by the interpolation operation is inserted between the data of each pixel of the original image signal to form an enlarged image signal.

【0006】ここで、上記所定領域としては、上記原画
像信号の隣接する複数画素からなる列と上記補間演算に
より求めた複数の補間画素からなるの列とによって形成
した領域とすることもできる。また、上記所定領域の大
きさの適応的な制御の際には、上記原画像信号の水平方
向及び垂直方向の隣接する複数列からなる小領域内の複
数画素のデータに対して、所定のテーブルに従ったパタ
ーン分類を行い、当該小領域内の複数画素のパターン分
類結果に基づいて、当該小領域内の複数画素のデータを
用いた補間演算を行うか、又は、当該小領域を中心にし
て拡大した水平方向及び垂直方向の隣接する複数列から
なる大領域内の複数画素のデータを用いた補間演算を行
うかの判別を行う。さらに、上記小領域は、例えば上記
原画像信号の隣接する水平方向3列及び垂直方向2列の
3×2画素のデータからなり、上記大領域は、例えば上
記小領域の3×2画素を中心にして拡大した隣接する水
平方向7列及び垂直方向2列の7×2画素のデータから
なる。
Here, the predetermined area may be an area formed by a column of a plurality of adjacent pixels of the original image signal and a column of a plurality of interpolated pixels obtained by the interpolation calculation. Further, when adaptively controlling the size of the predetermined area, a predetermined table is set for the data of a plurality of pixels in a small area consisting of a plurality of adjacent horizontal and vertical rows of the original image signal. According to the pattern classification result of a plurality of pixels in the small area, an interpolation calculation is performed using data of a plurality of pixels in the small area, or the small area is centered. It is determined whether or not an interpolation calculation is performed using data of a plurality of pixels in a large area formed by a plurality of enlarged horizontal and vertical adjacent columns. Further, the small area is composed of, for example, data of 3 × 2 pixels in three rows in the horizontal direction and two rows in the vertical direction adjacent to the original image signal, and the large area is centered on, for example, 3 × 2 pixels in the small area. It is composed of data of 7 × 2 pixels, which are adjacent to each other and expanded in seven rows in the horizontal direction and two rows in the vertical direction.

【0007】次に、本発明の画像信号処理装置は、原画
像信号の水平方向及び垂直方向の列であって隣接する複
数の列からなる第1の領域内の複数画素データを格納す
る格納手段と、当該格納手段に格納されている上記第1
の領域内であって隣接する水平方向及び垂直方向の複数
列からなる第2の領域内の複数画素データに対して、所
定のテーブルに従ったパターン分類を行うと共に、当該
パターン分類結果に基づいて上記第2の領域の大きさを
適応的に制御し、当該パターン分類して大きさを適応制
御した第2の領域内の複数画素データを用いて、当該パ
ターン分類結果に応じた補間演算を行い、当該補間演算
による補間画素のデータを上記原画像信号の各画素のデ
ータ間に挿入して拡大画像信号を形成する拡大画像信号
形成手段とを有することを特徴とするものである。
Next, the image signal processing apparatus according to the present invention is a storage means for storing a plurality of pixel data in a first area consisting of a plurality of adjacent columns of horizontal and vertical columns of an original image signal. And the first stored in the storage means.
Pattern data according to a predetermined table for a plurality of pixel data in a second region consisting of a plurality of horizontal and vertical columns adjacent to each other in the region, and based on the pattern classification result. The size of the second region is adaptively controlled, and the plurality of pixel data in the second region in which the pattern is classified and the size is adaptively controlled is used to perform an interpolation calculation according to the pattern classification result. And an enlarged image signal forming means for forming an enlarged image signal by inserting the data of the interpolated pixel by the interpolation calculation between the data of the respective pixels of the original image signal.

【0008】ここで、上記所定領域としては、上記原画
像信号の複数画素からなる列と上記補間演算により求め
た隣接する複数の補間画素からなる列とによって形成さ
れたものとすることができる。また、上記拡大画像信号
形成手段は、上記第2の領域内の複数画素のデータに対
する所定のテーブルに従ったパターン分類結果に基づい
て、当該第2の領域内の複数画素のデータを用いた補間
演算を行うか、又は、上記第1の領域内の複数画素のデ
ータを用いた補間演算を行うかの判別を行う。さらに、
上記第1の領域の複数画素データは、上記1フィールド
の原信号の隣接する水平方向7列及び垂直方向2列の7
×2画素のデータであり、上記第2の領域は、当該第1
の領域内の隣接する水平方向3列及び垂直方向2列の3
×2画素のデータである。
Here, the predetermined area may be formed by a column composed of a plurality of pixels of the original image signal and a column composed of a plurality of adjacent interpolated pixels obtained by the interpolation calculation. Further, the enlarged image signal forming means interpolates using the data of a plurality of pixels in the second area based on a pattern classification result according to a predetermined table for the data of a plurality of pixels in the second area. It is determined whether the calculation is performed or the interpolation calculation using the data of a plurality of pixels in the first region is performed. further,
The plurality of pixel data in the first area is composed of 7 columns in the horizontal direction and 2 columns in the vertical direction which are adjacent to the original signal of the 1 field.
× 2 pixel data, and the second area is the first area
3 adjacent 3 rows in the horizontal direction and 2 rows in the vertical direction
It is data of × 2 pixels.

【0009】また、本発明の画像信号処理装置は、原画
像信号のラインデータをそれぞれ格納するw個(wは2
以上)のラインバッファと、同一ラインデータをv回出
力して上記w個のラインバッファに供給するラインデー
タ供給手段とを設け、上記格納手段には、上記ラインバ
ッファから読み出したデータを格納し、上記拡大画像信
号形成手段は、上記w個のラインバッファから取り出さ
れて上記格納手段に格納されたデータを用いて補間演算
を行い、当該演算演算による補間データを、上記w個の
ラインバッファの補間演算の終了したデータが格納され
ている部分に上書きするようにしている。
Further, the image signal processing device of the present invention stores w pieces (w is 2) each of which stores the line data of the original image signal.
(Above) and a line data supply means for outputting the same line data v times to supply to the w line buffers, and the storage means stores the data read from the line buffer, The enlarged image signal forming means performs an interpolation operation using the data extracted from the w number of line buffers and stored in the storage means, and interpolates the interpolation data by the arithmetic operation into the w number of line buffers. It is arranged to overwrite the part where the data for which the calculation has been completed is stored.

【0010】[0010]

【作用】本発明の画像信号処理方法及び装置によれば、
原画像信号の水平方向及び垂直方向の列であって隣接す
る複数の列からなる領域内の複数画素データに対して、
所定のテーブルに従ったパターン分類を行い、このパタ
ーン分類結果に基づいてパターン分類する領域の大きさ
を適応的に制御するようにしており、パターン分類の領
域を小さくできるときにはこのパターン分類が容易にで
き、また、パターン分類の領域が小さいと補間によって
得られる画像の質が劣化するときにはパターン分類の領
域を大きくすることで、補間されて拡大される画像の品
質を向上させている。
According to the image signal processing method and apparatus of the present invention,
For a plurality of pixel data in a region consisting of a plurality of adjacent columns in the horizontal and vertical columns of the original image signal,
The pattern classification is performed according to a predetermined table, and the size of the pattern classification area is adaptively controlled based on the pattern classification result. When the pattern classification area can be reduced, this pattern classification can be easily performed. If the pattern classification area is small, the quality of the image obtained by the interpolation deteriorates. By increasing the pattern classification area, the quality of the interpolated and enlarged image is improved.

【0011】また、拡大画像信号形成手段による補間デ
ータを、w個のラインバッファの補間演算の終了したデ
ータが格納されている部分に上書きするようにしている
ため、補間データ用に別にメモリを設ける必要がない。
Further, since the interpolation data by the enlarged image signal forming means is written over the portion of the w line buffers where the data for which the interpolation calculation is completed is stored, a separate memory is provided for the interpolation data. No need.

【0012】[0012]

【実施例】以下、本発明の好ましい実施例について、図
面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings.

【0013】本発明の画像信号処理方法を実現する本発
明実施例の画像信号処理装置は、図1に示すように、原
画像信号の水平方向及び垂直方向の列であって隣接する
複数の列からなる第1の領域(本実施例では7×2画素
領域)内の7×2画素データを格納する格納手段として
のシフトレジスタ13と、当該シフトレジスタ13に格
納されている上記7×2画素領域内であって隣接する水
平方向及び垂直方向の複数列からなる第2の領域内(本
実施例では3×2画素領域)の複数画素データに対し
て、後述する表6〜表14にて示す所定のテーブルに従
ったパターン分類(以下パターン認識と言い換える)を
行うと共に、当該パターン認識結果に基づいて上記3×
2画素領域の大きさを適応的に制御し、当該パターン分
類して大きさを適応制御した第2の領域内の複数画素デ
ータを用いて、上記パターン認識結果に応じた補間演算
を行い、当該補間演算による補間画素のデータを上記原
画像信号の各画素のデータ間に挿入して拡大画像信号を
形成する拡大画像信号形成手段としての補間演算回路1
4及び補間値レジスタ15とを有するものである。
As shown in FIG. 1, the image signal processing apparatus of the embodiment of the present invention for realizing the image signal processing method of the present invention has a plurality of adjacent horizontal and vertical columns of original image signals. Shift register 13 as storage means for storing 7 × 2 pixel data in the first region (7 × 2 pixel region in this embodiment) consisting of 7 × 2 pixels stored in the shift register 13. Tables 6 to 14, which will be described later, show a plurality of pixel data in a second region (3 × 2 pixel region in this embodiment) formed of a plurality of adjacent horizontal and vertical columns in the region. Pattern classification (hereinafter referred to as pattern recognition) is performed according to a predetermined table shown, and the above 3 × is performed based on the pattern recognition result.
The size of the two-pixel region is adaptively controlled, and the interpolation calculation according to the pattern recognition result is performed using the plural pixel data in the second region in which the pattern is classified and the size is adaptively controlled. Interpolation calculation circuit 1 as an enlarged image signal forming means for forming the enlarged image signal by inserting the data of the interpolated pixel by the interpolation operation between the data of each pixel of the original image signal.
4 and the interpolation value register 15.

【0014】また、本発明の画像信号処理装置は、原画
像信号のラインデータをそれぞれ格納するw個(wは2
以上で本実施例では例えば2又は4)のラインバッファ
メモリ10a,10bと、同一ラインデータを2又は4
回出力して上記2個のラインバッファメモリ10a,1
0bに供給するラインデータ供給手段としての入力制御
回路6とを設け、上記シフトレジスタ13には、上記ラ
インバッファメモリ10a,10bから読み出したデー
タを格納し、上記拡大画像信号形成手段は、上記ライン
バッファメモリ10a,10bから取り出されて上記シ
フトレジスタ13に格納された上記第1の領域のデータ
を用いて補間演算を行い、当該補間演算による補間デー
タを、上記ラインバッファメモリ10a,10bの補間
演算の終了したデータが格納されている部分に上書きす
るようにしている。
Further, the image signal processing device of the present invention stores w pieces (where w is 2) each of which stores the line data of the original image signal.
As described above, in the present embodiment, for example, the line buffer memories 10a and 10b of 2 or 4) and the same line data 2 or 4 are stored.
The above two line buffer memories 10a, 1 are output once.
0b is provided with an input control circuit 6 as a line data supply means, the shift register 13 stores the data read from the line buffer memories 10a and 10b, and the enlarged image signal forming means uses the line Interpolation calculation is performed using the data of the first area extracted from the buffer memories 10a and 10b and stored in the shift register 13, and the interpolation data by the interpolation calculation is interpolated in the line buffer memories 10a and 10b. The part where the finished data of is stored is overwritten.

【0015】なお、本実施例では、例えば高細精度サー
マルヘッドを有するビデオプリンタに適用され、例えば
比較的小さな画像を拡大する手法について説明してい
る。すなわち、本実施例装置は、サーマルヘッドが例え
ば2000ドット分に対応するヘッド素子からなってい
るビデオプリンタに適応される場合において、印画画像
がヘッド方向に例えば1000ドットしかないようなも
のであるときに、ヘッド方向に2倍や4倍に拡大した画
像信号を形成するようにしたものである。
In this embodiment, a method applied to a video printer having a high-precision thermal head, for example, and enlarging a relatively small image has been described. That is, in the case where the thermal head is applied to a video printer including a head element corresponding to, for example, 2000 dots, when the printed image has only 1000 dots in the head direction. In addition, an image signal which is magnified 2 times or 4 times in the head direction is formed.

【0016】すなわちこの図1において、端子1にはプ
リントデータ書き込みクロックが供給され、端子3には
フレームメモリからの8ビットの画像データすなわちプ
リントデータが、端子4には各色印画状態を示す信号で
あるヘッドアクティブ信号が、端子5には印画タイミン
グパルスが供給される。また、端子2からはフレームメ
モリに対するプリントデータ要求信号が出力される。こ
れら端子1〜5のうち、端子1,2,3は図示を省略し
ているフレームメモリとインタフェース回路を介して、
また、端子4,5は図示を省略しているCPU(中央処
理ユニット)とインタフェース回路を介して、入力制御
回路6と接続される。なお、入力制御回路6の前段のメ
モリは、フィールドメモリとすることもできる。
That is, in FIG. 1, a print data write clock is supplied to the terminal 1, 8-bit image data or print data from the frame memory is supplied to the terminal 3, and a signal indicating each color printing state is supplied to the terminal 4. A certain head active signal and a print timing pulse are supplied to the terminal 5. A print data request signal for the frame memory is output from the terminal 2. Of these terminals 1 to 5, terminals 1, 2 and 3 are connected via a frame memory and an interface circuit (not shown),
The terminals 4 and 5 are connected to the input control circuit 6 via a CPU (central processing unit) (not shown) and an interface circuit. The memory in the previous stage of the input control circuit 6 may be a field memory.

【0017】上記入力制御回路6は、上記フレームメモ
リから次段のラインバッファメモリ10a及び10bへ
のデータの取り込みを後述するようにコントロールする
ものである。
The input control circuit 6 controls fetching of data from the frame memory to the line buffer memories 10a and 10b of the next stage, as described later.

【0018】メモリ10aと10bは、それぞれ上記端
子3に供給されて入力制御回路6を介したプリントデー
タである画像データを保持するための1ラインバッファ
メモリであり、例えば、スタティックRAM(SRA
M)からなるものである。
The memories 10a and 10b are 1-line buffer memories for holding image data, which are print data supplied to the terminal 3 via the input control circuit 6, and are, for example, static RAM (SRA).
M).

【0019】当該メモリ10aと10bからのデータの
取り出しは、ワークテーブル転送制御回路9によりなさ
れる。すなわち、当該ワークテーブル転送制御回路9
は、画像拡大の際に使用する後述する補間演算に必要な
画像データを、上記メモリ10aと10bから取り出す
ためのアドレス制御を行う回路である。当該ワークテー
ブル転送制御回路9によって上記メモリ10a,10b
から必要なデータ(本実施例の場合は例えば7×2画素
のデータ)が取り出され、例えばシフトレジスタ13か
らなるワークテーブルに転送される。
The work table transfer control circuit 9 takes out data from the memories 10a and 10b. That is, the work table transfer control circuit 9
Is a circuit for performing address control for taking out image data, which is used in the image enlargement and which is necessary for an interpolation calculation described later, from the memories 10a and 10b. The work table transfer control circuit 9 causes the memories 10a and 10b to operate.
The necessary data (7 × 2 pixel data in the case of the present embodiment) is taken out from and is transferred to a work table composed of the shift register 13, for example.

【0020】当該ワークテーブルのシフトレジスタ13
に転送された画像データのうち、後述する補間演算に必
要な画素データは、補間演算回路14に送られ、ここで
当該シフトレジスタ13に転送された画像データを用い
たパターン認識を行うと共に、補間値を計算する補間演
算を行う。
Shift register 13 of the work table
Of the image data transferred to, the pixel data necessary for the interpolation calculation to be described later is sent to the interpolation calculation circuit 14, where pattern recognition using the image data transferred to the shift register 13 is performed and interpolation is performed. Perform interpolation calculation to calculate the value.

【0021】当該補間演算回路14により求められた補
間値は、補間値レジスタ15に一時保持される。すなわ
ち、当該補間値レジスタ15は、次の画素の補間演算を
行うときに過去の補間画素をデータとして使用するの
で、当該過去の補間画素のデータを一時的に保持するた
めのデータレジスタである。
The interpolation value obtained by the interpolation calculation circuit 14 is temporarily held in the interpolation value register 15. That is, since the interpolation value register 15 uses the past interpolation pixel as data when performing the interpolation calculation of the next pixel, it is a data register for temporarily holding the data of the past interpolation pixel.

【0022】補間値レジスタ15に保持された補間画素
のデータは、メモリ10a又は10bの記憶領域のう
ち、補間演算が終了した画素データが記憶されていた領
域に後述するような理由から上書きされる。
The data of the interpolated pixel held in the interpolated value register 15 is overwritten in the storage area of the memory 10a or 10b where the pixel data for which the interpolation calculation is completed is stored for the reason described later. .

【0023】その後、当該メモリ10a,10bから
は、上記補間演算に使用した画素データと上記上書きさ
れた補間画素のデータが順次読み出され、転送制御回路
7に送られる。当該転送制御回路7は、端子8を介して
次段のプリントのための構成にデータを転送するときの
タイミングをコントロールする。
After that, the pixel data used for the interpolation calculation and the data of the overwritten interpolation pixel are sequentially read from the memories 10a and 10b and sent to the transfer control circuit 7. The transfer control circuit 7 controls the timing at which data is transferred to the structure for printing of the next stage via the terminal 8.

【0024】ここで、本実施例の画像処理装置において
は、サーマルヘッドの主走査方向と副走査方向で各々2
や4倍の画像拡大を可能としてる。それを2ライン分の
上記ラインバッファメモリ10a及び10bを用いて実
現するため、データの入力形態を次のように決めてい
る。
Here, in the image processing apparatus of this embodiment, the thermal head has two scanning lines in each of the main scanning direction and the sub-scanning direction.
It enables 4x image enlargement. In order to realize it using the line buffer memories 10a and 10b for two lines, the data input form is determined as follows.

【0025】すなわち、主走査方向の2倍拡大の時は、
表1に示すように、入力するラインデータ内の並びを2
ドットずつ同一のデータにして並べたラインデータを入
力する。また、主走査方向の4倍拡大の時も、表2に示
すように、入力するラインデータ内の並びを4ドットず
つ同一のデータにして並べたラインデータを入力する。
さらに、これら表1及び表2には、上記主走査方向の2
倍又は4倍の拡大時の入力形態と、当該拡大画像を形成
するために使用する補間演算された値との関係も示して
いる。
That is, at the time of double enlargement in the main scanning direction,
As shown in Table 1, the sequence in the input line data is 2
Input line data that has the same data dot by dot and is arranged. Further, even when the image is magnified four times in the main scanning direction, as shown in Table 2, the line data in which the lines in the input line data are arranged in the same data every 4 dots is input.
Further, these Table 1 and Table 2 show 2 in the main scanning direction.
It also shows the relationship between the input form at the time of double or quadruple enlargement and the interpolated value used to form the enlarged image.

【0026】[0026]

【表1】 [Table 1]

【0027】[0027]

【表2】 [Table 2]

【0028】上記表1からわかるように、主走査方向の
2倍拡大の場合には、例えば元の画像の1ライン内のデ
ータがA,B,C,D,E,F,・・・であるとき、入
力データとしては当該同一ライン内のデータを2ドット
ずつ並べたデータ(A,A,B,B,C,C,D,D,
E,E,F,F,・・・)を用い、それぞれデータAと
B、BとC、CとD、DとE、EとF、・・・の補間値
である(A+B)/2、(B+C)/2、(C+D)/
2、(D+E)/2、(E+F)/2、・・・を、上記
1ライン内のA,B,C,D,E,F,・・・の各デー
タ間に補間したものを出力データとすることで、主走査
方向の2倍の画像拡大を実現している。
As can be seen from Table 1 above, in the case of double enlargement in the main scanning direction, for example, the data in one line of the original image is A, B, C, D, E, F, ... At one time, as input data, data (A, A, B, B, C, C, D, D,
E, E, F, F, ...) are used to interpolate the data A and B, B and C, C and D, D and E, E and F, ... (A + B) / 2. , (B + C) / 2, (C + D) /
Output data obtained by interpolating 2, (D + E) / 2, (E + F) / 2, ... Between the respective data of A, B, C, D, E, F ,. By doing so, image enlargement twice in the main scanning direction is realized.

【0029】また、上記表2からわかるように、主方向
の4倍拡大の場合には、元の画像の1ライン内のデータ
(A,B,C,D,E,F,・・・)に対して、入力デ
ータとしては当該同一ライン内のデータを4ドットずつ
並べたデータ(A,A,A,A,B,B,B,B,C,
C,C,C,・・・)を用い、それぞれデータAとB、
BとC、・・・の補間値として(3A+B)/4、(A
+B)/2、(A+3B)/4、(3B+C)/4、
(B+C)/2、(B+3C)/4、・・・を、上記1
ライン内のA,B,C,D,E,F,・・・の各データ
間に補間したものを出力データとすることで、主走査方
向の4倍の画像拡大を実現している。
Further, as can be seen from Table 2 above, in the case of 4 times enlargement in the main direction, the data (A, B, C, D, E, F, ...) Within one line of the original image. On the other hand, as input data, data (A, A, A, A, B, B, B, B, C,
C, C, C, ...) and data A and B, respectively.
(3A + B) / 4, (A
+ B) / 2, (A + 3B) / 4, (3B + C) / 4,
(B + C) / 2, (B + 3C) / 4, ...
By interpolating between the respective data of A, B, C, D, E, F, ... In the line, the output data is used to realize image enlargement of 4 times in the main scanning direction.

【0030】一方、表3に示すように、副走査方向の2
倍拡大の場合には、入力するラインデータの順序を2ラ
インずつ同一のラインとなるように続けて入力し、4倍
拡大の場合には、4ラインずつ同一のラインとなるよう
に続けて入力する。また、この表3には、上記副走査方
向の2倍又は4倍の拡大時の入力形態と、当該拡大画像
を形成するために使用する補間演算された値との関係も
示している。
On the other hand, as shown in Table 3, 2 in the sub-scanning direction
In the case of double expansion, the order of the input line data is continuously input so that two lines are the same line, and in the case of four times expansion, four lines are continuously input so that they are the same line. To do. In addition, Table 3 also shows the relationship between the input form at the time of magnification of 2 or 4 times in the sub-scanning direction and the interpolated value used for forming the magnified image.

【0031】[0031]

【表3】 [Table 3]

【0032】この表3からわかるように、副走査方向の
2倍拡大の場合には、元の画像のラインの順番が例えば
0 ,I1 ,I2 ,I3 ,I4 ,・・・であるとき、入
力ラインデータとしては当該同一のラインを2ラインず
つ並べたデータ(In(I0),In(I0 ),In
(I1 ),In(I1 ),・・・)を用い、それぞれラ
インIn(I0 )とIn(I1 )、In(I1 )とIn
(I2 )、In(I2 )とIn(I3 )、In(I3
とIn(I4 )、In(I4 )とIn(I5 )、・・・
に対して後述する補間演算を行い、得られた補間値であ
る(I0 1 )、(I1 2 )、(I2 3 )、(I3
4 )、(I4 5 )、・・・を上記各ラインI0 ,I
1 ,I2 ,I3 ,・・・の間に補間したものを出力ライ
ンデータ(Out(I0 ),Out(I0 ),Out
(I0 1 ),Out(I1 ),Out(I1 2 ),
Out(I2 ),・・・)とすることで、副走査方向の
2倍の画像拡大を実現している。
As can be seen from Table 3, in the case of double enlargement in the sub-scanning direction, the original image line order is, for example, I 0 , I 1 , I 2 , I 3 , I 4 ,. In this case, the input line data is data (In (I 0 ), In (I 0 ), In) in which the same line is arranged every two lines.
(I 1 ), In (I 1 ), ..., Using the lines In (I 0 ) and In (I 1 ), In (I 1 ) and In, respectively.
(I 2), In (I 2) and In (I 3), In ( I 3)
And In (I 4 ), In (I 4 ) and In (I 5 ), ...
Interpolation calculation described later is performed for the obtained interpolation values (I 0 I 1 ), (I 1 I 2 ), (I 2 I 3 ), and (I 3
I 4), (I 4 I 5), the a ... Each line I 0, I
Output line data (Out (I 0 ), Out (I 0 ), Out) obtained by interpolating between 1 , I 2 , I 3 , ...
(I 0 I 1 ), Out (I 1 ), Out (I 1 I 2 ),
Out (I 2 ), ..., That realizes twice the image enlargement in the sub-scanning direction.

【0033】また、この表3からわかるように、副走査
方向の4倍拡大の場合には、元の画像のラインの順番が
0 ,I1 ,I2 ,I3 ,I4 ,・・・であるとき、入
力ラインデータとしては当該同一のラインを4ラインず
つ並べたデータ(In(I0),In(I0 ),In
(I0 ),In(I0 ),In(I1 ),In
(I1 ),In(I1 ),In(I1 ),In
(I2 ),・・・)を用い、それぞれラインIn
(I0 )とIn(I1 )、In(I1 )とIn
(I2 )、・・・に対して後述する補間演算を行い、得
られた補間値である(I0 1 1 、(I0 1 2
(I0 1 3 、(I1 2 1 、(I1 2 2
(I1 2 3 、・・・を上記各ラインI0 ,I1 ,I
2 ,・・・の間に補間したものを出力ラインデータ(O
ut(I0 ),Out(I0 ),Out(I0 ),Ou
t(I0 ),Out(I0 1 1 ,Out(I
0 1 2 、Out(I0 1 3 、Out(I1 ),
Out(I1 2 1 、Out(I1 2 2 、Out
(I1 2 3、・・・)とすることで、副走査方向の
4倍の画像拡大を実現している。
As can be seen from Table 3, sub-scanning
In the case of 4 times magnification in the direction, the order of the lines of the original image is
I0, I1, I2, I3, IFourWhen ...
As the force line data, the same line is not 4 lines.
Data (In (I0), In (I0), In
(I0), In (I0), In (I1), In
(I1), In (I1), In (I1), In
(I2), ...) are used for each line In
(I0) And In (I1), In (I1) And In
(I2), ...
Is the interpolated value (I0I1)1, (I0I1) 2,
(I0I1)3, (I1I2)1, (I1I2)2,
(I1I2)3, ... Above each line I0, I1, I
2, Output line data (O
ut (I0), Out (I0), Out (I0), Ou
t (I0), Out (I0I1)1, Out (I
0I1)2, Out (I0I1)3, Out (I1),
Out (I1I2)1, Out (I1I2)2, Out
(I1I2)3, ...)
The image is magnified 4 times.

【0034】次に、実際に2ライン分のバッファメモリ
10a,10bを用いて、上記表3に示した主走査方向
及び副走査方向の2倍又は4倍の画像拡大を実現する方
法について説明する。
Next, a method of actually using the buffer memories 10a and 10b for two lines to realize image enlargement of 2 or 4 times in the main scanning direction and the sub scanning direction shown in Table 3 will be described. .

【0035】2ラインのバッファメモリ10a,10b
を用いて上記主走査方向及び副走査方向の2倍又は4倍
の画像拡大を実現できるかどうかは、主に副走査方向の
拡大をどのようにするかにかかっている。したがって、
先ず副走査方向の拡大の方法について説明する。なお、
上記主走査方向の2倍又は4倍の画像拡大を実際に実現
する方法については後述する。
Two-line buffer memories 10a and 10b
Whether or not the image can be magnified twice or four times in the main-scanning direction and the sub-scanning direction depends mainly on how to enlarge in the sub-scanning direction. Therefore,
First, a method of enlarging in the sub-scanning direction will be described. In addition,
A method for actually realizing the image enlargement twice or four times in the main scanning direction will be described later.

【0036】先ず、副走査方向の2倍の拡大から説明す
る。上記表3に対応する表4に示すように、例えば入力
ラインデータ(I0 )と(I1 )がそれぞれ2回入力さ
れたとする。なお、表4中の(I0 1 )は(I0 )と
(I1 )の間の補間ラインを、(I1 2 )は(I1
と(I2 )の間の補間ラインを、(I2 3 )は
(I 2 )と(I3 )の補間ラインを示している。また、
図2には、副走査方向の2倍の拡大時の、プリントパル
スとプリントデータ書き込みクロックと、各ラインの画
像データ、メモリ10a及び10bに格納されるデー
タ、転送制御回路7の転送データ、出力端子8からの出
力データを示している。
First, a description will be given starting from the case where the magnification is doubled in the sub-scanning direction.
It As shown in Table 4 corresponding to Table 3 above, for example, input
Line data (I0) And (I1) Is entered twice each
Suppose In addition, (I in Table 40I1) Is (I0)When
(I1Interpolation line between1I2) Is (I1)
And (I2Interpolation line between2I3) Is
(I 2) And (I3) Shows the interpolation line. Also,
Fig. 2 shows the print pulse when the image is magnified twice in the sub-scanning direction.
And the print data write clock and the image of each line.
Image data, data stored in memories 10a and 10b
Data, the transfer data of the transfer control circuit 7, and the output from the output terminal 8.
The force data is shown.

【0037】[0037]

【表4】 [Table 4]

【0038】これら表4及び図2において、入力ライン
データIn(I0 )が2回入力されてそれぞれメモリ1
0aと10bに格納され、その後入力ラインデータIn
(I 1 )がメモリ10aに入力されるとする。
In Table 4 and FIG. 2, the input line
Data In (I0) Is input twice and each is stored in memory 1
0a and 10b, then input line data In
(I 1) Is input to the memory 10a.

【0039】ここで、副走査方向の2倍の拡大画像を得
るためには、メモリ10aに格納されているラインデー
タ(I1 )を次段の構成に送り、その次に欲しいライン
データは(I0 )と(I1 )の間のラインデータであ
る。したがって、当該ラインデータを算出するには、ラ
インデータ(I0 )と(I1 )の間で補間演算を行い、
補間ラインデータHo(I0 1 )を算出しなければな
らない。その処理は次のように進む。
Here, in order to obtain a double enlarged image in the sub-scanning direction, the line data (I 1 ) stored in the memory 10a is sent to the structure of the next stage, and the line data desired next is ( The line data is between I 0 ) and (I 1 ). Therefore, in order to calculate the line data, interpolation calculation is performed between the line data (I 0 ) and (I 1 ),
Interpolation line data Ho (I 0 I 1 ) must be calculated. The process proceeds as follows.

【0040】上記ラインデータ(I0 )と今入力される
ラインデータ(I1 )との間で補間演算を行うのに必要
な画素数がそろった時点で、メモリ10bに格納されて
いるラインデータ(I0 )とメモリ10aに入力された
ラインデータ(I1 )との間で補間演算が開始される。
この補間演算によって補間ラインデータHo(I
0 1 )が生成され、このラインデータがメモリ10a
に上書きされていく。そして、当該メモリ10aに上書
きされたラインデータHo(I0 1 )が次段への転送
データとなされる。
The line data (I0) Is now entered
Line data (I1) Required to perform interpolation calculation with
When the number of pixels is complete, it is stored in the memory 10b.
Line data (I0) And memory 10a
Line data (I1) And the interpolation calculation are started.
Interpolation line data Ho (I
0I 1) Is generated, and this line data is stored in the memory 10a.
Will be overwritten. Then, overwrite the memory 10a.
Line data Ho (I0I1) Is transferred to the next stage
Made with data.

【0041】次に出力したいのは、ラインデータ
(I1 )なので、第3番目の入力ラインデータ(I1
に対しては演算処理を施すことなく出力する。これ以降
は、I2 ,I3 ,・・・とそれぞれ2ラインずつ入力さ
れてくるので、上記と同様の処理を行うことによって、
副走査方向の画像拡大が実現されることになる。ただ
し、表4及び図2からわかるように、最初の2ライン
(I0 )に限っては、補間演算を行う相手側のライン
(I1 )が未だ入力される前なのでそのまま出力する。
The line data (I 1 ) to be output next is the third input line data (I 1 ).
Is output without performing arithmetic processing. From this point onward, two lines are input for each of I 2 , I 3 , ..., By performing the same processing as above,
Image enlargement in the sub-scanning direction is realized. However, as can be seen from Table 4 and FIG. 2, only the first two lines (I 0 ) are output as they are because the other party line (I 1 ) for which the interpolation calculation is performed is not yet input.

【0042】次に、副走査方向の4倍の拡大について説
明する。上記表3に対応する表5に示すように、例えば
入力ラインデータ(I0 )と(I1 )がそれぞれ4回入
力されたとする。なお、表4中の(I0 1 1 ,(I
0 1 2 ,(I0 1 3は(I0 )と(I1 )の間
の補間ラインを示している。また、図3には、副走査方
向の4倍の拡大時の、プリントパルスとプリントデータ
書き込みクロックと、各ラインの画像データ、メモリ1
0a及び10bに格納されるデータ、転送制御回路7の
転送データ、出力端子8からの出力データを示してい
る。
Next, quadruple enlargement in the sub-scanning direction will be described. As shown in Table 5 corresponding to Table 3 above, it is assumed that the input line data (I 0 ) and (I 1 ) are input four times, respectively. In Table 4, (I 0 I 1 ) 1 , (I
0 I 1 ) 2 and (I 0 I 1 ) 3 indicate interpolation lines between (I 0 ) and (I 1 ). In FIG. 3, the print pulse, the print data write clock, the image data of each line, and the memory 1 when the image is magnified four times in the sub-scanning direction.
The data stored in 0a and 10b, the transfer data of the transfer control circuit 7, and the output data from the output terminal 8 are shown.

【0043】[0043]

【表5】 [Table 5]

【0044】これら表5及び図3において、入力ライン
データIn(I0 )が4回入力されてそれぞれメモリ1
0aと10bに入力されて出力され、その後入力ライン
データIn(I1 )がメモリ10aに入力されるとす
る。
In Table 5 and FIG. 3, the input line data In (I 0 ) is input four times, and the data is stored in the memory 1 respectively.
It is assumed that the input line data In (I 1 ) is input to the memory 10a after being input to and output from 0a and 10b.

【0045】ここで、副走査方向の4倍の拡大画像を得
るためには、ラインデータI0 とI 1 の間のラインデー
タ(I0 1 1 ,(I0 1 2 ,(I0 1 3
ある。上記ラインデータ(I0 1 1 を算出するに
は、先ずラインデータ(I0 1 2 を計算し、続いて
ラインデータ(I0 )と(I0 1 2 との間で補間演
算を行い、ラインデータ(I0 1 1 を算出しなけれ
ばならない。その処理は次のように進む。
Here, an enlarged image of 4 times in the sub-scanning direction is obtained.
To obtain the line data I0And I 1Line day between
(I0I1)1, (I0I1)2, (I0I1)3so
is there. The line data (I0I1)1To calculate
First, line data (I0I 1)2And then
Line data (I0) And (I0I1)2Interpolated between
Line data (I0I1)1Must be calculated
Must. The process proceeds as follows.

【0046】すなわち、ラインデータ(I0 )と今入力
されるラインデータ(I1 )との間で補間演算を行うの
に必要な画素数がそろった時点で、メモリ10bに格納
されているラインデータ(I0 )とメモリ10aに入力
されたラインデータ(I1 )との間で補間演算が開始さ
れる。この補間演算により、補間ラインデータHo(I
0 1 2 が生成され、この補間ラインデータがメモリ
10aに上書きされていく。このとき、必要なのは、上
記ラインデータHo(I0 1 2 ではなくラインデー
タ(I0 1 1 なので、さらに続けてメモリ10aに
保持されているラインデータHo(I0 1 2 とメモ
リ10bに保持されているラインデータ(I0 )との間
で演算に必要な画素数がそろうと、補間演算が再度開始
される。その結果、補間ラインデータHo(I0 1
1 が生成されると、当該生成されたHo(I0 1 1
の各画素データが順次メモリ10aに再度上書きされて
いく。その後、このメモリ10aに格納されたラインデ
ータ(I0 1 1 が次段への転送データとなされる。
That is, when the number of pixels necessary for performing the interpolation calculation between the line data (I 0 ) and the line data (I 1 ) that is just input is complete, the line stored in the memory 10b is stored. The interpolation calculation is started between the data (I 0 ) and the line data (I 1 ) input to the memory 10a. By this interpolation calculation, the interpolation line data Ho (I
0 I 1 ) 2 is generated, and this interpolation line data is overwritten in the memory 10a. At this time, what is needed is not the above line data Ho (I 0 I 1 ) 2 but the line data (I 0 I 1 ) 1, so that the line data Ho (I 0 I 1 ) 2 stored in the memory 10a is further continued. When the number of pixels required for the calculation becomes equal between the line data (I 0 ) held in the memory 10b and the line data (I 0 ), the interpolation calculation is restarted. As a result, the interpolation line data Ho (I 0 I 1 )
When 1 is generated, the generated Ho (I 0 I 1 ) 1
Each pixel data of is sequentially overwritten again in the memory 10a. After that, the line data (I 0 I 1 ) 1 stored in the memory 10a is used as the transfer data to the next stage.

【0047】このように、副走査方向の4倍拡大の時に
は、1つの出力すべきラインを計算するのに、メモリ1
0aに2回上書きしている。すなわち、メモリ10aに
対しては、ラインデータ(I0 )の上に補間ラインデー
タHo(I0 1 2 を、さらにもう一度補間ラインデ
ータHo(I0 1 2 の上に補間ラインデータHo
(I0 1 1 を上書きしている。
As described above, in the case of the 4-fold enlargement in the sub-scanning direction, the memory 1 is used to calculate one line to be output.
0a is overwritten twice. That is, for the memory 10a, the interpolated line data Ho (I 0 I 1 ) 2 is placed on the line data (I 0 ) and the interpolated line data Ho (I 0 I 1 ) 2 is placed again on the interpolated line data Ho (I 0 I 1 ) 2. Ho
(I 0 I 1 ) 1 is overwritten.

【0048】また、上記ラインデータHo(I0 1
1 の次に出力しなければならないのはラインデータHo
(I0 1 2 であり、さらにその次に出力しなければ
ならないのはラインデータHo(I0 1 3 である。
これらがどのように作られていくかを以下に説明する。
Further, the line data Ho (I 0 I 1 )
Line data Ho must be output after 1
(I 0 I 1 ) 2 and the line data Ho (I 0 I 1 ) 3 that must be output next is (I 0 I 1 ) 3 .
How these are made is explained below.

【0049】第5番目のラインで再びラインデータ(I
1 )がメモリ10aに入力されると、メモリ10bに格
納されているラインデータ(I0 )との間で補間演算が
開始され補間ラインデータHo(I0 1 2 が生成さ
れる。この補間ラインデータHo(I0 1 2 がメモ
リ10bに上書きされていく。
The line data (I
When 1 ) is input to the memory 10a, interpolation calculation is started with the line data (I 0 ) stored in the memory 10b, and interpolated line data Ho (I 0 I 1 ) 2 is generated. The interpolation line data Ho (I 0 I 1 ) 2 is overwritten in the memory 10b.

【0050】続いて、第6番目のラインで再々度ライン
データ(I1 )がメモリ10aに入力されると、メモリ
10bに記録されている補間ラインデータHo(I0
1 2 と上記メモリ10aに格納されたラインデータ
(I1 )との間で補間演算が行われ、これにより補間ラ
インデータHo(I0 1 3 が生成される。そして、
この補間ラインデータHo(I0 1 3 は上記メモリ
10bに上書きされていく。
Then, the sixth line is repeated again.
Data (I1) Is input to the memory 10a,
Interpolation line data Ho (I0I
1) 2And line data stored in the memory 10a
(I1) And an interpolation calculation is performed between
In Data Ho (I0I1)3Is generated. And
This interpolation line data Ho (I0I1)3Is the above memory
10b is overwritten.

【0051】このように、補間ラインデータHo(I0
1 2 、Ho(I0 1 3 が順次生成されて出力さ
れる。
In this way, the interpolation line data Ho (I 0
I 1 ) 2 and Ho (I 0 I 1 ) 3 are sequentially generated and output.

【0052】次に、出力したいのは、ラインデータ(I
1 )なので、第7番目のラインであるラインデータ(I
1 )に対して演算処理を施すことなく出力する。これ以
降は、I2 ,I3 ,・・・と4ラインずつ入力されてく
るので、上記と同様の処理を行うことによって、上記副
走査方向の4倍の画像拡大が実現可能となる。なお、こ
の副走査方向の4倍拡大の場合も、表5及び図3からわ
かるように、最初の4ライン(I0 )に限っては、補間
演算を行う相手側のライン(I1 )が入力される前なの
でそのまま出力する。
Next, the line data (I
1 ), so the 7th line, line data (I
Output without performing arithmetic processing on 1 ). From this point onward, I 2 , I 3 , ... Are input by 4 lines each, and therefore, by performing the same processing as described above, it is possible to realize image enlargement of 4 times in the sub-scanning direction. Even in the case of the 4 × enlargement in the sub-scanning direction, as can be seen from Table 5 and FIG. 3, only the first 4 lines (I 0 ) have the other line (I 1 ) on which the interpolation is performed. Since it is not input, it is output as it is.

【0053】一方、主走査方向の拡大は、上記副走査方
向の拡大終了後に次段へ転送するときに行う。
On the other hand, the enlargement in the main scanning direction is performed when transferring to the next stage after the enlargement in the sub scanning direction is completed.

【0054】すなわち、表1に示すように、主走査方向
の2倍の拡大の場合には1ドットおきの2ドットを使っ
てその間の画素を2ドットの平均値に置き換える。ま
た、表2に示すように、主走査方向の4倍の拡大の場合
には3ドットおきの2ドットを使ってその間の3画素を
(3A+B)/4、(A+3B)/4でそれぞれ置き換
える。
That is, as shown in Table 1, in the case of double enlargement in the main scanning direction, every other dot is used, and the pixels in between are replaced with the average value of 2 dots. Further, as shown in Table 2, in the case of 4 times enlargement in the main scanning direction, two dots every three dots are used and three pixels in between are replaced by (3A + B) / 4 and (A + 3B) / 4.

【0055】ここで、主走査方向の画像拡大の際に、上
述のような単純な平均値を採用したのは、主走査方向
と、走査線方向が一致していること、。さらに画像デー
タは、アナログ信号をサンプリングしたものであり、ア
ナログ信号の周波数特性が高くないこと、などからから
上記単純平均を採用している。その概略を図4を用いて
説明する。
Here, when the image is enlarged in the main scanning direction, the simple average value as described above is adopted because the main scanning direction and the scanning line direction are the same. Further, the image data is obtained by sampling an analog signal, and the simple average is adopted because the frequency characteristics of the analog signal are not high. The outline will be described with reference to FIG.

【0056】すなわち、この図4において、例えばアナ
ログ信号を図中の○の所でサンプリングしたとする。こ
れを2倍に拡大するには図中の●の所のサンプリング値
が必要となる。この値を推測しようとすると、アナログ
信号の周波数特性が高くないため平均値でも略近い値が
得られることがわかり、このことから上記主走査方向の
拡大の際には、上記単純平均を用いるようにしている。
なお、アナログ信号の場合、急峻な立ち上がりでも例え
ば220ns程度はかかり、サンプリングは60又は7
0ns程度で行われる。
That is, in FIG. 4, it is assumed that, for example, an analog signal is sampled at the position of ◯ in the drawing. To double this, the sampling value at the ● position in the figure is required. When trying to infer this value, it can be seen that the analog signal frequency characteristics are not high, so that a value close to the average value can be obtained. Therefore, when enlarging in the main scanning direction, the above-mentioned simple average should be used. I have to.
It should be noted that in the case of an analog signal, it takes about 220 ns even for a sharp rise, and sampling is performed at 60 or 7
It takes about 0 ns.

【0057】次に、上記副走査方向の画像拡大に使用す
る補間演算について説明する。なお、以下の説明では、
画像を副走査方向に2倍に拡大する場合を例に挙げてい
る。
Next, the interpolation calculation used for the image enlargement in the sub-scanning direction will be described. In the following explanation,
An example is given in which the image is doubled in the sub-scanning direction.

【0058】入力制御回路6によってフレームメモリか
ら読み出されてメモリ10a,10bに送られる入力ラ
インのデータの並びは、以下のようになる。なお、以下
に示すiは原入力信号の第iラインを示す。また、
Aj ,Bj ,Cj ,Dj ,・・・,Xj ,Y j ,Zj は原入力信号の
いずれか1つのライン中の各画素値を示す。
Whether the input control circuit 6 is a frame memory
The input library read from the memory and sent to the memories 10a and 10b.
The sequence of in data is as follows. In addition, the following
I indicates the i-th line of the original input signal. Also,
Aj, Bj, Cj, Dj・ ・ ・ ・ ・ ・, Xj, Y j, ZjIs the original input signal
Each pixel value in any one line is shown.

【0059】 入力ライン 原信号の画像ラインデータ ・ ・ ・ ・ ・ ・ 第n−2ライン Ai-1 Bi-1 Ci-1 Di-1 ・・・ Xi-1 Yi-1 Zi-1 第n−1ライン Ai-1 Bi-1 Ci-1 Di-1 ・・・ Xi-1 Yi-1 Zi-1 第nライン Ai Bi Ci Di ・・・ Xi Yi Zi 第n+1ライン Ai Bi Ci Di ・・・ Xi Yi Zi 第n+2ライン Ai+1 Bi+1 Ci+1 Di+1 ・・・ Xi+1 Yi+1 Zi+1 第n+3ライン Ai+1 Bi+1 Ci+1 Di+1 ・・・ Xi+1 Yi+1 Zi+1 ・ ・ ・ ・ ・ ・Input line Image line data of original signal ········ n-2nd line A i-1 B i-1 C i-1 D i-1 ... X i-1 Y i-1 Z i-1 nth line A i-1 B i-1 C i-1 D i-1 ... X i-1 Y i-1 Z i-1 nth line A i B i C i D i・ ・ ・ X i Y i Z i nth line A i B i C i D i・ ・ ・ X i Y i Z i n + 2 line A i + 1 B i + 1 C i + 1 D i + 1 ...・ X i + 1 Y i + 1 Z i + 1th n + 3 line A i + 1 B i + 1 C i + 1 D i + 1 ... X i + 1 Y i + 1 Z i + 1 ...・ ・ ・

【0060】すなわち、例えば上記メモリ10a,10
bのうちの一方のメモリに入力ラインとして第n−2ラ
インが入力されると、続いてそれと同じデータである第
n−1ラインが他方のメモリに入力される。以下同様
に、一方のメモリに第nラインのデータが入力されると
他方のメモリには同じデータである第n+1ラインのデ
ータが、一方のメモリに第n+2のデータが入力される
と他方のメモリには同じデータである第n+3ラインの
データが入力されるような具合に、順次メモリ10a,
10bには同じ画像データが入力される。
That is, for example, the memories 10a, 10
When the (n-2) th line is input as an input line to one of the memories b, the n-1th line, which is the same data, is subsequently input to the other memory. Similarly, when the data of the nth line is input to one memory, the same data of the (n + 1) th line is input to the other memory, and when the n + 2th data is input to one memory, the other memory is input. In order that the data of the (n + 3) th line which is the same data is input to the memory 10a,
The same image data is input to 10b.

【0061】ここで、例えば、メモリ10aに対して既
に例えば第n−1ラインのデータが保持されており、メ
モリ10bに対して第nラインのデータが転送されて来
るとする。
Here, it is assumed that, for example, the data of the (n-1) th line is already held in the memory 10a and the data of the nth line is transferred to the memory 10b.

【0062】第nラインの画像データがメモリ10bに
入力され、補間演算を行えるデータ数以上のデータが当
該メモリ10bに揃い始めると、ワークテーブル転送制
御回路9によって演算に必要なデータがメモリ10aと
10bからワークテーブルのシフトレジスタ13に転送
される。
When the image data of the n-th line is input to the memory 10b and the number of data equal to or larger than the number of data which can be interpolated starts to be stored in the memory 10b, the work table transfer control circuit 9 transfers the data required for the operation to the memory 10a. 10b to the work table shift register 13.

【0063】すなわち、シフトレジスタ13は2つのシ
フトレジスタ13aと13bとからなり、一方のシフト
レジスタ13aにはメモリ10aからの第n−1ライン
の各画素データが各レジスタam ,am+1 ,am+2 ,a
m+3 ,am+4 ,am+5 ,am+ 6 に順にシフトされて格納
され、他方のシフトレジスタ13bにはメモリ10bか
らの第nラインの各画素データが各レジスタbm ,b
m+1 ,bm+2 ,bm+3 ,bm+4 ,bm+5 ,bm+6 に順に
シフトされて格納される。
[0063] That is, the shift register 13 consists of two shift registers 13a and 13b, the n-1 pixel data registers a m line from the memory 10a on one of the shift register 13a, a m + 1 , A m + 2 , a
m + 3, a m + 4 , a m + 5, a m + 6 are stored are shifted sequentially to the other shift register 13b the n-th pixel data registers b m of the line from the memory 10b to, b
The data are sequentially shifted and stored in m + 1 , b m + 2 , b m + 3 , b m + 4 , b m + 5 , b m + 6 .

【0064】当該シフトレジスタ13に第n−1ライン
と第nラインの所定数の画素データが揃うと、当該シフ
トレジスタ13からは各画素データが出力されて補間演
算回路14に送られる。
When a predetermined number of pixel data of the (n−1) th line and the nth line are prepared in the shift register 13, each pixel data is output from the shift register 13 and sent to the interpolation calculation circuit 14.

【0065】当該補間演算回路14では、供給された第
n−1ラインと第nラインの画素データを用いて後述す
るパターン認識を行い、当該第n−1ラインと第nライ
ンとの間のラインの補間値を算出する。
In the interpolation calculation circuit 14, pattern recognition described later is performed using the supplied pixel data of the (n-1) th line and the nth line, and a line between the (n-1) th line and the nth line. The interpolated value of is calculated.

【0066】この補間値のデータは、メモリ10bに転
送され、補間演算に必要なくなった部分に上書きされて
いく。
The data of this interpolation value is transferred to the memory 10b and overwritten on the portion which is no longer necessary for the interpolation calculation.

【0067】次に、本実施例の補間演算回路14におい
て採用している補間方法について以下に説明する。
Next, the interpolation method used in the interpolation calculation circuit 14 of this embodiment will be described below.

【0068】ここで、上記ラインバッファメモリ10a
と10bから出力されてシフトレジスタ13aのレジス
タam ,am+1 ,am+2 ,am+3 ,am+4 ,am+5 ,a
m+6と、シフトレジスタ13bの各レジスタbm ,b
m+1 ,bm+2 ,bm+3 ,bm+4,bm+5 ,bm+6 に格納
されたデータ(既存ラインのデータ)が、例えば図5に
示すように、シフトレジスタ13aにおいてはAi ,B
i ,Ci ,Di ,Ei ,Fi ,Gi に示すデータとな
り、シフトレジスタ13bにおいてはAi+1 ,Bi+ 1
i+1 ,Di+1 ,Ei+1 ,Fi+1 ,Gi+1 に示すデータ
となっているとする。また、これらシフトレジスタ13
a及び13bに格納されたデータを用いて算出される補
間画素のデータをXとすると、図5の図中Xk は今現在
補間する画素を表し、Xk-2 はXk の2画素前の補間画
素を、Xk-1 はXk の1画素前の補間画素を、Xk+1
k の次に補間する画素を表している。
Here, the line buffer memory 10a
And 10b to output the registers a m , a m + 1 , a m + 2 , a m + 3 , a m + 4 , a m + 5 , a of the shift register 13 a.
m + 6 and each register b m , b of the shift register 13b
The data (data of the existing line) stored in m + 1 , b m + 2 , b m + 3 , b m + 4 , b m + 5 , b m + 6 is shifted as shown in FIG. 5, for example. In the register 13a, A i , B
i , C i , D i , E i , F i , and G i become the data, and in the shift register 13b, A i + 1 , B i + 1 ,
It is assumed that the data are C i + 1 , D i + 1 , E i + 1 , F i + 1 , and G i + 1 . In addition, these shift registers 13
Assuming that the data of the interpolated pixel calculated using the data stored in a and 13b is X, X k in the drawing of FIG. 5 represents the pixel currently interpolated, and X k-2 is two pixels before X k. the interpolation pixel, X k-1 is the interpolation pixel one pixel before the X k, X k + 1 represents the pixel to be interpolated in the following X k.

【0069】ここで、本実施例の補間演算回路14で
は、上記画素xk を補間演算によって求める場合、上記
2つのシフトレジスタ13a及び13bに格納されてい
る図5のような各7画素(すなわち7×2画素)のデー
タの内、図5の図中破線で囲った2つの既存ラインの各
3つの画素(すなわち3×2画素)のデータを用いてパ
ターン認識を行う。
Here, in the interpolation calculation circuit 14 of the present embodiment, when the pixel x k is obtained by the interpolation calculation, each of the 7 pixels as shown in FIG. 5 stored in the two shift registers 13a and 13b (that is, The pattern recognition is performed using the data of each of the three pixels (that is, 3 × 2 pixels) in the two existing lines surrounded by the broken line in FIG. 5 out of the 7 × 2 pixel data.

【0070】このパターン認識の際には、先ず、上下左
右方向において隣合う画素との大小関係を求める。すな
わち、画素Xk を補間演算によって求める場合、シフト
レジスタ13aに格納されている画素データのうち
i ,Di ,Ei とシフトレジスタ13bに格納されて
いる画素データのうちCi+1 ,Di+1 ,Ei+1 を用い
て、上下左右方向に隣合う画素の大小関係を求める。た
だし、Di とDi+1 との間の大小関係は除外する。
At the time of this pattern recognition, first, the magnitude relationship between adjacent pixels in the vertical and horizontal directions is obtained. That is, when the pixel X k is obtained by interpolation calculation, C i , D i , E i of the pixel data stored in the shift register 13a and C i + 1 , of the pixel data stored in the shift register 13b, Using D i + 1 and E i + 1 , the size relation of the pixels adjacent in the vertical and horizontal directions is obtained. However, the magnitude relation between D i and D i + 1 is excluded.

【0071】この時の隣合う画素の組み合わせは6通り
あり、そのそれぞれに対し、等号、不等号の向きの3通
りを考えると、図5の図中破線で囲う上記3×2画素領
域の大小関係による組み合わせ(すなわちパターン)
は、36 通り(=729通り)存在する。補間演算回路
14では、この729通りのパターンの認識を行い、こ
の認識領域をさらに広げるかどうかを決定する。
At this time, there are 6 combinations of adjacent pixels. Considering 3 combinations of equal sign and inequality sign for each of them, the size of the above 3 × 2 pixel area surrounded by the broken line in FIG. 5 is considered. Combination by relationship (ie pattern)
There are 3 6 types (= 729 types). The interpolation calculation circuit 14 recognizes the 729 patterns and determines whether or not to further expand the recognition area.

【0072】この時点で、認識されたパターンが、これ
以上認識領域を広げてもあまり情報量の変わらないパタ
ーンや、最大7×2画素の認識領域では認識しきれない
パターンであることがわかれば、上記3×2画素の認識
領域から補間値xk を求める。
At this point, if it is known that the recognized pattern is a pattern in which the amount of information does not change much even if the recognition area is further expanded, or a pattern that cannot be recognized in the recognition area of 7 × 2 pixels at the maximum. , The interpolation value x k is obtained from the 3 × 2 pixel recognition area.

【0073】一方、上記3×2画素の認識領域をさらに
広げることによって、より正確なパターン認識ができる
と判定されるパターンであれば、当該3×2画素の認識
領域よりもさらに広げた認識領域(この場合は最大7×
2画素の認識領域まで広げることができる)でパターン
認識を行う。
On the other hand, if the pattern is judged to be capable of more accurate pattern recognition by further expanding the recognition area of 3 × 2 pixels, the recognition area further expanded than the recognition area of 3 × 2 pixels. (In this case, the maximum is 7 ×
Pattern recognition is performed by (it can be expanded to a recognition area of 2 pixels).

【0074】図6を用いて上記補間演算のアルゴリズム
を概略的に説明する。この図6において、ステップS1
では先ず3×2画素領域でパターン認識を行う。次のス
テップS2では、認識領域をさらに広げるかどうかの判
断を行い、広げる(イエス)と判断した場合にはステッ
プS3へ、広げない(ノー)と判断した場合にはステッ
プS4に進む。
The algorithm of the above interpolation calculation will be schematically described with reference to FIG. In FIG. 6, step S1
First, pattern recognition is performed in the 3 × 2 pixel area. In the next step S2, it is judged whether or not the recognition area should be further expanded. If it is judged that the recognition area should be further expanded (Yes), the processing advances to step S3, and if it is judged not to be expanded (no), the processing advances to step S4.

【0075】ステップS4では、後述する表2〜表10
に示すテーブルを参照して3×2画素領域でパターン認
識を行い、次のステップS6では、以下の3つの式から
最適なものを選択して、補間演算決定を行う。 Xk =(Ci +Ei+1 )/2 Xk =(Di +Di+1 )/2 Xk =(Ei +Ci+1 )/2
In step S4, Tables 2 to 10 described later are used.
Pattern recognition is performed in the 3 × 2 pixel area by referring to the table shown in FIG. 3, and in the next step S6, the optimum one is selected from the following three formulas to determine the interpolation calculation. X k = (C i + E i + 1 ) / 2 X k = (D i + D i + 1 ) / 2 X k = (E i + C i + 1 ) / 2

【0076】また、ステップS3では、後述する表6〜
表14に示すテーブルを参照して7×2画素領域でパタ
ーン認識を行い、次のステップS5では、以下の8つの
式から最適なものを選択して補間演算決定を行う。 Xk =(Ai +Gi+1 )/2 Xk =(Bi +Fi+1 )/2 Xk =(Ci +Ei+1 )/2 Xk =(Di +Di+1 )/2 Xk =(Di +Di+1 +2Xk-1 )/4 Xk =(Ei +Ci+1 )/2 Xk =(Fi +Bi+1 )/2 Xk =(Gi +Ai+1 )/2
Further, in step S3, Table 6 to
Pattern recognition is performed in the 7 × 2 pixel area with reference to the table shown in Table 14, and in the next step S5, the optimum one is selected from the following eight expressions to determine the interpolation calculation. X k = (A i + G i + 1 ) / 2 X k = (B i + F i + 1 ) / 2 X k = (C i + E i + 1 ) / 2 X k = (D i + D i + 1 ). / 2 X k = (D i + D i + 1 + 2X k-1 ) / 4 X k = (E i + C i + 1 ) / 2 X k = (F i + B i + 1 ) / 2 X k = (G i + A i + 1 ) / 2

【0077】すなわち、本実施例では、上述のように、
パターン認識する領域を広げてもあまり情報量の変わら
ないパターンであるときには、後述する表6〜表14に
示すテーブルを参照して上記3×2画素の認識領域から
補間値を求めるようにし、一方、パターン認識する領域
を広げることによってより正確なパターン認識ができる
と判定されるパターンであるときには、後述する表6〜
表14に示すテーブルを参照して7×2画素の領域から
補間値を求めることによって、補間後の画質を高画質に
保ったままパターン認識する回路の規模の拡大を抑える
ようにしている。
That is, in this embodiment, as described above,
When the pattern recognition area has a pattern in which the amount of information does not change much even if the area is widened, an interpolation value is obtained from the recognition area of 3 × 2 pixels by referring to the tables shown in Tables 6 to 14 described later. If the pattern is determined to be more accurate by expanding the pattern recognition area, Table 6 to be described later
By obtaining the interpolation value from the 7 × 2 pixel area with reference to the table shown in Table 14, the scale of the pattern recognition circuit is prevented from expanding while keeping the image quality after interpolation high.

【0078】これは、例えば、上記7×2画素の全領域
を最初からパターン認識領域とすると、その隣接画素間
の大小関係の組み合わせ(すなわちパターン)は、318
(=387420489)通りとなり、この全パターン
に対してパターン認識を行い、それぞれ補間演算方法を
決定するのは、非常に難しく、回路規模的にも大きくな
り過ぎると思われるためであり、したがって、本実施例
では、上述のように、先ず3×2画素の領域で認識し、
その後適応的に最大7×2画素の領域まで広げることに
より、考慮する組み合わせを減らし、さらに7×2画素
の領域まで広げたときも補間演算の式を前記8つの式の
みとしているため、回路規模が大きくなるのが抑制され
ている。なお、本実施例の回路では、その組み合わせ
(パターン)は、約920通りにまで削減されている。
For example, if the entire area of 7 × 2 pixels is set as the pattern recognition area from the beginning, the combination (that is, the pattern) of the magnitude relation between the adjacent pixels is 3 18.
(= 387420489), and it is very difficult to determine the interpolation calculation method for each pattern by performing pattern recognition, and it seems that the circuit scale becomes too large. In the embodiment, as described above, first, the recognition is performed in the area of 3 × 2 pixels,
After that, by adaptively expanding the area to a maximum of 7 × 2 pixels, the number of combinations to be considered is reduced. Even when the area is expanded to a 7 × 2 pixel area, the equations for interpolation calculation are only the above eight equations. Is suppressed from increasing. In the circuit of this embodiment, the number of combinations (patterns) is reduced to about 920.

【0079】以下、上述した補間演算についてより具体
的な例を挙げて説明する。図5の例において、補間画素
i を求める際には、図5の図中破線内部の画素Ci
i ,Ei とCi+1 ,Di+1 ,Ei+1 の6個のデータの
大小関係から、補間方向が斜めであるか上下であるかを
決定する。この大小関係によって決定される補間方向を
表したテーブルを、表6〜表14に示す。これらのテー
ブルは、上記6個の画素の組み合わせの数である36
729と対応している。
The above-described interpolation calculation will be described below with reference to a more specific example. In the example of FIG. 5, when obtaining the interpolated pixel X i , the pixel C i inside the broken line in FIG.
It is determined whether the interpolation direction is diagonal or vertical based on the magnitude relation between the six data D i , E i and the six data C i + 1 , D i + 1 , E i + 1 . Tables 6 to 14 show tables showing the interpolation directions determined by this magnitude relationship. These tables show the number of combinations of the above 6 pixels, 3 6 =
It corresponds to 729.

【0080】[0080]

【表6】 [Table 6]

【0081】[0081]

【表7】 [Table 7]

【0082】[0082]

【表8】 [Table 8]

【0083】[0083]

【表9】 [Table 9]

【0084】[0084]

【表10】 [Table 10]

【0085】[0085]

【表11】 [Table 11]

【0086】[0086]

【表12】 [Table 12]

【0087】[0087]

【表13】 [Table 13]

【0088】[0088]

【表14】 [Table 14]

【0089】これらのテーブルに従い、3×2画素の領
域のパターン認識により、補間画素Xは、各表中の無印
と/印と\印とに応じて、次のように決定される。 無印 X=(Di +Di+1 )/2 /印 X=(Ei +Ci+1 )/2 \印 X=(Ci +Ei+1 )/2
According to these tables, the interpolated pixel X is determined as follows according to the blank mark, the / mark and the \ mark in each table by the pattern recognition of the 3 × 2 pixel area. No mark X = (D i + D i + 1 ) / 2 / mark X = (E i + C i + 1 ) / 2 \ mark X = (C i + E i + 1 ) / 2

【0090】ただし、表中の/印,\印の横又は上にD
i >Ci+1 ,Di+1 >Ci ,Di ≦Ei+1 ,・・・等と
ある場合は、その条件が満たされるときのみ当該斜めの
補間を行うことを表している。また、テーブル上の〜
の部分は後述する7×2画素の領域のパターン認識に
よって補間画像を得る部分を示している。
However, D is placed beside or above the / and \ marks in the table.
When i > C i + 1 , D i + 1 > C i , D i ≦ E i + 1 , ..., It means that the diagonal interpolation is performed only when the condition is satisfied. . Also on the table ~
The portion of indicates a portion where an interpolated image is obtained by pattern recognition of a 7 × 2 pixel area described later.

【0091】また、表6〜表14のテーブルの行と列に
は、それぞれ0〜26までの番号を付けており、ここで
行番号をqとし、列番号をrとしてテーブルの各マトリ
クスを座標(r,q)と表現したとき、以下のから
で示すテーブル上の座標部分については、7×2画素の
データから補間を行う。
Further, the rows and columns of the tables in Tables 6 to 14 are respectively numbered from 0 to 26, where the row number is q and the column number is r, and each matrix of the table is coordinated. When expressed as (r, q), interpolation is performed from the data of 7 × 2 pixels for the coordinate portion on the table indicated by the following.

【0092】(0,12),(9,12) (14,2),(14,11) (14,23),(14,26) (21,12),(24,12)(0,12), (9,12) (14,2), (14,11) (14,23), (14,26) (21,12), (24,12)

【0093】(17,14),(26,14) (12,15),(12,24) (12,0),(12,3) (2,14),(5,14)(17,14), (26,14) (12,15), (12,24) (12,0), (12,3) (2,14), (5,14)

【0094】(26,0),(0,26)(26,0), (0,26)

【0095】(7,13),(8,14),(12,
6),(13,7),(12,19),(13,2
0),(18,12),(19,13)
(7, 13), (8, 14), (12,
6), (13, 7), (12, 19), (13, 2)
0), (18,12), (19,13)

【0096】(0,23),(9,26),(17,
0),(26,3) (0,17),(3,26),(23,0),(26,
9)
(0,23), (9,26), (17,
0), (26,3) (0,17), (3,26), (23,0), (26,
9)

【0097】以下、これらテーブル中の〜の座標部
分で示す7×2画素でパターン認識を行う領域での補間
アルゴリズムについて説明する。
The interpolation algorithm in the area where the pattern recognition is performed by 7 × 2 pixels shown in the coordinate portions of these tables will be described below.

【0098】先ず、テーブル中のの座標部分の補間の
一例として、例えばCi <Di <E i >Ei+1 =Di+1
=Ci+1 <Ci の時は、図7のフローチャートの大小判
別を行って補間する。すなわち、データの小さい方に探
す処理を行って補間する。なお、上記Ci <Di <Ei
>Ei+1 =Di+1 =Ci+1 <Ci は、表11の(r,
q)=(24,12)の座標に対応する例である。
First, the interpolation of the coordinate part in the table
As an example, for example, Ci<Di<E i> Ei + 1= Di + 1
= Ci + 1<CiIn case of, the large and small size of the flowchart of FIG.
Do another and interpolate. In other words, search for smaller data.
Interpolation is performed. The above Ci<Di<Ei
> Ei + 1= Di + 1= Ci + 1<CiIs (r,
In this example, q) = (24, 12).

【0099】すなわち、この図7において、ステップS
10ではBi <Ci 及びEi+1 =F i+1 であるか否かの
判断を行い、ノーと判断した場合にはステップS11
に、イエスと判断した場合にはステップS12に進む。
That is, in FIG. 7, step S
B in 10i<CiAnd Ei + 1= F i + 1Whether or not
The judgment is made, and if the judgment is NO, step S11.
If the answer is yes, then go to step S12.

【0100】ステップS11では、Xk =(Ci +E
i+1 )/2の演算を行って補間値を求める。ステップS
12では、Ai <Bi の判断を行い、ノーと判断した場
合にはステップS13に、イエスと判断した場合にはス
テップS14に進む。
In step S11, X k = (C i + E
i + 1 ) / 2 is calculated to obtain the interpolated value. Step S
In step 12, if it is determined that A i <B i , the process proceeds to step S13 if the result is NO, and to step S14 if the result is YES.

【0101】ステップS13では、Xk =(Bi +F
i+1 )/2の演算を行って補間値を求め、ステップS1
4では、Xk =(Ai +Gi+1 )/2の演算を行って補
間値を求める。
In step S13, X k = (B i + F
i + 1 ) / 2 is calculated to obtain the interpolated value, and step S1
In step 4, X k = (A i + G i + 1 ) / 2 is calculated to obtain an interpolated value.

【0102】次に、の部分の補間では、例えばCi
i >Ei <Ei+1 =Di+1 =Ci+ 1 >Ci の時、図8
のフローチャートの大小判別を行って補間する。すなわ
ち、データの大きい方に探す処理を行って補間する。な
お、このCi >Di >Ei <Ei+1 =Di+1 =Ci+1
i は、表9の(r,q)=(2,14)の座標に対応
する例である。
Next, in the interpolation of the portion of, for example, C i >
When D i > E i <E i + 1 = D i + 1 = C i + 1 > C i , FIG.
Interpolation is performed by determining the size of the flow chart. That is, interpolation is performed by performing the process of searching for the larger data. Note that this C i > D i > E i <E i + 1 = D i + 1 = C i + 1 >
C i is an example corresponding to the coordinates (r, q) = (2, 14) in Table 9.

【0103】すなわち、この図8において、ステップS
20ではBi >Ci 及びEi+1 =F i+1 であるか否かの
判断を行い、ノーと判断した場合にはステップS21
に、イエスと判断した場合にはステップS22に進む。
That is, in FIG. 8, step S
B at 20i> CiAnd Ei + 1= F i + 1Whether or not
If the judgment is made and the judgment is NO, step S21.
If the answer is yes, then go to step S22.

【0104】ステップS21では、Xk =(Ci +E
i+1 )/2の演算を行って補間値を求める。ステップS
22では、Ai >Bi の判断を行い、ノーと判断した場
合にはステップS23に、イエスと判断した場合にはス
テップS24に進む。
In step S21, X k = (C i + E
i + 1 ) / 2 is calculated to obtain the interpolated value. Step S
At 22, it is judged whether A i > B i . If it is judged as no, the process proceeds to step S23, and if it is judged as yes, the process proceeds to step S24.

【0105】ステップS23では、Xk =(Bi +F
i+1 )/2の演算を行って補間値を求め、ステップS2
4では、Xk =(Ai +Gi+1 )/2の演算を行って補
間値を求める。
In step S23, X k = (B i + F
i + 1 ) / 2 is calculated to obtain the interpolated value, and step S2
In step 4, X k = (A i + G i + 1 ) / 2 is calculated to obtain an interpolated value.

【0106】ここで、,の部分の補間演算において
は、これら両方とも補間値Xk の上限と下限を設定す
る。すなわち、Di <Xk <Di+1 又はDi >Xk >D
i+1 のように上限と下限を設定し、補間結果Xk がこの
関係を満たすときは、そのまま補間値Xk を採用する。
この関係を満たさないときは、最内斜め補間値をXk
する。すなわち、の部分の補間演算の時はXk =(E
i +Ci+1 )/2を補間結果とし、の部分の補間演算
の時はXk =(Ci +Ei+1 )/2を補間結果とする。
Here, in the interpolation calculation of the portions of and, both upper and lower limits of the interpolation value X k are set. That is, D i <X k <D i + 1 or D i > X k > D
When the upper and lower limits are set like i + 1 and the interpolation result X k satisfies this relationship, the interpolation value X k is adopted as it is.
When this relationship is not satisfied, the innermost diagonal interpolation value is set to X k . That is, X k = (E
Let i + C i + 1 ) / 2 be the interpolation result, and X k = (C i + E i + 1 ) / 2 be the interpolation result at the time of the interpolation calculation of the portion.

【0107】次に、の部分の補間演算では、例えばC
i <Di <Ei >Ei+1 <Di+1 <Ci+1 >Ci の時、
i とEi+1 との間に大小関係の谷があるか、また、E
i とCi+1 との間に大小関係の尾根があるか判らない。
そこで、次の条件で補間する。なお、当該の補間演算
における上記Ci <Di <Ei >Ei+1 <Di+1 <C
i+1 >Ci の符号が全て入れ代わったパターンの場合に
は、Ci とEi+1 の間で尾根、Ei とCi+1 の間で谷の
ようになる。また、Ci <Di <Ei >Ei+1 <Di+1
<Ci+1 >Ci は、表8の(r,q)=(26,0)の
座標に対応する例である。
Next, in the interpolation calculation of the portion of, for example, C
i<Di<Ei> Ei + 1<Di + 1<Ci + 1> Citime,
CiAnd Ei + 1Is there a valley of magnitude relation with
iAnd Ci + 1I don't know if there is a ridge of magnitude relation with.
Therefore, interpolation is performed under the following conditions. The interpolation calculation
C above ini<Di<Ei> Ei + 1<Di + 1<C
i + 1> CiIn the case of a pattern in which all signs of
Is CiAnd Ei + 1Ridge between, EiAnd Ci + 1Between the valley
Like Also, Ci<Di<Ei> Ei + 1<Di + 1
<Ci + 1> CiOf (r, q) = (26,0) in Table 8
It is an example corresponding to coordinates.

【0108】このとき、上記大小関係の尾根か谷かの判
断は、次の基準で行う。例えば、Ai 〜Ei の大小関係
が、以下のような場合に、Bi 又はCi に谷があるとす
る。
At this time, the judgment as to whether it is a ridge or a valley in the above-mentioned magnitude relation is made based on the following criteria. For example, if the magnitude relationship of A i to E i is as follows, it is assumed that there is a valley in B i or C i .

【0109】Ai >Bi <Ci <Di <Ei 、又は、A
i >Bi =Ci <Di <Ei 、又は、Ai >Bi >Ci
<Di <Ei
A i > B i <C i <D i <E i , or A
i > B i = C i <D i <E i , or A i > B i > C i
<D i <E i

【0110】したがって、Bi とCi との間の大小関係
はなく、Ai とBi との間の大小関係がAi >Bi とな
っていれば、谷があると判断する。
Therefore, if there is no magnitude relation between B i and C i, and if the magnitude relation between A i and B i is A i > B i , it is judged that there is a valley.

【0111】ここで、第1の条件として、Ai >Bi
及びFi+1 <Gi+1 のとき、Bi 又はCi に谷がある
か、及び、Ei+1 又はFi+1 に谷があるか否かの判断を
行い、共に谷があるときはQ1 =1とし、いずれか一方
又はいずれにも谷がないときはQ1 =0とする。
Here, as the first condition, A i > B i ,
And F i + 1 <G i + 1 , it is determined whether or not there is a valley in B i or C i and whether or not there is a valley in E i + 1 or F i + 1. When there is one, Q 1 = 1 and when there is no valley in either one or both, Q 1 = 0.

【0112】また、第2の条件として、Ai+1
i+1 、及びFi >Gi のとき、Bi+1 又はCi+1 に尾
根があるか、及び、Ei 又はFi に尾根があるか否かの
判断を行い、共に尾根があるときはQ2 =1、いずれか
一方又はいずれにも尾根がないときはQ2 =0とする。
As the second condition, A i + 1 <
When B i + 1 and F i > G i , it is determined whether or not there is a ridge at B i + 1 or C i + 1 and whether or not there is a ridge at E i or F i. If there is a ridge, Q 2 = 1; if there is no ridge on either or both, then Q 2 = 0.

【0113】この時点で、先ず次のように補間方法を決
定する。 Q1 =1,Q2 =1であればXk =(Di +Di+1 )/
2 Q1 =1,Q2 =0であればXk =(Ci +Ei+1 )/
2 Q1 =0,Q2 =1であればXk =(Ei +Ci+1 )/
2 Q1 =0,Q2 =0であれば次の判定を行う。
At this point, the interpolation method is first determined as follows. If Q 1 = 1 and Q 2 = 1 then X k = (D i + D i + 1 ) /
If 2 Q 1 = 1 and Q 2 = 0, then X k = (C i + E i + 1 ) /
If 2 Q 1 = 0 and Q 2 = 1 then X k = (E i + C i + 1 ) /
2 If Q 1 = 0 and Q 2 = 0, the next judgment is made.

【0114】次に、第3の条件として、Ai >Bi 、又
はFi+1 <Gi+1 のとき、Bi 又はCi 又はEi+1 又は
i+1 に谷があるか否かの判断を行い、いずれかに谷が
あるときはQ3 =1とし、いずれにも谷がないときはQ
3 =0とする。
Next, as the third condition, when A i > B i or F i + 1 <G i + 1 , there is a valley in B i or C i or E i + 1 or F i + 1. If there is a valley on either side, set Q 3 = 1. If there is no valley on either side, Q
3 = 0.

【0115】また、第4の上限として、Ai+1
i+1 、又はFi >Gi のとき、Bi+1 又はCi+1 又は
i 又はFi に尾根があるか否かの判断を行い、いずれ
かに尾根があるときはQ4 =1、いずれにも尾根がない
ときはQ4 =0とする。
As the fourth upper limit, A i + 1 <
When B i + 1 or F i > G i , it is determined whether or not there is a ridge in B i + 1 or C i + 1 or E i or F i. 4 = 1 and when none have ridges, set Q 4 = 0.

【0116】第5の条件として、Ci =Ei+1 、又はC
i =Fi+1 、又はBi =Ei+1 、又はBi =Fi+1 の判
断において、イエスのときはQ5 =1、ノーのときはQ
5 =0とする。
As the fifth condition, C i = E i + 1 , or C
In the judgment of i = F i + 1 , or B i = E i + 1 , or B i = F i + 1 , when yes, Q 5 = 1 and when no, Q 5
Set 5 = 0.

【0117】第6の条件として、Ei =Ci+1 、又はE
i =Bi+1 、又はFi =Ci+1 、又はFi =Bi+1 の判
断において、イエスのときはQ6 =1、ノーのときはQ
6 =0とする。
As the sixth condition, E i = C i + 1 , or E
In the judgment of i = B i + 1 , or F i = C i + 1 , or F i = B i + 1 , when yes, Q 6 = 1 and when no, Q
6 = 0.

【0118】以上の各条件から、最終的に次のように補
間方法を決定する。すなわち、Q3 =1,Q4 =1,Q
5 =XK ,Q6 =XK ならばXK =(Di +Di+1 )/
2とし、Q3 =1,Q4 =0,Q5 =XK ,Q6 =1な
らばXK =(Ei +Ci+1 )/2とし、Q3 =0,Q4
=1,Q5 =1,Q6 =XK ならばXK =(Ci +E
i+1 )/2とし、Q3 =0,Q4 =0,Q5 =XK ,Q
6 =XK ならばXK =(Di +Di+1 )/2とする。た
だし、Q1 =Q2 =0である。
From the above conditions, the interpolation method is finally determined as follows. That is, Q 3 = 1 and Q 4 = 1 and Q
If 5 = X K and Q 6 = X K, then X K = (D i + D i + 1 ) /
2. If Q 3 = 1, Q 4 = 0, Q 5 = X K , Q 6 = 1 then X K = (E i + C i + 1 ) / 2, and Q 3 = 0, Q 4
= 1 and Q 5 = 1 and Q 6 = X K , X K = (C i + E
i + 1 ) / 2, Q 3 = 0, Q 4 = 0, Q 5 = X K , Q
If 6 = X K, then X K = (D i + D i + 1 ) / 2. However, Q 1 = Q 2 = 0.

【0119】次に、の部分の補間演算では、補間画素
k の一つ左の画素がXk-1 で、例えばCi <Di >E
i >Ei+1 =Di+1 =Ci+1 <Ci の時は、次の条件で
補間を行う。なお、Ci <Di >Ei >Ei+1 =Di+1
=Ci+1 <Ci は、表11の(r,q)=(18,1
2)の座標に対応する例である。
Next, in the interpolation calculation of the portion, the pixel to the left of the interpolated pixel X k is X k-1 , for example, C i <D i > E
When i > E i + 1 = D i + 1 = C i + 1 <C i , interpolation is performed under the following conditions. Note that C i <D i > E i > E i + 1 = D i + 1
= C i + 1 <C i is (r, q) = (18,1) in Table 11.
This is an example corresponding to the coordinates of 2).

【0120】例えば、当該条件として、Ci+1 =Xk-1
の判断を行い、イエスのときはQ7=1、ノーのときは
7 =0とする。このときの補間方法は、Q7 =0なら
ばXk =(Di +Di+1 )/2とし、Q7 =1ならばX
k =(Di +Ci+1 +2Xk-1 )/4とする。
For example, as the condition, C i + 1 = X k-1
If yes, Q 7 = 1 and if no, Q 7 = 0. The interpolation method at this time is X k = (D i + D i + 1 ) / 2 if Q 7 = 0 and X if Q 7 = 1.
Let k = (D i + C i + 1 + 2X k−1 ) / 4.

【0121】次に、の部分の補間では、Di とDi+1
の間の補間画素はXk であり、例えばCi =Di <Ei
>Ei+1 <Di+1 <Ci+1 >Ci の時は次の条件で補間
を行う。なお、Ci =Di <Ei >Ei+1 <Di+1 <C
i+1 >Ci は、表7の(r,q)=(17,0)の座標
に対応する例である。
Next, in the interpolation of the part, D i and D i + 1
The interpolation pixel between an X k, for example, C i = D i <E i
When> E i + 1 <D i + 1 <C i + 1 > C i , interpolation is performed under the following conditions. Note that C i = D i <E i > E i + 1 <D i + 1 <C
i + 1 > C i is an example corresponding to the coordinates (r, q) = (17,0) in Table 7.

【0122】例えば、当該条件として、Ci =Ei+1
又はCi =Fi+1 、又はBi =Ei+ 1 、又はBi =F
i+1 の判断において、イエスのときはQ8 =1、ノーの
ときはQ8 =0とする。このときの補間方法は、Q8
1ならばXk =(Ci +Ei+1 )/2とし、Q8 =0な
らばXk =(Di +Di+1 )/2とする。
For example, as the condition, C i = E i + 1 ,
Or C i = F i + 1 , or B i = E i + 1 , or B i = F
In the judgment of i + 1 , if yes, Q 8 = 1 and if no, Q 8 = 0. The interpolation method at this time is Q 8 =
If 1, then X k = (C i + E i + 1 ) / 2, and if Q 8 = 0, then X k = (D i + D i + 1 ) / 2.

【0123】さらに、上述した各大小判別時の条件とし
て、2つのデータの大小判別は、次の条件で行う。すな
わち、一方のデータをYとし、他方のデータをWとする
と、INT((Y−W)/L)=0であればY=Wと
し、INT((Y−W)/L)>0であればY>Wと
し、INT((Y−W)/L)<0であればY<Wとす
る。なお、INTは組み込み関数である。
Further, as a condition at the time of each size discrimination described above, the size discrimination of two data is performed under the following conditions. That is, if one data is Y and the other data is W, then Y = W if INT ((Y-W) / L) = 0 and INT ((Y-W) / L)> 0. If there is Y> W, if INT ((Y−W) / L) <0, then Y <W. Note that INT is a built-in function.

【0124】ここで、Lによって±(L−1)の範囲を
等号とみる。Lについては、1又は4又は8又は16を
使用する。このLの値は、画像の必要とするSN比によ
って変更し、小さくすると敏感になり、大きくすると7
×2画素の領域まで参照することが少なくなる。
Here, the range of ± (L-1) depending on L is regarded as an equal sign. For L, use 1 or 4 or 8 or 16. The value of L is changed according to the SN ratio required by the image, and the smaller the value becomes, the more sensitive the value becomes.
The reference to the area of × 2 pixels is reduced.

【0125】上述したような〜の部分の補間演算の
アルゴリズムを用いることで、以下のような効果が得ら
れる。
The following effects can be obtained by using the algorithm of the interpolation calculation of the above-mentioned parts (1) to (3).

【0126】先ず、及びの部分の補間演算のアルゴ
リズムを用いることで、2つの領域が斜めの境界を持っ
ているとき、その境界が滑らかになるように補間するこ
とができる。
First, by using the interpolation calculation algorithm of the portions (1) and (2), when two areas have diagonal boundaries, interpolation can be performed so that the boundaries become smooth.

【0127】例えば、図9に補間前後の画像の第1の具
体例として、上述したの部分の補間演算の効果につい
て説明する。また、図9の各枡目は、図5の各画素デー
タと対応し、当該図9の各枡目の画素データは図1のシ
フトレジスタ13の各レジスタに格納される画素データ
の一例でもある。なお、上記の部分の補間演算におい
ても、前記表6〜表14のテーブルに従って補間演算を
行うことで、同様の効果を得ることができる。
For example, as a first specific example of the image before and after the interpolation in FIG. 9, the effect of the interpolation calculation of the above portion will be described. Further, each cell of FIG. 9 corresponds to each pixel data of FIG. 5, and the pixel data of each cell of FIG. 9 is also an example of pixel data stored in each register of the shift register 13 of FIG. . Even in the interpolation calculation of the above portion, the same effect can be obtained by performing the interpolation calculation according to the tables of Tables 6 to 14.

【0128】この第1の具体例として、図9の(a)に
示すような既存ラインの画像(補間前の画像)が存在し
たとする。このとき、図9の(a)の既存ラインの各画
素の色濃度を16進数表現で表し、例えば上側の既存ラ
インの各画素Ai ,Bi ,C i ,Di ,Ei ,Fi ,G
i の色濃度の実際のデータが(10)(50)(70)
(90)(F0)(F0)(F0)であり、下側の既存
ラインの各画素Ai+1,Bi+1 ,Ci+1 ,Di+1 ,E
i+1 ,Fi+1 ,Gi+1 の色濃度の実際のデータが(1
0)(10)(10)(10)(10)(10)(1
0)であるとする。なお、(10)は濃い色を表し、
(F0)に行くにしたがって薄い色を表している。
As a first specific example of this, as shown in FIG.
There is an image of the existing line (image before interpolation) as shown
Suppose At this time, each image of the existing line in FIG.
The color density of the element is expressed in hexadecimal notation.
In each pixel Ai, Bi, C i, Di, Ei, Fi, G
iThe actual data of color density is (10) (50) (70)
(90) (F0) (F0) (F0), which is the existing lower side
Each pixel A in the linei + 1, Bi + 1, Ci + 1, Di + 1, E
i + 1, Fi + 1, Gi + 1The actual data of the color density of (1
0) (10) (10) (10) (10) (10) (1
0). In addition, (10) represents a dark color,
The color becomes lighter as it goes to (F0).

【0129】すなわち、図5に対応させて表した補間画
素Xk と各既存ラインの画素との位置関係が、 既存ライン (10) (50) (70) (90) (F0) (F0) (F0) 補間ライン Xk 既存ライン (10) (10) (10) (10) (10) (10) (10) となっているとすると、この補間画素Xk に対する上下
既存ラインの3×2画素Ci ,Di ,Ei 及びCi+1
i+1 ,Ei+1 の大小関係は、上側の既存ラインの3画
素が左から順に(70)(90)(F0)となり、下側
の既存ラインの3画素が(10)(10)(10)とな
っていることから、(70)<(90)<(F0)>
(10)=(10)=(10)<(70)となる。
That is, the positional relationship between the interpolated pixel X k shown in FIG. 5 and the pixels of each existing line is as follows: existing line (10) (50) (70) (90) (F0) (F0) ( F0) Interpolation line X k Existing line (10) (10) (10) (10) (10) (10) (10) If the interpolation line X k is 3 × 2 pixels above and below the existing line C i , D i , E i and C i + 1 ,
Regarding the magnitude relationship between D i + 1 and E i + 1 , the three pixels in the upper existing line are (70) (90) (F0) in order from the left, and the three pixels in the lower existing line are (10) (10). ) Since it is (10), (70) <(90) <(F0)>
(10) = (10) = (10) <(70).

【0130】この場合は、パターン認識領域を拡大し、
残りの画素の大小関係を認識する。すなわち、この図9
の(a)の場合は、Ai ,Bi ,Ci とEi ,Fi ,G
i 、及びAi+1 ,Bi+1 ,Ci+1 とEi+1 ,Fi+1 ,G
i+1 の大小関係は、Ai <B i <Ci とEi =Fi =G
i 、及びAi+1 =Bi+1 =Ci+1 とEi+1 =Fi+1 =G
i+1 となり、7×2画素のマトリクスから、Xk =(A
i +Gi+1 )/2の補間式を決定する。
In this case, the pattern recognition area is enlarged,
Recognize the size relationship of the remaining pixels. That is, in FIG.
In case of (a), Ai, Bi, CiAnd Ei, Fi, G
i, And Ai + 1, Bi + 1, Ci + 1And Ei + 1, Fi + 1, G
i + 1The size relationship ofi<B i<CiAnd Ei= Fi= G
i, And Ai + 1= Bi + 1= Ci + 1And Ei + 1= Fi + 1= G
i + 1Then, from the matrix of 7 × 2 pixels, Xk= (A
i+ Gi + 1) / 2 interpolation formula is determined.

【0131】すなわち、この図9の(a)の例は、前述
したの部分の補間演算の一例として前記表11の
(r,q)=(24,12)の座標に対応する例であ
り、Ci <Di <Ei >Ei+1 =Di+1 =Ci+1 <Ci
となっている。したがって、前述の図7のフローチャー
トの大小判別を行って補間する。
That is, the example of FIG. 9A is an example corresponding to the coordinates (r, q) = (24, 12) in Table 11 as an example of the interpolation calculation of the above-mentioned portion, C i <D i <E i > E i + 1 = D i + 1 = C i + 1 <C i
Has become. Therefore, the size of the above-described flowchart of FIG. 7 is determined and interpolation is performed.

【0132】具体的には、データの小さい方に向かって
パターンを探し、Bi <Ci 及びE i+1 =Fi+1 である
か否かの判断(図7のステップS10)を行い、この図
9の(a)の例では、Bi が(50)で、Ci が(7
0)でEi+1 及びFi+1 が共に(10)となっているた
め、(50)<(70)及び(10)=(10)となっ
てイエスと判断されるので、さらにAi <Bi の判断を
行う(図7のステップS12)。この判断において、図
9の(a)の例では、Ai が(10)でBi が(50)
となっているので、図7のステップS12ではイエスと
判断され、したがって、図7のステップS14のXk
(Ai +Gi+1 )/2の補間演算を行う。これにより、
k =(10+10)/2の演算を行って補間値(この
場合は(10))を求める。
Specifically, toward the smaller data
Find the pattern, Bi<CiAnd E i + 1= Fi + 1Is
It is judged whether or not (step S10 in FIG. 7)
In the example of 9 (a), BiIs (50) and CiBut (7
E in 0)i + 1And Fi + 1Were both (10)
Therefore, (50) <(70) and (10) = (10)
Because it is judged as yes, further Ai<BiThe judgment of
Perform (step S12 of FIG. 7). In this judgment, the figure
In the example of 9 (a), AiBut in (10) BiIs (50)
Therefore, in step S12 of FIG.
Determined, and therefore X in step S14 of FIG.k=
(Ai+ Gi + 1) / 2 interpolation calculation is performed. This allows
Xk= (10 + 10) / 2 and the interpolation value (this
If it is (10)).

【0133】図9の上記補間画素Xk 以外の補間画素X
k-3 ,Xk-2 ,Xk-1 ,Xk+1 ,X k+2 ,Xk-3 に対し
ては、前記表6〜表14のテーブルに従って補間演算を
行うことで、図9の(a)の補間前の画像から図9の
(b)に示すような補間後の画像を得ることができるよ
うになる。
The interpolation pixel X in FIG.kInterpolation pixel other than X
k-3, Xk-2, Xk-1, Xk + 1, X k + 2, Xk-3Against
The interpolation calculation according to the tables of Tables 6 to 14 above.
By performing this, the image before interpolation in FIG.
You can get the interpolated image as shown in (b).
Swell.

【0134】すなわち本実施例の補間演算を行えば、補
間前の画像の斜めの線の画像をより滑らかに補間した拡
大画像を得ることができる。また、本実施例の補間演算
によれば、補間値が上下の既存ラインの画素値の間にあ
るのが妥当であるだろうから、補間値のとれる値をその
上下の画素値の範囲に抑えるようにしているため、ノイ
ズを低減できることになる。例えば、カラー画像の場
合、画像のエッジの部分などで、シアン、マゼンダ等の
ノイズが減少する。
That is, if the interpolation calculation of this embodiment is performed, it is possible to obtain an enlarged image in which the image of the diagonal line of the image before interpolation is more smoothly interpolated. Further, according to the interpolation calculation of the present embodiment, it seems appropriate that the interpolated value is between the pixel values of the upper and lower existing lines, so that the value of the interpolated value is limited to the range of the upper and lower pixel values. Therefore, the noise can be reduced. For example, in the case of a color image, noise such as cyan and magenta is reduced at the edge of the image.

【0135】次に、及びの部分の補間演算のアルゴ
リズムを用いることで、補間前の画像の斜めの線の画像
をより滑らかに補間することができる。
Next, by using the interpolation calculation algorithm of the portions (1) and (2), the image of the diagonal line of the image before interpolation can be interpolated more smoothly.

【0136】例えば、図10に補間前後の画像の第2の
具体例として、上述したの部分の補間演算の効果につ
いて説明する。また、この図10も前述の図9と同様に
表している。なお、上記の部分の補間演算において
も、前記表6〜表14のテーブルに従って補間演算を行
うことで、同様の効果を得ることができる。
For example, as a second specific example of the image before and after the interpolation in FIG. 10, the effect of the interpolation calculation of the above portion will be described. Further, FIG. 10 also shows the same as FIG. 9 described above. Even in the interpolation calculation of the above portion, the same effect can be obtained by performing the interpolation calculation according to the tables of Tables 6 to 14.

【0137】この第2の具体例として、図10の(a)
に示すような既存ラインの画像(補間前の画像)が存在
したとする。このとき、図10の(a)の既存ラインの
各画素の色濃度を16進数表現で表し、例えば上側の既
存ラインの各画素Ai ,Bi,Ci ,Di ,Ei
i ,Gi の色濃度の実際のデータが(10)(10)
(10)(70)(F0)(70)(10)であり、下
側の既存ラインの各画素A i+1 ,Bi+1 ,Ci+1 ,D
i+1 ,Ei+1 ,Fi+1 ,Gi+1 の色濃度の実際のデータ
が(10)(70)(F0)(70)(10)(10)
(10)であるとする。
As the second specific example, FIG.
There is an image of the existing line (image before interpolation) as shown in
Suppose At this time, the existing line of FIG.
The color density of each pixel is expressed in hexadecimal notation.
Each pixel A of the existing linei, Bi, Ci, Di, Ei,
Fi, GiThe actual data of color density of (10) (10)
(10) (70) (F0) (70) (10) and below
Each pixel A of the existing line on the side i + 1, Bi + 1, Ci + 1, D
i + 1, Ei + 1, Fi + 1, Gi + 1Actual data of color density of
Is (10) (70) (F0) (70) (10) (10)
Let (10).

【0138】すなわち、図5に対応させて表した補間画
素Xk と各既存ラインの画素との位置関係が、 既存ライン (10) (10) (10) (70) (F0) (70) (10) 補間ライン Xk 既存ライン (10) (70) (F0) (70) (10) (10) (10) となっているとすると、この補間画素Xk に対する上下
既存ラインの3×2画素Ci ,Di ,Ei 及びCi+1
i+1 ,Ei+1 の大小関係は、上側の既存ラインの3画
素が左から順に(10)(70)(F0)となり、下側
の既存ラインの3画素が(F0)(70)(10)とな
っていることから、(10)<(70)<(F0)>
(10)<(70)<(F0)>(10)となる。
That is, the positional relationship between the interpolated pixel X k shown in FIG. 5 and the pixels on each existing line is as follows: (10) (10) (10) (70) (F0) (70) ( 10) Interpolation line X k existing line (10) (70) (F0) (70) (10) (10) (10) If this is the interpolation pixel X k , the upper and lower existing lines 3 × 2 pixels C i , D i , E i and C i + 1 ,
The magnitude relationship between D i + 1 and E i + 1 is (10) (70) (F0) from the left in the upper three existing lines, and (F0) (70) from the lower three existing lines. ) (10), so (10) <(70) <(F0)>
(10) <(70) <(F0)> (10).

【0139】この場合、当該図10の(a)の例は、前
述したの部分の補間演算の一例として前記表8の
(r,q)=(26,0)の座標に対応する例であり、
i <D i <Ei >Ei+1 <Di+1 <Ci+1 >Ci とな
っている。したがって、前述したの部分の補間で述べ
たように各条件に従って補間演算を行う。
In this case, the example of FIG.
As an example of the interpolation calculation of the above-mentioned part,
This is an example corresponding to the coordinates of (r, q) = (26, 0),
Ci<D i<Ei> Ei + 1<Di + 1<Ci + 1> CiTona
ing. Therefore, as described in the interpolation of the part above
As described above, the interpolation calculation is performed according to each condition.

【0140】具体的には、各既存ラインの画素の大小関
係によって尾根か谷かの判断を行う。この図10の
(a)の例では、上側の既存ラインの各画素値が(1
0)(10)(10)(70)(F0)(70)(1
0)であり、したがって、Ai =Bi=Ci <Di <E
i >Fi >Gi となり、Ei が尾根である。また、下側
の既存ラインの各画素値は(10)(70)(F0)
(70)(10)(10)(10)であり、したがっ
て、Ai+1 <Bi+1 <Ci+1 >Di+1 >Ei+1 =Fi+1
=G i+1 となり、Ci+1 が尾根である。
Specifically, the size of the pixels of each existing line
The clerk determines whether it is a ridge or a valley. Of this FIG.
In the example of (a), each pixel value of the upper existing line is (1
0) (10) (10) (70) (F0) (70) (1
0) and therefore Ai= Bi= Ci<Di<E
i> Fi> GiNext, EiIs a ridge. Also, the lower side
The pixel values of the existing line of (10) (70) (F0)
(70) (10) (10) (10)
Ai + 1<Bi + 1<Ci + 1> Di + 1> Ei + 1= Fi + 1
= G i + 1And Ci + 1Is a ridge.

【0141】すなわち、前述した第1の条件において上
側の既存ラインのBi 又はCi 、及び下側の既存ライン
のEi+1 又はFi+1 に谷がないのでQ1 =0となり、ま
た、前述した図5の条件において上側及び下側の既存ラ
インのBi+1 又はCi+1 、及びEi 又はFi に共に尾根
があることを示すQ2 =1となり、したがって、この時
点での補間方法は、前述したように、 Q1 =0,Q2 =1なのでXk =(Ei +Ci+1 )/2 の補間演算を行う。
That is, under the above-mentioned first condition, since there is no valley in B i or C i of the upper existing line and E i + 1 or F i + 1 of the lower existing line, Q 1 = 0, Further, under the condition of FIG. 5 described above, Q 2 = 1 indicating that both the upper and lower existing lines B i + 1 or C i + 1 and E i or F i have a ridge, and therefore, As described above, as the interpolation method at the time point, since Q 1 = 0 and Q 2 = 1 are used, the interpolation calculation of X k = (E i + C i + 1 ) / 2 is performed.

【0142】これにより、Xk =(F0+F0)/2の
演算を行って補間値(この場合は(F0))を求める。
As a result, the calculation of X k = (F0 + F0) / 2 is performed to obtain the interpolated value ((F0) in this case).

【0143】なお、この図10の例では、前記第2の条
件までで補間演算式を求めることができたので、前記第
3の条件〜第6の条件の判断は行わない。
In the example of FIG. 10, since the interpolation calculation expression can be obtained up to the second condition, the third condition to the sixth condition are not judged.

【0144】上記図10の上記補間画素Xk 以外の補間
画素Xk-3 ,Xk-2 ,Xk-1 ,Xk+ 1 ,Xk+2 ,Xk-3
に対しては、前記表6〜表14のテーブルに従って補間
演算を行うことで、図10の(a)の補間前の画像から
図10の(b)に示すような補間後の画像を得ることが
できるようになる。
[0144] interpolation pixel X k-3 other than the interpolation pixel X k of FIG 10, X k-2, X k-1, X k + 1, X k + 2, X k-3
In contrast, by performing the interpolation calculation according to the tables in Tables 6 to 14, the interpolated image as shown in FIG. 10B can be obtained from the image before interpolation in FIG. Will be able to.

【0145】次に、の部分の補間演算のアルゴリズム
の効果について、第3の具体例として図11を用いて説
明する。この図11の(b)及び(c)も前述の図9の
(a)及び(b)と同様に表している。また、この図1
1の(a)は、全体の画像100を示し、その中の一例
の画像102と、シフトレジスタ13に格納される画像
領域101を示している。すなわち、当該図12では、
例えば三角形の画像100の頂点部分について補間を行
う例について説明する。
Next, the effect of the algorithm of the interpolation calculation of the above portion will be described with reference to FIG. 11 as a third concrete example. 11B and 11C are also shown similarly to FIGS. 9A and 9B described above. Also, this figure 1
(A) of 1 shows the entire image 100, an example image 102 therein, and the image area 101 stored in the shift register 13. That is, in FIG.
For example, an example of performing interpolation on the vertex portion of the triangular image 100 will be described.

【0146】この第3の具体例では、図11の(b)に
示すような既存ラインの画像(補間前の画像)が存在す
ることになる。このとき、図11の(b)の既存ライン
の各画素の色濃度を16進数表現で表し、上側の既存ラ
インの各画素Ai ,Bi ,C i ,Di ,Ei ,Fi ,G
i の色濃度の実際のデータが(F0)(F0)(F0)
(F0)(F0)(F0)(F0)であり、下側の既存
ラインの各画素Ai+1,Bi+1 ,Ci+1 ,Di+1 ,E
i+1 ,Fi+1 ,Gi+1 の色濃度の実際のデータが(F
0)(F0)(70)(10)(70)(F0)(F
0)であるとする。
In the third concrete example, as shown in FIG.
There is an existing line image (image before interpolation) as shown
Will be. At this time, the existing line of FIG.
The color density of each pixel of
In each pixel Ai, Bi, C i, Di, Ei, Fi, G
iThe actual data of color density is (F0) (F0) (F0)
(F0) (F0) (F0) (F0), which is the lower existing
Each pixel A in the linei + 1, Bi + 1, Ci + 1, Di + 1, E
i + 1, Fi + 1, Gi + 1The actual data of color density of (F
0) (F0) (70) (10) (70) (F0) (F
0).

【0147】すなわち、図5に対応させて表した補間画
素Xk と各既存ラインの画素との位置関係が、 既存ライン (F0) (F0) (F0) (F0) (F0) (F0) (F0) 補間ライン Xk 既存ライン (F0) (F0) (70) (10) (70) (F0) (F0) となっているとすると、この補間画素Xk に対する上下
既存ラインの3×2画素Ci ,Di ,Ei 及びCi+1
i+1 ,Ei+1 の大小関係は、上側の既存ラインの3画
素が左から順に(F0)(F0)(F0)となり、下側
の既存ラインの3画素が(70)(10)(70)とな
っていることから、(F0)=(F0)=(F0)>
(70)>(10)<(70)<(F0)となる。
That is, the positional relationship between the interpolated pixel X k shown in FIG. 5 and the pixels of each existing line is the existing line (F0) (F0) (F0) (F0) (F0) (F0) ( F0) Interpolation line X k Existing line (F0) (F0) (70) (10) (70) (F0) (F0) If the interpolation pixel X k is 3 × 2 pixels above and below the existing line C i , D i , E i and C i + 1 ,
Regarding the magnitude relationship between D i + 1 and E i + 1 , the three pixels in the upper existing line are (F0) (F0) (F0) in order from the left, and the three pixels in the lower existing line are (70) (10). ) (70), so (F0) = (F0) = (F0)>
(70)> (10) <(70) <(F0).

【0148】すなわち、この図11の(b)の例は、前
述したの部分の補間演算の一例として、Ci =Di
i >Ei+1 >Di+1 <Ci+1 <Ci の場合を示したも
のであり、前記表7の(r,q)=(12,6)の座標
に対応する例であり、したがって、前述したの部分の
補間で述べたように各条件に従って補間演算を行う。
That is, in the example of FIG. 11B, as an example of the interpolation calculation of the above-mentioned portion, C i = D i =
It shows the case of E i > E i + 1 > D i + 1 <C i + 1 <C i , and corresponds to the coordinates (r, q) = (12, 6) in Table 7 above. Therefore, the interpolation calculation is performed in accordance with each condition as described in the above-mentioned interpolation of the part.

【0149】この場合、パターン認識領域を拡大し、補
間画素Xk の一つ左の先に補間演算で求められている補
間画素Xk-1 とCi との関係において、Ci =Xk-1
判断を行う。図11の(b)の例では、Ci =Xk-1
あるため、前記Q7 =0となり、このときの補間演算
は、前述したようにXk =(Di +Di+1 +2Xk-1
/4となる。
[0149] In this case, pattern recognition region to expand, and the interpolating pixel X k-1 and C i for one place to the left of the previous is a need in the interpolation operation of the interpolation pixel X k, C i = X k -1 judgment is made. In the example of FIG. 11B, since C i = X k−1 , the above Q 7 = 0, and the interpolation calculation at this time is X k = (D i + D i + 1 + 2X as described above. k-1 )
It becomes / 4.

【0150】上記図11の上記補間画素Xk 以外の補間
画素Xk-3 ,Xk-2 ,Xk-1 ,Xk+ 1 ,Xk+2 ,Xk-3
に対しては、前記表6〜表14のテーブルに従って補間
演算を行うことで、図11の(b)の補間前の画像から
図11の(c)に示すような補間後の画像を得ることが
できるようになる。すなわち、従来の補間方法のように
単純補間のみを行った場合には図11の(a)の頂点の
分が延びてしまい、さらには強調されることでいわゆる
ヒゲ状に見えてしまうのに対し、本実施例の補間演算に
よれば、当該頂点の延びるところの濃度が、ぼかされて
薄くなりヒゲ状の画像が目立たなくなる。
[0150] interpolation pixel X k-3 other than the interpolation pixel X k of FIG 11, X k-2, X k-1, X k + 1, X k + 2, X k-3
In contrast, by performing the interpolation calculation according to the tables in Tables 6 to 14, the interpolated image as shown in FIG. 11C is obtained from the image before interpolation in FIG. 11B. Will be able to. That is, when only simple interpolation is performed as in the conventional interpolation method, the apex of (a) of FIG. 11 is extended and further emphasized so that it looks like a so-called mustache. According to the interpolation calculation of the present embodiment, the density at the extension of the apex is blurred and thinned so that the whisker-like image becomes inconspicuous.

【0151】次に、前記表6〜表14のテーブルに従っ
て前記3×2画素の補間演算を行う具体例について説明
する。
Next, a specific example of performing the interpolation calculation of 3 × 2 pixels according to the tables of Tables 6 to 14 will be described.

【0152】すなわち第4の具体例として、図12の
(a)に示すような既存ラインの画像(補間前の画像)
が存在したとする。なお、この図12も前記図9と同様
に表している。このとき、図12の(a)の既存ライン
の各画素の色濃度を16進数表現で表し、例えば上側の
既存ラインの各画素Ai ,Bi ,Ci ,Di ,Ei ,F
i ,Gi の色濃度の実際のデータが(F0)(90)
(60)(10)(60)(90)(F0)であり、下
側の既存ラインの各画素Ai+1 ,Bi+1 ,Ci+1 ,D
i+1 ,Ei+1 ,Fi+1 ,Gi+1 の色濃度の実際のデータ
が(F0)(90)(60)(10)(60)(90)
(F0)であるとする。
That is, as a fourth specific example, FIG.
Image of existing line as shown in (a) (image before interpolation)
Is present. Note that FIG. 12 is similar to FIG. 9 described above.
It is shown in. At this time, the existing line of FIG.
Represents the color density of each pixel in hexadecimal notation, and
Each pixel A on the existing linei, Bi, Ci, Di, Ei, F
i, GiThe actual data of color density is (F0) (90)
(60) (10) (60) (90) (F0) and below
Each pixel A of the existing line on the sidei + 1, Bi + 1, Ci + 1, D
i + 1, Ei + 1, Fi + 1, Gi + 1Actual data of color density of
Is (F0) (90) (60) (10) (60) (90)
(F0).

【0153】すなわち、図5に対応させて表した補間画
素Xk と各既存ラインの画素との位置関係が、 既存ライン (F0) (90) (60) (10) (60) (90) (F0) 補間ライン Xk 既存ライン (F0) (90) (60) (10) (60) (90) (F0) となっているとすると、この補間画素Xk に対する上下
既存ラインの3×2画素Ci ,Di ,Ei 及びCi+1
i+1 ,Ei+1 の大小関係は、上側の既存ラインの3画
素が左から順に(60)(10)(60)となり、下側
の既存ラインの3画素が(60)(10)(60)とな
っていることから、Ci >Di <Ei =E i+1 >Di+1
<Ci+1 =Ci となっている。
That is, the interpolated image represented in correspondence with FIG.
Element XkAnd the pixel relationship between each existing line and the existing line (F0) (90) (60) (10) (60) (90) (F0) Interpolation line Xk If the existing line is (F0) (90) (60) (10) (60) (90) (F0), this interpolation pixel XkUp and down against
3 x 2 pixels C of existing linei, Di, EiAnd Ci + 1,
Di + 1, Ei + 1The size relationship is the 3 lines of the existing line above
Element is (60) (10) (60) from left to right
3 pixels of the existing line of (60) (10) (60)
From that, Ci> Di<Ei= E i + 1> Di + 1
<Ci + 1= CiIt has become.

【0154】この場合は、パターン認識領域は拡大せ
ず、表6〜表14の3×2画素のマトリクステーブルか
ら補間式を決定する。したがって、表6〜表14のテー
ブルから、上記Ci >Di <Ei =Ei+1 >Di+1 <C
i+1 =Ci の場合の補間演算式は、Xk =(Di +D
i+1 )/2が決定され、これにより、Xk =(10+1
0)/2=10を求める。
In this case, the pattern recognition area is not expanded, and the interpolation formula is determined from the matrix table of 3 × 2 pixels in Tables 6 to 14. Therefore, from the tables of Table 6 to Table 14, the above C i > D i <E i = E i + 1 > D i + 1 <C
The interpolation calculation formula in the case of i + 1 = C i is X k = (D i + D
i + 1 ) / 2 is determined, whereby Xk = (10 + 1
0) / 2 = 10 is calculated.

【0155】図12の上記補間画素Xk 以外の補間画素
k-3 ,Xk-2 ,Xk-1 ,Xk+1 ,Xk+2 ,Xk-3 に対
しても、前記表6〜表14のテーブルに従って補間演算
を行うことで、図12の(a)の補間前の画像から図1
2の(b)に示すような補間後の画像を得ることができ
るようになる。
For interpolation pixels X k-3 , X k-2 , X k-1 , X k + 1 , X k + 2 , X k-3 other than the above interpolation pixel X k in FIG. By performing the interpolation calculation according to the tables of Table 6 to Table 14, the image before the interpolation in FIG.
It is possible to obtain an image after the interpolation as shown in (b) of 2.

【0156】なお、パターン認識を行う領域を拡大した
場合の認識領域の大きさは、前記7×2画素領域よりも
更に大きくすることも可能である。例えば、ライン数を
増やす方向での領域の拡大では、例えば7×4画素や、
7×6画素を例に挙げることができ、この場合にはより
よい補間を行えることになる。例えばL字の領域などで
ある。
The size of the recognition area when the pattern recognition area is enlarged can be made larger than the 7 × 2 pixel area. For example, when expanding the area in the direction of increasing the number of lines, for example, 7 × 4 pixels,
7 × 6 pixels can be taken as an example, and in this case, better interpolation can be performed. For example, it is an L-shaped area.

【0157】上述したような補間演算方法では、所定の
テーブルに従ったパターン分類を行い、このパターン分
類結果に基づいてパターン分類する領域の大きさを適応
的に制御するようにしているため、パターン分類の領域
を小さくできるときにはこのパターン分類が容易にで
き、また、パターン分類の領域が小さいと補間によって
得られる画像の質が劣化するときにはパターン分類の領
域を大きくすることで、補間される画像の品質を向上さ
せることが可能となる。したがって、この補間演算を画
像拡大の際に使用することで、回路規模を小型化するこ
とが可能で、かつ、斜めの画像であっても階調性、解像
度、ジャーキネスの点で充分な拡大画像を得ることが可
能となっている。さらに静止画出力における画質も格段
な向上が期待できる。
In the interpolation calculation method as described above, pattern classification is performed in accordance with a predetermined table, and the size of the area for pattern classification is adaptively controlled based on the pattern classification result. When the area of classification can be made small, this pattern classification can be easily performed. When the area of pattern classification is small, the quality of the image obtained by interpolation deteriorates. It is possible to improve quality. Therefore, by using this interpolation operation when enlarging an image, the circuit scale can be reduced, and even if the image is a slanted image, a sufficiently enlarged image is obtained in terms of gradation, resolution, and jerkiness. It is possible to obtain Furthermore, the image quality in still image output can be expected to be significantly improved.

【0158】[0158]

【発明の効果】本発明の画像信号処理方法及び装置にお
いては、原画像信号の水平方向及び垂直方向の列であっ
てそれぞれ隣接する複数の列からなる領域内の複数画素
データに対して、所定のテーブルに従ったパターン分類
を行い、このパターン分類結果に基づいてパターン分類
する領域の大きさを適応的に制御するようにしているた
め、分類の領域を小さくできるときにはパターン分類が
容易にできて結果として補間演算の演算量が少なくな
り、また、パターン分類の領域を大きくすれば補間され
て拡大される画像の品質を向上させることが可能とな
る。したがって、この補間演算を画像拡大の際に使用す
ることで、回路規模の小型化及びコストアップの防止が
可能で、かつ、斜めの画像であっても階調性、解像度、
ジャーキネスの点で充分な拡大画像を得ることが可能と
なっている。さらに静止画出力における画質も格段な向
上も可能となる。
According to the image signal processing method and apparatus of the present invention, a plurality of pixel data in a region consisting of a plurality of columns of the original image signal in the horizontal and vertical directions, which are adjacent to each other, are predetermined. Since the pattern classification is performed according to the table in Table 1 and the size of the pattern classification area is adaptively controlled based on the pattern classification result, pattern classification can be easily performed when the classification area can be reduced. As a result, the amount of interpolation calculation is reduced, and if the pattern classification area is enlarged, the quality of the image that is interpolated and enlarged can be improved. Therefore, by using this interpolation calculation when enlarging an image, it is possible to reduce the circuit scale and prevent the cost from increasing, and even for an oblique image, gradation, resolution,
It is possible to obtain a sufficiently enlarged image in terms of jerkiness. In addition, the image quality in still image output can be significantly improved.

【0159】また、拡大画像信号形成手段による補間デ
ータを、w個のラインバッファの補間演算の終了したデ
ータが格納されている部分に上書きすることで、補間デ
ータ用に別にメモリを設ける必要がなくなり、回路規模
を小型化することが可能となっている。また、本発明に
よれば、斜めの画像であっても階調性、解像度、ジャー
キネスの点で充分な拡大画像を得ることが可能となって
いる。
Further, the interpolation data by the enlarged image signal forming means is overwritten on the portion of the w line buffers in which the data for which the interpolation operation has been completed is stored, so that it is not necessary to provide a separate memory for the interpolation data. It is possible to reduce the circuit scale. Further, according to the present invention, it is possible to obtain a sufficiently enlarged image in terms of gradation, resolution, and jerkiness even with an oblique image.

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

【図1】本発明実施例の画像信号処理装置の概略構成を
示すブロック回路図である。
FIG. 1 is a block circuit diagram showing a schematic configuration of an image signal processing device according to an embodiment of the present invention.

【図2】副走査方向の2倍拡大を行う際のラインデータ
の流れについて説明するためのタイミングチャートであ
る。
FIG. 2 is a timing chart for explaining the flow of line data when performing double enlargement in the sub-scanning direction.

【図3】副走査方向の4倍拡大を行う際のラインデータ
の流れについて説明するためのタイミングチャートであ
る。
FIG. 3 is a timing chart for explaining the flow of line data when performing 4 times enlargement in the sub-scanning direction.

【図4】種走査方向の拡大の際に単純平均を採用する理
由について説明するために用いる図である。
FIG. 4 is a diagram used for explaining the reason for adopting a simple average when enlarging in the seed scanning direction.

【図5】ワークテーブルのデータについて説明するため
の図である。
FIG. 5 is a diagram for explaining data of a work table.

【図6】補間アルゴリズムのフローチャートである。FIG. 6 is a flowchart of an interpolation algorithm.

【図7】7×2画素のパターン認識により補間演算を行
う際の補間アルゴリズムの一例を示すフローチャートで
ある。
FIG. 7 is a flowchart showing an example of an interpolation algorithm when performing interpolation calculation by pattern recognition of 7 × 2 pixels.

【図8】7×2画素のパターン認識により補間演算を行
う際の補間アルゴリズムの他の例を示すフローチャート
である。
FIG. 8 is a flowchart showing another example of an interpolation algorithm when performing interpolation calculation by pattern recognition of 7 × 2 pixels.

【図9】7×2画素のパターン認識により補間演算を説
明するための第1の具体例の画像を示す図である。
FIG. 9 is a diagram showing an image of a first specific example for explaining an interpolation calculation by pattern recognition of 7 × 2 pixels.

【図10】7×2画素のパターン認識により補間演算を
説明するための第2の具体例の画像を示す図である。
FIG. 10 is a diagram showing an image of a second specific example for explaining an interpolation calculation by pattern recognition of 7 × 2 pixels.

【図11】7×2画素のパターン認識により補間演算を
説明するための第3の具体例の画像を示す図である。
FIG. 11 is a diagram showing an image of a third specific example for explaining an interpolation calculation by pattern recognition of 7 × 2 pixels.

【図12】3×2画素のパターン認識により補間演算を
説明するための第4の具体例の画像を示す図である。
FIG. 12 is a diagram showing an image of a fourth specific example for explaining an interpolation calculation by pattern recognition of 3 × 2 pixels.

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

1 入力制御回路 7 転送制御回路 9 ワークテーブル転送制御回路 10a,10b ラインバッファメモリ 13 シフトレジスタ 14 補間演算回路 15 補間レジスタ 1 Input Control Circuit 7 Transfer Control Circuit 9 Work Table Transfer Control Circuit 10a, 10b Line Buffer Memory 13 Shift Register 14 Interpolation Calculation Circuit 15 Interpolation Register

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 5/91 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location H04N 5/91

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 原画像信号から原画像を拡大した拡大画
像信号を形成する画像信号処理方法において、 原画像信号の水平方向及び垂直方向の列であって隣接す
る複数の列からなる所定領域内の複数画素データに対し
て、所定のテーブルに従ったパターン分類を行うと共
に、当該パターン分類結果に基づいて上記所定領域の大
きさを適応的に制御し、 上記パターン分類して大きさを適応制御した所定領域内
の複数画素データを用いて、上記パターン分類結果に応
じた補間演算を行い、 当該補間演算による補間画素のデータを上記原画像信号
の各画素のデータ間に挿入して拡大画像信号を形成する
ことを特徴とする画像信号処理方法。
1. An image signal processing method for forming an enlarged image signal by enlarging an original image from an original image signal, the method comprising: Pattern classification is performed on a plurality of pixel data in accordance with a predetermined table, the size of the predetermined area is adaptively controlled based on the pattern classification result, and the pattern classification is performed to adaptively control the size. Interpolation calculation according to the pattern classification result is performed using the multiple pixel data in the specified area, and the data of the interpolation pixel by the interpolation calculation is inserted between the data of each pixel of the original image signal to obtain the enlarged image signal. An image signal processing method, comprising:
【請求項2】 上記原画像信号の隣接する複数画素から
なる列と上記補間演算により求めた複数の補間画素から
なる列とによって形成した領域を、上記所定領域として
用いることを特徴とする請求項1記載の画像信号処理方
法。
2. An area formed by a column composed of a plurality of adjacent pixels of the original image signal and a column composed of a plurality of interpolated pixels obtained by the interpolation calculation is used as the predetermined region. 1. The image signal processing method described in 1.
【請求項3】 上記所定領域の大きさの適応的な制御の
際には、上記原画像信号の水平方向及び垂直方向の隣接
する複数列からなる小領域内の複数画素のデータに対し
て、所定のテーブルに従ったパターン分類を行い、当該
小領域内の複数画素のパターン分類結果に基づいて、当
該小領域内の複数画素のデータを用いた補間演算を行う
か、又は、当該小領域を中心にして拡大した水平方向及
び垂直方向の隣接する複数列からなる大領域内の複数画
素のデータを用いた補間演算を行うかの判別を行うこと
を特徴とする請求項1記載の画像信号処理方法。
3. In the adaptive control of the size of the predetermined area, the data of a plurality of pixels in a small area consisting of a plurality of adjacent horizontal and vertical rows of the original image signal, Pattern classification is performed according to a predetermined table, and based on the pattern classification result of a plurality of pixels in the small area, interpolation calculation is performed using data of a plurality of pixels in the small area, or the small area is calculated. 2. The image signal processing according to claim 1, wherein it is determined whether to perform an interpolation calculation using data of a plurality of pixels in a large area consisting of a plurality of horizontally and vertically adjacent columns that are enlarged with respect to the center. Method.
【請求項4】 上記小領域は、上記原画像信号の隣接す
る水平方向3列及び垂直方向2列の3×2画素のデータ
からなり、 上記大領域は、上記小領域の3×2画素を中心にして拡
大した隣接する水平方向7列及び垂直方向2列の7×2
画素のデータからなることを特徴とする請求項3記載の
画像信号処理方法。
4. The small area comprises data of 3 × 2 pixels in three horizontal rows and two vertical rows adjacent to the original image signal, and the large area includes 3 × 2 pixels of the small area. 7x2 with 7 horizontal rows and 2 vertical rows adjacent to each other and expanded centering
The image signal processing method according to claim 3, wherein the image signal processing method comprises pixel data.
【請求項5】 原画像信号から原画像を拡大した拡大画
像信号を形成する画像信号処理装置において、 原画像信号の水平方向及び垂直方向の列であって隣接す
る複数の列からなる第1の領域内の複数画素データを格
納する格納手段と、 当該格納手段に格納されている上記第1の領域内であっ
て隣接する水平方向及び垂直方向の複数列からなる第2
の領域内の複数画素データに対して、所定のテーブルに
従ったパターン分類を行うと共に、当該パターン分類結
果に基づいて上記第2の領域の大きさを適応的に制御
し、当該パターン分類して大きさを適応制御した第2の
領域内の複数画素データを用いて、当該パターン分類結
果に応じた補間演算を行い、当該補間演算による補間画
素のデータを上記原画像信号の各画素のデータ間に挿入
して拡大画像信号を形成する拡大画像信号形成手段とを
有することを特徴とする画像信号処理装置。
5. An image signal processing apparatus for forming an enlarged image signal by enlarging an original image from the original image signal, wherein the first and second horizontal and vertical columns of the original image signal are each composed of a plurality of adjacent columns. A storage unit for storing a plurality of pixel data in the area, and a second row composed of a plurality of adjacent horizontal and vertical columns in the first area stored in the storage unit.
Pattern classification is performed on a plurality of pixel data in the area according to a predetermined table, and the size of the second area is adaptively controlled based on the pattern classification result to classify the pattern. Interpolation calculation according to the pattern classification result is performed using a plurality of pixel data in the second area whose size is adaptively controlled, and the data of the interpolation pixel by the interpolation calculation is set between the data of each pixel of the original image signal. And an enlarged image signal forming means for inserting the image signal into an enlarged image signal to form an enlarged image signal.
【請求項6】 上記原画像信号の隣接する複数画素から
なる列と上記補間演算により求めた複数の補間画素から
なる列とによって形成した領域を、上記所定領域として
用いることを特徴とする請求項5記載の画像信号処理装
置。
6. An area formed by a column composed of a plurality of adjacent pixels of the original image signal and a column composed of a plurality of interpolated pixels obtained by the interpolation calculation is used as the predetermined region. 5. The image signal processing device according to item 5.
【請求項7】 上記拡大画像信号形成手段は、上記第2
の領域内の複数画素のデータに対する所定のテーブルに
従ったパターン分類結果に基づいて、当該第2の領域内
の複数画素のデータを用いた補間演算を行うか、又は、
上記第1の領域内の複数画素のデータを用いた補間演算
を行うかの判別を行うことを特徴とする請求項5記載の
画像信号処理装置。
7. The enlarged image signal forming means is the second
Based on the pattern classification result according to a predetermined table for the data of a plurality of pixels in the area, the interpolation calculation using the data of the plurality of pixels in the second area, or
The image signal processing apparatus according to claim 5, wherein it is determined whether or not an interpolation calculation using data of a plurality of pixels in the first area is performed.
【請求項8】 上記第1の領域の複数画素データは、上
記1フィールドの原信号の隣接する水平方向7列及び垂
直方向2列の7×2画素のデータであり、上記第2の領
域は、当該第1の領域内の隣接する水平方向3列及び垂
直方向2列の3×2画素のデータであることを特徴とす
る請求項5記載の画像信号処理装置。
8. The plurality of pixel data in the first region is data of 7 × 2 pixels in seven horizontal columns and two vertical columns adjacent to each other in the original signal of the one field, and the second region is 6. The image signal processing apparatus according to claim 5, wherein the data is data of 3 × 2 pixels in adjacent three horizontal rows and two vertical rows in the first area.
【請求項9】 原画像信号のラインデータをそれぞれ格
納するw個(wは2以上)のラインバッファと、 同一ラインデータをv回出力して上記w個のラインバッ
ファに供給するラインデータ供給手段とを設け、 上記格納手段には、上記ラインバッファから読み出した
データを格納し、上記拡大画像信号形成手段は、上記w
個のラインバッファから取り出されて上記格納手段に格
納された上記第1の領域のデータを用いて補間演算を行
い、当該補間演算による補間データを、上記w個のライ
ンバッファの補間演算の終了したデータが格納されてい
る部分に上書きすることを特徴とする請求項5記載の画
像信号処理装置。
9. W line buffers for respectively storing line data of the original image signal (w is 2 or more), and line data supply means for outputting the same line data v times and supplying the same to the w line buffers. And the storage means stores the data read from the line buffer, and the enlarged image signal forming means stores the w
Interpolation operation is performed using the data of the first area extracted from the line buffers and stored in the storage means, and the interpolation data of the interpolation operation is completed for the w line buffers. The image signal processing apparatus according to claim 5, wherein the portion in which the data is stored is overwritten.
JP15397894A 1994-07-05 1994-07-05 Image signal processing method and apparatus Expired - Fee Related JP3617075B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15397894A JP3617075B2 (en) 1994-07-05 1994-07-05 Image signal processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15397894A JP3617075B2 (en) 1994-07-05 1994-07-05 Image signal processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH0823440A true JPH0823440A (en) 1996-01-23
JP3617075B2 JP3617075B2 (en) 2005-02-02

Family

ID=15574243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15397894A Expired - Fee Related JP3617075B2 (en) 1994-07-05 1994-07-05 Image signal processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3617075B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7564594B2 (en) 2004-05-10 2009-07-21 Funai Electric Co., Ltd. Digital multifunctional imaging apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7564594B2 (en) 2004-05-10 2009-07-21 Funai Electric Co., Ltd. Digital multifunctional imaging apparatus

Also Published As

Publication number Publication date
JP3617075B2 (en) 2005-02-02

Similar Documents

Publication Publication Date Title
US5034806A (en) Image processing apparatus and method
US5864638A (en) Image data processing using bi-level and multi-level value data
JP2683008B2 (en) Rectangle shape internal filling method
US20050286796A1 (en) Darkness control using pattern matching
JP3285930B2 (en) Image processing device
US7315402B2 (en) Image forming apparatus and method for selecting an optimal image space frequency for an output image
JPH0823440A (en) Image signal processing method and device
US5606656A (en) Image data processing unit for forming a plurality of identical images in a single output image area
JPH089242B2 (en) Dot printer printing method
JP3760531B2 (en) Image interpolation apparatus and image interpolation method
JP3413968B2 (en) Television signal interpolation circuit
JP3557650B2 (en) Television signal interpolation method and interpolation circuit
US6356656B1 (en) Contour-information extraction apparatus and method
JP2626691B2 (en) Printing method of dot printer
JPH06149223A (en) Display device and its relative device, and image display system
JP3359361B2 (en) Enlargement printing device
JP2871881B2 (en) Image processing device
JP3477658B2 (en) Image processing device
JPH10126612A (en) Pixel high speed interpolating system for enlarged picture and image processor
JPH0237391A (en) Image interpolating system
JPH09154009A (en) Printer system
JPH0530487A (en) Picture interpolating method
JPH0382268A (en) Line density conversion method for binary picture signal
JPS63170785A (en) Picture data rotation circuit
JPH05227433A (en) Method and device for processing picture

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040405

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041101

LAPS Cancellation because of no payment of annual fees