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

JPH0786935B2 - Contour data compression method - Google Patents

Contour data compression method

Info

Publication number
JPH0786935B2
JPH0786935B2 JP1022922A JP2292289A JPH0786935B2 JP H0786935 B2 JPH0786935 B2 JP H0786935B2 JP 1022922 A JP1022922 A JP 1022922A JP 2292289 A JP2292289 A JP 2292289A JP H0786935 B2 JPH0786935 B2 JP H0786935B2
Authority
JP
Japan
Prior art keywords
contour
point
contour point
points
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.)
Expired - Lifetime
Application number
JP1022922A
Other languages
Japanese (ja)
Other versions
JPH02202776A (en
Inventor
秀樹 中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP1022922A priority Critical patent/JPH0786935B2/en
Publication of JPH02202776A publication Critical patent/JPH02202776A/en
Publication of JPH0786935B2 publication Critical patent/JPH0786935B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/20Contour coding, e.g. using detection of edges
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • G06V10/457Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by analysing connectivity, e.g. edge linking, connected component analysis or slices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、画像平面上に配列された複数の輪郭点で形
成される輪郭線を、比較的少数の輪郭点で近似すること
により輪郭データを圧縮する方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial field of application) The present invention relates to contour data by approximating a contour line formed by a plurality of contour points arranged on an image plane with a relatively small number of contour points. On how to compress.

(従来の技術) 印刷版作成のための画像処理においては、画像合成を行
なう所望の図形領域を指定するために、いわゆる切抜き
マスクを作成する場合ある。
(Prior Art) In image processing for creating a printing plate, a so-called cutout mask may be created in order to specify a desired graphic region in which images are combined.

切抜きマスクは、もともと所望の図形領域のみを透明と
し、それ以外の部分を不透明としたフィルムであって、
これを用いて2つの画像を写真的に合成するために用い
られるものである。
The cutout mask is a film that is originally transparent only in the desired graphic region and opaque in the other parts,
It is used to photographically combine two images.

一方、レイアウトスキャナ等の画像処置装置において
は、切抜きマスクは所望の図形領域の輪郭を複数の輪郭
点などで表現する画像データとして構成されている。
On the other hand, in an image processing apparatus such as a layout scanner, the cutout mask is configured as image data that expresses the contour of a desired graphic region with a plurality of contour points.

ところが、一般に、図形の輪郭を複数の輪郭点で表現す
る場合に、輪郭点の個数があまりに多くなると、それら
を表わす輪郭データのデータ量が膨大になるという問題
がある。そこで、このような輪郭データを圧縮するため
の方法として、いわゆる折れ線近似法や、「画像処理の
基本技法」(長谷川他,技術評論社)第80頁〜第81頁に
記載されている区分的直線近似法などが知られている。
However, in general, when the contour of a figure is represented by a plurality of contour points, if the number of contour points becomes too large, the data amount of the contour data representing them becomes enormous. Therefore, as a method for compressing such contour data, the so-called polygonal line approximation method and the piecewise method described in "Basic techniques of image processing" (Hasegawa et al., Technical Review Co., Ltd.), pp. 80-81. A linear approximation method and the like are known.

(発明が解決しようとする課題) 第11図は折れ線近似法によって輪郭点Pn-1〜Pn+6で表わ
される輪郭を近似する手順を示す説明図である。
(Problems to be Solved by the Invention) FIG. 11 is an explanatory diagram showing a procedure for approximating the contours represented by the contour points P n-1 to P n + 6 by the polygonal line approximation method.

折れ線近似法は、複数の輪郭点のうちの2点を結ぶ線分
L1,L2…と、そのそれぞれの2点間にある他の輪郭点と
の距離d1,d2…を求め、最大距離が閾値ds1以下になるよ
うなできるだけ遠くの2点を有効な点として採用してい
くことにより、輪郭を線分近似していく方法である。
The polygonal line approximation method is a line segment that connects two points of a plurality of contour points.
L 1 , L 2 …, and the distances d 1 , d 2 …, to the other contour points between the respective 2 points are obtained, and the two points as far as possible such that the maximum distance is equal to or less than the threshold d s1 are effective. It is a method of approximating a contour into a line segment by adopting it as a point.

第11図の例では線分L5についての距離d5が始めて閾値d
s1よりも大きくなるので、その手前の線分L4の端点Pn+4
が有効な輪郭点として採用される。なお、輪郭点Pn-1
始点として固定された有効輪郭点である。従って、点P
n-1とPn+4との間の輪郭点Pn〜Pn+3のデータは削除され
る。このうち、輪郭点Pn+1は輪郭の形状が急激に変化す
る角部に位置する輪郭点であるが、折れ線近似法では、
このような角部の輪郭点のデータは輪郭データから削除
されてしまうので、角部を精度良く近似できないという
問題があった。
In the example of FIG. 11, the distance d 5 for the line segment L 5
Since it becomes larger than s1 , the end point P n + 4 of the line segment L 4 in front of it is
Is adopted as an effective contour point. The contour point P n-1 is an effective contour point fixed as a starting point. Therefore, point P
The data of contour points P n to P n + 3 between n-1 and P n + 4 are deleted. Of these, the contour point P n + 1 is a contour point located at a corner where the shape of the contour changes abruptly, but in the polygonal line approximation method,
Since the data of the contour points of such corners are deleted from the contour data, there is a problem that the corners cannot be accurately approximated.

第12図は、第11図と同じ輪郭点Pn-1〜Pn+6を区分的直線
近似法で近似する手順を示す説明図である。この方法
は、まず近似処理の対象とする一組の輪郭点Pn-1,Pn+6
が定められ、その両端の点Pn-1,Pn+6を仮想線分L6で結
ぶ。そして、仮想線分L6から最も遠い輪郭点Pn+1までの
距離(最大距離)d6を求める。そして、最大距離d6が所
定の閾値ds2よりも大きなときは、その輪郭点Pn+1を有
効と見做す。そして、次に輪郭点Pn-1とPn+1の間、及び
点Pn+1とPn+6の間に仮想線分を設け、同様の手順で有効
な輪郭点を求めて行く方法である。この場合は、閾値d
s2を十分小さくとれば、角部の輪郭点Pn+1を有効な点と
して残しうる。
FIG. 12 is an explanatory diagram showing a procedure for approximating the same contour points P n-1 to P n + 6 as in FIG. 11 by the piecewise linear approximation method. In this method, first, a set of contour points P n-1 and P n + 6 to be subjected to approximation processing is
Is defined and the points P n-1 and P n + 6 at both ends thereof are connected by a virtual line segment L 6 . Then, the distance (maximum distance) d 6 from the virtual line segment L 6 to the furthest contour point P n + 1 is obtained. Then, when the maximum distance d 6 is larger than the predetermined threshold value d s2 , the contour point P n + 1 is regarded as valid. Then, next, virtual line segments are provided between the contour points P n-1 and P n + 1 and between the points P n + 1 and P n + 6 , and effective contour points are obtained in the same procedure. Is the way. In this case, the threshold d
If s2 is set to be sufficiently small, the contour point P n + 1 at the corner can be left as an effective point.

ところが、第12図の区分的直線近似法では、一組の輪郭
点の両端から仮想線分を引き始めるので、輪郭点の組分
けのしかたによって、有効な輪郭点が変わる可能性があ
る。たとえば、輪郭点Pn-1〜Pn+3を近似処理の対象とす
る一組の輪郭点とすれば、その両端の点Pn-1,Pn+3を結
ぶ仮想線分L3から最も遠い輪郭点Pn+1までの距離d3は、
閾値ds2よりも小さい、従って、このときは、輪郭点P
n+1は有効な点とされず、両端の輪郭点Pn-1,Pn+3のみが
有効な点とされてしまう。つまり、区分的直線近似法で
輪郭線を近似すると、輪郭点の組分けのしかたによって
有効な輪郭点が変わり、有効な輪郭点で近似された近似
輪郭点も変わってしまうという問題がある。
However, in the piecewise linear approximation method of FIG. 12, since virtual line segments are drawn from both ends of a set of contour points, the effective contour points may change depending on how the contour points are grouped. For example, if the contour points P n-1 to P n + 3 are a set of contour points to be subjected to the approximation processing, then from the virtual line segment L 3 connecting the points P n-1 and P n + 3 at both ends thereof, The distance d 3 to the farthest contour point P n + 1 is
It is smaller than the threshold value d s2 . Therefore, at this time, the contour point P
n + 1 is not a valid point, and only the contour points P n-1 and P n + 3 at both ends are valid points. That is, when the contour line is approximated by the piecewise linear approximation method, there is a problem that the effective contour point changes depending on the way of dividing the contour points, and the approximate contour point approximated by the effective contour point also changes.

(発明の目的) この発明は、従来技術における上述の課題の解決を意図
しており、輪郭線の角部を精度良く近似できる圧縮化輪
郭データを得られるとともに、近似処理の対象とする輪
郭点の数などにかかわらず、常に同一の近似輪郭線を表
わす圧縮化輪郭データを得ることのできる輪郭データ圧
縮方法を得ることを目的とする。
(Object of the Invention) The present invention is intended to solve the above-mentioned problems in the prior art, and it is possible to obtain compressed contour data capable of accurately approximating a corner portion of a contour line, and a contour point to be a target of approximation processing. It is an object of the present invention to provide a contour data compression method that can always obtain compressed contour data that represents the same approximate contour line, regardless of the number and the like.

(課題を解決するための手段) 上述の課題を解決するため、この発明では、画像平面上
に所定の順序で配列された複数の輪郭点で形成される初
期輪郭線を、前記輪郭線から選択された有効輪郭点で近
似することにより、前記輪郭点を表わす初期輪郭データ
を圧縮し、前記有効輪郭点を表す圧縮化輪郭データを得
る輪郭データ圧縮方法において、(a)前記輪郭点のう
ちの一つを開始輪郭点として選択し、前記所定の順序に
おいて前記開始輪郭点の後に配列された前記輪郭点を選
択輪郭点として前記所定の順序で選択し、前記選択輪郭
点の個々について次の手順を実行する。
(Means for Solving the Problems) In order to solve the above problems, in the present invention, an initial contour line formed by a plurality of contour points arranged in a predetermined order on an image plane is selected from the contour lines. A contour data compression method for compressing initial contour data representing the contour points to obtain compressed contour data representing the valid contour points by approximating the contour points by One is selected as a start contour point, the contour points arranged after the start contour point in the predetermined order are selected as the selected contour points in the predetermined order, and the following procedure is performed for each of the selected contour points. To execute.

(a−1)前記開始輪郭点と前記選択輪郭点とを線分で
結び、(a−2)前記所定の順序において前記開始輪郭
線点と前記選択輪郭点との間に配列されている前記輪郭
点である中間輪郭点のそれぞれから、前記線分までの距
離を求めるとともに、前記距離の最大値である最大距離
を求め、(a−3)前記最大距離が所定の閾値よりも小
さな場合には、前記所定の順序に従って前記選択輪郭点
を更新して前記(a−1)と(a−2)のステップを繰
り返す。一方、(a−4)前記最大距離が前記所定の閾
値以上の場合には、当該最大距離を与える前記中間輪郭
点を前記有効輪郭点と決定する。
(A-1) The start contour point and the selected contour point are connected by a line segment, and (a-2) the start contour line point and the selected contour point are arranged in the predetermined order. From each of the intermediate contour points that are contour points, the distance to the line segment is obtained, and the maximum distance that is the maximum value of the distance is obtained, and (a-3) when the maximum distance is smaller than a predetermined threshold value. Updates the selected contour points according to the predetermined order and repeats steps (a-1) and (a-2). On the other hand, (a-4) When the maximum distance is equal to or larger than the predetermined threshold value, the intermediate contour point that gives the maximum distance is determined as the effective contour point.

そして、(b)前記有効輪郭点を用いて前記開始輪郭点
を更新して前記(a)および(a−1)から(a−4)
のステップを繰り返すとともに、前記有効輪郭点に基づ
いて前記圧縮化輪郭データを得る。
Then, (b) the starting contour point is updated using the effective contour point, and the (a) and (a-1) to (a-4) are updated.
The above steps are repeated and the compressed contour data is obtained based on the effective contour points.

なお、(a−1)のステップは、(a−1a)前記開始輪
郭点における前記初期輪郭線の曲率の大きさを示す指標
値を算出するステップと、(a−1b)前記指標値によっ
て示される前記曲率の増大に従って前記所定の閾値を減
少させるステップとをさらに含むことが好ましい。
The step (a-1) is indicated by (a-1a) a step of calculating an index value indicating the magnitude of the curvature of the initial contour line at the start contour point, and (a-1b) by the index value. And decreasing the predetermined threshold according to the increase in the curvature.

(作用) 複数の輪郭点のすべてを所定の順序で選択輪郭点とし、
近似処理を行なうので、近似処理の対象とする輪郭点の
数などにかかわらず、常に同一の輪郭点を有効輪郭点と
して決定することができる。
(Function) All of the plurality of contour points are selected contour points in a predetermined order,
Since the approximation processing is performed, the same contour point can always be determined as the effective contour point regardless of the number of contour points that are the target of the approximation processing.

また、開始輪郭点と選択輪郭点とを結ぶ線分から所定の
閾値以上離れた中間輪郭点を有効輪郭点として決定する
ので、輪郭の角部にある輪郭点を有効な輪郭点として採
用しうる。
Further, since the intermediate contour point that is separated from the line segment connecting the start contour point and the selected contour point by a predetermined threshold value or more is determined as the effective contour point, the contour points at the corners of the contour can be adopted as the effective contour point.

さらに、所定の閾値を、初期輪郭線の曲率の増大に従っ
て減少するようにすれば、曲率が大きな部分において、
有効輪郭点を多く採用することが可能となる。
Further, if the predetermined threshold value is made to decrease as the curvature of the initial contour line increases, in a portion where the curvature is large,
It is possible to adopt many effective contour points.

(実施例) A.装置の概略構成および動作 第1図は、この発明の実施例を適用して輪郭データの圧
縮を行なう画像データ処理システムIPSを示すブロック
図である。図において、画像データ処理システムIPS
は、入力機(例えば入力スキャナ)1,画像処置装置2,お
よび出力機(例えば出力スキャナ)3を備えている。こ
の画像処理装置2は、さらにバッファメモリ21,演算回
路22およびメモリ23を備えている。この実施例におい
て、画像処理装置2は切抜きマスクを作成するための切
抜きマスク装置として構成されており、切抜きマスクの
作成に使用するためのグラフイックディスプレイ4およ
びマウス5などが接続されている。
(Embodiment) A. Schematic configuration and operation of apparatus FIG. 1 is a block diagram showing an image data processing system IPS for compressing contour data by applying an embodiment of the present invention. In the figure, image data processing system IPS
Includes an input device (for example, an input scanner) 1, an image processing device 2, and an output device (for example, an output scanner) 3. The image processing device 2 further includes a buffer memory 21, an arithmetic circuit 22 and a memory 23. In this embodiment, the image processing device 2 is configured as a cutout mask device for making a cutout mask, and is connected with a graphic display 4 and a mouse 5 for use in making the cutout mask.

B.第1の実施例の動作 第2A図は、この発明の第1の実施例の手順を示すフロー
チャートである。
B. Operation of the First Embodiment FIG. 2A is a flow chart showing the procedure of the first embodiment of the present invention.

ステップS1では、所定の原画を入力スキャナ1で読取っ
て画像デーダD0を得る。この画像データD0は入力スキャ
ナ1から画像処理装置2に与えられ、バッファメモリ21
を介してメモリ23に格納される。
In step S1, a predetermined original image is read by the input scanner 1 to obtain image data D 0 . This image data D 0 is given from the input scanner 1 to the image processing apparatus 2 and is sent to the buffer memory 21.
Stored in the memory 23 via.

ステップS2では、画像データD0がグラフィックディスプ
レイ4に与えられ、原画の画像が表示される。第3図
は、グラフィックディスプレイ4に表示された画像I0
示す概念図であり、簡単のため、図形の初期輪郭線Bの
みが示されている。この初期輪郭線Bは多数の輪郭点の
集合である。
In step S2, the image data D 0 is given to the graphic display 4, and the original image is displayed. FIG. 3 is a conceptual diagram showing the image I 0 displayed on the graphic display 4, and for simplification, only the initial contour line B of the figure is shown. This initial contour line B is a set of many contour points.

ステップS3では、オペレータがこの画像I0を見ながら、
開始輪郭点P0を指定する。この指定は、例えばオペレー
タがマウス5を移動させて画面上のカーソルを第3図の
開始輪郭点P0の位置に合わせることにより行なわれる。
In step S3, the operator looks at this image I 0 ,
Specify the starting contour point P 0 . This designation is made, for example, by the operator moving the mouse 5 to align the cursor on the screen with the position of the starting contour point P 0 in FIG.

ステップS4では、次の輪郭点P1が同様に指定される。な
お、指定された輪郭点P0,P1の位置を示すデータは、指
定されるたびごとに、バッファメモリ21に保存される。
開始輪郭点P0の座標データは、圧縮された輪郭データの
一部として用いられるので、メモリ23にも格納される。
なお、最初の2つの輪郭点P0,P1が指定された時点で
は、輪郭線を近似する必要が無いので、後述するデータ
圧縮は行なわれない。
In step S4, the next contour point P 1 is similarly designated. The data indicating the positions of the designated contour points P 0 and P 1 are stored in the buffer memory 21 every time the designation is made.
Since the coordinate data of the start contour point P 0 is used as a part of the compressed contour data, it is also stored in the memory 23.
At the time when the first two contour points P 0 and P 1 are designated, it is not necessary to approximate the contour line, so that data compression described later is not performed.

ステップS5では、さらに次の輪郭点P2が指定される。In step S5, the next contour point P 2 is further designated.

3つの輪郭点P0〜P2が指定された後は、ステップS6のデ
ータ圧縮処理(輪郭線の近似処理)が実行される。第2B
図は、ステップS6における輪郭線の近似処理の手順を示
すフローチャートである。また、第4A図は、この時点ま
でに指定された輪郭点P0〜P2に関する近似処理の手順を
示す説明図である。
After the three contour points P 0 to P 2 are designated, the data compression processing (contour line approximation processing) in step S6 is executed. Second B
The figure is a flowchart showing the procedure of the contour line approximation processing in step S6. Further, FIG. 4A is an explanatory diagram showing the procedure of the approximation processing for the contour points P 0 to P 2 designated up to this point.

輪郭線の近似に際しては、まず、ステップS61におい
て、開始輪郭点P0の後に指定された輪郭点が、指定され
た順に1つ選択される。但し、開始輪郭点P0の隣りの輪
郭点P1は、選択の対象とならない。これは、開始輪郭点
P0と輪郭点P1との間に他の輪郭点がなく、後述するよう
な有効輪郭点を定めることができないからである。
In the approximation of the contour line, first, in step S61, one contour point designated after the start contour point P 0 is selected in the designated order. However, the contour point P 1 adjacent to the start contour point P 0 is not selected. This is the starting contour point
This is because there is no other contour point between P 0 and the contour point P 1, and an effective contour point as described later cannot be determined.

なお、輪郭点P1を実際に選択輪郭点として選び、その結
果、有効輪郭点を定めることがきないとして次の輪郭点
P2を選択輪郭点としてもよい。つまり、輪郭点P1を選択
輪郭点としない手順も、実質的に選択輪郭点として選ん
でいる手順と等価である。ステップS62では、選択され
た輪郭点(以下、単に「選択輪郭点」と呼ぶ。)P2と開
始輪郭点P0との間に仮想線分L02が引かれる。
Note that the contour point P 1 is actually selected as the selected contour point, and as a result, the effective contour point cannot be determined and the next contour point is determined.
P 2 may be the selected contour point. That is, the procedure in which the contour point P 1 is not the selected contour point is substantially equivalent to the procedure in which the contour point P 1 is selected as the selected contour point. In step S62, a virtual line segment L 02 is drawn between the selected contour point (hereinafter, simply referred to as “selected contour point”) P 2 and the start contour point P 0 .

そして、ステップS63において、仮想線分L02の両端点
P0,P2の間に配列された他の輪郭点(以下、「中間輪郭
点」と呼ぶ。)P1から仮想線分L02までの距離d21が算出
される。なお、この際、中間輪郭点が複数ある場合に
は、それぞれの中間輪郭点から仮想線分までの距離が求
められる。
Then, in step S63, the end points of the virtual line segment L 02
A distance d 21 from another contour point (hereinafter, referred to as “intermediate contour point”) P 1 arranged between P 0 and P 2 to the virtual line segment L 02 is calculated. At this time, when there are a plurality of intermediate contour points, the distance from each intermediate contour point to the virtual line segment is obtained.

第5図は、仮想線分から中間輪郭点までの距離の算出方
法を示す説明図である。ここでは、一般に、2つの輪郭
点P0,Pnを結ぶ仮想線分L0nから、中間輪郭点Piまでの距
離dniを求めることを考える。3つの輪郭点P0,Pn,Pi
座標がそれぞれ(0,0),(xn,yn),(xi,yi)で与え
られているとする。
FIG. 5 is an explanatory diagram showing a method of calculating the distance from the virtual line segment to the intermediate contour point. Here, in general, it is considered to find the distance d ni from the virtual line segment L 0n connecting the two contour points P 0 and P n to the intermediate contour point P i . It is assumed that the coordinates of the three contour points P 0 , P n , and P i are given by (0, 0), (x n , y n ), and (x i , y i ), respectively.

仮想線分L0nの長さl0nは次式で与えられる: l0n=(xn 2+yn 21/2 …(1) 距離dniは、輪郭点Piを時計回りに角度θだけ回転させ
た点Piaのy座標の値yiaに等しい。距離dniは、周知の
座標変換の式(アフィン変換)を用いて次式により求め
られる。
The length l 0n virtual line L 0n is given by: l 0n = (x n 2 + y n 2) 1/2 ... (1) distance d ni is the angle the contour point P i in the clockwise θ Equal to the y coordinate value y ia of the point P ia rotated by. The distance d ni is obtained by the following equation using a well-known coordinate transformation equation (affine transformation).

dni=yia =yicosθ−xisinθ =(xnyi−xiyn)/l0n …(2) ステップS64では、中間輪郭点が複数ある場合に仮想線
分から中間輪郭点までの距離の最大値(以下、「最大距
離」と呼ぶ。)dmaxを求める。第4A図の場合には、中間
輪郭点は1つ(P1)だけなので、dmax=d21である。
d ni = y ia = y i cos θ−x i sin θ = (x n y i −x i y n ) / l 0n (2) In step S64, when there are a plurality of intermediate contour points, the intermediate contour points are separated from the virtual line segment. The maximum value of the distance to ( destination is called "maximum distance") d max is calculated. In the case of FIG. 4A, since there is only one intermediate contour point (P 1 ), d max = d 21 .

ステップS65では、最大距離dmaxと所定の閾値dsが比較
される。第4Aの場合のように、最大距離dmaxが閾値ds
り小さいときには、ステップS66が実行されるが、この
ステップについては後述する。
In step S65, the maximum distance d max is compared with a predetermined threshold d s . When the maximum distance d max is smaller than the threshold d s as in the case of the 4A, step S66 is executed, and this step will be described later.

一方、最大距離dmaxが閾値ds以上のときには、ステップ
S67において、最大距離dmaxを与える中間輪郭点が有効
輪郭点として採用される。このような場合を第4B図に即
して説明する。輪郭点P0〜P5が指定されたとき、仮想線
分L03,L04に対する各中間輪郭点の距離は閾値dsより小
さい。そこで次に、開始輪郭点P0と最後に指定された輪
郭点P5との間に仮想線分L05を引く。このとき、中間輪
郭点P2と仮想線分L05との距離d52が最大距離のdmaxであ
る。そして、最大距離dmax=d52は閾値dsよりも大き
い。そこで、ステップS67が実行され、中間輪郭点P2
有効輪郭点とされる。
On the other hand, when the maximum distance d max is greater than or equal to the threshold d s , the step
In S67, the intermediate contour point that gives the maximum distance d max is adopted as the effective contour point. Such a case will be described with reference to FIG. 4B. When the contour points P 0 to P 5 are designated, the distance of each intermediate contour point from the virtual line segments L 03 and L 04 is smaller than the threshold value d s . Therefore, next, a virtual line segment L 05 is drawn between the start contour point P 0 and the last designated contour point P 5 . At this time, the distance d 52 between the intermediate contour point P 2 and the virtual line segment L 05 is the maximum distance d max . The maximum distance d max = d 52 is larger than the threshold d s . Therefore, step S67 is executed and the intermediate contour point P 2 is set as the effective contour point.

そして、ステップS68では、有効輪郭点P2の座標データ
が、圧縮化輪郭データの一部としてメモリ23に格納され
る。有効輪郭点P2が求められた後は、それ以前に配列さ
れている輪郭点P0,P1の座標データはデータ圧縮の処理
には不要となるので、バッファメモリ21から消去され
る。このように、バッファメモリ21には、新たな有効輪
郭点以前の輪郭点のデータを保存しておく必要が無いの
で、全体として多数の輪郭点を処理する場合にも、バッ
ファメモリ21およびメモリ23は、比較的小さな記憶容量
を有していれば充分である。なお、最初の開始輪郭点P0
の座標データは予めメモリ23に格納されており、圧縮化
輪郭データの一部として用いられるのは前述の通りであ
る。なお、「有効輪郭点」というときには、最初の開始
輪郭点も含む意味を表わすこととする。
Then, in step S68, the coordinate data of the effective contour point P 2 is stored in the memory 23 as a part of the compressed contour data. After the effective contour point P 2 is obtained, the coordinate data of the contour points P 0 and P 1 arranged before that are not necessary for the data compression processing, and are deleted from the buffer memory 21. As described above, since it is not necessary to store the data of the contour points before the new effective contour point in the buffer memory 21, even when processing a large number of contour points as a whole, the buffer memory 21 and the memory 23 Need only have a relatively small storage capacity. The first start contour point P 0
The coordinate data of is stored in the memory 23 in advance and is used as a part of the compressed contour data as described above. It should be noted that the term "effective contour point" means the meaning including the first start contour point.

ステップS70では、ステップS67で選ばれた有効輪郭点P2
が新たな開始輪郭点と見做される。
In step S70, the effective contour point P 2 selected in step S67
Is regarded as a new starting contour point.

ステップS70の後は、新たな開始輪郭点P2に基づいて、
ステップS61以降が実行される。すなわち、まず輪郭点P
4がステップS61で選択され、ステップS62では仮想線分L
24が引かれる。この仮想線分L24と中間輪郭点P3との距
離は第4B図からわかるように、明らかに閾値dsよりも小
さい。従って、ステップS655における判定に従って、ス
テップS66が実行される。
After step S70, the based on the new starting contour point P 2,
Step S61 and subsequent steps are executed. That is, first, the contour point P
4 is selected in step S61, and the virtual line segment L is selected in step S62.
24 is drawn. The distance between the virtual line segment L 24 and the intermediate contour point P 3 is clearly smaller than the threshold value d s , as can be seen from FIG. 4B. Therefore, step S66 is executed according to the determination in step S655.

ステップS66では、選択輪郭点となるべき輪郭点が残っ
ているか否かが判断される。第4B図の場合には、輪郭点
P5が選択輪郭点となりうる。従って、ステップS61に戻
り、輪郭点P5が選択輪郭点として選ばれてステップS62
以降が実行される。
In step S66, it is determined whether or not there remains a contour point to be the selected contour point. In the case of FIG. 4B, the contour points
P 5 can be the selected contour point. Therefore, the process returns to step S61, the contour point P 5 is selected as the selected contour point, and step S62
The subsequent steps are executed.

なお、ステップS66において、選択輪郭点となるべき輪
郭点が残っていないと判断された場合には、第2A図のス
テップS7が実行されることになる。
If it is determined in step S66 that no contour point to be the selected contour point remains, step S7 of FIG. 2A is executed.

ステップS7では、オペレータが処理を終了するか否かを
判断し終了する場合に、その旨のデータを図示しないキ
ーボードなどを用いて入力する。処理の終了は、最初の
開始輪郭点P0に十分近い点Pf(第3図参照)について、
ステップS5,S6を実行した後に行なわれるのが普通であ
る。一方、処理を続ける場合には、ステップS5に戻って
次の輪郭点を指定する。
In step S7, the operator determines whether or not to end the process, and when the process is ended, the operator inputs data to that effect using a keyboard or the like not shown. The process is completed at a point P f (see FIG. 3) sufficiently close to the first starting contour point P 0 .
It is usually performed after executing steps S5 and S6. On the other hand, if the processing is to be continued, the process returns to step S5 to specify the next contour point.

以上のように、ステップS1〜S7を繰り返すことにより、
有効輪郭点として採用された輪郭点P0,P2,…の座標デー
タがメモり23に格納されて残ることになる。第4C図はこ
れらの有効輪郭点P0,P2,…で近似された輪郭線BSの一部
を示す概念図である。このように、有効輪郭点P0,P2,…
で近似された輪郭線Bsでは、もとの輪郭線の角部にある
輪郭点P2やP6が有効な点として残されており、角部の形
状を精度良く近似している。なお、図中の他の輪郭点
P1,P3,P4,P5,P7の座標データは圧縮化輪郭データに含ま
れておらず、参考のために図示されているものである。
By repeating steps S1 to S7 as described above,
The coordinate data of the contour points P 0 , P 2 , ... Which are adopted as the effective contour points are stored in the memory 23 and remain. FIG. 4C is a conceptual diagram showing a part of the contour line B S approximated by these effective contour points P 0 , P 2 , ... Thus, the effective contour points P 0 , P 2 , ...
In the contour line B s approximated by, the contour points P 2 and P 6 at the corners of the original contour line are left as valid points, and the shape of the corners is accurately approximated. Note that other contour points in the figure
The coordinate data of P 1 , P 3 , P 4 , P 5 , and P 7 are not included in the compressed contour data, but are shown for reference.

指定されたすべての輪郭点P0,P1,P2,…の座標を表わす
初期輪郭データと、有効輪郭点P0,P2,…のみの座標を表
わす圧縮化輪郭データとを比較すると、圧縮化輪郭デー
タは初期輪郭データに比べてデータ量がはるかに少ない
ので、ステップS6において実質的にデータ圧縮が行なわ
れていることが理解できる。
Comparing the initial contour data representing the coordinates of all the specified contour points P 0 , P 1 , P 2 , ... With the compressed contour data representing the coordinates of only the valid contour points P 0 , P 2 ,. Since the data amount of the compressed contour data is much smaller than that of the initial contour data, it can be understood that the data is substantially compressed in step S6.

なお、この実施例において、画像処理装置2は切抜きマ
スク装置として構成されている。従って、以上のように
して最終的に得られた圧縮化輪郭データは、たとえば切
抜きマスクデータDmとして画像処理装置2から出力スキ
ャナ3に与えられ、切抜きマスクとなる網点フィルムの
作成に利用される。もちろん、この発明は切抜きマスク
の作成に限られず、一般に、輪郭を近似する必要がある
場合に適用できることは言うまでもない。
In this embodiment, the image processing device 2 is constructed as a cutout mask device. Therefore, the compressed contour data finally obtained as described above is given to the output scanner 3 from the image processing device 2 as, for example, cutout mask data D m , and is used for producing a halftone film serving as a cutout mask. It Of course, it goes without saying that the present invention is not limited to the production of a cutout mask, and can generally be applied to the case where the contour needs to be approximated.

C.第2の実施例の動作 第6図は、この発明の第2の実施例の考え方を示す説明
図である。図において、点BPi-1,BPi(=Pn)は既に有
効輪郭点とされた輪郭点を示す。一方、輪郭点Pn+1,P
n+2はその後に指定され、これから近似処理を受けるべ
き輪郭点を示す。
C. Operation of Second Embodiment FIG. 6 is an explanatory diagram showing the concept of the second embodiment of the present invention. In the figure, points BP i-1 and BP i (= P n ) indicate contour points that have already been made effective contour points. On the other hand, the contour points P n + 1 , P
n + 2 indicates a contour point that is specified after that and is to undergo approximation processing.

この実施例では、現時点における最終2点の有効輪郭点
BPi-1,BPiを結ぶ線分(以下、「前位輪郭線分」と呼
ぶ。)LBiと、輪郭点Pn,Pn+2の間を結ぶ仮想線分Lとの
なす角度φを求める。そして、最大距離dmaxに対する閾
値dsを、角度φの値に応じた関数とする: ds=f(φ) …(3) 第7図は、関数f(φ)の一例を示す図である。この例
では、関数f(φ)は、複数の角度閾値φ〜φごと
に、最大距離の閾値dsが下降していく階段上関数であ
る。このように、角度φが大きいほど閾値dsを小さくす
るようにすれば、輪郭線が大きな曲率で曲がっている場
合には、比較的多数の有効輪郭点で近似することとな
り、輪郭線の形状をより忠実に近似できるという利点が
ある。
In this embodiment, the last two effective contour points at the present time
An angle formed by a line segment connecting BP i-1 and BP i (hereinafter, referred to as “preceding contour line segment”) L Bi and a virtual line segment L connecting between the contour points P n and P n + 2 Find φ. Then, the threshold d s for the maximum distance d max is a function according to the value of the angle φ: d s = f (φ) (3) FIG. 7 is a diagram showing an example of the function f (φ). is there. In this example, the function f (φ) is a step-up function in which the maximum distance threshold d s decreases for each of the plurality of angle thresholds φ 1 to φ 4 . In this way, if the threshold d s is made smaller as the angle φ is larger, when the contour line is curved with a large curvature, it is approximated by a relatively large number of effective contour points, and the shape of the contour line is Has the advantage that it can be approximated more faithfully.

第2の実施例は、閾値dsを角度φに応じて変える以外は
第1の実施例と同じであり、その手順は第2A図、第2B図
に示したものと同一である。
The second embodiment is the same as the first embodiment except that the threshold value d s is changed according to the angle φ, and the procedure is the same as that shown in FIGS. 2A and 2B.

第8A図と第8B図は、それぞれ第1と第2の実施例によ
り、初期輪郭線B1を近似した結果を示す概念図である。
これらの図において、近似された輪郭線(以下、「近似
輪郭線」と呼ぶ。) LB1,LB2…は一点鎖線で示されている。初期輪郭線B1
うち、曲率の小さな部分(曲率半径の大きな部分)で
は、第1の実施例(第8A図)と第2の実施例(第8B図)
でどちらも同じ近似輪郭線LB1〜LB5が求められている。
一方、初期輪郭線B1のうち、曲率の大きな部分(曲率半
径の小さな部分)では、第1の実施例(8A図)の近似輪
郭線LB6〜LB8よりも、第2の実施例(第8B図)の近似輪
郭線LB6a〜LB9aの方が数が多い。これらの図からも、第
2の実施例の方が、大きな曲率の部分では、より忠実に
輪郭線の形状を近似できることが理解できる。
FIGS. 8A and 8B are conceptual diagrams showing the results of approximation of the initial contour line B 1 by the first and second embodiments, respectively.
In these figures, approximated contour lines (hereinafter referred to as “approximated contour lines”) L B1 , L B2, ... Are indicated by alternate long and short dash lines. In the portion having a small curvature (the portion having a large radius of curvature) in the initial contour line B 1 , the first embodiment (FIG. 8A) and the second embodiment (FIG. 8B) are used.
Then, the same approximate contour lines L B1 to L B5 are obtained in both cases.
On the other hand, in the portion having a large curvature (the portion having a small radius of curvature) of the initial contour line B 1 , the second embodiment (rather than the approximate contour lines L B6 to L B8 of the first embodiment (FIG. 8A)) The number of approximate contours L B6a to L B9a in FIG. 8B) is larger. From these figures, it can be understood that the shape of the contour line can be more faithfully approximated in the portion having the larger curvature in the second embodiment.

第2の実施例の近似処理の開始時であって、最初の開始
輪郭点に有効な輪郭点が得られていないときには、前位
輪郭線分が無いので角度φが定義できない。従って、こ
のような近似処理の開始時には一定の値の閾値dsが用い
られる。
At the start of the approximation process of the second embodiment, and when a valid contour point is not obtained at the first start contour point, the angle φ cannot be defined because there is no preceding contour line segment. Therefore, a threshold value d s having a constant value is used at the start of such an approximation process.

但し、第9図に示すように、最初の開始輪郭点P0の次に
配列された輪郭点P1を、常に有効輪郭点であると見做し
てもよい。こうすれば、その後に配列された輪郭点P2,P
3…は、輪郭点P0とP1との間に結ばれた前位輪郭線分LB1
に基づいて定められる角度φを用いて閾値ds(=f
(φ))が定められ、有効輪郭点であるか否かが判断さ
れる。このように処理すれば常に角度φに基づいて閾値
dsの値を変えることが可能となる。
However, as shown in FIG. 9, the contour point P 1 arranged next to the first start contour point P 0 may always be regarded as an effective contour point. In this way, the contour points P 2 , P
3 is the preceding contour line segment L B1 connected between the contour points P 0 and P 1.
The threshold value d s (= f
(Φ)) is determined, and it is determined whether or not it is an effective contour point. With this processing, the threshold value is always based on the angle φ.
It is possible to change the value of d s .

また、輪郭点P0とP1との間の距離は数十μmの場合もあ
り、第9図の処理をしない場合に比べて有効輪郭点P1
1つ増すことになるが、全体の有効輪郭点の数に比べて
この増加は無視できる。
Further, the distance between the contour points P 0 and P 1 may be several tens of μm, which means that the effective contour point P 1 is increased by 1 as compared with the case where the processing of FIG. 9 is not performed. This increase is negligible compared to the number of valid contour points.

なお、上記の第2の実施例において、閾値dsの値を定め
る関数f(φ)は階段状関数であるとしたが、もちろん
角度φに対する連続関数であってもよい。但し、そのと
きの関数f(φ)も角度φが大きくなるに従って単調に
減少する関数である。また、角度φは初期輪郭線B1の曲
率の大きさを示す指標値であり、角度φが大きいほど曲
率も大きい。つまり、第2の実施例において、閾値ds
値は、初期輪郭線の曲率の増大に従って減少するように
定められていればよい。但し、ここでいう「減少」と
は、第7図のように、ある角度φの範囲(すなわち、あ
る曲率の範囲)で閾値dsが一定の値をとる場合も含む用
語である。
In the second embodiment described above, the function f (φ) that determines the value of the threshold value d s is a step function, but of course it may be a continuous function with respect to the angle φ. However, the function f (φ) at that time is also a function that monotonically decreases as the angle φ increases. The angle φ is an index value indicating the magnitude of curvature of the initial contour line B 1 , and the larger the angle φ, the greater the curvature. That is, in the second embodiment, the value of the threshold value d s may be set so as to decrease as the curvature of the initial contour line increases. However, the term “decrease” as used herein is a term that includes the case where the threshold value d s takes a constant value in a range of a certain angle φ (that is, a range of a certain curvature) as shown in FIG. 7.

D.変形例 この発明は上記実施例に限られるものではなく、たとえ
ば次のような変形も可能である。
D. Modifications The present invention is not limited to the above embodiments, and the following modifications are possible, for example.

初期輪郭データは、1つの輪郭点をオペレータが指
定するたびに1つずつバッファメモリ21に与えられる場
合に限らない。たとえば、予め多数の輪郭点を表わす初
期輪郭データを何らかの記憶手段(たとえばメモリ23)
に格納しておき、その中の一部の輪郭点を表わすデータ
のみを順次にバッファメモリ21に転送し、ステップS6の
データ圧縮を行ってもよい。
The initial contour data is not limited to being given to the buffer memory 21 one by one each time one contour point is designated by the operator. For example, initial contour data representing a large number of contour points is stored in advance in some storage means (for example, the memory 23).
Alternatively, only the data representing some of the contour points may be sequentially transferred to the buffer memory 21, and the data compression in step S6 may be performed.

第2B図に示す手順かわりに、第10図に示す手順に従
って近似処理を行ってもよい。この手順は、第2B図にお
けるステップS65とS66との間にステップS71を挿入した
ものである。この手順によれば、最大距離dmaxが閾値ds
より小さい場合に、そのときの仮想線分の長さlが所定
の許容値lsよりも長いときは、その時点で最大距離を与
える中間輪郭点を有効輪郭点とするとともに新たな開始
輪郭点とするものである。
The approximation process may be performed according to the procedure shown in FIG. 10 instead of the procedure shown in FIG. 2B. In this procedure, step S71 is inserted between steps S65 and S66 in FIG. 2B. According to this procedure, the maximum distance d max is the threshold d s.
If the length l of the virtual line segment at that time is longer than the predetermined allowable value l s , the intermediate contour point that gives the maximum distance at that time is set as the effective contour point and a new start contour point is set. It is what

このように処理することにより、過度に長い範囲にある
輪郭点を1本の直線で近似することが無くなり、輪郭線
をより精度良く近似できる。また、バッファメモリ21に
格納するデータも少なくて済み、記憶容量を削減でき
る。さらに、1本の仮想線分から距離を算出すべき中間
輪郭点の数が過度に多くならないので、データ圧縮のた
めの演算時間も短縮される。
By processing in this way, contour points in an excessively long range are not approximated by one straight line, and the contour line can be approximated more accurately. Further, the amount of data stored in the buffer memory 21 is small, and the storage capacity can be reduced. Furthermore, since the number of intermediate contour points for which the distance should be calculated from one virtual line segment does not increase excessively, the calculation time for data compression can be shortened.

(発明の効果) 以上説明したように、この発明によれば、複数の輪郭点
のすべてを所定の順序で選択輪郭点として選択しつつ近
似処理を行なっていくので、近似処理の対象とする輪郭
点の数や範囲にかかわらず、常に同一の輪郭点を有効輪
郭点として決定することができ、常に同一の近似輪郭線
を表わす圧縮化輪郭データを得ることができるという効
果がある。
(Effect of the Invention) As described above, according to the present invention, the approximation processing is performed while selecting all of the plurality of contour points as the selected contour points in a predetermined order. The same contour point can always be determined as an effective contour point regardless of the number and range of points, and compressed contour data representing the same approximate contour line can always be obtained.

また、開始輪郭点と選択輪郭点とを結ぶ線分から所定の
閾値以上離れた中間輪郭点を有効輪郭点として決定する
ので、輪郭の角部にある輪郭点を有効な点として採用で
き、輪郭線の角度を精度良く近似できる圧縮化輪郭デー
タを得られるという効果がある。
Further, since an intermediate contour point that is separated from the line segment connecting the start contour point and the selected contour point by a predetermined threshold value or more is determined as the effective contour point, the contour points at the corners of the contour can be adopted as the effective point, and the contour line There is an effect that it is possible to obtain compressed contour data that can accurately approximate the angle of.

さらに、所定の閾値を、初期輪郭線の曲率の増大に従っ
て減少するようにすれば、曲率が大きな部分において有
効輪郭点を多く採用することができるので、初期輪郭線
をより精度良く近似できるという効果がある。
Furthermore, if the predetermined threshold value is decreased in accordance with the increase in the curvature of the initial contour line, many effective contour points can be adopted in the portion having a large curvature, and thus the effect that the initial contour line can be approximated more accurately There is.

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

第1図は、この発明の実施例を適用する装置の構成を示
すブロック図、 第2A図および第2B図は、実施例の手順を示すフローチャ
ート、 第3図は、グラフィックディスプレイに表示された画像
を示す概念図、 第4A図,第4B図および第4C図は、実施例における近似処
理の手順を示す説明図、 第5図は、仮想線分と中間輪郭点の距離の算出方法を示
す説明図、 第6図および第9図は、実施例における角度φの算出方
法を示す説明図、 第7図は、最大距離の閾値を決定する関数を示す図、 第8A図および第8B図は、実施例による近似処理の結果を
示す概念図、 第10図は、実施例における他の手順を示すフローチャー
ト、 第11図および第12図は、従来の輪郭近似方法を示す説明
図である。 2……画像処理装置、 B,B1……初期輪郭線、P0〜P7……輪郭点、 L02,L05……仮想線分、 d21,d52……中間輪郭点から仮想線分までの距離、 dmax……最大距離、ds……閾値
FIG. 1 is a block diagram showing a configuration of an apparatus to which an embodiment of the present invention is applied, FIGS. 2A and 2B are flow charts showing procedures of the embodiment, and FIG. 3 is an image displayed on a graphic display. 4A, 4B, and 4C are explanatory diagrams showing the procedure of the approximation processing in the embodiment, and FIG. 5 is an explanation showing the method of calculating the distance between the virtual line segment and the intermediate contour point. FIG. 6, FIG. 6 and FIG. 9 are explanatory diagrams showing a method of calculating the angle φ in the embodiment, FIG. 7 is a diagram showing a function for determining the threshold value of the maximum distance, and FIGS. 8A and 8B are FIG. 10 is a conceptual diagram showing a result of approximation processing according to the embodiment, FIG. 10 is a flowchart showing another procedure in the embodiment, and FIGS. 11 and 12 are explanatory diagrams showing a conventional contour approximation method. 2 ...... image processing apparatus, the virtual B, B 1 ...... initial contour line, P 0 to P 7 ...... contour points, L 02, L 05 ...... imaginary segment from d 21, d 52 ...... intermediate contour point Distance to line segment, d max …… maximum distance, d s …… threshold

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】画像平面上に所定の順序で配列された複数
の輪郭点で形成される初期輪郭線を、前記輪郭線から選
択された有効輪郭点で近似することにより、前記輪郭点
を表わす初期輪郭データを圧縮し、前記有効輪郭点を表
す圧縮化輪郭データを得る輪郭データ圧縮方法であっ
て、 (a) 前記輪郭点のうちの一つを開始輪郭点として選
択し、前記所定の順序において前記開始輪郭点の後に配
列された前記輪郭点を選択輪郭点として前記所定の順序
で選択し、前記選択輪郭点の個々について、 (a−1)前記開始輪郭点と前記選択輪郭点とを線分で
結び、 (a−2)前記所定の順序において前記開始輪郭点と前
記選択輪郭点との間に配列されている前記輪郭点である
中間輪郭点のそれぞれから、前記線分までの距離を求め
るとともに、前記距離の最大値である最大距離を求め、 (a−3)前記最大距離が所定の閾値よりも小さな場合
には、前記所定の順序に従って前記選択輪郭点を更新し
て前記(a−1)と(a−2)のステップを繰り返し、 (a−4)前記最大距離が前記所定の閾値以上の場合に
は、当該最大距離を与える前記中間輪郭点を前記有効輪
郭点と決定し、 (b) 前記有効輪郭点を用いて前記開始輪郭点を更新
して前記(a)および(a−1)から(a−4)のステ
ップを繰り返すとともに、前記有効輪郭点に基づいて前
記圧縮化輪郭データを得ることを特徴とする輪郭データ
圧縮方法。
1. A contour point is represented by approximating an initial contour line formed by a plurality of contour points arranged in a predetermined order on an image plane with an effective contour point selected from the contour lines. A contour data compression method for compressing initial contour data to obtain compressed contour data representing the effective contour point, comprising: (a) selecting one of the contour points as a starting contour point, and performing the predetermined order. In the above, the contour points arranged after the start contour point are selected as the selected contour points in the predetermined order, and (a-1) the start contour point and the selected contour point are selected for each of the selected contour points. (A-2) Distance from each of the intermediate contour points which are the contour points arranged between the start contour point and the selected contour point in the predetermined order to the line segment And the distance The maximum distance, which is the maximum value of the separation, is obtained. (A-3) When the maximum distance is smaller than a predetermined threshold value, the selected contour point is updated in accordance with the predetermined order to obtain the (a-1). (A-2) is repeated, (a-4) when the maximum distance is equal to or greater than the predetermined threshold value, the intermediate contour point that gives the maximum distance is determined as the effective contour point, and (b) The starting contour point is updated using the valid contour point, and the steps (a) and (a-1) to (a-4) are repeated, and the compressed contour data is obtained based on the valid contour point. A method for compressing contour data, which is characterized by being obtained.
【請求項2】請求項1記載の(a−l)のステップは、 (a−la)前記開始輪郭点における前記初期輪郭線の曲
率の大きさを示す指標値を算出するステップと、 (a−1b)前記指標値によって示される前記曲率の増大
に従って前記所定の閾値を減少させるステップとをさら
に含む輪郭データ圧縮方法。
2. The step (a-1) according to claim 1, wherein (a-la) a step of calculating an index value indicating a magnitude of curvature of the initial contour line at the start contour point; -1b) Decreasing the predetermined threshold value according to the increase in the curvature indicated by the index value, the contour data compressing method.
JP1022922A 1989-01-31 1989-01-31 Contour data compression method Expired - Lifetime JPH0786935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1022922A JPH0786935B2 (en) 1989-01-31 1989-01-31 Contour data compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1022922A JPH0786935B2 (en) 1989-01-31 1989-01-31 Contour data compression method

Publications (2)

Publication Number Publication Date
JPH02202776A JPH02202776A (en) 1990-08-10
JPH0786935B2 true JPH0786935B2 (en) 1995-09-20

Family

ID=12096138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1022922A Expired - Lifetime JPH0786935B2 (en) 1989-01-31 1989-01-31 Contour data compression method

Country Status (1)

Country Link
JP (1) JPH0786935B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4164286B2 (en) * 2002-04-25 2008-10-15 キヤノン株式会社 Line segment approximation method of figure, program for realizing line segment approximation method of figure, and line segment approximation apparatus of figure
CN115631334A (en) * 2022-09-15 2023-01-20 中国电建集团华东勘测设计研究院有限公司 Structural surface extraction method
CN117523525A (en) * 2023-10-27 2024-02-06 北京易航远智科技有限公司 Obstacle boundary contour processing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
JPH02202776A (en) 1990-08-10

Similar Documents

Publication Publication Date Title
JPH0251786A (en) Scan converting system
JPH07302336A (en) Method and apparatus for making feature of image ambiguous
JPH01307878A (en) Pattern recognizing device
JP3054682B2 (en) Image processing method
JPH0786935B2 (en) Contour data compression method
JPH0434669A (en) Image processing system
JPH11120385A (en) Two-dimensional / three-dimensional integrated CAD system and storage medium storing drawing creation program
JP2870397B2 (en) How to fill the drawing
JPH08194816A (en) Segment approximation method and its system
JPH0785266A (en) Image rotation device
JPH06100906B2 (en) Character processing method
JP2755145B2 (en) Division point setting method
JP3024254B2 (en) Curve drawing method and apparatus
JP3536894B2 (en) Graphic processing unit
JPH06119448A (en) Image processing method
JP2642167B2 (en) How to create numerical control data
JP2800544B2 (en) Image data centering processing method
JP3221067B2 (en) Method and apparatus for generating three-dimensional structured grid
JP2856136B2 (en) Printing equipment
JP2854588B2 (en) Raster vector conversion method and line figure input device
JP2838556B2 (en) Image processing device
JP3332502B2 (en) Offset figure creation method and apparatus
JPH07320044A (en) Method and apparatus for conversion of geometry of image data
JPS636855A (en) Analysis method for integrated-circuit mask pattern
JPH05313638A (en) Character boldfacing system