JPS6220076A - Image processing system - Google Patents

Image processing system

Info

Publication number
JPS6220076A
JPS6220076A JP60159495A JP15949585A JPS6220076A JP S6220076 A JPS6220076 A JP S6220076A JP 60159495 A JP60159495 A JP 60159495A JP 15949585 A JP15949585 A JP 15949585A JP S6220076 A JPS6220076 A JP S6220076A
Authority
JP
Japan
Prior art keywords
image
image memory
degrees
register
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60159495A
Other languages
Japanese (ja)
Inventor
Motoichiro Waki
脇 素一郎
Masakazu Yamada
山田 正計
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP60159495A priority Critical patent/JPS6220076A/en
Publication of JPS6220076A publication Critical patent/JPS6220076A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To obtain a normalized image having no distortion by combining two methods of a method for changing a read-out direction of an image memory by the integer multiple of 45 deg., and a method for making a minute angle being below angle approximate by a shift of an image corresponding to the angle, with regard to a rotation of an image. CONSTITUTION:An image memory 101 used for read/write of a horizontal or oblique + or -45 deg. direction is constituted so that it can read and write independently at every row, has a size of (n) rows X (n) lines, and an image memory 102 used for read/write of a vertical or horizontal direction is constituted so that it can read and write independently at every row, and has a size of (n+1) rows X (n) lines. A shifter 103 aligns a position of a data which is read and written from and to the image memory 102, and a control part 104 controls an address of the image memories 101, 102, read/write, and the mutual transfer. By constituting the image memory part in such a way, an image data can be read and written freely at a high speed in a vertical or horizontal or oblique + or -45 deg. direction.

Description

【発明の詳細な説明】 (1)発明の属する技術分野 本発明は画像処理技術に係わり、特に文字・図形・画像
の認識の前処理に必要な拡大/縮小・回転の正規化パラ
メータの決定並びに正規化処理に好適な画像処理方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical field to which the invention pertains The present invention relates to image processing technology, and in particular to the determination of normalization parameters for enlargement/reduction/rotation necessary for pre-processing of recognition of characters, figures, and images. The present invention relates to an image processing method suitable for normalization processing.

(2)従来の技術 文書中の文字や図形などを認識する場合や、カメラでと
らえた画像を認識する場合などでは1文字・図形・画像
を拡大/縮小あるいは回転させて標準バタンとの照合に
必要な正規化を行なう。しかしながら、様式の定まって
いない文書を認識する場合や認識技術をロボットの視覚
に適用する場合には、拡大/縮小率あるいは回゛転角を
少しづつ変えながら最適な正規化パラメータを求める必
要がある。しかし一般に使用されているアフィン変換の
ような計算法(工業技術院監修:rSPIDERユーザ
マニュアル」参照)をそのまま適用して繰り返し計算を
行なうと、座標変換のための計算量が多いために性能が
出ないという問題があった。また、斜交軸変換を繰り返
して回転を近似する方法(材間:「ファクシミリ原稿の
傾補正」信学会全大(昭56)参照)では2回転角が大
きくなった場合に画像の歪みが大きくなるという問題が
あった。また、2次元ブロック転送で回転を実現する方
法(武田他=「2次元ブロック転送による高速画像回転
方式」情処全大(昭58後期)参照)では画素濃度値を
格子点の濃度値で代表させており濃淡画像の品質が低下
するという問題があった。
(2) When recognizing characters, figures, etc. in conventional technical documents, or when recognizing images captured by a camera, a single character, figure, or image is enlarged/reduced or rotated and compared with a standard button. Perform any necessary normalization. However, when recognizing documents with undefined formats or when applying recognition technology to robot vision, it is necessary to find the optimal normalization parameters by gradually changing the enlargement/reduction ratio or rotation angle. . However, if a commonly used calculation method such as affine transformation (refer to the rSPIDER user manual supervised by the Agency of Industrial Science and Technology) is applied and repeated calculations are performed, the performance will deteriorate due to the large amount of calculation for coordinate transformation. The problem was that there was no. In addition, in the method of approximating rotation by repeating oblique axis conversion (see Shima: ``Correcting the tilt of facsimile manuscripts'', IEICE (1982)), image distortion becomes large when the rotation angle becomes large. There was a problem. In addition, in the method of realizing rotation by two-dimensional block transfer (see Takeda et al., "High-speed image rotation method using two-dimensional block transfer", National Institute of Information Technology (late 1980)), pixel density values are represented by density values of grid points. Therefore, there was a problem that the quality of the grayscale image deteriorated.

(3)発明の目的 本発明の目的は、認識対象の文字・図形・画像の切り出
し方を決めたり大きさや歪の補正係数を求めたりするた
めに1文字・図形・画像を少しづつ拡大/縮小あるいは
回転させながら最適な正規化パラメータを決定するのに
必要な9画像の拡大/縮小あるいは回転処理を高速化し
て正規化処理全体を効率化する処理方式を提供すること
にある。
(3) Purpose of the Invention The purpose of the present invention is to enlarge/reduce each character, figure, or image little by little in order to decide how to cut out a character, figure, or image to be recognized, or to obtain correction coefficients for size and distortion. Alternatively, it is an object of the present invention to provide a processing method that increases the efficiency of the entire normalization process by speeding up the processing of enlarging/reducing or rotating nine images necessary to determine the optimal normalization parameters while rotating the images.

(4)発明の構成 (4−1)発明の特徴と従来の技術との差異本発明は、
 !/横/斜め±45度方向に読み書きできる画像メモ
リ部と、この画像メモリを指定条件で高速に読み書きす
るアクセス制御部と1画像メモリとの間で読み書きする
画素濃度値を複数列分保持する画像レジスタ部と1画像
メモリあるいは画像レジスタ上の任意の画素を指定して
それらの濃度値に対する算術・論理演算を行なう演算実
行部と、指定条件によって演算対象となる画素のアドレ
スの計算と濃度値補間用の係数の計算とを行なう座標変
換制御部を設けて1画像メモリを縦/横/斜め±45度
方向に高速に読み書き出来るように構成すると共に画素
間の任意の位置から任意方向の画像データを補間計算に
より高速に作成出来るように構成し1回転については4
5度の整数倍の部分は縦/横/斜め±45度の読み出し
方向の選択だけで代用し、それ以下の微小回転部分は微
小回転角に応じた画素位置のシフトと補間計算を繰り返
し行なって近似することにより、高速性と近似精度を両
立させていることを最も主要な特徴としている。
(4) Structure of the invention (4-1) Differences between the characteristics of the invention and the conventional technology The present invention has the following features:
! An image that holds multiple columns of pixel density values to be read and written between an image memory unit that can read and write in /horizontal/diagonal ±45 degree directions, an access control unit that reads and writes this image memory at high speed under specified conditions, and one image memory. A register unit, an operation execution unit that specifies arbitrary pixels on the image memory or image register and performs arithmetic and logical operations on those density values, and calculates addresses of pixels to be operated on according to specified conditions and interpolates density values. A coordinate transformation control unit is provided to calculate the coefficients for each image, so that one image memory can be read and written at high speed in vertical, horizontal, and diagonal directions of ±45 degrees, and image data in any direction from any position between pixels It is configured so that it can be created quickly by interpolation calculation, and 4 for one rotation.
For parts that are integral multiples of 5 degrees, we simply select the readout direction of vertical/horizontal/diagonal ±45 degrees, and for smaller rotation parts, we repeatedly shift the pixel position according to the small rotation angle and perform interpolation calculations. The main feature is that it achieves both high speed and approximation accuracy through approximation.

従来の2計算量の多いアフィン変換を用いる方法9回転
角が大きくなると精度の落ちる斜交軸変換を繰り返す方
法、あるいは補間計算との整合性の良くない2次元ブロ
ック転送により回転を実現する方法などを単独で用いた
場合には解決できなかった高速性と近似精度の両立の問
題を解決できることが大きな違いである。
Conventional methods 2 Methods using affine transformation that require a lot of calculations 9 Methods that repeat oblique axis transformations whose accuracy decreases as the rotation angle increases, or methods that achieve rotation by two-dimensional block transfer that is not consistent with interpolation calculations, etc. The major difference is that it can solve the problem of achieving both high speed and approximation accuracy, which could not be solved when using alone.

(4〜2)実施例 〔第1実施例〕 第1図は本願の第1実施例を説明する図であって、1は
画像データを保持する画像メモリ部、2は画像メモリの
アドレスと読み出し書き込みの方向と長さとなどを指定
するアクセス制御部、3は画像メモリから読み出したり
書き込んだりする画像を一時保持する画像レジスタ部、
4は画像メモリや画像レジスタの画素濃度値に対して算
術・論理演算を行なう演算実行部、5は拡大/縮小ある
いは回転などの制御を行なう座標変換制御部、6は拡大
/縮小あるいは回転などの基準となるアドレス(x O
,y O)を保持する基準座標レジスタ。
(4-2) Examples [First Example] Fig. 1 is a diagram explaining the first example of the present application, in which 1 is an image memory section that holds image data, and 2 is an address and readout of the image memory. an access control unit that specifies the direction and length of writing, etc.; 3 an image register unit that temporarily holds the image to be read from or written to the image memory;
4 is an operation execution unit that performs arithmetic and logical operations on pixel density values in the image memory and image register; 5 is a coordinate conversion control unit that controls enlargement/reduction or rotation; and 6 is an operation execution unit that performs enlargement/reduction or rotation. Reference address (x O
, y O).

7は拡大/縮小率Mあるいは回転角度(または書き込み
読み出し角度)θを保持する変換指定レジスタ、8は画
像メモリと画像レジスタ部ならびに演算実行部との間で
データを転送するバス、9は画像レジスタ部のデータを
演算実行部に転送するハス、10は演算結果を画像レジ
スタ部に転送するハス、11は入出力データパス、12
は画像メモリアドレス、制御線、13はアクセス制御線
、14は補間制御線、15は外部からの制御線である。
7 is a conversion specification register that holds the enlargement/reduction ratio M or the rotation angle (or write/read angle) θ; 8 is a bus that transfers data between the image memory, the image register section, and the arithmetic execution section; 9 is an image register 10 is a lotus that transfers the calculation result to the image register section; 11 is an input/output data path; 12
1 is an image memory address, a control line, 13 is an access control line, 14 is an interpolation control line, and 15 is an external control line.

第2図は、縦あるいは横あるいは斜め±45度方向の高
速読み書きを可能にする画像メモリ部1の第1の実施例
を説明する図であって、101は横あるいは斜め±45
度方向の読み書きに使用する画像メモリで列ごとに独立
に読み書き出来るように構成し、n列×n行の大きさを
持ち、102は縦あるいは横方向の読み書きに使用する
画像メモリで列ごとに独立に読み書き出来るように構成
し、  (n+1)列×n行の大きさを持ち、103は
画像メモリ102に読み書きするデータの位置を揃える
ためのシフタで、104は画像メモリ101.102の
アドレスや読み書き並びに相互の転送を制御する制御部
であり、105,106は内部のデータバスである。こ
のように画像メモリ部を構成することによって3画像デ
ータを縦あるいは横あるいは斜め±45度方向に高速に
自由に読み書きできる。
FIG. 2 is a diagram illustrating a first embodiment of the image memory section 1 that enables high-speed reading and writing in vertical, horizontal, or diagonal directions of ±45 degrees, and 101 is a diagram illustrating a first embodiment of the image memory section 1 that enables high-speed reading and writing in vertical, horizontal, or diagonal directions of ±45 degrees.
102 is an image memory used for reading and writing in the vertical or horizontal direction, configured so that each column can be read and written independently, and has a size of n columns x n rows. It is configured so that it can be read and written independently, and has a size of (n+1) columns x n rows. 103 is a shifter for aligning the position of data to be read and written to the image memory 102, and 104 is a shifter for aligning the positions of data to be read and written to the image memory 102. This is a control unit that controls reading/writing and mutual transfer, and 105 and 106 are internal data buses. By configuring the image memory section in this manner, three image data can be freely read and written at high speed in vertical, horizontal, or diagonal directions of ±45 degrees.

第3図は、縦あるいは横あるいは斜め±45度方向の高
速読み書きを可能にする画像メモリ部1の第2の実施例
を説明する図であって、107は横方向の書き込みと縦
あるいは横あるいは斜め±45度方向の読み出しができ
るメモリセル(特願昭60−84642号「多方向読み
出し1方向書き込みメモリセル」参照)をn列×n行分
相互接続してnxnの大きさの画像を保持できるように
構成したものであり、108は縦あるいは斜め方向の書
き込みの際に使用するバッツァメモリであり、109は
画像メモリ107,108のアドレスや読み書き並びに
相互の転送を制御する制御部であり、110は内部のデ
ータバスである。このように画像メモリ部を構成しても
9画像データを縦あるいは横あるいは斜め±45度方向
に高速に自由にS売み書きできる。
FIG. 3 is a diagram illustrating a second embodiment of the image memory section 1 that enables high-speed reading and writing in the vertical, horizontal, or diagonal directions of ±45 degrees, and 107 indicates the horizontal writing and the vertical, horizontal, or diagonal directions. Memory cells that can be read in diagonal directions of ±45 degrees (see Japanese Patent Application No. 60-84642 "Multi-directional read/unidirectional write memory cell") are interconnected in n columns x n rows to hold an n x n size image. 108 is a batza memory used for vertical or diagonal writing, 109 is a control unit that controls addresses, reading and writing, and mutual transfer of the image memories 107 and 108, and 110 is an internal data bus. Even if the image memory section is configured in this manner, nine image data can be freely written vertically, horizontally, or diagonally at ±45 degrees at high speed.

第4図は、アクセス制御部2の実施例を説明する図であ
って、201は座標変換制御部からの制御信号13を解
読して画像メモリ部へ°の制御信号に変換する制御部で
あり、202はX座標のアドレスを保持するレジスタで
あり、203はX座標のアドレスを保持するレジスタで
あり、204は読み書きするデータの長さを保持するレ
ジスタであり、205は読み書きの方向を保持するレジ
スタであり、11−1.2,3.4はそれぞれレジスタ
202,203,204,205の出力信号であり、1
2−5は読み書き指定などの制御信号である。
FIG. 4 is a diagram illustrating an embodiment of the access control unit 2, and 201 is a control unit that decodes the control signal 13 from the coordinate transformation control unit and converts it into a control signal for the image memory unit. , 202 is a register that holds the address of the X coordinate, 203 is a register that holds the address of the X coordinate, 204 is a register that holds the length of data to be read and written, and 205 is a register that holds the direction of reading and writing. 11-1.2 and 3.4 are the output signals of registers 202, 203, 204, and 205, respectively;
2-5 is a control signal such as read/write designation.

第5図は、座標変換制御部5の実施例を説明する図であ
って、501はアドレスの計算や補間係数の計算などを
行う演算器であり、502は補間係数を保持するレジス
タであり、503はメモリのアドレス(x、y)と読み
書きの長さβと方向dとを保持するレジスタであり、5
04は画像の拡大/縮小あるいは回転等を制御する制御
部である。
FIG. 5 is a diagram illustrating an embodiment of the coordinate transformation control unit 5, in which 501 is an arithmetic unit that calculates addresses and interpolation coefficients, and 502 is a register that holds interpolation coefficients. 503 is a register that holds the memory address (x, y), reading/writing length β, and direction d;
04 is a control unit that controls enlargement/reduction, rotation, etc. of the image.

第6図は、第1の発明の詳細な説明する図である。(a
)は読み出し角度θが零度に近い場合で。
FIG. 6 is a diagram for explaining the first invention in detail. (a
) is when the readout angle θ is close to zero degrees.

(b)は読み出し角度が45度に近い場合である。(b) is a case where the read angle is close to 45 degrees.

図中(x O,y O)は拡大/縮小あるいは回転など
の基準となるアドレスで第1図、第5図に示す基準座標
レジスタ6に保持されているものである。
In the figure, (x O, y O) are addresses that serve as references for enlargement/reduction, rotation, etc., and are held in the reference coordinate register 6 shown in FIGS. 1 and 5.

また1図中M、θはそれぞれ拡大/縮小率、読み出し角
度で第1図、第5図に示す変換指定レジスタ7に保持さ
れているものである。第1図、第5図に示す拡大/縮小
あるいは回転などの制御を行なう座標変換制御部5は2
変換指定レジスタ7に保持されているθの値が(180
Xn)度に近い場合/ (90+180xn)度に近い
場合/(45+180Xn)度に近い場合/(−45+
180×n)度に近い場合(ただしnは整数)に応じて
、それぞれ横/縦/斜め+45度/斜め一45度の方向
の中から読み出し角度に最も近い方向dを選択する。例
えば第6図(a)の場合には読み出し角度θが零度に近
いので座標変換制御■部5は読み出し方向として「横方
向」を選択し、第6図(b)の場合には読み出し角度θ
が45度に近いので座標変換制御部5は読み出し方向と
して「45度」を選択する。第6図において、拡大/縮
小率Mに対応した間隔で実線上にX印で示した点の濃度
値を求めるために、座標変換制御部5は、基準座標レジ
スタ6に保持されるアドレス(XO。
Further, M and θ in FIG. 1 are the enlargement/reduction ratio and readout angle, respectively, and are held in the conversion designation register 7 shown in FIGS. 1 and 5. The coordinate transformation control section 5 that controls enlargement/reduction, rotation, etc. shown in FIGS. 1 and 5 has two
The value of θ held in the conversion specification register 7 is (180
When close to Xn) degrees / When close to (90+180xn) degrees / When close to (45+180Xn) degrees / (-45+
180×n) degrees (where n is an integer), the direction d closest to the reading angle is selected from the horizontal, vertical, diagonal +45 degree, and diagonal -45 degree directions, respectively. For example, in the case of FIG. 6(a), the readout angle θ is close to zero degrees, so the coordinate conversion control section 5 selects the "horizontal direction" as the readout direction, and in the case of FIG. 6(b), the readout angle θ
is close to 45 degrees, so the coordinate transformation control unit 5 selects "45 degrees" as the reading direction. In FIG. 6, in order to obtain the density values of points indicated by X marks on the solid line at intervals corresponding to the enlargement/reduction ratio M, the coordinate conversion control unit 5 uses the address (XO .

yO)と変換指定レジスタ7に保持される読み出し角度
θとで定まる第6図中の実線で示す直線を挟むような、
角度θの大きさによって定まる読み出し方向d (m/
横/斜め±45度の内1つ)に平行する・印の画素を結
ぶ破線で示す複数の線分上の画素の濃度値を読み出す。
yO) and the readout angle θ held in the conversion designation register 7, sandwiching the straight line shown by the solid line in FIG.
The readout direction d (m/
Read the density values of pixels on a plurality of line segments shown by broken lines connecting the pixels marked with .

このために、演算器501は、基準座標レジスタ6に保
持されるアドレス(xo、yO)と変換指定レジスタ7
に保持される読み出し角度θを用いて第6図の破線で示
す複数の線分に対応する画像メモリの読み出しアドレス
(xl、yl)、(x2.y2)・・・(xi。
For this purpose, the arithmetic unit 501 uses the address (xo, yO) held in the reference coordinate register 6 and the conversion specification register 7.
Using the readout angle θ held in the image memory readout addresses (xl, yl), (x2.y2), . . . (xi.

yi)、読み出しデータの長さfl、A2・・・!iを
次々に計算して第5図に示すレジスタ503に書き込み
、これらの値を読み/書きの制御情報と共にアクセス制
御線13にのせてアクセス制御部2に送り出す。この信
号を基に、アクセス制御部2では第6図の破線で示す線
分の数に相当する回数だけ画像メモリ部1の指定アドレ
スから指定長だけ指定方向に画素の濃度データを読み出
し1画像レジスタ部3に転送する。縦方向に読み出す場
合には、第2図において、制御部104は画像メモリ1
02の各列に対して画素P m nのnが一定となるよ
うな行アドレスを生成する。横方向に読み出す場合には
、第2図において、制御部104は画像メモリ101の
各列に対して画素Pmnのmが一定となるような行アド
レスを生成する。斜め±45度の場合には、第2図にお
いて、制御部104は画像メモリ101の各列に対して
画素Pmnのmとnとが共に±1づつ変わるような行ア
ドレスを生成する。第3図の構成の場合には画像メモリ
107に対してそれぞれ縦/横/斜め±45度方向に読
み出すように制御部109がアドレスを生成する。一方
、基準座標レジスタ6に保持されるアドレス(xo、y
O)と変換指定レジスタ7に保持される拡大/縮小率M
、読み出し角度θによって定まる第6図中の実線上のX
印の点の濃度値の計算を行なうために、第5図に示した
演算器501は、基準座標レジスタ6に保持されるアド
レス(xO,yO)と変換指定レジスタ7に保持される
拡大/縮小率M、読み出し角度θとから求められる×印
の点の座標値とX印の点を囲む・印をつけた4箇所の画
素の座標値とから補間係数を計算し、レジスタ502に
保持する。第1図に示した演算実行部4では9画像レジ
スタ部3に読み出した×印を囲む・印の画素の濃度値と
座標変換制御部5で計算した補間係数とを用いて、X印
で示した点の濃度値の補間計算を実行する。実行結果は
画素レジスタに書き戻すと共に必要ならば画像メモリの
指定位置にも書き戻す。
yi), length of read data fl, A2...! i is calculated one after another and written into the register 503 shown in FIG. 5, and these values are sent to the access control section 2 along with read/write control information on the access control line 13. Based on this signal, the access control unit 2 reads the density data of the pixel in the specified direction from the specified address of the image memory unit 1 by the specified length a number of times corresponding to the number of line segments shown by the broken line in FIG. 6, and registers one image register. Transfer to Department 3. When reading in the vertical direction, in FIG.
For each column of 02, a row address is generated such that n of the pixel P m n is constant. When reading in the horizontal direction, in FIG. 2, the control unit 104 generates a row address such that m of the pixel Pmn is constant for each column of the image memory 101. In the case of an inclination of ±45 degrees, as shown in FIG. 2, the control unit 104 generates a row address for each column of the image memory 101 such that both m and n of the pixel Pmn change by ±1. In the case of the configuration shown in FIG. 3, the control unit 109 generates addresses so that the image memory 107 is read in vertical, horizontal, and diagonal directions of ±45 degrees, respectively. On the other hand, the address (xo, y
O) and the enlargement/reduction ratio M held in the conversion specification register 7
, X on the solid line in FIG. 6 determined by the readout angle θ
In order to calculate the density value of the marked point, the arithmetic unit 501 shown in FIG. An interpolation coefficient is calculated from the coordinate value of the point marked with an x, which is determined from the ratio M and the readout angle θ, and the coordinate values of the four marked pixels surrounding the point marked with an x, and is stored in the register 502. The arithmetic execution unit 4 shown in FIG. Performs interpolation calculation of the density value of the point. The execution result is written back to the pixel register and, if necessary, to the specified location in the image memory.

〔第2実施例〕 第7図は1本願の第2実施例の動作を説明する図である
。(a)は座標軸が45度傾いている場合で、 (b)
は座標軸が傾いていない場合である。
[Second Embodiment] FIG. 7 is a diagram illustrating the operation of the second embodiment of the present application. (a) is when the coordinate axes are tilted at 45 degrees, (b)
is the case when the coordinate axes are not tilted.

破線上の○印で示した点(拡大/縮小された結果の点)
に対してX軸、Y軸方向の拡大/縮小率Mx、Myによ
って対応がとられる実線上のX印で示した点の濃度値を
求めるために、・印で示した周辺の画素列の濃度値を画
像レジスタ部3に読み出し、座標変換制御部5で計算し
た補間係数と×印で示した点の周辺の・印で示した画素
の濃度値とを用いて演算実行部4で補間計算を実行する
Points marked with ○ on the broken line (points resulting from enlargement/reduction)
In order to find the density value of the point indicated by the The value is read into the image register unit 3, and the calculation execution unit 4 performs interpolation calculation using the interpolation coefficient calculated by the coordinate conversion control unit 5 and the density value of the pixel indicated by the mark around the point indicated by the × mark. Execute.

実行結果を破線上の○印で示した点に書き戻し。Write the execution result back to the point indicated by the circle on the dashed line.

隣接の列についても次々に同様の処理を繰り返していく
ことにより拡大/縮小が実行できる。拡大の場合(x 
O,y O)から離れた所から(XO。
Enlargement/reduction can be performed for adjacent columns by repeating the same process one after another. In case of expansion (x
O, y O) from a distance from (XO.

yO)の方に向かって処理を進め、逆に縮小の場合には
(xo、yO)に近い所から処理を始めて離れた方に向
かって処理を進める。
yO), and conversely, in the case of reduction, processing starts from a location close to (xo, yO) and progresses toward a location away from it.

〔第3実施例〕 第8図は2本願の第3実施例の動作を説明する図である
。Ca>は原画像を示し、第8図は当該原画像をθ−4
5°+Δθ(ただし、Δθ≦22゜5°)回転する場合
を例に処理の手順を以下に示す。(b)では、  (x
o、yO)からのX軸方向の距離Xに応じて画像をx−
tanΔθだけY軸方向にシフトし、第1実施例で説明
した方法(第6図)で画素濃度値の補間計算を行なう状
態を示している。(C)では2図示(b)の図形につい
て。
[Third Embodiment] FIG. 8 is a diagram illustrating the operation of the third embodiment of the two applications. Ca> indicates the original image, and FIG. 8 shows the original image at θ-4
The processing procedure will be described below, taking as an example the case of rotating by 5°+Δθ (where Δθ≦22°5°). In (b), (x
o, yO) according to the distance X in the X-axis direction from
This shows a state in which the pixel density value is shifted by tanΔθ in the Y-axis direction and interpolation calculation of the pixel density value is performed using the method described in the first embodiment (FIG. 6). (C) shows the figure shown in Figure 2 (b).

(xo、yO)からのY軸方向の距離yに応じて画像を
y −tan ΔθだけX軸方向にシフトし、第1実施
例で説明した方法(第6図)で画素濃度値の補間計算を
行なう状態を示している。そして最後に(d)では標準
の読み出し方向として斜め45度を選択する状態を示し
ている。以上で角度θの回転を実現できる。なお、  
(bL (C)の順序は入れ替え可能であり、また(d
)を先に行なうことも可能である。
The image is shifted in the X-axis direction by y - tan Δθ according to the distance y in the Y-axis direction from (xo, yO), and the pixel density value is interpolated using the method explained in the first embodiment (Fig. 6). This shows the state in which the Finally, (d) shows a state in which an oblique angle of 45 degrees is selected as the standard read direction. With the above steps, rotation by an angle θ can be realized. In addition,
The order of (bL (C) can be swapped, and (d
) can be performed first.

〔第4実施例〕 第9図は2本願の第4実施例の動作を説明する図である
。該第4実施例の場合には、斜め±45度方向の読み書
きを行なう画像メモリを用いた第3実施例による回転法
と、第2実施例による拡大/縮小法を組み合わせたもの
であり、第3実施例による回転において選択される読み
書き方向が45度の奇数倍変化する場合には第2実施例
を適用して7丁倍の拡大/縮小の補正を行ない、X方向
[Fourth Embodiment] FIG. 9 is a diagram illustrating the operation of the fourth embodiment of the two applications. In the case of the fourth embodiment, the rotation method according to the third embodiment using an image memory that reads and writes in diagonal directions of ±45 degrees and the enlargement/reduction method according to the second embodiment are combined. When the read/write direction selected in the rotation according to the third embodiment changes by an odd number of times of 45 degrees, the second embodiment is applied to correct the expansion/reduction by a factor of 7, and the X direction.

Y方向に画素数で数えた長さが変わらないように構成す
る。
The structure is configured so that the length counted in pixels in the Y direction does not change.

〔第5実施例〕 第10図は1本願の第5実施例の動作を説明するフロー
図である。第5実施例の場合は特許請求の範囲の欄に明
確に記述しておくことを省略したが、第1.第2.第3
.第4実施例による処理を繰り返し適用することにより
画像の正規化を行なうために適切な拡大/縮小率あるい
は回転角度を高速に求めた後、より精度の高い計算法を
用いてこの画像の正規化を行なうように構成する。
[Fifth Embodiment] FIG. 10 is a flowchart illustrating the operation of the fifth embodiment of the present application. In the case of the fifth embodiment, clear description in the claims column was omitted, but in the case of the first embodiment. Second. Third
.. After repeatedly applying the process according to the fourth embodiment to quickly determine an appropriate enlargement/reduction ratio or rotation angle for normalizing the image, a more accurate calculation method is used to normalize the image. Configure it to do this.

(5)発明の詳細 な説明したように1本発明によれば1画像の回転に関し
1画像メモリの読み出し方向を45度の整数倍だけ変え
る方法とそれ以下の微小角度については角度に応じた画
像のシフトで近似するという方法との2つの方法を組み
合わせることにより高速で歪の少ない画像の回転を実現
できる。画像の拡大/′4vi小についても2画像メモ
リを高速に読み書きして補間計算を高速処理出来るとい
う構成を利用して高性能化できる。また1画像の正規化
に必要な拡大/縮小率あるいは回転角を高速な本発明に
もとづいて求めた後に、精度の良い計算法で画像の拡大
/縮小あるいは回転処理を行なうことにより、歪のない
正規化画像が得られてしかも正規化処理全体の効率向上
を実現できる。
(5) As described in detail of the invention, according to the present invention, there is a method of changing the reading direction of one image memory by an integral multiple of 45 degrees regarding the rotation of one image, and a method of changing the readout direction of one image memory by an integral multiple of 45 degrees, and an image corresponding to the angle for minute angles smaller than that. By combining these two methods, it is possible to achieve high-speed image rotation with little distortion. Even when it comes to image enlargement/'4vi, the performance can be improved by utilizing the configuration that can read and write two image memories at high speed and perform interpolation calculations at high speed. In addition, after determining the enlargement/reduction ratio or rotation angle necessary for normalizing one image based on the high-speed present invention, the image is enlarged/reduced or rotated using a highly accurate calculation method, thereby eliminating distortion. A normalized image can be obtained, and the efficiency of the entire normalization process can be improved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を説明するプロ・7り図、第
2図は縦あるいは横あるいは斜め±45度方向の高速読
み書きを可能にする画像メモ1.1部の第1の実施例を
説明する図、第3図は縦あるいは横あるいは斜め±45
度方向の高速読み書きを可能にする画像メモリ部の第2
の実施例を説明する図、第4図はアクセス制御部の実施
例を説明する図、第5図は座標変換制御部の実施例を説
明する図、第6図は本発明の第1の実施例の場合の動作
を説明する図、第7図は第2実施例の場合の動作を説明
する図、第8図は第3実施例の場合の動作を説明する図
、第9図は第4実施例の場合の動作を説明する図、第1
0図は第5実施例の場合の動作を説明するフロー図であ
る。 1:画像メモリ部、2:アクセス制御部、3:画像レジ
スタ部、4:演算実行部、5:座標変換制御部、6:基
準座標レジスタ、゛7:変換指定レジスク。 特許出願人   日本電信電話株式会社代理人弁理士 
   森 1) 寛 丁 L+、1コ 、、、       旧 身 ’7  /] (I))
Figure 1 is a professional diagram explaining one embodiment of the present invention, and Figure 2 is a first implementation of part 1.1 of an image memo that enables high-speed reading and writing in vertical, horizontal, or diagonal directions of ±45 degrees. A diagram explaining an example, Figure 3 is vertical, horizontal or diagonal ±45
The second part of the image memory section enables high-speed reading and writing in the degree direction.
FIG. 4 is a diagram illustrating an embodiment of the access control section, FIG. 5 is a diagram illustrating an embodiment of the coordinate transformation control section, and FIG. 6 is a diagram illustrating the first embodiment of the present invention. FIG. 7 is a diagram explaining the operation in the case of the second embodiment, FIG. 8 is a diagram explaining the operation in the third embodiment, and FIG. 9 is a diagram explaining the operation in the case of the fourth embodiment. Diagram 1 explaining the operation in the case of the embodiment
FIG. 0 is a flow diagram illustrating the operation of the fifth embodiment. 1: Image memory section, 2: Access control section, 3: Image register section, 4: Operation execution section, 5: Coordinate transformation control section, 6: Reference coordinate register, ゛7: Conversion specification register. Patent applicant: Nippon Telegraph and Telephone Corporation, patent attorney
Mori 1) Kancho L+, 1ko... Former '7/] (I))

Claims (4)

【特許請求の範囲】[Claims] (1)ディジタル画像を格納する画像メモリ部と、画像
メモリを指定アドレスから指定長だけ縦あるいは横ある
いは斜め±45度の1方向を指定して読み書きするアク
セス制御部と、 画像メモリから縦あるいは横あるいは斜め±45度方向
に連続的に読み出しあるいは書き込みする画素濃度デー
タを複数列分保持する画像レジスタ部と、 画像メモリ上の任意の画素あるいは画像レジスタ上の任
意の画素あるいは画像メモリと画像レジスタ上との双方
の任意の画素を指定してそれらの濃度値に対する算術お
よび論理演算を行なう演算実行部と、 拡大/縮小あるいは回転の基準点として画素間の任意の
位置まで指定出来る基準座標レジスタと拡大/縮小率あ
るいは回転角度を指定する変換指定レジスタとの内容に
よって演算対象となる画素のアドレスの計算と濃度値補
間用の係数との計算とを行なう座標変換制御部とを有し
、 基準座標を通る任意角度方向の画像データを、画像メモ
リ上から縦あるいは横あるいは斜め±45度方向の最も
近い読み出し方向を選択して画像レジスタ上に読み出し
た画素濃度値を用いた補間計算により作成し、指定した
拡大/縮小率に処理することを特徴とする画像処理方式
(1) An image memory section that stores digital images, an access control section that reads and writes data from the image memory by a specified length from a specified address by specifying one direction vertically or horizontally or diagonally ±45 degrees; Alternatively, an image register section that holds multiple columns of pixel density data that is read out or written in a diagonal direction of ±45 degrees continuously, and an arbitrary pixel on the image memory, or an arbitrary pixel on the image register, or between the image memory and the image register. and a reference coordinate register that can specify any position between pixels as a reference point for enlarging/reducing or rotating. / A coordinate conversion control unit that calculates the address of the pixel to be calculated and the coefficient for density value interpolation according to the contents of the conversion specification register that specifies the reduction ratio or rotation angle, Create and specify image data in any angular direction through interpolation calculation using the pixel density value read out on the image register by selecting the closest readout direction vertically, horizontally, or diagonally ±45 degrees from the image memory. An image processing method characterized by processing at a certain enlargement/reduction ratio.
(2)特許請求の範囲第1項において、画像メモリから
縦あるいは横あるいは斜め±45度の1方向に連続する
画素の濃度値を画像レジスタに読み出し、座標変換制御
部の制御によって演算実行部で拡大/縮小率に応じた画
素濃度値の補間計算を行なった後に画像メモリ上に書き
戻す操作を隣接列あるいは行に対しても繰り返し適用す
ることによって画像の拡大/縮小を実行することを特徴
とする画像処理方式。
(2) In claim 1, the density values of pixels that are continuous in one direction vertically, horizontally, or diagonally ±45 degrees are read out from the image memory into the image register, and the arithmetic execution unit executes the operations under the control of the coordinate conversion control unit. The image is enlarged/reduced by performing interpolation calculation of pixel density values according to the enlargement/reduction ratio and then repeatedly applying the operation of writing back onto the image memory to adjacent columns or rows. image processing method.
(3)特許請求の範囲第1項において、画像の回転につ
いては45度の整数倍の部分は縦あるいは横あるいは斜
め±45度の読み書き方向の選択だけで代行し、それ以
下の微小回転部分は座標変換制御部の制御によって演算
実行部で微小回転角に応じた画像メモリの各行あるいは
各列の画素位置のシフトと画素濃度値の補間演算とを繰
り返して行なうことにより近似することを特徴とする画
像処理方式。
(3) In claim 1, image rotation is performed only by selecting vertical, horizontal, or diagonal reading and writing directions of +/-45 degrees for parts that are an integral multiple of 45 degrees, and for small rotation parts less than that. Approximation is achieved by repeatedly performing shifting of the pixel position of each row or each column of the image memory according to the minute rotation angle and interpolation of the pixel density value in the calculation execution unit under the control of the coordinate conversion control unit. Image processing method.
(4)特許請求の範囲第3項において、読み書き方向が
45度の奇数倍変化するような回転については、√2倍
の拡大/縮小の補正を行なうことを特徴とする画像処理
方式。
(4) The image processing method according to claim 3, characterized in that for rotations in which the read/write direction changes by an odd number of 45 degrees, an enlargement/reduction correction of √2 times is performed.
JP60159495A 1985-07-19 1985-07-19 Image processing system Pending JPS6220076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60159495A JPS6220076A (en) 1985-07-19 1985-07-19 Image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60159495A JPS6220076A (en) 1985-07-19 1985-07-19 Image processing system

Publications (1)

Publication Number Publication Date
JPS6220076A true JPS6220076A (en) 1987-01-28

Family

ID=15695015

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60159495A Pending JPS6220076A (en) 1985-07-19 1985-07-19 Image processing system

Country Status (1)

Country Link
JP (1) JPS6220076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006285573A (en) * 2005-03-31 2006-10-19 Fuji Photo Film Co Ltd Image processing method, program, and image processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006285573A (en) * 2005-03-31 2006-10-19 Fuji Photo Film Co Ltd Image processing method, program, and image processing system

Similar Documents

Publication Publication Date Title
US4618991A (en) Processing method for the rotation of an image
US5050225A (en) Image processing apparatus and method
JPH02144676A (en) Image rotation system
JP2003517649A (en) Data processing system for logically close data sample such as image data in machine vision system
US5263135A (en) Image processing apparatus
US6741759B2 (en) Method and apparatus for interpolation
JPH1049666A (en) Fragment generator and fragment generating method
JP2634851B2 (en) Image processing device
JPS6220076A (en) Image processing system
JPH0481231B2 (en)
JPS5935270A (en) Picture element density converter
JP3055024B2 (en) Image data transfer device
JP3327961B2 (en) Image processing device
JPS61223986A (en) Picture processing method
JPH05127980A (en) Picture processor
JPH0785266A (en) Image rotating device
JPH03154175A (en) Picture storage device
JPH0520450A (en) Picture processor
JPH0525143B2 (en)
JP2613080B2 (en) Image enlargement apparatus and method
JPH023512B2 (en)
JP2967228B2 (en) Image data transfer device
JP2776957B2 (en) Image scaling method and apparatus
JP2998689B2 (en) How to map image data
JP2002288649A (en) Image rotation processing method and device