JPH0652304A - Device and method for processing image - Google Patents

Device and method for processing image

Info

Publication number
JPH0652304A
JPH0652304A JP20277792A JP20277792A JPH0652304A JP H0652304 A JPH0652304 A JP H0652304A JP 20277792 A JP20277792 A JP 20277792A JP 20277792 A JP20277792 A JP 20277792A JP H0652304 A JPH0652304 A JP H0652304A
Authority
JP
Japan
Prior art keywords
contour
vector
point
smoothing
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP20277792A
Other languages
Japanese (ja)
Other versions
JP2885999B2 (en
Inventor
Yoshihiro Ishida
良弘 石田
Akihiro Katayama
昭宏 片山
Junichi Yamakawa
淳一 山川
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 JP20277792A priority Critical patent/JP2885999B2/en
Priority to EP93304488A priority patent/EP0574251B1/en
Priority to DE69332283T priority patent/DE69332283D1/en
Publication of JPH0652304A publication Critical patent/JPH0652304A/en
Priority to US08/475,451 priority patent/US5757961A/en
Application granted granted Critical
Publication of JP2885999B2 publication Critical patent/JP2885999B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To reduce the burden of following processing as much as possible in the case of dispatching the contour point of a provided binary image to the following processing. CONSTITUTION:The binary image provided from a binary image possessing means 11 is extracted by an outline vector extracting means 12 and smoothed by eliminating any unwanted vector at an outline vector detecting, reducing, smoothing and magnifying means 13. Afterwards, a binary image is generated by a binary image reproducing means 14 based on the outline vector processed by the outline vector detecting, reducing, smoothing and magnifying means 13, and outputted by a binary image output means 15.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は2値画像から輪郭情報を
抽出し、所定の処理を施す画像処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for extracting contour information from a binary image and subjecting it to predetermined processing.

【0002】[0002]

【従来の技術】この種の装置として、本願出願人は既
に、特願平3−345062号或いは特願平4−169
581号として提出している。
2. Description of the Related Art As an apparatus of this type, the applicant of the present application has already filed Japanese Patent Application No. 3-345062 or Japanese Patent Application No. 4-169.
Submitted as No. 581.

【0003】これらの提案は、いずれも2値画像を変倍
して出力する場合に、2値画像そのものを変倍するので
はなく、2値画像の輪郭情報を抽出し、その抽出した輪
郭情報に基づいて変倍画像を生成することにより高品質
な画像を得るためになされたものである。
In all of these proposals, when a binary image is scaled and output, the binary image itself is not scaled, but the contour information of the binary image is extracted and the extracted contour information is extracted. This is done in order to obtain a high quality image by generating a scaled image based on.

【0004】具体的には、特願平3−345062号
は、2値画像からアウトラインベクトルを抽出し、該抽
出したアウトラインベクトル表現の状態で所望の倍率
(任意)で滑らかに変倍されたアウトラインベクトルを
作成し、この滑らかに変倍されたアウトラインベクトル
から2値画像を再生成する。これによって、所望の倍率
(任意)で変倍された高画質のディジタル2値画像を得
ようとするものである。
Specifically, Japanese Patent Application No. 3-345062 discloses an outline vector extracted from a binary image and smoothly scaled at a desired magnification (arbitrary) in the state of the extracted outline vector expression. A vector is created and a binary image is regenerated from the smoothly scaled outline vector. By this, it is intended to obtain a high-quality digital binary image which is scaled at a desired magnification (arbitrary).

【0005】以下に、その主要部を概説する。図10
は、特願平3−345062号に開示された特徴を最も
よく表している図である。
The main parts will be outlined below. Figure 10
FIG. 4 is a diagram best representing the features disclosed in Japanese Patent Application No. 3-345062.

【0006】同図において、1は変倍処理対象のデジタ
ル2値画像を獲得し、ラスター走査形式の2値画像を出
力する2値画像獲得手段、2はラスター走査形式の2値
画像から粗輪郭ベクトル(平滑化・変倍処理を施す前の
アウトラインベクトル)を抽出するアウトライン抽出手
段、3は粗輪郭ベクトルデータをベクトルデータ形態で
平滑化及び変倍処理を行うアウトライン平滑・変倍手
段、4はアウトラインベクトルデータからラスター走査
形式の2値画像データを再現する2値画像再生手段、5
はラスター走査型の2値画像データを表示したり、ハー
ドコピーをとったり、或いは、通信路等へ出力したりす
る2値画像出力手段である。
In FIG. 1, reference numeral 1 denotes a binary image acquisition means for acquiring a digital binary image to be scaled and outputting a binary image in a raster scanning format. Reference numeral 2 denotes a rough contour from a binary image in a raster scanning format. An outline extracting means for extracting a vector (an outline vector before performing the smoothing / scaling processing), 3 is an outline smoothing / scaling means for smoothing and scaling the rough contour vector data in the form of vector data. Binary image reproducing means for reproducing binary image data in raster scanning format from outline vector data, 5
Is a binary image output means for displaying raster scanning type binary image data, taking a hard copy, or outputting to a communication path or the like.

【0007】2値画像獲得手段1は、例えば、原稿画像
を2値画像として読み取り、ラスター走査形式で出力す
る公知のラスター走査型2値画像出力装置で構成され
る。アウトライン抽出手段2は、例えば、本願出願人が
先に提案している特願平2−281958号に記載の装
置で構成される。図2は2値画像獲得手段1から出力さ
れるラスター走査型の2値画像データの走査形態を示し
ており、かつ、アウトライン抽出手段2が入力するラス
ター走査型の2値画像データの走査形態をも示してい
る。かくの如きの形式で、2値画像獲得手段1により出
力されるラスタ走査型の2値画像データをアウトライン
抽出手段2は入力する。尚、図2において、101は、
ラスター走査中の2値画像のある画素を示しており、1
02は、この画素101の近傍8画素を含めた9画素領
域を表わしている。先に述べた、特願平2−28195
8号に記載のアウトライン抽出手段は、注目画素をラス
ター走査順に移動させ、各注目画素に対し、102に示
す9画素領域における各画素の状態(白画素かもしくは
黒画素か)に応じて、注目画素と、注目画素の近隣画素
の間に存在する輪郭辺ベクトル(水平ベクトルもしくは
垂直ベクトル)を検出し、輪郭辺ベクトルが存在する場
合には、その辺ベクトルの始点座標と向きのデータを抽
出して、それら辺ベクトル間の接続関係を更新しなが
ら、粗輪郭ベクトルを抽出していくものである。
The binary image acquisition means 1 is composed of, for example, a known raster scanning type binary image output device which reads an original image as a binary image and outputs it in a raster scanning format. The outline extracting means 2 is composed of, for example, the device described in Japanese Patent Application No. 2-281958 previously proposed by the applicant of the present application. FIG. 2 shows the scanning form of the raster scanning type binary image data output from the binary image acquisition unit 1, and the scanning form of the raster scanning type binary image data input by the outline extracting unit 2. Also shows. In such a format, the outline extracting means 2 inputs the raster scanning type binary image data output by the binary image acquiring means 1. In FIG. 2, 101 is
It shows a pixel in a binary image during raster scanning, 1
Reference numeral 02 represents a 9-pixel area including 8 pixels in the vicinity of the pixel 101. As mentioned above, Japanese Patent Application No. 2-28195.
The outline extracting means described in No. 8 moves the pixel of interest in raster scanning order, and pays attention to each pixel of interest in accordance with the state (white pixel or black pixel) of each pixel in the 9 pixel region 102. The contour edge vector (horizontal vector or vertical vector) existing between the pixel and the neighboring pixel of the pixel of interest is detected, and if the contour edge vector exists, the starting point coordinate and orientation data of the edge vector are extracted. Then, the rough contour vector is extracted while updating the connection relationship between the edge vectors.

【0008】図3に、注目画素と注目画素の近隣画素間
の輪郭辺ベクトルの抽出状態の一例を示した。同図にお
いて、△印は垂直ベクトルの始点を表わし、○印は水平
ベクトルの始点を表わしている。
FIG. 3 shows an example of the extraction state of the contour side vector between the target pixel and the neighboring pixels of the target pixel. In the figure, the Δ mark represents the starting point of the vertical vector, and the ∘ mark represents the starting point of the horizontal vector.

【0009】図4に上述したアウトライン抽出手段によ
って抽出された粗輪郭ベクトルループの例を示す。ここ
で、格子で区切られる各升目は入力画像の画素位置を示
しており、空白の升目は白画素、点模様で生められた丸
印は黒画素を意味している。図3と同様に、△印は垂直
ベクトルの始点を表わし、○印は水平ベクトルの始点を
表わしている。
FIG. 4 shows an example of the rough contour vector loop extracted by the outline extracting means described above. Here, each square that is divided by a grid indicates a pixel position of the input image, a blank square means a white pixel, and a circle formed by a dot pattern means a black pixel. Similar to FIG. 3, the Δ mark represents the starting point of the vertical vector, and the ∘ mark represents the starting point of the horizontal vector.

【0010】図4の例でわかる様に、アウトライン抽出
手段では、黒画素の連結する領域を、水平ベクトルと垂
直ベクトルが交互(かならず交互になる)に連続する粗
輪郭ベクトルループとして抽出する。ただし、ここでは
抽出処理を進める方向は、その進む向きに対して右側が
黒画素領域となる様にしている。また、各粗輪郭ベクト
ルの始点は、入力画像の各画素の中間位置として抽出さ
れる。つまり、各画素の存在位置を整数(x,y)で表
した場合、抽出されるベクトルの始点はそれぞれの座標
値に0.5を加えた値、或いは0.5を減じた値をと
る。より詳しく説明すれば、原画中の1画素巾の線部分
も、有意な巾をもった粗輪郭ループとして抽出される。
この様に抽出された粗輪郭ベクトルループ群は、図5に
示す様なデータ形式で図10のアウトライン抽出手段2
より出力される。即ち、画像中より抽出された総粗輪郭
ループ数aと、第1輪郭ループから第a輪郭ループまで
の各粗輪郭ループデータ群からなる。各粗輪郭ループデ
ータは、粗輪郭ループ内に存在する輪郭辺ベクトルの始
点の総数(輪郭辺ベクトルの総数とも考えることができ
る)と、ループを構成している順番に各輪郭辺ベクトル
の始点座標(x座標値,y座標値)の値(水平ベクトル
の始点及び垂直ベクトルの始点が交互に並ぶ)の列より
構成されている。
As can be seen from the example of FIG. 4, the outline extraction means extracts a region where black pixels are connected as a rough contour vector loop in which horizontal vectors and vertical vectors alternate (always alternate). However, in this case, the direction of advancing the extraction process is such that the right side of the advancing direction is the black pixel region. The starting point of each rough contour vector is extracted as the intermediate position of each pixel of the input image. That is, when the existence position of each pixel is represented by an integer (x, y), the starting point of the extracted vector has a value obtained by adding 0.5 to each coordinate value or a value obtained by subtracting 0.5. More specifically, the one-pixel wide line portion in the original image is also extracted as a rough contour loop having a significant width.
The rough contour vector loop group extracted in this way has a data format as shown in FIG.
Will be output. That is, it is composed of the total number a of rough contour loops extracted from the image and each rough contour loop data group from the first contour loop to the a-th contour loop. Each rough contour loop data includes the total number of starting points of the contour side vectors existing in the rough contour loop (which can also be considered as the total number of contour side vectors) and the starting point coordinates of each contour side vector in the order of forming the loop. (X coordinate value, y coordinate value) value (start point of horizontal vector and start point of vertical vector are arranged alternately).

【0011】さて、次に図10で示されるアウトライン
平滑・変倍手段3では、前記アウトライン抽出手段2よ
り出力される粗輪郭ベクトルデータ(図5参照)を入力
し、その平滑化及び所望の倍率への変倍処理をアウトラ
インベクトルデータ(座標値)の形態上で実施する。図
6に、アウトライン平滑・変倍手段のさらに詳しい構成
を示す。図6において、31は変倍の倍率設定手段、3
2は第一平滑化・変倍手段である。第一平滑化・変倍手
段は、倍率設定手段31により設定した倍率で、入力し
た粗輪郭データを平滑化及び変倍処理する。処理結果は
第二平滑化手段33において、更に平滑化を行い最終出
力を得る。
Now, in the outline smoothing / magnifying unit 3 shown in FIG. 10, the rough contour vector data (see FIG. 5) output from the outline extracting unit 2 is input, and the smoothing and the desired scaling factor are obtained. The scaling process is performed in the form of outline vector data (coordinate values). FIG. 6 shows a more detailed structure of the outline smoothing / magnifying unit. In FIG. 6, reference numeral 31 is a magnification setting means for changing magnification, and 3
Reference numeral 2 is a first smoothing / magnifying unit. The first smoothing / magnifying unit smoothes and scales the input rough contour data at the magnification set by the magnification setting unit 31. The processing result is further smoothed by the second smoothing means 33 to obtain a final output.

【0012】倍率設定手段31は、あらかじめディップ
スイッチや、ダイヤルスイッチ等で設定されている値
を、第一平滑化・変倍手段に渡すものでもよいし、何か
外部よりI/F(インタフエース)を介して提供される
等の形式をとってもよく、入力として与えられる画像サ
イズに対し、主走査(横)方向、副走査(縦)方向独立
に、それぞれ何倍にするかの情報を与える手段である。
The magnification setting means 31 may pass a value preset by a dip switch, a dial switch or the like to the first smoothing / magnifying means, or an I / F (interface) from some outside. ), And means for giving information on how many times to multiply the image size given as input independently in the main scanning (horizontal) direction and the sub-scanning (vertical) direction. Is.

【0013】第一平滑化・変倍手段32は、倍率設定手
段31からの倍率情報を得て、平滑化・変倍処理を行
う。
The first smoothing / magnifying means 32 obtains magnification information from the magnification setting means 31 and performs smoothing / magnifying processing.

【0014】図7に、アウトライン平滑・変倍手段を実
現するハードウェア構成例を示す。図7において、71
はCPU、72はディスク装置、73はディスクI/
O、74はCPU71の動作処理手順を記憶しているR
OMである。75はI/Oポート、76はRAM(ラン
ダムアクセスメモリ)、77は上記の各ブロックを接続
するバスである。
FIG. 7 shows an example of the hardware configuration for implementing the outline smoothing / magnifying unit. In FIG. 7, 71
Is a CPU, 72 is a disk device, and 73 is a disk I /
O and 74 are R storing the operation processing procedure of the CPU 71.
OM. 75 is an I / O port, 76 is a RAM (random access memory), and 77 is a bus connecting the above blocks.

【0015】図2のアウトライン抽出手段の出力は、図
5に示すデータ形式でディスク装置72にファイル(粗
輪郭ベクトルデータ)として記憶される。
The output of the outline extracting means shown in FIG. 2 is stored as a file (coarse contour vector data) in the disk device 72 in the data format shown in FIG.

【0016】CPU71は、図8に与えられる手順で動
作し、アウトライン平滑・変倍の処理を実行する。
The CPU 71 operates according to the procedure given in FIG. 8 and executes outline smoothing / magnifying processing.

【0017】先ず、ステップS1でディスクI/O73
を経由して、ディスク装置72に格納された粗輪郭デー
タを読み出して、RAM76中のワーキングメモリ領域
(図示せず)に読み込む。次に、ステップS2において
第一平滑化及び変倍処理を行う。
First, in step S1, the disk I / O 73
The rough contour data stored in the disk device 72 is read out via the above and is read into a working memory area (not shown) in the RAM 76. Next, in step S2, the first smoothing and scaling processing is performed.

【0018】第一平滑化処理は、粗輪郭データの各閉ル
ープ単位で行われる。各粗輪郭データの各輪郭辺(水平
ベクトル、もしくは垂直ベクトル)ベクトルに順次着目
してゆき、各着目輪郭辺ベクトルに対し、それぞれその
前後のベクトル高々3本まで(即ち、着目辺の前に3
本、着目辺自体、それに着目辺の後に3本の合計高々7
本までの辺ベクトル)の互いに連続する辺ベクトルの長
さと向きの組み合わせによってパターンを分けて、それ
ぞれの場合に対して、着目辺に対する第一平滑化結果と
なる第一平滑化後の輪郭点を定義してゆく。そして、第
一平滑化後の輪郭点の座標値及びその輪郭点が角の点な
のか否かを示す付加情報(以下、角点情報と称す)を出
力する。ここで言う角の点とは、意味のある角に位置す
る点をいい、ノイズその他の要因でギザギザした部分や
ノッチなどによる角の点は除かれる。さて、角の点と判
定された第一平滑化後の輪郭点(以降、角点と称す)
は、後の第二平滑化によっては平滑化されない点、すな
わち、その位置が不動点として扱われる。また、角の点
と判定されなかった第一平滑化後の輪郭点(以降、非角
点と称す)は、後の第二平滑化によって更に平滑化され
ることになる。
The first smoothing process is performed for each closed loop unit of the rough contour data. Focusing on each contour edge (horizontal vector or vertical vector) vector of each rough contour data in sequence, up to three vectors before and after each contour edge vector (that is, before the attention edge
The book, the side of interest itself, and a total of 7 after the side of interest and a total of 7
The pattern is divided according to the combination of the length and the direction of the side vectors that are continuous to each other (up to the side vector up to the book), and in each case, the contour points after the first smoothing that are the first smoothing results for the target side are obtained. I will define it. Then, the coordinate value of the contour point after the first smoothing and additional information indicating whether or not the contour point is a corner point (hereinafter referred to as corner point information) are output. The corner point here means a point located at a meaningful corner, and a corner point due to a notch or a jagged portion due to noise or other factors is excluded. Now, the contour points after the first smoothing determined as corner points (hereinafter referred to as corner points)
Is treated as a fixed point, that is, its position which is not smoothed by the second smoothing performed later. Further, the contour points after the first smoothing which are not determined as the corner points (hereinafter referred to as non-corner points) are further smoothed by the second smoothing later.

【0019】図9にこの様子、即ち、着目粗輪郭辺ベク
トルDiと、着目粗輪郭辺ベクトルの前の3本の辺ベク
トルDi-1,Di-2,Di-3及び、着目粗輪郭辺ベクトル
の後の3本の辺ベクトルDi+1,Di+2,Di+3の様子
と、着目辺Diに対して定義される第一平滑化後の輪郭
点の様子を示している。
FIG. 9 shows this state, that is, the target rough contour side vector D i , the three side vectors D i-1 , D i-2 and D i-3 before the target rough contour side vector and the target. State of three edge vectors D i + 1 , D i + 2 , D i + 3 after the rough contour edge vector, and appearance of the contour points after the first smoothing defined for the target edge D i Is shown.

【0020】以上、第一平滑化の処理内容を説明した。
第一平滑化後のデータは、RAM76の所定領域上に順
次構築されていく。かくして、図8のステップS2の処
理を終えて、CPU72は、ステップS3の第二平滑化
の処理を行う。
The details of the first smoothing process have been described above.
The data after the first smoothing is sequentially constructed on a predetermined area of the RAM 76. Thus, after finishing the process of step S2 in FIG. 8, the CPU 72 performs the second smoothing process of step S3.

【0021】第二平滑化は、第一平滑化後のデータを入
力し、それを処理する。即ち、閉ループ数、各閉ループ
毎の輪郭点数、各閉ループ毎の第一平滑化済の輪郭点の
座標値データ列、及び、各閉ループ毎の第一平滑化済の
輪郭点の付加情報データ列を入力して、第二平滑化後の
輪郭点データを出力する。
In the second smoothing, the data after the first smoothing is input and processed. That is, the number of closed loops, the number of contour points for each closed loop, the coordinate value data string of the first smoothed contour points for each closed loop, and the additional information data string of the first smoothed contour points for each closed loop. Input and output the contour point data after the second smoothing.

【0022】第二平滑化後の輪郭データは、図11に示
す様に、閉ループ数、各閉ループ毎の輪郭点数テーブ
ル、各閉ループ毎の第二平滑化済の輪郭点の座標値デー
タ列より構成される。
As shown in FIG. 11, the contour data after the second smoothing is composed of a closed loop number, a contour point number table for each closed loop, and a coordinate value data string of the second smoothed contour point for each closed loop. To be done.

【0023】以下、図12を用いて、第二平滑化処理の
概要を説明する。第二平滑化は、第一平滑化同様、輪郭
ループ単位に処理され、かつ各輪郭ループ内において
は、各輪郭点毎に処理が進められる。
The outline of the second smoothing process will be described below with reference to FIG. Similar to the first smoothing, the second smoothing is processed for each contour loop unit, and the processing is advanced for each contour point in each contour loop.

【0024】各輪郭点について、注目している輪郭点が
角点である場合は、入力した輪郭点座標値そのものを、
その注目輪郭点に対する第二平滑化済の輪郭点座標デー
タとする。つまり、何も変更しない。
For each contour point, if the contour point of interest is a corner point, the input contour point coordinate value itself is
The second smoothed contour point coordinate data for the target contour point is set. That is, nothing is changed.

【0025】また、注目している輪郭点が非角点である
場合は、前後の輪郭点座標値と、注目する輪郭点の座標
値との加重平均により求まる座標値を、注目している輪
郭点に対する第二平滑化済の輪郭点座標値とする。即
ち、非角点である注目入力輪郭点をPi(xi ,yi
とし、Pi の入力輪郭ループにおける直前の輪郭点をP
i -1(xi+1,yi+1 ),直後の輪郭点をPi+1(x
i+1 ,yi+1 )とし、更には注目入力輪郭点Pi に対す
る第二平滑化済の輪郭点をQi (x’i ,y’i )とす
ると、 x’i =ki-1 ・xi-1 +ki ・xi +ki+1 ・xi+1 y’i =ki-1 ・yi-1 +ki ・yi +ki+1 ・yi+1 として算出する。ここで、ki-1 =ki+1 =1/4,k
i =1/2である。
If the contour point of interest is a non-corner point, the coordinate value obtained by weighted averaging of the coordinate value of the front and rear contour points and the coordinate value of the contour point of interest is used. The second smoothed contour point coordinate value for the point is used. That is, a target input contour point that is a non-corner point is defined as P i (x i , y i ).
And the immediately preceding contour point in the input contour loop of Pi is P
i −1 (x i + 1 , y i + 1 ), the immediately following contour point is P i + 1 (x
i + 1 , y i + 1 ), and Q i (x ′ i , y ′ i ) the second smoothed contour point for the target input contour point P i , x ′ i = k i- Calculate as 1 · x i-1 + k i · x i + k i + 1 · x i + 1 y ′ i = k i-1 · y i-1 + k i · y i + k i + 1 · y i + 1 . Here, k i-1 = k i + 1 = 1/4, k
i = 1/2.

【0026】図12において、点P0 ,P1 ,P2 ,P
3 ,P4 は、入力である第一平滑化済の連続する輪郭点
列の一部であり、P0 およびP4 は角点、P1,P2
びP3は非角点を示している。この時の処理結果が、そ
れぞれ点Q0 ,Q1,Q2 ,Q 3 ,Q4 で示されてい
る。P0 及びP4 は角点であるから、それらの座標値
が、そのままそれぞれQ0 及びQ4 の座標値となる。ま
た点Q1 は、P0 ,P1 ,P 2 から上述した式に従つて
算出した値を座標値として持つ。同様に、Q2 はP1
2 ,P3 から、Q3 はP2 ,P3 ,P4 から上式に従
つて算出した値を座標値としてもつ。
In FIG. 12, point P0 , P1 , P2 , P
3 , PFour Is the input, the first smoothed continuous contour point
Is part of a row, P0 And PFour Is the corner point, P1, P2 Over
And P3Indicates a non-corner point. The processing result at this time is
Each point Q0 , Q1, Q2 , Q 3 , QFour Indicated by
It P0 And PFour Are angular points, so their coordinate values
But as it is Q respectively0 And QFour Is the coordinate value of. Well
Point Q1 Is P0 , P1 , P 2 From the above equation
It has the calculated values as coordinate values. Similarly, Q2 Is P1
P2 , P3 From Q3 Is P2 , P3 , PFour According to the above formula
The calculated value is used as the coordinate value.

【0027】かくの如き処理を、CPU71は、RAM
76上の所定領域にある第一平滑化済の輪郭データに対
する第2平滑化処理を施す。この処理は、第1ループか
ら順に、第2ループ、第3ループと、ループ毎に処理を
進め、全てのループに対して処理が終了することによ
り、第二平滑化の処理を終了する。毎ループの処理内で
は、第1点から順に第2点、第3点と処理を進め、全て
の当該ループ内の輪郭点に対しての式に示した処理を
終えると、当該ループの処理を終え、次のループに処理
を進めてゆく。
The CPU 71 executes the above processing in the RAM.
A second smoothing process is performed on the first smoothed contour data in a predetermined area on 76. This process proceeds from the first loop to the second loop and the third loop in sequence for each loop, and the process for all the loops ends, thereby ending the second smoothing process. In the processing of each loop, the processing proceeds from the first point to the second point and the third point in order, and when the processing shown in the equation for all the contour points in the loop is completed, the processing of the loop is performed. After that, the process goes to the next loop.

【0028】尚、ループ内にL個の輪郭点が存在する場
合、第1点の前の点とは第L点のことであり、又、第L
点の後の点とは第1点のことである。以上、第二平滑化
では、入力とする第一平滑化済輪郭データと同じ総ルー
プを数をもち、かつ、各ループ上の輪郭点数は変わら
ず、同数の輪郭点データが生成される。CPU72は、
以上の結果をRAM76の別領域もしくは、ディスク装
置72上に図11に示した形態で出力し、第二平滑化処
理の(ステップS3)の処理を終了する。
When there are L contour points in the loop, the point before the first point is the Lth point, and the Lth point.
The point after the point is the first point. As described above, in the second smoothing, the same number of total loops as the first smoothed contour data to be input is used, and the number of contour points on each loop does not change, and the same number of contour point data is generated. The CPU 72
The above result is output to another area of the RAM 76 or to the disk device 72 in the form shown in FIG. 11, and the process of the second smoothing process (step S3) ends.

【0029】次に、CPU71はステップS4へ進み、
第二平滑化の結果得られたデータを、I/O75を介し
て2値画像再生手段4へ転送して、図8に示したその一
連の処理を終える。
Next, the CPU 71 proceeds to step S4,
The data obtained as a result of the second smoothing is transferred to the binary image reproducing means 4 via the I / O 75, and the series of processing shown in FIG. 8 is completed.

【0030】2値画像再生手段4は、例えば、本出願人
により先に提案されている特願平3−172098号に
記載の装置で構成できる。該装置によれば、I/Oを介
して転送された、第二平滑化済の輪郭データを元に、該
輪郭データにより表現されるベクトル図形により囲まれ
る領域を塗りつぶして生成される2値画像をラスター走
査型式で出力することができる。また、同提案は、その
記載内容の如く、ビデオプリンタ等の2値画像出力手段
を用いて可視化するものである。
The binary image reproducing means 4 can be constituted by, for example, the device described in Japanese Patent Application No. 3-172098 previously proposed by the present applicant. According to the apparatus, a binary image generated by filling the area surrounded by the vector graphic represented by the contour data based on the second smoothed contour data transferred via the I / O. Can be output in a raster scan format. Further, the proposal is to visualize using a binary image output means such as a video printer as described in the description.

【0031】さて、特願平4−169581号の提案
は、以上に説明した特願平3−345062を更に改良
したものであって、低倍率の変倍画像が太り気味となら
ないようにしたものである。即ち、特願平3−3450
62号のアウトライン抽出部では、原画の白画素と黒画
素のちょうど真ん中の境界をベクトル抽出する対象とし
たのに対し、この提案では黒画素の間の黒画素寄りに
(黒画素領域を白画素領域に比して巾狭に)抽出して、
かつ、これに合わせたアウトライン平滑を行うように変
更したものである。
The proposal of Japanese Patent Application No. 4-169581 is a further improvement of the above-mentioned Japanese Patent Application No. 3-345062, in which a low-magnification image does not become fat. Is. That is, Japanese Patent Application No. 3-3450
In the outline extraction unit of No. 62, the boundary between the white pixels and the black pixels of the original image is exactly the vector extraction target, whereas in this proposal, the black pixels between the black pixels are closer to each other (the black pixel area is Extract narrower than the area),
In addition, it is modified to perform outline smoothing in accordance with this.

【0032】[0032]

【発明が解決しようとする課題】上記従来例では、原画
像の一画素単位に輪郭点を抽出・定義しているために、
すべて各輪郭点を直線で結んだショートベクトル形式で
表現しても十分に高画質な2値画像を得ることができる
が、斜線が数多く含まれる様な複雑な原画の場合には、
アウトラインベクトルの数が非常に多くなるという問題
があることがわかった。データ量が増えるということ
は、消費する大きいメモリ容量を必要とすることであ
り、且つ、平滑化や再生に要する処理時間も増加すると
いうことでもある。
In the above-mentioned conventional example, since the contour points are extracted and defined for each pixel of the original image,
A binary image with sufficiently high image quality can be obtained by expressing all contour points in a short vector format with straight lines, but in the case of a complicated original image with many diagonal lines,
It turns out that there is a problem that the number of outline vectors becomes very large. The increase in the amount of data means that a large memory capacity to be consumed is required, and that the processing time required for smoothing and reproduction also increases.

【0033】[0033]

【課題を解決するための手段】本発明はかかる課題に鑑
みなされたものであり、得られた2値画像の輪郭点をそ
の後に続く処理に渡す場合において、後の処理の負担を
極力減らすことを可能ならしめる画像処理装置及びその
方法を提供しようとするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and when the contour points of the obtained binary image are passed to the subsequent processing, the load of the subsequent processing is reduced as much as possible. (EN) An image processing apparatus and method for enabling the above.

【0034】この課題を解決するため、本発明の画像処
理装置は以下に示す構成を備える。すなわち、2値画像
から抽出された輪郭ベクトルデータを獲得する輪郭ベク
トル獲得手段と、該輪郭ベクトル獲得手段で獲得された
互いに隣接する所定数のベクト群の傾きに基づいて、当
該ベクトル群の中から不用なベクトルを検知する検知手
段と、該検知手段で検知されたベクトルを削除する削除
手段とを備える。
In order to solve this problem, the image processing apparatus of the present invention has the following configuration. That is, based on the contour vector acquisition means for acquiring the contour vector data extracted from the binary image and the inclination of a predetermined number of vector groups adjacent to each other acquired by the contour vector acquisition means, A detection unit that detects an unnecessary vector and a deletion unit that deletes the vector detected by the detection unit are provided.

【0035】また、本発明の画像処理方法は以下の行程
からなる。すなわち、2値画像から抽出された輪郭ベク
トルデータを獲得する行程と、獲得された互いに隣接す
る所定数のベクト群の傾きに基づいて、当該ベクトル群
の中から不用なベクトルを検知する行程と、検知された
ベクトルを削除する削除行程とを備える。
The image processing method of the present invention comprises the following steps. That is, a process of acquiring contour vector data extracted from a binary image, and a process of detecting an unnecessary vector from the vector group based on the inclinations of the acquired predetermined number of vector groups, A deletion step of deleting the detected vector.

【0036】[0036]

【作用】かかる本発明の構成及び行程において、獲得し
た輪郭ベクトルにおいて、連続する所定数のベクトル群
に基づいて、当該ベクトル群の中から不用なベクトルを
検知し、その検知されたベクトルを削除する。
In the structure and process of the present invention, in the obtained contour vector, an unnecessary vector is detected from the vector group based on a predetermined number of continuous vector groups, and the detected vector is deleted. .

【0037】[0037]

【実施例】以下、添付図面に従って本発明に係る実施例
を詳細に説明する。
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

【0038】図1は実施例の画像処理装置のブロック構
成図をしめしている。本願出願人が先に提案した図10
のブロック構成図と異なるのは、アウトライン平滑・変
倍手段3が、アウトラインベクトル検知・削除・平滑・
変倍手段13として構成されている点である。その他の
2値画像獲得手段11、アウトライン抽出手段12、2
値画像再生手段14及び2値画像出力手段15は、それ
ぞれ前記図10における符号1,2,4及び5と同様に
構成できる。このため、これらに関する説明は重複を避
けるために省略し、以降、図1のアウトラインベクトル
検知・削除・平滑・変倍手段13に関しての説明を行
う。
FIG. 1 is a block diagram of the image processing apparatus of the embodiment. FIG. 10 previously proposed by the applicant of the present application
The difference from the block diagram of FIG. 3 is that the outline smoothing / magnifying unit 3 detects outline vector detection / deletion / smoothing /
This is that it is configured as the variable power unit 13. Other binary image acquisition means 11, outline extraction means 12, 2
The value image reproducing means 14 and the binary image output means 15 can be configured similarly to the reference numerals 1, 2, 4 and 5 in FIG. For this reason, the description of these is omitted to avoid duplication, and the outline vector detection / deletion / smoothing / magnifying unit 13 of FIG. 1 will be described below.

【0039】実施例におけるアウトラインベクトル検知
・削減・平滑・変倍手段13のさらに詳しい構成を図1
3に示す。同図において、21は変倍の倍率設定手段、
22は、第一平滑化及び変倍手段であり、変倍の倍率設
定手段21により設定した倍率で、入力した粗輪郭デー
タを平滑化及び変倍処理する。処理結果は同向きの連続
ベクトル検知・削除手段24に渡され、同じ傾きをもつ
連続したショートベクトルを検知し、これらショートベ
クトルがあれば、これらを連結し、以降での処理対象と
なるベクトル数を削減する。同向き連続ベクトル検知・
削除手段24の処理結果は第二平滑化手段23で更に平
滑化を行い最終出力とする。
A more detailed structure of the outline vector detecting / reducing / smoothing / magnifying unit 13 in the embodiment is shown in FIG.
3 shows. In the figure, reference numeral 21 is a magnification setting means for variable magnification.
Reference numeral 22 denotes a first smoothing and scaling unit that smoothes and scales the input rough contour data at the scaling factor set by the scaling factor setting unit 21. The processing result is passed to the continuous vector detecting / deleting means 24 of the same direction, and continuous short vectors having the same slope are detected. If there are these short vectors, these are connected and the number of vectors to be processed thereafter is calculated. To reduce. Same direction continuous vector detection
The processing result of the deleting means 24 is further smoothed by the second smoothing means 23 to be the final output.

【0040】図13の符号21,22,23で示される
ユニットは、それぞれ先に説明した前記先願特許提案に
おける符号31,32,33と同様に構成できる(図6
参照)。また、図13のアウトラインベクトル検知・削
減・平滑・変倍手段は、実施例の場合、プログラムによ
って処理するものとするので、基本的に図7の構成で実
現できる。但し、ROM74に記憶されるプログラムは
当然のことながら異なる。
The units denoted by reference numerals 21, 22, and 23 in FIG. 13 can be configured in the same manner as the reference numerals 31, 32, and 33 in the above-mentioned prior patent proposal (FIG. 6).
reference). Further, the outline vector detecting / reducing / smoothing / magnifying unit of FIG. 13 is processed by a program in the case of the embodiment, and thus can be basically realized by the configuration of FIG. However, the programs stored in the ROM 74 are naturally different.

【0041】同向きの連続ベクトル検知・削除手段24
の動作概要を図14を用いて説明する。図示において、
k-2,Pk-1,Pk,Pk+1,Pk+2 …は、入力となる第一平
滑化・変倍処理済の輪郭ベクトルを構成する同一輪郭ベ
クトルループ上の互いに連続する輪郭点列である。各輪
郭点Pi (i=…k−2,k−1,k,k+1,k+2,
…)の座標値を(xPi,yPi)で表現した場合、輪郭点
Pi とPi+1 で定義されるショートベクトルvPi(△x
Pi,△yPi)は、 △xPi=xPi+1−xPi △yPi=yPi+1−yPi で表現できる。
Continuous vector detection / deletion means 24 in the same direction
The outline of the operation will be described with reference to FIG. In the figure,
P k−2 , P k−1 , P k , P k + 1 , P k + 2 ... Are mutually on the same contour vector loop forming the first smoothed / scaled contour vector which is an input. It is a sequence of continuous contour points. Each contour point P i (i = ... k-2, k-1, k, k + 1, k + 2,
When the coordinate value of () is expressed by (x Pi , y Pi ), a short vector v Pi (Δx) defined by contour points Pi and Pi + 1
Pi, △ y Pi) can be represented by △ x Pi = x Pi + 1 -x Pi △ y Pi = y Pi + 1 -y Pi.

【0042】今、同一輪郭ベクトルループ上の互いに連
続する輪郭点列Pi-1 ,Pi ,Pi+1の間で、 △xPi-1×m=△xPi かつ △yPi-1×m=△yPi … (ただし、mは実定数) が成立している場合には、Pi-1 とPiで定義されるv
Pi-1と、PiとPi+1とで定義されるvpは同じ傾きを持
っていることになる。
[0042] Now, the outline point sequence to each other continuously on the same outline vector loop P i-1, P i, between P i + 1, △ x Pi -1 × m = △ x Pi and △ y Pi-1 If xm = Δy Pi (where m is a real constant) holds, v defined by P i-1 and P i
Pi-1 and v p defined by P i and P i + 1 have the same slope.

【0043】図14においては、…PK-2,Pk-1,Pk,P
k+1,Pk+2 …の輪郭点列において、注目輪郭点Pk 削除
して、…Pk-2,Pk-1,Pk+1,Pk+2 …をもって、新め
て、それぞれ…Qj-2,Qj-1,Qj,Qk+1 …となって出力
することを示している。即ち、vPk-1とvPkが△xPk-1
=△xPkかつ、△yPk-1=△yPkであり、式で示され
る条件を満たすことから、同じ傾きをもているものと検
知できる。従って、それらを連結して、vQj-1として扱
い、Pk-1と、Pk+1の間にあった注目輪郭点Pkを削除
して出力対象外とする。
In FIG. 14, ... P K-2 , P k-1 , P k , P
In the contour point sequence of k + 1 , P k + 2, ..., The target contour point Pk is deleted, and ..., P k-2 , P k-1 , P k + 1 , P k + 2 ... It is shown that they are respectively output as Q j-2 , Q j-1 , Q j , Q k + 1 . That is, v Pk-1 and v Pk are Δx Pk-1
= Δx Pk and Δy Pk-1 = Δy Pk , and it is possible to detect that they have the same inclination because the condition shown by the equation is satisfied. Therefore, they are connected and treated as v Qj-1 , and the target contour point P k between P k-1 and P k + 1 is deleted and excluded from the output target.

【0044】図15は、図14同様、…Mk-2,Mk-1,M
k,Mk+1,Mk+2,…は、入力となる第一平滑化・変倍処理
済の輪郭ベクトルを構成する同一輪郭ベクトルループ上
の互いに連続する輪郭点列である。ここでも、Mkを削
除して、…,Mk-2,Mk-1,Mk+ 1,Mk+2,…をもって、新
ためて、それぞれ、…Nj-2,Nj-1,Nj,Nj+1,…となし
て、出力することを示している。
FIG. 15 is the same as FIG. 14 ... M k-2 , M k-1 , M
k , M k + 1 , M k + 2 , ... Consecutive contour point sequences on the same contour vector loop forming the first smoothed / scaled contour vector to be input. Again, remove the M k, ..., M k- 2, M k-1, M k + 1, M k + 2, ... have, in Tame new, respectively, ... N j-2, N j-1 , N j , N j + 1 , ...

【0045】即ち、vMk-1とvMkとにおいて、△xMk-1
×1/3=△xMkかつ、△yMk-1×1/3=△yMkであ
り、式で示される条件を満たしている。従つて、同じ
傾きをもっているものと検知して、vMk-1とvMkとを連
結してvNj-1として扱い、M k-1とMk+1の間にあった輪
郭点Mk を削除して出力する。
That is, vMk-1And vMkAnd at xMk-1
× 1/3 = ΔxMkAnd △ yMk-1× 1/3 = △ yMkAnd
Satisfies the condition shown by the formula. Therefore, the same
Detecting that it has a tilt, vMk-1And vMkAnd
Tied vNj-1Treated as M k-1And Mk + 1The ring between
Border point Mk Is deleted and output.

【0046】以上、同一輪郭ベクトルループ上の互いに
連続する3点よりなる輪郭点列の中央の一点を削除する
原理を説明してきた。
The principle of deleting one central point of the contour point sequence consisting of three consecutive points on the same contour vector loop has been described above.

【0047】ここで、この3点で定義される2つの輪郭
ベクトルの傾きが等しいので、中央の一点を削除して、
傾きが削除前の2つのベクトルと同じで、長さがこの2
つのベクトルの長さの和に等しい輪郭ベクトルに前記削
除前の2つのベクトルを置き換えた場合に生ずる、それ
以降の処理結果の違いを説明する。
Here, since the slopes of the two contour vectors defined by these three points are equal, one point at the center is deleted and
The slope is the same as the two vectors before deletion, and the length is 2
The difference in the processing results after that which occurs when the two vectors before deletion are replaced with the contour vector equal to the sum of the lengths of the two vectors will be described.

【0048】つまり、同じ傾き輪郭ベクトルが連続する
場合、どの程度連続したら削除して良いのかを以下に考
察する。
That is, in the case where the same inclination contour vector is continuous, the following will consider how long it should be deleted.

【0049】図16において、…ak-2,ak-1,ak,a
k+1,ak+2,…は、第一平滑化・変倍処理済の輪郭ベクト
ルを構成する、同一輪郭ベクトルループ上の互いに連続
する輪郭点列である。ここで、この…ak-2,ak-1,ak,
k+1,ak+2,…をそのまま第二平滑化した場合(ただ
し、ak-2とak+2は角点で、ak-1,ak,ak+1は非角点
であったとする)に、得られる第二平滑化後の輪郭点列
を、…bk-2,bk-1,bk,b k+1,bk+2,…で表現してあ
る。一方、…cj-2,cj-1,cj,cj+1,…は3点、ak- 1,
k,ak+1 において式が成立していることから、ak
を削除して、…,ak-2,ak-1 ,ak+1 ,ak+2 ,…で構成
される互いに連続する輪郭点列とし、これに対する第二
平滑化後の輪郭点列を、…cj-2,cj-1,cj,cj+1,…で
表現してある。
In FIG. 16, ... ak-2, ak-1, ak, a
k + 1, ak + 2, ... are contour vectors that have undergone the first smoothing and scaling processing
Are continuous with each other on the same contour vector loop
It is a contour point sequence to be performed. Where this ... ak-2, ak-1, ak,
ak + 1, ak + 2When the second smoothing is performed as is, (...
Then ak-2And ak + 2Is the corner point, ak-1, ak, ak + 1Is a non-corner point
And the obtained second smoothed contour point sequence
, ... bk-2, bk-1, bk, b k + 1, bk + 2Expressed as ...
It On the other hand, ... cj-2, cj-1, cj, cj + 1, ... is 3 points, ak- 1,
ak, ak + 1 Since the equation holds ink
To delete, ..., ak-2, ak-1 , ak + 1 , ak + 2 Composed of,…
The sequence of continuous contour points
The contour point sequence after smoothing is ... Cj-2, cj-1, cj, cj + 1,…so
It is expressed.

【0050】図17において、…dk-2,dk-1,dk,d
k+1,dk+2,…は、第一平滑化・変倍処理済の輪郭ベクト
ルを構成する同一輪郭ベクトルループ上の互いに連続す
る他のもう一つの輪郭点列の列である。ここで、この…
k-2,dk-1,dk,dk+1,dk+2,…をそのまま第二平滑化
した場合(ただし、dk-2とdk+2は角点で、dk-1,dk,
k+1は非角点であったとする)に、得られる第二平滑
化後の輪郭点列を、…ek -2,ek-1,ek,ek+1,ek+2,…
で表現してある。一方、…fj-2,fj-1,fj,fj+1,…
は、3点dk-1,dk,dk+1において、式が成立してい
ることから、dkを削除して、…dk-2,dk-1,dk+1,d
k+2,…で構成される互いに連続する輪郭点列とし、これ
に対する第二平滑化後の輪郭点列を、…fj-2,fj-1,f
j,fj+1,…で表現してある。
In FIG. 17, ... D k-2 , d k-1 , d k , d
k + 1 , d k + 2 , ... Are columns of another continuous contour point sequence on the same contour vector loop which constitutes the first smoothed / scaled contour vector. Where this ...
When the second smoothing is performed on d k-2 , d k-1 , d k , d k + 1 , d k + 2 , ... (where d k-2 and d k + 2 are corner points, and d k-1 , d k ,
It is assumed that d k + 1 is a non-angular point), and the obtained second smoothed contour point sequence is ... E k -2 , e k-1 , e k , e k + 1 , e k + 2 ...
It is expressed by. On the other hand, ... f j-2 , f j-1 , f j , f j + 1 , ...
Since the equation is established at the three points d k-1 , d k , d k + 1 , d k is deleted and ... D k-2 , d k-1 , d k + 1 , d
k + 2 , ... Consecutive continuous contour point sequences, and the second smoothed contour point sequence is ... F j-2 , f j-1 , f
It is represented by j , f j + 1 , ....

【0051】図16の…bk-2,bk-1,bk,bk+1,bk+2,
…と、…cj-2,cj-1,cj,cj+1,…とで、表わされる輪
郭形状は、明らかに異なっている。また、図17の…e
k-2,ek-1,ek,ek+1,ek+2,…と、…fj-2,fj-1,fj,
j+1,…とで表わされる輪郭形状も、明らかに異なって
いる。
In FIG. 16, b k-2 , b k-1 , b k , b k + 1 , b k + 2 ,
, And ... C j-2 , c j-1 , c j , c j + 1 , ..., The contour shapes represented are obviously different. Also, in FIG.
k-2 , e k-1 ,, e k , e k + 1 , e k + 2 , ... And ... f j-2 , f j-1 ,, f j ,
The contour shapes represented by f j + 1 , ... Are also obviously different.

【0052】この相違は、第二平滑化においては、図1
2で説明した様に、非角点である輪郭点は、同一輪郭ベ
クトルループ上の互いに連続する直前の輪郭点と直後の
輪郭点との間で従来技術で説明した加重平均をとるが、
その直前或いは直後の輪郭点が上述した輪郭点除去処理
によって除去されるからである。
This difference is shown in FIG.
As described in 2, the non-angular contour points take the weighted average described in the prior art between the immediately preceding contour point and the immediately following contour point on the same contour vector loop,
This is because the contour point immediately before or immediately after that is removed by the above-described contour point removal processing.

【0053】図18において、…gk-3,gk-2,gk-1,g
k,gk+1,gk+2,gk+3,…は、第一平滑化・変倍処理済の
輪郭ベクトルを構成する同一輪郭ベクトルループ上の互
いに連続する輪郭点列である。ここで、これら…gk-3,
k-2,gk-1,gk,gk+1,gk+ 2,gk+3,…をそのまま第二
平滑化した場合(ただし、gk-2とgk+2は角点で、g
k-1,gk,gk+1は角点ではない輪郭点であったとする)
に得られる、第二平滑化後の輪郭点列を、…hk-3,h
k-2,hk-1,hk,hk+1,hk+2,hk+3,…で表現してある。
一方、…lj-3,lj-2,lj-1,lj,lj+1,lj+2,…は、5
点gk-2,gk-1,gk,gk+1,gk+2において、gk-2,
k-1,gkと、gk-1,gk,gk+1と、gk,gk+1,gk +2
全ての互いに連続する3点の組において、式が成立し
ている状態の場合に、中心にあるgkを削除して、…g
k-3,gk-2,gk-1,gk+1,gk+2,gk+3,…で構成される互
いに連続する輪郭点列とし、これに対する第二平滑化後
の輪郭点列を表現している。
In FIG. 18, ... gk-3, gk-2, gk-1, g
k, gk + 1, gk + 2, gk + 3, ... have undergone the first smoothing and scaling processing
Mutually on the same contour vector loop that makes up the contour vector
It is a continuous sequence of contour points. Where these ... gk-3,
gk-2, gk-1, gk, gk + 1, gk + 2, gk + 3, ... as it is second
When smoothed (however, gk-2And gk + 2Is the corner point and g
k-1, gk, gk + 1Is a contour point that is not a corner point)
The contour point sequence after the second smoothing obtained ink-3, h
k-2, hk-1, hk, hk + 1, hk + 2, hk + 3It is expressed by ....
On the other hand, ... lj-3, lj-2, lj-1, lj, lj + 1, lj + 2, ... is 5
Point gk-2, gk-1, gk, gk + 1, gk + 2Where gk-2,
gk-1, gkAnd gk-1, gk, gk + 1And gk, gk + 1, gk +2of
The formula holds for all three consecutive points
G at the center whenk, And ... g
k-3, gk-2, gk-1, gk + 1, gk + 2, gk + 3, Composed of
To the continuous contour point sequence, and after the second smoothing for this
Represents the sequence of contour points.

【0054】図19は、図18における…gk-3,gk-2,
k-1,gk,gk+1,gk+3,…において、gk-2とgk+2もg
k-1,gk,gk+1と同様に、角点ではない輪郭点であると
して、そのまま第二平滑化した場合に得られる第二平滑
化後の輪郭点列を…h'k-3,h'k-2,h'k-1,h'k,
h'k+1,h'k+2,h'k+3,…で表現してある。
FIG. 19 is a circuit diagram of FIG. 18 ... G k-3 , g k-2 ,
In g k-1 , g k , g k + 1 , g k + 3 , ..., g k-2 and g k + 2 are also g
Similarly to k-1 , g k , and g k + 1 , the second smoothed contour point sequence obtained when the second smoothing is performed as it is is a contour point that is not a corner point ... h ′ k- 3 , h ' k-2 , h' k-1 , h ' k ,
It is represented by h'k + 1 , h'k + 2 , h'k + 3 , ....

【0055】一方、…l'j-3,l'j-2,l'j-1,l'j,l'
j+1,l'j+2,…は、5点gk-2,gk-1,gk,gk+1,gk+2
おいて、gk-2,gk-1,gkと、gk-1,gk,gk+1と,gk,
k+1,gk+2の全ての互いに連続する3点の組におい
て、式が成立しているので、中心にあるgkを削除し
て、…gk-3,gk-2,gk-1,gk+1,gk+2,gk+3,…で構成
される互いに連続する輪郭点列とし、これに対する第二
平滑化後の輪郭点列を表現している。
On the other hand, ... l' j-3 , l' j-2 , l' j-1 , l' j , l '
j + 1, l 'j + 2, ... are 5-point g k-2, g k- 1, g k, in g k + 1, g k + 2, g k-2, g k-1, g k and g k-1 , g k , g k + 1 and g k ,
Since the formula is established for all the pairs of three consecutive points of g k + 1 and g k + 2 , the central g k is deleted, and g k-3 , g k-2 , .., which are consecutive contour points formed by g k-1 , g k + 1 , g k + 2 , g k + 3 , ...

【0056】図18と図19を比べてみると、共に、第
二平滑化処理前の状態は、…gk-3,gk-2,gk-1,gk,g
k+1,gk+2,gk+3,…の座標値が全く等しく、図18では
k- 2とgk+2が角点であるのに対し、図19では、g
k-2とgk+2が非角点であるというところがが異なってい
る。gk-2とgk+2が角点である図18の場合には、gk
を省略しないgk-2,gk-1,gk,gk+1,gk+2,より得られ
る第二平滑化処理後の輪郭点列hk-2,hk-1,hk,hk+1,
k+2で表現される輪郭形状と、gkを省略したg k-2,g
k-1,gk+1,gk+2より得られる第二平滑化処理後の輪郭
点列lj-2,lj-1,lj,lj+1で表現される輪郭形状とは
完全に一致している。一方、gk-2とgk+2が非角点であ
る図19の場合には、gkを省略しないgk-2,gk-1,
k,gk+1,gk +2より得られる第二平滑化処理後の輪郭
点列h'k-2,h'k-1,h'k,h'k+1,h'k+2で表現される輪
郭形状と、gkを省略したgk-2,gk-1,gk+1,gk+2より
得られる第二平滑化処理後の輪郭点列l'j-2,l'j-1,
l'j,l'j+1で表現される輪郭形状は、l'j-1,l'j間の
部分は完全に一致するものの、l'j-2(=h'k-2)と
l'j- 1の間、及びl'jとl'j+1(=h'k+2)の間に関し
ては、一致していない。
Comparing FIG. 18 and FIG. 19, both are
(2) The state before the smoothing process is ...k-3, gk-2, gk-1, gk, g
k + 1, gk + 2, gk + 3The coordinate values of, ... Are exactly the same, and in FIG.
gk- 2And gk + 2Is a corner point, whereas in FIG.
k-2And gk + 2Is different in that is a non-angular point
It gk-2And gk + 2In the case of FIG. 18, where is a corner point, gk
Does not omit gk-2, gk-1, gk, gk + 1, gk + 2Obtained from
The contour point sequence h after the second smoothing processk-2, hk-1, hk, hk + 1,
hk + 2The contour shape expressed bykOmitting g k-2, g
k-1, gk + 1, gk + 2The second smoothed contour obtained by
Point sequence lj-2, lj-1, lj, lj + 1What is the contour shape represented by
It is a perfect match. On the other hand, gk-2And gk + 2Is a non-corner point
In the case of FIG.kDoes not omit gk-2, gk-1,
gk, gk + 1, gk +2The second smoothed contour obtained by
Point sequence h 'k-2, h 'k-1, h 'k, h 'k + 1, h 'k + 2The ring represented by
Guo shape and gkOmitting gk-2, gk-1, gk + 1, gk + 2Than
The obtained contour point sequence l ′ after the second smoothing processingj-2, l 'j-1,
l 'j, l 'j + 1The contour shape expressed by is l 'j-1, l 'jAmong
The parts match exactly, but l 'j-2(= H 'k-2)When
l 'j- 1Between, and l 'jAnd l 'j + 1(= H 'k + 2Between)
Are not in agreement.

【0057】図20において、…tk-4,tk-3,tk-2,t
k-1,tk,tk+1,tk+2,tk+3,tk+4,…は、第一平滑化・
変倍処理済の輪郭ベクトルを構成する同一輪郭ベクトル
ループ上の互いに連続する輪郭点列である。ここで、こ
の…tk-4,tk-3,tk-2,tk- 1,tk,tk+1,tk+2,tk+3,
k+4,…をそのまま第二平滑化した場合(ただし、t
k-3,tk-2,…、tk+3は全て非角点であるとする)に、
得られる第二平滑化後の輪郭点列を、…uk-4,uk-3,u
k-2,uk-1,uk,uk+1,uk+2,uk+3,uk+4,…で表現して
ある。また、…wj-4,wj-3,wj-2,wj-1,wj,wj+1,w
j+2,wj+3,…は、7点tk-3,tk-2,tk-1,tk,tk+1,t
k+2,tk+3において、tk-3,tk-2,tk-1と、tk-2,t
k-1,tkと、tk-1,tk,tk+1と、tk,tk+1,tk+2の全
ての互いに連続する3点の組で式が成立している状態
の場合に、中心にあるtkを削除して、…tk-4,tk-3,
k-2,tk-1,tk+1,tk+2,tk+3,tk+4,…で構成される
互いに連続する輪郭点列とし、これに対する第二平滑化
後の輪郭点列を表現している。この場合、uk-3,uk-2,
k-1,uk,uk+1,uk+2,uk+3で表現される輪郭形状
と、wj-3,wj-2,wj-1,wj,wj+1,wj+2で表現される
輪郭形状とは完全に一致している。
In FIG. 20, ... tk-4, tk-3, tk-2, t
k-1, tk, tk + 1, tk + 2, tk + 3, tk + 4, ... is the first smoothing
Same contour vector that constitutes the scaled contour vector
It is a sequence of consecutive contour points on the loop. Where
Of ... tk-4, tk-3, tk-2, tk- 1, tk, tk + 1, tk + 2, tk + 3,
tk + 4When the second smoothing is performed as is (..., t
k-3, tk-2, ..., tk + 3Are all non-angular points),
The obtained second smoothed contour point sequence is ... Uk-4, uk-3, u
k-2, uk-1, uk, uk + 1, uk + 2, uk + 3, uk + 4Express with…
is there. Also ... wj-4, wj-3, wj-2, wj-1, wj, wj + 1, w
j + 2, wj + 3, ... is 7 points tk-3, tk-2, tk-1, tk, tk + 1, t
k + 2, tk + 3At tk-3, tk-2, tk-1And tk-2, t
k-1, tkAnd tk-1, tk, tk + 1And tk, tk + 1, tk + 2All of
The state where the formula is satisfied by a set of three consecutive points
, The central tkIs deleted, and… tk-4, tk-3,
tk-2, tk-1, tk + 1, tk + 2, tk + 3, tk + 4Composed of, ...
Second smoothing for the continuous contour point sequence
The subsequent contour point sequence is represented. In this case uk-3, uk-2,
uk-1, uk, uk + 1, uk + 2, uk + 3Contour shape represented by
And wj-3, wj-2, wj-1, wj, wj + 1, wj + 2Represented by
It perfectly matches the contour shape.

【0058】以上、述べてきた例から、第一平滑化後の
輪郭点列中において、ある輪郭点z kを中心とした互い
に連続した7点の輪郭点列zk-3,zk-2,zk-1,zk,z
k+1,zk +2,zk+3において、これら7点間で定義される
6本のショートベクトルが全て等しい傾きを持つ場合に
は、輪郭点zkを削除して、6点よりなる輪郭点列
k-3,zk-2,zk-1,zk+1,zk+2,zk+3でもって以降の
処理を行っても、得られる輪郭形状には変化がないこと
が容易に理解できる。また、zk-2又は、zk+2が角点で
ある場合は、それぞれzk-2,zk-1,zk,zk+1,zk+2,z
k+3、または、zk-3,zk -2,zk-1,zk,zk+1,zk+2のz
kを中心とした互いに連続する6点の輪郭点列で6点間
で定義される5本のショートベクトルが全て等しい傾き
を持つ場合に、輪郭点zkを削除して、5点よりなる輪
郭点列をそれぞれ、zk-2,zk-1,zk+1,zk +2,zk+3
たはzk-3,zk-2,zk-1,zk+1,zk+2をもって以降の処
理を行っても、得られる輪郭形状には変化がないことが
容易に理解できる。zk+2及びzk-2が共に角点である場
合には、zk-2,zk-1,zk,zk+1,zk+2のzkを中心とし
た互いに連続する5点の輪郭点列で、5点間で定義され
る4本のショートベクトルが全て等しい傾きを持つ場合
に、輪郭点zkを削除して、4点よりなる輪郭点列
k-2,zk-1,zk+1,zk+2をもって以降の処理を行って
も得られる輪郭形状には変化がないことも容易に理解で
きる。
From the example described above, after the first smoothing,
A contour point z in the contour point sequence kCentered on each other
7 consecutive contour points zk-3, zk-2, zk-1, zk, z
k + 1, zk +2, zk + 3Defined between these 7 points in
If all 6 short vectors have the same slope
Is the contour point zk, And the contour point sequence consisting of 6 points
zk-3, zk-2, zk-1, zk + 1, zk + 2, zk + 3After that
Even if processing is performed, the obtained contour shape does not change.
Can be easily understood. Also, zk-2Or zk + 2Is a corner point
Z, if anyk-2, zk-1, zk, zk + 1, zk + 2, z
k + 3, Or zk-3, zk -2, zk-1, zk, zk + 1, zk + 2Z
kBetween 6 points in a sequence of 6 consecutive contour points centered at
The slopes of all five short vectors defined by
Contour point zkBy deleting the circle consisting of 5 points
Each boundary point sequence is zk-2, zk-1, zk + 1, zk +2, zk + 3Well
Or zk-3, zk-2, zk-1, zk + 1, zk + 2After that
Even if you do the reasoning, the obtained contour shape may not change
Easy to understand. zk + 2And zk-2Are both corner points
In the case of zk-2, zk-1, zk, zk + 1, zk + 2ZkCentered on
A series of 5 contour points that are continuous with each other
All four short vectors have the same slope
And the contour point zkBy deleting the contour point sequence consisting of 4 points
zk-2, zk-1, zk + 1, zk + 2Perform the following processing with
It is also easy to understand that there is no change in the obtained contour shape.
Wear.

【0059】次に、図13における同向きの連続ベクト
ル検知・削除手段24について説明する。この同向きの
連続ベクトル検知・削除手段24は図7のハードウェア
を用いて実現が可能であり、図21〜図26のフローチ
ャートを用いてその動作を説明する。図13のアウトラ
インベクトル検知・削減・平滑・変倍手段の動作は、図
21のフローチャートで示されている。
Next, the continuous vector detecting / deleting means 24 in the same direction in FIG. 13 will be described. The continuous vector detecting / deleting means 24 in the same direction can be realized by using the hardware shown in FIG. 7, and its operation will be described with reference to the flowcharts shown in FIGS. The operation of the outline vector detecting / reducing / smoothing / magnifying unit of FIG. 13 is shown in the flowchart of FIG.

【0060】さて、図21のステップS11において、
CPU71は、ディスクI/O73を経由して、ディス
ク装置72に与えられている粗輪郭データを読み出し
て、RAM76中のワーキングメモリ領域に読み込む。
次にステップS12において、第一平滑化及び変倍処理
を行い、第一平滑化処理後のデータをRAM76に保存
する。その処理内容は、従来技術で説明した図8のステ
ップS2と同様であるので詳細は省略する。かくして、
ステップS12の処理を終えて、CPU72は、ステッ
プS13の同向きの連続ベクトル検知・削除の処理を行
う。
Now, in step S11 of FIG. 21,
The CPU 71 reads the rough contour data given to the disk device 72 via the disk I / O 73 and reads it into the working memory area in the RAM 76.
Next, in step S12, the first smoothing and scaling processing is performed, and the data after the first smoothing processing is stored in the RAM 76. The details of the processing are omitted because they are the same as those in step S2 of FIG. 8 described in the related art. Thus,
After finishing the process of step S12, the CPU 72 performs the same-direction continuous vector detection / deletion process of step S13.

【0061】ステップS13の同向きの連続ベクトル検
知・削除の処理の内容は図22のフローチャートで示さ
れる。連続ベクトル検知・削除の処理は、第一平滑化後
のデータを入力することで行う。即ち、閉ループ数、各
閉ループ毎の輪郭点数、各閉ループ毎の第一平滑化済の
輪郭点の座標値データ列、及び、各閉ループ毎の第一平
滑化済の輪郭点の付加情報データ列を入力して、連続ベ
クトル検知・削除の処理後の輪郭点データを出力する。
連続ベクトル検知・削除の処理後の輪郭データは、図1
1に示す様な、閉ループ数、各閉ループ毎の輪郭点数テ
ーブル、各閉ループ毎の連続ベクトル検知・削除処理後
の輪郭点の座標値データ列より構成されている。
The contents of the process for detecting and deleting continuous vectors in the same direction in step S13 are shown in the flowchart of FIG. The continuous vector detection / deletion process is performed by inputting the data after the first smoothing. That is, the number of closed loops, the number of contour points for each closed loop, the coordinate value data string of the first smoothed contour points for each closed loop, and the additional information data string of the first smoothed contour points for each closed loop. Input and output contour point data after continuous vector detection / deletion processing.
The contour data after the continuous vector detection / deletion processing is shown in FIG.
As shown in FIG. 1, the number of closed loops, the contour point number table for each closed loop, and the coordinate value data string of the contour points after the continuous vector detection / deletion processing for each closed loop are configured.

【0062】連続ベクトル検知・削除処理は、第一平滑
化同様、輪郭ループ単位に処理され、かつ、各輪郭ルー
プ内においては、各輪郭点毎に処理が進められる。
Similar to the first smoothing, the continuous vector detection / deletion process is performed for each contour loop, and the process is advanced for each contour point in each contour loop.

【0063】以下、図22のフローチャートを用いて説
明を行うが、図22のフローチャートは、一閉ループ分
の処理内容を説明してあるので、入力とする第一平滑化
後のデータに含まれる閉ループの数に相当する回数だ
け、図22のフローを繰り返して処理が進められる。
22 will be described below. Since the flowchart of FIG. 22 describes the processing contents of one closed loop, the closed loop included in the input data after the first smoothing is input. 22 is repeated as many times as the number of times.

【0064】ステップS101では、CPU71は、R
AM76より、処理対象とする輪郭ループの輪郭点数を
図27で示すRAM76中のワーキング領域2080に
読み込む。ステップS102では、輪郭ループ内の輪郭
点数が4より大きいか否かを判定し、大きい場合にはス
テップS104へ進み、そうでない場合にはステップS
103へ進む。ここで輪郭点が4であるということは、
矩形であることを意味し、そこには同じ向きのベクトル
は存在しないことを意味する。従って、ステップS10
3では、現在処理中の輪郭ベクトルループ上には、削除
すべき輪郭点が存在しないものとして、注目ループに関
しては、そのまま全ての輪郭点データを出力して、その
輪郭ループに対する処理を終える。
In step S101, the CPU 71 executes R
From the AM 76, the number of contour points of the contour loop to be processed is read into the working area 2080 in the RAM 76 shown in FIG. In step S102, it is determined whether or not the number of contour points in the contour loop is larger than 4, and if it is larger, the process proceeds to step S104, and if not, step S104.
Go to 103. The fact that the contour point is 4 here means that
It means that it is a rectangle, and that there is no vector with the same direction. Therefore, step S10
In 3, it is assumed that there is no contour point to be deleted on the contour vector loop currently being processed, and for the target loop, all the contour point data are output as they are, and the processing for that contour loop ends.

【0065】一方、処理がステップS104に進むと、
当該輪郭ループ上の一連の輪郭点の処理を進めるにあた
って必要となる初期化を行う。この処理の内容は、図2
3に詳述される。
On the other hand, when the process proceeds to step S104,
Initialization necessary for proceeding the processing of a series of contour points on the contour loop is performed. The contents of this process are shown in FIG.
3 in detail.

【0066】図23で示される初期化ルーチンでは、等
しい傾きをもつ輪郭ベクトルの連続している状況を示す
等傾番号を保持する図27の領域2060(RAM76
中に確保されており、以下、等傾番号バッファという)
に初期値として5をセットする(ステップS201)。
In the initialization routine shown in FIG. 23, the area 2060 (RAM 76 in FIG. 27) for holding the equal inclination number indicating the situation where the contour vectors having the same inclination are continuous.
It is secured inside, and is referred to as an isometric number buffer hereinafter)
Is set to 5 as an initial value (step S201).

【0067】尚、この等傾番号の意味は後述の説明から
明らかになるが、簡単に説明するのであれば、同じ傾き
を持つベクトルが何個続いているかを計数するためのも
のである。
The meaning of the equi-tilt number will be apparent from the description below, but if it is simply explained, it is for counting the number of vectors having the same gradient.

【0068】ステップS202では、当該ループ内の開
始点の3点前の輪郭点データを前点データとしてフェッ
チする。即ち、注目ループを画像内の第iループとし、
ループ内にある輪郭総点数をLiとすると、第iループ
内第Li-2頂点のデータ(図11を参照のこと)である
iLi-2,yiLi-2及びその角点情報(角点であるか否か
を示す情報)を図27の領域2000の始点データ記憶
領域にコピーする。ステップS203では、同じく、第
i-1頂点のデータxiLi-1,yiLi-1及びその角点情報を
現点データ記憶領域2000にコピーする。これで、最
初の輪郭点に対する処理を行うのに参照する、直前の2
つの輪郭データの読み出しの前準備が行われることにな
る。
In step S202, the contour point data three points before the start point in the loop is fetched as the previous point data. That is, the loop of interest is the i-th loop in the image,
When the total number of contour points in the loop is Li, the data of the i- th loop L i-2 vertex (see FIG. 11) is x i Li -2 , y i L i-2 and its corner points. Information (information indicating whether it is a corner point or not) is copied to the start point data storage area of the area 2000 in FIG. In step S203, similarly, the data x iLi-1 and y iLi-1 of the L i -1 vertex and its corner point information are copied to the current point data storage area 2000. With this, the last 2 points to be referred to when performing processing for the first contour point
Preparation for reading out one piece of contour data will be performed.

【0069】ステップS204では、前点データ記憶領
域2010にある頂点の座標値(便宜的にxk-1,yk-1
と表記することにする。従って、ここでは、xk-1=xi
Li-1であり、yk-1=yiLi-1となっている)と、始点デ
ータ記憶領域2000にある頂点の座標値(便宜的に、
k,ykと表記することにする。ここでは、xk=xiLi
であり、yk=yiLiとなっている)とから、 △xk=xk−xk-1 △yk=yk−yk-1 … で示される式を計算して現辺傾きデータ△xk,△yk
生成し、図27における現辺データ記憶領域2040に
保持する。
In step S204, the coordinate values of the vertices in the previous point data storage area 2010 (for convenience, x k-1 , y k-1
Will be written as. Therefore, here, x k-1 = x i
L i-1 , and y k-1 = y i L i-1 ) and the coordinate values of the vertices in the starting point data storage area 2000 (for convenience,
It will be expressed as x k , y k . Where x k = x iLi
In and, y k = and has a Yili) from a, △ x k = x k -x k-1 △ y k = y k -y k-1 ... current side slope data by calculating the equation represented by △ x k, it generates a △ y k, to retain the current edge data storage area 2040 in FIG. 27.

【0070】ステップS205では、現辺データをもっ
て前辺データとすることにより前辺データを更新する。
その処理内容は、図24のフローチャートで詳述され
る。
In step S205, the front side data is updated by setting the current side data as the front side data.
The processing content will be described in detail in the flowchart of FIG.

【0071】図24において、ステップS301では、
図27のRAM76中に確保されている現点2020に
対して、輪郭ループ上での2点前の輪郭点の座標値及び
角点データの保持されている領域の内容を、同じく、図
27の領域2030に示される3点前の輪郭点のデータ
を保持する領域にコピーする。ステップS302では、
前点データの記憶領域2010の内容を、2点前の輪郭
点のデータ領域2020にコピーする。ステップS30
3では、現点データ記憶領域2000の内容を前点デー
タ記憶領域2010にコピーする。ステップS304で
は、図27の2070に示されるRAM76上の一時記
憶領域に確保される直前等傾番号バッファに、等傾番号
バッファ2060の内容をコピーする。ステップS30
5では、現辺データ記憶領域2040に保持されている
内容を、図27の2050に示されるRAM76上の前
辺データ記憶領域にコピーして、以上、前辺データ更新
の一連の処理を終えて、親ルーチンへリターンする。つ
まり、輪郭データを1つづつシフトさせるわけである。
In FIG. 24, in step S301,
Similarly, the contents of the area where the coordinate values of the contour point two points before and the corner point data on the contour loop with respect to the current point 2020 secured in the RAM 76 of FIG. The data is copied to the area holding the data of the contour points three points before in the area 2030. In step S302,
The content of the storage area 2010 of the previous point data is copied to the data area 2020 of the contour point two points before. Step S30
In 3, the contents of the current point data storage area 2000 are copied to the previous point data storage area 2010. In step S304, the contents of the isometric tilt number buffer 2060 are copied to the immediately preceding isometric tilt number buffer secured in the temporary storage area on the RAM 76 shown at 2070 in FIG. Step S30
In 5, the contents held in the current side data storage area 2040 are copied to the front side data storage area on the RAM 76 shown at 2050 in FIG. 27, and the series of processing for updating the front side data is completed. , Return to the parent routine. That is, the contour data is shifted one by one.

【0072】かくして、ステップS205で前辺データ
を更新すると、ステップS206へ進む。ステップS2
06では、ステップS202及びステップS203と同
様に、第Li頂点のデータxiLi,yiLi及びその角点情報
を読み込み、図27の2000で示される現点データ領
域にコピーする。ステップS207で等傾番号を更新す
る。この処理の内容は、図25で示されるフローチャー
トで詳述されている。
Thus, when the front side data is updated in step S205, the process proceeds to step S206. Step S2
At 06, as in steps S202 and S203, the data x i L i , y i L i of the L i vertex and its corner point information are read and copied to the current point data area indicated by 2000 in FIG. The isotropic number is updated in step S207. The details of this processing are described in detail in the flowchart shown in FIG.

【0073】図25において、ステップS401では、
ステップS204と全く同様に、現点データと前点デー
タとから、式に従つて現辺傾きデータを算出し、図2
7に示されるRAM76上の現辺データ記憶領域204
0に格納する。ステップS402では、RAM76の領
域2040と2050に、それぞれ保持される現辺デー
タと前辺データが等しいか否かを前述の式にならっ
て、 △xk-1×m=△xk △yk-1×m=△yk (ただし、mは実数) … が成立するか否かで判定する。そして、式が成立する
場合には、現辺の傾きと前辺の傾きが等しいと判断して
ステップS404へ進み、成立しない場合には、傾きは
等しくないと判断してステップS403へ進む。
In FIG. 25, in step S401,
Just as in step S204, the current side inclination data is calculated from the current point data and the previous point data according to the formula, and
Current side data storage area 204 on RAM 76 shown in FIG.
Store in 0. In step S402, the region 2040 and 2050 of the RAM 76, whether the current edge data and the previous side data held respectively equal following the equation described above, △ x k-1 × m = △ x k △ y k -1 × m = Δy k (where m is a real number) ... Is determined. Then, if the expression is satisfied, it is determined that the inclination of the current side is equal to the inclination of the front side, and the process proceeds to step S404. If not, the inclination is determined not to be equal and the process proceeds to step S403.

【0074】ステップS403では、等傾番号を5に戻
してステップS405へ進む。ステップS404では、
等傾番号をその時点での値から1減じた値に書き換え
る。ステップS405では、図27の現点の角点情報を
記憶している領域2001を参照することにより、現点
が角点か否かを判定し、角点の場合はステップS406
へ進み、非角点の場合は、そのまま親ルーチンへリター
ンする。ステップS406では、等傾番号をその時点で
の値から1減じた値に書き換えて、親ルーチンへリター
ンする。
In step S403, the isotropic number is returned to 5, and the flow advances to step S405. In step S404,
The isotropic number is rewritten to the value obtained by subtracting 1 from the value at that time. In step S405, it is determined whether or not the current point is a corner point by referring to the area 2001 storing the corner point information of the current point in FIG. 27, and in the case of a corner point, step S406.
If it is a non-corner point, the process directly returns to the parent routine. In step S406, the isotropic number is rewritten to a value obtained by subtracting 1 from the value at that time, and the process returns to the parent routine.

【0075】以上説明した図25のルーチンでは、前辺
と現辺の傾きが等しいなら等傾番号を1減じ、前辺と現
辺の傾きが異なっているなら等傾番号を5にリセットす
るものである。かつまた、その上で、現点が、角点の場
合には、さらに1減じている。
In the routine of FIG. 25 described above, if the front side and the current side have the same inclination, the isometric tilt number is decremented by 1, and if the front side and the current side have different inclinations, the isometric tilt number is reset to 5. Is. Moreover, when the current point is a corner point, the number of points is further reduced by one.

【0076】かくして、図23におけるステップS20
7で等傾番号を更新するとステップS208へ進む。ス
テップS208では、ステップS205同様、図24で
示されるルーチンをコールすることにより、その時点の
現辺データをもって前辺データとすることで前辺データ
を更新する。次にステップS209へ進み、図27にお
ける未処理輪郭点数カウンタ2080の値を、輪郭ルー
プ内の輪郭点数に3加えた値をもって初期化する。これ
は、本実施例では、注目輪郭点の前後にそれぞれ3点前
の近傍輪郭点を参照していることに起因している。次
に、ステップS210では、図27における出力済輪郭
点数カウンタ2090の値を0に初期化して、以上説明
してきた一連の初期化の処理を終えて、親ルーチンへリ
ターンする。
Thus, step S20 in FIG.
If the isotropic number is updated in step 7, the process proceeds to step S208. In step S208, as in step S205, the routine shown in FIG. 24 is called to update the front side data by setting the current side data at that time as the front side data. Next, proceeding to step S209, the value of the unprocessed contour point counter 2080 in FIG. 27 is initialized with a value obtained by adding 3 to the number of contour points in the contour loop. This is because, in the present embodiment, three neighboring contour contour points before and after the contour point of interest are referred to. Next, in step S210, the value of the output contour point counter 2090 in FIG. 27 is initialized to 0, the series of initialization processing described above is completed, and the process returns to the parent routine.

【0077】かくして、図22におけるステップS10
4の処理を終える。
Thus, step S10 in FIG.
The process of 4 is completed.

【0078】続いて、処理はステップS105へ進む。
ステップS105では、輪郭ループ上の開始点(第1
点)をもって注目点として、図27における現点データ
領域2000に、座標値xi,yi及び、その角点情報を
コピーする。ステップS106では、先に説明した図2
5で述べた等傾番号更新ルーチンをコールして、前辺と
現辺の傾きが等しいか否かを判定し、等しいならば現点
が角点か否かに応じて、等傾番号をそれぞれ2または1
減じ、等しくないならば現点が角点か否かに応じて等傾
番号をそれぞれ4又は5に再設定する。ステップS10
7では、先に説明した図24で述べた前辺データ更新ル
ーチンをコールして、その時点の現辺データをもって前
辺データとすることで前辺データを更新する。次に、ス
テップS108へ進み、処理済の輪郭点の逐次出力を行
う。この処理の内容は、図26のフローチャートで詳述
される。
Then, the process proceeds to step S105.
In step S105, the start point on the contour loop (first
27), the coordinate values xi, yi and their corner point information are copied to the current point data area 2000 in FIG. In step S106, FIG.
The isosceles number updating routine described in 5 is called to determine whether the slopes of the front side and the current side are equal, and if they are equal, the isosceles numbers are respectively determined according to whether the current point is a corner point or not. 2 or 1
If they are not equal, the isotropic number is reset to 4 or 5 depending on whether the current point is a corner point or not. Step S10
In step 7, the front side data update routine described with reference to FIG. 24 is called to update the front side data by setting the current side data at that time as the front side data. Next, in step S108, the processed contour points are sequentially output. The details of this processing will be described in detail in the flowchart of FIG.

【0079】図26において、ステップS501では、
図27における等傾番号バッファ2060に保持される
等傾番号が正か否かを判定し、正の場合はステップS5
02へ進み、正でない場合には、ステップS506へ進
む。ステップS502では、図27における前点の角点
情報2011を参照し、前点が角点か否かを判定する。
前点が角点の場合は、ステップS503へ進み、非角点
の場合にはステップS504へ進む。ステップS503
では、図27の直前等傾番号バッファ2070に保持さ
れる直前等傾番号が正か否かを判定し、正の場合はステ
ップS504へ進み、正でない場合にはステップS50
6へ進む。ステップS504では、図27における3点
前の輪郭点データ2030を、処理済輪郭点データとし
て出力する。ステップS505では、図27における出
力済輪郭点数カウンタ2090に保持されている出力済
輪郭点数値を1増やす。ステップS506では、図27
の2080で示される未処理輪郭点数カウンタに保持さ
れている未処理輪郭点数を1減らして、親ルーチンへリ
ターンする。
In FIG. 26, in step S501,
It is determined whether the isosceles number stored in the isosceles number buffer 2060 in FIG. 27 is positive, and if it is positive, step S5.
02, and if not positive, the process proceeds to step S506. In step S502, it is determined whether or not the front point is the corner point by referring to the corner point information 2011 of the front point in FIG.
If the previous point is a corner point, the process proceeds to step S503, and if it is a non-corner point, the process proceeds to step S504. Step S503
Then, it is determined whether or not the immediately preceding isometric number stored in the immediately preceding isometric number buffer 2070 in FIG. 27 is positive, and if positive, the process proceeds to step S504, and if not positive, the step S50.
Go to 6. In step S504, the contour point data 2030 three points before in FIG. 27 is output as processed contour point data. In step S505, the output contour point numerical value held in the output contour point counter 2090 in FIG. 27 is incremented by 1. In step S506, FIG.
2080, the unprocessed contour point number held in the unprocessed contour point counter is decremented by 1, and the process returns to the parent routine.

【0080】以上説明した図26のルーチンでは、その
時点の等傾番号値が0又は負の場合には、輪郭点を削除
しても、削除しない場合に比して後の平滑化後に得られ
る形状が等しくなることを意味するものである。従っ
て、注目点(現点)の3点前の輪郭点データの出力をせ
ず、即ち、削除をしている。
In the routine of FIG. 26 described above, when the isotropic number value at that time is 0 or negative, even if the contour point is deleted, the contour point is obtained after smoothing as compared with the case where it is not deleted. This means that the shapes are the same. Therefore, the contour point data three points before the target point (current point) is not output, that is, the contour point data is deleted.

【0081】一方、その時点の等傾番号値が正の場合に
は、そうは判断せずに、注目点(現点)の3点前の輪郭
点データを同向きの連続ベクトルの検知・削除処理後の
輪郭点の一点として出力している。ただし、この場合で
も、注目点の前点が角点であって、かつまた、この前点
が注目点であった(即ち、一点前の)時点で等傾番号が
0または負であった場合には、その角点より2点前、即
ち、現点より3点前の点は、やはり削除可の輪郭点であ
ったと判定して、出力しないように動作する。
On the other hand, when the isotropic number value at that time is positive, the determination is not made, and the contour point data three points before the point of interest (current point) is detected / deleted in the same direction. It is output as one of the processed contour points. However, even in this case, if the previous point of the attention point is the corner point and the isotonic number is 0 or negative at the time when the previous point is the attention point (that is, one point before). In addition, it is determined that the point 2 points before the corner point, that is, the point 3 points before the current point, is still the erasable contour point, and is not output.

【0082】かくして、ステップS108の処理を終え
ると、ステップS109へ進む。ステップS109で
は、図27における未処理の輪郭点数2080の値が3
よりも大きいか否かを判定し、大きければ(即ち、注目
点がまだ輪郭ループ上の最終点でなければ)ステップS
110へ進み、そうでなければ、ステップS111へ進
む。ステップS110では、注目点を輪郭ループ上の次
の点に移し、この点をもって現点とし、図27における
現点データ領域2000に、その座標値及び角点情報を
コピーして、ステップS106に戻る。ステップS11
1では、未処理の輪郭点数の値が3か否かを判定し、3
の場合(即ち、注目点が輪郭ループ上のちょうど最終点
である場合)は、ステップS105へ戻り、3でない場
合はステップS112へ進む。ステップS112では、
未処理輪郭点数の値が正か否かを判定し、正の場合は注
目点より3点前の点はまだ輪郭ループ上の最終点とはな
っていないと判断し、ステップS110へ進む。正でな
い場合(即ち、0の場合)は、ステップS113へ進
む。ステップS113では、輪郭ループ上の全ての輪郭
点の吟味が終えた状態にあり、処理後の輪郭ループ上の
輪郭点として出力された輪郭点数として、図27におけ
る領域2090の値を出力して、一つの輪郭ループに対
する一連の処理を終了する。
Thus, when the process of step S108 is completed, the process proceeds to step S109. In step S109, the value of the unprocessed contour point number 2080 in FIG.
If it is larger (that is, if the point of interest is not the final point on the contour loop), step S
If not, the process proceeds to step S111. In step S110, the point of interest is moved to the next point on the contour loop, this point is set as the current point, the coordinate value and the corner point information are copied to the current point data area 2000 in FIG. 27, and the process returns to step S106. . Step S11
In 1, it is determined whether or not the value of the number of unprocessed contour points is 3 and 3
If (that is, the target point is just the final point on the contour loop), the process returns to step S105, and if not 3, the process proceeds to step S112. In step S112,
It is determined whether or not the value of the unprocessed contour points is positive. If the value is positive, it is determined that the point three points before the target point is not the final point on the contour loop, and the process proceeds to step S110. If not positive (that is, 0), the process proceeds to step S113. In step S113, all the contour points on the contour loop have been examined, and the value of the area 2090 in FIG. 27 is output as the number of contour points output as the contour points on the processed contour loop. A series of processing for one contour loop is completed.

【0083】かくして、ステップS13の同向きの連続
ベクトル検知・削除の処理を終える。その処理結果は、
RAM76上に保持される。この処理では、ループの数
及び輪郭点数は共に増えることはないので、各ループの
開始点から3点までのデータをテンポラリー領域に一時
退避させるように構成すれば、第一平滑化のデータ領域
そのものを、本処理後のデータ領域とすることも可能で
ある。
In this way, the processing for detecting and deleting continuous vectors in the same direction in step S13 is completed. The processing result is
It is held on the RAM 76. In this process, the number of loops and the number of contour points do not increase, so if the data from the start point of each loop to the three points is temporarily saved in the temporary area, the data area of the first smoothing itself Can be used as the data area after this processing.

【0084】次にCPU72は、ステップS14の第二
平滑化及びステップS15の平滑化済データ出力を行っ
ていくが、それら処理の内容は、従来技術で説明した通
りであるので、ここでの詳述は割愛する。
Next, the CPU 72 carries out the second smoothing in step S14 and the smoothed data output in step S15. The contents of these processes are as described in the prior art, so the details here will be described. I omit the description.

【0085】かくして、図1にアウトラインベクトル検
知・削減・平滑・変倍手段13は実現される。
Thus, the outline vector detecting / reducing / smoothing / magnifying unit 13 shown in FIG. 1 is realized.

【0086】尚、ステップS201やステップS403
で、等傾番号を5にリセットするのは、前辺と現辺の傾
きが変わってから、以降5辺にわたって同じ傾きをもつ
辺が続いた時に、その6辺を構成する7点のうちの中心
点を削減できることに起因している。また、角点があっ
た場合には、等傾番号を余分に1減ずるのは、同じ傾き
をもつ辺の連続する回数が減ってもよいという前述の考
察に起因している。
Incidentally, step S201 and step S403
Then, the isosceles number is reset to 5 when, after the slopes of the front side and the current side are changed and then the sides having the same slopes continue over the five sides, of the seven points forming the six sides. This is because the central point can be reduced. Further, when there is an angular point, the isocline number is additionally reduced by 1 due to the above-mentioned consideration that the number of consecutive sides having the same inclination may be reduced.

【0087】<第2の実施例>前記実施例において、除
去される輪郭点は、以降の第二平滑化を施した後にも、
除去しなかった場合に第二平滑化して得られる輪郭形状
と同様になる条件を満たした上で除去されている。
<Second Embodiment> In the above-mentioned embodiment, the contour points to be removed are
If not removed, it is removed after satisfying the same condition as the contour shape obtained by the second smoothing.

【0088】しかし、拡大倍率がさほど大きくない場合
には、多少の輪郭形状の差異を認めても実用上さしつか
えない場合もあり得る。この場合には、前記実施例のス
テップS201及びステップS403において、等傾番
号のリセットする値を5ではなく、4や3等の小さな値
にすることで、微小な輪郭形状の変化を認めた上での、
より多くの輪郭点の削除が可能となる。等傾番号を4に
設定すれば、前辺と現辺の傾きが変わってから、以降4
辺にわたって同じ傾きをもつ辺が4辺以上続くときに、
その5辺を構成するうちの6点のうちの開始点側からの
3点目を削減する様にできる。また、等傾番号を3に設
定する場合には、同時にステップS504で出力する点
を2点前の輪郭点データとすることによって、前辺と現
辺の傾きが変わってから、以降3辺にわたって同じ傾き
をもつ辺が3辺以上続くときに、その4辺を構成する5
点のうちの中心の点を削減する様にできる。
However, when the enlargement magnification is not so large, there may be a case where it is practically acceptable even if a slight difference in contour shape is recognized. In this case, in step S201 and step S403 of the above-described embodiment, a small change in contour shape is recognized by setting the value for resetting the isotropic number to a small value such as 4 or 3 instead of 5. In
More contour points can be deleted. If the isotropic number is set to 4, the slopes of the front side and the current side will change and then 4
When four or more sides with the same slope continue over the sides,
Of the six points forming the five sides, the third point from the start point side can be reduced. Further, in the case of setting the equi-tilt number to 3, at the same time, the points to be output in step S504 are set to the contour point data two points before, so that the slopes of the front side and the current side are changed, and then the three sides are processed. When three or more sides having the same slope continue, the four sides are composed 5
The central point of the points can be reduced.

【0089】同様に等傾番号を2や1に設定し、出力す
る点を1点前の輪郭データとして、より一層、削減点を
増やすことも可能である。これらの場合に参照する必要
がなくなる3点前の輪郭点データ等に関しては、これに
関連するステップを省略してよいのはもちろんである。
Similarly, it is possible to further increase the number of reduction points by setting the isotropic number to 2 or 1 and setting the output point as the contour data of one point before. It is needless to say that the steps related to the contour point data and the like three points before which need not be referred to in these cases may be omitted.

【0090】<第3の実施例>前述の実施例の他に、2
つの異なる角点間にある輪郭点に関しては、これら角点
間に存在する辺ベクトルの傾きが全て等しければ、何辺
連続して等しい傾きの辺ベクトルがあるかにかかわら
ず、この角点間にある輪郭点は、後の第二平滑化を行っ
ても輪郭形状の変化を生ずることなく削除することが可
能である。
<Third Embodiment> In addition to the above-mentioned embodiment, 2
For contour points between two different corner points, if the slopes of the side vectors existing between these corner points are all the same, no matter how many side vectors have the same slope continuously, the corner points between these corner points It is possible to delete a certain contour point without changing the contour shape even if the second smoothing is performed later.

【0091】各輪郭ループ毎に、角点間の辺ベクトルが
全て等しい傾きをもつか否かを判定し、該当する場合に
は、その角点間に存在する輪郭点を全て削除する処理を
加えてもよい。この場合には、輪郭形状の変化を生ずる
ことなく、前記実施例以上の輪郭点の削減が可能であ
る。
For each contour loop, it is determined whether or not the side vectors between the corner points all have the same inclination, and if applicable, a process of deleting all the contour points existing between the corner points is added. May be. In this case, it is possible to reduce the number of contour points more than in the above-described embodiment without changing the contour shape.

【0092】<第4の実施例>以上では、全て第一平滑
化と第二平滑化の間で、余分な輪郭点の削除を行ってい
るが、これに限るものではない。
<Fourth Embodiment> In the above, redundant contour points are deleted between the first smoothing and the second smoothing, but the present invention is not limited to this.

【0093】即ち、第二平滑化後において、同向きの連
続ベクトルの検知・削除の処理を行ってもよい。
That is, after the second smoothing, the process of detecting / deleting continuous vectors in the same direction may be performed.

【0094】この場合は、角点か否かや、何辺同じ傾き
の辺が続くかには関係がなく、同じ傾きの辺が2辺続く
場合は、その中間の点を削除することが可能である。ア
ウトラインベクトル検知・削減・平滑・変倍手段は、簡
単な処理で実現できる反面、第二平滑化の処理の対象と
なる輪郭点の数は減らないため、第二平滑化時の演算量
には変化がない。
In this case, it does not matter whether it is a corner point or how many sides have the same slope. If two sides have the same slope, the middle point can be deleted. Is. The outline vector detection / reduction / smoothing / scaling means can be realized by simple processing, but the number of contour points to be subjected to the second smoothing processing does not decrease. no change.

【0095】<第5の実施例>アウトラインベクトル検
知・削減・平滑・変倍手段は、第一平滑化の前段、ある
いは、第一平滑化の中で実現することも可能である。
<Fifth Embodiment> The outline vector detecting / reducing / smoothing / scaling means can be realized before the first smoothing or in the first smoothing.

【0096】例えば、本願出願人が既に提案している第
一平滑化は、先に説明したように、各粗輪郭データの各
輪郭辺(水平ベクトル、もしくは、垂直ベクトル)ベク
トルに順次着目してゆき、各着目輪郭辺ベクトルに対
し、それぞれその前後のベクトル高々3本まで(即ち、
着目辺の前に3本、着目辺自体、着目辺の後に3本の合
計7本までの辺ベクトル)の互いに連続する辺ベクトル
の長さと向きの組み合わせによってパターンを分けて、
それぞれの場合に対して、着目辺に対する第一平滑化の
結果となる第一平滑化後の輪郭点を定義するものであっ
た。
For example, in the first smoothing method already proposed by the applicant of the present application, as described above, the contour edges (horizontal vector or vertical vector) vector of each rough contour data are sequentially focused. For each target contour edge vector, up to three vectors before and after that (ie,
The pattern is divided by a combination of lengths and directions of mutually continuous side vectors of three in front of the side of interest, the side of interest itself, and a total of seven side vectors of three after the side of interest).
For each case, the contour points after the first smoothing, which are the results of the first smoothing on the target side, are defined.

【0097】7本の互いに連続する輪郭辺ベクトルの長
さと向きの組み合わせの中で、図28,図29及び図3
0で示す如くに、第一平滑化後の輪郭点が、前記実施例
で述べた7点の連続する輪郭点で、これらで形成される
6本の辺ベクトルが全て同じ傾きとなることが明らかな
ものがある。即ち、図28では、注目辺ベクトルの長さ
が1又は2で、前後の辺それぞれ3辺づつも全て注目辺
ベクトルと等しい長さで、かつ注目辺ベクトルと、その
2辺前と2辺後の辺ベクトルの向きが等しく、前後の辺
と3辺前、3辺後のベクトルの向きもすべて等しい場合
である。図29は、注目辺ベクトルの長さが1で、2辺
前及び2辺後の辺ベクトルの長さも向きも注目辺と等し
く、前後辺及び3辺前、3辺後の辺ベクトルが互いに、
長さも向きも等しい場合である。図30では、注目辺ベ
クトルの長さと向きが、2辺前及び2辺後の辺ベクトル
と等しく、前後辺、3辺前及び3辺後の全ての辺ベクト
ルの長さが1で向きが等しい場合である。これらのパタ
ーンを検知した場合には、第一平滑化の輪郭点を定義せ
ず、即ち、この注目辺ベクトルに対する第一平滑化後の
輪郭点は、この時点であらかじめ削除したものとして処
理を進めるように構成してもよい。
Among the combinations of the lengths and the directions of the seven continuous contour side vectors, FIG. 28, FIG. 29 and FIG.
As indicated by 0, it is clear that the contour points after the first smoothing are the seven consecutive contour points described in the above embodiment, and the six side vectors formed by these all have the same slope. There is something like this. That is, in FIG. 28, the length of the target side vector is 1 or 2, all three front and rear sides have the same length as the target side vector, and the target side vector, and two sides before and two sides behind. The direction of the side vector is the same, and the directions of the front and rear sides are the same as those of the front side, the front side, and the rear side. In FIG. 29, the length of the target side vector is 1, the lengths and directions of the side vectors before and after the two sides are the same as the side of interest, and the front and rear sides and the side vectors before and after the three sides,
This is the case when the length and direction are the same. In FIG. 30, the length and direction of the target side vector are the same as the side vectors before and after the two sides, and the lengths of all the side vectors before and after, the three sides before, and the sides after three are 1 and the directions are the same. This is the case. When these patterns are detected, the contour points for the first smoothing are not defined, that is, the contour points after the first smoothing for the target side vector are assumed to be deleted at this point and the process proceeds. It may be configured as follows.

【0098】この場合にも、削除する場合としない場合
とで、後の処理によって生ずる多少の輪郭形状の差異を
許すとするなら、例えば、図31や図32で示されるパ
ターンにおいて、注目辺ベクトルに対する第一平滑化後
の輪郭点のこの時点での除去(定義しないこと)が有効
となる。図31は、7本のベクトルの長さが全て1で、
注目辺と、2辺前及び2辺後の辺ベクトルの向きが等し
く、かつ、前辺と、3辺後の辺の向きが等しく、後辺と
3辺前の辺の向きが等しい場合である。図32は、7本
のベクトルの長さが全て1で、2辺前と2辺後の辺ベク
トルの向きが共に注目辺ベクトルと反対で、かつ、3辺
前、前辺、後辺、3辺後の辺ベクトルの向きが全て等し
い場合である。
Also in this case, if the slight difference in contour shape caused by the subsequent processing is allowed between the case of deleting and the case of not deleting, for example, in the patterns shown in FIG. 31 and FIG. At this point, the removal (not defined) of the contour points after the first smoothing for is effective. In FIG. 31, the lengths of the seven vectors are all 1, and
This is a case in which the direction of the target side is the same as the direction of the side vectors before and after the two sides, and the directions of the front side and the side after the three sides are the same, and the directions of the rear side and the side before the three sides are the same. . In FIG. 32, the lengths of the seven vectors are all 1, the directions of the side vectors before and after the two sides are both opposite to the side vector of interest, and the three sides before, the front side, the rear side, and the three sides are three. This is the case where the directions of the edge vectors after the edge are all the same.

【0099】尚、参照する近傍辺の数を前後に高々3辺
までとはせずに、もっと多くの辺を参照すれば、より多
くの削減パターンを得ることが可能である。
It should be noted that it is possible to obtain more reduction patterns by referring to more sides without limiting the number of neighboring sides to be referred to to three at the front and back.

【0100】<第6の実施例>以上の実施例の説明で
は、アウトラインベクトル検知・削減・平滑・変倍手段
の入力は、先段にある2値画像獲得手段及びアウトライ
ン抽出手段として説明したが、これに限るものではな
く、例えば、本装置外で抽出された同様の輪郭ベクトル
を、I/Oポート等で実現される公知のインタフエース
を経由して得たものでもよいし、また、あらかじめ、他
の手段によりディスク装置に蓄えられた輪郭ベクトルデ
ータを、ディスクI/O等を経由して、後日、別の指示
により入力するものであってもよい。
<Sixth Embodiment> In the above description of the embodiments, the input of the outline vector detection / reduction / smoothing / magnifying means is the binary image acquiring means and the outline extracting means in the preceding stage. However, the present invention is not limited to this, and for example, a similar contour vector extracted outside this apparatus may be obtained via a known interface realized by an I / O port or the like, or in advance. Alternatively, the contour vector data stored in the disk device by other means may be input at a later date by another instruction via the disk I / O or the like.

【0101】また、アウトラインベクトル検知・削減・
平滑・変倍手段の出力は、2値画像再生手段として説明
したが、これに限るものではなく、輪郭データの形式で
本装置外にインタフエースを経由して出力したり、ディ
スク装置に蓄えたりする出力回路等であっても何らさし
つかえない。
Also, outline vector detection / reduction /
The output of the smoothing / magnifying means is explained as the binary image reproducing means, but the output is not limited to this, and it is output in the form of contour data outside the device via the interface or is stored in the disk device. Even if it is an output circuit that operates, it does not matter.

【0102】<第7の実施例>本発明をファクシミリ装
置に応用した場合の構成図を図33〜図35に示す。
<Seventh Embodiment> FIGS. 33 to 35 are block diagrams showing the case where the present invention is applied to a facsimile apparatus.

【0103】図33は本実施例を受信側のファクシミリ
装置に応用した構成図であり、MH符号などで送信され
た符号を復号して入力2値画像データを作成し、アウト
ライン抽出及び平滑か処理を行う。この処理で再生成さ
れた2値画像は記録装置によって記録紙等に出力された
り、図示しない表示装置によって表示されたりする。
FIG. 33 is a block diagram in which the present embodiment is applied to a facsimile machine on the receiving side. The code transmitted by the MH code or the like is decoded to create input binary image data, and outline extraction and smoothing processing are performed. I do. The binary image regenerated by this processing is output to recording paper or the like by the recording device or displayed by a display device (not shown).

【0104】図34は本実施例を送信側のファクシミリ
装置に応用した構成図である。スキャナなどで入力され
た画像を2値化し、入力画像データを生成し、上述した
実施例のアウトライン抽出及び平滑化処理を行う。この
処理で再生成された2値画像は画像メモリに一旦蓄えら
れ、符号器によってMH符号などに符号化され送信され
る。
FIG. 34 is a configuration diagram in which this embodiment is applied to a facsimile machine on the transmission side. An image input by a scanner or the like is binarized to generate input image data, and the outline extraction and smoothing processing of the above-described embodiment is performed. The binary image regenerated by this processing is temporarily stored in the image memory, encoded by the encoder into the MH code, and transmitted.

【0105】図35は本実施例を送信・受信両方の入力
画像に対して応用した場合の構成図である。前記の2つ
の例を組み合わせたものであるが、送信・受信制御回路
によってセレクタが制御され、送受信によてアウトライ
ン処理(アウトライン抽出及び平滑化処理)の入出力を
決定する。ここで、特に2値画像獲得手段として、読取
部を選択し、2値画像出力手段として記録装置として構
成することも可能であるが、この場合は変倍機能を有す
るデジタル複写機(あるいはコピーモード)の実現が可
能である。
FIG. 35 is a block diagram when this embodiment is applied to both input images of transmission and reception. Although a combination of the above two examples, the selector is controlled by the transmission / reception control circuit, and the input / output of the outline processing (outline extraction and smoothing processing) is determined by transmission / reception. Here, in particular, it is possible to select a reading unit as the binary image acquisition means and configure it as a recording apparatus as the binary image output means. ) Is possible.

【0106】以上説明したように、前記従来例における
アウトライン抽出手段(工程)から2値画像再生手段
(工程)の間で、同じ傾きをもつ連続したショートベク
トルを検知し、これらショートベクトルを連結する手段
(工程)を設けて、該手段(工程)以降での処理対象と
なるベクトル数を削減することによって、処理全体に要
する処理時間を減少できる効果を有する。
As described above, continuous short vectors having the same slope are detected between the outline extracting means (step) and the binary image reproducing means (step) in the conventional example, and these short vectors are connected. By providing means (steps) and reducing the number of vectors to be processed after the means (steps), the processing time required for the entire processing can be reduced.

【0107】また、処理に要するメモリ容量の削減によ
り、装置コストを低減させる効果を有する。
Further, by reducing the memory capacity required for processing, there is an effect of reducing the device cost.

【0108】尚、本発明は、複数の機器から構成される
システムに適用しても1つの機器から成る装置に適用し
ても良い。また、本発明は、システム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0109】[0109]

【発明の効果】以上説明したように本発明によれば、得
られた2値画像の輪郭点をその後に続く処理に渡す場合
において、後の処理の負担を極力減らすことが可能にな
る。
As described above, according to the present invention, when the contour points of the obtained binary image are passed to the subsequent process, the load of the subsequent process can be reduced as much as possible.

【0110】[0110]

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

【図1】実施例における2値画像処理装置の基本構成図
である。
FIG. 1 is a basic configuration diagram of a binary image processing apparatus according to an embodiment.

【図2】ラスタ操作型による2値画像の読み取りを説明
するための図である。
FIG. 2 is a diagram for explaining reading of a binary image by a raster operation type.

【図3】輪郭ベクトルの抽出の原理を示す図である。FIG. 3 is a diagram showing a principle of extracting a contour vector.

【図4】ラスター走査型の2値画像からアウトラインを
抽出する様態を説明する図である。
FIG. 4 is a diagram illustrating a manner of extracting an outline from a raster scanning binary image.

【図5】アウトライン抽出手段より出力されるアウトラ
インデータ形態図である。
FIG. 5 is a form diagram of outline data output from outline extracting means.

【図6】アウトライン平滑・変倍手段の機能ブロック図
である。
FIG. 6 is a functional block diagram of an outline smoothing / magnifying unit.

【図7】アウトライン平滑・変倍手段及びアウトライン
ベクトル検知・削減・平滑・変倍手段のブロック構成図
である。
FIG. 7 is a block diagram of outline smoothing / scaling means and outline vector detection / reduction / smoothing / scaling means.

【図8】アウトライン平滑・変倍処理の概略を示すフロ
ーチャートである。
FIG. 8 is a flowchart showing an outline of outline smoothing / magnifying processing.

【図9】第一平滑化の処理動作を説明する図である。FIG. 9 is a diagram illustrating a processing operation of first smoothing.

【図10】従来の2値画像処理装置の構成を示す図であ
る。
FIG. 10 is a diagram showing a configuration of a conventional binary image processing device.

【図11】第一平滑化以降の輪郭データの形態図であ
る。
FIG. 11 is a morphological view of contour data after the first smoothing.

【図12】第二平滑化処理の内容を説明するための図で
ある。
FIG. 12 is a diagram for explaining the content of second smoothing processing.

【図13】実施例におけるアウトラインベクトル検知・
削減・平滑・変倍手段の機能ブロック図である。
FIG. 13: Outline vector detection in the embodiment
It is a functional block diagram of a reduction / smoothing / scaling means.

【図14】実施例における同向きの連続ベクトル検知・
削除手段の動作原理を説明する図である。
FIG. 14: Detection of continuous vectors in the same direction in the embodiment
It is a figure explaining the operation principle of a deletion means.

【図15】実施例における同向きの連続ベクトル検知・
削除手段の動作原理を説明する図である。
FIG. 15: Detection of continuous vectors in the same direction in the embodiment
It is a figure explaining the operation principle of a deletion means.

【図16】実施例における同向きの連続ベクトル検知・
削除手段の動作原理を説明する図である。
FIG. 16: Detection of continuous vectors in the same direction in the embodiment
It is a figure explaining the operation principle of a deletion means.

【図17】実施例における同向きの連続ベクトル検知・
削除手段の動作原理を説明する図である。
FIG. 17: Detection of continuous vectors in the same direction in the embodiment
It is a figure explaining the operation principle of a deletion means.

【図18】実施例における同向きの連続ベクトル検知・
削除手段の動作原理を説明する図である。
FIG. 18: Detection of continuous vectors in the same direction in the embodiment
It is a figure explaining the operation principle of a deletion means.

【図19】実施例における同向きの連続ベクトル検知・
削除手段の動作原理を説明する図である。
FIG. 19 is a detection of continuous vectors in the same direction in the embodiment.
It is a figure explaining the operation principle of a deletion means.

【図20】実施例における同向きの連続ベクトル検知・
削除手段の動作原理を説明する図である。
FIG. 20: Detection of continuous vectors in the same direction in the embodiment
It is a figure explaining the operation principle of a deletion means.

【図21】実施例におけるアウトラインベクトル検知・
削減・平滑・変倍処理の概略を示すフローチャートであ
る。
FIG. 21 is a diagram illustrating outline vector detection in the embodiment.
It is a flow chart which shows an outline of reduction, smoothing, and magnification processing.

【図22】実施例における一つの輪郭ループに対する同
向きの連続ベクトル検知・削除の処理の流れを示すフロ
ーチャートである。
FIG. 22 is a flowchart showing the flow of processing for detecting and deleting continuous vectors in the same direction for one contour loop in the embodiment.

【図23】一つの輪郭ループに対する同向きの連続ベク
トル検知・削除の処理の流れを詳細に示すフローチャー
トである。
FIG. 23 is a flowchart showing in detail the flow of processing for detecting and deleting continuous vectors of the same direction for one contour loop.

【図24】一つの輪郭ループに対する同向きの連続ベク
トル検知・削除の処理の流れを詳細に示すフローチャー
トである。
FIG. 24 is a flowchart showing in detail the flow of processing for detecting and deleting continuous vectors of the same direction for one contour loop.

【図25】一つの輪郭ループに対する同向きの連続ベク
トル検知・削除の処理の流れを詳細に示すフローチャー
トである。
FIG. 25 is a flowchart showing in detail the flow of processing for detecting and deleting continuous vectors of the same direction for one contour loop.

【図26】一つの輪郭ループに対する同向きの連続ベク
トル検知・削除の処理の流れを詳細に示すフローチャー
トである。
FIG. 26 is a flowchart showing in detail the flow of processing for detecting and deleting continuous vectors of the same direction for one contour loop.

【図27】同向の連続ベクトル検知・削除の処理に要す
るワークエリアの内容を示す図である。
FIG. 27 is a diagram showing the contents of a work area required for the process of detecting and deleting continuous vectors in the same direction.

【図28】輪郭ベクトルの削除対象の他の例を示す図で
ある。
[Fig. 28] Fig. 28 is a diagram illustrating another example of a deletion target of a contour vector.

【図29】輪郭ベクトルの削除対象の他の例を示す図で
ある。
[Fig. 29] Fig. 29 is a diagram illustrating another example of a deletion target of a contour vector.

【図30】輪郭ベクトルの削除対象の他の例を示す図で
ある。
[Fig. 30] Fig. 30 is a diagram illustrating another example of a deletion target of a contour vector.

【図31】輪郭ベクトルの削除対象の他の例を示す図で
ある。
[Fig. 31] Fig. 31 is a diagram illustrating another example of a deletion target of a contour vector.

【図32】輪郭ベクトルの削除対象の他の例を示す図で
ある。
[Fig. 32] Fig. 32 is a diagram illustrating another example of a deletion target of a contour vector.

【図33】本発明を受信用ファクシミリに適応させた例
の構成図である。
FIG. 33 is a configuration diagram of an example in which the present invention is applied to a receiving facsimile.

【図34】本発明を送信用ファクシミリに適応させた例
の構成図である。
FIG. 34 is a configuration diagram of an example in which the present invention is applied to a transmission facsimile.

【図35】本発明を送受信用ファクシミリ装置に適応さ
せた例の構成図である。
FIG. 35 is a configuration diagram of an example in which the present invention is applied to a transmitting / receiving facsimile apparatus.

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

11 2値画像獲得手段 12 アウトライン抽出手段 13 アウトラインベクトル検知・削減・平滑・変倍手
段 14 2値画像再生手段 15 2値画像出力手段 21 倍率設定手段 24 同向きの連続ベクトル検知・削除手段 71 CPU 76 RAM 75 I/O 72 ディスク装置 74 ROM
11 Binary image acquisition means 12 Outline extraction means 13 Outline vector detection / reduction / smoothing / magnification means 14 Binary image reproduction means 15 Binary image output means 21 Magnification setting means 24 Consecutive vector detection / deletion means 71 CPU 76 RAM 75 I / O 72 Disk device 74 ROM

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 2値画像から抽出された輪郭ベクトルデ
ータを獲得する輪郭ベクトル獲得手段と、 該輪郭ベクトル獲得手段で獲得された互いに隣接する所
定数のベクトル群の傾きに基づいて、当該ベクトル群の
中から不用なベクトルを検知する検知手段と、 該検知手段で検知されたベクトルを削除する削除手段と
を備えることを特徴とする画像処理装置。
1. A contour vector acquisition means for acquiring contour vector data extracted from a binary image, and the vector group based on the inclinations of a predetermined number of vector groups adjacent to each other acquired by the contour vector acquisition means. An image processing apparatus comprising: a detection unit that detects an unnecessary vector from among the above, and a deletion unit that deletes the vector detected by the detection unit.
【請求項2】 前記輪郭ベクトル獲得手段は、 2値画像を獲得する手段と、 2値画像から輪郭ベクトルデータを抽出する輪郭ベクト
ル抽出手段とから構成されることを特徴とする請求項第
1項に記載の画像処理装置。
2. The contour vector acquiring means comprises a means for acquiring a binary image and a contour vector extracting means for extracting contour vector data from the binary image. The image processing device according to item 1.
【請求項3】 前記検知手段は、等しい向きを有するベ
クトルが所定数連続するか否かを判断する判断手段を備
えることを特徴とする請求項第1項に記載の画像処理装
置。
3. The image processing apparatus according to claim 1, wherein the detection unit includes a determination unit that determines whether or not a predetermined number of vectors having the same direction are continuous.
【請求項4】 2値画像から抽出された輪郭ベクトルデ
ータを獲得する行程と、 獲得された互いに隣接する所定数のベクトル群の傾きに
基づいて、当該ベクトル群の中から不用なベクトルを検
知する行程と、 検知されたベクトルを削除する削除行程とを備えること
を特徴とする画像処理方法。
4. An unnecessary vector is detected from the vector group based on the process of acquiring the contour vector data extracted from the binary image and the inclinations of the acquired predetermined number of adjacent vector groups. An image processing method, comprising: a step; and a deletion step of deleting the detected vector.
【請求項5】 前記輪郭ベクトルを獲得する行程は、 2値画像を獲得する行程と、 2値画像から輪郭ベクトルデータを抽出する行程とから
構成されることを特徴とする請求項第4項に記載の画像
処理方法。
5. The process of acquiring the contour vector includes a process of acquiring a binary image and a process of extracting contour vector data from the binary image. The described image processing method.
【請求項6】 前記検知行程は、等しい向きを有するベ
クトルがいくつ連続するかを検出する行程を含むことを
特徴とする請求項第4項に記載の画像処理方法。
6. The image processing method according to claim 4, wherein the detection step includes a step of detecting how many vectors having the same direction are continuous.
JP20277792A 1992-06-11 1992-07-29 Image processing apparatus and method Expired - Fee Related JP2885999B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP20277792A JP2885999B2 (en) 1992-07-29 1992-07-29 Image processing apparatus and method
EP93304488A EP0574251B1 (en) 1992-06-11 1993-06-10 Image processing method and apparatus
DE69332283T DE69332283D1 (en) 1992-06-11 1993-06-10 Process and device for image processing
US08/475,451 US5757961A (en) 1992-06-11 1995-06-07 Image processing method and apparatus for obtaining a zoom image using contour information of a binary image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20277792A JP2885999B2 (en) 1992-07-29 1992-07-29 Image processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH0652304A true JPH0652304A (en) 1994-02-25
JP2885999B2 JP2885999B2 (en) 1999-04-26

Family

ID=16463017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20277792A Expired - Fee Related JP2885999B2 (en) 1992-06-11 1992-07-29 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2885999B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7623712B2 (en) 2005-06-09 2009-11-24 Canon Kabushiki Kaisha Image processing method and apparatus
US7831107B2 (en) 2005-10-17 2010-11-09 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and program
JP5047051B2 (en) 2008-05-02 2012-10-10 キヤノン株式会社 Image processing apparatus and image encoding method
JP5028337B2 (en) 2008-05-30 2012-09-19 キヤノン株式会社 Image processing apparatus, image processing method, program, and storage medium
JP5335581B2 (en) 2009-07-01 2013-11-06 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP5512024B1 (en) * 2013-07-08 2014-06-04 有限会社岳南塗装デザイン Cutting sheet creation method and drawing method

Also Published As

Publication number Publication date
JP2885999B2 (en) 1999-04-26

Similar Documents

Publication Publication Date Title
EP0650287B1 (en) Image processing method and apparatus
JP3049672B2 (en) Image processing method and apparatus
JP3026698B2 (en) Image processing method and apparatus
JP2967011B2 (en) Image processing method and apparatus
US6289136B1 (en) Image processing method and apparatus
JPH0652304A (en) Device and method for processing image
JP3007001B2 (en) Image processing apparatus and method
JP3113405B2 (en) Image processing device
JPH0918698A (en) Image processing unit and image processing method
JPH07334648A (en) Method and device for processing image
JP3054338B2 (en) Image processing apparatus and method
JP2885996B2 (en) Image processing method and apparatus
JP3054315B2 (en) Image processing method and apparatus
JP2915700B2 (en) Image processing method and apparatus
JP3054299B2 (en) Image processing apparatus and method
JP3162918B2 (en) Image processing apparatus and method
JPH05342340A (en) Method for picture processing and device therefor
CN111626935B (en) Pixel map scaling method, game content generation method and device
JP3006973B2 (en) Image processing apparatus and method
JP3255549B2 (en) Figure processing method
JPH10271338A (en) Device and method for processing image
JPH08289139A (en) Image processor and image processing method
JP3093950B2 (en) Outline information extracting device and method
JP2004288198A (en) Expansion/reduction device and method of image data
JPH0969156A (en) Image processor and method therefor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990108

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080212

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090212

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100212

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100212

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110212

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120212

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees