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
JP2959612B2 - Method and apparatus for generating vector coordinates from dot pattern - Google Patents
[go: Go Back, main page]

JP2959612B2 - Method and apparatus for generating vector coordinates from dot pattern - Google Patents

Method and apparatus for generating vector coordinates from dot pattern

Info

Publication number
JP2959612B2
JP2959612B2 JP6039243A JP3924394A JP2959612B2 JP 2959612 B2 JP2959612 B2 JP 2959612B2 JP 6039243 A JP6039243 A JP 6039243A JP 3924394 A JP3924394 A JP 3924394A JP 2959612 B2 JP2959612 B2 JP 2959612B2
Authority
JP
Japan
Prior art keywords
coordinate
dot pattern
contour
point
dot
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
JP6039243A
Other languages
Japanese (ja)
Other versions
JPH07225845A (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 JP6039243A priority Critical patent/JP2959612B2/en
Publication of JPH07225845A publication Critical patent/JPH07225845A/en
Application granted granted Critical
Publication of JP2959612B2 publication Critical patent/JP2959612B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ドットパターンからそ
の輪郭点を抽出し、スケーリング用にベクトル座標を発
生させるドットパターンからのベクトル座標発生方法及
び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for generating vector coordinates from a dot pattern for extracting contour points from the dot pattern and generating vector coordinates for scaling.

【0002】[0002]

【従来の技術】従来のドットパターンからのベクトル座
標発生装置におけるドットパターン輪郭追跡法では、図
18(a)に示すように複数ドット幅のドットパターン
Fの場合、図18(b)に示すように外輪郭イと内輪郭
ロとが抽出される。この時の輪郭追跡方向は、外輪郭イ
は右回り(矢印A方向)、内輪郭ロは左回り(矢印B方
向)である。しかし、図19(a)に示すような1ドッ
ト幅のドットパターンF1の場合、図19(b)に示す
ように外輪郭イと内輪郭ロとが互いに同じ輪郭となって
しまうという問題点がある。
2. Description of the Related Art In a conventional dot pattern contour tracing method in a vector coordinate generating apparatus from a dot pattern, in the case of a dot pattern F having a plurality of dot widths as shown in FIG. Then, the outer contour A and the inner contour B are extracted. The contour tracking direction at this time is clockwise for the outer contour A (direction of arrow A) and counterclockwise for inner contour B (direction of arrow B). However, in the case of a dot pattern F1 having a one-dot width as shown in FIG. 19A, there is a problem that the outer contour A and the inner contour B have the same contour as shown in FIG. 19B. is there.

【0003】このため従来は、1ドットに対して拡大処
理を施し、その輪郭追跡方向によって補正をかけながら
輪郭座標を求めていた。該輪郭座標を求める具体例とし
て、5×5ドットで、1ドット幅の四角のパターンを例
に、図20に基づき説明する。
For this reason, conventionally, enlargement processing has been performed on one dot, and the outline coordinates have been obtained while correcting the dot according to the outline tracking direction. A specific example of obtaining the outline coordinates will be described with reference to FIG. 20, taking a rectangular pattern of 5 × 5 dots and a width of one dot as an example.

【0004】図20は、元のドットパターン左上をXY
座標の原点に一致させるようにして配置したものであ
る。元のドットパターンにもともと上オフセットや左オ
フセットが存在していた場合は、オフセット値を考慮し
た位置にパターンを配置する。
FIG. 20 shows that the upper left of the original dot pattern is XY.
They are arranged so as to match the origin of the coordinates. If an upper offset or a left offset originally exists in the original dot pattern, the pattern is arranged at a position in consideration of the offset value.

【0005】元のドットパターンには、XY座標の原点
に近い方から順に1ドットずつ、0,1,2,3,…と
インデックス番号を付して、そのインデックス番号を、
そのドットの座標値とする。図20(a)の×印のドッ
トの座標は(4,1)ということになる。
[0005] The original dot pattern is given an index number of 0, 1, 2, 3, ... one dot at a time from the point closer to the origin of the XY coordinates.
The coordinate value of the dot is used. The coordinates of the dot marked X in FIG. 20A are (4, 1).

【0006】次に、このドットパターンに5倍の拡大処
理を施すと、図20(b)に示す状態になる。この時、
拡大処理前の座標を(X,Y)とし、拡大処理後の座標
を(X′,Y′)とすると、下記式に従って変換処理す
る。
Next, when the dot pattern is subjected to a five-fold enlargement process, a state shown in FIG. 20B is obtained. At this time,
Assuming that the coordinates before the enlargement processing are (X, Y) and the coordinates after the enlargement processing are (X ′, Y ′), the conversion processing is performed according to the following equation.

【0007】X′=X×5+2 Y′=Y×5+2 これは、5倍に拡大されたドットの中心の座標を表わす
ことになる。この変換処理により、図20(a)の×印
のドットの座標(4,1)は、図20(b)の×印のド
ットの座標(22,7)へと変換されることになる。
X '= X.times.5 + 2 Y' = Y.times.5 + 2 This represents the coordinates of the center of the dot magnified five times. As a result of this conversion process, the coordinates (4, 1) of the dot marked X in FIG. 20A are converted into the coordinates (22, 7) of the dot marked X in FIG. 20B.

【0008】次に、輪郭点の追跡方向により、外輪郭で
あれば外側へ座標補正処理を施し、内輪郭であれば内側
へ座標補正処理を施す。図20(b)の×印のドットの
座標(22,7)は、内輪郭として■印のドットの座標
(20,7)へと補正される(以下、座標補正後の座標
値を■印で表わす)。尚、図20では、拡大処理として
倍率が5倍の拡大処理法を用いているように、従来のド
ットパターン輪郭追跡法では、常にドットの中心が表わ
せるようにするために、拡大率を奇数倍とした拡大処理
法を用いている。
Next, according to the tracing direction of the contour points, the coordinate correction processing is performed on the outside in the case of the outer contour, and the coordinate correction is performed on the inside in the case of the inner contour. The coordinates (22, 7) of the dot indicated by X in FIG. 20B are corrected to the coordinates (20, 7) of the dot indicated by ■ as the inner contour (hereinafter, the coordinate values after the coordinate correction are indicated by ■). ). In FIG. 20, as in the enlargement processing, the enlargement processing method with a magnification of 5 is used. In the conventional dot pattern contour tracking method, the enlargement ratio is set to an odd number so that the center of the dot can always be represented. The magnification processing method that is twice as large is used.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、図20
(a)に示すように5ドット幅のドットパターンを倍率
が5倍の拡大処理法を用いて抽出した外輪郭のベクトル
座標は、図20(b)に示すように(0,0)、(2
4,0)、(24,24)、(0,24)の4点とな
り、その幅は24ドットとなってしまう。本来、5ドッ
ト幅のドットパターンを5倍にスケーリングすると、そ
のドットのパターン幅は25ドットにならなければなら
ない。また、5ドット幅のドットパターンを100倍に
スケーリングすると、500ドットのパターン幅になら
なければならないところが、480ドットのパターン幅
になってしまう。
However, FIG.
As shown in FIG. 20B, the vector coordinates of the outer contour obtained by extracting a dot pattern having a width of 5 dots by using an enlargement processing method with a magnification of 5 times are represented by (0, 0), ( 2
(4,0), (24,24), and (0,24), and the width is 24 dots. Essentially, if a dot pattern having a width of 5 dots is scaled by a factor of 5, the pattern width of that dot must be 25 dots. Further, when a dot pattern having a width of 5 dots is scaled by a factor of 100, the pattern width of 500 dots is changed to a pattern width of 480 dots.

【0010】このように、従来のドットパターンからの
ベクトル座標発生装置におけるドットパターン輪郭追跡
法では、ドットパターンのスケーリング時に元のドット
パターンに忠実にスケーリングすることができず、誤差
が生じてしまうという欠点があった。
As described above, in the conventional dot pattern contour tracing method in the apparatus for generating a vector coordinate from a dot pattern, the original dot pattern cannot be faithfully scaled when the dot pattern is scaled, and an error occurs. There were drawbacks.

【0011】このような欠点は、図20(b)に示すよ
うにドッタパターンを5倍に拡大した後の輪郭追跡方向
による座標補正時に、図21に示すように補正値を一つ
足すことにより、即ち、外輪郭のベクトル座標を(0,
0)、(25,0)、(25,25)、(0,25)と
することにより、解消することができる。
Such a disadvantage is caused by adding one correction value as shown in FIG. 21 at the time of coordinate correction in the contour tracing direction after magnifying the dot pattern five times as shown in FIG. 20B. That is, the vector coordinates of the outer contour are defined as (0,
0), (25, 0), (25, 25), and (0, 25) can solve the problem.

【0012】しかし、このままであると、外輪郭につい
ては問題ないが、本来、図22(a)に示すように等間
隔で抽出されるべき内側の輪郭点が、図22(b)に示
すように不等間隔の輪郭点となってしまい、例えば真円
であるべきところが非真円となってしまう。
However, if this is the case, there is no problem with the outer contour, but the inner contour points to be extracted at regular intervals as shown in FIG. In this case, contour points are unequally spaced, and for example, a place that should be a perfect circle becomes a non-perfect circle.

【0013】本発明は上述した従来の技術の有するこの
ような問題点に鑑みてなされたものであり、その目的と
するところは、元のドットパターンに忠実にスケーリン
グすることが可能なベクトル座標を抽出できるようにし
たドットパターンからのベクトル座標発生方法及び装置
を提供しようとするものである
The present invention has been made in view of the above-mentioned problems of the prior art described above, and an object of the present invention is to provide a vector coordinate which can be faithfully scaled to an original dot pattern. An object of the present invention is to provide a method and apparatus for generating vector coordinates from a dot pattern that can be extracted.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するため
本発明の請求項1記載のドットパターンからのベクトル
座標発生方法は、ドットパターンに基づき輪郭点列を抽
出する抽出ステップと、前記抽出ステップにより抽出さ
れた輪郭点列の輪郭点に対して偶数倍の拡大処理を行う
拡大処理ステップと、前記拡大処理ステップにより拡大
処理される前の輪郭点に接続する輪郭線の接続関係を参
照することなく、前記拡大処理ステップにより拡大処理
された輪郭点に接続する輪郭線の接続関係に基づき、前
記拡大処理ステップにより拡大処理された輪郭点の座標
補正処理を行う座標補正処理ステップとを有することを
特徴とする。
According to a first aspect of the present invention, there is provided a method of generating vector coordinates from a dot pattern, comprising the steps of: extracting an outline point sequence based on a dot pattern; Reference is made to the enlargement processing step of performing an even-number enlargement processing on the outline points of the outline point sequence extracted by the above, and the connection relation of the outlines connected to the outline points before being enlarged by the enlargement processing step. A coordinate correction processing step of performing coordinate correction processing of the contour points enlarged by the enlargement processing step based on the connection relationship of the contour lines connected to the outline points enlarged by the enlargement processing step. Features.

【0015】また、上記目的を達成するため本発明の請
求項2記載のドットパターンからのベクトル座標発生方
法は、請求項1記載のドットパターンからのベクトル座
標発生方法において、前記偶数倍は、4倍であることを
特徴とする。
According to a second aspect of the present invention, there is provided a method of generating vector coordinates from a dot pattern according to the first aspect of the present invention, wherein the even-number times is 4 times. It is characterized by being twice.

【0016】また、上記目的を達成するため本発明の請
求項3記載のドットパターンからのベクトル座標発生方
法は、請求項1記載のドットパターンからのベクトル座
標発生方法において、前記座標補正処理ステップは、変
倍してもパターンの形状を保てるように輪郭点に対応す
る画素の内側または外側の位置に座標補正処理を行うこ
とを特徴とする。
According to a third aspect of the present invention, there is provided a method for generating vector coordinates from a dot pattern according to the first aspect of the present invention. The coordinate correction process is performed at a position inside or outside a pixel corresponding to a contour point so that the shape of the pattern can be maintained even when the magnification is changed.

【0017】また、上記目的を達成するため本発明の請
求項4記載のドットパターンからのベクトル座標発生方
法は、請求項1記載のドットパターンからのベクトル座
標発生方法において、前記拡大処理ステップは、輪郭点
(X,Y)、変倍率(S)としたとき、X=X×S+S
/2、Y=Y×S+S/2とすることによって拡大処理
を行うことを特徴とする。
According to a fourth aspect of the present invention, there is provided a method of generating vector coordinates from a dot pattern according to the first aspect of the present invention, wherein the enlarging step comprises: When the contour point (X, Y) and the magnification (S) are set, X = X × S + S
/ 2, Y = Y × S + S / 2 to perform enlargement processing.

【0018】また、上記目的を達成するため本発明の請
求項5記載のドットパターンからのベクトル座標発生方
法は、ドットパターンからスケーリング用にベクトル座
標を発生させるドットパターンからのベクトル座標発生
方法において、格納手段に格納したドットパターンの外
輪郭と内輪郭の輪郭点列を輪郭点列生成手段により生成
し、該生成した輪郭点列の各輪郭点にその座標位置を示
す座標情報及びドットパターン輪郭追跡法の追跡方向を
示す方向情報を情報付加手段により付加し、該付加され
た情報に基づいて各輪郭点1ドットを拡大処理手段によ
り偶数倍の拡大率で拡大処理し、該拡大処理した前記各
輪郭点の座標値を補正手段により補正することを特徴と
する。
According to a fifth aspect of the present invention, there is provided a method for generating vector coordinates from a dot pattern, comprising the steps of: The contour point sequence generating means generates the contour point sequence of the outer contour and the inner contour of the dot pattern stored in the storage means, coordinate information indicating the coordinate position of each contour point of the generated contour point sequence, and dot pattern contour tracking. The direction information indicating the tracking direction of the method is added by the information adding means, and based on the added information, one dot of each contour point is enlarged by the enlargement processing means at an even multiple of the enlargement rate. The coordinate value of the contour point is corrected by a correction unit.

【0019】また、上記目的を達成するため本発明の請
求項6記載のドットパターンからのベクトル座標発生方
法は、ドットパターンからスケーリング用にベクトル座
標を発生させるドットパターンからのベクトル座標発生
方法において、抽出した輪郭座標を任意の大きさにスケ
ーリングする基となるドットパターンを第1記憶手段に
一時記憶し、該記憶したドットパターンの外側をドット
パターン輪郭追跡法により右回りに追跡し且つその軌跡
を座標点列として第1抽出手段により抽出し、前記第1
記憶手段に記憶したドットパターンの内側をドットパタ
ーン輪郭追跡法により左回りに追跡し且つその軌跡を座
標点列として第2抽出手段により抽出し、前記第1及び
第2抽出手段により抽出した各座標点列の追跡方向をテ
ーブルにより定義し、該テーブルを基に互いに隣接する
座標点列の位置関係を演算手段により計算し、前記第1
及び第2抽出手段により抽出した各座標点列を拡大処理
手段により偶数倍の拡大率で拡大処理し、該拡大処理し
た輪郭点列の座標値を各座標点列の追跡方向を基に補正
手段により補正することを特徴とする。
According to a sixth aspect of the present invention, there is provided a method for generating vector coordinates from a dot pattern, the method comprising generating vector coordinates for scaling from the dot pattern. A dot pattern as a basis for scaling the extracted contour coordinates to an arbitrary size is temporarily stored in the first storage means, and the outside of the stored dot pattern is traced clockwise by the dot pattern contour tracking method, and its locus is traced. It is extracted by a first extracting means as a coordinate point sequence, and the first
The inside of the dot pattern stored in the storage means is traced counterclockwise by the dot pattern contour tracking method, and the locus is extracted as a coordinate point sequence by the second extraction means, and each coordinate extracted by the first and second extraction means is obtained. The tracking direction of the point sequence is defined by a table, and based on the table, the positional relationship between the coordinate point sequences adjacent to each other is calculated by arithmetic means,
And enlarging each coordinate point sequence extracted by the second extracting means at an even magnification by the enlarging processing means, and correcting the coordinate values of the enlarged contour point sequence based on the tracking direction of each coordinate point sequence. It is characterized by the following.

【0020】また、上記目的を達成するため本発明の請
求項7記載のドットパターンからのベクトル座標発生方
法は、請求項6記載のドットパターンからのベクトル座
標発生方法において、前記第1及び第2抽出手段により
抽出した各座標点列の互いに隣接する座標点列の位置関
係に基づきそのパターン形状をパターン形状判断手段に
より判断し、該判断したパターン形状により各座標点列
を補正手段により補正することを特徴とする。
According to a seventh aspect of the present invention, there is provided a method for generating vector coordinates from a dot pattern according to the sixth aspect of the present invention. The pattern shape is determined by the pattern shape determining means based on the positional relationship between the coordinate point strings adjacent to each other in the coordinate point strings extracted by the extracting means, and each coordinate point string is corrected by the correcting means based on the determined pattern shape. It is characterized by.

【0021】また、上記目的を達成するため本発明の請
求項8記載のドットパターンからのベクトル座標発生方
法は、請求項6記載のドットパターンからのベクトル座
標発生方法において、前記第1及び第2抽出手段により
抽出した各座標点列が1ドットであるか否かをドット判
断手段により判断し、1ドットであると判断した時その
1ドットのドットパターンから4つの座標点列を座標点
列生成手段により生成することを特徴とする。また、上
記目的を達成するため本発明の請求項9記載のドットパ
ターンからのベクトル座標発生方法は、請求項1〜5ま
たは6記載のドットパターンからのベクトル座標発生方
法が印刷装置に適用できることを特徴とする。また、上
記目的を達成するため本発明の請求項10記載のドット
パターンからのベクトル座標発生方法は、請求項1〜5
または6記載のドットパターンからのベクトル座標発生
方法が表示装置に適用できることを特徴とする。
According to another aspect of the present invention, there is provided a method for generating vector coordinates from a dot pattern according to the present invention. The dot judging means judges whether each coordinate point string extracted by the extracting means is one dot, and when it judges that it is one dot, generates four coordinate point strings from the dot pattern of one dot. It is characterized by being generated by means. In order to achieve the above object, a method for generating vector coordinates from a dot pattern according to claim 9 of the present invention is characterized in that the method for generating vector coordinates from a dot pattern according to claims 1 to 5 or 6 is applicable to a printing apparatus. Features. In order to achieve the above object, a method for generating vector coordinates from a dot pattern according to claim 10 of the present invention is as follows.
Alternatively, the method of generating vector coordinates from a dot pattern described in 6 is applicable to a display device.

【0022】また、上記目的を達成するため本発明の請
求項11記載のドットパターンからのベクトル座標発生
装置は、ドットパターンに基づき輪郭点列を抽出する抽
出手段と、前記抽出手段により抽出された輪郭点列の輪
郭点に対して偶数倍の拡大処理を行う拡大処理手段と、
前記拡大処理手段により拡大処理される前の輪郭点に接
続する輪郭線の接続関係を参照することなく、前記拡大
処理手段により拡大処理された輪郭点に接続する輪郭線
の接続関係に基づき、前記拡大処理手段により拡大処理
された輪郭点の座標補正処理を行う座標補正処理手段と
を有することを特徴とする。
According to another aspect of the present invention, there is provided an apparatus for generating a vector coordinate from a dot pattern according to the present invention, wherein the extracting means extracts an outline point sequence based on the dot pattern. Enlargement processing means for performing an even number enlargement process on the contour points of the contour point sequence;
Without referring to the connection relation of the contour line connected to the contour point before being enlarged by the enlargement processing means, based on the connection relation of the contour line connected to the contour point enlarged by the enlargement processing means, And a coordinate correction processing means for performing a coordinate correction processing of the contour point enlarged by the enlargement processing means.

【0023】また、上記目的を達成するため本発明の請
求項12記載のドットパターンからのベクトル座標発生
装置は、請求項11記載のドットパターンからのベクト
ル座標発生装置において、前記偶数倍は、4倍であるこ
とを特徴とする。
According to a twelfth aspect of the present invention, there is provided an apparatus for generating a vector coordinate from a dot pattern according to the eleventh aspect of the present invention. It is characterized by being twice.

【0024】また、上記目的を達成するため本発明の請
求項13記載のドットパターンからのベクトル座標発生
装置は、請求項11記載のドットパターンからのベクト
ル座標発生装置において、前記座標補正処理手段は、変
倍してもパターンの形状を保てるように輪郭点に対応す
る画素の内側または外側の位置に座標補正処理を行うこ
とを特徴とする。
According to a thirteenth aspect of the present invention, there is provided an apparatus for generating a vector coordinate from a dot pattern according to the present invention. The coordinate correction process is performed at a position inside or outside a pixel corresponding to a contour point so that the shape of the pattern can be maintained even when the magnification is changed.

【0025】また、上記目的を達成するため本発明の請
求項14記載のドットパターンからのベクトル座標発生
装置は、請求項11記載のドットパターンからのベクト
ル座標発生装置において、前記拡大処理手段は、輪郭点
(X,Y)、変倍率(S)としたとき、X=X×S+S
/2、Y=Y×S+S/2とすることによって拡大処理
を行うことを特徴とする。
According to a fourteenth aspect of the present invention, there is provided an apparatus for generating a vector coordinate from a dot pattern according to the eleventh aspect of the present invention. When the contour point (X, Y) and the magnification (S) are set, X = X × S + S
/ 2, Y = Y × S + S / 2 to perform enlargement processing.

【0026】また、上記目的を達成するため本発明の請
求項15記載のドットパターンからのベクトル座標発生
装置は、ドットパターンからスケーリング用にベクトル
座標を発生させるドットパターンからのベクトル座標発
生装置において、前記ドットパターンを格納する格納手
段と、該格納手段に格納したドットパターンの外輪郭と
内輪郭の輪郭点列を生成する輪郭点列生成手段と、該輪
郭点列生成手段により生成した輪郭点列の各輪郭点にそ
の座標位置を示す座標情報及びドットパターン輪郭追跡
法の追跡方向を示す方向情報を付加する情報付加手段
と、該情報付加手段により付加された情報に基づいて各
輪郭点1ドットを偶数倍の拡大率で拡大処理する拡大処
理手段と、該拡大処理手段により拡大処理した前記各輪
郭点の座標値を補正する補正手段とを備えたことを特徴
とする。
According to another aspect of the present invention, there is provided an apparatus for generating vector coordinates from a dot pattern which generates vector coordinates for scaling from the dot pattern. Storage means for storing the dot pattern; contour point sequence generating means for generating an outline point sequence of an outer contour and an inner contour of the dot pattern stored in the storage means; and a contour point sequence generated by the contour point sequence generating means Information adding means for adding, to each contour point, coordinate information indicating its coordinate position and direction information indicating the tracking direction of the dot pattern contour tracking method, and one dot for each contour point based on the information added by the information adding means. Enlargement processing at an even-number magnification, and correcting the coordinate values of each of the contour points enlarged by the enlargement processing means. Characterized by comprising a that correction means.

【0027】また、上記目的を達成するため本発明の請
求項16記載のドットパターンからのベクトル座標発生
装置は、ドットパターンからスケーリング用にベクトル
座標を発生させるドットパターンからのベクトル座標発
生装置において、抽出した輪郭座標を任意の大きさにス
ケーリングする基となるドットパターンを一時期憶する
第1記憶手段と、該第1記憶手段に記憶したドットパタ
ーンの外側をドットパターン輪郭追跡法により右回りに
追跡し且つその軌跡を座標点列として抽出する第1抽出
手段と、前記第1記憶手段に記憶したドットパターンの
内側をドットパターン輪郭追跡法により左回りに追跡し
且つその軌跡を座標点列として抽出する第2抽出手段
と、前記第1及び第2抽出手段により抽出した各座標点
列の追跡方向を定義するためのテーブルと、該テーブル
を基に互いに隣接する座標点列の位置関係を計算する演
算手段と、前記第1及び第2抽出手段により抽出した各
座標点列を偶数倍の拡大率で拡大処理する拡大処理手段
と、該拡大処理手段により拡大処理した輪郭点列の座標
値を各座標点列の追跡方向を基に補正する補正手段とを
備えたことを特徴とする。
According to another aspect of the present invention, there is provided an apparatus for generating vector coordinates from a dot pattern, comprising the steps of: generating a vector coordinate from a dot pattern for scaling; First storage means for temporarily recalling a dot pattern serving as a basis for scaling the extracted contour coordinates to an arbitrary size; and tracing the outside of the dot pattern stored in the first storage means clockwise by a dot pattern contour tracing method. First extracting means for extracting the trajectory as a sequence of coordinate points, tracing the inside of the dot pattern stored in the first storage means counterclockwise by a dot pattern contour tracing method, and extracting the trajectory as a sequence of coordinate points And a tracking direction of each coordinate point sequence extracted by the first and second extracting means. For calculating the positional relationship between adjacent coordinate point sequences based on the table, and enlarging each coordinate point sequence extracted by the first and second extracting means at an even magnification. An enlargement processing unit for processing, and a correction unit for correcting the coordinate values of the outline point sequence enlarged by the enlargement processing unit based on the tracking direction of each coordinate point sequence are provided.

【0028】また、上記目的を達成するため本発明の請
求項17記載のドットパターンからのベクトル座標発生
装置は、請求項16記載のドットパターンからのベクト
ル座標発生装置において、前記第1及び第2抽出手段に
より抽出した各座標点列の互いに隣接する座標点列の位
置関係に基づきそのパターン形状を判断するパターン形
状判断手段と、該パターン形状判断手段により判断した
パターン形状により各座標点列を補正する補正手段とを
備えたことを特徴とする。
In order to achieve the above object, the apparatus for generating vector coordinates from a dot pattern according to claim 17 of the present invention is the apparatus for generating vector coordinates from dot patterns according to claim 16. Pattern shape determining means for determining the pattern shape based on the positional relationship between adjacent coordinate point strings of each coordinate point string extracted by the extracting means, and correcting each coordinate point string with the pattern shape determined by the pattern shape determining means And a correcting means for performing the correction.

【0029】また、上記目的を達成するため本発明の請
求項18記載のドットパターンからのベクトル座標発生
装置は、請求項16記載のドットパターンからのベクト
ル座標発生装置において、前記第1及び第2抽出手段に
より抽出した各座標点列が1ドットであるか否かを判断
するドット判断手段と、該ドット判断手段が1ドットで
あると判断した時その1ドットのドットパターンから4
つの座標点列を生成する座標点列生成手段とを備えたこ
とを特徴とする。また、上記目的を達成するため本発明
の請求項19記載のドットパターンからのベクトル座標
発生装置は、請求項11〜15または16記載のドット
パターンからのベクトル座標発生装置が印刷装置に適用
できることを特徴とする。更に、上記目的を達成するた
め本発明の請求項20記載のドットパターンからのベク
トル座標発生装置は、請求項11〜15または16記載
のドットパターンからのベクトル座標発生装置が表示装
置に適用できることを特徴とする。
In order to achieve the above object, the apparatus for generating vector coordinates from a dot pattern according to claim 18 of the present invention is the apparatus for generating vector coordinates from a dot pattern according to claim 16. Dot determining means for determining whether or not each coordinate point sequence extracted by the extracting means is one dot;
And a coordinate point sequence generating means for generating one coordinate point sequence. In order to achieve the above object, the apparatus for generating a vector coordinate from a dot pattern according to claim 19 of the present invention is based on the fact that the apparatus for generating a vector coordinate from dot pattern according to claims 11 to 15 or 16 is applicable to a printing apparatus. Features. Furthermore, in order to achieve the above object, a vector coordinate generating apparatus from a dot pattern according to claim 20 of the present invention is applicable to a display device, wherein the vector coordinate generating apparatus from a dot pattern according to claim 11 to 15 or 16 is applicable. Features.

【0030】[0030]

【0031】[0031]

【0032】[0032]

【0033】[0033]

【0034】[0034]

【0035】[0035]

【0036】[0036]

【0037】[0037]

【0038】[0038]

【発明の実施の形態】以下、本発明の各実施の形態を図
面に基づき説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0039】(第1実施の形態) まず、本発明の第1実施の形態を図1乃至図10に基づ
き説明する。図1は、本発明の第1実施の形態に係るド
ットパターン(例えば、ドットフォントパターン)から
のベクトル座標(座標点列)発生装置を備えた出力装置
である印刷装置の構成を示すブロック図であり、同図
中、1は印刷装置本体、2はデータの供給源となるホス
トコンピュータ、3は印刷装置本体1内の全てを制御す
るCPU(Central Processing U
nit;中央演算処理装置)、4はホストコンピュータ
2より送られてくるデータを入力する入力インターフェ
ース、5は後述する図2に示すフローチャートのプログ
ラムを含む制御プログラムが格納されているプログラム
ROM(Read Only Memory;固定記憶
装置)、6は入力文字コードに対応するスケーラブルフ
ォント(文字をドット信号ではなく、ストローク情報で
表わして記憶した文字)が格納されるフォントROM
(Read Only Memory;固定記憶装
置)、7はドットパターンのベクトル座標発生時に使用
するワークメモリを含むメモリ媒体となる内蔵RAM
(Random Access Memory;等速呼
び出し記憶装置)、8は情報を紙等に印刷して出力する
ための出力部である。
(First Embodiment) First, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing a configuration of a printing apparatus which is an output apparatus including a vector coordinate (coordinate point sequence) generating apparatus from a dot pattern (for example, a dot font pattern) according to the first embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a printing apparatus main body; 2, a host computer serving as a data supply source; 3, a CPU (Central Processing Unit) that controls all of the inside of the printing apparatus main body 1.
nit; central processing unit), 4 is an input interface for inputting data sent from the host computer 2, and 5 is a program ROM (Read Only) storing a control program including a program of a flowchart shown in FIG. Reference numeral 6 denotes a font ROM for storing a scalable font (characters represented by stroke information instead of dot signals and stored) corresponding to input character codes.
(Read Only Memory; fixed storage device), 7 is a built-in RAM serving as a memory medium including a work memory used when generating vector coordinates of a dot pattern
(Random Access Memory; constant-speed calling storage device) 8 is an output unit for printing and outputting information on paper or the like.

【0040】次に、ドットパターンからベクトル座標を
抽出する処理手順を図2のフローチャートに基づいて説
明する。
Next, a processing procedure for extracting vector coordinates from a dot pattern will be described with reference to the flowchart of FIG.

【0041】まず、ステップS201でCPU3は、ベ
クトル座標を抽出したいドットパターンをワークメモリ
に獲得する。次に、ステップS202に進んでCPU3
は、前記ステップS201において獲得したドットパタ
ーンの外輪郭及び内輪郭の輪郭点列を、輪郭点追跡法に
よりワークメモリに抽出する。この時の輪郭点列は、元
のドットパターンと同サイズであり、また、輪郭点列の
座標を抽出すると同時にその追跡方向Vと該追跡方向の
変化Dもワークメモリに格納しておく。
First, in step S201, the CPU 3 acquires a dot pattern from which vector coordinates are to be extracted in the work memory. Next, the process proceeds to step S202 and the CPU 3
Extracts the contour point sequence of the outer contour and the inner contour of the dot pattern obtained in step S201 into the work memory by the contour point tracking method. The contour point sequence at this time has the same size as the original dot pattern. The coordinates of the contour point sequence are extracted, and at the same time, the tracking direction V and the change D of the tracking direction are stored in the work memory.

【0042】前記追跡方向Vは、図3(a)の規則によ
って定義されるものとする。同図において点Pが注目点
であり、該点Pに対して右回りに増加するように定義す
る。即ち、図3(a)は、点Pを基準とする追跡方向V
を定義する規則を示す図であり、同図の点Pの位置か
ら、水平右方向は0、右斜め下方向は1、垂直下方向は
2、斜め左下方向は3、水平左方向は4、斜め左上方向
は5、垂直上方向は6、斜め右上方向は7とそれぞれ定
義する。
The tracking direction V is defined by the rule shown in FIG. In the figure, a point P is a point of interest, and is defined so as to increase clockwise with respect to the point P. That is, FIG. 3A shows the tracking direction V based on the point P.
From the position of point P in the same figure, 0 in the horizontal right direction, 1 in the diagonally lower right direction, 2 in the vertical lower direction, 3 in the diagonally lower left direction, 4 in the horizontal left direction, The upper left direction is defined as 5, the upper vertical direction is defined as 6, and the upper right direction is defined as 7.

【0043】具体例として図3(b)を例に説明する
と、図3(b)は、点Pi-1から斜め左下方向に向かっ
て点Piに行った後、水平左方向に向かって点Pi+1に行
く輪郭点追跡状態を示す図であり、点Pi-1から点Pi
かけての追跡方向は、図3(a)の規則からして「3」
であり、点Piから点Pi+1にかけての追跡方向は、図3
(a)の規則からして「4」であり、点Piの追跡方向
iは、Vi=4ということになる。
[0043] With reference to FIG. 3 as an example (b) as an example, FIG. 3 (b), after the point P i from the point P i-1 toward the lower left direction, toward the horizontal left direction It is a figure which shows the contour point tracking state which goes to the point P i + 1 , and the tracking direction from the point P i-1 to the point P i is "3" according to the rule of FIG.
And the tracking direction from point P i to point P i + 1 is shown in FIG.
And from the rules of (a) is "4", the tracking direction V i of the point P i would that V i = 4.

【0044】また、点Pの追跡方向の変化Dについて
は、点Pの追跡方向をVp、一つ前の隣接点の追跡方向
をVrとする時、下記式(1)によって点Pの追跡方向
の変化Dを定義する。
As for the change D in the tracking direction of the point P, when the tracking direction of the point P is V p and the tracking direction of the immediately preceding adjacent point is V r , the following equation (1) is used. The change D of the tracking direction is defined.

【0045】D=|Vp−Vr|&7 …(1) 図3(b)を例に説明すると、同図の場合Vp=4、Vr
=3であるから、前記式(1)により点Piの追跡方向
の変化Diは、Di=1ということになる。
D = | V p −V r | & 7 (1) Referring to FIG. 3B as an example, in the case of FIG. 3, V p = 4, V r
Since = 3, the change D i of the tracking direction of the point P i by the formula (1) will be referred to as D i = 1.

【0046】次に、ステップS203に進んでCPU3
は、輪郭の開始点を獲得し、その輪郭の数だけループし
て、各輪郭点列に補正をかける。次いで、ステップS2
04に進みCPU3は、輪郭点に対して拡大率を偶数倍
とした拡大処理を行う(本実施例では4倍拡大)。但
し、この拡大処理は、ワークメモリに拡大したドットパ
ターンを格納するのではなく、座標値的に拡大処理を施
すだけである。
Next, the process proceeds to step S203, where the CPU 3
Acquires the starting point of the contour, loops by the number of contours, and corrects each contour point sequence. Next, step S2
In step 04, the CPU 3 performs an enlargement process on the contour points with the enlargement ratio set to an even number (in this embodiment, quadruple enlargement). However, this enlargement process does not store the enlarged dot pattern in the work memory, but only performs the enlargement process in terms of coordinate values.

【0047】現在処理している輪郭点をP(X,Y)と
した時、下記式(2)、(3)によって拡大処理する。
Assuming that the contour point currently being processed is P (X, Y), enlargement processing is performed by the following equations (2) and (3).

【0048】 X=X×S+S/2 …(2) Y=Y×S+S/2 …(3) 但し、Sは変倍率である。X = X × S + S / 2 (2) Y = Y × S + S / 2 (3) where S is a magnification.

【0049】次に、ステップS205に進んでCPU3
は、各輪郭点の方向情報である追跡方向Vに基づいて座
標補正処理を行う。この処理は、点の追跡方向Vが偶数
か奇数かで振り分けられるもので、偶数であればステッ
プS206へ、奇数であればステップS207へそれぞ
れ進み、追跡方向の変化Dによって処理1〜処理7に振
り分けられる。
Next, the process proceeds to step S205, where the CPU 3
Performs coordinate correction processing based on the tracking direction V that is the direction information of each contour point. In this process, the points are sorted according to whether the tracking direction V of the point is even or odd. If the tracking number V is even, the process proceeds to step S206. If the tracking number V is odd, the process proceeds to step S207. Will be sorted out.

【0050】即ち、前記ステップS206において、D
=0の場合は処理1、D=1または7の場合は処理2、
D=2の場合は処理3、D=3の場合は処理4、D=4
の場合は処理5、D=6の場合は処理6がそれぞれ行わ
れる。また、前記ステップS207において、D=0の
場合は処理1、D=1または2の場合は処理3、D=3
の場合は処理7、D=4の場合は処理5、D=6または
7の場合は処理6がそれぞれ行われる。
That is, in step S206, D
= 0, processing 1; D = 1 or 7, processing 2;
If D = 2, process 3; if D = 3, process 4, D = 4
, Processing 5 is performed, and if D = 6, processing 6 is performed. In step S207, when D = 0, processing 1 is performed. When D = 1 or 2, processing 3 is performed.
, The processing 5 is performed when D = 4, and the processing 6 is performed when D = 6 or 7.

【0051】以下、処理1〜処理7について順次説明す
る。
Hereinafter, processing 1 to processing 7 will be sequentially described.

【0052】今、処理する輪郭点をPiとし、その座標
を(X,Y)、追跡方向をVとする。
[0052] Now, a contour point to be processed as P i, the coordinates (X, Y), a tracking direction and V.

【0053】また、下記式(4)、(5)によって方向
値Wを引き数とする配列を定義する。
An array using the direction value W as an argument is defined by the following equations (4) and (5).

【0054】 TX[W]={2,2,0,−2,−2,−2,0,2}…(4) TY[W]={0,2,2,2,0,−2,−2,−2}…(5) 但し、TXとTYは、補正値である。TX [W] = {2,2,0, −2, −2, −2,0,2} (4) TY [W] = {0,2,2,2,0, −2 , -2, -2} (5) where TX and TY are correction values.

【0055】前記式(4)では、TXの0番目と1番目
と7番目は「2」、2番目と6番目は「0」、3番目〜
5番目は「−2」と定義するものである。
In the above equation (4), the 0th, 1st and 7th of the TX are “2”, the 2nd and 6th are “0”,
The fifth is defined as "-2".

【0056】また、前記式(5)では、TYの0番目と
4番目は「0」、1番目〜3番目は「2」、5番目〜7
番目は「−2」と定義するものである。 (処理1)点Piを削除する。 (処理2)点Piの座標値を下記式(6)、(7)、
(8)に従って変換する。
In the above equation (5), the 0th and 4th TY are “0”, the 1st to 3rd are “2”, and the 5th to 7th TY.
The second is defined as "-2". (Process 1) The point P i is deleted. (Process 2) The coordinate values of the point P i are calculated by the following equations (6), (7),
Convert according to (8).

【0057】W=(V+6)&7 …(6) X=X+TX[W] …(7) Y=Y+TY[W] …(8) 但し、前記式(6)における数値6は、補正する位置に
よって決まる値である。
W = (V + 6) & 7 (6) X = X + TX [W] (7) Y = Y + TY [W] (8) However, the numerical value 6 in the equation (6) is determined by the position to be corrected. Value.

【0058】図4(a)は、点Pi-1から斜め右下方向
に向かって点Piに行った後、垂直下方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「2」であるから、前記式(6)によりWは2+
6=8であり、このWの値と「7」とのアンド(&)を
とっており、Wの値が「8」の場合は「0」であるか
ら、W=0となる。
[0058] FIG. 4 (a), after the point P i from the point P i-1 obliquely lower right direction, showing the contour point tracking state to go to the point P i + 1 towards the vertically downward a diagram, tracking direction V of the point P i in this case, since it is "2" from the definition based on the rule in FIG. 3 (a), W by the equation (6) 2+
6 = 8, the value of W is ANDed with “7”, and when the value of W is “8”, it is “0”, so that W = 0.

【0059】そして、前記式(4)の定義からTXの0
番目は「2」となり、前記式(5)の定義からTYの0
番目は「0」となる。このことは、X座標は「2」を足
し(右側に2つずらす)、Y座標はそのままにすると言
うことであり、従って、図4(a)の■印C1の座標値
へと補正される。
From the definition of the above equation (4), TX
The second is “2”, and from the definition of the expression (5), TY is 0.
The number is “0”. This is, X coordinate (shifted two to the right) plus "2", Y-coordinate is to say to leave its therefore be corrected to ■ mark C 1 coordinate values of FIGS. 4 (a) You.

【0060】図4(b)は、点Pi-1から斜め左下方向
に向かって点Piに行った後、水平左方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「4」であるから、前記式(6)によりWは4+
6=10であり、このWの値と「7」とのアンド(&)
をとっており、Wの値が「10」の場合は「2」である
から、W=2となる。
[0060] FIG. 4 (b), after the point P i from the point P i-1 toward the lower left direction, illustrating the contour point tracking state to go to the point P i + 1 toward the leftward horizontal direction In this case, the tracking direction V of the point P i is “4” according to the definition based on the rule of FIG. 3A, so that W is 4+
6 = 10, and the value of W and “&” of “7”
And when the value of W is “10”, it is “2”, so that W = 2.

【0061】そして、前記式(4)の定義からTXの2
番目は「0」となり、前記式(5)の定義からTYの2
番目は「2」となる。このことは、X座標はそのまま
で、Y座標は「2」を足す(下側に2つずらす)と言う
ことであり、従って、図4(b)の■印C1の座標値へ
と補正される。
From the definition of the above equation (4), TX 2
The second is “0”, which is 2 of TY from the definition of the expression (5).
The second is “2”. This means that the X coordinate is kept as it is, and the Y coordinate is added with “2” (displaced two downwards). Therefore, the coordinate value is corrected to the coordinate value of the mark C 1 in FIG. Is done.

【0062】図4(c)は、点Pi-1から斜め右下方向
に向かって点Piに行った後、水平右方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「0」であるから、前記式(6)によりWは0+
6=6であり、このWの値と「7」とのアンド(&)を
とっており、Wの値が「6」の場合はそのままの値であ
るから、W=6となる。
[0062] FIG. 4 (c), after the point P i from the point P i-1 obliquely lower right direction, showing the contour point tracking state to go to the point P i + 1 towards the right horizontal direction In this case, the tracking direction V of the point P i in this case is “0” from the definition based on the rule of FIG. 3A, so that W is 0+
6 = 6, and the value of W is ANDed with “7”, and when the value of W is “6”, the value is unchanged, so W = 6.

【0063】そして、前記式(4)の定義からTXの6
番目は「0」となり、前記式(5)の定義からTYの6
番目は「−2」となる。このことは、X座標はそのまま
で、Y座標は「2」を引く(上側に2つずらす)と言う
ことであり、従って、図4(c)の■印C1の座標値へ
と補正される。
From the definition of the above equation (4), TX 6
Is “0”, which is 6th of TY from the definition of the above equation (5).
The second is “−2”. This means that the X coordinate is kept as it is, and the Y coordinate is subtracted by “2” (shifted upward by two). Therefore, the coordinate value is corrected to the coordinate value of the mark C 1 in FIG. You.

【0064】図4(d)は、点Pi-1から斜め左下方向
に向かって点Piに行った後、垂直下方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「2」であるから、前記式(6)によりWは2+
6=8であり、従って、前記図4(a)の場合と同様に
X座標は「2」を足し(右側に2つずらす)、Y座標は
そのままにすると言うことになり、図4(d)の■印C
1の座標値へと補正される。
[0064] FIG. 4 (d), after the point P i from the point P i-1 toward the lower left direction, illustrating the contour point tracking state to go to the point P i + 1 towards the vertically downward In this case, the tracking direction V of the point P i is “2” from the definition based on the rule of FIG. 3A, so that W is 2+
6 = 8, and therefore, as in the case of FIG. 4A, the X coordinate is obtained by adding “2” (shifted to the right by two) and leaving the Y coordinate as it is. ■ mark C
Corrected to the coordinate value of 1 .

【0065】尚、図4(a)及び(b)は外輪郭の場合
を、(c)及び(d)は内輪郭の場合をそれぞれ示す。 (処理3)点Piの座標値を下記式(9)、(10)、
(11)に従って変換する。
FIGS. 4A and 4B show the case of the outer contour, and FIGS. 4C and 4D show the case of the inner contour. (Process 3) The coordinate values of the point P i are calculated by the following equations (9), (10),
Convert according to (11).

【0066】W=(V+5)&7 …(9) X=X+TX[W] …(10) Y=Y+TY[W] …(11) 但し、前記式(9)における数値5は、補正する位置に
よって決まる値である。
W = (V + 5) & 7 (9) X = X + TX [W] (10) Y = Y + TY [W] (11) However, the numerical value 5 in the equation (9) is determined by the position to be corrected. Value.

【0067】図5(a)は、点Pi-1から水平右方向に
向かって点Piに行った後、垂直下方向に向かって点P
i+1に行く輪郭点追跡状態を示す図であり、この場合の
点Piの追跡方向Vは、図3(a)の規則に基づく定義
から「2」であるから、前記式(9)によりWは2+5
=7であり、このWの値と「7」とのアンド(&)をと
っており、Wの値が「7」の場合はそのままの値である
から、W=7となる。
FIG. 5 (a) shows that after going from point P i-1 to point P i in the horizontal right direction, point P i in the downward vertical direction
FIG. 8 is a diagram showing a contour point tracking state going to i + 1. In this case, the tracking direction V of the point P i is “2” from the definition based on the rule of FIG. W is 2 + 5
= 7, and the AND value of this W value and “7” is ANDed. When the W value is “7”, the value is unchanged, so W = 7.

【0068】そして、前記式(4)の定義からTXの7
番目は「2」となり、前記式(5)の定義からTYの7
番目は「−2」となる。このことは、X座標は「2」を
足し(2つ右へずらす)、Y座標は「2」を引く(2つ
上にずらす)と言うことであり、従って、図5(a)の
■印C1の座標値へと補正される。
From the definition of the above equation (4), TX 7
The second is “2”, which is 7 of TY from the definition of the expression (5).
The second is “−2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate subtracts "2" (shifts up by two). Therefore, ■ in FIG. It is corrected to the coordinate value of the mark C 1.

【0069】図5(b)は、点Pi-1から垂直下方向に
向かって点Piに行った後、水平左方向に向かって点P
i+1に行く輪郭点追跡状態を示す図であり、この場合の
点Piの追跡方向Vは、図3(a)の規則に基づく定義
から「4」であるから、前記式(9)によりWは4+5
=9であり、このWの値と「7」とのアンド(&)をと
っており、Wの値が「9」の場合は「1」であるから、
W=1となる。
FIG. 5 (b) shows that after going from point P i-1 to point P i vertically downward, point P i
FIG. 8 is a diagram showing a contour point tracking state going to i + 1. In this case, the tracking direction V of the point P i is “4” according to the definition based on the rule of FIG. W is 4 + 5
= 9, and the value of W is ANDed with “7”, and when the value of W is “9”, it is “1”.
W = 1.

【0070】そして、前記式(4)の定義からTXの1
番目は「2」となり、前記式(5)の定義からTYの1
番目は「2」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標は「2」を足す(2つ下
にずらす)と言うことであり、従って、図5(b)の■
印C1の座標値へと補正される。
From the definition of equation (4), TX 1
The second is “2”, and from the definition of the above equation (5), 1 of TY
The second is “2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate adds "2" (shifts two to the bottom). Therefore, ■ in FIG.
It is corrected to the coordinate value of the mark C 1.

【0071】図5(c)は、点Pi-1から水平右方向に
向かって点Piに行った後、斜め右下方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「1」であるから、前記式(9)によりWは1+
5=6であり、このWの値と「7」とのアンド(&)を
とっており、Wの値が「6」の場合はそのままの値であ
るから、W=6となる。
[0071] FIG. 5 (c), after the point P i from the point P i-1 towards the right horizontal direction, showing the contour point tracking state to go to the point P i + 1 towards the lower right diagonal direction Since the tracking direction V of the point P i in this case is “1” from the definition based on the rule of FIG. 3A, W is 1+ according to the above equation (9).
5 = 6, and the value of W is ANDed with “7”. When the value of W is “6”, the value is unchanged, so W = 6.

【0072】そして、前記式(4)の定義からTXの6
番目は「0」となり、前記式(5)の定義からTYの6
番目は「−2」となる。このことは、X座標はそのまま
で、Y座標は「2」を引く(2つ上にずらす)と言うこ
とであり、従って、図5(c)の■印C1の座標値へと
補正される。
From the definition of the above equation (4), TX 6
Is “0”, which is 6th of TY from the definition of the above equation (5).
The second is “−2”. This is, X-coordinate is unchanged, Y coordinate is to say subtract "2" (shifting on two), therefore, is corrected to ■ mark C 1 coordinate values shown in FIG. 5 (c) You.

【0073】図5(d)は、点Pi-1から垂直下方向に
向かって点Piに行った後、斜め左下方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「3」であるから、前記式(9)によりWは3+
5=8であり、このWの値と「7」とのアンド(&)を
とっており、Wの値が「8」の場合は「0」であるか
ら、W=0となる。
[0073] FIG. 5 (d) after the point P i from the point P i-1 towards the vertically downward, shows a contour point tracking state to go to the point P i + 1 toward the lower left direction In this case, the tracking direction V of the point P i is “3” from the definition based on the rule of FIG. 3A, so that W is 3+
5 = 8, and the value of W is ANDed with “7”, and when the value of W is “8”, it is “0”, so that W = 0.

【0074】そして、前記式(4)の定義からTXの0
番目は「2」となり、前記式(5)の定義からTYの0
番目は「0」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標はそのままと言うことで
あり、従って、図5(d)の■印C1の座標値へと補正
される。
From the definition of the above equation (4), 0 of TX
The second is “2”, and from the definition of the expression (5), TY is 0.
The number is “0”. This is, X coordinate (shifted into two right) the sum "2", Y-coordinate is to say it is, therefore, is corrected to ■ mark C 1 coordinate values shown in FIG. 5 (d) .

【0075】図5(e)は、点Pi-1から斜め右下方向
に向かって点Piに行った後、斜め左下方向に向かって
点Pi+1に行く輪郭点追跡状態を示す図であり、この場
合の点Piの追跡方向Vは、図3(a)の規則に基づく
定義から「3」であり、前記図5(d)の場合と同様に
X座標は「2」を足し(2つ右へずらす)、Y座標はそ
のままと言うことであり、従って、図5(e)の■印C
1の座標値へと補正される。
[0075] FIG. 5 (e) after the point P i from the point P i-1 obliquely lower right direction, showing the contour point tracking state to go to the point P i + 1 toward the lower left direction In this case, the tracking direction V of the point P i in this case is “3” from the definition based on the rule of FIG. 3A, and the X coordinate is “2” as in the case of FIG. 5D. Is added (shifted to the right by two), and the Y coordinate is kept as it is.
Corrected to the coordinate value of 1 .

【0076】尚、図5(a)〜(e)は外輪郭の場合を
示す。 (処理4)点Piの座標値を下記式(12)、(1
3)、(14)に従って一度変換した後、下記式(1
5)、(16)、(17)に従って再度変換する。
FIGS. 5A to 5E show the case of the outer contour. (Process 4) The coordinate values of the point Pi are calculated by the following equations (12) and (1).
3) After once converting according to (14), the following equation (1)
5) Convert again according to (16) and (17).

【0077】W=(V+5)&7 …(12) X=X+TX[W] …(13) Y=Y+TY[W] …(14) W=(V+4)&7 …(15) X=X+TX[W] …(16) Y=Y+TY[W] …(17) 但し、前記式(12)及び(15)における数値5及び
4は、補正する位置によって決まる値である。
W = (V + 5) & 7 (12) X = X + TX [W] (13) Y = Y + TY [W] (14) W = (V + 4) & 7 (15) X = X + TX [W] (16) Y = Y + TY [W] (17) However, the numerical values 5 and 4 in the equations (12) and (15) are values determined by the position to be corrected.

【0078】図6(a)は、点Pi-1から斜め右下方向
に向かって点Piに行った後、水平左方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「4」であるから、前記式(12)によりWは4
+5=9であり、このWの値と「7」とのアンド(&)
をとっており、Wの値が「9」の場合は「1」であるか
ら、W=1となる。
[0078] FIG. 6 (a), after the point P i from the point P i-1 obliquely lower right direction, showing the contour point tracking state to go to the point P i + 1 toward the leftward horizontal direction a diagram, tracking direction V of the point P i in this case, because it is "4" from the definition based on the rule in FIG. 3 (a), W according to the equation (12) 4
+ 5 = 9, and an AND of the value of W and “7”
, And when the value of W is “9”, it is “1”, so that W = 1.

【0079】そして、前記式(4)の定義からTXの1
番目は「2」となり、前記式(5)の定義からTYの1
番目も「2」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標も「2」を足す(2つ下
へずらす)と言うことであり、これに従って第1回目の
変換処理を行う。
From the definition of the above equation (4), 1 of TX
The second is “2”, and from the definition of the above equation (5), 1 of TY
The second is also “2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate also adds "2" (shifts two to the bottom). Do.

【0080】また、前記式(15)によりWは4+4=
8であり、このWの値と「7」とのアンド(&)をとっ
ており、Wの値が「8」の場合は「0」であるから、W
=0となる。
According to the above equation (15), W is 4 + 4 =
8, and the value of W is ANDed with “7”, and when the value of W is “8”, it is “0”.
= 0.

【0081】そして、前記式(4)の定義からTXの0
番目は「2」となり、前記式(5)の定義からTYの0
番目は「0」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標はそのままと言うことで
あり、これに従って第2回目の変換処理を行う。
From the definition of the above equation (4), 0 of TX
The second is “2”, and from the definition of the expression (5), TY is 0.
The number is “0”. This means that "2" is added to the X coordinate (shifted to the right by two) and the Y coordinate is left as it is, and the second conversion process is performed according to this.

【0082】その結果、最終的に図5(a)の■印C1
の座標値へと補正される。
As a result, finally, the symbol C 1 in FIG.
Is corrected to the coordinate value of.

【0083】図6(b)は、点Pi-1から垂直下方向に
向かって点Piに行った後、水平左方向に向かって点P
i+1に行く輪郭点追跡状態を示す図であり、この場合の
点Piの追跡方向Vは、図3(a)の規則に基づく定義
から「6」であるから、前記式(12)によりWは6+
5=11であり、このWの値と「7」とのアンド(&)
をとっており、Wの値が「11」の場合は「3」である
から、W=3となる。
FIG. 6 (b) shows that after going from point P i-1 to point P i in the vertical downward direction, point P i in the horizontal left direction
FIG. 7B is a diagram showing a contour point tracking state going to i + 1. In this case, the tracking direction V of the point P i is “6” according to the definition based on the rule of FIG. W is 6+
5 = 11, and an AND of this value of W and “7”
, And when the value of W is “11”, it is “3”, so that W = 3.

【0084】そして、前記式(4)の定義からTXの3
番目は「−2」となり、前記式(5)の定義からTYの
3番目は「2」となる。このことは、X座標は「2」を
引き(2つ左へずらす)、Y座標は「2」を足す(2つ
下にずらす)と言うことであり、これに従って第1回目
の変換処理を行う。
From the definition of the above equation (4), 3
The third is “−2”, and the third of TY is “2” from the definition of the equation (5). This means that the X coordinate subtracts "2" (shifts two to the left) and the Y coordinate adds "2" (shifts two to the bottom), and the first conversion process is performed accordingly. Do.

【0085】また、前記式(15)によりWは6+4=
10であり、このWの値と「7」とのアンド(&)をと
っており、Wの値が「10」の場合は「2」であるか
ら、W=2となる。
According to the above equation (15), W is 6 + 4 =
10, which is an AND of the value of W and “7”. When the value of W is “10”, it is “2”, so that W = 2.

【0086】そして、前記式(4)の定義からTXの2
番目は「0」となり、前記式(5)の定義からTYの2
番目は「2」となる。このことは、X座標はそのまま
で、Y座標は「2」を足す(2つ下にずらす)と言うこ
とであり、これに従って第2回目の変換処理を行う。
From the definition of the above equation (4), TX 2
The second is “0”, which is 2 of TY from the definition of the expression (5).
The second is “2”. This means that the X coordinate is kept as it is, and the Y coordinate is added by “2” (shifted down by two), and the second conversion process is performed according to this.

【0087】その結果、最終的に図6(b)の■印C1
の座標値へと補正される。 (処理5)点Piの座標値を下記式(18)、(1
9)、(20)に従って変換した後、該変換する前の点
と変換後の点との間に、下記式(21)、(22)、
(23)に従って新しい輪郭点を生成する。
As a result, the symbol C 1 in FIG. 6B is finally obtained.
Is corrected to the coordinate value of. (Process 5) The coordinate values of the point Pi are calculated by the following equations (18) and (1).
9) and (20), and between the point before the conversion and the point after the conversion, the following equations (21), (22),
A new contour point is generated according to (23).

【0088】W=(V+3)&7 …(18) X=X+TX[W] …(19) Y=Y+TY[W] …(20) W=(V+5)&7 …(21) X′=X+TX[W] …(22) Y′=Y+TY[W] …(23) 但し、前記式(18)及び(21)における数値3及び
5は、補正する位置によって決まる値である。
W = (V + 3) & 7 (18) X = X + TX [W] (19) Y = Y + TY [W] (20) W = (V + 5) & 7 (21) X '= X + TX [W] (22) Y '= Y + TY [W] (23) However, the numerical values 3 and 5 in the above equations (18) and (21) are values determined by the position to be corrected.

【0089】図7(a)は、点Pi-1から水平右方向に
向かって点Piに行った後、水平左方向に向かって点P
i-1(上述した図4〜図6の場合の点Pi+1に相当する)
へ戻る輪郭点追跡状態を示す図であり、この場合の点P
iの追跡方向Vは、図3(a)の規則に基づく定義から
「4」であるから、前記式(18)によりWは4+3=
7であり、このWの値と「7」とのアンド(&)をとっ
ており、Wの値が「7」の場合はそのままの値であるか
ら、W=7となる。
FIG. 7 (a) shows that after going from point P i-1 to point P i in the horizontal right direction, point P i in the horizontal left direction
i-1 (corresponding to the point P i + 1 in the case of FIGS. 4 to 6 described above)
FIG. 9 is a diagram showing a contour point tracking state returning to FIG.
Since the tracking direction V of i is “4” from the definition based on the rule of FIG. 3A, W is 4 + 3 =
7, which is an AND of the value of W and “7”. When the value of W is “7”, the value is unchanged, so that W = 7.

【0090】そして、前記式(4)の定義からTXの7
番目は「2」となり、前記式(5)の定義からTYの7
番目は「−2」となる。このことは、X座標は「2」を
足し(2つ右へずらす)、Y座標は「2」を引く(2つ
上にずらす)と言うことであり、従って、図7(a)の
■印C1の座標値へと補正される。
From the definition of the above equation (4), TX 7
The second is “2”, which is 7 of TY from the definition of the expression (5).
The second is “−2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate subtracts "2" (shifts up to two). Therefore, ■ in FIG. It is corrected to the coordinate value of the mark C 1.

【0091】また、前記式(21)によりWは4+5=
9であり、このWの値と「7」とのアンド(&)をとっ
ており、Wの値が「9」の場合は「1」であるから、W
=1となる。
According to the above equation (21), W is 4 + 5 =
9, which is an AND of the value of W and “7”, and when the value of W is “9”, it is “1”.
= 1.

【0092】そして、前記式(4)の定義からTXの1
番目は「2」となり、前記式(5)の定義からTYの1
番目も「2」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標も「2」を足す(2つ下
にずらす)と言うことであり、従って、図7(a)の■
印C2の座標値へ新たな輪郭点が生成される。
From the definition of the above equation (4), TX 1
The second is “2”, and from the definition of the above equation (5), 1 of TY
The second is also “2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate also adds "2" (shifts two to the bottom). Therefore, in FIG.
Mark the new contour points to the coordinate values of the C 2 is generated.

【0093】図7(b)は、点Pi-1から垂直下方向に
向かって点Piに行った後、垂直上方向に向かって点P
i-1へ戻る輪郭点追跡状態を示す図であり、この場合の
点Piの追跡方向Vは、図3(a)の規則に基づく定義
から「6」であるから、前記式(18)によりWは6+
3=9であり、このWの値と「7」とのアンド(&)を
とっており、Wの値が「9」の場合は「1」であるか
ら、W=1となる。
[0093] FIG. 7 (b), after the point P i from the point P i-1 towards the vertically downward, points toward a vertically upward direction P
FIG. 8 is a diagram showing a contour point tracking state returning to i-1 . In this case, the tracking direction V of the point P i is “6” from the definition based on the rule of FIG. W is 6+
3 = 9, and the value of W is ANDed with “7”. When the value of W is “9”, it is “1”, so that W = 1.

【0094】そして、前記式(4)の定義からTXの1
番目は「2」となり、前記式(5)の定義からTYの1
番目も「2」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標も「2」を足す(2つ下
にずらす)と言うことであり、従って、図7(b)の■
印C1の座標値へと補正される。
From the definition of the above equation (4), TX 1
The second is “2”, and from the definition of the above equation (5), 1 of TY
The second is also “2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate also adds "2" (shifts two to the bottom). Therefore, ■ in FIG.
It is corrected to the coordinate value of the mark C 1.

【0095】また、前記式(21)によりWは6+5=
11であり、このWの値と「7」とのアンド(&)をと
っており、Wの値が「11」の場合は「3」であるか
ら、W=3となり、前記式(4)の定義からTXの3番
目は「−2」となり、前記式(5)の定義からTYの3
番目は「2」となる。このことは、X座標は「2」を引
き(2つ左へずらす)、Y座標は「2」を足す(2つ下
にずらす)と言うことであり、従って、図7(b)の■
印C2の座標値へ新たな輪郭点が生成される。
According to the equation (21), W is 6 + 5 =
11, and the value of W is ANDed with “7”, and when the value of W is “11”, it is “3”. Therefore, W = 3, and the above equation (4) is obtained. From the definition of, the third of TX is “−2”, and from the definition of equation (5), the third of TY is
The second is “2”. This means that the X coordinate subtracts “2” (shifts two to the left), and the Y coordinate adds “2” (shifts two to the bottom). Therefore, ■ in FIG.
Mark the new contour points to the coordinate values of the C 2 is generated.

【0096】図7(c)は、点Pi-1から斜め右下方向
に向かって点Piに行った後、斜め左上方向に向かって
点Pi-1へ戻る輪郭点追跡状態を示す図であり、この場
合の点Piの追跡方向Vは、図3(a)の規則に基づく
定義から「5」であるから、前記式(18)によりWは
5+3=8であり、このWの値と「7」とのアンド
(&)をとっており、Wの値が「8」の場合は「0」で
あるから、W=0となる。
[0096] FIG. 7 (c), after the point P i from the point P i-1 obliquely lower right direction, showing the contour point tracking state back to the point P i-1 toward the upper left direction In this case, the tracking direction V of the point P i in this case is “5” from the definition based on the rule of FIG. 3A, so that W is 5 + 3 = 8 according to the equation (18). And the value of “7” is ANDed, and when the value of W is “8”, it is “0”, so that W = 0.

【0097】そして、前記式(4)の定義からTXの0
番目は「2」となり、前記式(5)の定義からTYの0
番目は「0」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標はそのままと言うことで
あり、従って、図7(c)の■印C1の座標値へと補正
される。
Then, from the definition of the above equation (4), 0 of TX
The second is “2”, and from the definition of the expression (5), TY is 0.
The number is “0”. This means that the X coordinate is obtained by adding “2” (shifted to the right by two), and the Y coordinate is not changed, and is therefore corrected to the coordinate value of the mark C 1 in FIG. 7C. .

【0098】また、前記式(21)によりWは5+5=
10であり、このWの値と「7」とのアンド(&)をと
っており、Wの値が「10」の場合は「2」であるか
ら、W=2となり、前記式(4)の定義からTXの2番
目は「0」となり、前記式(5)の定義からTYの2番
目は「2」となる。このことは、X座標はそのままで、
Y座標は「2」を足す(2つ下にずらす)と言うことで
あり、従って、図7(c)の■印C2の座標値へ新たな
輪郭点が生成される。
According to the equation (21), W is 5 + 5 =
10, and the value of W is ANDed with “7”, and when the value of W is “10”, it is “2”. Therefore, W = 2, and the above equation (4) is obtained. From the definition of (2), the second of TX becomes “0”, and from the definition of the above equation (5), the second of TY becomes “2”. This means that the X coordinate is
Y coordinate is to say adding the "2" (shifting to the two down), thus, ■ new contour points to the coordinate value of the mark C 2 in FIG. 7 (c) is generated.

【0099】図7(d)は、点Pi-1から斜め左下方向
に向かって点Piに行った後、斜め右上方向に向かって
点Pi-1へ戻る輪郭点追跡状態を示す図であり、この場
合の点Piの追跡方向Vは、図3(a)の規則に基づく
定義から「7」であるから、前記式(18)によりWは
7+3=10であり、このWの値と「7」とのアンド
(&)をとっており、Wの値が「10」の場合は「2」
であるから、W=2となる。
[0099] FIG. 7 (d), after the point P i from the point P i-1 toward the lower left direction, illustrating the contour point tracking state back toward the upper right direction to point P i-1 In this case, the tracking direction V of the point P i is “7” from the definition based on the rule of FIG. 3A, so that W is 7 + 3 = 10 according to the equation (18), and The value is ANDed with “7”, and “2” when the value of W is “10”
Therefore, W = 2.

【0100】そして、前記式(4)の定義からTXの2
番目は「0」となり、前記式(5)の定義からTYの2
番目は「2」となる。このことは、X座標はそのまま
で、Y座標は「2」を足す(2つ下にずらす)と言うこ
とであり、従って、図7(d)の■印C1の座標値へと
補正される。
From the definition of the above equation (4), TX 2
The second is “0”, which is 2 of TY from the definition of the expression (5).
The second is “2”. This means that the X coordinate is not changed, and the Y coordinate is added by “2” (shifted down by two). Therefore, the coordinate value is corrected to the coordinate value of the mark C 1 in FIG. 7D. You.

【0101】また、前記式(21)によりWは7+5=
12であり、このWの値と「7」とのアンド(&)をと
っており、Wの値が「12」の場合は「4」であるか
ら、W=4となり、前記式(4)の定義からTXの4番
目は「−2」となり、前記式(5)の定義からTYの4
番目は「0」となる。このことは、X座標は「2」を引
き(2つ左へずらす)、Y座標はそのままと言うことで
あり、従って、図7(d)の■印C2の座標値へ新たな
輪郭点が生成される。(処理6)点Piの座標値を下記
式(24)、(25)、(26)に従って変換する。
According to the above equation (21), W is 7 + 5 =
12, which is an AND (&) of the value of W and “7”, and when the value of W is “12”, it is “4”, so that W = 4, and the above equation (4) is obtained. From the definition of the above, the fourth of TX becomes “−2”, and from the definition of the above equation (5), the fourth of the TY becomes
The number is “0”. This means that the X coordinate is subtracted by “2” (shifted to the left by two) and the Y coordinate is not changed. Therefore, a new contour point is added to the coordinate value of the mark C 2 in FIG. Is generated. Formula coordinate values (process 6) points P i (24), (25 ), is converted in accordance with (26).

【0102】W=(V+7)&7 …(24) X=X+TX[W] …(25) Y=Y+TY[W] …(26) 但し、前記式(24)における数値7は、補正する位置
によって決まる値である。
W = (V + 7) & 7 (24) X = X + TX [W] (25) Y = Y + TY [W] (26) However, the numerical value 7 in the equation (24) is determined by the position to be corrected. Value.

【0103】図8(a)は、点Pi-1から水平右方向に
向かって点Piに行った後、垂直上方向に向かって点P
i+1に行く輪郭点追跡状態を示す図であり、この場合の
点Piの追跡方向Vは、図3(a)の規則に基づく定義
から「6」であるから、前記式(24)によりWは6+
7=13であり、このWの値と「7」とのアンド(&)
をとっており、Wの値が「13」の場合は「5」である
から、W=5となる。
FIG. 8A shows a point P i going from the point P i-1 to the right in the horizontal direction and then to the point P i in the vertical upward direction.
FIG. 8 is a diagram showing a contour point tracking state going to i + 1. In this case, the tracking direction V of the point P i is “6” from the definition based on the rule of FIG. W is 6+
7 = 13, and “&” of the value of W and “7”
And when the value of W is “13”, it is “5”, so that W = 5.

【0104】そして、前記式(4)の定義からTXの5
番目は「−2」となり、前記式(5)の定義からTYの
5番目は「0」となる。このことは、X座標は「2」を
引き(2つ左へずらす)、Y座標はそのままと言うこと
であり、従って、図8(a)の■印C1の座標値へと補
正される。
From the definition of the above equation (4), TX
The fifth is “−2”, and the fifth of the TY is “0” from the definition of the equation (5). This is, X coordinate (shifted into two left) "2" pull, Y coordinate is to say it is, therefore, is corrected to ■ mark C 1 coordinate values shown in FIG. 8 (a) .

【0105】図8(b)は、点Pi-1から垂直下方向に
向かって点Piに行った後、水平右方向に向かって点P
i+1に行く輪郭点追跡状態を示す図であり、この場合の
点Piの追跡方向Vは、図3(a)の規則に基づく定義
から「0」であるから、前記式(24)によりWは0+
7=7であり、このWの値と「7」とのアンド(&)を
とっており、Wの値が「7」の場合はそのままの値であ
るから、W=7となる。
FIG. 8 (b) shows that after going from point P i-1 to point P i vertically downward, point P i
FIG. 7B is a diagram showing a contour point tracking state going to i + 1. In this case, the tracking direction V of the point P i is “0” according to the definition based on the rule of FIG. W is 0+
7 = 7, and the value of W is ANDed with “7”, and when the value of W is “7”, the value is unchanged, so W = 7.

【0106】そして、前記式(4)の定義からTXの7
番目は「2」となり、前記式(5)の定義からTYの7
番目は「−2」となる。このことは、X座標は「2」を
足し(2つ右へずらす)、Y座標は「2」を引く(2つ
上にずらす)と言うことであり、従って、図8(b)の
■印C1の座標値へと補正される。
From the definition of the above equation (4), TX 7
The second is “2”, which is 7 of TY from the definition of the expression (5).
The second is “−2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate subtracts "2" (shifts up to two). Therefore, ■ in FIG. It is corrected to the coordinate value of the mark C 1.

【0107】図8(c)は、点Pi-1から斜め右下方向
に向かって点Piに行った後、斜め右上方向に向かって
点Pi+1に行く輪郭点追跡状態を示す図であり、この場
合の点Piの追跡方向Vは、図3(a)の規則に基づく
定義から「7」であるから、前記式(24)によりWは
7+7=14であり、このWの値と「7」とのアンド
(&)をとっており、Wの値が「14」の場合は「6」
であるから、W=6となる。
[0107] FIG. 8 (c), after the point P i from the point P i-1 obliquely lower right direction, showing the contour point tracking state to go to the point P i + 1 toward the upper right direction In this case, the tracking direction V of the point P i in this case is “7” from the definition based on the rule in FIG. 3A, so that W is 7 + 7 = 14 according to the equation (24). And “7” are ANDed, and when the value of W is “14”, “6”
Therefore, W = 6.

【0108】そして、前記式(4)の定義からTXの6
番目は「0」となり、前記式(5)の定義からTYの6
番目は「−2」となる。このことは、X座標はそのまま
で、Y座標は「2」を引く(2つ上にずらす)と言うこ
とであり、従って、図8(c)の■印C1の座標値へと
補正される。
From the definition of the above formula (4), TX 6
Is “0”, which is 6th of TY from the definition of the above equation (5).
The second is “−2”. This means that the X coordinate is kept as it is, and the Y coordinate is subtracted by “2” (shifted up by two). Therefore, the coordinate value is corrected to the coordinate value of the mark C 1 in FIG. 8C. You.

【0109】図8(d)は、点Pi-1から斜め左下方向
に向かって点Piに行った後、斜め右下方向に向かって
点Pi+1に行く輪郭点追跡状態を示す図であり、この場
合の点Piの追跡方向Vは、図3(a)の規則に基づく
定義から「1」であるから、前記式(24)によりWは
1+7=8であり、このWの値と「7」とのアンド
(&)をとっており、Wの値が「8」の場合は「0」で
あるから、W=0となる。
[0109] FIG. 8 (d) after the point P i from the point P i-1 toward the lower left direction, illustrating the contour point tracking state to go to the point P i + 1 towards the lower right diagonal direction Since the tracking direction V of the point P i in this case is “1” from the definition based on the rule of FIG. 3A, W is 1 + 7 = 8 according to the equation (24), and W And the value of “7” is ANDed, and when the value of W is “8”, it is “0”, so that W = 0.

【0110】そして、前記式(4)の定義からTXの0
番目は「2」となり、前記式(5)の定義からTYの0
番目は「0」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標はそのままと言うことで
あり、従って、図8(d)の■印C1の座標値へと補正
される。
From the definition of the above equation (4), 0 of TX
The second is “2”, and from the definition of the expression (5), TY is 0.
The number is “0”. This is, X coordinate (shifted into two right) the sum "2", Y-coordinate is to say it is, therefore, is corrected to ■ mark C 1 coordinate values shown in FIG. 8 (d) .

【0111】図8(e)は、点Pi-1から水平右方向に
向かって点Piに行った後、斜め右上方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「7」であり、前記図8(d)の場合と同様にX
座標は「2」を足し(2つ右へずらす)、Y座標はその
ままと言うことであり、従って、図8(e)の■印C1
の座標値へと補正される。
[0111] FIG. 8 (e) after the point P i from the point P i-1 towards the right horizontal direction, shows a contour point tracking state to go to the point P i + 1 toward the upper right direction In this case, the tracking direction V of the point P i is “7” from the definition based on the rule of FIG. 3A, and X is the same as in the case of FIG.
For the coordinates, "2" is added (shifted to the right by two), and the Y coordinate is left as it is. Therefore, the symbol C 1 in FIG.
Is corrected to the coordinate value of.

【0112】尚、図8(a)〜(e)は内輪郭の場合を
示す。 (処理7)点Piの座標値を下記式(27)、(2
8)、(29)に従って一度変換した後、下記式(3
0)、(31)、(32)に従って再度変換する。
FIGS. 8A to 8E show the case of the inner contour. (Process 7) The coordinate values of the point Pi are calculated by the following equations (27) and (2).
8), once converted according to (29), the following equation (3)
0), (31), and (32).

【0113】W=(V+4)&7 …(27) X=X+TX[W] …(28) Y=Y+TY[W] …(29) W=(V+5)&7 …(30) X=X+TX[W] …(31) Y=Y+TY[W] …(32) 但し、前記式(27)及び(30)における数値4及び
5は、補正する位置によって決まる値である。
W = (V + 4) & 7 (27) X = X + TX [W] (28) Y = Y + TY [W] (29) W = (V + 5) & 7 (30) X = X + TX [W] (31) Y = Y + TY [W] (32) However, the numerical values 4 and 5 in the equations (27) and (30) are values determined by the position to be corrected.

【0114】図9(a)は、点Pi-1から水平右方向に
向かって点Piに行った後、斜め下方向に向かって点P
i+1に行く輪郭点追跡状態を示す図であり、この場合の
点Piの追跡方向Vは、図3(a)の規則に基づく定義
から「3」であるから、前記式(27)によりWは3+
4=7であり、このWの値と「7」とのアンド(&)を
とっており、Wの値が「7」の場合はそのままの値であ
るから、W=7となる。
FIG. 9 (a) shows that after going from point P i-1 to point P i in the horizontal right direction, point P i in the diagonally downward direction
FIG. 14 is a diagram showing a contour point tracking state going to i + 1. In this case, the tracking direction V of the point P i is “3” according to the definition based on the rule of FIG. W is 3+
4 = 7, and the value of W is ANDed with “7”. When the value of W is “7”, the value is unchanged, so W = 7.

【0115】そして、前記式(4)の定義からTXの7
番目は「2」となり、前記式(5)の定義からTYの7
番目は「−2」となる。このことは、X座標は「2」を
足し(2つ右へずらす)、Y座標は「2」を引く(2つ
上へずらす)と言うことであり、これに従って第1回目
の変換処理を行う。
From the definition of the above formula (4), TX 7
The second is “2”, which is 7 of TY from the definition of the expression (5).
The second is “−2”. This means that the X coordinate adds “2” (shifts two to the right), and the Y coordinate subtracts “2” (shifts up to two), and the first conversion processing is performed accordingly. Do.

【0116】また、前記式(30)によりWは3+5=
8であり、このWの値と「7」とのアンド(&)をとっ
ており、Wの値が「8」の場合は「0」であるから、W
=0となる。
According to the equation (30), W is 3 + 5 =
8, and the value of W is ANDed with “7”, and when the value of W is “8”, it is “0”.
= 0.

【0117】そして、前記式(4)の定義からTXの0
番目は「2」となり、前記式(5)の定義からTYの0
番目は「0」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標はそのままと言うことで
あり、これに従って第2回目の変換処理を行う。
From the definition of the above equation (4), 0 of TX
The second is “2”, and from the definition of the expression (5), TY is 0.
The number is “0”. This means that "2" is added to the X coordinate (shifted to the right by two) and the Y coordinate is left as it is, and the second conversion process is performed according to this.

【0118】その結果、最終的に図9(a)の■印C1
の座標値へと補正される。
As a result, finally, the symbol C 1 in FIG.
Is corrected to the coordinate value of.

【0119】図9(b)は、点Pi-1から垂直下方向に
向かって点Piに行った後、斜め左上方向に向かって点
i+1に行く輪郭点追跡状態を示す図であり、この場合
の点Piの追跡方向Vは、図3(a)の規則に基づく定
義から「5」であるから、前記式(27)によりWは5
+4=9であり、このWの値と「7」とのアンド(&)
をとっており、Wの値が「9」の場合は「1」であるか
ら、W=1となる。
[0119] FIG. 9 (b), after the point P i from the point P i-1 towards the vertically downward, shows a contour point tracking state to go to the point P i + 1 obliquely upper left direction In this case, the tracking direction V of the point P i is “5” from the definition based on the rule of FIG.
+ 4 = 9, and an AND of this value of W and “7”
, And when the value of W is “9”, it is “1”, so that W = 1.

【0120】そして、前記式(4)の定義からTXの1
番目は「2」となり、前記式(5)の定義からTYの1
番目も「2」となる。このことは、X座標は「2」を足
し(2つ右へずらす)、Y座標も「2」を足す(2つ下
にずらす)と言うことであり、これに従って第1回目の
変換処理を行う。
From the definition of the above formula (4), TX 1
The second is “2”, and from the definition of the above equation (5), 1 of TY
The second is also “2”. This means that the X coordinate adds "2" (shifts two to the right), and the Y coordinate also adds "2" (shifts two down), and the first conversion process is performed accordingly. Do.

【0121】また、前記式(30)によりWは5+5=
10であり、このWの値と「7」とのアンド(&)をと
っており、Wの値が「10」の場合は「2」であるか
ら、W=2となる。
According to the above equation (30), W is 5 + 5 =
10, which is an AND of the value of W and “7”. When the value of W is “10”, it is “2”, so that W = 2.

【0122】そして、前記式(4)の定義からTXの2
番目は「0」となり、前記式(5)の定義からTYの2
番目は「2」となる。このことは、X座標はそのまま
で、Y座標は「2」を足す(2つ下にずらす)と言うこ
とであり、これに従って第2回目の変換処理を行う。
From the definition of the above formula (4), TX 2
The second is “0”, which is 2 of TY from the definition of the expression (5).
The second is “2”. This means that the X coordinate is kept as it is, and the Y coordinate is added by “2” (shifted down by two), and the second conversion process is performed according to this.

【0123】その結果、最終的に図9(b)の■印C1
の座標値へと補正される。
As a result, finally, the symbol C 1 in FIG. 9B
Is corrected to the coordinate value of.

【0124】以上のような処理1〜処理7を実行後は、
図2のステップS208へ進んで現在処理中の輪郭点が
その輪郭の終了点か否かを判断する。そして、終了点で
なければステップS209へ進んで次の輪郭点を獲得し
た後、前記ステップS204へ戻って該ステップS20
4以下の処理を繰り返す。また、前記ステップS208
において終了点であればステップS210へ進んで次の
輪郭があるか否かを判断する。そして、次の輪郭があれ
ば前記ステップS203へ戻って該ステップS203以
下の処理を繰り返す。また、次の輪郭がなければ本処理
動作を終了する。
After the above processing 1 to processing 7 are performed,
Proceeding to step S208 in FIG. 2, it is determined whether the contour point currently being processed is the end point of the contour. If it is not the end point, the process proceeds to step S209 to acquire the next contour point, and returns to step S204 to return to step S20.
Repeat the processing of 4 and below. Step S208
If the end point is found, the process proceeds to step S210 to determine whether there is a next contour. If there is a next contour, the process returns to the step S203 to repeat the processing from the step S203. If there is no next contour, the processing ends.

【0125】図10(a)は、本実施例のドットパター
ンからのベクトル座標点列発生装置により、4倍拡大を
用いて座標補正を行った内側輪郭点、(b)は、同じく
外側輪郭点をそれぞれ示す。同図において明確なように
外側輪郭点は言うまでもなく、内側輪郭点である8個の
点は互いに等間隔に変換されるので、元のドットパター
ンに忠実にスケーリングすることが可能なベクトル座標
を抽出することができる。
FIG. 10A shows an inner contour point obtained by performing coordinate correction using the quadruple enlargement by the vector coordinate point sequence generator from the dot pattern of this embodiment, and FIG. Are respectively shown. As clearly shown in the figure, not only the outer contour points, but also the eight inner contour points are converted at equal intervals, so that vector coordinates that can be faithfully scaled to the original dot pattern are extracted. can do.

【0126】(第2実施の形態) 次に、本発明の第2実施の形態を図12〜図15に基づ
き説明する。尚、本実施の形態に係るドットパターンか
らのベクトル座標発生装置を備えた印刷装置の構成は、
上述した第1実施の形態の図1と同一であるから、同図
を流用して説明する。本発明は拡大処理を偶数倍にした
座標補正を特徴としたものであり、輪郭点の抽出処理の
他にベクトル座標点列発生方法の一貫としてのコーナー
抽出処理にも適用可能であり、本実施の形態は、このよ
うなコーナー抽出処理に適用したものである。
(Second Embodiment) Next, a second embodiment of the present invention will be described with reference to FIGS. Note that the configuration of a printing apparatus including the vector coordinate generation device from the dot pattern according to the present embodiment is as follows.
Since it is the same as FIG. 1 of the first embodiment described above, the description will be made with reference to FIG. The present invention is characterized by a coordinate correction in which the enlargement processing is made even number times, and is applicable to a corner extraction processing as an integral part of a vector coordinate point sequence generation method in addition to a contour point extraction processing. Is applied to such a corner extraction process.

【0127】図11は、コーナー抽出処理を含んだドッ
トパターンからベクトル座標を抽出する処理手順を示す
フローチャートであり、以下、このフローチャートに従
って説明する。
FIG. 11 is a flowchart showing a procedure for extracting vector coordinates from a dot pattern including a corner extraction process, and the procedure will be described below with reference to this flowchart.

【0128】まず、ステップS1101でCPU3は、
ベクトル座標を抽出したいドットパターンをワークメモ
リに獲得する。次に、ステップS1102に進んでCP
U3は、輪郭点追跡法で外輪郭及び内輪郭の輪郭点列を
ワークメモリに抽出する。この時の輪郭点列は元のドッ
トパターンと同サイズであり、また、輪郭点列の座標を
抽出すると同時に追跡方向Vと該追跡方向の変化Dもワ
ークメモリに記憶しておく。
First, in step S1101, the CPU 3
Acquire the dot pattern for which you want to extract vector coordinates in the work memory. Next, the process proceeds to step S1102 and the CP
U3 extracts the contour point sequence of the outer contour and the inner contour into the work memory by the contour point tracking method. At this time, the contour point sequence has the same size as the original dot pattern, and the tracking direction V and the change D of the tracking direction are stored in the work memory at the same time as the coordinates of the contour point sequence are extracted.

【0129】次いでステップS1103へ進んで、上述
した第1実施の形態で説明した各輪郭点の補正処理を行
う。次にステップS1104へ進み輪郭の開始点を獲得
し、その輪郭の数だけループして、各輪郭点列に補正を
かける。次いで後述する1〜4の各条件に基づいて、後
述する8〜11の各処理を実行する。即ち、ステップS
1105において条件1であればステップS1106で
処理8を、ステップS1107において条件2であれば
ステップS1108で処理9を、ステップS1109に
おいて条件3であればステップS1110で処理10
を、ステップS1111において条件4であればステッ
プS1112で処理11をそれぞれ施すものである。
Then, the flow advances to step S1103 to perform the processing for correcting each contour point described in the first embodiment. Next, the process proceeds to step S1104, where the start point of the contour is acquired, the loop is looped by the number of contours, and each contour point sequence is corrected. Next, based on the conditions 1 to 4 described later, the processes 8 to 11 described later are executed. That is, step S
If the condition is 1 in 1105, the process 8 is performed in step S1106, if the condition is 2 in step S1107, the process 9 is performed in step S1108. If the condition is 3 in step S1109, the process 10 is performed in step S1110.
If condition 4 is satisfied in step S1111, processing 11 is performed in step S1112.

【0130】以下、条件1〜条件4及び処理8〜処理1
1について説明する。
Hereinafter, condition 1 to condition 4 and process 8 to process 1
1 will be described.

【0131】これから処理する輪郭点をPii番目の輪
郭点)とし、その座標を(Xi,Yi)、方向をVi、方
向の変化をDiとする。
[0131] and from now processed contour point P i (i-th contour points), the coordinates (X i, Y i), direction V i, a change of direction and D i.

【0132】i番目の輪郭点の座標値を(Xi,Yi)と
して、下記式(33)によって距離関数を定義する。
A distance function is defined by the following equation (33), where the coordinate value of the i- th contour point is (X i , Y i ).

【0133】 Dii+1=|Xi+1−Xi|+|Yi+1−Yi| …(33) また、下記式(34)及び(35)によって方向値Wを
引き数とする配列を定義する。
The D i . i + 1 = | X i + 1 -X i | + | Y i + 1 -Y i | ... The (33), defining an array, an argument direction value W by the equation (34) and (35) I do.

【0134】 TX[W]={2,2,0,−2,−2,−2,0,2}…(34) TY[W]={0,2,2,2,0,−2,−2,−2}…(35) 但し、TXとTYは、補正値である。TX [W] = {2,2,0, −2, −2, −2,0,2} (34) TY [W] = {0,2,2,2,0, −2 , -2, -2} (35) where TX and TY are correction values.

【0135】前記式(34)では、TXの0番目と1番
目と7番目は「2」、2番目と6番目は「0」、3番目
〜5番目は「−2」と定義するものである。
In the above equation (34), the 0th, 1st and 7th TX are defined as “2”, the 2nd and 6th are defined as “0”, and the 3rd to 5th are defined as “−2”. is there.

【0136】また、前記式(35)では、TYの0番目
と4番目は「0」、1番目〜3番目は「2」、5番目〜
7番目は「−2」と定義するものである。 (条件1) Di==7且つDi+1==7且つVi&1==1 且つDii+1<=CONST1(定数) 且つDi-1i>=CONST2(定数) またはDi+1i+2>=CONST2(定数) (処理8)点Piの座標値を下記式(36)〜(38)
に従って変換した後、点Pi+1を削除する。
In the equation (35), the 0th and 4th TY are “0”, the 1st to 3rd are “2”, and the 5th to 5th TY.
The seventh is defined as "-2". (Condition 1) D i == 7 and D i + 1 == 7 and V i & 1 == 1 and D i . i + 1 <= CONST1 (constant) and D i-1 . i > = CONST2 (constant) or D i + 1 . i + 2 > = CONST2 (constant) (Process 8) The coordinate values of the point P i are expressed by the following equations (36) to (38).
After that, the point P i + 1 is deleted.

【0137】W=Vi-1として …(36) Xi=Xi+TX[W]…(37) Yi=Yi+TY[W]…(38) 図12(a)は、点Piが■印C1の座標値iに、点P
i+1が■印C2の座標値にそれぞれ位置した状態を示し、
(b)は、(a)の状態から点Piが■印C1の座標値へ
補正され且つ点Pi+1が削除された状態を示す。(条件
2) Di==7且つDi+1==6且つDi+2==7 且つDii+1<=CONST1(定数) 且つDi+1i+2<=CONST1(定数) 且つDi-1i>=CONST2(定数) またはDi+2i+3>=CONST2(定数) (処理9)点Piの座標値を下記式(39)〜(41)
に従って一度変換し、次いで下記式(42)及び(4
3)に従って再度変換した後、点Pi+1を削除する。
[0137] W = V as i-1 ... (36) X i = X i + TX [W] ... (37) Y i = Y i + TY [W] ... (38) FIG. 12 (a), the point P i There ■ the coordinates i mark C 1, the point P
i + 1 indicates a state positioned respectively to the coordinate values of the mark C 2 ■,
(B) shows a state where the state from the point P i is ■ mark C 1 of the correction to the coordinate values and the point P i + 1 is deleted in (a). (Condition 2) D i == 7 and D i + 1 == 6 and D i + 2 == 7 and D i. i + 1 <= CONST1 (constant) and D i + 1 . i + 2 ≤ CONST1 (constant) and D i-1 . i > = CONST2 (constant) or D i + 2 . i + 3> = CONST2 (constant) the following formula a coordinate value of (processing 9) points P i (39) ~ (41)
, And then converted by the following equations (42) and (4)
After the conversion according to 3) again, the point P i + 1 is deleted.

【0138】W=(Vi+1+1)&7として…(39) Xi=Xi−TX[W] …(40) Yi=Yi−TY[W] …(41) Xi+2=Xi+1+TX[W] …(42) Yi+2=Yi+1+TY[W] …(43) 図13(a)は、点Piが■印C1の座標値に、点Pi+1
が■印C2の座標値に、点Pi+2が■印C3の座標値にそ
れぞれ位置した状態を示し、図13(b)は、(a)の
状態から点Pi及び点Pi+2が■印C1及びC3の座標値へ
それぞれ補正され且つ点Pi+1が削除された状態を示
す。 (条件3) Di==7且つDi+1==6且つVi&1==1 且つDii+1<=CONST1(定数) 且つDi-1i>=CONST2(定数) またはDi+1i+2>=CONST2(定数) (処理10)点Piの座標値を下記式(44)〜(4
6)に従って変換する。
Assuming that W = (V i + 1 +1) & 7 (39) X i = X i -TX [W] (40) Y i = Y i -TY [W] (41) X i + 2 = X i + 1 + TX [W] (42) Y i + 2 = Y i + 1 + TY [W] (43) FIG. 13A shows that the point P i is the coordinate value of the triangle C 1 . Point P i + 1
There the coordinate values of the ■ mark C2, showing a state in which the point P i + 2 are respectively positioned on the coordinate values of the mark C 3 ■, FIG. 13 (b), the point from the state of (a) P i and the point P i +2 indicates a state in which the coordinate values of the triangles C 1 and C 3 have been corrected, and the point P i + 1 has been deleted. (Condition 3) D i == 7 and D i + 1 == 6 and V i & 1 == 1 and D i. i + 1 <= CONST1 (constant) and D i-1 . i > = CONST2 (constant) or D i + 1 . i + 2> = CONST2 (constant) (process 10) points following formula coordinate values of P i (44) ~ (4
Convert according to 6).

【0139】W=(Vi+1)&7として…(44) Xi=Xi+TX[W] …(45) Yi=Yi+TY[W] …(46) 図14(a)は、点Piが■印C1の座標値に、点Pi+1
が■印C2の座標値にそれぞれ位置した状態を示し、図
14(b)は、図14(a)の状態から点Pi+2はその
ままで、点Piが■印C1の座標値へ補正された状態を示
す。 (条件4) Di==6且つDi+1==7且つVi&1==1 且つDii+1<=CONST1(定数) 且つDi-1i>=CONST2(定数) またはDi-1i-2>=CONST2(定数) (処理11)点Piの座標値を下記式(47)〜(4
9)に従って変換する。
Assuming that W = (V i + 1 ) & 7 (44) X i = X i + TX [W] (45) Y i = Y i + TY [W] (46) FIG. the point P i is the coordinate value of the mark C 1 ■, point P i + 1
There shows a state positioned respectively to the coordinate values of the mark C 2 ■, FIG. 14 (b), as it is the point P i + 2 from the state of FIG. 14 (a), the point P i is ■ mark C 1 coordinate This shows the state corrected to the value. (Condition 4) D i == 6 and D i + 1 == 7 and V i & 1 == 1 and D i. i + 1 <= CONST1 (constant) and D i-1 . i > = CONST2 (constant) or D i-1 . i-2> = CONST2 (constant) (process 11) points following formula coordinate values of P i (47) ~ (4
Convert according to 9).

【0140】W=(Vi+3)&7として…(47) Xi=Xi+TX[W] …(48) Yi=Yi+TY[W] …(49) 図15(a)は、点Piが■印C1の座標値に、点Pi+1
が■印C2の座標値にそれぞれ位置した状態を示し、
(b)は、(a)の状態から点Piはそのままで、点P
i+2が■印C2の座標値へ補正された状態を示す。
Assuming that W = (V i + 3 ) & 7 (47) X i = X i + TX [W] (48) Y i = Y i + TY [W] (49) FIG. the point P i is the coordinate value of the mark C 1 ■, point P i + 1
There shows a state positioned respectively to the coordinate values of the mark C 2 ■,
(B) shows a state in which the point P i remains unchanged from the state of (a) and the point P
i + 2 indicates a corrected state to ■ mark C 2 coordinate values.

【0141】このような処理を実行後は、ステップS1
113に進んで現在処理中の輪郭点がその輪郭の終了点
か否かを判別する。終了点でなければステップS111
4に進んで次の輪郭点を獲得した後、前記ステップS1
105へ戻り該ステップS1105以下の処理を繰り返
す。また、前記ステップS1113において終了点であ
ればステップS1115に進んで次の輪郭点が存在する
か否かを判別する。そして、次の輪郭点が存在すれば前
記ステップS1104へ戻り該ステップS1104以下
の処理を繰り返し、存在しなければ本処理動作を終了す
る。
After executing such processing, the process proceeds to step S1.
Proceeding to 113, it is determined whether or not the contour point currently being processed is the end point of the contour. If it is not the end point, step S111
4 and acquire the next contour point.
The process returns to step S1105, and the processing from step S1105 onward is repeated. If it is the end point in step S1113, the flow advances to step S1115 to determine whether the next contour point exists. If the next contour point exists, the process returns to step S1104 to repeat the processing from step S1104 onward. If not, the processing operation ends.

【0142】(第3実施の形態) 次に、本発明の第3実施の形態を図16及び図17に基
づき説明する。尚、本実施の形態に係るドットパターン
からのベクトル座標点列発生装置を備えた印刷装置は、
上述した第1実施の形態の図1と同一であるから、同図
を流用して説明する。
(Third Embodiment) Next, a third embodiment of the present invention will be described with reference to FIGS. In addition, a printing apparatus including the vector coordinate point sequence generation apparatus from the dot pattern according to the present embodiment,
Since it is the same as FIG. 1 of the first embodiment described above, the description will be made with reference to FIG.

【0143】本発明は拡大処理を偶数倍にした座標補正
を特徴としたものであり、上述した第1及び第2実施の
形態の他にベクトル座標点列発生方法の一貫としての1
つの輪郭が1ドットのみからなる場合の抽出処理にも適
用可能であり、本実施の形態は、このような1つの輪郭
が1ドットのみからなる場合の抽出処理に適用したもの
である。
The present invention is characterized by a coordinate correction in which the enlargement processing is made even number times. In addition to the above-described first and second embodiments, one of the methods as a part of the vector coordinate point sequence generation method is one.
The present invention is also applicable to the extraction processing in the case where one outline is made up of only one dot, and the present embodiment is applied to the extraction processing in the case where one outline is made up of only one dot.

【0144】図16は、1輪郭中に1ドットのみの場合
の処理を含んだドットパターンからベクトル座標を抽出
する処理手順を示すフローチャートであり、以下、この
フローチャートに従って説明する。
FIG. 16 is a flowchart showing a procedure for extracting vector coordinates from a dot pattern including a process in the case where only one dot is included in one contour. The following description will be made with reference to this flowchart.

【0145】まず、ステップS1601でCPU3は、
ベクトル座標を抽出したいドットパターンをワークメモ
リに獲得する。次にステップS1602に進んでCPU
3は、輪郭点追跡法で外輪郭及び内輪郭の輪郭点列をワ
ークメモリに抽出する。この時の輪郭点列は元のドット
パターンと同サイズであり、また、輪郭点列の座標を抽
出すると同時に、追跡方向Vと該追跡方向の変化Dもワ
ークメモリに記憶しておく。
First, in step S1601, the CPU 3
Acquire the dot pattern for which you want to extract vector coordinates in the work memory. Next, the process proceeds to step S1602, where the CPU
3 extracts a contour point sequence of an outer contour and an inner contour into a work memory by a contour point tracking method. At this time, the outline point sequence has the same size as the original dot pattern. The coordinates of the outline point sequence are extracted, and at the same time, the tracking direction V and the change D of the tracking direction are stored in the work memory.

【0146】次いでステップS603に進んでCPU3
は、輪郭の開始点を獲得し、輪郭の数だけループして各
輪郭点列に補正をかける。次にステップS1604に進
んでCPU3は、偶数の拡大処理をかける(本実施の形
態では4倍拡大)。現在処理している輪郭点をP(X,
Y)とした時、下記式(50)及び式(51)により拡
大処理する。
Then, the process proceeds to step S603, where the CPU 3
Acquires the start point of the contour, loops by the number of contours, and corrects each contour point sequence. Next, proceeding to step S1604, the CPU 3 performs an even number enlargement process (in the present embodiment, quadruple enlargement). P (X,
If Y), enlargement processing is performed by the following equations (50) and (51).

【0147】 X=X×4+2 …(50) Y=Y×4+2 …(51) 但し、前記式(50)及び式(51)において、「4」
は変倍率、「2」は変倍率を2分した値である。
X = X × 4 + 2 (50) Y = Y × 4 + 2 (51) However, in the formulas (50) and (51), “4” is used.
Is a scaling factor, and “2” is a value obtained by dividing the scaling factor by two.

【0148】次いでステップS1605へ進んでCPU
3は、その輪郭点数が1ドットか否かを判断し、1ドッ
トのみの輪郭でなければステップS1606へ進んでC
PU3は、通常処理として上述した第1実施の形態で説
明した処理を施した後、次のステップS1607へ進ん
で輪郭の終了点か否かを判断する。そして、終了点でな
ければステップS1608へ進んでCPU3は、次の輪
郭点を獲得した後、前記ステップS1604へ戻り該ス
テップS1604以下の処理を繰り返す。また、前記ス
テップS1607において終了点であれば次のステップ
S1609へ進んでCPU3は、次の輪郭があるか否か
を判断する。そして、次の輪郭があれば前記ステップS
1603へ戻り該ステップS1603以下の処理を繰り
返す。また、次の輪郭がなければ本処理動作を終了す
る。
Next, the process proceeds to step S1605, where the CPU
No. 3 judges whether the number of contour points is one dot, and if the contour point is not a contour of only one dot, the process proceeds to step S1606 to proceed to C1.
After performing the processing described in the above-described first embodiment as the normal processing, the PU 3 proceeds to the next step S1607 and determines whether or not it is the end point of the contour. If it is not the end point, the process proceeds to step S1608, and the CPU 3 obtains the next contour point, and then returns to step S1604 to repeat the processing from step S1604. If it is the end point in step S1607, the process proceeds to the next step S1609, and the CPU 3 determines whether or not there is a next contour. Then, if there is the next contour, the step S
Returning to step 1603, the processing from step S1603 is repeated. If there is no next contour, the processing ends.

【0149】一方、前記ステップS1605において1
ドットのみの輪郭であればステップS1610へ進んで
CPU3は、例外処理として処理12を施す。
On the other hand, in step S1605, 1
If the contour is only a dot, the process proceeds to step S1610, and the CPU 3 performs a process 12 as an exception process.

【0150】以下、この処理12について説明する。Hereinafter, the processing 12 will be described.

【0151】今、処理する1ドットの輪郭点をPとし、
その座標を(X,Y)とする。
Now, assume that the contour point of one dot to be processed is P,
The coordinates are (X, Y).

【0152】また、下記式(52)及び(53)によっ
て方向値Wを引き数とする配列を定義する。
An array using the direction value W as an argument is defined by the following equations (52) and (53).

【0153】 TX[W]={2,2,0,−2,−2,−2,0,2}…(52) TY[W]={0,2,2,2,0,−2,−2,−2}…(53) 但し、TXとTYは、補正値である。TX [W] = {2,2,0, −2, −2, −2,0,2} (52) TY [W] = {0,2,2,2,0, −2 , -2, -2} (53) where TX and TY are correction values.

【0154】前記式(52)では、TXの0番目と1番
目と7番目は「2」、2番目と6番目は「0」、3番目
〜5番目は「−2」と定義するものである。
In the equation (52), the 0th, 1st, and 7th TX are defined as “2”, the 2nd and 6th are defined as “0”, and the 3rd to 5th are defined as “−2”. is there.

【0155】また、前記式(53)では、TYの0番目
と4番目は「0」、1番目〜3番目は「2」、5番目〜
7番目は「−2」と定義するものである。(処理12)
下記式により4点の座標を抽出し、点(X′,Y′)を
ベクトル座標に追加する。
In the equation (53), the 0th and 4th TY are “0”, the 1st to 3rd are “2”, and the 5th to
The seventh is defined as "-2". (Process 12)
The coordinates of four points are extracted by the following equation, and the point (X ′, Y ′) is added to the vector coordinates.

【0156】for(j=7;j>1;j−=2) X′=X+TX[j] Y′=Y+TY[j] 図17(a)は、1ドットの点Piが■印C1の座標値に
位置した状態を示し、図17(b)は、抽出された4点
が■印C1〜■印C4の座標値に位置した状態を示す。
[0156] for (j = 7; j>1; j- = 2) X '= X + TX [j] Y' = Y + TY [j] FIG. 17 (a), the point P i of 1 dot ■ mark C 1 shows a state in which the positioned coordinate values, FIG. 17 (b) shows the four points are extracted is located on the coordinate values of the ■ mark C 1 ~ ■ mark C 4 state.

【0157】このようにして処理12を実行後は、前記
ステップS1606及びステップS1607をスキップ
して前記ステップS1609へ進み、次の輪郭があるか
否かを判別する。
After the process 12 is executed in this way, the process skips the steps S1606 and S1607 and proceeds to the step S1609 to determine whether or not there is a next contour.

【0158】なお、本発明に係るドットパターンからの
ベクトル座標発生方法及び装置は、印刷装置のみに限ら
れることなく、CRT(Cathod Ray Tub
e;陰極線管)或はLCD(Liquid Cryst
al Display;液晶表示器)等の表示装置にも
適用可能である。
The method and apparatus for generating vector coordinates from a dot pattern according to the present invention are not limited to only a printing apparatus, but may be a CRT (Cathod Ray Tub).
e; cathode ray tube) or LCD (Liquid Crystal)
al Display; a liquid crystal display).

【0159】[0159]

【発明の効果】以上説明したように、本発明の請求項1
記載のドットパターンからのベクトル座標発生方法及び
請求項11記載のドットパターンからのベクトル座標発
生装置によれば、ドットパターンに基づき輪郭点列を抽
出し、該抽出された輪郭点列の輪郭点に対して偶数倍の
拡大処理を行い、該拡大処理される前の輪郭点に接続す
る輪郭線の接続関係を参照することなく、拡大処理され
た輪郭点に接続する輪郭線の接続関係に基づき、拡大処
理された輪郭点の座標補正処理を行うので、元のドット
パターンに忠実にスケーリングすることが可能なベクト
ル座標を抽出させることができると共に、輪郭点の補正
処理が軽くなるという効果がある。
As described above, according to the first aspect of the present invention,
According to the method for generating vector coordinates from a dot pattern described above and the apparatus for generating vector coordinates from a dot pattern according to claim 11, a contour point sequence is extracted based on a dot pattern, and a contour point of the extracted contour point sequence is extracted. Perform an even-number magnification process on the basis, without referring to the connection relationship of the contour line connected to the contour point before the enlargement process, based on the connection relationship of the contour line connected to the enlarged contour point, Since the coordinate correction of the enlarged contour points is performed, vector coordinates that can be faithfully scaled to the original dot pattern can be extracted, and the contour point correction processing can be lightened.

【0160】[0160]

【0161】[0161]

【0162】[0162]

【0163】また、本発明の請求項5に係る発明である
ドットパターンからのベクトル座標発生方法及び本発明
の請求項15に係る発明であるドットパターンからのベ
クトル座標発生装置によれば、格納手段に格納したドッ
トパターンの外輪郭と内輪郭の輪郭点列を輪郭点列生成
手段により生成し、該生成した輪郭点列の各輪郭点にそ
の座標位置を示す座標情報及びドットパターン追跡法の
追跡方向を示す方向情報を情報付加手段により付加し、
該付加された情報に基づいて各輪郭点1ドットを拡大処
理手段により偶数倍の拡大率で拡大処理し、該拡大処理
した前記輪郭点の座標値を補正手段により補正するの
で、より一層元のドットパターンに忠実にスケーリング
することが可能なベクトル座標を抽出させることができ
るという効果を奏する。
Further, according to the method for generating vector coordinates from a dot pattern according to the fifth aspect of the present invention and the apparatus for generating vector coordinates from a dot pattern according to the fifteenth aspect of the present invention, The contour point sequence generating means generates the contour point sequence of the outer contour and the inner contour of the dot pattern stored in, and the coordinate information indicating the coordinate position of each contour point of the generated contour point sequence and the tracking of the dot pattern tracking method. Direction information indicating the direction is added by the information adding means,
Based on the added information, one dot of each contour point is enlarged by the enlargement processing means at an even multiple of the enlargement ratio, and the coordinate value of the enlarged contour point is corrected by the correction means. There is an effect that vector coordinates that can be faithfully scaled to the dot pattern can be extracted.

【0164】また、本発明の請求項6に係る発明である
ドットパターンからのベクトル座標発生方法及び本発明
の請求項16に係る発明であるドットパターンからのベ
クトル座標発生装置によれば、抽出した輪郭座標を任意
の大きさにスケーリングする基になるドットパターンを
第1記憶手段に一時記憶し、該記憶したドットパターン
の外側をドットパターン輪郭追跡法により右回りに追跡
し且つその軌跡を座標点列として第1抽出手段により抽
出し、前記第1記憶手段に記憶したドットパターンの内
側をドットパターン輪郭追跡法により左回りに追跡し且
つその軌跡を座標点列として第2抽出手段により抽出
し、前記第1及び第2抽出手段により抽出した各座標点
列の追跡方向をテーブルにより定義し、該テーブルを基
に互いに隣接する座標点列の位置関係を演算手段により
計算し、前記第1及び第2抽出手段により抽出した各座
標点列に対して拡大率が偶数倍の拡大処理を拡大処理手
段により施し、該拡大処理した座標点列の座標値を各座
標点列の追跡方向を基に補正手段により補正するので、
より一層元のドットパターンに忠実にスケーリングする
ことが可能なベクトル座標を抽出させることができると
いう効果を奏する。
According to the method for generating vector coordinates from a dot pattern according to the invention of claim 6 of the present invention and the apparatus for generating vector coordinates from a dot pattern according to the invention of claim 16 of the present invention. A dot pattern serving as a basis for scaling the outline coordinates to an arbitrary size is temporarily stored in the first storage means, the outside of the stored dot pattern is traced clockwise by a dot pattern outline tracking method, and the locus is traced to a coordinate point. Extracted as a column by the first extraction means, traces the inside of the dot pattern stored in the first storage means counterclockwise by the dot pattern contour tracking method, and extracts the locus as a coordinate point sequence by the second extraction means, The tracking direction of each coordinate point sequence extracted by the first and second extracting means is defined by a table, and the coordinate positions adjacent to each other are defined based on the table. The positional relationship of the point sequence is calculated by the arithmetic means, and the enlargement processing is performed by the enlargement processing means on the respective coordinate point strings extracted by the first and second extraction means so that the enlargement ratio is an even number times. Since the coordinate value of the point sequence is corrected by the correction means based on the tracking direction of each coordinate point sequence,
There is an effect that it is possible to extract vector coordinates that can be more faithfully scaled to the original dot pattern.

【0165】また、本発明の請求項7に係る発明である
ドットパターンからのベクトル座標発生方法及び本発明
の請求項17に係る発明であるドットパターンからのベ
クトル座標発生装置によれば、請求項6に係る発明であ
るドットパターンからのベクトル座標発生方法及び本発
明の請求項16に係る発明であるドットパターンからの
ベクトル座標発生装置に加えて、前記第1及び第2抽出
手段により抽出した各座標点列の互いに隣接する座標点
の位置関係に基づきそのパターン形状をパターン形状判
断手段により判断し、該判断したパターン形状により各
座標点列の座標値を補正手段により補正するので、より
一層元のドットパターンに忠実にスケーリングすること
が可能なベクトル座標を抽出させることができるという
効果を奏する。
According to the method for generating vector coordinates from a dot pattern according to the seventh aspect of the present invention and the apparatus for generating vector coordinates from a dot pattern according to the seventeenth aspect of the present invention. In addition to the method for generating vector coordinates from a dot pattern according to the sixth aspect of the present invention and the apparatus for generating vector coordinates from a dot pattern according to the sixteenth aspect of the present invention, each vector extracted by the first and second extracting means is provided. The pattern shape is determined by the pattern shape determining means based on the positional relationship between adjacent coordinate points in the coordinate point sequence, and the coordinate value of each coordinate point sequence is corrected by the correcting means based on the determined pattern shape. This makes it possible to extract vector coordinates that can be faithfully scaled to the dot pattern of (1).

【0166】また、本発明の請求項8に係る発明である
ドットパターンからのベクトル座標発生方法及び本発明
の請求項18に係る発明であるドットパターンからのベ
クトル座標発生装置によれば、請求項6に係る発明であ
るドットパターンからのベクトル座標発生方法及び本発
明の請求項16に係る発明であるドットパターンからの
ベクトル座標発生装置に加えて、前記第1及び第2抽出
手段により抽出した各座標点列が1ドットであるか否か
をドット判断手段により判断し、1ドットであると判断
した時その1ドットのドットパターンから4つの座標点
列を座標点列生成手段により生成するので、1ドットの
ドットパターンに対応することができると共に、より一
層元のドットパターンに忠実にスケーリングすることが
可能なベクトル座標を抽出させることができるという効
果を奏する。
Further, according to the method for generating vector coordinates from a dot pattern according to the eighth aspect of the present invention and the apparatus for generating vector coordinates from a dot pattern according to the eighteenth aspect of the present invention, In addition to the method for generating vector coordinates from a dot pattern according to the sixth aspect of the invention and the apparatus for generating vector coordinates from a dot pattern according to the sixteenth aspect of the present invention, Whether or not the coordinate point sequence is one dot is determined by the dot determining unit. When it is determined that the coordinate point sequence is one dot, four coordinate point sequences are generated from the dot pattern of one dot by the coordinate point sequence generating unit. Vector coordinates that can correspond to a dot pattern of one dot and can be more faithfully scaled to the original dot pattern An effect that it is possible to extract.

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

【図1】本発明の第1実施の形態に係るドットパターン
からのベクトル座標発生装置を備えた出力装置である印
刷装置の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a printing apparatus which is an output apparatus including a dot pattern vector coordinate generation apparatus according to a first embodiment of the present invention.

【図2】同実施の形態に係るドットパターンからのベク
トル座標発生装置のベクトル座標抽出処理手順を示すフ
ローチャートである。
FIG. 2 is a flowchart showing a procedure of a vector coordinate extracting process of the vector coordinate generating apparatus from the dot pattern according to the embodiment;

【図3】同実施の形態に係るドットパターンからのベク
トル座標発生装置における点Pを基準とする輪郭追跡方
向Vを定義する規則を示す図である。
FIG. 3 is a diagram showing rules for defining a contour tracking direction V based on a point P in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment.

【図4】同実施の形態に係るドットパターンからのベク
トル座標発生装置における処理2を説明するための図で
ある。
FIG. 4 is a view for explaining processing 2 in the vector coordinate generation apparatus from a dot pattern according to the embodiment;

【図5】同実施の形態に係るドットパターンからのベク
トル座標発生装置における処理3を説明するための図で
ある。
FIG. 5 is a diagram for explaining a process 3 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図6】同実施の形態に係るドットパターンからのベク
トル座標発生装置における処理4を説明するための図で
ある。
FIG. 6 is a diagram for explaining a process 4 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図7】同実施の形態に係るドットパターンからのベク
トル座標発生装置における処理5を説明するための図で
ある。
FIG. 7 is a diagram for explaining process 5 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図8】同実施の形態に係るドットパターンからのベク
トル座標発生装置における処理6を説明するための図で
ある。
FIG. 8 is a view for explaining processing 6 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図9】同実施の形態に係るドットパターンからのベク
トル座標発生装置における処理7を説明するための図で
ある。
FIG. 9 is a diagram for explaining process 7 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図10】同実施の形態に係るドットパターンからのベ
クトル座標発生装置における効果を説明するための図で
ある。
FIG. 10 is a diagram for describing an effect of the apparatus for generating a vector coordinate from a dot pattern according to the embodiment.

【図11】本発明の第2実施の形態に係るドットパター
ンからのベクトル座標発生装置のベクトル座標抽出処理
手順を示すフローチャートである。
FIG. 11 is a flowchart illustrating a vector coordinate extraction processing procedure of the vector coordinate generation device from a dot pattern according to the second embodiment of the present invention.

【図12】同実施の形態に係るドットパターンからのベ
クトル座標発生装置における処理8を説明するための図
である。
FIG. 12 is a diagram for explaining process 8 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図13】同実施の形態に係るドットパターンからのベ
クトル座標発生装置における処理9を説明するための図
である。
FIG. 13 is a diagram for explaining a process 9 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図14】同実施の形態に係るドットパターンからのベ
クトル座標発生装置における処理10を説明するための
図である。
FIG. 14 is a diagram for explaining a process 10 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図15】同実施の形態に係るドットパターンからのベ
クトル座標発生装置における処理11を説明するための
図である。
FIG. 15 is a diagram for explaining a process 11 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図16】本発明の第3実施の形態に係るドットパター
ンからのベクトル座標発生装置のベクトル座標抽出処理
手順を示すフローチャートである。
FIG. 16 is a flowchart illustrating a procedure of a vector coordinate extraction process of the vector coordinate generation device from a dot pattern according to the third embodiment of the present invention.

【図17】同実施の形態に係るドットパターンからのベ
クトル座標発生装置における処理12を説明するための
図である。
FIG. 17 is a diagram for explaining processing 12 in the apparatus for generating a vector coordinate from a dot pattern according to the embodiment;

【図18】従来のドットパターンからのベクトル座標発
生装置におけるドットパターン輪郭追跡法を説明するた
めの図である。
FIG. 18 is a diagram for explaining a dot pattern contour tracking method in a conventional dot pattern vector coordinate generating apparatus.

【図19】従来のドットパターンからのベクトル座標発
生装置における問題点を説明するための図である。
FIG. 19 is a diagram for describing a problem in a conventional apparatus for generating a vector coordinate from a dot pattern.

【図20】従来のドットパターンからのベクトル座標発
生装置における問題点を説明するための図である。
FIG. 20 is a diagram for explaining a problem in a conventional apparatus for generating a vector coordinate from a dot pattern.

【図21】従来のドットパターンからのベクトル座標発
生装置における問題点を説明するための図である。
FIG. 21 is a diagram for describing a problem in a conventional apparatus for generating a vector coordinate from a dot pattern.

【図22】従来のドットパターンからのベクトル座標発
生装置における問題点を説明するための図である。
FIG. 22 is a diagram for explaining a problem in a conventional apparatus for generating a vector coordinate from a dot pattern.

【符号の説明】[Explanation of symbols]

3 CPU(第1及び第2抽出手段、演算手段、拡大
処理手段、座標補正処理手段、パターン形状判断手段、
ドット判断手段、座標点列生成手段、輪郭点列生成手
段、情報付加手段、ドットパターン獲得手段) 5 プログラムROM(テーブル) 7 内蔵RAM(第1及び第2記憶手段)
3 CPU (first and second extraction means, calculation means, enlargement processing means, coordinate correction processing means, pattern shape determination means,
Dot determination means, coordinate point sequence generation means, contour point sequence generation means, information addition means, dot pattern acquisition means) 5 program ROM (table) 7 built-in RAM (first and second storage means)

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06T 3/40 G06T 5/00 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G06T 3/40 G06T 5/00

Claims (20)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ドットパターンに基づき輪郭点列を抽出
する抽出ステップと、 前記抽出ステップにより抽出された輪郭点列の輪郭点に
対して偶数倍の拡大処理を行う拡大処理ステップと、 前記拡大処理ステップにより拡大処理される前の輪郭点
に接続する輪郭線の接続関係を参照することなく、前記
拡大処理ステップにより拡大処理された輪郭点に接続す
る輪郭線の接続関係に基づき、前記拡大処理ステップに
より拡大処理された輪郭点の座標補正処理を行う座標補
正処理ステップとを有することを特徴とするドットパタ
ーンからのベクトル座標発生方法。
An extracting step of extracting a contour point sequence based on a dot pattern; an enlarging process step of performing an even-number-times enlarging process on the contour points of the contour point sequence extracted by the extracting step; The enlargement processing step is performed based on the connection relation of the contour lines connected to the contour points enlarged by the enlargement processing step without referring to the connection relation of the contour lines connected to the contour points before being enlarged by the step. And a coordinate correction processing step of performing a coordinate correction processing of the contour point enlarged by the above method.
【請求項2】 前記偶数倍は、4倍であることを特徴と
する請求項1記載のドットパターンからのベクトル座標
発生方法。
2. The method according to claim 1, wherein the even number is four times.
【請求項3】 前記座標補正処理ステップは、変倍して
もパターンの形状をを保てるように輪郭点に対応する画
素の内側または外側の位置に座標補正処理を行うことを
特徴とする請求項1記載のドットパターンからのベクト
ル座標発生方法。
3. The coordinate correction processing step includes performing coordinate correction processing on a position inside or outside a pixel corresponding to a contour point so that the shape of the pattern is maintained even when the magnification is changed. 1. A method for generating vector coordinates from the dot pattern described in 1.
【請求項4】 前記拡大処理ステップは、輪郭点(X,
Y)、変倍率(S)としたとき、X=X×S+S/2、
Y=Y×S+S/2とすることによって拡大処理を行う
ことを特徴とする請求項1記載のドットパターンからの
ベクトル座標発生方法。
4. The enlargement processing step comprises the steps of:
Y), when the magnification (S) is set, X = X × S + S / 2,
2. The method according to claim 1, wherein the enlargement process is performed by setting Y = Y * S + S / 2.
【請求項5】 ドットパターンからスケーリング用にベ
クトル座標を発生させるドットパターンからのベクトル
座標発生方法において、格納手段に格納したドットパタ
ーンの外輪郭と内輪郭の輪郭点列を輪郭点列生成手段に
より生成し、該生成した輪郭点列の各輪郭点にその座標
位置を示す座標情報及びドットパターン輪郭追跡法の追
跡方向を示す方向情報を情報付加手段により付加し、該
付加された情報に基づいて各輪郭点1ドットを拡大処理
手段により偶数倍の拡大率で拡大処理し、該拡大処理し
た前記各輪郭点の座標値を補正手段により補正すること
を特徴とするドットパターンからのベクトル座標発生方
法。
5. A method for generating vector coordinates from a dot pattern by generating vector coordinates for scaling from the dot pattern, wherein the contour point sequence of the outer contour and the inner contour of the dot pattern stored in the storage means is generated by the contour point sequence generating means. The coordinate information indicating the coordinate position and the direction information indicating the tracking direction of the dot pattern contour tracking method are added to each contour point of the generated contour point sequence by the information adding means, and based on the added information, A method of generating vector coordinates from a dot pattern, wherein one dot of each contour point is enlarged by an enlargement processing means at an even multiple of an enlargement ratio, and the coordinate value of each enlarged contour point is corrected by a correction means. .
【請求項6】 ドットパターンからスケーリング用にベ
クトル座標を発生させるドットパターンからのベクトル
座標発生方法において、抽出した輪郭座標を任意の大き
さにスケーリングする基となるドットパターンを第1記
憶手段に一時記憶し、該記憶したドットパターンの外側
をドットパターン輪郭追跡法により右回りに追跡し且つ
その軌跡を座標点列として第1抽出手段により抽出し、
前記第1記憶手段に記憶したドットパターンの内側をド
ットパターン輪郭追跡法により左回りに追跡し且つその
軌跡を座標点列として第2抽出手段により抽出し、前記
第1及び第2抽出手段により抽出した各座標点列の追跡
方向をテーブルにより定義し、該テーブルを基に互いに
隣接する座標点列の位置関係を演算手段により計算し、
前記第1及び第2抽出手段により抽出した各座標点列を
拡大処理手段により偶数倍の拡大率で拡大処理し、該拡
大処理した輪郭点列の座標値を各座標点列の追跡方向を
基に補正手段により補正することを特徴とするドットパ
ターンからのベクトル座標発生方法。
6. A method for generating vector coordinates from a dot pattern for generating vector coordinates for scaling from the dot pattern, the method comprising: temporarily storing a dot pattern serving as a basis for scaling an extracted outline coordinate to an arbitrary size in a first storage means. The outer side of the stored dot pattern is traced clockwise by the dot pattern contour tracing method, and the locus is extracted as a coordinate point sequence by the first extracting means,
The inside of the dot pattern stored in the first storage means is traced counterclockwise by the dot pattern contour tracking method, and the locus thereof is extracted as a coordinate point sequence by the second extraction means, and is extracted by the first and second extraction means. The tracking direction of each coordinate point sequence is defined by a table, and the positional relationship between the coordinate point sequences adjacent to each other is calculated by the arithmetic means based on the table,
Each of the coordinate point sequences extracted by the first and second extraction means is enlarged by an enlargement processing means at an even magnification, and the coordinate values of the enlarged contour point sequence are determined based on the tracking direction of each coordinate point sequence. A method of generating vector coordinates from a dot pattern.
【請求項7】 前記第1及び第2抽出手段により抽出し
た各座標点列の互いに隣接する座標点列の位置関係に基
づきそのパターン形状をパターン形状判断手段により判
断し、該判断したパターン形状により各座標点列を補正
手段により補正することを特徴とする請求項6記載のド
ットパターンからのベクトル座標発生方法。
7. A pattern shape judging means judges a pattern shape based on a positional relationship between adjacent coordinate point strings of each coordinate point string extracted by said first and second extracting means. 7. The method of generating vector coordinates from a dot pattern according to claim 6, wherein each coordinate point sequence is corrected by a correction unit.
【請求項8】 前記第1及び第2抽出手段により抽出し
た各座標点列が1ドットであるか否かをドット判断手段
により判断し、1ドットであると判断した時その1ドッ
トのドットパターンから4つの座標点列を座標点列生成
手段により生成することを特徴とする請求項6記載のド
ットパターンからのベクトル座標発生方法。
8. A dot judging unit judges whether each coordinate point sequence extracted by the first and second extracting units is one dot, and when it is judged that it is one dot, the dot pattern of the one dot 7. A method of generating vector coordinates from a dot pattern according to claim 6, wherein four coordinate point sequences are generated by the coordinate point sequence generating means.
【請求項9】 前記請求項1〜5または6記載のドット
パターンからのベクトル座標発生方法は、印刷装置に適
用できることを特徴とするドットパターンからのベクト
ル座標発生方法。
9. A method for generating vector coordinates from a dot pattern according to claim 1, wherein the method for generating vector coordinates from a dot pattern is applicable to a printing apparatus.
【請求項10】 前記請求項1〜5または6記載のドッ
トパターンからのベクトル座標発生方法は、表示装置に
適用できることを特徴とするドットパターンからのベク
トル座標発生方法。
10. A method for generating vector coordinates from a dot pattern according to claim 1, wherein the method for generating vector coordinates from a dot pattern is applicable to a display device.
【請求項11】 ドットパターンに基づき輪郭点列を抽
出する抽出手段と、前記抽出手段により抽出された輪郭
点列の輪郭点に対して偶数倍の拡大処理を行う拡大処理
手段と、 前記拡大処理手段により拡大処理される前の輪郭点に接
続する輪郭線の接続関係を参照することなく、前記拡大
処理手段により拡大処理された輪郭点に接続する輪郭線
の接続関係に基づき、前記拡大処理手段により拡大処理
された輪郭点の座標補正処理を行う座標補正処理手段と
を有することを特徴とするドットパターンからのベクト
ル座標発生装置。
11. Extraction means for extracting a contour point sequence based on a dot pattern, enlargement processing means for performing an even-number-times enlargement process on the contour points of the contour point sequence extracted by the extraction means, The enlargement processing means based on the connection relation of the contour lines connected to the contour points enlarged by the enlargement processing means without referring to the connection relation of the contour lines connected to the contour points before being enlarged by the means. And a coordinate correction processing means for performing a coordinate correction process on the contour point enlarged by the processing according to (1).
【請求項12】 前記偶数倍は、4倍であることを特徴
とする請求項11記載のドットパターンからのベクトル
座標発生装置。
12. The apparatus according to claim 11, wherein the even number is four times.
【請求項13】 前記座標補正処理手段は、変倍しても
パターンの形状を保てるように輪郭点に対応する画素の
内側または外側の位置に座標補正処理を行うことを特徴
とする請求項11記載のドットパターンからのベクトル
座標発生装置。
13. The coordinate correction processing means according to claim 11, wherein the coordinate correction processing means performs the coordinate correction processing on a position inside or outside a pixel corresponding to the contour point so that the shape of the pattern is maintained even if the magnification is changed. Vector coordinate generator from the described dot pattern.
【請求項14】 前記拡大処理手段は、輪郭点(X,
Y)、変倍率(S)としたとき、X=X×S+S/2、
Y=Y×S+S/2とすることによって拡大処理を行う
ことを特徴とする請求項11記載のドットパターンから
のベクトル座標発生装置。
14. The enlargement processing means according to claim 1, wherein the contour point (X,
Y), when the magnification (S) is set, X = X × S + S / 2,
12. The apparatus for generating vector coordinates from a dot pattern according to claim 11, wherein the enlargement processing is performed by setting Y = Y * S + S / 2.
【請求項15】 ドットパターンからスケーリング用に
ベクトル座標を発生させるドットパターンからのベクト
ル座標発生装置において、前記ドットパターンを格納す
る格納手段と、 該格納手段に格納したドットパターンの外輪郭と内輪郭
の輪郭点列を生成する輪郭点列生成手段と、 該輪郭点列生成手段により生成した輪郭点列の各輪郭点
にその座標位置を示す座標情報及びドットパターン輪郭
追跡法の追跡方向を示す方向情報を付加する情報付加手
段と、 該情報付加手段により付加された情報に基づいて各輪郭
点1ドットを偶数倍の拡大率で拡大処理する拡大処理手
段と、 該拡大処理手段により拡大処理した前記各輪郭点の座標
値を補正する補正手段とを備えたことを特徴とするドッ
トパターンからのベクトル座標発生装置。
15. A device for generating a vector coordinate from a dot pattern for generating vector coordinates for scaling from a dot pattern, a storage means for storing the dot pattern, an outer contour and an inner contour of the dot pattern stored in the storage means. Contour point sequence generating means for generating a contour point sequence, coordinate information indicating the coordinate position of each contour point of the contour point sequence generated by the contour point sequence generating means, and a direction indicating the tracking direction of the dot pattern contour tracking method Information adding means for adding information; enlargement processing means for enlarging one dot of each contour point at an even multiple of magnification based on the information added by the information adding means; An apparatus for generating vector coordinates from a dot pattern, comprising: a correction unit configured to correct the coordinate value of each contour point.
【請求項16】 ドットパターンからスケーリング用に
ベクトル座標を発生させるドットパターンからのベクト
ル座標発生装置において、抽出した輪郭座標を任意の大
きさにスケーリングする基となるドットパターンを一時
期憶する第1記憶手段と、 該第1記憶手段に記憶したドットパターンの外側をドッ
トパターン輪郭追跡法により右回りに追跡し且つその軌
跡を座標点列として抽出する第1抽出手段と、 前記第1記憶手段に記憶したドットパターンの内側をド
ットパターン輪郭追跡法により左回りに追跡し且つその
軌跡を座標点列として抽出する第2抽出手段と、 前記第1及び第2抽出手段により抽出した各座標点列の
追跡方向を定義するためのテーブルと、 該テーブルを基に互いに隣接する座標点列の位置関係を
計算する演算手段と、 前記第1及び第2抽出手段により抽出した各座標点列を
偶数倍の拡大率で拡大処理する拡大処理手段と、 該拡大処理手段により拡大処理した輪郭点列の座標値を
各座標点列の追跡方向を基に補正する補正手段とを備え
たことを特徴とするドットパターンからのベクトル座標
発生装置。
16. An apparatus for generating a vector coordinate from a dot pattern for generating vector coordinates for scaling from the dot pattern, wherein a first storage for temporarily storing a dot pattern serving as a basis for scaling an extracted outline coordinate to an arbitrary size. Means for tracing the outside of the dot pattern stored in the first storage means clockwise by the dot pattern contour tracing method, and extracting the trajectory as a sequence of coordinate points; and storing in the first storage means. Second extracting means for tracing the inside of the dot pattern counterclockwise by the dot pattern contour tracking method and extracting the trajectory as a sequence of coordinate points, and tracing each coordinate point sequence extracted by the first and second extracting means A table for defining a direction, and arithmetic means for calculating a positional relationship between a series of coordinate points adjacent to each other based on the table Enlarging processing means for enlarging each coordinate point sequence extracted by the first and second extracting means at an even-numbered magnification ratio; An apparatus for generating vector coordinates from a dot pattern, comprising: a correction unit configured to perform correction based on a tracking direction.
【請求項17】 前記第1及び第2抽出手段により抽出
した各座標点列の互いに隣接する座標点列の位置関係に
基づきそのパターン形状を判断するパターン形状判断手
段と、 該パターン形状判断手段により判断したパターン形状に
より各座標点列を補正する補正手段とを備えたことを特
徴とする請求項16記載のドットパターンからのベクト
ル座標発生装置。
17. A pattern shape judging means for judging a pattern shape based on a positional relationship between adjacent coordinate point strings of each coordinate point string extracted by said first and second extracting means, and 17. The apparatus for generating vector coordinates from a dot pattern according to claim 16, further comprising correction means for correcting each coordinate point sequence based on the determined pattern shape.
【請求項18】 前記第1及び第2抽出手段により抽出
した各座標点列が1ドットであるか否かを判断するドッ
ト判断手段と、 該ドット判断手段が1ドットであると判断した時その1
ドットのドットパターンから4つの座標点列を生成する
座標点列生成手段とを備えたことを特徴とする請求項1
6記載のドットパターンからのベクトル座標発生装置。
18. A dot judging means for judging whether or not each coordinate point sequence extracted by the first and second extracting means is one dot, and when the dot judging means judges that it is one dot, 1
2. A coordinate point sequence generating means for generating four coordinate point sequences from a dot pattern of dots.
A device for generating vector coordinates from the dot pattern according to 6.
【請求項19】 前記請求項11〜15または16記載
のドットパターンからのベクトル座標発生装置は、印刷
装置に適用できることを特徴とするドットパターンから
のベクトル座標発生装置。
19. The apparatus for generating vector coordinates from a dot pattern according to claim 11, wherein the apparatus for generating vector coordinates from a dot pattern is applicable to a printing apparatus.
【請求項20】 前記請求項11〜15または16記載
のドットパターンからのベクトル座標発生装置は、表示
装置に適用できることを特徴とするドットパターンから
のベクトル座標発生装置。
20. The apparatus for generating vector coordinates from a dot pattern according to claim 11, wherein the apparatus for generating vector coordinates from a dot pattern is applicable to a display device.
JP6039243A 1994-02-14 1994-02-14 Method and apparatus for generating vector coordinates from dot pattern Expired - Fee Related JP2959612B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6039243A JP2959612B2 (en) 1994-02-14 1994-02-14 Method and apparatus for generating vector coordinates from dot pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6039243A JP2959612B2 (en) 1994-02-14 1994-02-14 Method and apparatus for generating vector coordinates from dot pattern

Publications (2)

Publication Number Publication Date
JPH07225845A JPH07225845A (en) 1995-08-22
JP2959612B2 true JP2959612B2 (en) 1999-10-06

Family

ID=12547697

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6039243A Expired - Fee Related JP2959612B2 (en) 1994-02-14 1994-02-14 Method and apparatus for generating vector coordinates from dot pattern

Country Status (1)

Country Link
JP (1) JP2959612B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3791259B2 (en) 1999-10-07 2006-06-28 セイコーエプソン株式会社 Outline smoothing processing method

Also Published As

Publication number Publication date
JPH07225845A (en) 1995-08-22

Similar Documents

Publication Publication Date Title
US7397972B2 (en) Image transform method for obtaining expanded image data, image processing apparatus and image display device therefor
JPH0728451A (en) Data converter
JP2959612B2 (en) Method and apparatus for generating vector coordinates from dot pattern
US5351315A (en) Apparatus for smoothing outlines of images
JP2618528B2 (en) Character drawing device, character output correction method, and character output device
JP2904994B2 (en) Coordinate connection display method
JPH10334179A (en) Musical score recognition device
JP3145724B2 (en) Graphic data converter
JP2802646B2 (en) A scaling method for character patterns using vector fonts
JP3386209B2 (en) Device for rearranging objects displayed on a display screen
JPH07140964A (en) Image display device
JP3055306B2 (en) Data output device
JP2776347B2 (en) Drawing device for printer
JP3407310B2 (en) Ruled line output method and ruled line output device
JPH07234868A (en) Document creation device
JP2578965B2 (en) Graphic processing unit
JPS58208864A (en) Plotting system of semigraphic display
JPH0812547B2 (en) Pattern reduction / enlargement processing device
JPH06301755A (en) Picture preparation device
JPS63110487A (en) Table generator
JPH0250776A (en) Coordinate transforming type automatic preparation converting system for graphic plotting instruction strings
JPH0816716A (en) Image forming device
JPH0560598B2 (en)
JPS63113596A (en) Information processor
JPH04217077A (en) Graphic generating device and thick line generating method thereby

Legal Events

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