Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2789604B2 - Multi-area input device - Google Patents
[go: Go Back, main page]

JP2789604B2 - Multi-area input device - Google Patents

Multi-area input device

Info

Publication number
JP2789604B2
JP2789604B2 JP16046788A JP16046788A JP2789604B2 JP 2789604 B2 JP2789604 B2 JP 2789604B2 JP 16046788 A JP16046788 A JP 16046788A JP 16046788 A JP16046788 A JP 16046788A JP 2789604 B2 JP2789604 B2 JP 2789604B2
Authority
JP
Japan
Prior art keywords
area
coordinate
input
region
input device
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
JP16046788A
Other languages
Japanese (ja)
Other versions
JPH0210421A (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.)
Pentel Co Ltd
Original Assignee
Pentel 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 Pentel Co Ltd filed Critical Pentel Co Ltd
Priority to JP16046788A priority Critical patent/JP2789604B2/en
Publication of JPH0210421A publication Critical patent/JPH0210421A/en
Application granted granted Critical
Publication of JP2789604B2 publication Critical patent/JP2789604B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は座標入力装置、特に画像データの処理領域を
指定するための座標入力装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coordinate input device, and more particularly to a coordinate input device for designating a processing area of image data.

「従来の技術」 近年、デジタル画像処理技術の進展によって様々な分
野で画像処理技術が応用されるようになった。とりわ
け、印刷装置の分野においてはデジタル画像処理の応用
により、領域を指定した画像処理が可能となったため、
従来は原稿の段階で人手で行なっていた作業が大幅に自
動化されるに到っている。
[Prior Art] In recent years, image processing techniques have been applied in various fields due to the progress of digital image processing techniques. In particular, in the field of printing devices, application of digital image processing has enabled image processing with a designated area,
Conventionally, the work manually performed at the stage of manuscript has been greatly automated.

「発明が解決しようとする問題点」 領域指定のための入力装置に対する要求として、従来
の座標入力装置が単に座標値のみを出力するものであっ
たため、入力された座標値に基づく図形処理をポスト
(本体)側で行なう必要があった。
"Problems to be Solved by the Invention" As a request for an input device for specifying an area, a conventional coordinate input device simply outputs only coordinate values. This had to be done on the (body) side.

「問題が解決するための手段」 そこで本発明は叙上の問題点に鑑みなされたもので、
入力すべき領域の入力座標点を入力する座標入力装置
と、該入力装置で入力された領域座標点で形成された領
域の領域モードを選択指定する領域モードスイッチと、
前記座標入力装置で入力された領域座標点の座標値から
領域コードデータを生成し出力する領域コード出力装置
とからなる多重領域入力装置を提案するものである。
"Means for solving the problem" Therefore, the present invention has been made in view of the above problems,
A coordinate input device for inputting an input coordinate point of an area to be input, an area mode switch for selecting and specifying an area mode of an area formed by the area coordinate points input by the input device,
The present invention proposes a multi-region input device including a region code output device that generates and outputs region code data from coordinate values of region coordinate points input by the coordinate input device.

「作用」 本発明の多重領域入力装置では、領域コードデータの
生成、出力を入力装置側で処理し、処理結果をホスト側
に出力するものである。
[Operation] In the multi-region input device of the present invention, the generation and output of the region code data are processed on the input device side, and the processing result is output to the host side.

「実施例」 以下本発明の詳細を図示実施例に基づいて説明する。
第1図はブロック構成を示す。デジタイザ1は信号検出
器2の先端部分を当接されることにより座標信号を入力
するもので、(例えば特公昭53-37163、同55-31943参
照。)図面上右側には領域モードスイッチ部分3が配置
されている。デジタイザ1の任意の点を信号検出器2を
当接して入力すべき領域の輪郭点の座標値、及び領域モ
ードスイッチ3の何れかを指定することによって領域モ
ードの値を領域座標出力装置4に出力する。ここで、領
域とはデジタイザ1の水平、垂直方向に平行な直線で構
成される自分自身と交わらない多角形を輪郭とする閉ル
ープであり、領域モードとは入力された領域に対する処
理の指定を表わすコードとする。
"Examples" Hereinafter, details of the present invention will be described based on illustrated examples.
FIG. 1 shows a block configuration. The digitizer 1 inputs a coordinate signal by abutting a tip portion of the signal detector 2 (for example, see Japanese Patent Publication Nos. 53-37163 and 55-31943). Is arranged. An arbitrary point of the digitizer 1 is brought into contact with the signal detector 2 to specify the coordinate value of the contour point of the area to be input and the value of the area mode to the area coordinate output device 4 by specifying one of the area mode switches 3. Output. Here, the region is a closed loop formed by straight lines parallel to the horizontal and vertical directions of the digitizer 1 and having a contour that does not intersect with itself, and the region mode indicates designation of processing for the input region. Code.

領域座標出力装置4は、デジタイザ1から入力された
領域の輪郭点座標値と領域モード値から領域を生成し、
領域座標フレームデータを領域コード出力装置5に出力
する。ここで、領域座標フレームデータとは領域モード
及び領域輪郭点座標値の組みからなる1つの領域フレー
ム を表わすデータを言う。又、領域に対する制約条件
のチェック等は領域座標出力装置5が行なう。
The area coordinate output device 4 generates an area from the contour point coordinate values and the area mode value of the area input from the digitizer 1,
The area coordinate frame data is output to the area code output device 5. Here, the area coordinate frame data refers to data representing one area frame composed of a set of an area mode and area contour point coordinate values. In addition, the area coordinate output device 5 performs checking of the constraint condition for the area and the like.

領域コード出力装置5は、領域座標出力装置4から入
力された複数の領域座標フレームデータから領域モード
の優先順位に基づいて領域分割を行ない、領域コードデ
ータをホスト6に出力する。ここで、領域コードデータ
とは画像フレームを構成する画像ラインデータに、画像
単位で1対1に対応した各領域の始まりと終り、及び無
変化点を表わすコード列を言う。又、このとき領域の重
なりは無く、元の領域入力時に領域の重なりがあった場
合は優先順位の高い領域が残されるものとする。
The region code output device 5 performs region division based on a plurality of region coordinate frame data input from the region coordinate output device 4 based on the priority of the region mode, and outputs region code data to the host 6. Here, the area code data refers to a code string representing the start and end of each area corresponding to the image line data constituting the image frame on a one-to-one basis, and a no-change point. At this time, there is no overlap of the areas, and if there is an overlap of the areas at the time of input of the original area, an area having a higher priority is left.

次に各部の動作について説明する。デジタイザ1は、
操作者が信号検出器2で入力した座標値及び領域モード
を、そのままコードとして領域座標出力装置4に出力す
る。領域座標出力装置4は、次の領域モードコードが入
力されるまでの、デジタイザ1から入力された複数の座
標値からなる座標値列を1つの領域フレームと解釈して
領域座標フレームデータを生成する。このとき、領域の
形状に対する制約を満たすように引き続くデジタイザ1
の2点の座標値がなす部分が水平線或いは垂直線である
かを線分の傾きによって判定して座標点の丸め処理を行
なう。即ち、線分の傾きが45度より大きければ垂直線と
なるように、次のデジタイザ1の入力座標値を丸め、そ
うでない場合は水平線となるように、次のデジタイザ1
の入力座標値を丸める。更に、既に入力された線分に新
たに入力された線分が交わった場合は入力エラーを表示
して再入力を促す。
Next, the operation of each unit will be described. Digitizer 1
The coordinate values and the area mode input by the operator with the signal detector 2 are output as they are to the area coordinate output device 4 as codes. The area coordinate output device 4 generates area coordinate frame data by interpreting a coordinate value sequence consisting of a plurality of coordinate values input from the digitizer 1 as one area frame until the next area mode code is input. . At this time, the subsequent digitizer 1 satisfies the constraint on the shape of the area.
Whether the portion formed by the two coordinate values is a horizontal line or a vertical line is determined based on the inclination of the line segment, and the coordinate point is rounded. That is, if the inclination of the line segment is larger than 45 degrees, the input coordinate value of the next digitizer 1 is rounded so as to be a vertical line, and if not, the next digitizer 1 is formed so as to be a horizontal line.
Round the input coordinate value of. Further, when a newly input line segment intersects with an already input line segment, an input error is displayed to prompt re-input.

領域コード出力装置5は、操作者が処理開始を入力す
る迄に入力された領域座標フレームデータの組を1つの
多重領域指定と解釈して領域コードデータを生成する。
The area code output device 5 generates area code data by interpreting a set of area coordinate frame data input until the operator inputs processing start as one multiplex area specification.

始めに、前処理として多角形重なりチェックを行な
う。第2図に例示する領域の閉ループで説明すると、座
標値を格納するメモリーとしてY方向の最大値分のバイ
ト数の配列を準備する。この配列を0クリアし、信号検
出器2で指示したデジタイザ1の変化点のYの座標値の
ところにフラグとして1をセットしていく。最終の変化
点のYの座標値の次の点、即ち1をプラスしたYの座標
値を追加登録する。このとき、第2図に示した変化点で
●のところはそのままデータ、○のところは線分データ
でY方向に平行な線分の場合はYの座標値を1つずら
す。これは線分の始めと終りを識別するための手段であ
る。
First, a polygon overlap check is performed as preprocessing. Explaining the closed loop of the area illustrated in FIG. 2, an array of the maximum number of bytes in the Y direction is prepared as a memory for storing coordinate values. This array is cleared to 0, and 1 is set as a flag at the Y coordinate value of the changing point of the digitizer 1 designated by the signal detector 2. A point next to the Y coordinate value of the final change point, that is, the Y coordinate value obtained by adding 1 is additionally registered. At this time, in the change points shown in FIG. 2, the black circles indicate the data as they are, and the circles indicate the line segment data. This is a means for identifying the beginning and end of a line segment.

又、変化点における線分の変化する方向を認識するも
のとして、変化点における線分の進入方向と出力方向を
0〜3の4方向の数字で表わし、次式 (進入方向の数値×4)+出力方向の数値=展開方向 ……(1) を適用して、それぞれ右回りの場合は3,4,9,14となる。
In order to recognize the direction in which the line segment changes at the change point, the approach direction and output direction of the line segment at the change point are represented by numbers in four directions from 0 to 3, and the following equation (numerical value of approach direction × 4) + Numerical value of output direction = development direction ... (1) Applying clockwise, 3,4,9,14 when clockwise.

その他の方向につても(1)式を適用して展開方向と変
化点パターン値として求めることができる。
The expression (1) can be applied to the other directions to obtain the development direction and the change point pattern value.

第4図は、実際の出力例として表わしたもので、と
の2つの多角形領域が重なった場合、図面では上から
下に向かって変曲点のYの座標値を順次入力し、1番目
のY座標値と2番目のY座標値との間をAとし、続けて
第2と第3のY座標値の間をB、以下順次C,D,F,Fと名
付けた。この状態で、各区間A〜F毎にとの多角形
領域の出力ラインを第4図下部に示した。このことか
ら、Aの区間ではの多角形領域のX方向1〜2を出力
し、Bの区間ではの多角形領域のX方向1〜2との
多角形領域のX方向5〜7とを出力し、以下図示した出
力ラインを出力することになる。
FIG. 4 shows an example of an actual output. When two polygonal areas overlap with each other, the coordinate values of the inflection point Y are sequentially input from top to bottom in the drawing, and the first Is defined as A between the Y coordinate value and the second Y coordinate value, followed by B between the second and third Y coordinate values, and sequentially named C, D, F, and F. In this state, the output lines of the polygonal area for each of the sections A to F are shown in the lower part of FIG. Therefore, in the section A, the X direction 1-2 of the polygon area is output, and in the section B, the X direction 1-2 of the polygon area and the X direction 5-7 of the polygon area are output. Then, the output line shown below is output.

次に、領域コードデータは連続した各線分の方向合わ
せにより、変曲点のY座標値のずらしデータを作り、X
方向に平行な線分は消去する。更に、Y座標値変化区間
におけるX変化点データを、Y座標値変化区間に入る線
を総て比較して探し、そのX座標値を変化点データとし
て記録する。これを各閉ループデータ毎に行ない、重ね
あわせてそのラインの変化点データ列を作成する。この
時最終送出アドレスと変化点パターン値を格納する。
Next, in the area code data, the displacement data of the Y coordinate value of the inflection point is created by adjusting the direction of each continuous line segment.
Line segments parallel to the direction are deleted. Further, X change point data in the Y coordinate value change section is searched for by comparing all lines entering the Y coordinate value change section, and the X coordinate value is recorded as change point data. This process is performed for each closed loop data, and a change point data sequence of the line is created by superimposition. At this time, the final transmission address and the change point pattern value are stored.

本実施列では領域に制約を設けたが、任意の多角形に
拡張することも可能であり、又、領域モードの重なりに
ついても画像処理で対応できれば任意の入れ子構造とす
ることもできる。尚、本実施例ではデジタイザ、領域出
力装備及び領域コード出力装置をそれぞれ分離した構成
としたが、1個のCPUによる多重処理とすることも可能
である。更に、領域モードを領域の間の論理演算とする
ことによって、領域を点の集合とした場合の和や差をと
ることも可能であり、ホスト(本体)側での処理を著し
く軽減することができる。
In the present embodiment, the area is restricted, but the area can be expanded to an arbitrary polygon, and an arbitrary nested structure can be used if the overlapping of the area modes can be handled by image processing. In this embodiment, the digitizer, the area output device, and the area code output device are separated from each other. However, multiplex processing by one CPU can be performed. Further, by making the region mode a logical operation between the regions, it is possible to take the sum or difference when the region is a set of points, and the processing on the host (main body) side can be significantly reduced. it can.

「発明の効果」 以上説明したように、本発明によれば従来、座標値の
みしか出力することができなかった座標入力装置(デジ
タイザ)に領域コード生成機能を付加することによっ
て、ホスト(本体)側での処理の軽減と並行処理による
スループットの向上ができるものである。
[Effects of the Invention] As described above, according to the present invention, by adding an area code generation function to a coordinate input device (digitizer) that has conventionally been able to output only coordinate values, the host (main body) This can reduce the processing on the side and improve the throughput by parallel processing.

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

図面は本発明の一実施例を示すもので、第1図はブロッ
ク構成図、第2図は領域の閉ループ、第3図は方向展開
図、第4図は出力状態図である。 1……デジタイザ、2……信号検出器、3……領域モー
ドスイッチ、4……領域座標出力装置、5……領域コー
ド出力装置
The drawings show an embodiment of the present invention. FIG. 1 is a block diagram, FIG. 2 is a closed loop of a region, FIG. 3 is a directional development diagram, and FIG. 4 is an output state diagram. 1 digitizer, 2 signal detector, 3 area switch, 4 area coordinate output device, 5 area code output device

フロントページの続き (56)参考文献 特開 昭58−149579(JP,A) 特開 昭61−276012(JP,A) 特開 昭63−124120(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 3/03 - 3/037Continuation of the front page (56) References JP-A-58-149579 (JP, A) JP-A-61-276012 (JP, A) JP-A-63-124120 (JP, A) (58) Fields investigated (Int) .Cl. 6 , DB name) G06F 3/03-3/037

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力すべき領域の入力座標点を入力する座
標入力装置と、該入力装置で入力された領域座標点で形
成された領域の領域モードを選択指定する領域モードス
イッチと、前記座標入力装置で入力された領域座標点の
座標値から領域コードデータを生成し出力する領域コー
ド出力装置とからなり、前記領域コード出力装置は複数
の領域の輪郭点座標値と領域モード値からなる領域座標
フレームデータから、領域コードに基いて領域分割を行
ない領域コードデータを出力することを特徴とする多重
領域入力装置。
A coordinate input device for inputting an input coordinate point of an area to be input; an area mode switch for selecting and specifying an area mode of an area formed by the area coordinate points input by the input device; An area code output device that generates and outputs area code data from the coordinate values of the area coordinate points input by the input device, wherein the area code output apparatus includes an area that includes contour point coordinate values and area mode values of a plurality of areas. A multi-region input device for performing region division based on a region code from coordinate frame data and outputting region code data.
JP16046788A 1988-06-28 1988-06-28 Multi-area input device Expired - Fee Related JP2789604B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16046788A JP2789604B2 (en) 1988-06-28 1988-06-28 Multi-area input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16046788A JP2789604B2 (en) 1988-06-28 1988-06-28 Multi-area input device

Publications (2)

Publication Number Publication Date
JPH0210421A JPH0210421A (en) 1990-01-16
JP2789604B2 true JP2789604B2 (en) 1998-08-20

Family

ID=15715578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16046788A Expired - Fee Related JP2789604B2 (en) 1988-06-28 1988-06-28 Multi-area input device

Country Status (1)

Country Link
JP (1) JP2789604B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58149579A (en) * 1982-02-27 1983-09-05 Fanuc Ltd Setting system of information input area
JPS61276012A (en) * 1985-05-31 1986-12-06 Canon Inc information input device
JPS63124120A (en) * 1986-11-13 1988-05-27 Nec Corp Input/output device

Also Published As

Publication number Publication date
JPH0210421A (en) 1990-01-16

Similar Documents

Publication Publication Date Title
EP0905655B1 (en) Map editing apparatus enabling simplified editing through provision of user-selectable automatic editing functions
EP0535894A2 (en) Apparatus and method for transforming a graphic pattern
JP3332476B2 (en) Graphic correction method and information processing apparatus for implementing the method
JPH0962850A (en) Axial symmetry graphic shaping device and method for generating axial symmetry graphic for entirety of arbitrary number of symmetry axes
JP2789604B2 (en) Multi-area input device
US5302967A (en) Figure processing apparatus and method aided by display with ruled lines
JPH05143706A (en) Graphic correction method and device
JPH0512398A (en) Image editing method and apparatus
JP2800544B2 (en) Image data centering processing method
JP3353212B2 (en) Leader automatic creation method and leader automatic creation system
JPH08202856A (en) Image processing method
JP2879831B2 (en) Graphic element extraction method
US20010055033A1 (en) Reduction processing method and computer readable storage medium having program stored thereon for causing computer to execute the method
JP2642167B2 (en) How to create numerical control data
JP2572441B2 (en) Form-specific figure creation device
JPH031215A (en) Multiplex area input device
JP3536894B2 (en) Graphic processing unit
JPS62256103A (en) How to create a machine program for numerical control
JPH0786935B2 (en) Contour data compression method
JP2575636B2 (en) Graphic display device
JPH1031760A (en) Graphic processing unit
JPH0546690A (en) Image data correction method
JPH05143656A (en) Method and device for storing graphic data
JP3103919B2 (en) Animation creation method and apparatus
JP2616426B2 (en) String display device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees