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
JPH0747328B2 - Figure editing method - Google Patents
[go: Go Back, main page]

JPH0747328B2 - Figure editing method - Google Patents

Figure editing method

Info

Publication number
JPH0747328B2
JPH0747328B2 JP62228711A JP22871187A JPH0747328B2 JP H0747328 B2 JPH0747328 B2 JP H0747328B2 JP 62228711 A JP62228711 A JP 62228711A JP 22871187 A JP22871187 A JP 22871187A JP H0747328 B2 JPH0747328 B2 JP H0747328B2
Authority
JP
Japan
Prior art keywords
point
image pattern
contour
stdata
pos
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
JP62228711A
Other languages
Japanese (ja)
Other versions
JPS6471767A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62228711A priority Critical patent/JPH0747328B2/en
Priority to US07/242,138 priority patent/US5073957A/en
Priority to DE3830990A priority patent/DE3830990A1/en
Priority to DE3844832A priority patent/DE3844832C2/en
Priority to DE3844735A priority patent/DE3844735C2/en
Publication of JPS6471767A publication Critical patent/JPS6471767A/en
Publication of JPH0747328B2 publication Critical patent/JPH0747328B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は電子的な文書図形の編集を行う、図形編集方法
に関する。
The present invention relates to a graphic editing method for electronically editing a document graphic.

「従来の技術」 電子的な文書図形の編集システムにおいて、文字や図形
パターンの表現効果を高めるため、またビットマップ図
形の輪郭を抽出するため、原画像パターンの縁取りを作
成する必要が種々の場合にある。ビットマップ図形の輪
郭を抽出する簡便な方法として、既に原画像パターンを
上下、左右方向に所定量のビットをシフトし論理ORした
図形を用意し、これと原画像パターンの論理EXORをと
り、原画像パターンの縁取りを得る方法などが提案され
ている。
"Prior Art" In an electronic document figure editing system, it is necessary to create a border of an original image pattern in various cases in order to enhance the effect of expressing characters and figure patterns and to extract the outline of a bitmap figure. It is in. As a simple method to extract the outline of the bitmap graphic, prepare a graphic that is a logical OR of the original image pattern by shifting a predetermined amount of bits in the vertical and horizontal directions, and take the logical EXOR of this and the original image pattern A method for obtaining a border of an image pattern has been proposed.

しかしながら、従来の技術においては得られた原画像パ
ターンの縁取りが原画像パターンの「外のり(原画像パ
ターンの非画像部分境界線)」を抽出するため、元の図
形の画像部と非画像部の比率を変化させてしまうことに
なるという欠点があった。
However, in the conventional technique, the edging of the obtained original image pattern extracts the “outer edge (non-image part boundary line of the original image pattern)” of the original image pattern, and therefore the image part and the non-image part of the original figure are There was a drawback that it would change the ratio of.

[目的] 以上の点に鑑み、本発明の目的は、画像パターンと、該
画像パターンを上下左右方向に夫々1ドットシフトした
画像パターンの反転画像パターンとの論理積をとり、得
られる夫々の画像パターンの論理和をとり、 更に、得られた輪郭画像パターンに対し、点列間を補間
する為の情報等を含め、前記輪郭画像パターンを表す座
標情報を記憶手段に記憶させることができる図形編集方
法を提供することにある。
[Object] In view of the above points, an object of the present invention is to obtain a logical product of an image pattern and an inverted image pattern of the image pattern obtained by shifting the image pattern by 1 dot in the vertical and horizontal directions, and obtaining each image. Graphic editing capable of taking the logical sum of the patterns and further storing the coordinate information representing the contour image pattern in the storage means, including the information for interpolating between the point sequences in the obtained contour image pattern To provide a method.

「実施例」 以下、図面を用いて本発明に係る図形編集装置を詳細に
説明する。
[Embodiment] Hereinafter, a graphic editing apparatus according to the present invention will be described in detail with reference to the drawings.

第1−1図は本発明を適用した図形編集装置のブロック
図である。尚、本発明における図形は文字、その他の画
像を含むものである。また、本発明の機能は実施例のよ
うに複数の機器から成るシステムにおいて構成されても
良いし、単体の機器において達成されても良いことは言
うまでもない。
FIG. 1-1 is a block diagram of a graphic editing apparatus to which the present invention is applied. The graphic in the present invention includes characters and other images. Further, it goes without saying that the functions of the present invention may be configured in a system including a plurality of devices as in the embodiment or may be achieved by a single device.

1は本発明の制御部であり、マイクロ・コンピュータ
2、RAM(Random Access Memory)、ROM等で構成される
内部メモリ6、ハード・ディスク、フロッピー・ディス
ク、あるいはカートリッジ・ディスク3、4、5等で構
成される外部記憶装置を備えている。
Reference numeral 1 is a control unit of the present invention, which includes a microcomputer 2, an internal memory 6 including a RAM (Random Access Memory), a ROM, a hard disk, a floppy disk, or cartridge disks 3, 4, 5, etc. And an external storage device.

7は画像入力装置で、原稿台に載置された画像をCCD等
の撮像素子によって電気信号化(A/D変換)する原稿リ
ーダである。
An image input device 7 is a document reader that converts an image placed on a document table into an electric signal (A / D conversion) by an image pickup device such as a CCD.

8は画像出力部で、レーザビームプリンタ等の電気信号
化された情報に基き記録材上に像記録する高速プリンタ
9である。
An image output unit 8 is a high-speed printer 9 for recording an image on a recording material based on information converted into an electric signal, such as a laser beam printer.

10は本装置の制御情報等を表示するCRT装置であって、
本願発明の画像処理表示部である。
10 is a CRT device for displaying control information of this device,
It is an image processing display unit of the present invention.

11はキーボードであって、これを操作することにより本
装置の動作指令などを行なう。また、12はCRT10上で画
像情報を加工指示するためのポインティング・デバイス
で、CRT10上のカーソルをX、Y方向任意に移動してコ
マンドメニュー上のコマンドイメージ等を選択してその
指示をしたり、CRT10上に表示された図形の任意の点を
座標情報として入力することができる。
Reference numeral 11 denotes a keyboard, which is used to issue operation commands for the apparatus. Further, 12 is a pointing device for instructing image information to be processed on the CRT 10, and the cursor on the CRT 10 is arbitrarily moved in the X and Y directions to select a command image or the like on the command menu to give an instruction. , Any point of the figure displayed on the CRT 10 can be input as coordinate information.

13はVRAMで表示部10に表示すべきデータをビットマップ
上に展開している。
A VRAM 13 expands the data to be displayed on the display unit 10 on a bitmap.

6はプログラム・メモリ(PMEM)で、編集処理のための
プログラムを適宜ハード・ディスク3から選択し実行す
る。
A program memory (PMEM) 6 appropriately selects and executes a program for editing processing from the hard disk 3.

本装置により入力、演算処理を施したデータはイメージ
メモリIMEM14上に展開することができ、前述出力部8よ
り出力する。
The data input and arithmetically processed by this device can be expanded on the image memory IMEM14 and output from the output unit 8.

15はBMU(ビット・マニュピュレーション・ユニット)
で、VRAM13、PMEM6、IMEM14相互間のデータ転送をCPUを
介さずに行うDMA転送が可能で、転送に際しビット単位
の論理演算、展開図形の回転、変倍等の機能を有してい
る。
15 is BMU (bit manipulation unit)
The VRAM13, PMEM6, and IMEM14 can perform data transfer between the VRAM13, PMEM6, and IMEM14 without going through the CPU, and at the time of transfer, they have a function of bit-by-bit logical operation, rotation of expanded figure, and scaling.

第1−2図は第1−1図で示すようなシステムを用いて
本装置を実現したときのシステムブロック図である。
FIG. 1-2 is a system block diagram when this apparatus is realized by using the system as shown in FIG. 1-1.

G0、G1、及びG2はグラフィックメモリとして第1−1図
IMEM14に各々別々に割り当てられており、画像入力装置
7から入力されるアナログ画像データはA/D変換して2
値化された後、先ずG0に一時記憶される。C1、C2、C3、
C4、C5、C6、C7及びC8は本装置を作動させるシステムソ
フトウェアで、第1−1図3の外部記憶装置よりプログ
ラムとしてPMEM6に読み出され、MPU2により制御・実行
される。M1及びM2は輪郭抽出部C1より解読された点情報
及び注目点抽出部C2により抽出される注目点情報を一時
記憶するためのメモリで、PMEM6に必要に応じて領域確
保される。V0、V1は表示用のビデオメモリで、VRAM13に
割り当てられ、CRT10に表示するに際し、表示選択部C3
により各々を表示するか否か切り換え可能なものであ
る。
G0, G1, and G2 are graphic memories as shown in Figure 1-1.
The analog image data input from the image input device 7 are separately assigned to the IMEM14 and converted into A / D signals to be converted into 2 signals.
After being digitized, it is first temporarily stored in G0. C1, C2, C3,
C4, C5, C6, C7 and C8 are system software for operating this apparatus, which are read out from the external storage device of FIG. 1-1 as a program to the PMEM6 and controlled / executed by the MPU2. M1 and M2 are memories for temporarily storing the point information decoded by the contour extraction unit C1 and the attention point information extracted by the attention point extraction unit C2, and an area is secured in the PMEM6 as necessary. V0 and V1 are video memories for display, which are assigned to VRAM13 and are displayed on the CRT10 at the time of display selection section C3.
It is possible to switch whether or not to display each by.

第2図(a)は前述の如く画像入力装置7より入力され
グラフィックメモリG0に一時記憶されたビットマップ2
値画像を示す。
FIG. 2 (a) shows the bitmap 2 which is input from the image input device 7 and is temporarily stored in the graphic memory G0 as described above.
A value image is shown.

第2図及び第3図フローチャートは輪郭抽出部C1によ
り、輪郭部分のビットのみを抽出する手段を示す。本輪
郭抽出方法において、最も重要な要素として、抽出され
る輪郭点は入力されたビットマップ画像(a)の輪郭の
「内のり」を抽出することである。もし、輪郭の「外の
り」を抽出すると、元の図形の画像部と非画像部の比率
を変化させてしまうことになるからである。
The flowcharts of FIGS. 2 and 3 show means for extracting only the bits of the contour portion by the contour extraction unit C1. In the present contour extraction method, the most important element is to extract the "inner edge" of the contour of the input bitmap image (a) as the contour point to be extracted. This is because if the “outer edge” of the contour is extracted, the ratio of the image portion and the non-image portion of the original figure will be changed.

ここに第2図(b)、(c)、(d)、及び(e)はIM
EM14上に(a)と同じサイズの領域を確保した別領域G
1、(f)は同様に確保した別領域G2である。また、第
3図各ステップにおける転写は第1−1図BMU15を機能
させて以下に述べるビット単位の論理演算とともに、メ
モリのブロック転送を行うものである。つまり、転送元
メモリをS、転送先メモリをD、[and]は論理積を、
[or]は論理和を、はSの否定を行う論理演算とする
と、 である。
2 (b), (c), (d), and (e) are IM
Another area G that secures an area of the same size as (a) on EM14
Reference numerals 1 and (f) denote another area G2 secured in the same manner. Further, the transfer in each step in FIG. 3 is performed by causing the BMU 15 in FIG. 1-1 to function and performing a logical operation in bit units described below and performing block transfer of the memory. That is, the transfer source memory is S, the transfer destination memory is D, and [and] is a logical product,
[Or] is a logical sum, and is a logical operation that negates S, Is.

上記のように輪郭抽出されたビットマップ(f)を
(g)で示すような輪郭追跡マスクを用いて輪郭追跡を
行ない、(h)のようなベクトル点座標情報を得ること
ができる。(g)におけるは輪郭追跡の中心点、〜
は輪郭追跡に際し次の輪郭点を決定するための優先度
順を表している。
The bitmap (f) extracted from the contour as described above is subjected to contour tracing using a contour tracing mask as shown in (g), and vector point coordinate information as shown in (h) can be obtained. In (g), the center point of contour tracking,
Indicates the order of priority for determining the next contour point in contour tracing.

第2図(a)〜(f)及び(h)は本処理部分の説明を
行う目的で、簡略化してあるが、実際にはビットマップ
サイズはこれより大きく、また、入力されるアナログ画
像は元来シャープなものでない為、第2図(i)に示す
如く直線部も、微細なノイズを含めたベクトル点の集合
となる。
2 (a) to (f) and (h) are simplified for the purpose of explaining this processing part, but the bitmap size is actually larger than this, and the input analog image is Since it is not originally sharp, the straight line portion is also a set of vector points including fine noise as shown in FIG. 2 (i).

前述の輪郭抽出部C1により求められた輪郭点は点座標の
集合として点座標記憶部M1に格納される。
The contour points obtained by the contour extracting unit C1 described above are stored in the point coordinate storage unit M1 as a set of point coordinates.

第4図(a)及び(b)は点座標記憶部M1において輪郭
を表現する点座標の集合を記憶するための輪郭情報及び
点情報の構造を示す図である。両者は各々配列として記
憶されている。
FIGS. 4A and 4B are diagrams showing the structure of the contour information and the point information for storing a set of point coordinates expressing the contour in the point coordinate storage unit M1. Both are stored as an array.

第4図(a)輪郭情報は以下の2種のメンバ、即ち、sp
noは点情報配列に於ける輪郭開始点を表す配列の番号、
effcntは文字図形パターンを構成している点座標配列の
要素数を表す。
The contour information in FIG. 4 (a) is the following two types of members, namely sp
no is the array number that represents the contour start point in the point information array,
effcnt represents the number of elements of the point coordinate array forming the character / graphic pattern.

第4図(b)点情報は以下の6種のメンバ、即ち、stno
は後述第8図における注目点の集合の説明で述べる注目
点配列の配列番号を示す値で、初期値として−1がセッ
トされる。pgnoはその点が何番めの輪郭に属するかを示
す値、即ち、輪郭情報配列の配列番号。flagは後述の整
形、単純化のため操作を反映するためのフラグ情報で、
初期値として0がセットされる。posはその点の座標情
報を(x、y)で表す値。prnoとnxnoは点情報のつなが
りを表す情報で、各々直前の点情報を示す点情報配列の
配列番号、及び直後の点情報を示す点情報配列の配列番
号がセットされる。
The point information shown in FIG. 4 (b) is the following six types of members, namely stno.
Is a value indicating the array element number of the target point array described in the description of the set of target points in FIG. 8 described later, and -1 is set as the initial value. pgno is a value indicating to which contour the point belongs, that is, the array element number of the contour information array. flag is flag information to reflect the operation for shaping and simplification described later,
0 is set as the initial value. pos is a value indicating the coordinate information of the point by (x, y). prno and nxno are information indicating the connection of point information, and the array element number of the point information array indicating the immediately preceding point information and the array element number of the point information array indicating the immediately subsequent point information are set.

説明を具体化する為、第4図(c)に示すような文字図
形パターン「旺」を記憶した場合の輪郭情報と点情報の
内容を第4図(d)及び(e)に示す。
To embody the description, the contents of the contour information and the point information in the case of storing the character / graphic pattern "Otsu" as shown in FIG. 4 (c) are shown in FIGS. 4 (d) and 4 (e).

第4図(d)は(c)に示す文字図形パターン「旺」が
4つの輪郭で構成されていることを表しており、例えば
輪郭の1番目stpoly[0]の場合、spnoには輪郭開始点
を表す点情報配列における配列の番号0を、qffcntには
1つ目の輪郭を構成する点座標配列の要素数aがセット
される。
FIG. 4 (d) shows that the character / graphic pattern "Oh" shown in FIG. 4 (c) is composed of four contours. For example, in the case of the first stpoly [0] of the contour, the contour starts in spno. The array number 0 in the point information array representing a point is set to qffcnt, and the number a of elements of the point coordinate array forming the first contour is set.

第4図(e)は(c)に示す文字図形パターン「旺」を
構成する点情報配列の内容を表しており、例えばP
[0]の場合、stdata[0]のstnoには初期値の−1、
pgnoには何番めの輪郭に属するかを示す0、flagには初
期値の0、posには点座標(x,y)、prnoには直前の点情
報を示すa−1及びnxnoには直後の点情報を示す1がセ
ットされる。
FIG. 4 (e) shows the contents of the point information array forming the character / graphic pattern "Owa" shown in FIG. 4 (c).
In the case of [0], the stno of stdata [0] has an initial value of -1,
pgno is 0 indicating which number of contours it belongs to, flag is an initial value of 0, pos is point coordinates (x, y), prno is the previous point information a-1 and nxno are 1 indicating the point information immediately after is set.

第9図は本システムがもつ各機能の実行開始を指定する
機能選択部C4と表示の切換を指定する表示選択部C3を示
す図で、ポインティング・デバイス12、またはキーボー
ド11の入力により、その機能を任意に選択することがで
きる。
FIG. 9 is a diagram showing a function selection section C4 for designating the start of execution of each function of the system and a display selection section C3 for designating the switching of the display. The functions are selected by inputting the pointing device 12 or the keyboard 11. Can be arbitrarily selected.

ファンクション1が入力されるとプログラム1が作動
し、そのコマンドを実行することができる。例えば、注
目点抽出部C2により、ファクション1に追加選択、ファ
ンクション2に新規選択、各機能実行部C5により、ファ
ンクション3に区間削除、ファンクション6に整列、表
示選択部C3により、ファンクション9にオリジナル表
示、ファンクション10に編集中のベクタ表示が割り当て
られている。
When the function 1 is input, the program 1 operates and the command can be executed. For example, the attention point extraction unit C2 additionally selects the function 1, the function 2 is newly selected, the function execution unit C5 deletes the function 3 section, the function 6 is aligned, and the display selection unit C3 originals the function 9. The vector display being edited is assigned to display and function 10.

ファンクション1、またはファンクション2が入力され
ると、後述第6図において説明する注目点を抽出するプ
ログラムが作動し、他のコマンドが指定されるまで連続
して注目点を抽出することが出来る。ファクション3が
入力されると、後述第11図において説明する区間削除を
行うことができる。ファンクション6が入力されると、
後述第14図及び第15図において説明する整列を行うこと
ができる。ファンクション9が入力されると、後述第5
図において説明する輪郭を表現する点座標の集合を表示
することができる。ファンクション10が入力されると後
述第13図において説明する輪郭を表現する点座標の集合
と、これに関連づけられた注目点の集合を直線で表示す
ることができる。これらは各機能実行部C5、及び表示部
C7及びC8にて実行される。
When the function 1 or the function 2 is input, a program for extracting a point of interest, which will be described later with reference to FIG. 6, operates and the point of interest can be continuously extracted until another command is specified. When the faction 3 is input, the section deletion described in FIG. 11 described later can be performed. When Function 6 is input,
The alignment described in FIGS. 14 and 15 below can be performed. When the function 9 is input, the fifth item will be described later.
It is possible to display a set of point coordinates representing the contour described in the figure. When the function 10 is input, it is possible to display a set of point coordinates expressing a contour, which will be described later with reference to FIG. These are each function execution unit C5 and display unit
It is executed in C7 and C8.

前述第9図においてファンクション9が入力されると、
表示選択部C3において表示部1 C7のオリジナル表示が選
択される。
When the function 9 is input in FIG. 9 described above,
The original display of the display unit 1 C7 is selected in the display selection unit C3.

第5図は輪郭を表現する点座標の集合を表示する表示部
1 C7の作用を説明するフローチャートで、step1では表
示する輪郭の順を制御する制御変数poly noに初期値と
して0がセットされる。
FIG. 5 shows a display unit that displays a set of point coordinates that represent the contour.
1 In the flowchart explaining the operation of C7, in step 1, the control variable poly that controls the order of the contours to be displayed An initial value of 0 is set to no.

step2では第4図(d)に示す輪郭情報の終了を判定
し、輪郭終了の際は表示を終了する。
In step 2, the end of the contour information shown in FIG. 4D is determined, and when the contour is completed, the display is terminated.

step3、step4、及びstep5は各輪郭開始点に於ける初期
設定で、変数st no及びcur noには輪郭開始点の点情
報配列番号、pos eには前記輪郭開始点の座標値がセ
ットされる。
Step3, step4, and step5 are initial settings at each contour start point, and the variable st no and cur no is the point information array number of the contour start point, pos The coordinate value of the contour start point is set in e.

step6、step7、及びstep8はstep9における直線表示関数
LINEの引数として直線表示開始点pos s、直線表示終
了点pos eをセットする。
step6, step7, and step8 are straight line display functions in step9
Line display start point pos as an argument of LINE s, straight line display end point pos Set e.

ここに関数LINE(V0,pos s,pos e)におけるV0は表
示メモリとして第1−2図V0を指定し、pos s及びpos
eはともに前述表示メモリV0上の座標値(x,y)を表
すものである。
Where the function LINE (V0, pos s, pos V0 in e) specifies V0 in Fig. 1-2 as the display memory, and pos s and pos
Both e represent the coordinate value (x, y) on the display memory V0.

step10は現在表示中の輪郭の終了を判定する繰り返し制
御部である。終了の場合、step11において制御変数poly
noを1加算してstep2へ制御を移し、終了でない場
合、即ち、輪郭が継続している場合、step6へ制御を移
す。
Step 10 is a repetitive control unit that determines the end of the currently displayed contour. When finished, control variable poly in step 11
When no is added by 1, the control is moved to step 2, and when it is not completed, that is, when the contour is continued, the control is moved to step 6.

前述第9図においてファンクション1、またはファンク
ション2が入力されると、注目点抽出部C2が起動され、
点座標の集合より1つ、または複数の注目点を抽出する
ことができる。
When the function 1 or the function 2 in FIG. 9 is input, the attention point extraction unit C2 is activated,
One or a plurality of points of interest can be extracted from the set of point coordinates.

第6図は点座標の集合より1つ、または複数の注目点を
抽出する注目点抽出部C2を説明するフローチャートであ
る。演算子[ ]はA[B]としたとき、配列Aにおけ
る配列要素Bの内容を取り出し、演算子 . はA.Bと
したとき、データAに属するメンバBの内容を取り出
す。
FIG. 6 is a flow chart for explaining an attention point extraction unit C2 which extracts one or a plurality of attention points from a set of point coordinates. When the operator [] is A [B], the contents of the array element B in the array A are taken out, and the operator. Let AB be the content of member B belonging to data A.

step1は初期設定である。即ち、ポインティング・デバ
イス12によって表示部のある1点として指定された座標
値をposにセットする。検索する輪郭の順を制御する制
御変数poly noに0をセットする。抽出されるべき座標
点候補とposとの2点間の距離を表す変数minに十分に大
きい値として10000をセットする。また、本フローの終
了時にセットされる注目点配列番号を変数noに対し初期
値として−1をセットする。これはフローで該当する中
が得られなかった場合、そのままエラー値とするためで
ある。
step1 is the initial setting. That is, the coordinate value designated by the pointing device 12 as one point on the display is set to pos. Control variable poly that controls the order of contours to be searched Set 0 to no. 10000 is set as a sufficiently large value in a variable min representing the distance between two points of the coordinate point candidate to be extracted and pos. Also, -1 is set as the initial value for the variable no of the attention point array number set at the end of this flow. This is because if the flow does not satisfy the condition, the error value is used as it is.

step2は第4図(d)に示す輪郭情報の終了を判定し、
輪郭終了の際は後述のstep13へ制御が移る。
step2 determines the end of the contour information shown in FIG. 4 (d),
When the contour ends, the control shifts to step 13 described later.

step3は各輪郭開始点における初期設定で、点情報配列
の順を制御する制御変数st、及び変数snには輪郭開始点
の点情報配列番号がセットされる。
Step 3 is the initial setting at each contour start point, and the point information array number of the contour start point is set in the control variable st and the variable sn that control the order of the point information array.

step4及びstep5はpos及び判定の対象となる現在座標std
ata[st].posの(x,y)座標値各々が表示部の文字図形
パターンを構成する座標系の範囲内にあるか否か、各成
分毎の距離を比較する関数EXTENTを実行する。その結果
が偽(=0)ならば後述のstep10へ、結果が真(=1)
ならば次のステップへ制御が移る。
step4 and step5 are pos and current coordinate std to be judged
A function EXTENT that compares the distances of the respective components is executed to determine whether or not each (x, y) coordinate value of ata [st] .pos is within the range of the coordinate system that constitutes the character / graphic pattern of the display unit. If the result is false (= 0), go to step 10 described later and the result is true (= 1).
If so, control is passed to the next step.

step6は候補となる点座標が既に削除されているか否か
の判定を行い、削除されている点ならば後述のstep10に
制御を移す。
In step 6, it is determined whether or not the candidate point coordinates have already been deleted, and if it is a deleted point, control is transferred to step 10 described later.

step7は比較対象になっている点情報配列中の座標値std
ata[st].posと前述ポインティング・デバイスにより
指定された座標値posとの2点間の距離を計算し、その
結果を変数distにセットする。
step7 is the coordinate value std in the point information array that is the comparison target
The distance between two points of ata [st] .pos and the coordinate value pos designated by the pointing device is calculated, and the result is set in the variable dist.

step8は前述の変数minとstep7により得られた変数dist
を比較する。dist<minが成り立つ場合、step9にて代入
計算min=dist及びno=stを実行する。即ち、変数noに
はその時点で抽出点候補の点情報配列番号がセットされ
る。step10は制御変数stに次の点情報配列番号stdata
[st].nxnoを代入し、step11は現在検索中の輪郭の終
了を判定する繰り返し制御部である。終了の場合、step
12において制御変数poly noを1加算し、step2へ制御
を移し、終了でない、即ち、輪郭が継続している場合、
step4へ制御を移す。
step8 is the variable min and the variable dist obtained by step7
To compare. If dist <min is satisfied, substitution calculation min = dist and no = st are executed in step 9. That is, the point information array number of the extraction point candidate at that time is set in the variable no. step10 is the next point information array number stdata in the control variable st
[St] .nxno is substituted, and step 11 is a repetition control unit that determines the end of the contour currently being searched. When finished, step
Control variable poly at 12 If 1 is added to no and control is transferred to step2 and it is not finished, that is, the contour continues,
Transfer control to step4.

step13は以上の演算により、抽出点が得られたか否かを
判定する。つまり、step13においてnoを値が−1であれ
ば、該当する抽出点は存在しないことが判定され、この
場合、step16にて警告音を出す等する。
Step 13 determines whether or not the extraction points have been obtained by the above calculation. That is, if the value of no in step 13 is -1, it is determined that the corresponding extraction point does not exist, and in this case, a warning sound is output in step 16.

step14は本処理において新たに注目点が抽出された場合
の後述第8図に示す処理である。
Step 14 is a process shown in FIG. 8 described later when a new target point is extracted in this process.

step15は注目点として抽出されたことを、後述第7図に
示す図のように、画面上に小円を表示する等である。
Step 15 is to display that a small circle is displayed on the screen, as shown in FIG. 7, which will be described later.

第8図は文字図形パターン「旺」を表現する点座標の集
合M1と、注目点として第6図で示された手段によってst
data[n]、stdata[n+a]、stdata[n+b]、st
data[n+c]、及びstdata[n+d]が抽出された場
合の、注目点の集合M2を関連させる構造を示す図であ
る。また、前述第6図の説明におけるstep15の1例を第
7図に示す。
FIG. 8 shows a set M1 of point coordinates expressing a character / graphic pattern "Otsu" and st by the means shown in FIG.
data [n], stdata [n + a], stdata [n + b], st
It is a figure which shows the structure which associates the set M2 of attention points when data [n + c] and stdata [n + d] are extracted. Further, FIG. 7 shows an example of step 15 in the explanation of FIG. 6 described above.

注目点の集合は前述第4図(b)において説明される点
情報と同様な構造を持つ情報の配列として記憶される
が、注目点の集合の場合、メンバprnoには注目点として
点情報配列のどの要素が抽出されたのか関連させるため
の点情報配列番号がセットされる。また、その時点での
注目点配列要素数を表す変数cstcntがあり、初期値とし
て0がセットされる。
The set of points of interest is stored as an array of information having the same structure as the point information described in FIG. 4 (b), but in the case of the set of points of interest, the member prno has a point information array of points of interest. A point information array element number for associating which element of is extracted is set. Further, there is a variable cstcnt representing the number of target point array elements at that time, and 0 is set as an initial value.

第6図に示す手段によって抽出された点の点情報配列番
号がn、その時点での変数cstcnt=jであった場合、第
8図に示す如く、点座標情報stdata[n]及び注目点情
報stackp[j]には、以下のように両者を関連させる情
報が各々セットされる。
When the point information array number of the points extracted by the means shown in FIG. 6 is n and the variable cstcnt = j at that time, as shown in FIG. 8, point coordinate information stdata [n] and attention point information In the stackp [j], information relating the both is set as follows.

即ち、注目点配列jにおける情報として、stackp
[j].flagに抽出された点のstdata[n].flag、stac
kp[j].posにstdata[n].pos、及びstackp[j].p
rnoに点情報配列番号nが記録される。また、点情報配
列nにおける情報としてstdata[n].stnoにはその時
点で注目点配列要素数cstcntの内容(=j)がセットさ
れると同時にstdata[n].flagには注目点として抽出
されたことを示すフラグビットOR SELがセットされ
る。
That is, as information in the attention point array j, stackp
Stdata [n] .flag, stac of the points extracted in [j] .flag
stdata [n] .pos in kp [j] .pos and stackp [j] .p
The point information array number n is recorded in rno. As the information in the point information array n, the content (= j) of the number of elements of the point of interest array cstcnt is set in stdata [n] .stno at the same time, and is extracted as the point of interest in stdata [n] .flag. Flag bit OR SEL is set.

以降、点stdata[n]に対し後述する整形、単純化の為
の操作が与えられた場合にはstackp[j]の内容が更新
される。さらに編集の終了など注目点配列の内容を点情
報配列に反映させる場合はstackp[cstcnt]の内容をst
data[stackp[cstcnt].prno]にセットすれば良いこ
とになる。
After that, when an operation for shaping and simplification described later is given to the point stdata [n], the contents of stackp [j] are updated. If you want to reflect the contents of the target point array in the point information array, such as when editing is complete, add the contents of stackp [cstcnt] to st
It should be set in data [stackp [cstcnt] .prno].

第10図は指定された操作を行う区間を注目点記憶部M2よ
り特定するための手段を説明するフローチャートであ
る。
FIG. 10 is a flow chart for explaining the means for specifying the section in which the specified operation is performed from the attention point storage unit M2.

step1は本機能の初期設定である。即ち、ポインティン
グ・デバイス12によって表示部のある1点として指定さ
れた座標値をposにセットする。検索する注目点配列の
順を制御する制御変数st noに0をセットする。区間を
特定されるべき座標候補点とposとの2点間の距離を表
す変数minに十分に大きな値として10000をセットする。
また、本フローの終了時にセットされる注目点配列番号
を変数noに対し初期値として−1をセットする。これは
フローで該当する注目点が得られなかった場合、そのま
まエラー値とするためである。
step1 is the initial setting of this function. That is, the coordinate value designated by the pointing device 12 as one point on the display is set to pos. Control variable st that controls the order of the target point array to be searched Set 0 to no. 10000 is set as a sufficiently large value in a variable min representing the distance between two points, which are the coordinate candidate point and pos that should specify the section.
Also, -1 is set as the initial value for the variable no of the attention point array number set at the end of this flow. This is because when the corresponding point of interest is not obtained in the flow, the error value is used as it is.

step2は前述注目点配列要素数cstcntと比較することに
よって、現在検索中の注目点配列の終了を判定する。
In step 2, the end of the point of interest array currently being searched is judged by comparing with the number of elements of the point of interest array cstcnt.

step3は中持点配列要素中の点情報配列番号を変数o n
oにセットする。
In step 3, the point information array number in the middle-point array element is the variable o. n
Set to o.

step4は候補となる点座標が、注目点として抽出されて
いたか否かを判定し、抽出されていなかったならば、本
機能として適当でないので終了する。
Step 4 determines whether or not the candidate point coordinates have been extracted as the point of interest, and if not extracted, it is not appropriate for this function and ends.

step5は候補となる点座標が既に削除されているか否か
の判定を行い、削除されているならば、後述のstep11へ
制御を移す。
In step 5, it is determined whether or not the candidate point coordinates have already been deleted, and if they have been deleted, control is transferred to step 11 described later.

step6、step7はpos及び判定の対象となる現在座標stack
p[st no].posの(x,y)座標値各々が、表示部の文字
図形パターンを構成する座標系の範囲内にあるか否か、
各成分毎の距離を比較する関数EXTENTを実行する。その
結果が偽(=0)ならば、範囲外であり、後述のstep11
へ制御を移し、結果が真(=1)ならば範囲内にあり、
次のステップへ制御が移る。
step6 and step7 are pos and the current coordinate stack to be judged
PST whether each of the (x, y) coordinate values of [no] .pos is within the range of the coordinate system that constitutes the character / graphic pattern of the display unit,
Execute the function EXTENT that compares the distance for each component. If the result is false (= 0), it is out of range, and step 11 described later.
If the result is true (= 1), it is within the range,
Control is passed to the next step.

step8は比較対象になっている注目点配列中の座標値sta
ckp[st no].posとposの2点間の距離を計算し、その
結果を変数distにセットする。
step8 is the coordinate value sta in the point of interest array to be compared.
ckp [st no]. Calculate the distance between two points, pos and pos, and set the result in the variable dist.

step9は前述の変数minとstep8により得られたへ数dist
を比較する。dist<minが成り立つ場合、step10におい
て代入計算min=dist、no=st noを実行する。即ち、
変数noにはその時点での区間を特定するための注目点配
列番号がセットされる。
step9 is the variable dist obtained by the above-mentioned variable min and step8 dist
To compare. If dist <min holds, substitution calculation min = dist, no = st in step 10. Execute no. That is,
The variable no is set to the target point array number for specifying the section at that time.

step11はstep2において注目点配列が終了であると判断
されるまで、制御変数st noを1加算し、step2へ制御
を移す。
Step 11 uses the control variable st until the attention point array is judged to be the end in step 2. Add 1 to no and transfer control to step 2.

前述第9図においてファンクション3が入力されると、
各機能実行部C5が起動され、区間削除を行うことができ
る。
When the function 3 is input in FIG. 9 described above,
Each function execution unit C5 is activated, and the section can be deleted.

第11図は輪郭を表現する点座標の集合と、これに関連づ
けられた注目点の集合に対し、指定された操作を反映さ
せる構造を示す図である。
FIG. 11 is a diagram showing a structure in which a specified operation is reflected on a set of point coordinates expressing a contour and a set of target points associated with the set.

以下、指定された操作が区間削除の場合の処理を第11図
における図を用いて説明する。
The process when the designated operation is the section deletion will be described below with reference to the diagram in FIG.

stdata[n]から、stdata[n+m]までのデータのう
ち、第6図に示す手段を用いて、例えば注目点stdata
[n+a]、stdata[n+b]、stdata[n+c]、及
びstdata[n+d]を抽出する。これらを抽出する順番
は任意で良いが、説明簡単のためこの4点を抽出する直
前の変数cstcnt=j、4点がn+a、n+b、n+c、
n+dの順に抽出された場合を仮定する。例えば、座標
点stdata[n+a]が抽出され、注目点情報stackp
[j]と関連づけられる方法は前述第8図において説明
したとおりである。本処理の直後、変数cstcntは1加算
され、同様に座標点stdata[n+b]、[n+c]、
[n+d]が抽出された後、変数cstcntには値j+4が
セットされることになる。
Of the data from stdata [n] to stdata [n + m], using the means shown in FIG.
[N + a], stdata [n + b], stdata [n + c], and stdata [n + d] are extracted. The order of extracting these may be arbitrary, but for the sake of simplicity of explanation, the variable cstcnt = j immediately before extracting these four points, four points are n + a, n + b, n + c,
It is assumed that they are extracted in the order of n + d. For example, coordinate point stdata [n + a] is extracted and attention point information stackp
The method associated with [j] is as described in FIG. Immediately after this processing, 1 is added to the variable cstcnt, and similarly, coordinate points stdata [n + b], [n + c],
After [n + d] is extracted, the value j + 4 is set in the variable cstcnt.

次に、ポインティング・デバイス12により、点n+a、
n+bで結ばれた直線上に近い任意の点が指定される
と、第10図で示した手段を用いて点情報配列てのシーケ
ンスにおいて直前の注目点、即ち、stdata[n+a]と
直後の注目点、即ち、stdata[n+b]が指定された操
作を行う区間として、注目点の集合より特定される。
Next, with the pointing device 12, the points n + a,
When an arbitrary point close to the straight line connected by n + b is designated, the point of interest immediately before the point information array, that is, stdata [n + a] and the point of interest immediately after the point information array are sequenced using the means shown in FIG. The point, that is, stdata [n + b], is specified as a section in which the specified operation is performed from the set of points of interest.

区間が特定されると、stdata[n+a]からstdata[n
+b]までの点座標全てを結んでいた直線群が消去さ
れ、新たにstdata[n+a].posとstdata[n+b].p
osを結ぶ直線が表示される。点座標の集合stdataと注目
点の集合stackpに本操作を反映させる場合、以下の2段
階の処理を行う。まず第1段階として、stdata[n+
a]に対応する注目点配列のstackp[j].flagに、区
間削除開始フラグ(ST SDEL)を、stdata[n+b]に
対応する注目点配列のstackp[j+1].flagに区間削
除終了フラグ(ST EDEL)をセットする。次に、ポイン
ティング・デバイス12で新たに区間が指定されるか、フ
ァンクションキーによって他のコマンドが選択される
と、第2段階として第12図に示すように、stackp
[j].flagから区間削除開始フラグ(ST SDEL)が消
去され、stackp[j+1].flagから区間削除終了フラ
グ(ST EDEL)が消去される。また、stdata[n+a+
1]からstdata[n+b−1]までのflagに削除フラグ
(OR DEL)がセットされる。このように2段階で行う
理由はオペレータが誤って、意図する以外の区間を指定
した場合の回復のためであり、次の動作を起す前であれ
ば、可逆であることを目的としている。また、区間削除
コマンドは他のコマンドが新たに指定されるまで連続指
定が可能であり、ポインティング・デバイス12により他
の区間、例えばstdata[n+b]とstdata[n+c]の
間、stdata[n+c]とstdata[n+d]の間が指定さ
れると、以上の処理を繰り返し行うことが出来る。
When the section is specified, stdata [n + a] to stdata [n
+ B], all the line coordinates connecting point coordinates are deleted, and new stdata [n + a] .pos and stdata [n + b] .p
A straight line connecting os is displayed. When this operation is reflected in the set of point coordinates stdata and the set of target points stackp, the following two-stage processing is performed. First, as the first step, stdata [n +
section deletion start flag (ST) in stackp [j] .flag of the target point array corresponding to [a]. SDEL) is added to stackp [j + 1] .flag of the attention point array corresponding to stdata [n + b] and the section deletion end flag (ST EDEL) is set. Next, when a new section is designated by the pointing device 12 or another command is selected by the function key, as shown in FIG. 12 as the second step, stackp
The section deletion start flag (ST SDEL) is deleted, and the section deletion end flag (ST EDEL) is deleted. Also, stdata [n + a +
1] to stdata [n + b-1] in the deletion flag (OR DEL) is set. The reason why the operation is performed in two stages is to recover when the operator mistakenly specifies a section other than the intended one, and the purpose is to be reversible before the next operation is performed. The section deletion command can be continuously specified until another command is newly specified, and the pointing device 12 sets another section, for example, stdata [n + c] between stdata [n + b] and stdata [n + c]. When the space between stdata [n + d] is designated, the above processing can be repeated.

前述第9図においてファンクション6が入力されると、
各機能実行部C5が起動され、指定された区間において整
列を行うことができる。
When the function 6 is input in FIG. 9 described above,
Each function executing unit C5 is activated, and the alignment can be performed in the designated section.

第14図及び第15図は特定された注目点の座標を、基準と
なる座標値の座標成分と置き換え、かつ、前述区間内に
ある点座標の集合を全て省略するための構造を示した図
である。
14 and 15 are diagrams showing a structure for replacing the coordinates of the specified point of interest with the coordinate component of the reference coordinate value and omitting all the point coordinate sets within the aforementioned section. Is.

第14図に示す図で、例えば点A、B、C、‥‥、Lにつ
いて、区間AB、CD、KLをある太さを持った水平線、区間
DE、FG、HI、JKをある太さを持った垂直線として編集
し、区間AB、CD、KLを任意のy座標に整列させ、区間の
中の輪郭上の点を削除、区間DE、FG、HI、JKを任意のx
座標に整列させ、区間の中の輪郭上の点を削除する場合
を例として以下に示す。
In the diagram shown in FIG. 14, for example, for points A, B, C, ..., L, sections AB, CD, and KL are horizontal lines and sections having a certain thickness.
Edit DE, FG, HI, and JK as vertical lines with a certain thickness, align sections AB, CD, and KL with arbitrary y-coordinates, delete points on contours in sections, and sections DE and FG , HI, JK for any x
An example is shown below in which the points on the contour are deleted by aligning the coordinates.

stdata[n]から、stdata[n+m]までのデータのう
ち、第6図に示す手段を用いて、例えばAの近辺の点st
data[n+a]、Bの近辺の点stdata[n+b]、‥
‥、Lの近辺の点stdata[n+1]を抽出する。これを
抽出する順番は任意で良いが、説明簡単のためこの12点
を抽出する直前の変数cstcnt=j、12点がn+a、n+
b、‥‥、n+1の順に抽出された場合を仮定する。例
えば、座標点stdata[n+a]が抽出され、注目点情報
stackp[j]と関連づけられる方法は前述第8図におい
て説明したとおりである。本処理の直後、変数cstcntは
1加算され、同様に座標点stdata[n+b]、‥‥、st
data[n+1]が抽出された後、変数cstcntには値j+
12がセットされることになる。この状態でポインティン
グ・デバイス12、またはキーボード11によってファンク
ション6が入力され整列のコマンドが選択されると画面
上の矢印カーソルがクロスフヘカーソルになり、例え
ば、区間ABの直線上に近い任意の点が前述カーソルによ
って指定された場合、第10図で示した手段を用いて点情
報配列でのシーケンスにおいて直前の注目点、即ち、st
data[n+a]と直後の注目点、即ち、stdata[n+
b]が指定された操作を行う区間として、注目点の集合
より特定される。
Of the data from stdata [n] to stdata [n + m], using the means shown in FIG. 6, for example, a point st near A
data [n + a], points near B, stdata [n + b], ...
The point stdata [n + 1] near L is extracted. The order of extracting this may be arbitrary, but for the sake of simplicity of explanation, the variable cstcnt = j immediately before extracting these 12 points, 12 points are n + a, n +
It is assumed that they are extracted in the order of b, ..., N + 1. For example, the coordinate point stdata [n + a] is extracted, and the attention point information
The method associated with stackp [j] is as described in FIG. Immediately after this processing, 1 is added to the variable cstcnt, and similarly the coordinate points stdata [n + b], ..., St
After data [n + 1] is extracted, the value j + is stored in the variable cstcnt.
12 will be set. In this state, when the function 6 is input by the pointing device 12 or the keyboard 11 and the alignment command is selected, the arrow cursor on the screen becomes a crosshair cursor. For example, an arbitrary point near the straight line of the section AB is displayed. When specified by the above-mentioned cursor, the point of interest immediately before the sequence in the point information array, that is, st
The point of interest immediately after data [n + a], that is, stdata [n +
b] is specified as a section for performing the specified operation from the set of attention points.

ただし、この場合本機能では変更をすべき座標成分を特
定する手段を以下の方法で決定している。即ち、第16図
において図中のクロスヘアカーソルの位置が基準座標と
して固定され、P1とP2の間が指定された操作を行う区間
として特定された場合、各々の(x、y)座標を用い
て、slp=(P1.pos.y−P2.pos.y)/(P1.pos.x−P2.po
s.x)、slp=slp*slpの計算式が実行される。slpの値
が、0.25以下ならばy座標の整列とみなし、それ以外は
x座標の整列とみなす。従って、P1とP2はP1′とP2′の
ようにX座標に整列される。ただし、斜線で示した部
分、即ち、slpの値が、0.25以上かつ4以下の場合につ
いてはx座標y座標のどちらに整列するべきか判断しか
ねるため、このコマンドは何もしない。
However, in this case, in this function, the means for specifying the coordinate component to be changed is determined by the following method. That is, in FIG. 16, when the position of the crosshair cursor in the drawing is fixed as the reference coordinate and the section between P1 and P2 is specified as the section for performing the specified operation, each (x, y) coordinate is used. , Slp = (P1.pos.y−P2.pos.y) / (P1.pos.x−P2.po
sx), slp = slp * slp is executed. If the value of slp is 0.25 or less, it is regarded as the y coordinate alignment, and otherwise it is regarded as the x coordinate alignment. Therefore, P1 and P2 are aligned to the X coordinate like P1 'and P2'. However, if the slanted portion, that is, the value of slp is not less than 0.25 and not more than 4, it cannot be determined which of the x coordinate and the y coordinate should be aligned, and this command does nothing.

上記により第14図においてstdata[n+a]とstdata
[n+b]の間が特定されるとslp=(stdata[n+
a].pos.y−stdata[n+b].pos.y)/(stdata[n
+a].pos.x−stdata[n+b].pos.x)、slp=slp*
slpの計算式が実行され、slpの値は容易に0.25以下であ
ると判断出来るのでy座標に整列される。この整列の処
理は第11図及び第12図において説明する区間削除の機能
と点の移動という機能により構成されている。従って、
stdata[n+a+1]からstdata[n+b−1]までを
区間削除の機能を用いるため、stackp[j].flagに区
間削除開始フラグ(ST SDEL)が、stackp[j+1].f
lagに区間削除終了フラグ(ST EDEL)がセットされ
る。さらに、変換すべき座標成分のstdata[n+a].p
os.yの値と基準となる座標成分のpos.yの値が違ってい
るならば、注目点配列の内容が点情報配列に反映される
際、点が移動していることを表すためにstackp[j].f
lagに点移動フラグ(ST MOV)がセットされ基準となる
座標成分posの中味が変更すべきstackp[j].posにセ
ットされる。この点移動の処理はstdata[n+b]につ
いても同様である。
As a result of the above, in FIG. 14 stdata [n + a] and stdata
When the interval between [n + b] is specified, slp = (stdata [n +
a] .pos.y-stdata [n + b] .pos.y) / (stdata [n
+ A] .pos.x-stdata [n + b] .pos.x), slp = slp *
The calculation formula of slp is executed, and the value of slp can be easily determined to be 0.25 or less, so that it is aligned with the y coordinate. This alignment process is composed of the section deletion function and the point movement function described in FIGS. 11 and 12. Therefore,
Since the section deletion function is used from stdata [n + a + 1] to stdata [n + b-1], the section deletion start flag (ST SDEL) is stackp [j + 1] .f
Section deletion end flag (ST EDEL) is set. Furthermore, stdata [n + a] .p of the coordinate component to be converted
If the value of os.y and the value of pos.y of the reference coordinate component are different, when the contents of the point of interest array is reflected in the point information array, it indicates that the point is moving. stackp [j] .f
Point movement flag (ST MOV) is set and the contents of the reference coordinate component pos are set to stackp [j] .pos to be changed. This point movement process is the same for stdata [n + b].

本コマンドは別のファンクションが選択されるまで連続
指示が可能であるので注目点配列の内容が点情報配列に
反映されるのは次の区間が特定された場合と別のファン
クションキーが入力された場合である。この時の処理は
第11図及び第12図の説明で述べた区間削除の場合と同様
である。但し、点の移動についてはstackp[j].posの
値がstdata[n+a].posにセットされ、stackp
[j].flagから点移動フラグ(ST MOV)が消去され
る。反映された結果を第15図に示す。
Since this command can be continuously instructed until another function is selected, the contents of the point of interest array are reflected in the point information array when the next section is specified and a different function key is entered. This is the case. The processing at this time is similar to the case of the section deletion described in the description of FIGS. 11 and 12. However, when moving points, the value of stackp [j] .pos is set to stdata [n + a] .pos
[J] .flag to point movement flag (ST MOV) is deleted. The reflected results are shown in FIG.

また、クロスヘアカーソルで基準座標が固定されても、
キーボード11の矢印キーにより上下左右に1ドットずつ
移動させて微調整を行うことができる。この時、基準座
標からのカーソルの移動量が画面の所定の位置に表示さ
れる。従って区間ABを整列した後、矢印キーによって区
間CDまで移動させると、結果的にstdata[n+c].po
s.y−stdata[n+b].pos.yとして、文字図形パター
ンの直線の太さを求めることができる。この処理によ
り、他の直線について整列する場合においても容易に直
線の太さを均一にすることが可能となる。
Also, even if the reference coordinates are fixed with the crosshair cursor,
The arrow keys on the keyboard 11 can be used to move one dot up, down, left or right to make fine adjustments. At this time, the amount of movement of the cursor from the reference coordinates is displayed at a predetermined position on the screen. Therefore, after aligning the section AB and moving to the section CD with the arrow keys, as a result, stdata [n + c] .po
The thickness of the straight line of the character / graphic pattern can be obtained as sy-stdata [n + b] .pos.y. By this processing, it becomes possible to easily make the thickness of the straight line uniform even when the other straight lines are aligned.

以上区間ABを例にして述べたが、他の区間についても同
様である。
The section AB has been described above as an example, but the same applies to other sections.

前述第9図においてファンクション10が入力されると、
表示選択部C3において表示部2 C8の編集中のベクタ表示
が選択される。
When the function 10 is input in FIG. 9 described above,
In the display selection section C3, the vector display being edited on the display section 2C8 is selected.

第13図は輪郭を表現する点座標の集合と、これに関連づ
けられた注目点の集合を直線で表示する表示部の作用を
説明するフローチャートである。
FIG. 13 is a flow chart for explaining the operation of the display unit that displays the set of point coordinates expressing the contour and the set of points of interest associated with the set as straight lines.

step1は表示する輪郭の順を制御する制御変数poly no
に初期値として0がセットされる。
step1 is a control variable poly that controls the order of the contours to be displayed. no
Is set to 0 as an initial value.

step2は第4図(d)に示す輪郭情報の終了を判定し、
輪郭終了の際は終了する。
step2 determines the end of the contour information shown in FIG. 4 (d),
When the contour ends, it ends.

step3、step4は換輪郭開始点における初期設定で、変数
st noには輪郭開始点の点情報配列番号、pos eには
前記輪郭開始点の座標値がセットされる。
step3 and step4 are the initial settings at the replacement contour start point
st no is the point information array number of the contour start point, pos The coordinate value of the contour start point is set in e.

step5、step6はstep7において直線を表示する点座標が
削除点か否か判定するために変数cur noには点情報配
列番号として、stdata[st no].nxno、変数p noに
は注目点配列番号として、stdatas[cur no].stnoが
セットされる。
In step5 and step6, the variable cur is used to determine whether the point coordinates displaying the straight line in step7 are deletion points. No is stdata [st no] .nxno, variable p In no, stdatas [cur no] .stno is set.

step7において、その点座標が削除点として判断され
た、即ち、削除フラグ(OR DELまたはST DEL)がセッ
トされている場合はstep5へ制御を移す。削除点でない
と判断された場合はstep8において、step12における直
線表示関数LINEの引数として、直線表示開始点pos
をセットする。ここに関数LINE(V0,pos s,pos e)
におけるV0はグラフィックメモリ(例えば第1−1図VR
AM13)のアドレス等を含む出力先を特定する値、pos
s及びpos eは前述グラフィックメモリ上の座標値
(x,y)を表すものである。
In step 7, the point coordinates are determined as the deletion point, that is, the deletion flag (OR DEL or ST If (DEL) is set, control is transferred to step 5. If it is determined that it is not the deletion point, in step 8, the straight line display start point pos is set as the argument of the straight line display function LINE in step 12. s
Set. Where the function LINE (V0, pos s, pos e)
V0 is a graphic memory (for example, VR in Figure 1-1).
A value that specifies the output destination, including the address of AM13), pos
s and pos e represents the coordinate value (x, y) on the graphic memory.

step9は直線表示終了点が、注目点として抽出されてい
るか否かを判定し、注目点の場合はstep11においてpos
eにstackp[p no].posをセットし、注目点の場合
はstep10においてpos eにstdata[cur no].posをセ
ットする。
In step 9, it is determined whether or not the straight line display end point is extracted as the point of interest.
stackp [p no] .pos, and if it is the point of interest, pos at step 10 e to stdata [cur no] .pos.

step12は前述までに得られたpos s、pos eを用いて
直線を表示する。
step12 is the pos obtained so far s, pos Display a straight line using e.

step13は現在表示中の輪郭の終了を判定する繰り返し制
御部である。終了の場合、step14において制御変数poly
noを1加算してstep2へ制御を移し、終了でない、即
ち、輪郭が継続している場合、step5へ制御を移す。
Step 13 is a repetitive control unit that determines the end of the currently displayed contour. When finished, control variable poly in step 14
When no is added by 1, the control is moved to step 2, and when it is not finished, that is, when the contour is continued, the control is moved to step 5.

前述第9図においてファンクション9またはファンクシ
ョン10が入力されると、表示選択部C3が起動され、ファ
ンクション9の場合、表示部1 C7によりオリジナル表示
を、ファンクション10の場合、表示部2 C8により編集中
のベクタを表示することができる。
When the function 9 or the function 10 is input in the above-mentioned FIG. 9, the display selection section C3 is activated, and in the case of the function 9, the original display is displayed on the display section 1 C7, and in the case of the function 10, the display section 2 C8 is editing. You can display the vector of.

表示部1 C7は点情報記憶部M1の情報を表示メモリ0 V0に
表示する。表示するためのフローチャートは前述第5図
において説明したとおりである。また、表示部2 C8は注
目点記憶部M2の情報を表示メモリ1 V1に表示する。表示
するためのフローチャートは前述第13図において説明し
たとおりである。
The display unit 1 C7 displays the information in the point information storage unit M1 on the display memory 0 V0. The flow chart for displaying is as described in FIG. Further, the display unit 2 C8 displays the information of the attention point storage unit M2 on the display memory 1 V1. The flowchart for displaying is as described in FIG. 13 above.

さらに、前述表示切換部C3により。表示するVRAM13の切
換を行ない、オリジナルを表示するまたは表示しない、
編集中のベクタを表示するまたは表示しないを独立に選
択できる。
Furthermore, by the display switching unit C3 described above. The VRAM13 to be displayed is switched, the original is displayed or not displayed,
You can choose to show or hide the vector being edited independently.

このコマンドにより、現在編集中のものとオリジナルを
容易に比較することができ、基の文字図形パターンによ
り近い文字図形パターンへと編集が可能になる。
This command makes it possible to easily compare the current editing with the original, and to edit the character / graphic pattern closer to the original character / graphic pattern.

「他の実施例」 第1−1図画像入力用リーダ7は元となるアナログ図形
をデジタル変換可能な機器であればその種類を問わな
い。また、本実施例では画像入力用リーダよりアナログ
・デジタル変換された図形より、輪郭上の点座標を抽出
するとなっているが、元々デジタルデータで作成された
ビットマップデータであっても構わない。つまり、例え
ばワークステーションや本装置を構成している機器が持
つデジタル図形編集機能を用いて作成された図形より再
び本件の編集に供するものであってもよい。
Other Embodiments FIG. 1-1 The image input reader 7 may be of any type as long as it is a device capable of converting the original analog figure into a digital form. Further, in the present embodiment, the point coordinates on the contour are extracted from the figure which is analog-digital converted by the image input reader, but it may be bitmap data originally created by digital data. That is, for example, a graphic created by using a digital graphic editing function of a workstation or a device constituting the present apparatus may be used again for editing the present case.

表示用メモリ13及び表示装置10はVRAMやビットマップデ
ィスプレイに限らない。例えば、VRAMを持たず、コマン
ド解釈型のラスタ走査、または蓄積型表示装置でもよ
い。ポインティング・デバイスはライトペン等であって
もよく、また、キーボード等を用いてこれに代用可能な
場合、特になくても構わない。BMU15も特別なハードウ
ェアを用意しなくてもソフトウェアで制御されるメモリ
転送手段があれば構わない。以上のように本実施例の機
器構成は本図形装置を高速化するための手段として用意
されたものが多く、これらをより安価な機器に置き換え
る、または省略することも可能である。
The display memory 13 and the display device 10 are not limited to VRAM and bitmap display. For example, a command-interpretation type raster scan or a storage-type display device without VRAM may be used. The pointing device may be a light pen or the like, and may be omitted if a keyboard or the like can be used instead. The BMU15 does not have to have any special hardware as long as it has a memory transfer means controlled by software. As described above, many of the device configurations of the present embodiment are prepared as means for increasing the speed of the graphic device, and it is possible to replace them with cheaper devices or omit them.

以上説明したように、 本実施例により画像パターンを上下左右方向にそれぞれ
1ドットシフトした画像パターンの反転画像パターンと
元の画像パターンとの論理和をとることによって、原画
像パターンの縁取りが現画像パターンの「内のり(原画
像パターンの画像部分境界線)」を抽出し、元の図形の
画像部と非画像部の比率を変化させずに原画像パターン
の縁取りを得ることが可能になった。
As described above, according to the present embodiment, the edging of the original image pattern is the current image by taking the logical sum of the inverted image pattern of the image pattern obtained by shifting the image pattern by 1 dot in the vertical and horizontal directions and the original image pattern. It became possible to extract the "inner edge (image part boundary line of the original image pattern)" of the pattern and obtain the border of the original image pattern without changing the ratio of the image part and the non-image part of the original figure.

[効果] 以上詳述した様に、本発明により、画像パターンと、該
画像パターンを上下左右方向に夫々1ドットシフトした
画像パターンの反転画像パターンとの論理積をとり、得
られる夫々の画像パターンの論理和をとり、 更に、得られた輪郭画像パターンに対し、点列間を補間
する為の情報等を含め、前記輪郭画像パターンを表す座
標情報を記憶手段に記憶させることができる図形編集方
法を提供することが可能となった。
[Effect] As described in detail above, according to the present invention, each image pattern obtained by logically ANDing an image pattern and an inverted image pattern of the image pattern obtained by shifting the image pattern by 1 dot in the vertical and horizontal directions, respectively. A graphic editing method capable of storing the coordinate information representing the contour image pattern including the information for interpolating between point sequences in the obtained contour image pattern in the storage means. It has become possible to provide.

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

第1−1図及び第1−2図は本発明の実施例に係る図形
編集装置のシステムブロック図、 第2図及び第3図は輪郭部分のビットのみを抽出するた
めの構造及びフローチャート、 第4図(a)〜(e)は輪郭を表現する点座標の集合を
記憶するための構造を示す図、 第5図は輪郭を表現する点座標の集合を表示するための
フローチャート、 第6図は点座標の集合より1つ、または複数の注目点を
抽出するためのフローチャート、 第7図は注目点を表示した場合の図、 第8図は輪郭を表現する点座標の集合と注目点の集合を
関連させるための構造を示す図、 第9図は整形、単純化のための操作を指定するための構
造を示す図、 第10図は指定された操作を行う区間の注目点の集合より
とくていするためのフローチャート、 第11図及び第12図は輪郭を表現する点座標の集合とこれ
に関連付られた注目点の集合に対し指定された操作を反
映させるための構造を示した図、 第13図は輪郭を表現する点座標の集合とこれに関連付ら
れた注目点の集合を直線で表示するためのフローチャー
ト、 第14図及び第15図は指定された区間において変更すべき
座標成分を特定するため構造を示した図、 第16図は前述特定された注目点の座標を前述基準となる
座標値の座標成分と置き換え、かつ、前述区間内にある
点座標の集合をすべて省略するための構造を示した図で
ある。 C1は輪郭抽出部、 M1は点座標記憶部、 M2は注目点記憶部、 C2は注目点抽出部、 13は表示メモリである。
FIGS. 1-1 and 1-2 are system block diagrams of the graphic editing apparatus according to the embodiment of the present invention, FIGS. 2 and 3 are a structure and a flow chart for extracting only the bits of the contour portion, 4 (a) to (e) are diagrams showing a structure for storing a set of point coordinates expressing a contour, FIG. 5 is a flow chart for displaying a set of point coordinates expressing a contour, FIG. 6 Is a flow chart for extracting one or more points of interest from the set of point coordinates, FIG. 7 is a diagram when the points of interest are displayed, and FIG. 8 is a set of point coordinates representing the contour and the points of interest. Fig. 9 shows the structure for associating sets, Fig. 9 shows the structure for specifying operations for shaping and simplification, and Fig. 10 shows the set of points of interest in the specified operation section Flow chart for training, Figure 11 and Figure 12 Fig. 13 is a diagram showing a structure for reflecting a specified operation on a set of point coordinates expressing the point and a set of attention points associated with the point coordinate. Fig. 13 shows a set of point coordinates expressing the contour and A flowchart for displaying a set of related points of interest as a straight line, FIGS. 14 and 15 are diagrams showing a structure for specifying coordinate components to be changed in a designated section, and FIG. 16 is the above-mentioned. It is the figure which showed the structure for replacing the coordinate of the specified attention point with the coordinate component of the coordinate value used as the said reference | standard, and abbreviate | omitting all the set of the point coordinate in the said area. C1 is a contour extraction unit, M1 is a point coordinate storage unit, M2 is a target point storage unit, C2 is a target point extraction unit, and 13 is a display memory.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭63−188278(JP,A) 特開 昭57−125303(JP,A) 特開 昭58−81383(JP,A) 実開 昭58−2059(JP,U) ─────────────────────────────────────────────────── --Continued from the front page (56) References JP-A-63-188278 (JP, A) JP-A-57-125303 (JP, A) JP-A-58-81383 (JP, A) Actual development Sho-58- 2059 (JP, U)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ドットデータから成る画像パターンを記憶
した記憶手段に記憶された画像パターンと、該画像パタ
ーンを上方向に1ドットシフトした画像パターンの反転
画像パターンとの論理積をとる第1論理積処理、 前記記憶手段に記憶された画像パターンと、該画像パタ
ーンを下方向に1ドットシフトした画像パターンの反転
画像パターンとの論理積をとる第2論理積処理、 前記記憶手段に記憶された画像パターンと、該画像パタ
ーンを右方向に1ドットシフトした画像パターンの反転
画像パターンとの論理積をとる第3論理積処理、 前記記憶手段に記憶された画像パターンと、該画像パタ
ーンを左方向に1ドットシフトした画像パターンの反転
画像パターンとの論理積をとる第4論理積処理、 前記第1論理積処理、前記第2論理積処理、前記第3論
理積処理、前記第4論理積処理によって得られる夫々の
画像パターンの論理和をとる論理和処理とを行い、 得られた輪郭画像パターンに対し、点列間を補間する為
の情報等を含め、前記輪郭画像パターンを表す座標情報
を記憶手段に記憶させる処理を行うことを特徴とする図
形編集方法。
1. A first logic for obtaining a logical product of an image pattern stored in a storage means storing an image pattern composed of dot data and an inverted image pattern of an image pattern obtained by shifting the image pattern by one dot in an upward direction. Product processing, second logical product processing for taking a logical product of the image pattern stored in the storage means and an inverted image pattern of the image pattern obtained by shifting the image pattern downward by 1 dot, stored in the storage means Third logical product processing of obtaining a logical product of an image pattern and an inverted image pattern of the image pattern obtained by shifting the image pattern by 1 dot to the right, and the image pattern stored in the storage means and the image pattern to the left. Fourth logical product processing for obtaining a logical product of the image pattern shifted by one dot with the inverted image pattern, the first logical product processing, and the second logical product processing , The third logical product process, and the logical sum process of taking the logical sum of the respective image patterns obtained by the fourth logical product process, and for interpolating between the point sequences for the obtained contour image pattern. A graphic editing method characterized by performing a process of storing coordinate information representing the contour image pattern including information and the like in a storage means.
JP62228711A 1987-09-13 1987-09-13 Figure editing method Expired - Fee Related JPH0747328B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62228711A JPH0747328B2 (en) 1987-09-13 1987-09-13 Figure editing method
US07/242,138 US5073957A (en) 1987-09-13 1988-09-09 Graphic editing system
DE3830990A DE3830990A1 (en) 1987-09-13 1988-09-12 Character preparation system
DE3844832A DE3844832C2 (en) 1987-09-13 1988-09-12 Character editing device
DE3844735A DE3844735C2 (en) 1987-09-13 1988-09-12 Graphical symbol or character electronic processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62228711A JPH0747328B2 (en) 1987-09-13 1987-09-13 Figure editing method

Publications (2)

Publication Number Publication Date
JPS6471767A JPS6471767A (en) 1989-03-16
JPH0747328B2 true JPH0747328B2 (en) 1995-05-24

Family

ID=16880612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62228711A Expired - Fee Related JPH0747328B2 (en) 1987-09-13 1987-09-13 Figure editing method

Country Status (1)

Country Link
JP (1) JPH0747328B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3155753B2 (en) * 1990-08-03 2001-04-16 キヤノン株式会社 Graphic processing apparatus and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57125303A (en) * 1981-01-28 1982-08-04 Fujitsu Ltd System for recognizing body
JPS582059U (en) * 1981-06-26 1983-01-07 株式会社日立製作所 contour line extraction device
JPS63188278A (en) * 1987-01-31 1988-08-03 Toshiba Corp Contour extracting system

Also Published As

Publication number Publication date
JPS6471767A (en) 1989-03-16

Similar Documents

Publication Publication Date Title
US4918611A (en) Method and apparatus for controlling laser cutting by image processing
EP0332765B1 (en) Graphical input/output system and method
JP2608571B2 (en) Apparatus and method for vectorizing input scanned image data
JP7282551B2 (en) Information processing device, information processing method and program
WO2025210939A1 (en) Drawing processing device and drawing processing method
JP5094682B2 (en) Image processing apparatus, image processing method, and program
JP3511454B2 (en) Image clipping method and apparatus
JPH0747328B2 (en) Figure editing method
JP5147640B2 (en) Image processing apparatus, image processing method, and program
JP2667834B2 (en) Figure editing apparatus and method
JP2720807B2 (en) Scenario editing device
US5073957A (en) Graphic editing system
JP2667833B2 (en) Figure editing apparatus and method
JPH08255221A (en) Character / graphic input / editing device
JPH01128843A (en) document processing device
JP3015066B2 (en) Document processing device
JP4263089B2 (en) Information processing apparatus, information processing method, program, and recording medium
US20020012469A1 (en) Picture image processing method, processing apparatus and recording medium
JPS59161768A (en) Extraction processing system of peak of closed area
JPS5840785B2 (en) Shape recognition preprocessing method
JP2838556B2 (en) Image processing device
JP4935732B2 (en) Image processing apparatus and image processing program
JPH07110869A (en) Graphic editing device
JP2007004724A (en) Character search device, character search method, and program
JPH0438517B2 (en)

Legal Events

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