JP3327961B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3327961B2
JP3327961B2 JP35025492A JP35025492A JP3327961B2 JP 3327961 B2 JP3327961 B2 JP 3327961B2 JP 35025492 A JP35025492 A JP 35025492A JP 35025492 A JP35025492 A JP 35025492A JP 3327961 B2 JP3327961 B2 JP 3327961B2
Authority
JP
Japan
Prior art keywords
output
address
pixel data
data
adder
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.)
Expired - Fee Related
Application number
JP35025492A
Other languages
Japanese (ja)
Other versions
JPH06178192A (en
Inventor
部 洋 之 渡
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.)
Olympus Corp
Original Assignee
Olympus Optic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optic Co Ltd filed Critical Olympus Optic Co Ltd
Priority to JP35025492A priority Critical patent/JP3327961B2/en
Publication of JPH06178192A publication Critical patent/JPH06178192A/en
Application granted granted Critical
Publication of JP3327961B2 publication Critical patent/JP3327961B2/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 transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/403Edge-driven scaling; Edge-based scaling

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、特
に斜め線やエッジ部の再現性を改善した画像処理装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus with improved reproducibility of oblique lines and edges.

【0002】[0002]

【従来の技術】電子スチルカメラ等の画像処理装置にお
いては、電子ズーム処理や画像の回転処理のような座標
変換処理が施されている。例えば、電子スチルカメラで
撮影時に生ずる手ぶれに起因する撮影画像の回転ズレ
は、得られた画像データをアドレス(座標)変換により
回転処理して補償される。その際、必要な新たな画素を
生成するためには4点加重平均処理による画素補間手法
が用いられる。
2. Description of the Related Art In an image processing apparatus such as an electronic still camera, coordinate transformation processing such as electronic zoom processing and image rotation processing is performed. For example, a rotational shift of a captured image due to a camera shake that occurs at the time of capturing with an electronic still camera is compensated for by rotating the obtained image data by address (coordinate) conversion. At this time, a pixel interpolation method using a four-point weighted average process is used to generate necessary new pixels.

【0003】図7は、上記座標変換に基づく回転処理の
原理を説明するための図で、細線で示される原画を、θ
だけ回転して斜め走査による太線画像を得る際のアドレ
ス(座標)位置関係を示している。図中、白丸はメモリ
に記憶された実画素を示し、黒丸はメモリから読み出す
仮想画素を示す。各アドレス位置P(00),P(1
0),P(20),P(01),P(11),P(2
1),P(02),P(12),P(22)対応の画素
データがフィールドメモリに書き込まれており、これら
アドレス位置の画素データを用いて、位置P(00)を
中心にしてθだけ回転した後の太線で示す対応アドレス
位置Q(10),Q(20),Q(01),Q(1
1),Q(21),…を求め、アドレス信号としてフィ
ールドメモリに送出する。
FIG. 7 is a diagram for explaining the principle of the rotation process based on the above coordinate transformation.
This figure shows the address (coordinate) positional relationship when a thick line image is obtained by oblique scanning by rotating only by rotation. In the figure, white circles indicate real pixels stored in the memory, and black circles indicate virtual pixels read from the memory. Each address position P (00), P (1
0), P (20), P (01), P (11), P (2
Pixel data corresponding to 1), P (02), P (12), and P (22) are written in the field memory, and the pixel data at these address positions is used to set θ around the position P (00). Address positions Q (10), Q (20), Q (01), Q (1
1), Q (21),... Are sent to the field memory as address signals.

【0004】例えば、図7におけるアドレス位置Q(1
0),Q(20),Q(01),Q(11)仮想画素ア
ドレスは、図示の関係から次のようにして求まる。 Q(10):x…P(00)+cosθ y…P(00)+sinθ Q(20):x…P(00)+2cosθ =P(10)+2cosθ−1 y…P(00)+2sinθ =P(10)+2sinθ Q(01):x…P(00)−sinθ y…P(00)+cosθ Q(11):x…P(00)−sinθ+cosθ =P(01)−sinθ+cosθ y…P(00)+cosθ+sinθ =P(01)+cosθ+sinθ−1
[0004] For example, an address position Q (1
The virtual pixel addresses 0), Q (20), Q (01), and Q (11) are obtained from the relationship shown in the drawing as follows. Q (10): x P (00) + cos θ y P (00) + sin θ Q (20): x P (00) +2 cos θ = P (10) +2 cos θ−1 y P (00) +2 sin θ = P (10 ) +2 sin θ Q (01): x P (00) −sin θ y P (00) + cos θ Q (11): x P (00) −sin θ + cos θ = P (01) −sin θ + cos θ y P (00) + cos θ + sin θ = P (01) + cos θ + sin θ−1

【0005】図8には、上述Xアドレスを発生する回路
例が示されている。XSTレジスタ111Xには、最初
に読み出す画素アドレス、本例では0が設定され、XW
レジスタ112Xからは、図7に示すXW=cosθが
発生され、X0レジスタ113Xからは、図7に示すX
0=−sinθが発生されている。加算器114Xの出
力は、遅延器116Xで1クロック(1画素分)遅延さ
れる。加算器114Xは、XWレジスタ112Xからの
cosθと、遅延器116Xからの出力とを加算する。
遅延器116Xの出力は、XSTレジスタ111Xから
の出力(本例では0)と、加算器118Xにおいて加算
される。遅延器117Xは、加算器115Xの出力を1
Hだけ遅延する。加算器115Xは、X0レジスタ11
3Xからの−sinθと、遅延器117Xからの出力と
を加算する。加算器119Xは、遅延器117Xの出力
と、加算器118Xの出力とを加算してXアドレス信号
として出力する。
FIG. 8 shows an example of a circuit for generating the X address. In the XST register 111X, a pixel address to be read first, 0 in this example, is set.
XW = cos θ shown in FIG. 7 is generated from the register 112X, and XW shown in FIG.
0 = −sin θ has been generated. The output of the adder 114X is delayed by one clock (one pixel) by the delay unit 116X. The adder 114X adds cos θ from the XW register 112X and the output from the delay unit 116X.
The output of the delay unit 116X is added to the output (0 in this example) from the XST register 111X in the adder 118X. The delay unit 117X outputs the output of the adder 115X to 1
Delay by H. The adder 115X includes the X0 register 11
-Sin θ from 3X and the output from delay unit 117X are added. Adder 119X adds the output of delay unit 117X and the output of adder 118X, and outputs the result as an X address signal.

【0006】図9は、図8と同様なYアドレス信号を発
生する回路例が示されている。YSTレジスタ111Y
には、0が設定され、YWレジスタ112Yからは、図
7に示すYW=sinθが発生され、Y0レジスタ11
3Yからは、図7に示すY0=cosθが発生される。
加算器114Yの出力は遅延器116Yで1クロック
(1画素分)遅延される。加算器114Yは、YWレジ
スタ112Yからのsinθと、遅延器116Yからの
出力とを加算する。遅延器116Yの出力は、YSTレ
ジスタ111Yからの出力(本例では0)と、加算器1
18Yにより加算される。遅延器117Yは、加算器1
15Yの出力を1Hだけ遅延する。加算器115Yは、
Y0レジスタ113Yからのcosθと、遅延器117
Yからの出力とを加算する。加算器119Yは、遅延器
117Yの出力と、加算器118Yの出力とを加算して
Yアドレス信号として出力する。
FIG. 9 shows an example of a circuit for generating a Y address signal similar to that of FIG. YST register 111Y
Is set to 0, YW = sinθ shown in FIG. 7 is generated from the YW register 112Y, and the Y0 register 11
From 3Y, Y0 = cos θ shown in FIG. 7 is generated.
The output of the adder 114Y is delayed by one clock (one pixel) by the delay unit 116Y. The adder 114Y adds sinθ from the YW register 112Y and the output from the delay unit 116Y. The output of the delay unit 116Y is the output from the YST register 111Y (0 in this example) and the adder 1
18Y. The delay unit 117Y includes the adder 1
The output of 15Y is delayed by 1H. The adder 115Y is
Cos θ from Y0 register 113Y and delay 117
The output from Y is added. Adder 119Y adds the output of delay unit 117Y and the output of adder 118Y, and outputs the result as a Y address signal.

【0007】上記XSTレジスタ111XとYSTレジ
スタ111Yの設定値を変化させることにより、水平及
び垂直方向の画像のぶれを補正でき、XWレジスタ11
2X、YWレジスタ112Y、X0レジスタ113X、
Y0レジスタ113Yの設定値を変化させることによ
り、回転角度が調整される。
By changing the set values of the XST register 111X and the YST register 111Y, the image blur in the horizontal and vertical directions can be corrected.
2X, YW register 112Y, X0 register 113X,
By changing the set value of the Y0 register 113Y, the rotation angle is adjusted.

【0008】図10には、図7に示すアドレス変換原理
図を、図11に示す3対4のアスペクト比(768画
素,240ライン)に適用し、30度だけ回転した場合
のアドレス変換図が示されている。この場合、図11に
示す如く、1画素は縦横が2.4対1の大きさとなる。 このとき、XST=0 XW=0.866 X
0=−2.4×0.5 YST=0 YW=0.5/2.4 Y0=0.8
66 であり、図からも明らかなように、画素数m、ライン数
nにおけるXアドレスXmnとYアドレスYmnを表す
一般式は次のようになる。 Xmn=XST+m・XW+n・X0 Ymn=YST+m・YW+n・Y0 例えば、0ライン目(n=0)のアドレス(座標)は、 (XY)=(0,0),(0.866,0.208),
(1.732,0.417),… 1ライン目(n=1)では、(XY)=(−1.2,
0.866),(−0.334,1.074),(0.
532,1.28),…となる。ここで、各アドレスの
整数部がアドレスAddを、少数部が補間係数Kを示し
ていることは図から明らかである。
FIG. 10 is a diagram showing an address conversion principle in the case where the principle of address conversion shown in FIG. 7 is applied to a 3 to 4 aspect ratio (768 pixels, 240 lines) shown in FIG. 11 and rotated by 30 degrees. It is shown. In this case, as shown in FIG. 11, one pixel has a size of 2.4 to 1 in length and width. At this time, XST = 0 XW = 0.866 X
0 = −2.4 × 0.5 YST = 0 YW = 0.5 / 2.4 Y0 = 0.8
66, and as is apparent from the figure, the general formula representing the X address Xmn and the Y address Ymn in the number of pixels m and the number of lines n is as follows. Xmn = XST + m.XW + n.X0 Ymn = YST + m.YW + n.Y0 For example, the address (coordinate) of the 0th line (n = 0) is (XY) = (0,0), (0.866,0.208) ,
(1.732, 0.417),... In the first line (n = 1), (XY) = (− 1.2,
0.866), (-0.334, 1.074), (0.
532, 1.28),. Here, it is clear from the figure that the integer part of each address indicates the address Add and the decimal part indicates the interpolation coefficient K.

【0009】上記補間処理は、例えば図12に示すよう
な4点加重方式を用いるのが好ましい。メモリから読み
出すべきアドレス位置Qは、図のように、X1とX2を
定めると、周囲の4点P(11),P(21),P(1
2),P(22)の加重平均を用いて、下式により求め
る。 Q=(1−Ky)X1+Ky・X2 X1=(1−Kx)P(11)+KxP(21) X2=(1−Kx)P(12)+KxP(22) したがって、 Q=(1−Kx)(1−Ky)P(11)+Kx(1−Ky)P(21) +Ky(1−Kx)P(12)+Kx・Ky・P(22)…(1) (1)式の演算は、1サイクル内に4画素アドレスP
(11),P(21),P(12),P(22)を同時
に読み出すことにより実現できる。上記4画素の同時読
み出しは、例えば図13に示すようなメモリ構成を用い
て行うことができる。
For the above-mentioned interpolation processing, it is preferable to use a four-point weighting method as shown in FIG. When X1 and X2 are defined as shown in the figure, the address position Q to be read from the memory is determined by four surrounding points P (11), P (21), P (1).
2) Using the weighted average of P (22), it is obtained by the following equation. Q = (1-Ky) X1 + Ky.X2 X1 = (1-Kx) P (11) + KxP (21) X2 = (1-Kx) P (12) + KxP (22) Therefore, Q = (1-Kx) ( 1−Ky) P (11) + Kx (1−Ky) P (21) + Ky (1−Kx) P (12) + Kx · Ky · P (22) (1) The operation of equation (1) is one cycle Within 4 pixel address P
(11), P (21), P (12), and P (22) can be realized by reading them simultaneously. Simultaneous reading of the four pixels can be performed using a memory configuration as shown in FIG. 13, for example.

【0010】図13に示す例では、一度のアドレス供給
により4画素を読み出すことができるように、偶数列、
偶数行専用メモリ(A)、奇数列、偶数行専用メモリ
(B)、偶数列、奇数行専用メモリ(C)及び奇数列、
奇数行専用メモリ(D)の4個の独立メモリを設けてい
る。
[0010] In the example shown in FIG. 13, even-numbered columns,
Even row dedicated memory (A), odd column, even row dedicated memory (B), even column, odd row dedicated memory (C) and odd column
Four independent memories of an odd-row dedicated memory (D) are provided.

【0011】図14は、上述4点加重平均回路による演
算を行うためにメモリからのデータ読み出し用アドレス
発生回路を示し、列アドレス0〜9ビットと行アドレス
0〜7ビットから奇数列メモリ用列アドレス、偶数列メ
モリ用列アドレス、奇数行メモリ用行アドレスおよび偶
数行メモリ用行アドレスが生成される。列アドレスの0
ビットはセレクト信号HSELとして出力されるととも
に、加算器211で、1〜9ビットと加算される。1〜
9ビットが奇数列メモリ用列アドレスとなり、加算器2
11の出力が偶数列メモリ用列アドレスとなる。同様
に、行アドレスの0ビットはセレクト信号VSELとし
て出力されるとともに、加算器212で、1〜7ビット
と加算される。1〜7ビットが奇数行メモリ用行アドレ
スとなり、加算器212の出力が偶数行メモリ用行アド
レスとなる。
FIG. 14 shows an address generation circuit for reading data from a memory in order to perform an operation by the above-mentioned four-point weighted averaging circuit. An address, a column address for even-numbered memory, a row address for odd-numbered memory, and a row address for even-numbered memory are generated. Column address 0
The bit is output as a select signal HSEL, and is added to 1 to 9 bits by an adder 211. 1 to
9 bits become the column address for the odd-numbered column memory, and the adder 2
The output of 11 becomes the column address for even column memory. Similarly, the 0 bit of the row address is output as the select signal VSEL, and is added by the adder 212 to 1 to 7 bits. Bits 1 to 7 become the row address for the odd-numbered memory, and the output of the adder 212 becomes the row address for the even-numbered memory.

【0012】図15にはメモリから読み出したリードデ
ータを用いて(1)式に示す4点加重平均演算を行うた
めの回路例が示されている。図15において、セレクタ
21と22は、図14で得られたセレクト信号HSEL
が“H”のときは“H”端子が、“L”のときは“L”
端子が選択され、セレクタ7は、同様にセレクト信号V
SELにより対応する端子が選択される。セレクタ21
には、偶数列偶数行リードデータと奇数列偶数行リード
データが入力され、セレクタ22には、偶数列奇数行リ
ードデータと奇数列奇数行リードデータが入力されてい
る。
FIG. 15 shows an example of a circuit for performing the four-point weighted averaging operation shown in equation (1) using the read data read from the memory. 15, the selectors 21 and 22 are connected to the select signal HSEL obtained in FIG.
Is “H”, the “H” terminal is “L”, and “L”
Terminal is selected, and the selector 7 similarly selects the select signal V
The corresponding terminal is selected by SEL. Selector 21
Are input with even-column even-row read data and odd-column even-row read data, and the selector 22 is input with even-column odd-row read data and odd-column odd-row read data.

【0013】セレクタ21からの2つの出力は、それぞ
れ乗算器1,2により係数(1−Kx),Kxが乗算さ
れる。乗算器1と2の出力は、加算器5で加算され、セ
レクタ7の2入力端子(L,H)に出力される。一方、
セレクタ22からの2つの出力は、それぞれ乗算器3,
4により係数(1−Kx),Kxが乗算される。乗算器
3と4の出力は、加算器6で加算され、セレクタ7の他
の2入力端子(L,H)に出力される。セレクタ7から
の2つの出力は、上記X1とX2であり、それぞれ乗算
器8,9により係数(1−Kx),Kxが乗算される。
乗算器8と9の出力は、加算器10で加算されて補間後
のデータQが得られる。
The two outputs from the selector 21 are multiplied by coefficients (1-Kx) and Kx by multipliers 1 and 2, respectively. The outputs of the multipliers 1 and 2 are added by the adder 5 and output to two input terminals (L, H) of the selector 7. on the other hand,
The two outputs from the selector 22 are connected to multipliers 3 and 3, respectively.
4 is multiplied by coefficients (1-Kx) and Kx. The outputs of the multipliers 3 and 4 are added by the adder 6 and output to the other two input terminals (L, H) of the selector 7. The two outputs from the selector 7 are X1 and X2 described above, and are multiplied by the coefficients (1-Kx) and Kx by the multipliers 8 and 9, respectively.
The outputs of the multipliers 8 and 9 are added by an adder 10 to obtain interpolated data Q.

【0014】[0014]

【発明が解決しようとする課題】上述のように、4点の
原画素データに基づく補間処理を行う従来の画像処理装
置は、4点の原画素データのうち水平方向と垂直方向に
ある2つの原画素データに基づいて補間データを得てい
るため、以下に述べるように、斜め線やエッジ部を補間
処理する際には、図16に示すように、斜め線やエッジ
部がギザギザ状になるため表示画面が見づらくなる。
As described above, a conventional image processing apparatus that performs interpolation processing based on four points of original pixel data is composed of two points in the horizontal and vertical directions of the four points of original pixel data. Since the interpolation data is obtained based on the original pixel data, as described below, when the diagonal lines and the edge portions are interpolated, the diagonal lines and the edge portions are jagged as shown in FIG. Therefore, the display screen becomes difficult to see.

【0015】図16は、斜めエッジの画像で、図におけ
る数値は輝度レベルを示し、16が白レベルに、0が黒
レベルに対応する。この場合、4隅の輝度レベルは、右
上端が#16で他は#0である。上述従来の補間処理を
施すと、同図に示すように、点線で示される斜線部は本
来、黒部分であるにもかかわらず、多少の輝度レベルを
もつため灰色がかってしまい、また完全に黒レベルであ
る部分も若干明るくなってしまい、斜め線部が不明瞭と
なるばかりでなく、白部分と黒部分の境界部がギザギザ
な表示となってしまうという問題がある。
FIG. 16 shows an image of a diagonal edge. Numerical values in the figure indicate luminance levels, 16 corresponding to a white level, and 0 corresponding to a black level. In this case, the brightness levels at the four corners are # 16 at the upper right corner and # 0 at the other corners. When the above-described conventional interpolation processing is performed, as shown in the figure, the hatched portion indicated by the dotted line is grayish because it has a certain luminance level despite being originally a black portion, and is completely black. The level portion also becomes slightly bright, so that not only the oblique line portion becomes unclear, but also the boundary portion between the white portion and the black portion has a jagged display.

【0016】そこで、本発明の目的は、4点加重平均補
間処理において、斜め線やエッジ部の再現性を向上した
画像処理装置に関する。
Accordingly, an object of the present invention is to provide an image processing apparatus which has improved reproducibility of oblique lines and edges in four-point weighted average interpolation processing.

【0017】[0017]

【課題を解決するための手段】前述の課題を解決するた
め、本発明による画像処理装置は、当該補間画素データ
をその近傍に位置する4点の原画素データに基づいて加
重平均演算により求める演算手段と、上記4点の画像デ
ータのうち少なくとも3点の分布態様に基づいてこの4
点により囲まれる領域内に斜め線のエッジをなすパター
ンが存在することを判定する判定手段と、上記判定手段
が当該4点により囲まれる領域内に斜め線のエッジをな
すパターンが存在することを判定したときには該領域内
の斜め線のエッジをなすパターンに該当する補間画素デ
ータとして上記演算手段に依らず当該4点のいずれかの
原画素データ自体を適用する手段と、を備えて構成され
る。
In order to solve the above-mentioned problem, an image processing apparatus according to the present invention calculates an interpolated pixel data by a weighted average operation based on four original pixel data located in the vicinity thereof. Means based on the distribution mode of at least three of the four image data.
Determining means for determining that a pattern forming an oblique line edge exists in an area surrounded by points; and determining that the pattern forming an oblique line edge exists in an area surrounded by the four points. Means for applying any one of the four points of the original pixel data itself as interpolation pixel data corresponding to a pattern forming an edge of a diagonal line in the area when the judgment is made. .

【0018】[0018]

【作用】本発明では、近傍に位置する4点の画像データ
うち少なくとも3点の分布態様に基づいて該4点で囲
まれる領域内に斜め線のエッジをなすパターンが存在す
るときに、該領域内の斜め線のエッジをなすパターンに
該当する補間画素データとして4点加重平均演算に依ら
ず当該4点のいずれかの原画素データ自体を用いてい
る。
According to the present invention, when a pattern forming an oblique line edge exists in a region surrounded by at least three points based on the distribution mode of at least three points among image data of four points located in the vicinity, As the interpolated pixel data corresponding to the pattern forming the edge of the oblique line in the region, original pixel data itself of any of the four points is used regardless of the four-point weighted average calculation.

【0019】[0019]

【実施例】次に、本発明の実施例について図面を参照し
ながら説明する。図1は、本発明による画像処理装置の
一実施例を示す構成ブロック図である。同図中、図15
と同一符号が付されている要素は同様な機能をもつ構成
要素である。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an embodiment of the image processing apparatus according to the present invention. In FIG.
Elements denoted by the same reference numerals are those having the same function.

【0020】本実施例は、4隅の輝度レベルの相互の大
小関係に基づいて斜め線で区切られた三角部分の状態を
判断し、判断結果に基づいて補間処理を中止したりする
処理を施して再現性の劣化を除去する。例えば、図2
(A)に示すような従来の補間により得られる補間後の
画像データ(図16と同一)に対して、本実施例による
処理を施す場合を考える。
In this embodiment, the state of the triangular portion divided by the diagonal line is determined based on the magnitude relationship between the brightness levels of the four corners, and the interpolation process is stopped based on the determination result. To remove the deterioration of reproducibility. For example, FIG.
A case in which the processing according to the present embodiment is applied to the interpolated image data (same as FIG. 16) obtained by the conventional interpolation as shown in FIG.

【0021】本実施例においては、4隅の画像データ
(輝度レベル)のうち3点の輝度レベルが“0”であれ
ば、同図(B)に示すように、これら3点で囲まれた領
域内にある画素の輝度レベルはすべて“0”であるはず
である。したがって、この場合には、A領域の輝度レベ
ルはすべて“0”を得、また、B領域においては、斜線
が存在する可能性もあるが、本例では4点補間処理を施
して補間データを得ている。
In this embodiment, if the luminance level of three points among the image data (luminance levels) at the four corners is "0", the image data is surrounded by these three points as shown in FIG. The luminance levels of the pixels in the area should be all “0”. Therefore, in this case, all the brightness levels in the area A obtain “0”, and in the area B, there is a possibility that an oblique line may exist. In this example, the interpolation data is obtained by performing the four-point interpolation processing. It has gained.

【0022】原画が斜め線1本の場合のパターンの認識
について図3を参照して説明する。図3(A)の4隅の
各画素輝度レベルをそれぞれ#1,#2,#3,および
#4とし、当該補間画素の#1からのx方向とy方向距
離をそれぞれKxとKyとすると、 条件(11):#1=#4且つ#1≠#2且つ#1≠#
3のとき、Kx=Kyならば、同図(B)に示す如くパ
ターンと認識され、補間画素は#1と#4を結ぶ直線上
にあり、この直線上の画素データとしては、補間処理を
施さずに、#1または#4のデータをそのまま出力すれ
ば良い。 条件(12):#2=#3且つ#1≠#2且つ#2≠#
4のとき、1−Kx=Ky(Kx=1−Ky)ならば、
補間画素は、同図(C)に示すパターンと認識され、補
間画素は#2と#3を結ぶ直線上にあり、この直線上の
画素データとしては、補間処理を施さずに#2または#
3のデータをそのまま出力すれば良い。
The recognition of a pattern in the case where the original image is a single oblique line will be described with reference to FIG. Assuming that the pixel luminance levels at the four corners in FIG. 3A are # 1, # 2, # 3, and # 4, respectively, and the distances of the interpolation pixel from # 1 in the x and y directions are Kx and Ky, respectively. Condition (11): # 1 = # 4 and # 1 ≠ # 2 and # 1 ≠ #
At the time of 3, if Kx = Ky, the pattern is recognized as shown in FIG. 7B, and the interpolated pixel is on a straight line connecting # 1 and # 4. Instead, the data of # 1 or # 4 may be output as it is. Condition (12): # 2 = # 3 and # 1 ≠ # 2 and # 2 ≠ #
At the time of 4, if 1−Kx = Ky (Kx = 1−Ky),
The interpolated pixel is recognized as the pattern shown in FIG. 3C, and the interpolated pixel is on a straight line connecting # 2 and # 3. Pixel data on this straight line is # 2 or # without interpolation processing.
The data of No. 3 may be output as it is.

【0023】次に、原画が、図4の(A)〜(D)に示
すような斜めエッジの場合についての処理を説明する。 条件(21):#1=#4且つ#1=#2且つ#1≠#
3のとき、Kx>Kyならば、図4(A)に示す斜めエ
ッジを含む#1−#2−#4を結ぶ三角形(斜線部)の
領域内の画素データとしては、#1,#2または#4の
データをそのまま出力すれば良い。 条件(22):#1=#4且つ#1=#3且つ#1≠#
2のとき、Kx<Kyならば、同図(B)に示すパター
ンと認識され、斜線の三角形領域内の画素データとして
は、#1,#3または#4の画素データをそのまま出力
すれば良い。 条件(23):#2=#3且つ#1=#2且つ#2≠#
4のとき、1−Kx>Kyならば、同図(C)に示すパ
ターンと認識され、斜線の三角形領域内の画素データ
は、#2,#1または#3の画素データをそのまま出力
すれば良い。 条件(24):#2=#3且つ#2=#4且つ#1≠#
2のとき、1−Kx<Kyならば、同図(D)に示すパ
ターンと認識され、斜線の三角形領域内の画素データ
は、#2,#3または#4の画素データをそのまま出力
すれば良い。
Next, the processing in the case where the original image has oblique edges as shown in FIGS. 4A to 4D will be described. Condition (21): # 1 = # 4 and # 1 = # 2 and # 1 ≠ #
At the time of 3, if Kx> Ky, the pixel data in the triangular (hatched portion) connecting # 1- # 2- # 4 including the oblique edge shown in FIG. Alternatively, the data of # 4 may be output as it is. Condition (22): # 1 = # 4 and # 1 = # 3 and # 1 ≠ #
In the case of 2, if Kx <Ky, it is recognized as the pattern shown in FIG. 7B, and the pixel data of # 1, # 3 or # 4 may be output as it is as the pixel data in the hatched triangular area. . Condition (23): # 2 = # 3 and # 1 = # 2 and # 2 ≠ #
At the time of 4, if 1−Kx> Ky, the pattern shown in FIG. 4C is recognized, and the pixel data in the hatched triangular area is obtained by directly outputting the pixel data of # 2, # 1 or # 3. good. Condition (24): # 2 = # 3 and # 2 = # 4 and # 1 ≠ #
At the time of 2, if 1−Kx <Ky, the pattern shown in FIG. 4D is recognized, and the pixel data in the hatched triangular area is obtained by directly outputting the pixel data of # 2, # 3 or # 4. good.

【0024】次に、図4(E)に示す斜線領域内または
白部領域内に4点がある場合には、4点の画素データ
は、すべて等しくすれば良い。すなわち、 条件(31):#1=#2=#3=#4のときは、K
x,Kyに無関係に各画素データは#1,#2,#3ま
たは#4のいずれかのデータをそのまま出力すれば良
い。
Next, when there are four points in the hatched area or the white area shown in FIG. 4 (E), all four pixel data may be made equal. That is, Condition (31): When # 1 = # 2 = # 3 = # 4, K
Regardless of x and Ky, each pixel data may be any one of # 1, # 2, # 3 or # 4 as it is.

【0025】以上から、条件(11)と(12)及び
(31)は、条件(21)〜(24)に包含される。こ
れらをまとめると、次の条件(1)〜(4)となる。 条件(1):#1=#4且つ#1=#2且つKx≧Ky
ならば、#1の画素データをそのまま出力する。 条件(2):#1=#4且つ#1=#3且つKx≦Ky
ならば、#1の画素データをそのまま出力する。 条件(3):#2=#3且つ#1=#2且つ1−Kx≧
Kyならば、#2の画素データをそのまま出力する。 条件(4):#2=#3且つ#2=#4且つ1−Kx≦
Kyならば、#2の画素データをそのまま出力する。
From the above, the conditions (11), (12) and (31) are included in the conditions (21) to (24). When these are summarized, the following conditions (1) to (4) are satisfied. Condition (1): # 1 = # 4 and # 1 = # 2 and Kx ≧ Ky
Then, the pixel data of # 1 is output as it is. Condition (2): # 1 = # 4 and # 1 = # 3 and Kx ≦ Ky
Then, the pixel data of # 1 is output as it is. Condition (3): # 2 = # 3 and # 1 = # 2 and 1−Kx ≧
If Ky, the pixel data of # 2 is output as it is. Condition (4): # 2 = # 3 and # 2 = # 4 and 1−Kx ≦
If Ky, the pixel data of # 2 is output as it is.

【0026】本実施例は、図15に示す従来の回路を基
本としつつ、セレクタ11、大小比較回路12と13、
ANDゲート14〜17、ORゲート18と19が付加
されている。
The present embodiment is based on the conventional circuit shown in FIG. 15 and further comprises a selector 11, size comparison circuits 12 and 13,
AND gates 14 to 17 and OR gates 18 and 19 are added.

【0027】大小比較回路12は、上記条件(1)〜
(4)における#1〜#4の相対的大きさの関係を判断
する回路で、#1=#2,#1=#3,#1=#4,#
2=#3,#2=#4のとき各出力端子から出力を発生
する。また、大小比較回路13は、Kx,Ky,1−K
xの相互の大小関係を判断する回路であり、Kx≧K
y,Kx≦Ky,1−Kx≧Ky,1−Kx≦Kyのと
き各出力端子から出力を発生する。
The magnitude comparison circuit 12 satisfies the above conditions (1) to (5).
A circuit for determining the relative size relationship of # 1 to # 4 in (4), where # 1 = # 2, # 1 = # 3, # 1 = # 4, #
When 2 = # 3 and # 2 = # 4, an output is generated from each output terminal. In addition, the magnitude comparison circuit 13 calculates Kx, Ky, 1−K
x is a circuit for determining the mutual magnitude relationship of x
When y, Kx ≦ Ky, 1−Kx ≧ Ky, 1−Kx ≦ Ky, an output is generated from each output terminal.

【0028】大小比較回路12と13の各出力は、図示
のごとく、ANDゲート14〜17に入力される。した
がって、ANDゲート14,15,16及び17から
は、条件(1),(2),(3)及び(4)に応答して
出力が生成される。ANDゲート14と15の出力はO
Rゲート18に、ANDゲート16と17の出力はOR
ゲート19に入力されるから、ORゲート18と19の
出力は、セレクタ11の制御信号としてセレクタ11に
送出される。つまり、条件(1)と(2)の場合には#
1の画素データを、条件(3)と(4)の場合には#2
の画素データをセレクタ11で選択するような制御が行
われる。そのため、セレクタ11の入力端子11a,1
1b及び11cには、4点加重平均補間データである加
算器10の出力、#1のデータ及び#2のデータが供給
されている。
The outputs of the magnitude comparison circuits 12 and 13 are input to AND gates 14 to 17 as shown in the figure. Therefore, outputs are generated from the AND gates 14, 15, 16 and 17 in response to the conditions (1), (2), (3) and (4). The outputs of AND gates 14 and 15 are O
The output of the AND gates 16 and 17 is OR
Since the signals are input to the gate 19, the outputs of the OR gates 18 and 19 are sent to the selector 11 as control signals for the selector 11. That is, in the case of conditions (1) and (2), #
1 in the case of conditions (3) and (4).
Is performed such that the selector 11 selects the pixel data. Therefore, the input terminals 11a, 1
1b and 11c are supplied with the output of the adder 10, the data of # 1, and the data of # 2, which are four-point weighted average interpolation data.

【0029】図5には、大小比較回路12と13の構成
例が示されている。例えば、減算器121で得られる#
1データと#2データの差データがNORゲート122
に入力され、入力がすべて“L”のとき、“H”が出力
されるような構成である。
FIG. 5 shows a configuration example of the magnitude comparison circuits 12 and 13. For example, # obtained by the subtractor 121
The difference data between 1 data and # 2 data is NOR gate 122
, And when all inputs are “L”, “H” is output.

【0030】また、2つのデータに若干のマージンを見
越して、冗長性をもたせた回路が図6に示されている。
本例では、2つのデータの差が予め定めた許容値x内に
あるときは、両データは同一と判断して処理を行う。そ
のため、減算器121で得られる2つのデータの差の絶
対値Bを絶対値回路123で求め、コンパレータ124
で、この絶対値と許容値A(=x)とを比較し、A≧B
であるとき出力を発生する。
FIG. 6 shows a circuit provided with redundancy in consideration of a slight margin between two data.
In this example, when the difference between the two data is within a predetermined allowable value x, the processing is performed by determining that the two data are the same. Therefore, the absolute value B of the difference between the two data obtained by the subtractor 121 is obtained by the absolute value circuit 123, and the absolute value B is obtained by the comparator 124.
Then, the absolute value is compared with the allowable value A (= x), and A ≧ B
Generates output when.

【0031】[0031]

【発明の効果】以上説明したように、本発明による画像
処理装置によれば、4点加重平均にある画素補間を行う
際、斜め線や斜めエッジが含まれている場合にもシャー
プで斜め線やエッジ部分の再現性の劣化を回避すること
ができる。
As described above, according to the image processing apparatus of the present invention, when performing pixel interpolation in a four-point weighted average, even if an oblique line or an oblique edge is included, a sharp oblique line is obtained. Also, it is possible to avoid the deterioration of the reproducibility of the edge portion.

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

【図1】本発明による画像処理装置の一実施例を示す構
成ブロック図である。
FIG. 1 is a configuration block diagram showing an embodiment of an image processing apparatus according to the present invention.

【図2】図1に示す実施例の動作を説明するための図で
ある。
FIG. 2 is a diagram for explaining the operation of the embodiment shown in FIG. 1;

【図3】図1に示す実施例の動作を説明するための図で
ある。
FIG. 3 is a diagram for explaining the operation of the embodiment shown in FIG. 1;

【図4】図1に示す実施例の動作を説明するための図で
ある。
FIG. 4 is a diagram for explaining the operation of the embodiment shown in FIG. 1;

【図5】図1に示す実施例の大小比較回路の構成例を示
すブロック図である。
FIG. 5 is a block diagram showing a configuration example of a magnitude comparison circuit of the embodiment shown in FIG. 1;

【図6】図1に示す実施例の大小比較回路の他の構成例
を示すブロック図である。
FIG. 6 is a block diagram showing another configuration example of the magnitude comparison circuit of the embodiment shown in FIG. 1;

【図7】本発明の実施例における画像回転原理を示すア
ドレス生成原理図である。
FIG. 7 is an address generation principle diagram showing an image rotation principle in the embodiment of the present invention.

【図8】図7に示す原理図によりXアドレスを生成する
ための回路図である。
FIG. 8 is a circuit diagram for generating an X address based on the principle diagram shown in FIG. 7;

【図9】図7に示す原理図によりYアドレスを生成する
ための回路図である。
FIG. 9 is a circuit diagram for generating a Y address based on the principle diagram shown in FIG. 7;

【図10】図7に示す原理を実際の画像回転に適用した
場合のアドレス生成原理を示す図である。
FIG. 10 is a diagram showing an address generation principle when the principle shown in FIG. 7 is applied to actual image rotation.

【図11】図10に示す原理図の基本となる画像構成図
である。
FIG. 11 is an image configuration diagram that is the basis of the principle diagram shown in FIG. 10;

【図12】本発明の実施例における補間処理回路7での
補間処理を4点加重平均演算により行う原理図である。
FIG. 12 is a principle diagram of performing an interpolation process by an interpolation processing circuit 7 by a four-point weighted average calculation in the embodiment of the present invention.

【図13】図12に示す補間処理を行うのに用いられる
メモリ構成図である。
FIG. 13 is a memory configuration diagram used for performing the interpolation processing shown in FIG. 12;

【図14】図12に示す補間処理で用いられるメモリ読
み出し用のアドレス生成回路の一例を示す回路図であ
る。
FIG. 14 is a circuit diagram showing an example of an address generation circuit for memory reading used in the interpolation processing shown in FIG. 12;

【図15】図12に示す補間処理の一例を示す回路図で
ある。
15 is a circuit diagram illustrating an example of the interpolation processing illustrated in FIG.

【図16】従来の画像処理装置の問題点を説明するため
の図である。
FIG. 16 is a diagram for explaining a problem of a conventional image processing apparatus.

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

1〜4,8,9 乗算器 5,6,10 加算器 7,11,21,22 セレクタ 12,13 大小比較回路 14〜17 ANDゲート 18,19 ORゲート 1-4,8,9 multiplier 5,6,10 adder 7,11,21,22 selector 12,13 size comparison circuit 14-17 AND gate 18,19 OR gate

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 3/40 H04N 5/14 H04N 5/232 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06T 3/40 H04N 5/14 H04N 5/232

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】当該補間画素データをその近傍に位置する
4点の原画素データに基づいて加重平均演算により求め
る演算手段と、 上記4点の画像データのうち少なくとも3点の分布態様
に基づいてこの4点により囲まれる領域内に斜め線のエ
ッジをなすパターンが存在することを判定する判定手段
と、 上記判定手段が当該4点により囲まれる領域内に斜め線
のエッジをなすパターンが存在することを判定したとき
には該領域内の斜め線のエッジをなすパターンに該当す
る補間画素データとして上記演算手段に依らず当該4点
のいずれかの原画素データ自体を適用する手段と、 を備えたことを特徴とする画像処理装置。
A calculating means for obtaining the interpolated pixel data by a weighted average calculation based on four original pixel data located in the vicinity thereof; and a distribution mode of at least three of the four image data. Determining means for determining that a pattern forming an edge of a diagonal line exists in an area surrounded by the four points; and a pattern forming an edge of the diagonal line in the area surrounded by the four points. Means for applying any one of the four points of the original pixel data itself as interpolation pixel data corresponding to a pattern forming an edge of a diagonal line in the area when it is determined that An image processing apparatus characterized by the above-mentioned.
JP35025492A 1992-12-03 1992-12-03 Image processing device Expired - Fee Related JP3327961B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35025492A JP3327961B2 (en) 1992-12-03 1992-12-03 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35025492A JP3327961B2 (en) 1992-12-03 1992-12-03 Image processing device

Publications (2)

Publication Number Publication Date
JPH06178192A JPH06178192A (en) 1994-06-24
JP3327961B2 true JP3327961B2 (en) 2002-09-24

Family

ID=18409258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35025492A Expired - Fee Related JP3327961B2 (en) 1992-12-03 1992-12-03 Image processing device

Country Status (1)

Country Link
JP (1) JP3327961B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008234426A (en) * 2007-03-22 2008-10-02 Seiko Epson Corp Image processing method, image processing device, and electronic equipment
CN113592714A (en) * 2021-08-05 2021-11-02 杭州雄迈集成电路技术股份有限公司 Image amplification method, module and system

Also Published As

Publication number Publication date
JPH06178192A (en) 1994-06-24

Similar Documents

Publication Publication Date Title
EP0280316B1 (en) Video image transforming method and apparatus
CN101080741B (en) Device and method for composing image
JP3747523B2 (en) Image processing apparatus and processing method
JPH0554753B2 (en)
US4607340A (en) Line smoothing circuit for graphic display units
JP3327961B2 (en) Image processing device
JPH0998340A (en) Image pickup device
US5220428A (en) Digital video effects apparatus for image transposition
JP3405302B2 (en) Image distortion correction device
JPH06169424A (en) Camera
JP3176718B2 (en) Image processing device
JPS63166369A (en) Mobile vector detection circuit
JPH0767025A (en) Video processor
JP2611211B2 (en) Two-dimensional filter device
JP3465910B2 (en) Automatic focusing method
JP3294330B2 (en) Character display
JP3523660B2 (en) Imaging device
JP2998689B2 (en) How to map image data
JPH036674A (en) Picture distortion correcting device
JP2002288649A (en) Image rotation processing method and device
JP2960731B2 (en) Image processing device
JP2803235B2 (en) Digital image processing method
JPH057816Y2 (en)
JPH0463063A (en) Error dispersing circuit
JPH08274983A (en) Pixel interpolation method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020625

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

Free format text: PAYMENT UNTIL: 20080712

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090712

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100712

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100712

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110712

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120712

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees