JPS61166682A - Graphic conversion system - Google Patents

Graphic conversion system

Info

Publication number
JPS61166682A
JPS61166682A JP60007213A JP721385A JPS61166682A JP S61166682 A JPS61166682 A JP S61166682A JP 60007213 A JP60007213 A JP 60007213A JP 721385 A JP721385 A JP 721385A JP S61166682 A JPS61166682 A JP S61166682A
Authority
JP
Japan
Prior art keywords
scan
equation
calculation
conversion
run
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
JP60007213A
Other languages
Japanese (ja)
Other versions
JP2637395B2 (en
Inventor
Hiroji Osuga
廣二 大須賀
Takeshige Iijima
飯島 健滋
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.)
Hokkaido Electric Power Co Inc
Mitsubishi Electric Corp
Original Assignee
Hokkaido Electric Power Co Inc
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hokkaido Electric Power Co Inc, Mitsubishi Electric Corp filed Critical Hokkaido Electric Power Co Inc
Priority to JP60007213A priority Critical patent/JP2637395B2/en
Publication of JPS61166682A publication Critical patent/JPS61166682A/en
Application granted granted Critical
Publication of JP2637395B2 publication Critical patent/JP2637395B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To improve the arithmetic processing efficiency by calculating previously an arithmetic parameter whose X.Y coordinates are fixed within a scan of a picture scanner by an element-based dividing operation for each scan and using said arithmetic parameter to perform a converting operation. CONSTITUTION:A pattern 2 is shown in a black color on a white drawing 1 to be read, and the scan is carried out along a locus 3. A run length vector 4 shows a specific distance between a start point and an end point during which the black pattern 2 is continuous within a scan. A converting operation is carried out by means of equations I and II where the start and end points of the vector 4 are defined as (x) and (y) respectively together with the coordinate values xt and yt obtained through conversion of the coordinate values (x, y) and constants (a-h). The equation I is calculated only once at first for each change of the scan line; while the equation II is applied to the run length data within the same scan line. Thus the result of calculation is used in common within the same line. This improves the arithmetic processing efficiency with a graphic conversion system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、描かれた図形を光学的に画像ス午ヤナにより
走査しランレングスデータとして定義する場合の図形変
換方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a graphic conversion method when a drawn graphic is optically scanned by an image scanner and defined as run-length data.

〔従来の技術〕[Conventional technology]

最初に画像処理技術において一般的に行われているラン
レングスベクトルについて説明する。第2図は紙面上に
描かれた図形“A″のランレングスベクトルを示す図で
、図において、1は読取対象となる白地の図面、2は図
面1に黒で描かれた図形、3はスキャンの軌跡、4はス
キャン内で図形2の黒がどの始点から終点まで連続して
いるかを示すランレングスベクトル、5はそのランレン
グスベクトル4の始点、6はランレングスベクトルの終
点で、XとYは座標軸である。
First, run-length vectors, which are commonly used in image processing technology, will be explained. Figure 2 is a diagram showing the run-length vector of figure "A" drawn on the paper. In the figure, 1 is a blank drawing to be read, 2 is a figure drawn in black on drawing 1, and 3 is a figure drawn in black on drawing 1. In the scanning locus, 4 is a run-length vector indicating from which start point to the end point the black of figure 2 continues within the scan, 5 is the start point of the run-length vector 4, 6 is the end point of the run-length vector, and X and Y is the coordinate axis.

ここで、スキャンは、X軸上を一定間隔で行い、図面全
体についてランレングスデータを得るものである・ 次に、従来の図形変換方式におけるランレングスベクト
ルデータの演算アルゴリズムについて以下に説明する。
Here, scanning is performed at regular intervals on the X-axis to obtain run-length data for the entire drawing.Next, an algorithm for calculating run-length vector data in the conventional graphic conversion method will be described below.

(11式は図形のゆがみ補正を行う場合に適用される変
換式で、&−hは定数である。
(Equation 11 is a conversion equation applied when correcting graphic distortion, and &-h is a constant.

ここで、(1)式におけるx、yはランレングスベクト
ルの始点又は終点を表わし、X、Y軸上の座標値で、ハ
、ytは、前記座標値(xr y )に対応する変換後
のX、Y軸上の点の座像値である。
Here, x and y in equation (1) represent the start point or end point of the run-length vector, and are coordinate values on the X and Y axes, and c and yt are the converted values corresponding to the coordinate values (xry). This is the locus image value of a point on the X and Y axes.

また、第3図のフローチャートにおけるステップ7は「
スキャン行初期設定」、8は「スキャン行終点」を示す
判定ステップ、9は「スキャン内ランレングス終了」の
判定ステップ、10は前記「(1)式の演算」ステップ
、11は「スキャン行カウントアップ」のステップであ
る。更に、一般の画像処理シスーテム(例2画像情報フ
ァイル装置)の構成例を第4図に示す。
Also, step 7 in the flowchart in Figure 3 is “
8 is a judgment step indicating the ``scan line end point'', 9 is a judgment step for ``end of scan run length'', 10 is the above-mentioned ``calculation of equation (1)'' step, 11 is the ``scan line count'' This is the "up" step. Furthermore, an example of the configuration of a general image processing system (Example 2 image information file device) is shown in FIG.

すなわち、(A)は画像入出力装置で(B)の画像メモ
リ装置と共にイメージバス(C)を介してイメージプロ
セシングデバイス(6)に接続されている。(5)は登
録検索処理デバイスでデータプロセッサ、CRT。
That is, (A) is an image input/output device which is connected to an image processing device (6) via an image bus (C) together with an image memory device (B). (5) is a registered search processing device, which is a data processor and a CRT.

キーボード等より構成されデータバス(ト)を介してフ
ロッピディスクや磁気ディスク等のインデックス管理デ
バイス(G)に接続され所定の演算を行なうものである
It consists of a keyboard and the like and is connected to an index management device (G) such as a floppy disk or magnetic disk via a data bus (G) to perform predetermined calculations.

次に第3図の動作について説明する。まずステップ7の
「スキャン行初期設定」で対象とするスキャン行の初期
設定を実行した後に、ステップ8の「″′″″7行終了
jolJ定1対象とするxr−y  、□パン行がない
場合にはその動作を終了し、また、対象とすべきス午ヤ
ン行が存在する場合にはステップ9に移行する。そして
ステップ9の「スキャン内ランレングス終了」の判定で
、対象とするスキャン行内の変換演算を実施していない
ランレングスデータが存在していない場合にはステップ
11の「スキャン行カウントアップ」に移り、存在する
場合にはステップ10の「(1)式の演算」に移る。
Next, the operation shown in FIG. 3 will be explained. First, perform the initial settings for the target scan line in step 7, ``Scan line initialization'', and then step 8, ``''''7 line end jolJ, 1 target xr-y, □There is no pan line. If so, the operation is ended, and if there is a line to be targeted, the process moves to step 9. If it is determined in step 9 that the run length within a scan is completed, and there is no run length data that has not been subjected to the conversion operation within the target scan line, the process moves to step 11, ``count up scan lines''. , exists, the process moves to step 10, ``calculation of equation (1)''.

そして、前記ステップ10では「(1)式の演算」を、
ランレングスベクトルの始点と終点の座標値について行
い、対応するランレングスベクトルの座標値を得る。ス
テップ10の「(1)式の演算」後はステップ9に再度
戻る。ステップ11の「スキャン行カウントアップ」で
は演算を実施したスキャン行をカウントアツプし、その
後ステップ8の「スキャン行終了」に移る。そして、ス
テップ10で得られた変換後のベクトルデータに基いて
線画を描けば変換された図形を描くことができる。
Then, in step 10, the "calculation of equation (1)" is performed as follows:
This is performed for the coordinate values of the start point and end point of the run-length vector to obtain the coordinate values of the corresponding run-length vector. After "calculating equation (1)" in step 10, the process returns to step 9 again. In step 11 "scan line count up", the scan line on which the calculation has been performed is counted up, and then the process moves to step 8 "scan line end". Then, by drawing a line drawing based on the converted vector data obtained in step 10, the converted figure can be drawn.

すなわち、全ランレングスベクトルの始点・終点の座標
値X、Yに対して111式の演算を実行し変換図形を得
るようにしていた。つまり、従来の図形変換方式では例
えば、認スキャン数が1000行で、−スキャン内にラ
ンレングスベクトルが平均10本ある場合には、図面全
体では 加算、10ベクトル/行xiooo行X12回/ベクト
ル=120000回乗算、ioベクトル/行X1000
行×16回/ベクトル=160000回となる。ただし
、1ベクトル当りの演算回数は、ベクトルの始点と終点
について演算を行うので、(1)式を2回演算した回数
となる。
That is, the converted figure is obtained by performing the calculation of equation 111 on the coordinate values X and Y of the starting point and ending point of all run length vectors. In other words, in the conventional graphic conversion method, for example, if the number of recognized scans is 1000 lines, and there are an average of 10 run-length vectors in the -scan, the entire drawing is added, 10 vectors/row xiooo row x 12 times/vector = 120000 multiplications, io vector/row x1000
Row×16 times/vector=160,000 times. However, the number of calculations per vector is the number of times equation (1) is calculated twice, since calculations are performed on the start and end points of the vector.

〔発明が解決しようとする問題点] 上記のような従来の図形変換方式では、同一ス牟ヤン内
のランレングスデータの座標値X(又はy)は常に同一
でめるという性質を採用せずに、全ランレッグスペクト
ルについてその始点・終点座標値をそのまま前記(1)
式に当てはめ演算するようにしていた為、演算式が大変
複雑となり加算・乗算の回数が多く演算に時間がかかる
という問題点がめった。
[Problems to be Solved by the Invention] The conventional graphic conversion method as described above does not adopt the property that the coordinate values X (or y) of run length data within the same line are always the same. Then, the coordinate values of the start point and end point of all run leg spectra are directly set as described in (1) above.
Since calculations were performed by fitting the equations, the calculation equations became very complex, requiring a large number of additions and multiplications, and the calculations took a long time.

本発明はかかる問題点を解決する為になされたもので、
同一スキャン内のランレングスデータの座標値X(又は
y)は同一であることから、−スキャン内のデータに対
して共電に適用できる部分については一スキャン毎に予
め要素別分割演算によって計算し、同一スキャン内では
、その結果を共通的に用いることによって、演算の効率
化を計るようにした図形変換方式を提供することを目的
とする。
The present invention was made to solve these problems,
Since the coordinate values X (or y) of the run length data in the same scan are the same, the portion that can be applied to the co-current for the data in the scan is calculated in advance by element-by-element division calculation for each scan. , an object of the present invention is to provide a graphic conversion method that improves the efficiency of calculations by commonly using the results within the same scan.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る図形変換方式は入力デバイスである画像
スキャナによシ紙面上の図形をスキャンニングし、その
操作によって得られた図形のランレングスデータをイメ
ージプロセシングデバイス等によって変換演算する場合
に、−スキャン内ではX−Y座標値が不変でろるパラメ
ータをスキャン毎に予め演算式によって求めておき、同
一スキャン内のランレングスデータに対しては要素別分
割演算により既に求めた一定値パラメータを用いて演算
を実行するようにしている。
In the figure conversion method according to the present invention, when a figure on a sheet of paper is scanned by an image scanner serving as an input device, and run length data of the figure obtained by the operation is converted by an image processing device or the like, - Parameters whose X-Y coordinate values remain unchanged within a scan are determined in advance using an arithmetic formula for each scan, and for run length data within the same scan, constant value parameters already determined by element-by-element division calculations are used. I am trying to perform calculations.

〔作 用〕[For production]

この発明においては図形変換方式でのランレングスベク
トルデータ演算式に変形を施し、−ス午ヤン内のランレ
ングスデータとして共通な座標値は変換式によって予め
求めておき繰シ返えしパラメータとして取り込む図形変
換方式の演算アルゴリズムを採用し高速図形変換処理を
実現している。
In this invention, the run-length vector data calculation formula using the figure conversion method is modified, and common coordinate values for run-length data in the -Sumi Yang are determined in advance by the conversion formula and repeatedly taken in as parameters. It uses a calculation algorithm based on the graphic conversion method to achieve high-speed graphic conversion processing.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示すフローチャートで、図
中第3図と同一の機能は同一の符号をもって図示した。
FIG. 1 is a flowchart showing an embodiment of the present invention, in which the same functions as in FIG. 3 are designated by the same reference numerals.

図において12は後述の「(2)式の演算」を行うステ
ップ、13は「(3)式の演算」を行うステップである
。また、演算式[11式は次の(2)式と(31式の如
く要素別分割演算を行うことにする。
In the figure, 12 is a step for performing "calculation of equation (2)", which will be described later, and 13 is a step for performing "calculation of equation (3)". In addition, the calculation formula [Equation 11] performs element-wise division calculations as shown in the following Equation (2) and Equation (31).

すなわち、 上記(2)式はスキャン行が変わる毎に一度だけ最  
 1′初に計算し、(3)式は同一スキャン行内のラン
レングスデータに対して適用する。ただし、ここでは同
一スキャン内ではXが等しい場合を示している。
In other words, Equation (2) above is calculated only once every time the scan line changes.
1' is calculated first, and equation (3) is applied to run length data within the same scan line. However, here, a case is shown in which X is equal within the same scan.

次に動作について説明する。ステップTの「スキャン行
初期設定」において対象とするスキャン行を初期設定す
る。次にステップ8の「スキャン行終了」の判定により
、対象とすべきスキャン行が存在しない場合は動作を終
了し、存在する場合にはステップ12の「(2)式の演
算」に移る。ステ 、ツブ12では、対象スキャン行に
対応する座標値x1tもとK 121式の演算を実行す
る。前記の演算が終了すると次はステップ9に移る。ス
テップ9は「スキャン内う/レングス終了」の判定で、
対象スキャン行内の変換演算を行い、ランレングスデー
タが存在しない場合はステップ11の「ス牛ヤン行カウ
ントアツプ」に移り、存在する場合にはステップ13の
「(3)式の演算」に移る。ステップ13ではランレン
グスベクトル始点・終点の座標値y’にもとに(3)式
の演算を行う。ステップ13の演算が終るとステップ9
に戻る。ステップ11ではスキャン行をカウントアツプ
し、ステップ8に戻る。
Next, the operation will be explained. In step T "scan line initialization", the target scan line is initialized. Next, in step 8, it is determined that the scan line has ended, and if there is no scan line to be targeted, the operation is ended, and if there is, the process moves to step 12, which is ``calculation of equation (2)''. In step 12, the coordinate value x1t corresponding to the target scan line is calculated based on the K121 formula. When the above calculation is completed, the process moves to step 9. Step 9 is the determination of “inside scan/end of length”.
Conversion calculations are performed within the target scan line, and if run length data does not exist, the process moves to step 11, ``counting up scanned lines'', and if it exists, the process moves to step 13, ``calculating equation (3)''. In step 13, the calculation of equation (3) is performed based on the coordinate values y' of the start and end points of the run-length vector. When the calculation in step 13 is completed, step 9
Return to In step 11, the scan line is counted up, and the process returns to step 8.

ステップ13で得られた変換後のベクトルデータに基い
て線画を描けば変換された図形と描くことができる。
If a line drawing is drawn based on the converted vector data obtained in step 13, it can be drawn as a converted figure.

すなわち、スキャン行が変わる毎に(2)式の演算を1
度だけ行い、同一スキャン行内では(3)式の演算を行
っている。
In other words, the calculation of equation (2) is performed by 1 each time the scan line changes.
The calculation of equation (3) is performed within the same scan line.

このような、図形変換方式を採用すると例えば総スキャ
ン数1000行で、−スキャン内にランレングスベクト
ルが平均10本ある場合、図面全体では (2)式     (3)式     = 44000
回(2)式     (3)式    = 44nnQ
回となり、従来例と比較して約3割の演算回数ですむこ
とになる。ただし、(3)式の1ベクトル当りの演算回
数は、ベクトルの始点と終点について演算を行うので、
(3)式を2回演算した回数となっている。
If such a figure conversion method is adopted, for example, if the total number of scans is 1000 lines and there are an average of 10 run-length vectors within the -scan, then the entire drawing will be expressed as Equation (2) (3) = 44000
Equation (2) Equation (3) = 44nnQ
This means that the number of calculations is approximately 30% that of the conventional example. However, the number of operations per vector in equation (3) is calculated for the start and end points of the vector, so
This is the number of times that equation (3) was calculated twice.

なお、上記の実施例では、変換式として(1)式を例に
とって説明したがスキャン行の関数として決定されるパ
ラメータがアリ、これを同一スキャン内のランレングス
データに共通に筐える変換演算であれば上記実施例と同
様の効果を奏する。
In addition, in the above embodiment, the explanation was given using equation (1) as an example of the conversion equation, but the parameter is determined as a function of the scan line, and this can be used in the conversion calculation that commonly accommodates run length data in the same scan. If so, the same effects as in the above embodiment can be achieved.

〔発明の効果〕〔Effect of the invention〕

この発明は以上説明したように、−スキャン内のランレ
ングスデータに対して共通に適用できる座標値の変換演
算部分については要素別分割演算により−スキャン毎に
予め計算し、同一スキャン内では、その結果を共通的に
用い演算するようにしたので演算の無駄が省は処理時間
が短縮される等の効果がめる。
As explained above, in this invention, - the coordinate value conversion calculation part that can be commonly applied to run length data within a scan is calculated in advance for each scan by element-specific division calculations, and within the same scan, Since the results are commonly used for calculations, it is possible to reduce wasteful calculations and reduce processing time.

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

第1図は本発明の一実施例を示す図形変換方式のフロー
チャート、第2図はランレングスベクトルの一般説明図
、第3図は従来の図形変換方式のフローチャート、第4
図は画像処理システム図であるO 図において、12は(2)式の演算、13は(3)式の
演算、cA)は画像入出力装置、(B)は画像メモリ装
置、(D)はイメージプロセシングデバイス、である。
FIG. 1 is a flowchart of a graphic conversion method showing an embodiment of the present invention, FIG. 2 is a general explanatory diagram of a run-length vector, FIG. 3 is a flowchart of a conventional graphic conversion method, and FIG.
The figure is an image processing system diagram. In the figure, 12 is the calculation of equation (2), 13 is the calculation of equation (3), cA) is the image input/output device, (B) is the image memory device, and (D) is the It is an image processing device.

Claims (2)

【特許請求の範囲】[Claims] (1)画像スキャナによつて図形をスキャンニングし、
そのスキヤンニングによつて得た図形のランレングスデ
ータを画像メモリデバイスに取込み、イメージセンシン
グデバイスによつて変換演算式を実行し前記演算の結果
を出力デバイスに出力する図形変換方式において、前記
画像スキャナの一スキヤン内ではX・Y座標が不変であ
る演算パラメータはスキャン毎に予め要素別分割演算に
よつて算出しておき、同一スキャン内の前記予め求めた
要素別分割演算の一定値データを繰返えし取込み変換演
算を実行するようにしたことを特徴とする図形変換方式
(1) Scan the figure with an image scanner,
In the figure conversion method, run length data of a figure obtained by the scanning is taken into an image memory device, a conversion calculation formula is executed by an image sensing device, and the result of the calculation is outputted to an output device. Calculation parameters whose X and Y coordinates remain unchanged within one scan are calculated in advance by element-by-element division calculations for each scan, and constant value data of the element-by-element division calculations determined in advance within the same scan are repeated. A figure conversion method characterized by executing a return import conversion operation.
(2)前記変換演算式のa〜hを定数とし、x、yをラ
ンレングスベクトルの始点又は終点、x_t、y_tを
座標値(x、y)の変換後座標値としたとき、要素別分
割演算式を {P=ax+d Q=b+cx R=ex+h S=f+gx}・・・・・・(2)式 {x_t=P+Qy y_t=R+Sy}・・・・・・(3)式 としたことを特徴とする特許請求の範囲第1項記載の図
形変換方式。
(2) When a to h in the conversion equation are constants, x and y are the start point or end point of the run-length vector, and x_t and y_t are the coordinate values after the conversion of the coordinate values (x, y), division by element The feature is that the calculation formula is {P=ax+d Q=b+cx R=ex+h S=f+gx}...(2) equation {x_t=P+Qy y_t=R+Sy}...(3) equation A graphic conversion method according to claim 1.
JP60007213A 1985-01-18 1985-01-18 Figure conversion method Expired - Lifetime JP2637395B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60007213A JP2637395B2 (en) 1985-01-18 1985-01-18 Figure conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60007213A JP2637395B2 (en) 1985-01-18 1985-01-18 Figure conversion method

Publications (2)

Publication Number Publication Date
JPS61166682A true JPS61166682A (en) 1986-07-28
JP2637395B2 JP2637395B2 (en) 1997-08-06

Family

ID=11659718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60007213A Expired - Lifetime JP2637395B2 (en) 1985-01-18 1985-01-18 Figure conversion method

Country Status (1)

Country Link
JP (1) JP2637395B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5789171A (en) * 1980-11-25 1982-06-03 Mitsubishi Electric Corp Picture processor
JPS60211543A (en) * 1984-04-05 1985-10-23 Nec Corp Coordinate converting system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5789171A (en) * 1980-11-25 1982-06-03 Mitsubishi Electric Corp Picture processor
JPS60211543A (en) * 1984-04-05 1985-10-23 Nec Corp Coordinate converting system

Also Published As

Publication number Publication date
JP2637395B2 (en) 1997-08-06

Similar Documents

Publication Publication Date Title
JP3574170B2 (en) Distributed image processing device
JPH04290186A (en) Image processing method
JPS61166682A (en) Graphic conversion system
JPH03121571A (en) Color picture processor
JPH0634237B2 (en) Image clipping method
JP3000774B2 (en) Image processing method
JP2701056B2 (en) Secondary representation method for three-dimensional objects
JP2578965B2 (en) Graphic processing unit
JPH0668258A (en) Graphic digitizing device
JPH02199579A (en) Method of forming animation
JPH04306777A (en) Fingerprint characteristic correction system
JPH0520404A (en) Three-dimensional graphic processing system
JP3037800B2 (en) Attribute assignment method for image data
JP2861106B2 (en) Shading image generation method and apparatus
JPH04195689A (en) Pattern matching device
CN117911444A (en) Edge processing-based matting method and system
JPH02260078A (en) Automatic picture noise eliminating device
JPH0357087A (en) Polygon painting-out device
JPH052648A (en) Picture data processor
JPS63241625A (en) Line drawing input device
JPS63223988A (en) Character area setting system
JPH04307680A (en) Image processor
JPH06103378A (en) Image processor
JPH08262974A (en) House recognizing method in map input system
JPH10198810A (en) Image data generator

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term