JPH0748235B2 - Figure input method in image allocator - Google Patents
Figure input method in image allocatorInfo
- Publication number
- JPH0748235B2 JPH0748235B2 JP24611989A JP24611989A JPH0748235B2 JP H0748235 B2 JPH0748235 B2 JP H0748235B2 JP 24611989 A JP24611989 A JP 24611989A JP 24611989 A JP24611989 A JP 24611989A JP H0748235 B2 JPH0748235 B2 JP H0748235B2
- Authority
- JP
- Japan
- Prior art keywords
- line segment
- point
- line
- image
- tracking
- 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 - Lifetime
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
- Image Analysis (AREA)
- Preparing Plates And Mask In Photomechanical Process (AREA)
- Processing Or Creating Images (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像割付装置における図形入力方法、特に、コ
ンピュータを利用した画像割付装置において、割付作業
に用いる単位図形を入力する方法に関する。Description: TECHNICAL FIELD The present invention relates to a graphic input method in an image allocating device, and more particularly to a method of inputting a unit graphic to be used in an allocating work in an image allocating device using a computer.
近年、コンピュータの普及とともに、印刷物に用いる画
像の割付作業をコンピュータによって行うシステムが利
用されている。このような画像割付装置では、スキャナ
装置によって写真などの原稿から画像がデジタルデータ
として取り込まれ、作図機によって割付作業に用いる図
形がデジタルデータとして取り込まれる。通常は、この
取り込んだ図形によって取り込んだ画像をトリミング
し、図形を所定の位置に割り付けることによって、トリ
ミングされた画像の割り付けを行うことになる。このよ
うな割付作業は、オペレータがディスプレイの表示画面
を見ながらコンピュータとの対話形式で進めてゆくのが
一般的である。2. Description of the Related Art In recent years, with the spread of computers, systems for allocating images used for printed materials by computers have been used. In such an image allocating device, an image is captured as digital data from a document such as a photograph by a scanner device, and a graphic used for allocating work is captured as digital data by a drawing machine. Normally, the trimmed image is allocated by trimming the captured image with the captured graphic and allocating the graphic to a predetermined position. Such an allocation work is generally performed by an operator in an interactive form with a computer while looking at the display screen of the display.
しかしながら、従来の画像割付装置では、図形の入力作
業が煩雑であるという問題がある。前述のように、画像
割付装置では、図形は画像に対するトリミング枠として
の機能を果たすため、1つ1つを独立した単位図形とし
てコンピュータに認識させる形式で入力を行う必要があ
る。CAD装置などを用いてデザイン画を作成するのであ
れば、画像をディスプレイに表示させ、そのハードコピ
ーを得ることができれば、目的は達成できるので、単な
る線の集合として図形のデータを入力できればよい。と
ころが、画像割付装置では、各図形の1つ1つがそれぞ
れ閉じた領域を構成する幾何学図形として認識されねば
ならない。このため、従来の画像割付装置では、各単位
図形を1つ1つ別々に入力する必要があり、入力作業が
非常に煩雑になっていた。However, the conventional image allocating device has a problem that the work of inputting a graphic is complicated. As described above, in the image allocating device, since the graphic functions as a trimming frame for the image, it is necessary to input each graphic in the form of being recognized by the computer as an independent unit graphic. If a design image is created using a CAD device or the like, the purpose can be achieved if the image can be displayed on the display and a hard copy of the image can be obtained. Therefore, it is sufficient to input the graphic data as a simple set of lines. However, in the image allocating device, each figure must be recognized as a geometric figure that constitutes a closed area. For this reason, in the conventional image allocating device, it is necessary to input each unit figure individually, which makes the input work very complicated.
そこで本発明は、入力作業が簡単な、画像割付装置にお
ける図形入力方法を提供することを目的とする。Therefore, it is an object of the present invention to provide a graphic input method in an image allocating device, which makes input work simple.
(1)本願第1の発明は、 割付対象となる画像をデジタルデータとして入力する画
像入力装置と、 この入力した画像に対するトリミング枠として利用され
る図形を入力する図形入力装置と、 入力した画像および図形を記憶する記憶装置と、 図形入力装置によって入力された図形から単位図形を抽
出し、この抽出した単位図形をトリミング枠として、画
像入力装置によって入力された画像に対する割付処理を
行う画像処理装置と、 を備える画像割付装置において用いられる、トリミング
枠となる単位図形を入力するための図形入力方法であっ
て、 二次元座標系上に、単位図形を複数個包含する包括図形
を、図形入力装置を用いて入力する第1の段階と、 この座標系上に、入力した包括図形を分割する分割線
を、図形入力装置を用いて入力する第2の段階と、 分割線と包括図形との交点および分割線相互の交点から
なる分割点、ならびに包括図形上の図形点、を認識し、
これら各点間を結ぶ線分を認識する第3の段階と、 座標系の一軸の一末端に参照点を仮定し、この一軸の方
向に関して参照点に最も近い点を、図形点および分割点
の中から順次始点として選択する第4の段階と、 始点から、一軸に平行で参照点側に伸びる半直線を定義
し、始点を回転中心としてこの半直線を第1の回転方向
に回転させた場合に、はじめて出会う未追跡の線分を追
跡開始線分として選択し、選択すべき追跡開始線分が存
在しない場合には、第4の段階により再度選択された新
たな始点についての追跡開始線分を選択する第5の段階
と、 追跡開始線分を追跡し、追跡終了点にある端点を認識す
るとともに、この追跡開始線分が分割線上の線分であっ
た場合には、この線分に対して追跡方向に関しては追跡
済の認定を与え、分割線上の線分でなかった場合には、
この線分に対して双方向ともに追跡済の認定を与える第
6の段階と、 認識した端点を回転中心として、直前に追跡した線分
を、第1の回転方向とは逆の第2の回転方向に回転させ
た場合に、はじめて出会う未追跡の線分を追跡線分とし
て選択する第7の段階と、 第7の段階で選択した追跡線分を追跡し、追跡終了点に
ある端点を認識するとともに、この追跡線分が分割線上
の線分であった場合には、この線分に対して追跡方向に
関しては追跡済の認定を与え、分割線上の線分でなかっ
た場合には、この線分に対して双方向ともに追跡済の認
定を与える第8の段階と、 第8の段階で認識した端点が、第4の段階で選択した始
点と同一点であるか否かを判定し、同一点でない場合に
は、第7の段階の作業へと戻る第9の段階と、 第8の段階で、同一点であると判定された場合には、始
点から一巡する追跡路によって構成される図形を単位図
形として認識する第10の段階と、 第10の段階の終了後、すべての単位図形の認識が終了し
たか否かを判断し、終了していない場合には、第4の段
階の作業へと戻る第11の段階と、 を行うようにしたものである。(1) The first invention of the present application is: an image input device for inputting an image to be allocated as digital data; a figure input device for inputting a figure used as a trimming frame for the input image; A storage device for storing a figure, and an image processing device for extracting a unit figure from the figure input by the figure input device and performing layout processing for an image input by the image input device using the extracted unit figure as a trimming frame. A graphic input method for inputting a unit graphic to be a trimming frame, which is used in an image allocating device, comprising a graphic input device that includes a comprehensive graphic including a plurality of unit graphic on a two-dimensional coordinate system. Using the figure input device, enter the first step of inputting using this and the dividing line that divides the input comprehensive figure on this coordinate system. Recognizing the second step, dividing points consisting of the intersections of the dividing line and the inclusion figure and the intersections of the dividing lines, and the figure points on the inclusion figure,
The third step of recognizing the line segment connecting these points, and assuming a reference point at one end of one axis of the coordinate system, the point closest to the reference point in the direction of this one axis is the figure point and the division point. When a fourth line is selected from the middle as a starting point and a half line extending from the starting point to the reference point side parallel to one axis is defined, and this half line is rotated in the first rotation direction with the starting point as the center of rotation. If the untracked line segment that first meets is selected as the tracking start line segment, and there is no tracking start line segment to be selected, the tracking start line segment for the new start point selected again in the fourth step. The fifth step of selecting and tracing the trace start line segment, recognizing the end point at the trace end point, and if this trace start line segment is a line segment on the dividing line, On the other hand, regarding the tracking direction, it gives a certified tracked and divides it If it is not a line segment of the above,
The sixth step of giving the tracked recognition in both directions to this line segment, and the line segment traced immediately before with the recognized end point as the center of rotation, in the second rotation opposite to the first rotation direction. When the camera is rotated in the direction, the 7th step of selecting an untracked line segment that meets for the first time as a tracking line segment, and the tracking line segment selected in the 7th step are traced, and the end point at the tracking end point is recognized. In addition, if this tracking line segment is a line segment on the dividing line, the line segment is given the certification of being tracked in the tracking direction, and if it is not a line segment on the dividing line, Eighth stage, which gives tracked accreditation in both directions to the line segment, and whether or not the end point recognized in the eighth stage is the same point as the starting point selected in the fourth stage, If they are not the same point, in the 9th step and the 8th step returning to the work of the 7th step, If it is determined that they are at the same point, the 10th step of recognizing the figure constituted by the trace path that makes a round from the start point as a unit figure, and after the end of the 10th step, the recognition of all the unit figures It is determined whether or not the process is completed, and if it is not completed, the eleventh stage of returning to the work of the fourth stage and the process are performed.
(2)本願第2の発明は、前述の第1の発明による画像
割付装置における図形入力方法において、 第11の段階で、分割線上のすべての線分については双方
向の追跡が行われており、分割線上にないすべての線分
については1方向の追跡が行われている場合に、すべて
の単位図形の認識が終了したと判断するようにしたもの
である。(2) The second invention of the present application is, in the figure inputting method in the image allocating device according to the first invention, in the eleventh step, bidirectional tracing is performed for all line segments on the dividing line. In the case where all the line segments that are not on the dividing line are traced in one direction, it is determined that the recognition of all the unit figures is completed.
(3)本願第3の発明は、前述の第1の発明による画像
割付装置における図形入力方法において、 第11の段階で、認識した単位図形の数をU、図形点の数
をF、分割点の数をD、線分の数をL、としたときに、 F+D+U=L+1 なるオイラーの定理を満たした場合に、すべての単位図
形の認識が終了したと判断するものである。(3) The third invention of the present application is, in the figure inputting method in the image allocating apparatus according to the first invention, in the eleventh step, the number of unit figures recognized is U, the number of figure points is F, and division points are If the Euler's theorem of F + D + U = L + 1 is satisfied, where D is the number of lines and L is the number of line segments, it is determined that the recognition of all the unit figures is completed.
(4)本願第4の発明は、前述の第1の発明による画像
割付装置における図形入力方法において、 第4の段階で、始点を必ず分割点のうちから選択するよ
うにし、 第5の段階で、追跡開始線分を必ず分割線上の線分のう
ちから選択するようにしたものである。(4) A fourth invention of the present application is that, in the figure inputting method in the image allocating device according to the first invention, the start point is always selected from the division points in the fourth step, and the fifth step is performed in the fifth step. The tracking start line segment is always selected from the line segments on the dividing line.
(1)本願第1の図形入力方法によれば、オペレータは
複数の単位図形を、包括図形と分割線という形式で入力
することができるようになる。コンピュータ内部では、
包括図形と分割線という形式の入力データに基づいて、
所定の手順で追跡処理が行われ、個々の単位図形が認識
される。したがって、その後の割付処理には何ら支障は
及ぼさない。したがって、オペレータは、個々の単位図
形を独立して1つずつ入力する必要がなくなり、入力作
業は非常に簡単になる。(1) According to the first figure input method of the present application, the operator can input a plurality of unit figures in the form of the comprehensive figure and the dividing line. Inside the computer,
Based on the input data in the form of comprehensive figure and dividing line,
The tracking process is performed in a predetermined procedure to recognize individual unit figures. Therefore, it does not hinder the subsequent allocation process. Therefore, the operator does not need to individually input each unit figure, and the input work becomes very simple.
(2)本願第2の図形入力方法は、単位図形が包括図形
と分割線という形式で現された場合に、分割線上の線分
を双方向に合計2回追跡し、包括図形上の線分を1回追
跡すると、すべての単位図形についての追跡が完了する
という原理に基づき、本願第1の図形入力方法による追
跡作業の終了時点の判断を行うものである。この方法に
より、追跡した線分に追跡済の認定をしておくだけで、
作業終了時点の判断を行うことができるようになる。(2) In the second figure input method according to the present application, when the unit figure is expressed in the form of the comprehensive figure and the dividing line, the line segments on the dividing line are traced twice in total in both directions, and the line segment on the comprehensive figure is traced. Based on the principle that the tracing is completed once for all the unit figures, the end point of the tracing work by the first figure input method of the present application is determined. By this method, you just need to make a traced certification to the traced line segment,
It becomes possible to judge when the work ends.
(3)本願第3の図形入力方法は、本願第1の図形入力
方法にオイラーの定理を適用し、コンピュータによる追
跡作業の終了時点の判断を行うものである。この方法に
より、図形を構成する各点、これらを結ぶ各線分の数を
求めておくだけで、作業終了時点の判断を行うことがで
きるようになる。(3) In the third figure input method of the present application, Euler's theorem is applied to the first figure input method of the present application, and the end point of the tracking operation by the computer is determined. According to this method, it is possible to determine the end time of the work by merely obtaining the number of each point forming the figure and the number of each line segment connecting these points.
(4)本願第4の図形入力方法では、本願第1の図形入
力方法において、追跡作業の始点として常に分割点が選
択され、追跡開始線分として常に分割線上の線分が選択
される。したがって、選択対象となる候補の数が絞ら
れ、選択に要する演算負担を軽減させることができる。(4) In the fourth figure input method of the present application, in the first figure input method of the present application, the division point is always selected as the start point of the tracking work, and the line segment on the division line is always selected as the tracking start line segment. Therefore, the number of candidates to be selected is narrowed down, and the calculation load required for selection can be reduced.
以下本発明を図示する実施例に基づいて説明する。第1
図は本発明による画像割付装置における図形入力方法の
手順を示す流れ図である。この流れ図に沿って本発明の
方法を説明する前に、本発明の方法が適用される画像割
付装置の構成および動作を簡単に説明しておく。第2図
は従来一般に用いられている画像割付装置の基本構成を
示すブロック図である。画像割付装置10には、図形を入
力するための作図機20と、画像を入力するためのスキャ
ナ装置30が接続されている。作図機20はデジタイザなど
の座標入力装置によって構成され、割付作業に必要な図
形をデジタルデータとして取り込む。スキャナ装置30
は、写真などの原稿から画像をデジタルデータとして取
り込む。取り込まれたデータは、メモリ40に記憶され
る。画像処理装置10は、このメモリ40内のデータから必
要なものを抽出し、これに基づいてディスプレイ50に表
示する。オペレータはマウスあるいはキーボードなどの
指示入力装置60から割付指示を与える。画像割付装置10
は、この割付指示に基づいてメモリ40内のデータを編成
し、割付結果をディスプレイ50に表示する。したがっ
て、オペレータはディスプレイ50の表示を見ながら、コ
ンピュータと対話形式で割付作業を進めてゆくことがで
きる。The present invention will be described below based on illustrated embodiments. First
The drawing is a flow chart showing the procedure of the figure inputting method in the image allocating apparatus according to the present invention. Before explaining the method of the present invention according to this flow chart, the configuration and operation of the image allocating apparatus to which the method of the present invention is applied will be briefly described. FIG. 2 is a block diagram showing a basic configuration of an image allocating device which has been generally used conventionally. To the image allocating device 10, a drawing machine 20 for inputting a graphic and a scanner device 30 for inputting an image are connected. The drawing machine 20 is composed of a coordinate input device such as a digitizer, and takes in the figures required for the layout work as digital data. Scanner device 30
Captures an image as digital data from a document such as a photograph. The captured data is stored in the memory 40. The image processing device 10 extracts necessary data from the data in the memory 40 and displays it on the display 50 based on the extracted data. The operator gives an allocation instruction from an instruction input device 60 such as a mouse or a keyboard. Image allocator 10
Composes the data in the memory 40 based on this allocation instruction and displays the allocation result on the display 50. Therefore, the operator can proceed with the allocation work interactively with the computer while watching the display on the display 50.
第3図は、この画像割付装置による割付作業の一例を示
す図である。ここに示す図形70は4つの単位図形71〜74
を有し、図では単位図形71内に画像81が、単位図形74内
に画像82が、それぞれ割り付けられている。このよう
に、単位図形は画像に対するトリミング枠として機能
し、同時に画像の割付位置を決定する機能も有する。こ
こで、図形70は作図機20により入力され、画像81,82は
スキャナ装置30により入力されたものである。FIG. 3 is a diagram showing an example of the layout work by this image layout device. The figure 70 shown here is four unit figures 71-74.
In the figure, an image 81 is assigned to the unit graphic 71, and an image 82 is assigned to the unit graphic 74. In this way, the unit graphic functions as a trimming frame for the image and also has a function of determining the layout position of the image. Here, the graphic 70 is input by the drawing machine 20, and the images 81, 82 are input by the scanner device 30.
ここで、図形70の入力方法について考えてみる。第4図
は図形70だけを抽出した図であるが、画像処理装置10に
よる割付作業を行う場合には、この第4図に示す図形は
実際には第5図に示すように4つの単位図形ごとに別々
の認識がなされていなければならない。すなわち、四角
形AEIG、GIFD、EBHI、IHCFの4つの単位図形が別々に認
識されている必要がある。このため、従来は作図機20に
より、この4つの四角形を別々に入力していた。作図機
20から四角形を入力する方法としては、たとえば4頂点
の位置座標をデジタイザで入力するなどの方法で行うこ
とができる。座標系に直交する長方形という制限を付加
すれば、2対角の位置座標を入力するだけでも四角形の
特定は可能である。しかしながら、4つの四角形のそれ
ぞれについて、別個の入力を行うことに変りはなく、入
力する図形数が多くなればなるほど、オペレータの入力
作業の負担は大きなものとなる。Now, consider how to input the graphic 70. FIG. 4 is a diagram in which only the graphic 70 is extracted. However, when performing the layout work by the image processing apparatus 10, the graphic shown in FIG. 4 is actually four unit graphic as shown in FIG. Each must be recognized separately. That is, it is necessary that the four unit figures AEIG, GIFD, EBHI, and IHCF be recognized separately. For this reason, conventionally, the four squares have been input separately by the plotter 20. Plotter
As a method of inputting a quadrangle from 20, for example, the position coordinates of the four vertices can be input by a digitizer. If the restriction of a rectangle orthogonal to the coordinate system is added, the quadrangle can be specified by simply inputting the position coordinates on two diagonals. However, each of the four quadrangles is still input separately, and the larger the number of figures to be input, the heavier the input work burden on the operator.
第4図に示す図形の把握の仕方としては、第5図に示す
ように4つの長方形の集合という把握よりも、1つの大
きな長方形ABCDと、線分EF,GHからなる十文字形という
把握の方がより自然である。したがって、この図形の入
力方法としては、第5図に示すように4つの長方形を別
個に独立して入力するよりも、第6図に示すように、大
きな長方形ABCDと、線分E0F0,G0H0からなる十文字形と
いう組み合わせで入力した方が作業は非常に簡単にな
る。線分EF,GHの代わりに、線分E0F0,G0H0を入力するの
は、入力時の操作性が良くなるためである。具体的に
は、4頂点ABCDの位置座標を入力することによって長方
形ABCDを特定し、2点E0,F0の位置座標を入力すること
によって線分E0F0を特定し、2点G0,H0の位置座標を入
力することによって線分G0H0を特定することになる。こ
の方法によれば、わずか8点の位置座標を指定するだけ
で、この図形のもつすべての情報が特定できる。しかし
ながら、作図機20から、このような入力を行ったとして
も、画像処理装置10による認識は、あくまでも長方形AB
CDと2本の線分E0F0,G0H0でしかない。本発明の特徴
は、第6図に示すような1つの長方形と2本の線分とい
う認識状態を、第5図に示すような4つの長方形として
の認識状態に変換する手法にある。実際には、この変換
は画像処理装置10内に組み込まれたソフトウエアによっ
て実現される。As a way of grasping the figure shown in Fig. 4, rather than grasping as a set of four rectangles as shown in Fig. 5, it is better to grasp one large rectangle ABCD and a cross shape consisting of line segments EF and GH. Is more natural. Therefore, as a method of inputting this figure, rather than inputting four rectangles individually and independently as shown in FIG. 5, from a large rectangle ABCD and line segments E0F0, G0H0 as shown in FIG. The work is much easier if you type in a combination of Naru-ji. The reason why the line segments E0F0 and G0H0 are input instead of the line segments EF and GH is because the operability at the time of input is improved. Specifically, the rectangle ABCD is specified by entering the position coordinates of the four vertices ABCD, the line segment E0F0 is specified by entering the position coordinates of the two points E0, F0, and the position coordinates of the two points G0, H0 are specified. By inputting, the line segment G0H0 will be specified. According to this method, all the information of this figure can be specified by designating the position coordinates of only eight points. However, even if such an input is made from the drawing machine 20, the recognition by the image processing device 10 is not limited to the rectangle AB.
Only CD and two line segments E0F0 and G0H0. A feature of the present invention is a method of converting the recognition state of one rectangle and two line segments as shown in FIG. 6 into the recognition state as four rectangles as shown in FIG. In reality, this conversion is realized by software installed in the image processing apparatus 10.
それでは、第1図の流れ図にしたがって、本発明による
方法の手順を説明する。The procedure of the method according to the invention will now be described according to the flow chart of FIG.
〈ステップS1〉 はじめに、XY二次元座標系上に、単位図形を複数個包含
する包括図形を入力する。これは第6図における長方形
ABCDの入力に相当する。ここでは、より一般性をもたせ
るため、第7図に示すような任意の四角形ABCDが入力さ
れたものとして説明を続けることにする。この入力は、
前述のように、作図機20によって4頂点ABCDの座標値を
入力することによって行われる。なお、ここでは包括図
形として四角形の例を示すが、これはどのような図形で
あってもかまわない。<Step S1> First, an inclusive figure including a plurality of unit figures is input on the XY two-dimensional coordinate system. This is the rectangle in Figure 6
Corresponds to ABCD input. Here, in order to make it more general, the description will be continued assuming that an arbitrary quadrangle ABCD as shown in FIG. 7 is input. This input is
As described above, the drawing is performed by inputting the coordinate values of the four vertex ABCD by the drawing machine 20. Although a quadrangle is shown as an inclusive figure here, any figure may be used.
〈ステップS2〉 続いて、同じXY座標系上に、第7図に示すように、包括
図形ABCDを分割する分割線E0F0およびG0H0を入力する。
この入力も、作図機20によって行われる。<Step S2> Subsequently, as shown in FIG. 7, dividing lines E0F0 and G0H0 for dividing the comprehensive figure ABCD are input on the same XY coordinate system.
This input is also performed by the plotter 20.
〈ステップS3〉 次に、包括図形ABCDと分割線E0F0あるいはG0H0との交点
であるE,F,G,H、および分割線相互の交点Iを認識す
る。これら、分割線によって生成した交点を分割点と呼
び、包括図形上のもともとの点A,B,C,Dを図形点と呼ん
で両者を区別することにする。こうして分割点および図
形点が認識されると、これらを結ぶ線分を認識すること
ができる。この例では、図形上の線分として、線分AE,E
B,BH,HC,CF,FD,DG,GAの8本が認識され、分割線上の線
分として、線分EI,IF,GI,IHの4本が認識されることに
なる。<Step S3> Next, E, F, G, H, which is the intersection of the comprehensive figure ABCD and the dividing line E0F0 or G0H0, and the intersection I of the dividing lines are recognized. These intersections generated by the dividing lines are called dividing points, and the original points A, B, C, D on the comprehensive figure are called figure points to distinguish them. When the division points and the graphic points are recognized in this way, the line segment connecting them can be recognized. In this example, line segments AE, E
Eight B, BH, HC, CF, FD, DG, and GA are recognized, and four line segments EI, IF, GI, and IH are recognized as line segments on the dividing line.
〈ステップS4〉 続いて始点の選択を行う。この始点はこれから行う追跡
作業の起点となる点である。この始点の選択を行うため
に、まずXY座標系の一軸を選び、この一軸の一末端に参
照点を仮定する。一軸としては、X軸を選んでもよい
し、Y軸を選んでもよい。この例では、Y軸を選ぶもの
とする。また、一末端としては、正の末端を選んでもよ
いし、負の末端を選んでもよい。この例では、Y軸の負
の末端を選ぶものとする。結局、この例では、Y軸の負
方向の末端に参照点が仮定される。<Step S4> Next, the start point is selected. This starting point is the starting point for the tracking work to be performed. In order to select this starting point, one axis of the XY coordinate system is first selected and a reference point is assumed at one end of this axis. As the one axis, the X axis may be selected or the Y axis may be selected. In this example, the Y axis is selected. The positive end may be selected as the one end, or the negative end may be selected. In this example, the negative end of the Y axis is chosen. After all, in this example, a reference point is assumed at the negative end of the Y axis.
そして、図形点および分割点のうち、選んだ一軸の方向
に関して、参照点に最も近く、いままでに始点として選
択されたことのない点が、始点として選択される。結
局、この例の場合、「Y軸方向に関して参照点に最も近
い点」ということになり、別言すれば、「Y座標値の最
も小さな点」ということになる。したがって、第8図の
例では、始点として選択される順番は、点B,H,C,E,I,…
ということになる。なお、Y座標値が同じ点が複数ある
場合には、たとえばX座標値の小さい方を選ぶというよ
うな選択の仕方を決めておけばよい。結局、この例で
は、点Bが最初の始点として選択されたことになる。Then, of the graphic points and the division points, the point closest to the reference point in the direction of the selected one axis and which has never been selected as the starting point is selected as the starting point. After all, in the case of this example, it means “the point closest to the reference point in the Y-axis direction”, in other words, “the point having the smallest Y coordinate value”. Therefore, in the example of FIG. 8, the order selected as the starting point is the points B, H, C, E, I, ...
It turns out that. When there are a plurality of points having the same Y coordinate value, it suffices to determine a selection method such as selecting one having a smaller X coordinate value. After all, in this example, the point B is selected as the first starting point.
〈ステップS5〉 続いて、選択された始点から、前述の選ばれた一軸に平
行で参照点側に伸びる半直線を定義する。この例の場
合、始点BからY軸に平行でY軸の負側に伸びる半直線
BB′が、第9図に示すように定義される。そして、始点
Bを回転中心としてこの半直線BB′を第1の回転方向
(時計回り、反時計回りどちらでもよいが、ここでは反
時計回りとする)に回転させた場合に、はじめて出会う
未追跡の線分を追跡開始線分として選択する。この例で
は、第9図のように、はじめて出会う線分は線分BHであ
り、これは未追跡であるから、線分BHが追跡開始線分と
して選択されることになる。<Step S5> Subsequently, a half line extending from the selected starting point to the reference point side in parallel with the selected one axis is defined. In the case of this example, a half line parallel to the Y axis from the starting point B and extending to the negative side of the Y axis
BB 'is defined as shown in FIG. Then, when this half line BB ′ is rotated in the first rotation direction (either clockwise or counterclockwise, but here it is counterclockwise) with the starting point B as the center of rotation, the first unmet tracking The line segment of is selected as the trace start line segment. In this example, as shown in FIG. 9, the line segment that first meets is the line segment BH, which is untracked, so the line segment BH is selected as the tracking start line segment.
ここで、もし線分BHが追跡済となっていたら、その次に
出会う線分BEが追跡開始線分として選択される。出会っ
た線分がすべて追跡済であったときには、ステップS4に
戻り、次の始点候補を新たな始点として再選択しなおす
ことになる。Here, if the line segment BH has been tracked, the line segment BE that meets next is selected as the tracking start line segment. When all the line segments that have been met have been tracked, the process returns to step S4 and the next starting point candidate is reselected as a new starting point.
〈ステップS6〉 追跡開始線分が選択されたら、この線分を追跡する。す
なわち、第10図に示すように、始点Bから矢印の方向に
追跡を行い、追跡終了点にある端点Hを認識する。図で
は、追跡を行った線分を太線で示し、その上に追跡方向
を示す矢印を記すことにする。このように追跡済の線分
と未追跡の線分とを区別しておくことは重要である。こ
こで留意しておきたいことは、ここで述べる方法の全手
順が終了するときまでには、分割線上の線分は2回、そ
れ以外の線分(包括図形上の線分)は1回、追跡される
ことになるという点である。分割線上の線分を2回追跡
するのは、分割線によって必ず2つの単位図形が形成さ
れることになり、各単位図形のために方向の違う追跡を
それぞれ1回ずつ行うためである。そこで、本発明の方
法では、追跡した線分が分割線上の線分であった場合に
は、この線分に対して追跡方向に関しては追跡済の認定
を与え、分割線上の線分でなかった場合(包括図形上の
線分の場合)には、この線分に対して双方向ともに追跡
済の認定を与えるようにしている。したがって、第10図
に示す例では、追跡開始線分BHは包括図形上の線分であ
るから、この線分については双方向ともに追跡済の認定
がなされる。実際には、BからHへ向かう方向の追跡が
なされただけであるが、その逆のHからBに向かう方向
についても追跡済の認定がなされるため、この逆方向の
追跡は後に行われることはない。<Step S6> When a trace start line segment is selected, this line segment is traced. That is, as shown in FIG. 10, tracking is performed from the starting point B in the direction of the arrow, and the end point H at the tracking end point is recognized. In the figure, the traced line segment is indicated by a thick line, and an arrow indicating the tracking direction is written on it. In this way, it is important to distinguish between tracked and untracked line segments. It is important to keep in mind that by the end of all steps of the method described here, the line segment on the dividing line is twice, and the other line segments (line segments on the inclusive figure) are once. , That will be tracked. The reason why the line segment on the dividing line is traced twice is that two unit figures are always formed by the dividing line, and the tracing in different directions is performed once for each unit figure. Therefore, in the method of the present invention, when the tracked line segment is a line segment on the dividing line, the tracked direction is given to this line segment as certified as traced, and the line segment is not on the dividing line. In this case (in the case of a line segment on a comprehensive figure), bidirectional traced certification is given to this line segment. Therefore, in the example shown in FIG. 10, since the tracking start line segment BH is a line segment on the comprehensive figure, both lines are certified as tracked in both directions. Actually, only the direction from B to H was tracked, but the opposite direction from H to B is also certified as tracked, so this backward direction tracking will be performed later. There is no.
〈ステップS7〉 さて、端点が認識されたら、これに続いて追跡すべき線
分を決定する。それには、端点を回転中心として、直前
に追跡した線分を、ステップS5における第1の回転方向
とは逆の第2の回転方向に回転させた場合に、はじめて
出会う未追跡の線分を追跡線分として選択するのであ
る。この例では、第10図に示すように、認識された端点
Hを回転中心として、直前に追跡した線分BHを第2の回
転方向(ステップS5で第1の回転方向として反時計回り
をとったので、ここではそれとは逆の時計回りになる)
回転させてはじめて出会う線分は線分HIである。この線
分HIは未追跡であるため、追跡線分として決定される。<Step S7> Now, when the end points are recognized, the line segment to be followed is determined. To this end, when the line segment tracked immediately before is rotated in the second rotation direction opposite to the first rotation direction in step S5 with the end point as the center of rotation, the untracked line segment that first encounters is tracked. It is selected as a line segment. In this example, as shown in FIG. 10, with the recognized end point H as the center of rotation, the line segment BH traced immediately before is taken as the second direction of rotation (the first direction of rotation as the first direction of rotation in step S5) and the counterclockwise direction is taken. So it's the opposite clockwise direction here)
The line segment that meets only after rotating is the line segment HI. Since this line segment HI has not been traced, it is determined as a traced line segment.
〈ステップS8〉 追跡線分が選択されたら、この線分を追跡する。すなわ
ち、第10図に示すように、端点Hから矢印の方向に追跡
を行い、追跡終了点にある端点Iを認識する。この結
果、第11図に示すように、線分HIは追跡済の太線とな
る。ただし、線分HIは分割線上の線分であるから、前述
したように、追跡済と認定されるのは、HからIに向か
う方向だけであり、その逆のIからHに向かう方向につ
いては、まだ未追跡である。<Step S8> When a tracing line segment is selected, this line segment is traced. That is, as shown in FIG. 10, tracking is performed from the end point H in the direction of the arrow, and the end point I at the end point of tracking is recognized. As a result, the line segment HI becomes a traced thick line as shown in FIG. However, since the line segment HI is a line segment on the dividing line, as described above, only the direction from H to I is recognized as tracked, and the opposite direction from I to H is. , Still untracked.
〈ステップS9〉 ここでは、ステップS8で認識した端点が、ステップS4で
選択した始点と同一点であるか否かを認識する。同一点
でない場合には、ステップS7へと戻る。この例の場合、
端点Iは始点Bと同一点ではないので、ステップS7へと
戻ることになる。その結果、新たな追跡線分として線分
IEが決定される。これは、端点Iを回転中心として、直
前に追跡した線分HIを第2の回転方向(時計回り)に回
転させてはじめて出会う未追跡の線分が線分IEだからで
ある。こうして、続くステップS8で線分IEが追跡され、
端点Eが認識される。続くステップS9では、端点Eと始
点Bとは同一ではないので、再びステップS7に戻ること
になる。ここで、新たな追跡線分として線分EBが決定さ
れ、続くステップS8での追跡の結果、端点Bが認識され
る。この状態を第12図に示す。ステップS9では、ここで
やっと端点Bが始点Bと同一であるとの判断がなされる
ことになる。<Step S9> Here, it is recognized whether or not the end point recognized in step S8 is the same point as the start point selected in step S4. If they are not the same point, the process returns to step S7. In this example,
Since the end point I is not the same as the start point B, the process returns to step S7. As a result, the line segment is
IE is determined. This is because the line segment IE is the untracked line segment that is encountered only when the line segment HI traced immediately before is rotated in the second rotation direction (clockwise) with the end point I as the center of rotation. Thus, in the subsequent step S8, the line segment IE is tracked,
The end point E is recognized. At the subsequent step S9, since the end point E and the start point B are not the same, the process returns to step S7 again. Here, the line segment EB is determined as a new tracking line segment, and the end point B is recognized as a result of the tracking in the subsequent step S8. This state is shown in FIG. In step S9, it is finally judged here that the end point B is the same as the start point B.
〈ステップS10〉 ステップS9で同一との認定がなされたということは、始
点から同じ始点に至るまでの追跡が一巡したことにな
る。この一巡する追跡路によって閉じた図形が認識でき
る。ステップS10ではこの閉じた図形を1つの単位図形
として認識するのである。この例では、第12図に示すよ
うに、始点Bからはじまって、H,I,E、そして再びBに
戻る追跡路が得られ、単位図形BHIEが認識される。な
お、この追跡により、線分BHおよびEBは、両方向ともに
追跡済となるが、線分HIおよびIEは片方向のみが追跡済
となる。<Step S10> The fact that the same identification has been made in step S9 means that the tracing from the starting point to the same starting point has been completed. A closed figure can be recognized by this one-way tracking path. In step S10, this closed figure is recognized as one unit figure. In this example, as shown in FIG. 12, a tracking path starting from the starting point B, H, I, E, and then returning to B is obtained, and the unit figure BHIE is recognized. By this tracking, the line segments BH and EB are tracked in both directions, but the line segments HI and IE are tracked in only one direction.
〈ステップS11〉 ステップS10の終了後、すべての単位図形の認識が終了
したか否かを判断し、終了していない場合には、ステッ
プS4へと戻る。この例の場合、再びステップS4からの手
順が繰り返されることになる。まず、ステップS4におい
て新たな始点が選択される。ここでは、点Bの次の候補
の始点として点Hが選択され、第13図に示すように、半
直線HH′を反時計回りに回転させてはじめに出会う未追
跡の線分HCが追跡開始線分となる。こうして、線分HCか
らCF、FI、IHと次々に追跡がなされ、第14図に示すよう
に、四角形HCFIが単位図形として認識される。なお、線
分IHは、両方向ともに追跡済となる。<Step S11> After the end of step S10, it is determined whether or not the recognition of all the unit figures is completed. If not completed, the process returns to step S4. In the case of this example, the procedure from step S4 is repeated again. First, a new starting point is selected in step S4. Here, the point H is selected as the starting point of the next candidate of the point B, and as shown in FIG. 13, the untracked line segment HC that first meets when the half line HH ′ is rotated counterclockwise is the tracking start line. It will be a minute. In this way, the line segments HC are sequentially traced from CF to FI to IH, and the square HCFI is recognized as a unit figure as shown in FIG. The line segment IH has been tracked in both directions.
ここで再びステップS11の判断により、ステップS4へと
戻る。そして、ステップS4において新たな始点が選択さ
れる。ここでは、点Hの次の候補の始点として点Cが一
旦は選択されるが、続くステップS5で追跡開始線分が存
在しないことがわかる。すなわち、線分CFも線分CHも、
いずれも双方向ともに追跡済と認識されている。そこで
再びステップS4に戻り、点Cの次の候補の始点として点
Eが選択される。ここで、第15図に示すように、半直線
EE′を反時計回りに回転させてはじめに出会うのは線分
EBであるが、これは既に追跡済であるため、次の線分EI
が追跡開始線分となる。こうして、線分EIからIG、GA、
AEと次々に追跡がなされ、四角形EIGAが単位図形として
認識される。Here, the process returns to step S4 by the determination in step S11 again. Then, in step S4, a new starting point is selected. Here, although the point C is once selected as the starting point of the candidate next to the point H, it is understood that the tracking start line segment does not exist in the subsequent step S5. That is, the line segment CF and the line segment CH are
Both are recognized as being tracked in both directions. Therefore, the process returns to step S4 again, and the point E is selected as the starting point of the next candidate after the point C. Here, as shown in Fig. 15, a half line
Rotate EE ′ counterclockwise to meet the first line segment
Although it is EB, this is already tracked, so the next line segment EI
Is the tracking start line segment. In this way, line segment EI to IG, GA,
The AEGA is traced one after another, and the square EIGA is recognized as a unit figure.
最後に、始点Iからの追跡により、四角形IFDGが単位図
形として認識される。こうして、第16図に示すような4
とおりの追跡が行われたことになり、ステップS11の判
断により、全手順が終了する。Finally, by tracing from the starting point I, the quadrangle IFDG is recognized as a unit figure. Thus, as shown in FIG.
The tracing is performed as described above, and the entire procedure ends by the determination in step S11.
〈ステップS11における判断方法I〉 ステップS11において、すべての単位図形の認識が終了
したか否かを判断する方法のひとつは、すべての線分に
ついて、双方向ともに追跡済である旨の認定が行われた
か否かの判断を行う方法である。前述のように、包括図
形上の線分については、一方向についての追跡が行われ
ただけで、双方向ともに追跡済である旨の認定がなされ
る。分割線上の線分については、実際に2回の追跡が行
われた場合に双方向とも追跡済である旨の認定がなされ
る。こうして、すべての線分について双方向ともに追跡
済である旨の認定が行われれば、もはや追跡すべき線分
はなく作業終了とせざるを得ないが、これはまた、すべ
ての単位図形の認識が終了したことを意味する。第16図
の4つの追跡路を見れば、包括図形上の線分については
1回、分割線上の線分については2回の追跡を行えば、
必要なすべての追跡が完了することが理解できよう。<Judgment Method I in Step S11> In step S11, one of the methods for judging whether or not the recognition of all the unit figures is completed is to recognize that all line segments have been tracked in both directions. This is a method of determining whether or not someone has been broken. As described above, the line segment on the comprehensive figure is traced in only one direction, and it is certified that it has been traced in both directions. With respect to the line segment on the dividing line, it is certified that the tracking has been completed in both directions when the tracking is actually performed twice. In this way, if all line segments are certified to have been tracked in both directions, there is no more line segment to trace, and the work has to be finished. Means finished. Looking at the four tracking paths in FIG. 16, if the line segments on the comprehensive figure are traced once, and the line segments on the dividing line are traced twice,
It will be appreciated that all necessary tracking is complete.
〈ステップS11における判断方法II〉 もうひとつの方法は、オイラーの定理を利用する方法で
ある。すなわち、認識されるべきすべての単位図形の数
をU、図形点の数をF、分割点の数をD、線分の数を
L、とすると、 F+D+U=L+1 なる条件が成り立つことが知られている。そこで、その
時点までに認識された単位図形の数をUとして上記条件
が成り立っていれば、すべての単位図形が認識されてい
ることが証明されることになる。第16図に示す例では、
F=4、D=5、L=12、であるから、U=4になれ
ば、 4+5+4=12+1 となり、条件が成立する。したがって、単位図形が4つ
認識された時点で、作業を終了してよいと判断できる。<Judgment Method II in Step S11> Another method is to use Euler's theorem. That is, if the number of all unit figures to be recognized is U, the number of figure points is F, the number of division points is D, and the number of line segments is L, it is known that the condition F + D + U = L + 1 holds. ing. Therefore, if the number of unit figures recognized up to that point is U and the above condition is satisfied, it is proved that all unit figures are recognized. In the example shown in FIG.
Since F = 4, D = 5, and L = 12, if U = 4, then 4 + 5 + 4 = 12 + 1 and the condition holds. Therefore, when four unit figures are recognized, it can be determined that the work may be finished.
〈ステップS11における判断方法III〉 上述した判断方法IおよびIIは、どちらを採ってもかま
わないが、どちらか一方により判断を行い、もう一方に
よりその確認を行うという方法を行えば、より誤りのな
い判断が期待できる。<Judgment Method III in Step S11> Either of the judgment methods I and II described above may be adopted. However, if a method is used in which one of the judgments is used and the other is used for confirmation, a more erroneous judgment is made. You can expect no judgment.
〈演算の負担を軽減する方法〉 前述のステップS4において、始点を必ず分割点のうちか
ら選択するようにし、ステップS5において、追跡開始線
分を必ず分割線上の線分のうちから選択するようにする
ことができる。すなわち、第17図において、始点は分割
点E,F,G,H,Iのいずれかとなり、追跡開始線分は線分EI,
FI,GI,HIのいずれかとなる。この場合、始点HからIEBH
を経る第1の追跡路、始点EからIGAEを経る第2の追跡
路、始点IからHCFIを経る第3の追跡路、そして、始点
GからIFDGを経る第4の追跡路、が得られる。このよう
に、選択すべき始点の候補を限定し、選択すべき追跡開
始線分の候補を限定することにより、演算負担を軽減さ
せ、演算時間を短縮することができる 〈曲線図形への適用〉 上述の実施例では、包括図形も分割線も、いずれも直線
から構成されていたが、本発明による方法は、曲線から
なる図形、分割線を用いた場合にも適用可能である。し
たがって、本願明細書中において、分割線あるいは線分
といった場合、曲線からなる分割線あるいは線分も包含
されるものとする。この場合、追跡線分の決定を行う作
業において、曲線部分については接線を代用するとよ
い。たとえば、第18図に示すように、始点Jについての
追跡開始線分を決定する場合、円弧JKの代わりに点Jに
おけるその接線JTを用い、半直線JJ′がはじめて出会う
線分が接線JTだったときには、円弧JKを追跡開始線分と
すればよい。また、端点Kについて、次の追跡線分を決
定する場合には、円弧JKの代わりに点Kにおけるその接
線KTを用い、接線KTを回転させたときにはじめて出会う
線分KLを、追跡線分として決定すればよい。<Method of Reducing Computational Load> In step S4, the starting point is always selected from among the dividing points, and in step S5, the tracking start line segment is always selected from among the line segments on the dividing line. can do. That is, in FIG. 17, the starting point is any of the dividing points E, F, G, H, and I, and the tracking start line segment is the line segment EI,
It can be FI, GI, or HI. In this case, from start point H to IEBH
A first trace path through the start point E, a second trace path through the start point E through the IGAE, a third trace path through the start point I through the HCFI, and a fourth trace path through the start point G through the IFDG. In this way, by limiting the candidates of the starting point to be selected and the candidates of the tracking start line segment to be selected, it is possible to reduce the computation load and shorten the computation time. <Application to curved figure> In the above-mentioned embodiment, both the comprehensive figure and the dividing line are composed of straight lines, but the method according to the present invention can be applied to the case of using the figure and the dividing line made of curves. Therefore, in the specification of the present application, a dividing line or a line segment includes a dividing line or a line segment formed of a curved line. In this case, in the work of determining the tracking line segment, the tangent line may be substituted for the curved line portion. For example, as shown in Fig. 18, when determining the tracking start line segment for the start point J, the tangent line JT at the point J is used instead of the arc JK, and the line segment that the half line JJ 'first encounters is the tangent line JT. In this case, the arc JK may be used as the tracking start line segment. Further, when determining the next tracing line segment for the end point K, the tangent line KT at the point K is used instead of the arc JK, and the line segment KL first encountered when the tangent line KT is rotated is set as the tracing line segment. Should be decided as.
(1)本願第1の図形入力方法によれば、オペレータは
複数の単位図形を、包括図形と分割線という形式で入力
することができるようになるため、入力作業は非常に簡
単になる。(1) According to the first figure input method of the present application, the operator can input a plurality of unit figures in the form of the comprehensive figure and the dividing line, so that the input work becomes very simple.
(2)本願第2の図形入力方法によれば、線分の追跡状
態に基づいて全単位図形の認識完了の判断を行うように
したため、追跡した線分に追跡済の認定をしておくだけ
で、作業終了時点の判断を行うことができるようにな
る。(2) According to the second figure input method of the present application, since it is determined that the recognition of all unit figures is completed based on the tracing state of the line segment, only the traced line segment is certified as traced. Then, it becomes possible to judge the end time of the work.
(3)本願第3の図形入力方法は、本願第1の図形入力
方法にオイラーの定理を適用して全単位図形の認識完了
の判断を行うようにしたため、図形を構成する各点、こ
れらを結ぶ各線分の数を求めておくだけで、作業終了時
点の判断を行うことができるようになる。(3) In the third figure input method of the present application, Euler's theorem is applied to the first figure input method of the present application to determine the completion of recognition of all unit figures. It is possible to determine the end time of the work by simply obtaining the number of each connecting line segment.
(4)本願第4の図形入力方法では、本願第1の図形入
力方法において、追跡作業の始点として常に分割点を選
択し、追跡開始線分として常に分割線上の線分を選択す
るようにしたため、選択対象となる候補の数が絞られ、
選択に要する演算負担を軽減させることができる。(4) In the fourth figure input method of the present application, in the first figure input method of the present application, the division point is always selected as the start point of the tracking work, and the line segment on the division line is always selected as the tracking start line segment. , The number of candidates for selection is narrowed down,
The calculation load required for selection can be reduced.
第1図は本発明に係る画像割付装置における図形入力方
法の手順を示す流れ図、第2図は本発明の図形入力方法
を適用する画像割付装置の基本構成を示すブロック図、
第3図は第2図に示す装置による割付作業を示す図、第
4図は第2図に示す装置で用いる単位図形の集まりを示
す図、第5図は第4図に示す単位図形を従来の方法で入
力する手順を示す図、第6図は第4図に示す単位図形を
本発明による方法で入力する手順を示す図、第7図〜第
18図は、第1図に示す手順を説明するための図である。 70……包括図形、71〜74……単位図形、81,82……画
像。FIG. 1 is a flow chart showing a procedure of a figure inputting method in an image allocating apparatus according to the present invention, and FIG. 2 is a block diagram showing a basic configuration of an image allocating apparatus to which the figure inputting method of the present invention is applied.
FIG. 3 is a diagram showing an allocation work by the device shown in FIG. 2, FIG. 4 is a diagram showing a group of unit figures used in the device shown in FIG. 2, and FIG. 5 is a conventional unit figure shown in FIG. FIG. 6 is a diagram showing a procedure of inputting by the method of FIG. 6, FIG. 6 is a diagram showing a procedure of inputting the unit figure shown in FIG.
FIG. 18 is a diagram for explaining the procedure shown in FIG. 70 …… Comprehensive figure, 71-74 …… Unit figure, 81,82 …… Image.
Claims (4)
て入力する画像入力装置と、 前記画像に対するトリミング枠として利用される図形を
入力する図形入力装置と、 入力した前記画像および前記図形を記憶する記憶装置
と、 前記図形入力装置によって入力された図形から単位図形
を抽出し、この抽出した単位図形をトリミング枠とし
て、前記画像入力装置によって入力された画像に対する
割付処理を行う画像処理装置と、 を備える画像割付装置において用いられる、トリミング
枠となる単位図形を入力するための図形入力方法であっ
て、 二次元座標系上に、前記単位図形を複数個包含する包括
図形を、前記図形入力装置を用いて入力する第1の段階
と、 前記座標系上に、前記包括図形を分割する分割線を、前
記図形入力装置を用いて入力する第2の段階と、 前記分割線と前記包括図形との交点および前記分割線相
互の交点からなる分割点、ならびに前記包括図形上の図
形点、を認識し、これら各点間を結ぶ線分を認識する第
3の段階と、 前記座標系の一軸の一末端に参照点を仮定し、前記一軸
の方向に関して前記参照点に最も近い点を、前記図形点
および前記分割点の中から順次始点として選択する第4
の段階と、 前記始点から、前記一軸に平行で前記参照点側に伸びる
半直線を定義し、前記始点を回転中心としてこの半直線
を第1の回転方向に回転させた場合に、はじめて出会う
未追跡の線分を追跡開始線分として選択し、選択すべき
追跡開始線分が存在しない場合には、前記第4の段階に
より再度選択された新たな始点についての追跡開始線分
を選択する第5の段階と、 前記追跡開始線分を追跡し、追跡終了点にある端点を認
識するとともに、この追跡開始線分が前記分割線上の線
分であった場合には、この線分に対して追跡方向に関し
ては追跡済の認定を与え、前記分割線上の線分でなかっ
た場合には、この線分に対して双方向ともに追跡済の認
定を与える第6の段階と、 認識した端点を回転中心として、直前に追跡した線分
を、前記第1の回転方向とは逆の第2の回転方向に回転
させた場合に、はじめて出会う未追跡の線分を追跡線分
として選択する第7の段階と、 前記第7の段階で選択した追跡線分を追跡し、追跡終了
点にある端点を認識するとともに、この追跡線分が前記
分割線上の線分であった場合には、この線分に対して追
跡方向に関しては追跡済の認定を与え、前記分割線上の
線分でなかった場合には、この線分に対して双方向とも
に追跡済の認定を与える第8の段階と、 前記第8の段階で認識した端点が、前記第4の段階で選
択した始点と同一点であるか否かを判定し、同一点でな
い場合には、前記第7の段階の作業へと戻る第9の段階
と、 前記第8の段階で、同一点であると判定された場合に
は、前記始点から一巡する追跡路によって構成される図
形を単位図形として認識する第10の段階と、 前記第10の段階の終了後、すべての単位図形の認識が終
了したか否かを判断し、終了していない場合には、前記
第4の段階の作業へと戻る第11の段階と、 を有する画像割付装置における図形入力方法。1. An image input device for inputting an image to be allocated as digital data, a graphic input device for inputting a graphic used as a trimming frame for the image, and a memory for storing the input image and the graphic. An image processing apparatus that extracts a unit figure from the figure input by the figure input apparatus, and uses the extracted unit figure as a trimming frame to perform an allocation process on an image input by the image input apparatus. A graphic input method for inputting a unit graphic to be used as a trimming frame, which is used in an image allocating device, wherein a comprehensive graphic including a plurality of the unit graphic on a two-dimensional coordinate system is used by the graphic input device. And a dividing line for dividing the comprehensive figure on the coordinate system using the figure input device. A second step of recognizing, and a segment point consisting of an intersection point of the dividing line and the comprehensive figure and an intersection point of the dividing lines, and a graphic point on the comprehensive figure, and a line segment connecting these points. And a reference point is assumed at one end of one axis of the coordinate system, and a point closest to the reference point in the direction of the one axis is sequentially started from the figure point and the division point. 4th to choose as
And a half line extending from the starting point to the reference point side in parallel with the one axis, and when the half line is rotated in the first rotation direction with the starting point as the center of rotation, the first encounter A tracing line segment is selected as a tracing start line segment, and when there is no tracing start line segment to be selected, a tracing start line segment for the new starting point selected again in the fourth step is selected. Step 5: tracing the tracking start line segment, recognizing the end point at the tracking end point, and if the tracking start line segment is a line segment on the dividing line, Regarding the tracking direction, the tracked certification is given, and if it is not a line segment on the dividing line, the sixth step of giving the tracked certification in both directions to this line segment, and the recognized end point is rotated. As the center, the line segment traced immediately before is A seventh step of selecting an untracked line segment that first encounters as a tracking line segment when rotated in a second rotation direction opposite to the rotation direction of 1, and the tracking line selected in the seventh step. Trace the minutes, recognize the end point at the end point of tracing, and if this tracing line segment is a line segment on the dividing line, give the traced certification to the tracing direction for the tracing direction. If the line segment is not a line segment on the dividing line, an eighth step of giving a traced recognition in both directions to the line segment, and the end point recognized in the eighth step is the fourth point. It is determined whether it is the same point as the start point selected in the step, and if it is not the same point, the ninth step of returning to the work of the seventh step and the same point in the eighth step If it is determined that there is a figure, the figure composed of the traced path that makes one round from the starting point is A tenth step of recognizing as a figure, and after the completion of the tenth step, it is judged whether or not the recognition of all the unit figures is completed. If not, the work of the fourth step is performed. And an eleventh step, and a figure inputting method in the image allocating device having.
向の追跡が行われており、分割線上にないすべての線分
については1方向の追跡が行われている場合に、すべて
の単位図形の認識が終了したと判断することを特徴とす
る画像割付装置における図形入力方法。2. The method according to claim 1, wherein in the eleventh step, bidirectional tracking is performed for all line segments on the dividing line and 1 for all line segments not on the dividing line. A figure inputting method in an image allocating apparatus, characterized in that it is judged that recognition of all unit figures is completed when the direction is being tracked.
をF、分割点の数をD、線分の数をL、としたときに、 F+D+U=L+1 なるオイラーの定理を満たした場合に、すべての単位図
形の認識が終了したと判断することを特徴とする画像割
付装置における図形入力方法。3. The method according to claim 1, wherein in the eleventh step, the number of recognized unit figures is U, the number of figure points is F, the number of division points is D, the number of line segments is L, Then, when the Euler's theorem of F + D + U = L + 1 is satisfied, it is judged that the recognition of all the unit figures is completed, and the figure inputting method in the image allocating apparatus.
うにし、 第5の段階で、追跡開始線分を必ず分割線上の線分のう
ちから選択するようにしたことを特徴とする画像割付装
置における図形入力方法。4. The method according to claim 1, wherein in the fourth step, the starting point is always selected from among the dividing points, and in the fifth step, the tracking start line segment is always a line segment on the dividing line. A method of inputting a figure in an image allocating device, characterized in that it is selected from among the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24611989A JPH0748235B2 (en) | 1989-09-21 | 1989-09-21 | Figure input method in image allocator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24611989A JPH0748235B2 (en) | 1989-09-21 | 1989-09-21 | Figure input method in image allocator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03108072A JPH03108072A (en) | 1991-05-08 |
| JPH0748235B2 true JPH0748235B2 (en) | 1995-05-24 |
Family
ID=17143768
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP24611989A Expired - Lifetime JPH0748235B2 (en) | 1989-09-21 | 1989-09-21 | Figure input method in image allocator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0748235B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6312308B2 (en) | 2014-03-18 | 2018-04-18 | 信越石英株式会社 | Heat treatment method for synthetic quartz glass |
-
1989
- 1989-09-21 JP JP24611989A patent/JPH0748235B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6312308B2 (en) | 2014-03-18 | 2018-04-18 | 信越石英株式会社 | Heat treatment method for synthetic quartz glass |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03108072A (en) | 1991-05-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9619106B2 (en) | Methods and apparatus for simultaneous user inputs for three-dimensional animation | |
| EP1008112B1 (en) | Techniques for creating and modifying 3d models and correlating such models with 2d pictures | |
| US5974175A (en) | Image processing apparatus and method for detecting a contour of an object from images of a motion picture and extracting the object therefrom | |
| JP3647407B2 (en) | Image processing device | |
| JP2002202838A (en) | Image processing device | |
| US10573033B2 (en) | Selective editing of brushstrokes in a digital graphical image based on direction | |
| JP3564371B2 (en) | Figure editing apparatus and method | |
| JPH0748235B2 (en) | Figure input method in image allocator | |
| EP0428391A2 (en) | Method and apparatus for beautificating drawings | |
| JPH0646408B2 (en) | Split image processing method | |
| JP3361652B2 (en) | 3D figure arrangement input method and graphic system | |
| US20050276518A1 (en) | Computer graphics system and computer-implemented method for generating coarse-level meshes for multi-resolution surface editing | |
| JPH01126774A (en) | Graphic input device | |
| JPH06215074A (en) | Graphic processing device | |
| JP3198754B2 (en) | Graphic instruction receiving device for CAD system | |
| JP3481294B2 (en) | Automatic dimension line drawing system | |
| JPH09259294A (en) | Grid display method corresponding to display magnification | |
| JP3591892B2 (en) | Character string display method and character string display device | |
| JP3684218B2 (en) | Graphic information processing method and apparatus | |
| JP2667454B2 (en) | Plotting device | |
| Ouhyoung et al. | A three-dimensional building authoring tool based on line drawing understanding | |
| JP2746980B2 (en) | Figure generation method | |
| Jiawei et al. | Three-dimensional interactive pen based on augmented reality | |
| JP2578965B2 (en) | Graphic processing unit | |
| JPH061483B2 (en) | Normalized figure input device |