JP3065364B2 - Cutout mask making method and apparatus - Google Patents

Cutout mask making method and apparatus

Info

Publication number
JP3065364B2
JP3065364B2 JP3672191A JP3672191A JP3065364B2 JP 3065364 B2 JP3065364 B2 JP 3065364B2 JP 3672191 A JP3672191 A JP 3672191A JP 3672191 A JP3672191 A JP 3672191A JP 3065364 B2 JP3065364 B2 JP 3065364B2
Authority
JP
Japan
Prior art keywords
bezier curve
cutout
point
curve
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3672191A
Other languages
Japanese (ja)
Other versions
JPH04254854A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP3672191A priority Critical patent/JP3065364B2/en
Publication of JPH04254854A publication Critical patent/JPH04254854A/en
Application granted granted Critical
Publication of JP3065364B2 publication Critical patent/JP3065364B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Preparing Plates And Mask In Photomechanical Process (AREA)
  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、切抜きマスク作成方法
及び装置に係り、特に、画像データを画面上に表示して
切抜きマスクを作成する方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for forming a cutout mask, and more particularly to a method and an apparatus for forming a cutout mask by displaying image data on a screen.

【0002】[0002]

【従来の技術】画像の不要部分を除去し必要な物体形状
のみ抽出するに際して、電子計算機画像処理システムを
用いて、切抜きマスクを作成し、当該切抜きマスクを用
いて画像処理技術により切抜くことが行われる。
2. Description of the Related Art In removing unnecessary portions of an image and extracting only a necessary object shape, a cutout mask is created using an electronic computer image processing system, and cutout is performed using the cutout mask by an image processing technique. Done.

【0003】このように切抜きマスクにより切抜く際に
は、切抜きマスクを種々の方法で作成する。
[0003] When a cutout is made by using a cutout mask, the cutout mask is prepared by various methods.

【0004】即ち、切抜きマスク作成方法には、画像デ
ータを画面上に表示し、オペレータが、表示画面を参照
しながら、当該画面上で切抜きを所望する物体形状の輪
郭線をトレースして切抜きマスクを作成する方法があ
る。この方法においては、まず、オペレータが、切抜こ
うとする輪郭に沿った点列を入力し、入力された点列を
直線で結んでいき、この結ばれた直線を切抜き線として
切抜きマスクを作成する。
[0004] That is, in the clipping mask creation method, image data is displayed on a screen, and an operator refers to the display screen and traces a contour line of an object shape to be clipped on the screen, and the clipping mask is formed. There is a way to create In this method, first, an operator inputs a point sequence along a contour to be cut out, connects the input point sequence with a straight line, and creates a cutout mask using the connected straight line as a cutout line. .

【0005】又、曲線的な輪郭線を有する物体形状に対
して、円弧、もしくは、スプライン曲線を用いて滑らか
な切抜き線を発生させる方法がある。このスプライン曲
線は、与えられた複数の点列を(ある一定の規則にのっ
とって)曲線で補間して作成されるものである。又、ス
プライン曲線は2次、3次と次数があり、予め次数が決
まっていない与えられた点列に対して(引かれる曲線
は)一意的に決まる、又、スプライン曲線は通過する点
から点までの一区間毎に別々の数式で表わされる曲線を
つなぎ合わせたものとなり、出来上がった曲線は全ての
点で(つまり、途中点でも継ぎ目でも)滑かである。
There is also a method of generating a smooth cutout line using an arc or a spline curve for an object shape having a curved contour line. This spline curve is created by interpolating a given plurality of point sequences with a curve (according to a certain rule). Also, the spline curve has a second order, a third order, and a degree, and a given point sequence whose degree is not determined in advance is uniquely determined (a curve to be drawn). Curves represented by different mathematical formulas are connected to each other for each section up to, and the resulting curve is smooth at all points (that is, at intermediate points and at seams).

【0006】ここで、切抜き作業において重要な点は、
切抜き対象となる物体形状の輪郭線を忠実に且つ滑らか
にトレースすることである。
Here, an important point in the cutting operation is as follows.
This is to trace the contour of the object shape to be cut out faithfully and smoothly.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、前記従
来の切抜き方法には、切抜き対象の物体形状によって
は、該物体形状の輪郭線を忠実に且つ滑らかにトレース
することに困難が生じるという問題点がある。
However, the conventional clipping method has a problem that, depending on the object shape to be clipped, it is difficult to trace the contour of the object shape faithfully and smoothly. is there.

【0008】即ち、前記入力点列を結んだ直線で切抜き
線を作成する方法においては、かなり細かく点列入力を
しなければ、曲線等に対応した滑らかな切抜き線を作成
することができず、切抜き対象となる物体形状が限定さ
れてしまう。
That is, in the method of forming a cutout line by a straight line connecting the input point sequence, a smooth cutout line corresponding to a curve or the like cannot be formed unless a point sequence is input very finely. The shape of the object to be clipped is limited.

【0009】又、円弧を用いる方法においては、自然に
変化する輪郭線に対して適切に対応した曲線が描き難い
場合が多い。
In the method using an arc, it is often difficult to draw a curve appropriately corresponding to a contour line that changes naturally.

【0010】又、前記スプライン曲線を用いる方法にお
いては、その得られる曲線は前記のように滑かである
が、点列の最後の点を入力するまでは曲線全体の形が不
定であるため、オペレータの意図する曲線から部分的に
外れた曲線が生じてしまう場合があり、所望の切抜き線
を得るのが困難である。
In the method using the spline curve, the obtained curve is smooth as described above, but the shape of the entire curve is indefinite until the last point of the point sequence is input. A curve partially deviating from the curve intended by the operator may occur, and it is difficult to obtain a desired cutout line.

【0011】この困難性は、入力する点の数を多く取っ
たとしても解消されず、オペレータが輪郭線上にかなり
細かく点列を入力したとしても、それを補間した曲線が
所望の輪郭線から外れてしまうことがある。
This difficulty is not solved even if the number of input points is increased, and even if the operator inputs a point sequence on the contour line quite finely, the interpolated curve deviates from the desired contour line. Sometimes.

【0012】本発明は、前記従来の問題点を解消すべく
なされたもので、所望する切抜き線を簡単なオペレーシ
ョン(操作)で原画像の輪郭線によくフィット(合致)
するよう高品質に作成することができる切抜きマスク作
成方法及び装置を提供することを課題とする。
The present invention has been made in order to solve the above-mentioned conventional problems, and a desired cutout line is easily fitted (matched) to a contour line of an original image by a simple operation.
An object of the present invention is to provide a method and an apparatus for producing a cutout mask that can be produced with high quality.

【0013】[0013]

【課題を解決するための手段】本発明は、画像データを
画面上に表示して切抜きマスクを作成する方法におい
て、表示画像の切抜こうとする物体形状の輪郭線に対応
して、ベジェ曲線の始点及び終点を入力すると共に、該
ベジェ曲線の任意の制御点を入力する工程と、入力され
た始点、終点及び制御点に基づき、ベジェ曲線を発生す
る工程と、発生ベジェ曲線を前記画像と共に画面上に表
示する工程と、表示画面上のベジェ曲線及び画像を参照
して、前記輪郭線に対応するベジェ曲線が得られない場
合に、始点、終点又は制御点の少なくともいずれかを再
入力する工程と、前記輪郭線に対応するベジェ曲線から
切抜き線を作成する工程とを含むことにより、前記課題
を解決するものである。
According to the present invention, there is provided a method of displaying an image data on a screen and forming a cutout mask, the method comprising the steps of: Inputting a start point and an end point, and inputting an arbitrary control point of the Bezier curve, generating a Bezier curve based on the input start point, end point and control point, and displaying the generated Bezier curve together with the image. A step of displaying the above, and a step of re-inputting at least one of a start point, an end point, and a control point when a Bezier curve corresponding to the contour line cannot be obtained with reference to the Bezier curve and the image on the display screen And a step of forming a cutout line from a Bezier curve corresponding to the contour line.

【0014】又、画像データを画像表示手段の画面上に
表示して切抜きマスクを作成する装置において、表示画
像の切抜こうとする物体形状の輪郭線に対応して、ベジ
ェ曲線の始点及び終点を入力すると共に、該ベジェ曲線
の任意の制御点を入力するための手段と、入力された始
点、終点及び制御点に基づき、ベジェ曲線を発生するた
めの手段と、発生ベジェ曲線を前記画像と共に画面上に
表示するための手段と、表示画面上のベジェ曲線及び画
像を参照して、前記輪郭線に対応するベジェ曲線が得ら
れない場合に、始点、終点又は制御点の少なくともいず
れかを再入力するための手段と、前記輪郭線に対応する
ベジェ曲線から切抜き線を作成するための手段と、作成
された切抜き線に基づき、切抜きマスクデータを作成す
るための手段とを供えたことにより、前記課題を解決す
るものである。
Further, in an apparatus for displaying image data on a screen of an image display means to create a cutout mask, a start point and an end point of a Bezier curve are defined in correspondence with a contour of an object shape to be cut out of a display image. Means for inputting and inputting any control point of the Bezier curve, means for generating a Bezier curve based on the input start point, end point and control point, and displaying the generated Bezier curve together with the image. Referring to the Bezier curve and the image on the display screen, when the Bezier curve corresponding to the contour line cannot be obtained, re-input at least one of the start point, the end point, and the control point Means for creating a cutout line from a Bezier curve corresponding to the contour line, and means for creating cutout mask data based on the created cutout line. By was example it is intended to solve the above problems.

【0015】[0015]

【作用】発明者は、切抜きマスクを作成するに際して、
切抜き対象となる物体形状の輪郭線に沿った滑らかな切
抜き線を作成するべく種々の検討を行った。
When the inventor creates the cutout mask,
Various studies were performed to create a smooth cutout line along the contour of the object shape to be cutout.

【0016】この結果、前記物体形状の輪郭線に沿った
種々のベジェ(Bezier )曲線を用いることを着想し
た。
As a result, the idea of using various Bezier curves along the contour line of the object shape has been conceived.

【0017】即ち、まず、始点、終点及び制御点を入力
してベジェ曲線を発生させる。発生ベジェ曲線を切抜き
対象画像と共に画面上に表示する。表示画像を参照し
て、始点、終点及び制御点を必要に応じて再入力し、当
該ベジェ曲線のうちで最適なものを切抜き線に選択する
ことを見出したものである。このベジェ曲線において
は、発生条件としての始点、終点及び制御点の座標を変
えることにより、種々の曲線を得ることができる。
That is, first, a Bezier curve is generated by inputting a start point, an end point, and a control point. The generated Bezier curve is displayed on the screen together with the image to be clipped. With reference to the display image, the start point, the end point, and the control point are re-input as necessary, and it has been found that the optimum one of the Bezier curves is selected as the cutout line. In this Bezier curve, various curves can be obtained by changing the coordinates of the start point, end point, and control point as the generation conditions.

【0018】本発明は、前記のような知見に基づきなさ
れたもので、所望する切抜き線を簡単なオペレーション
(操作)で原画像の輪郭線によくフィット(合致)する
よう高品質に作成することができる。従って、切抜きマ
スクの品質を高くすることができる。
The present invention has been made based on the above-mentioned knowledge, and is intended to create a desired cutout line with a high quality so as to fit (match) a contour line of an original image with a simple operation. Can be. Therefore, the quality of the cutout mask can be improved.

【0019】ここで、前記ベジェ曲線について説明す
る。
Here, the Bezier curve will be described.

【0020】このベジェ曲線は、コンピュータ支援設計
(CAD)の曲線表現として、P.Bezier (P・ベジ
ェ フランス国)により研究されたものである。
This Bezier curve is represented by P.A. It was studied by Bezier (P. Bezier, France).

【0021】一般的なn 次のベジェ曲線は、n +1の特
徴点から、(1)に示す式によって作成される。
A general nth-order Bezier curve is created from the (n + 1) feature points by the equation shown in (1).

【0022】[0022]

【数1】 (Equation 1)

【0023】ここで、Bn (x ,y ):生成される曲線
の座標 t :媒介変数(0≦t ≦1) Pi (x ,y ):特徴点の座標、P0 が始点、Pnが終
点である。
Here, Bn (x, y): coordinates of the generated curve t: parameter (0 ≦ t ≦ 1) Pi (x, y): coordinates of the feature point, P0 is the start point, and Pn is the end point is there.

【0024】この(1)式により、媒介変数t を0から
1まで変化させることにより、始点P0 と終点Pn とを
両端とするn 次のベジェ曲線が作成される。
By changing the parameter t from 0 to 1 according to the equation (1), an nth-order Bezier curve having both ends of the start point P0 and the end point Pn is created.

【0025】コンピュータグラフィックスや文字フォン
トの表現においては、3次のベジェ曲線が用いられるこ
とが多い。本発明を実施する際には、いずれの次数のベ
ジェ曲線を用いることができる。しかしながら、高次の
ベジェ曲線では、制御点を多数入力する必要があること
から、後記する実施例では、この制御点を最少個(1
個)入力するだけで済む2次のベジェ曲線を利用してい
る。2次のベジェ曲線について、以下に簡単に説明す
る。
In expressing computer graphics and character fonts, a cubic Bezier curve is often used. In practicing the present invention, any order Bezier curve can be used. However, since it is necessary to input a large number of control points in a higher-order Bezier curve, in a later-described embodiment, the minimum number of control points (1
) Is used. The quadratic Bezier curve will be briefly described below.

【0026】2次のベジェ曲線においては、特徴点が始
点(x0,y0)、制御点(x1,y1)、終点(x2,y2)の3
点からなっている。発生するベジェ曲線上の点の座標を
(x(t ),y (t ))とすると、前記(1)の一般式
から、この座標(x (t),y (t ))が次式(2)、
(3)のように得られる。
In the quadratic Bezier curve, the feature points are three points of a start point (x0, y0), a control point (x1, y1), and an end point (x2, y2).
Consists of dots. Assuming that the coordinates of the point on the generated Bezier curve are (x (t), y (t)), from the general formula (1), the coordinates (x (t), y (t)) are expressed by the following formula ( 2),
It is obtained as in (3).

【0027】 x (t )=(1−t )2 ・x0+2(1−t )・t ・x1+t 2 ・x2…(2)[0027] x (t) = (1- t) 2 · x0 + 2 (1-t) · t · x1 + t 2 · x2 ... (2)

【0028】 y (t )=(1−t )2 ・y0+2(1−t )・t ・y1+t 2 ・y2…(3)[0028] y (t) = (1- t) 2 · y0 + 2 (1-t) · t · y1 + t 2 · y2 ... (3)

【0029】この得られたベジェ曲線は、図2に示すよ
うに、始点P0 と終点P2 を通ると共に、P0 、P2 を
結ぶ直線の中点M1と制御点P1 とを結ぶ直線の中点M2
を通る曲線となる。なお、この曲線は、楕円弧であ
る。
As shown in FIG. 2, the obtained Bezier curve passes through the start point P0 and the end point P2, and also has the middle point M2 of the straight line connecting the points P0 and P2 and the middle point M2 connecting the control point P1.
It becomes a curve passing through. Note that this curve is an elliptical arc.

【0030】ここで、2次のベジェ曲線を用いて好まし
い切抜き線を得る際に、例えば次のような手順で制御点
P1 を見つけ出すことができる。
Here, when obtaining a preferable cutout line using a quadratic Bezier curve, the control point P1 can be found, for example, in the following procedure.

【0031】即ち、オペレータはまず、輪郭線上に2点
始点P0 、終点P2 を指示する。その際、始点P0 と終
点P2 との間の輪郭線がS字の曲線にならないよう一定
向きの曲線となる範囲内でとる。この操作は、始点P0
からあまり遠すぎないよう終点P2 をとればよいので簡
単である。
That is, the operator first specifies two start points P0 and two end points P2 on the contour line. At this time, an outline between the start point P0 and the end point P2 is taken within a range in which the curve is oriented in a certain direction so as not to form an S-shaped curve. This operation is performed at the starting point P0
It is easy to set the end point P2 so as not to be too far from the terminal.

【0032】次いで、制御点P1 を決めるが、2次のベ
ジェ曲線では、両端の始点P0 、終点P2 を決めても、
まだ、2次元の自由度があるため、様々な曲がり具合の
曲線にフィットさせることができる。
Next, the control point P1 is determined. In the quadratic Bezier curve, even if the start point P0 and the end point P2 at both ends are determined,
Since there are still two-dimensional degrees of freedom, it is possible to fit curves with various bending conditions.

【0033】この場合、目的の曲線は、両端の始点P0
、終点P1 (の垂直2等分線)に関して、非対称でも
よい。
In this case, the target curve is the starting point P0 at both ends.
, May be asymmetric with respect to the end point P1 (vertical bisector).

【0034】制御点P1 の動きにつれてリアルタイムに
曲線を描くようにすれば、オペレータは、この描かれた
曲線をだんだんと目的の曲線に近づけていくように制御
点P1 を動かすことにより、平面上から、最適の制御点
P1 を難なく見つけ出すことができる。
If a curve is drawn in real time as the control point P1 moves, the operator moves the control point P1 so that the drawn curve gradually approaches the target curve, thereby making it possible to move the curve from the plane. , The optimum control point P1 can be found without difficulty.

【0035】従って、容易な操作により切抜き線を作成
することができる。
Therefore, a cutout line can be created by an easy operation.

【0036】[0036]

【実施例】以下、図面を参照して、本発明の実施例を詳
細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0037】この実施例は、図1に示すような、オペレ
ータの特徴点の入力により、ベジェ曲線を発生し、当該
ベジェ曲線から切抜き線を決定して切抜きマスクを作成
する装置である。
In this embodiment, as shown in FIG. 1, a Bezier curve is generated by input of a feature point by an operator, a cutout line is determined from the Bezier curve, and a cutout mask is created.

【0038】図1に示すように、前記切抜きマスク作成
装置は、画像、例えばカラー画像を映像画面上に表示す
る、例えばカラー陰極線管(カラーCRT)からなる出
力部14と、前記画面上の所望する位置を特徴点として
入力するための入力部10と、前記画面上に表示する画
像データや切抜きマスクデータ等を保存(セーブ)する
ためのストレージ12と、前記ストレージ12から読み
出した画像データ及び各切抜き処理部18、20で作成
したマスクデータを一旦格納して出力部14の画面上に
表示させるためのフレームメモリ16と、画像の切抜き
マスクを、フレームメモリ16上の画像データに基づき
自動的に作成するための自動切抜き処理部18と、前記
入力特徴点に基づき本発明により切抜き線を作成し又は
各種手法で切抜き線を指定し、その切抜き線から切抜き
マスクデータを作成するための手動切抜き処理部20
と、前記切抜き処理部18、20等を制御するための制
御用中央処理部(CPU)22とを備える。
As shown in FIG. 1, the cut-out mask forming apparatus includes an output unit 14 formed of, for example, a color cathode ray tube (color CRT) for displaying an image, for example, a color image, on a video screen; An input unit 10 for inputting a position to be performed as a feature point, a storage 12 for saving image data to be displayed on the screen, cutout mask data, and the like; image data read from the storage 12; A frame memory 16 for temporarily storing the mask data created by the cutout processing units 18 and 20 and displaying the mask data on the screen of the output unit 14, and an image cutout mask are automatically generated based on the image data on the frame memory 16. An automatic cutout processing unit 18 for creating a cutout line according to the present invention based on the input feature points, or cutout by various methods. Specified, the manual cut-out processing unit 20 for creating a cut-out mask data from the cutout line
And a control central processing unit (CPU) 22 for controlling the cutout processing units 18 and 20 and the like.

【0039】なお、前記入力部10には、例えばマウス
あるいはデジタイザを用いることができる。又、実施例
では、マウスの動きに従って、画面上のカーソルを移動
させ、マウス上の左右に設けられたスイッチのオン、オ
フでカーソルの位置座標を入力するようになっている。
The input unit 10 may be, for example, a mouse or a digitizer. In the embodiment, the cursor on the screen is moved in accordance with the movement of the mouse, and the position coordinates of the cursor are input by turning on and off switches provided on the left and right of the mouse.

【0040】又、フレームメモリ16に入力する画像デ
ータには、スキャナ等の画像データ入力部24から入力
されたものを用いることができる。入力画像データは直
接フレームメモリ16に入力したり、あるいは、一旦、
ストレージ12に保存し、必要に応じて読み出して、フ
レームメモリ16に入力したりすることができる。
The image data input to the frame memory 16 may be input from an image data input unit 24 such as a scanner. The input image data is directly input to the frame memory 16 or, once,
It can be stored in the storage 12, read as needed, and input to the frame memory 16.

【0041】又、前記画像データには、他の画像作成装
置で作成されて磁気ディスク、光ディスク等に記録され
た画像データを用いることができる。
As the image data, image data created by another image creating apparatus and recorded on a magnetic disk, an optical disk, or the like can be used.

【0042】前記自動切抜き処理部18は、画像データ
に基づき、種々の手法により(例えば出願人が既に提出
した特願平2−38104:未公知)切抜きマスクデー
タを作成するものである。
The automatic cutout processing section 18 creates cutout mask data based on image data by various methods (for example, Japanese Patent Application No. 2-38104, which has already been submitted by the applicant).

【0043】前記手動切抜き処理部20は、切抜き線を
作成した後に、切抜き線を境界とするいずれの側の領域
か背景領域かをオペレータの選択により、又は、自動的
な選択により指定し、背景領域とされた領域にマスクデ
ータをオンとして切抜きマスクデータを作成するもので
ある。
After the cutout line is created, the manual cutout processing section 20 designates which side of the cutout line as the boundary or the background area by the operator's selection or by automatic selection, and The mask data is turned on in the area defined as the area, and cutout mask data is created.

【0044】次に実施例の作用を説明する。Next, the operation of the embodiment will be described.

【0045】実施例に係る切抜きマスク作成装置におい
ては、図3に示す手順に従って切抜き処理を行う。
In the cutout mask producing apparatus according to the embodiment, the cutout processing is performed according to the procedure shown in FIG.

【0046】即ち、図3に示すように、まず、ストレー
ジ12からカラー画像データをフレームメモリ16に転
送して、画像を各種倍率で出力部14の画面上に表示す
る(ステップ101)。オペレータは、表示画像を参照
して、手動切抜き処理(ステップ102)、あるいは、
自動切抜き処理(ステップ103)のいずれかを選択
し、選択した切抜き処理に従って切抜きマスクデータを
作成する。この場合、必要に応じて切抜き線を境界とす
るいずれの側の領域が背景領域かをオペレータが指定す
る。又は、自動的に背景領域を指定する。この指定背景
領域について、マスクデータをオンとして、切抜きマス
クデータを作成する。
That is, as shown in FIG. 3, first, the color image data is transferred from the storage 12 to the frame memory 16, and the image is displayed on the screen of the output unit 14 at various magnifications (step 101). The operator refers to the display image and manually cuts out (step 102) or
One of the automatic cutout processes (step 103) is selected, and cutout mask data is created according to the selected cutout process. In this case, the operator specifies, as necessary, which side of the area bounded by the cutout line is the background area. Alternatively, the background area is automatically specified. For this designated background area, the mask data is turned on, and cutout mask data is created.

【0047】次いで、作成されたマスクデータをストレ
ージ12に保存する(ステップ104)。
Next, the created mask data is stored in the storage 12 (step 104).

【0048】なお、前記マスクデータは前記のようにセ
ーブする他、図示されない画像の編集装置あるいはマス
クの出力装置に転送することができる。
The mask data can be transferred to an image editing device (not shown) or a mask output device, in addition to being saved as described above.

【0049】ここで、一般に、切抜き処理の手法は、画
面を参照しながら入力部から特徴点の座標データを入力
する等して切抜き線をトレースする手法と、画像処理の
各処理技術を用いて自動的に切抜き線を作成する手法と
の2つに大別できる。しかるに、切抜き対象となる画像
の状況によっては、自動切抜き処理の手法では、望まし
い切抜き線が得られない場合がある。そのような場合に
は、手動切抜き処理の手法を用いて切抜き線を作成する
必要がある。
Here, in general, the clipping process is performed by using a method of tracing a clipping line by inputting coordinate data of a feature point from an input unit while referring to a screen, and a processing technique of image processing. A method of automatically creating a cutout line can be roughly divided into two methods. However, depending on the state of the image to be clipped, a desired clipping line may not be obtained by the automatic clipping method. In such a case, it is necessary to create a cutout line using a manual cutout processing technique.

【0050】そこで実施例では、オペレータの選択によ
り手動切抜き処理ステップ(ステップ102)に進み、
手動切抜き処理による切抜き線を本発明により作成す
る。又、必要に応じて輪郭線をなぞる等して切抜き線を
作成する。
Therefore, in the embodiment, the process proceeds to a manual cutout processing step (step 102) by the selection of the operator.
A cutout line by a manual cutout process is created according to the present invention. In addition, a cutout line is created by tracing a contour line as necessary.

【0051】以下、本実施例による手動切抜き処理の詳
細な手順を、図4の流れ図に従って説明する。
Hereinafter, the detailed procedure of the manual cutting process according to the present embodiment will be described with reference to the flowchart of FIG.

【0052】即ち、まず、オペレータが画面上に表示さ
れる切抜こうとする物体形状を参照しながら、同時に表
示されるカーソルの位置を移動させて、前記物体形状の
輪郭線上の一点を始点P0 として当該カーソルで指示す
る(ステップ201)。この場合、オペレータが、入力
部10のマウス上の左ボタンを押圧してクリックするこ
とにより、画面上のカーソルで指示する点P0 の座標
(x0,y0)を入力する。図5の(A)にカーソルで指示
する始点P0 の例を示す。なお、図5の(A)〜(D)
では、カーソルを矢印で示している。
That is, first, the operator refers to the object shape to be cut out displayed on the screen and moves the position of the simultaneously displayed cursor to set one point on the contour line of the object shape as the starting point P0. An instruction is given using the cursor (step 201). In this case, the operator inputs the coordinates (x0, y0) of the point P0 indicated by the cursor on the screen by pressing and clicking the left button on the mouse of the input unit 10. FIG. 5A shows an example of the starting point P0 indicated by the cursor. In addition, (A)-(D) of FIG.
Here, the cursor is indicated by an arrow.

【0053】次いで、手動切抜き処理部20は、入力始
点P0 及びカーソルで指示される座標間に直線を引き、
図5の(A)に示されるように当該直線をリアルタイム
に画面上に表示する(ステップ202)。この直線の表
示は、カーソルが移動する毎に演算して表示する。又、
オペレータは、マウスを操作することにより、図5の
(B)に示すように、前記始点P0 と1続きの輪郭線上
の点にカーソルを移動させる。
Next, the manual cutout processing section 20 draws a straight line between the input start point P0 and the coordinates indicated by the cursor,
The straight line is displayed on the screen in real time as shown in FIG. 5A (step 202). The display of this straight line is calculated and displayed each time the cursor moves. or,
By operating the mouse, the operator moves the cursor to a point on the contour line extending from the start point P0 as shown in FIG. 5B.

【0054】次いで、前記始点P0 及びカーソル間の直
線を表示している際に、始点P0 の入力座標を修正する
場合や、別手法により切抜き処理を行うこととした場合
には、終点P2 の座標(x2,y2)の入力を取り止めるこ
とができる(ステップ203)。
Next, when displaying the straight line between the start point P0 and the cursor, if the input coordinates of the start point P0 are to be corrected, or if the clipping process is to be performed by another method, the coordinates of the end point P2 are determined. The input of (x2, y2) can be canceled (step 203).

【0055】このように、座標入力を取り止めるとき
は、ステップ210に進んで、入力しようとするベジェ
曲線が1つ目のものかどうかを確認する。
As described above, when the coordinate input is stopped, the process proceeds to step 210 to check whether the Bezier curve to be input is the first one.

【0056】1つ目の場合は、ベジェ曲線の入力処理を
終了する。一方、1つ目でない場合は、1つ前に作成し
た曲線の始点に始点P0 の座標(x0,y0)を戻し、当該
1つ前のベジェ曲線自体は取り消して(ステップ21
1)、ステップ202に戻る。
In the first case, the Bezier curve input processing ends. On the other hand, if it is not the first curve, the coordinates (x0, y0) of the start point P0 are returned to the start point of the curve created immediately before, and the previous Bezier curve itself is canceled (step 21).
1) Return to step 202.

【0057】一方、終点P2 の座標を入力する場合に
は、カーソルで指示した点の座標をベジェ曲線の終点P
2 の座標(x2,y2)として入力する(ステップ20
4)。
On the other hand, when inputting the coordinates of the end point P2, the coordinates of the point designated by the cursor are changed to the end point P of the Bezier curve.
2 (x2, y2) (step 20)
4).

【0058】次いで、カーソルで指示する点を仮に制御
点P1 の座標(x1,y1)としてリアルタイムに入力す
る。前記入力された始点P0、終点P2 、制御点P1 の
各座標(x0,y0)、(x2,y2)、(x1,y1)から、前出
(2)、(3)式を用いてベジェ曲線(x (t ),y
(t ))を作成して、該ベジェ曲線を画面上にリアルタ
イムに表示する(ステップ205)。このように表示さ
れたベジェ曲線の例を図5の(C)に示す。
Next, a point designated by the cursor is temporarily input as coordinates (x1, y1) of the control point P1. From the coordinates (x0, y0), (x2, y2), (x1, y1) of the input start point P0, end point P2, and control point P1, the Bezier curve is obtained using the above equations (2) and (3). (X (t), y
(T)) is created, and the Bezier curve is displayed on the screen in real time (step 205). An example of the Bezier curve displayed in this way is shown in FIG.

【0059】オペレータは、カーソルにより制御点P1
を種々に変えて画面上に種々のベジェ曲線を表示させ
る。この際、表示されたベジェ曲線を参照しながら、当
該ベジェ曲線が輪郭線に一致する制御点P1 を捜す。
The operator moves the control point P1 by using the cursor.
Are variously changed to display various Bezier curves on the screen. At this time, while referring to the displayed Bezier curve, a control point P1 where the Bezier curve coincides with the contour line is searched.

【0060】満足すべきベジェ曲線が得られたか否かを
判断し、得られたならば、そのカーソルで指示する座標
を制御点P1 の座標(x1,y1)として決定する(ステッ
プ206)。これにより1つの切抜き線が決定される。
It is determined whether a satisfactory Bezier curve has been obtained, and if so, the coordinates designated by the cursor are determined as the coordinates (x1, y1) of the control point P1 (step 206). Thereby, one cutout line is determined.

【0061】一方、満足すべき曲線が得られない場合に
は、ステップ202に戻って、終点P2 を設定し直す
(ステップ206)。なお、2次のベジェ曲線は2次曲
線となるもので、曲がりが1つあるような曲線しか表わ
すことができず、当該曲線で輪郭線に合うように設定し
ていく必要がある。
On the other hand, if a satisfactory curve cannot be obtained, the flow returns to step 202 to set the end point P2 again (step 206). Note that the quadratic Bezier curve is a quadratic curve, and can represent only a curve having one bend, and it is necessary to set the curve to match the contour.

【0062】次いで、決定された制御点P1 の座標(x
1,y1)を設定して、今回のベジェ曲線を設定し、記憶
する(ステップ207)。
Next, the coordinates (x
1, y1) is set, and the current Bezier curve is set and stored (step 207).

【0063】次いで、切抜き線作成処理を続行するか否
かを判断する(ステップ208)、続行する場合には、
ステップ207で設定したベジェ曲線の終点の座標P2
(x2,y2)を新たなベジェ曲線の始点P0 の座標(x0,
y0)として(ステップ209)、新たなベジェ曲線を作
成するためにステップ202に戻る。この場合における
カーソルの状態は、図5の(D)に示されるようにな
り、ステップ202以降の手順を再び繰返して、次の曲
線を作成する。
Next, it is determined whether or not to continue the cutout line creation processing (step 208).
Coordinate P2 of the end point of the Bezier curve set in step 207
The coordinates (x0, y2) of the starting point P0 of the new Bezier curve (x0, y2)
y0) (step 209), the process returns to step 202 to create a new Bezier curve. The state of the cursor in this case is as shown in FIG. 5D, and the procedure after step 202 is repeated again to create the next curve.

【0064】一方、一通りの切抜き線が作成されて切抜
き線作成処理を続行しない場合には、終了信号をマウス
により入力して作成された切抜き線全体を確定させる。
この切抜き線のデータから切抜きマスクデータを作成し
て、ストレージ12等へ入力する。
On the other hand, when one cutout line is created and the cutout line creation processing is not continued, an end signal is input by a mouse to determine the entire cutout line created.
Cutout mask data is created from the cutout line data and input to the storage 12 or the like.

【0065】決定された切抜きマスクデータはレイアウ
トスキャナに出力され、これに従って、レイアウトスキ
ャナが切抜きマスクデータを参照しながら、イメージメ
モリに記憶されたカラー画像データ中の抽出すべきカラ
ー画像データを読み出し、印刷フィルム版に色別に切出
し露光出力する。
The determined cutout mask data is output to the layout scanner, and the layout scanner reads out the color image data to be extracted from the color image data stored in the image memory while referring to the cutout mask data. Cut out the print film plate for each color and output it.

【0066】又、決定された切抜きマスクデータはマス
クカッタを有した自動作図機に出力され、これに従い自
動作図機が切抜きマスクフィルムを作成するようにして
も良い。
The determined cutout mask data is output to an automatic drawing machine having a mask cutter, and the automatic drawing machine may create a cutout mask film in accordance with the data.

【0067】なお、前記実施例においては、2次のベジ
ェ曲線を前出(2)、(3)式で作成していたが、本発
明を実施する際のベジェ曲線はこのような2次のものに
限定されず、他の次数のベジェ曲線を用いることができ
る。
In the above-described embodiment, the quadratic Bezier curve is created by the above equations (2) and (3). However, the Bezier curve when the present invention is implemented is such a quadratic Bezier curve. The Bezier curve of another order can be used without being limited to this.

【0068】ここで、2次のベジェ曲線は結局、2次曲
線となるもので、カーブが1つあるような曲線、つま
り、極大(又は極小)点が1つでもあるような曲線しか
作成できない。従って、輪郭線が複雑な形状を有してい
て、3次以上の曲線に対応したものである場合、この輪
郭線には、2次のベジェ曲線を一致させることはできな
い。このような場合には、3次以上のベジェ曲線を用い
ることができる。但し、3次以上のベジェ曲線を用いた
場合、曲線の表わせる範囲は広がるが、複数の制御点を
入力して演算する必要があるため、操作及び演算が手数
の掛るものとなる。これに対して、2次のベジェ曲線は
計算が3次以上に比較して簡単なため、演算速度が早
く、リアルタイムの表示を高速、確実に行うことがで
き、制御点決定が早くできる。
Here, the quadratic Bezier curve is eventually a quadratic curve, and only a curve having one curve, that is, a curve having at least one maximum (or minimum) point can be created. . Therefore, if the contour has a complicated shape and corresponds to a tertiary or higher-order curve, a second-order Bezier curve cannot be matched with the contour. In such a case, a cubic or higher order Bezier curve can be used. However, when a cubic or higher-order Bezier curve is used, the range in which the curve can be expressed is widened, but it is necessary to input a plurality of control points to perform the calculation, so that the operation and the calculation are troublesome. On the other hand, since the calculation of the second-order Bezier curve is simpler than that of the third-order or higher, the calculation speed is fast, real-time display can be performed quickly and reliably, and the control point can be determined quickly.

【0069】又、前記実施例においては、図1に示すよ
うな構成の切抜きマスク作成装置を例示したが、本発明
の実施装置は図のものに限定されず、他の構成のもので
本発明を実施できる。例えば、自動切抜き処理部18を
並設せずに全て手動設定により切抜き線を作成するよう
にした切抜きマスク作成装置で本発明を実施することが
できる。
Further, in the above-described embodiment, the cutout mask forming apparatus having the structure as shown in FIG. 1 has been exemplified. However, the apparatus for implementing the present invention is not limited to the one shown in the figure, and the present invention may be applied to other structures. Can be implemented. For example, the present invention can be implemented by a cutout mask creating apparatus in which cutout lines are created by manual setting without automatically arranging the automatic cutout processing units 18.

【0070】[0070]

【発明の効果】以上説明した通り、本発明によれば、所
望する切抜き線を、簡単なオペレーション(操作)で原
画像の輪郭によくフィット(合致)するよう高品質に作
成することができ、従って、マスクデータの品質を高く
することができるという優れた効果が得られる。
As described above, according to the present invention, a desired cutout line can be created with a high quality so as to fit (match) the outline of the original image with a simple operation. Therefore, an excellent effect that the quality of the mask data can be improved can be obtained.

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

【図1】図1は、本発明の実施例に係る切抜きマスク作
成装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a cutout mask producing apparatus according to an embodiment of the present invention.

【図2】図2は、本発明の原理を説明するための、2次
のベジェ曲線が作成された状態例を示す線図である。
FIG. 2 is a diagram illustrating an example of a state in which a quadratic Bezier curve is created for explaining the principle of the present invention.

【図3】図3は、前記実施例の作用を説明するための、
マスク作成手順を示す流れ図である。
FIG. 3 is a diagram for explaining the operation of the embodiment.
9 is a flowchart showing a mask creation procedure.

【図4】図4は、同じく、前記マスク作成手順におけ
る、切抜き線作成手順を詳細に示す流れ図である。
FIG. 4 is a flowchart showing in detail a cutout line creation procedure in the mask creation procedure.

【図5】図5は、同じく、切抜き線を作成する際のベジ
ェ曲線と処理画像の表示例を示す平面図である。
FIG. 5 is a plan view showing a display example of a Bezier curve and a processed image when a cutout line is created.

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

10…入力部、 12…ストレージ、 14…出力部、 16…フレームメモリ、 20…手動切抜き処理部、 22…制御用中央処理ユニット(CPU)、 24…画像データ入力部。 DESCRIPTION OF SYMBOLS 10 ... input part, 12 ... storage, 14 ... output part, 16 ... frame memory, 20 ... manual cutout processing part, 22 ... control central processing unit (CPU), 24 ... image data input part.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 田中 和彦 東京都新宿区市谷加賀町一丁目1番1号 大日本印刷株式会社内 (56)参考文献 特開 昭58−176638(JP,A) 特開 昭59−226347(JP,A) 特開 昭64−81955(JP,A) 特開 平3−46657(JP,A) 特開 平3−240884(JP,A) (58)調査した分野(Int.Cl.7,DB名) G03F 1/00 - 1/16 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Kazuhiko Tanaka 1-1-1 Ichigaya-Kagacho, Shinjuku-ku, Tokyo Dai Nippon Printing Co., Ltd. (56) References JP-A-58-176638 (JP, A) JP-A-59-226347 (JP, A) JP-A-64-81955 (JP, A) JP-A-3-46657 (JP, A) JP-A-3-240884 (JP, A) (58) Int.Cl. 7 , DB name) G03F 1/00-1/16

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像データを画面上に表示して切抜きマス
クを作成する方法において、表示画像の切抜こうとする
物体形状の輪郭線に対応して、ベジェ曲線の始点及び終
点を入力すると共に、該ベジェ曲線の任意の制御点を入
力する工程と、入力された始点、終点及び制御点に基づ
き、ベジェ曲線を発生する工程と、発生ベジェ曲線を前
記画像と共に画面上に表示する工程と、表示画面上のベ
ジェ曲線及び画像を参照して、前記輪郭線に対応するベ
ジェ曲線が得られない場合に、始点、終点又は制御点の
少なくともいずれかを再入力する工程と、前記輪郭線に
対応するベジェ曲線から切抜き線を作成する工程と、を
含むことを特徴とする切抜きマスク作成方法。
1. A method for creating a clipping mask by displaying image data on a screen, wherein a starting point and an ending point of a Bezier curve are input in correspondence with a contour line of an object shape to be clipped of a display image. Inputting an arbitrary control point of the Bezier curve, generating a Bezier curve based on the input start point, end point and control point, displaying the generated Bezier curve together with the image on a screen, and displaying Referring to the Bezier curve and the image on the screen, when a Bezier curve corresponding to the contour cannot be obtained, re-inputting at least one of a start point, an end point, and a control point; Creating a cutout line from a Bezier curve.
【請求項2】画像データを画像表示手段の画面上に表示
して切抜きマスクを作成する装置において、表示画像の
切抜こうとする物体形状の輪郭線に対応して、ベジェ曲
線の始点及び終点を入力すると共に、該ベジェ曲線の任
意の制御点を入力するための手段と、 入力された始
点、終点及び制御点に基づき、ベジェ曲線を発生するた
めの手段と、発生ベジェ曲線を前記画像と共に画面上に
表示するための手段と、表示画面上のベジェ曲線及び画
像を参照して、前記輪郭線に対応するベジェ曲線が得ら
れない場合に、始点、終点又は制御点の少なくともいず
れかを再入力するための手段と、前記輪郭線に対応する
ベジェ曲線から切抜き線を作成するための手段と、作成
された切抜き線に基づき、切抜きマスクデータを作成す
るための手段と、を供えたことを特徴とする切抜きマス
ク作成装置。
2. An apparatus for displaying an image data on a screen of an image display means to create a cutout mask, wherein a start point and an end point of a Bezier curve are defined in correspondence with an outline of an object shape to be cut out of a display image. Means for inputting and inputting an arbitrary control point of the Bezier curve; means for generating a Bezier curve based on the input start point, end point and control point; and displaying the generated Bezier curve together with the image. Referring to the Bezier curve and the image on the display screen, when the Bezier curve corresponding to the contour line cannot be obtained, re-input at least one of the start point, the end point, and the control point Means for creating a cutout line from a Bezier curve corresponding to the contour line, and means for creating cutout mask data based on the created cutout line. A cutout mask making apparatus, characterized in that:
JP3672191A 1991-02-06 1991-02-06 Cutout mask making method and apparatus Expired - Fee Related JP3065364B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3672191A JP3065364B2 (en) 1991-02-06 1991-02-06 Cutout mask making method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3672191A JP3065364B2 (en) 1991-02-06 1991-02-06 Cutout mask making method and apparatus

Publications (2)

Publication Number Publication Date
JPH04254854A JPH04254854A (en) 1992-09-10
JP3065364B2 true JP3065364B2 (en) 2000-07-17

Family

ID=12477612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3672191A Expired - Fee Related JP3065364B2 (en) 1991-02-06 1991-02-06 Cutout mask making method and apparatus

Country Status (1)

Country Link
JP (1) JP3065364B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3963033B2 (en) 1997-07-31 2007-08-22 ソニー株式会社 Time-series data generation apparatus and method, curve editing apparatus and method, and recording medium recording program
JP5173724B2 (en) * 2008-10-07 2013-04-03 株式会社河合楽器製作所 Music symbol input device and music symbol input program
CN113706970B (en) * 2021-08-26 2023-04-28 北京金三惠科技有限公司 Method and computer program for displaying music score connecting line

Also Published As

Publication number Publication date
JPH04254854A (en) 1992-09-10

Similar Documents

Publication Publication Date Title
JPH0719294B2 (en) How to create a graph using a computer
JPH0816820A (en) Three-dimensional animation generation device
KR960013365B1 (en) Specifying 3d points in 2d graphic displays
JP3038521B2 (en) Product drawing creation device
JPH02101456A (en) Producing method for clipped mask data
JP3065364B2 (en) Cutout mask making method and apparatus
JPH11250271A (en) Layout editing method, device therefor and record medium recorded with program for executing the processing
US6806878B2 (en) Graphic editing apparatus for adding or deleting curve to/from graphics by interactive processing
US5384907A (en) Method for carrying out scissoring -processing of stroke letters in a screen display
JP3524380B2 (en) Broken line drawing device, broken line drawing method, and storage medium
KR100721470B1 (en) Apparatus of preparing moving images
JPH06301751A (en) Editing and display method for preparing three-dimensional data and device therefor
JPH0620021A (en) Method and device for graphic processing
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JP2721344B2 (en) Image processing method
JPS62197870A (en) Correcting device for vectorial graphic form
JPH01189692A (en) Dot matrix converting method for registering character type
JP3090978B2 (en) Image cutout processing device
JPS59184961A (en) Creation of formless list
JPH08235382A (en) Three-dimensional computer graphics editing device
JPH08287265A (en) Segment display method
JPH0855244A (en) Stereographic data input method
JP2000235651A (en) Compiling method/device for raster data
JPH07230482A (en) Plotting method for cad drawing
JPH06195437A (en) Three dimensional animation processing system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090512

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090512

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100512

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees