JPH0991457A - Image contour extract device - Google Patents

Image contour extract device

Info

Publication number
JPH0991457A
JPH0991457A JP7246194A JP24619495A JPH0991457A JP H0991457 A JPH0991457 A JP H0991457A JP 7246194 A JP7246194 A JP 7246194A JP 24619495 A JP24619495 A JP 24619495A JP H0991457 A JPH0991457 A JP H0991457A
Authority
JP
Japan
Prior art keywords
contour
image
extraction
extracting
image 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.)
Pending
Application number
JP7246194A
Other languages
Japanese (ja)
Inventor
Takafumi Ito
隆文 伊藤
Masatoshi Murakami
雅俊 村上
Masahiro Yamaguchi
正博 山口
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.)
Toshiba Corp
Toshiba Software Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Software Engineering Corp
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 Toshiba Corp, Toshiba Software Engineering Corp filed Critical Toshiba Corp
Priority to JP7246194A priority Critical patent/JPH0991457A/en
Publication of JPH0991457A publication Critical patent/JPH0991457A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve the accuracy of contour extraction by improving visual recognition performance of a progressing state during contour extraction and allowing the operator to command the progress of the contour extract operation. SOLUTION: When image data such as a photograph or illustration are entered by an image scanner 24, the image data are stored in an image buffer 13c in a RAM 13 and displayed on a display device 18. When a mouse 16 is used to designate roughly a contour point for start of contour extraction with respect to the contour extract object of the image data, a CPU 11 executes stepwise the contour extract processing according to a contour extraction program 12c stored in a ROM 12 to extract an image contour from the image data. Then contour line data of each stage obtained by the contour extraction processing are stored in a contour memory 13d and outputted to the display device 18, on which the data are displayed. The progressing state during contour extraction is easily confirmed by the display of the contour at each stage.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、パーソナルコンピ
ュータ、日本語ワードプロセッサ等において、画像の切
出しを行なう際に画像の輪郭を自動的に抽出する画像輪
郭抽出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image contour extracting device for automatically extracting the contour of an image when cutting out the image in a personal computer, a Japanese word processor or the like.

【0002】[0002]

【従来の技術】パーソナルコンピュータや日本語ワード
プロセッサ等の文書作成装置において、写真やイラスト
などを装置内に読み込み、文書作成時のパーツデータと
して扱うイメージ処理機能を備えたものがある。これら
の写真やイラストは、イメージスキャナにより光学的に
読取り、イメージデータとして扱っている。このような
イメージ処理の機能を備えた装置において、絵や写真な
どのイメージデータを使用するとき、風景に人物などを
合成したりするのに、イメージデータの一部だけを使用
したいときがある。このとき、イメージデータから人物
などを切出さなければならない。
2. Description of the Related Art Some document creating apparatuses such as personal computers and Japanese word processors have an image processing function of reading a photograph, an illustration and the like into the apparatus and treating them as part data when creating a document. These photographs and illustrations are optically read by an image scanner and treated as image data. In an apparatus having such an image processing function, when using image data such as a picture or a photograph, it is sometimes desired to use only a part of the image data to synthesize a person or the like in a landscape. At this time, a person or the like must be cut out from the image data.

【0003】イメージデータから一部の画像を切出す場
合には、切出したい画像の輪郭を抽出し、この抽出した
輪郭に沿って画像の切出しを行なっている。画像の輪郭
抽出には、いくつかの方法があるが、最初に自動的ある
いは人手によって抽出対象とする輪郭を囲むように大ま
かに設定された輪郭線を段階的に狭めていくことによっ
て、最終的に抽出対象となる輪郭線を抽出する方法があ
る。図6は、この方法による輪郭抽出過程を示したもの
である。図6の(a)は、元のイメージデータ31よ
り、自動車の画像を輪郭抽出対象32とした場合の例を
示したものである。上記イメージデータ31に対し、
(b)に示すように輪郭抽出対象32を囲む大まかな抽
出開始輪郭線(初期状態)33を自動、または人手によ
り設定する。この輪郭線33は、実際には図7に示すよ
うな輪郭点41を結ぶ多角形である。矢印42は、輪郭
点41の移動方向を示している。
When cutting out a part of the image from the image data, the outline of the image to be cut out is extracted, and the image is cut out along the extracted outline. There are several methods for extracting the contour of an image, but the final contour is narrowed stepwise by automatically or manually to surround the contour to be extracted. There is a method for extracting the contour line to be extracted. FIG. 6 shows the contour extraction process by this method. FIG. 6A shows an example in which an image of a car is used as the contour extraction target 32 from the original image data 31. For the above image data 31,
As shown in (b), a rough extraction start contour line (initial state) 33 surrounding the contour extraction target 32 is set automatically or manually. The contour line 33 is actually a polygon connecting the contour points 41 as shown in FIG. 7. The arrow 42 indicates the moving direction of the contour point 41.

【0004】次に図6(c)に示すように上記輪郭点4
1を一定の規則に従って実際のイメージ、即ち輪郭抽出
対象32の輪郭線に向けて移動させる。この場合、輪郭
点41は移動の過程において、一定の規則で追加、ある
いは削除される。図6(c)における34は、抽出途中
の輪郭線を示しているが、実際には表示されないもので
ある。
Next, as shown in FIG.
1 is moved toward the actual image, that is, the contour line of the contour extraction target 32 according to a certain rule. In this case, the contour point 41 is added or deleted according to a certain rule in the process of movement. Reference numeral 34 in FIG. 6C shows a contour line in the middle of extraction, but it is not actually displayed.

【0005】そして、輪郭点41が一定の規則に従っ
て、輪郭抽出対象32の輪郭に到達したと判断される
と、そこで輪郭点41の移動は停止し、それ以上は移動
しない。全ての輪郭点41が到達条件を満たせば、そこ
で輪郭が抽出されたものと判断し、その時点の輪郭点4
1を結ぶ多角形が図6(d)に示すように抽出輪郭線3
5となる。
When it is determined that the contour point 41 has reached the contour of the contour extraction target 32 according to a certain rule, the movement of the contour point 41 is stopped there, and no further movement is performed. If all the contour points 41 satisfy the reaching condition, it is judged that the contour is extracted there, and the contour points 4 at that time are determined.
The polygon connecting 1 is the extracted contour line 3 as shown in FIG.
It becomes 5.

【0006】[0006]

【発明が解決しようとする課題】上記従来の画像輪郭抽
出方法では、抽出途中の輪郭線34が表示されないの
で、輪郭抽出の進行状況を確認することができないとい
う問題があった。また、イメージの内容と到達条件の決
め方によっては、図8(a)に示すように実際の輪郭よ
りも広い輪郭線35を抽出したり、図8(b)に示すよ
うに実際の輪郭よりも狭い輪郭線35を抽出したりする
場合があり、期待通り結果が得られない場合があった。
The conventional image contour extraction method described above has a problem that the progress of contour extraction cannot be confirmed because the contour line 34 during extraction is not displayed. Depending on the content of the image and how to determine the reaching condition, a contour line 35 wider than the actual contour is extracted as shown in FIG. 8A, or a contour line 35 wider than the actual contour is extracted as shown in FIG. 8B. In some cases, a narrow contour line 35 may be extracted, and the result may not be obtained as expected.

【0007】本発明は上記実情に鑑みてなされたもの
で、輪郭抽出中の進行状況の視認性を向上できると共
に、輪郭抽出動作の進行を操作者によりコントロールで
きるようにして輪郭抽出の精度を向上し得る画像輪郭抽
出装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and the visibility of the progress status during contour extraction can be improved, and the accuracy of contour extraction is improved by allowing the operator to control the progress of the contour extraction operation. It is an object of the present invention to provide an image contour extraction device capable of performing the above.

【0008】[0008]

【課題を解決するための手段】本発明に係る画像輪郭抽
出装置は、イメージデータを入力するイメージデータ入
力手段と、この手段により入力されたイメージデータを
格納するイメージバッファと、このイメージバッファに
格納されたイメージデータを表示する表示手段と、上記
入力されたイメージデータからイメージ中の画像輪郭を
抽出する輪郭抽出手段と、この輪郭抽出手段が段階的に
輪郭抽出動作を実行中に得られる各段階の輪郭線を上記
表示手段に表示する輪郭線表示手段とを具備したことを
特徴とする。
An image contour extracting apparatus according to the present invention includes an image data input unit for inputting image data, an image buffer for storing the image data input by this unit, and an image buffer for storing the image data in the image buffer. Means for displaying the selected image data, a contour extracting means for extracting an image contour in an image from the input image data, and each step obtained while the contour extracting means executes the contour extracting operation stepwise. And a contour line display means for displaying the contour line of the above on the display means.

【0009】(作用)輪郭抽出途中の各段階の輪郭線を
表示手段に表示することにより、輪郭抽出動作の進行状
況を容易に確認できる。この結果、輪郭抽出動作の進行
を操作者からの指示により制御することが可能となり、
輪郭抽出の精度を向上することができる。
(Operation) The progress of the contour extraction operation can be easily confirmed by displaying the contour line at each stage during the contour extraction on the display means. As a result, it is possible to control the progress of the contour extraction operation by an instruction from the operator,
The accuracy of contour extraction can be improved.

【0010】[0010]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態に係る文書作成装置を説明する。図1は文書作
成装置の構成を示すブロック図である。同図において、
11はマイクロプロセッサ(以下、CPUと称す)、1
2,13はCPU11によりアクセスされるメモリ(R
OM,RAM)である。
BEST MODE FOR CARRYING OUT THE INVENTION A document creating apparatus according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the document creation device. In the figure,
Reference numeral 11 denotes a microprocessor (hereinafter referred to as CPU), 1
2 and 13 are memories (R
OM, RAM).

【0011】CPU11は、装置全体の制御を行なうも
ので、ROM12およびRAM13をアクセスして入力
指示に従うプログラムの起動で、かな漢字変換処理を含
む文書作成処理、画像輪郭抽出処理等を実行する。
The CPU 11 controls the entire apparatus. The CPU 11 accesses the ROM 12 and the RAM 13 and activates a program according to an input instruction to execute a document creation process including a kana-kanji conversion process, an image contour extraction process, and the like.

【0012】ROM12には、システムROM12a、
辞書ROM12b等が設けられと共に、輪郭抽出プログ
ラム12cが格納されている。システムROM12aに
は、CPU11を起動するための制御プログラムが格納
されている。辞書ROM12bには、かな漢字変換用の
辞書データが格納されている。輪郭抽出プログラム12
cは、イメージ処理において、イメージデータ中の輪郭
抽出対象に対する輪郭抽出の制御を行なうためのプログ
ラムである。
The ROM 12 includes a system ROM 12a,
A dictionary ROM 12b and the like are provided, and a contour extraction program 12c is stored. A control program for starting the CPU 11 is stored in the system ROM 12a. The dictionary data for kana-kanji conversion is stored in the dictionary ROM 12b. Contour extraction program 12
c is a program for controlling the contour extraction for the contour extraction target in the image data in the image processing.

【0013】RAM13には、文書バッファ13a、動
作設定メモリ13b、イメージバッファ13c、輪郭線
メモリ13d、印刷設定バッファ13e等が設けられて
いる。文書バッファ13aには、文書データが格納され
る。この文書データは、文字コードと同コードに付加さ
れる属性情報からなっている。動作設定メモリ13bに
は、輪郭抽出を行なう場合の設定データが格納される。
イメージバッファ13cには、後述するイメージスキャ
ナ24等により取り込まれたイメージデータが格納され
る。輪郭線メモリ13dには、抽出した輪郭線データが
格納される。印刷設定バッファ13eには、印刷時に設
定された印刷設定情報が格納される。印刷設定情報は、
カラー印刷の有無をはじめ、用紙種類、印刷範囲、フォ
ント種といった各種設定項目データからなる。
The RAM 13 is provided with a document buffer 13a, an operation setting memory 13b, an image buffer 13c, a contour line memory 13d, a print setting buffer 13e and the like. Document data is stored in the document buffer 13a. This document data is composed of a character code and attribute information added to the same code. The operation setting memory 13b stores setting data for contour extraction.
The image buffer 13c stores image data captured by the image scanner 24 or the like described later. The extracted contour line data is stored in the contour line memory 13d. The print setting buffer 13e stores print setting information set at the time of printing. The print setting information is
It consists of various setting item data such as the presence or absence of color printing, paper type, print range, font type.

【0014】また、14はキ―ボ―ド(KB)、15は
キーボードインタフェース(KB−IF)、16はマウ
ス、17はマウスインタフェース(マウス−IF)、1
8は表示器、19は表示インタフェース(表示−I
F)、19aは表示用メモリ(VRAM)である。
Further, 14 is a keyboard (KB), 15 is a keyboard interface (KB-IF), 16 is a mouse, 17 is a mouse interface (mouse-IF), 1
8 is a display, 19 is a display interface (display-I
F) and 19a are display memories (VRAM).

【0015】キ―ボ―ド14は、文書作成、イメージ処
理等に必要な入力情報をキ―ボ―ドインタフェース15
を介してCPU11に入力する。このキ―ボ―ド14に
は、「文字」キ―、「数値」キーをはじめ、「機能1」
キー、「機能2」キー等のファンクションキーが設けら
れていると共に、輪郭抽出の処理スピードを調整するた
めの「スピードアップ/ダウン」キー、輪郭抽出処理の
進行を1段階前後させるためのキー、輪郭抽出処理を停
止させる「停止」キー、輪郭抽出処理を再開させる「再
開」キー等が設けられる。
The keyboard 14 is a keyboard interface 15 for inputting information required for document creation, image processing, and the like.
Input to the CPU 11 via. This keyboard 14 includes "Character" key, "Numeric" key, and "Function 1".
Keys, function keys such as the "function 2" key are provided, "speed up / down" key for adjusting the processing speed of the contour extraction, a key for advancing the contour extraction processing by one step, A "stop" key for stopping the contour extraction process, a "restart" key for restarting the contour extraction process, and the like are provided.

【0016】表示器18としては、CRT、液晶、プラ
ズマ等のディスプレイが用いられるが、ここでは例えば
40字20行のバックライト付き液晶カラーディスプレ
イを使用し、最下行(第20行目)をガイド表示専用の
領域(ガイド行)に設定している。表示インタフェース
19は、CPU11の制御の下で表示器18の表示制御
を行なう。表示用メモリ19aは、表示器18に表示す
るデータを展開するためのメモリである。
A display such as a CRT, liquid crystal, or plasma is used as the display unit 18. Here, for example, a liquid crystal color display with a backlight of 40 characters and 20 lines is used, and the bottom line (20th line) is guided. It is set as a display-only area (guide line). The display interface 19 controls the display of the display 18 under the control of the CPU 11. The display memory 19a is a memory for expanding the data displayed on the display unit 18.

【0017】また、20はプリンタ装置(PRT)、2
1はプリンタインタフェース(PRT−IF)、21a
はプリンタバッファ(PRTバッファ)、22はフロッ
ピーディスク装置(FDD)、23はFDDインタフェ
ース(FDD−IF)である。
Further, 20 is a printer device (PRT), 2
1 is a printer interface (PRT-IF), 21a
Is a printer buffer (PRT buffer), 22 is a floppy disk device (FDD), and 23 is an FDD interface (FDD-IF).

【0018】プリンタ装置20は、例えば感熱・熱転写
方式のプリンタからなり、プリンタインタフェース21
は、CPU11の制御の下でプリンタ装置20の出力制
御を行なう。プリンタバッファ21aは、プリンタ装置
20で印刷するデータを展開するためのメモリである。
The printer device 20 is composed of, for example, a thermal / thermal transfer type printer, and has a printer interface 21.
Controls the output of the printer device 20 under the control of the CPU 11. The printer buffer 21a is a memory for expanding the data to be printed by the printer device 20.

【0019】フロッピーディスク装置22は、例えば
3.5インチ型のFDDからなり、記憶媒体として2D
D、2HDのフロッピーを使用する。FDDインタフェ
ース23は、CPU11の制御の下でフロッピーディス
ク装置22のデータ保存/呼出し制御を行う。
The floppy disk device 22 is composed of, for example, a 3.5-inch type FDD and has a 2D storage medium.
Use floppy disks of D and 2HD. The FDD interface 23 controls data storage / recall of the floppy disk device 22 under the control of the CPU 11.

【0020】また、24はイメージスキャナ、25はイ
メージインタフェース(イメージ−IF)である。イメ
ージスキャナ24は、写真やイラスト・印刷物などを光
学的に読み込み、イメージデータを取り込む装置であ
り、取り込んだイメージデータをイメージインタフェー
ス25を介してイメージバッファ13cに格納する。
Reference numeral 24 is an image scanner, and 25 is an image interface (image-IF). The image scanner 24 is a device that optically reads a photograph, an illustration, a printed matter, and the like and takes in image data, and stores the taken image data in the image buffer 13 c via the image interface 25.

【0021】次に上記実施形態の動作を図2ないし図5
に示すフローチャートを参照して説明する。まず、イメ
ージスキャナ24により写真やイラストなどをスキャン
してイメージデータを読み込むか、あるいはフロッピー
ディスクに予め記憶しているイメージデータを読み出す
か、あるいはイメージスキャナ24を使用して写真やイ
ラストなどをスキャンして任意イメージデータの読み込
みを行なう。上記のようにして読み込まれたイメージデ
ータは、RAM13内のイメージバッファ13cに格納
される。このイメージバッファ13cに取り込まれたイ
メージデータは、表示インタフェース19に送られて表
示器18に表示される。
Next, the operation of the above embodiment will be described with reference to FIGS.
This will be described with reference to the flowchart shown in FIG. First, the image scanner 24 scans a photo or illustration to read the image data, or the image data stored in the floppy disk in advance is read, or the image scanner 24 is used to scan the photo or illustration. To read arbitrary image data. The image data read as described above is stored in the image buffer 13c in the RAM 13. The image data taken into the image buffer 13c is sent to the display interface 19 and displayed on the display 18.

【0022】この状態で輪郭抽出の動作モードを指定す
ると、CPU11はROM12に格納されている輪郭抽
出プログラム12cに基づいて図2ないし図5に示すフ
ローチャートに示す輪郭抽出処理を実行する。
When the contour extraction operation mode is designated in this state, the CPU 11 executes the contour extraction processing shown in the flowcharts of FIGS. 2 to 5 based on the contour extraction program 12c stored in the ROM 12.

【0023】CPU11は、まず、開始輪郭を設定する
ようにガイド表示を行なう。ユーザーは、このガイドに
従って図6(a),(b)に示すように、表示器18に
表示されたイメージデータ31の輪郭抽出対象32に対
し、輪郭抽出を開始する輪郭点をマウス16で大まかに
指定する(図2のステップA1)。なお、この例では、
開始輪郭点を人手で指定したが、その他、例えばイメー
ジ全体を囲む長方形を開始輪郭とするなど、開始輪郭点
を自動的に決定するようにしても良い。
The CPU 11 first displays a guide so as to set the starting contour. As shown in FIGS. 6A and 6B, the user roughly uses the mouse 16 to outline a contour point at which contour extraction is to be started with respect to the contour extraction target 32 of the image data 31 displayed on the display 18. (Step A1 in FIG. 2). In this example,
Although the start contour point is manually specified, the start contour point may be automatically determined, for example, by setting a rectangle surrounding the entire image as the start contour.

【0024】上記輪郭抽出を開始する輪郭点が設定され
ると、CPU11は、輪郭抽出スピードを決定する時間
tとして予め動作設定メモリ13bに設定されている
「T」の値を入力し(ステップA2)、輪郭抽出の処理
回数iを「0」とする(ステップA3)。そして、現在
の各輪郭点の座標を輪郭線メモリ13dの領域iに保存
し(ステップA4)、図6(b)に示すように各輪郭点
の座標に基づいて輪郭線33を表示する(ステップA
5)。次いで、輪郭線の抽出処理を停止させる「停止」
キーが操作されたか(ステップA6)、輪郭線の抽出処
理のスピードをアップさせる「スピードアップ」キーが
操作されたか(ステップA7)、又はスピードをダウン
させる「スピードダウン」キーが操作されたか(ステッ
プA8)、等をチェックし、何れのキーも操作されてい
ない場合は、上記tの時間だけ、つまり、現在の設定ス
ピードに相当する時間だけウエイトしてスピードを調整
する(ステップA9)。その後、各輪郭点の停止条件を
チェックし(ステップA10)、現在の輪郭点の全てが
一定の停止条件を満たしているかどうかを確認する(図
3のステップA11)。
When the contour point for starting the contour extraction is set, the CPU 11 inputs the value "T" preset in the operation setting memory 13b as the time t for determining the contour extraction speed (step A2). ), And the number i of contour extraction processes is set to "0" (step A3). Then, the current coordinates of each contour point are stored in the area i of the contour line memory 13d (step A4), and the contour line 33 is displayed based on the coordinates of each contour point as shown in FIG. 6B (step A4). A
5). Then, "stop" to stop the outline extraction process
Whether the key has been operated (step A6), the "speed up" key for increasing the speed of the contour extraction process has been operated (step A7), or the "speed down" key for decreasing the speed has been operated (step A6). A8), etc. are checked, and if none of the keys is operated, the speed is adjusted by waiting for the time t, that is, the time corresponding to the current set speed (step A9). Then, the stop condition of each contour point is checked (step A10), and it is confirmed whether or not all the current contour points satisfy a certain stop condition (step A11 in FIG. 3).

【0025】一定の停止条件を満たしていなければ、各
輪郭点を一定の規則に従って、移動、追加、削除する
(ステップA12)。これは従来からの技術を用いて実
施することができる。次にiの値に「1」を加算し(ス
テップA13)し、そのiの値が予め設定された値Nに
達したか否かを判断する(ステップA14)。上記Nの
値は、輪郭抽出回数の有効最大値に設定される。iの値
がNに達していなければ、ステップA4に戻って上記し
た輪郭抽出処理を繰返して実行する。
If the constant stopping condition is not satisfied, each contour point is moved, added or deleted according to a certain rule (step A12). This can be done using conventional techniques. Next, "1" is added to the value of i (step A13), and it is determined whether the value of i has reached the preset value N (step A14). The value of N is set to the effective maximum value of the number of times of contour extraction. If the value of i has not reached N, the process returns to step A4 to repeat the above-described contour extraction processing.

【0026】上記輪郭抽出処理を繰返して実行する過程
では、ステップA5の処理により、図6(c)に示すよ
うに抽出途中における各段階の輪郭線34を画面上に順
次表示する。この抽出途中の輪郭線34を表示すること
により、ユーザーは輪郭抽出処理の進行状況を容易に確
認することができる。
In the process of repeatedly executing the contour extracting process, the contour line 34 at each stage during the extraction is sequentially displayed on the screen by the process of step A5 as shown in FIG. 6C. By displaying the contour line 34 during the extraction, the user can easily confirm the progress of the contour extraction processing.

【0027】ユーザーは、上記抽出途中に順次表示され
る輪郭線34により輪郭抽出処理の進行状況、進行速度
を確認し、処理を一旦停止する場合には「停止」キー、
処理スピードをアップする場合には「スピードアップ」
キー、処理スピードをダウンする場合には「スピードダ
ウン」キーを操作する。輪郭抽出処理をそのまま進行さ
せる場合には、特にキー操作は行なわない。
The user confirms the progress and progress speed of the contour extraction process by the contour line 34 which is sequentially displayed during the extraction. When the process is temporarily stopped, the "stop" key,
"Speed up" to increase processing speed
To decrease the processing speed, press the "speed down" key. When the contour extraction processing is allowed to proceed as it is, no key operation is performed.

【0028】上記「停止」キーは、例えば輪郭抽出処理
が実際の輪郭を越えて進行するような場合に操作する。
この「停止」キーが操作された場合は、ステップA6で
そのキーの操作が検出され、図3におけるステップA1
5以降の処理、即ち、上記「停止」キーの操作後に「終
了」キーが操作されたか(ステップA15)、輪郭抽出
処理を1回進めるキーが操作されたか(ステップA1
6)、輪郭抽出処理を1回前に戻すキーが操作されたか
(ステップA17)、処理を再開させる「再開」キーが
操作されたか(ステップA18)、等の判断処理を行な
い、何れのキーも押されていなければステップA15に
戻り、何れかのキーが操作されるまで待機する。
The "stop" key is operated, for example, when the contour extraction process proceeds beyond the actual contour.
When this "stop" key is operated, the operation of the key is detected in step A6, and step A1 in FIG.
Process 5 and after, that is, whether the "end" key is operated after the "stop" key is operated (step A15), or the key for advancing the contour extraction process once is operated (step A1).
6) Whether or not the key for returning the contour extraction process to the previous one is operated (step A17), the "Resume" key for restarting the process is operated (step A18), and so on. If it has not been pressed, the process returns to step A15 and waits until any key is operated.

【0029】また、「スピードアップ」キーが操作され
た場合は、ステップA7でそのキー操作が検出され、図
4(a)に示すステップA19に進み、「t>0」か否
かを判断し、「t>0」であればtの値から「1」を減
算し(ステップA20)、その後、ステップA9に戻
る。この場合には、ステップA20の処理によりtの値
が小さくなるので、ステップA9でのウエイトの時間が
短くなり、処理スピードがアップする。また、ステップ
A19でtの値が「0」より大きくないと判断された場
合は、すでに最大処理スピードに設定されているので、
そのままステップA9に戻る。
When the "speed up" key is operated, the key operation is detected in step A7, and the process proceeds to step A19 shown in FIG. 4A to determine whether "t>0". , "T>0","1" is subtracted from the value of t (step A20), and then the process returns to step A9. In this case, the value of t is reduced by the process of step A20, so that the wait time in step A9 is shortened and the processing speed is increased. If it is determined in step A19 that the value of t is not larger than "0", the maximum processing speed has already been set.
The process directly returns to step A9.

【0030】また、「スピードタウン」キーが操作され
た場合は、ステップA8でそのキー操作が検出され、図
4(b)に示すステップA21に進んでtの値に「1」
を加算し、その後、ステップA9に戻る。この場合に
は、ステップA21の処理によりtの値が大きくなるの
で、ステップA9でのウエイトの時間が長くなり、処理
スピードがダウンする。このように処理スピードをダウ
ンさせた場合は、処理停止の指示を出すタイミングを得
ることが容易となる。
When the "speed town" key is operated, the key operation is detected in step A8, and the process proceeds to step A21 shown in FIG. 4 (b) to set the value of t to "1".
Is added, and then the process returns to step A9. In this case, since the value of t is increased by the process of step A21, the wait time in step A9 is lengthened and the processing speed is reduced. When the processing speed is reduced in this way, it becomes easy to obtain the timing for issuing a processing stop instruction.

【0031】そして、上記ステップA4〜A14の処理
を繰返すことにより、ステップA11で全ての輪郭点が
一定の停止条件を満たしていると判定されると、現在の
輪郭線を表示したまま輪郭自動抽出の進行を一旦停止す
る。この状態で、「終了」キーが操作されたか(ステッ
プA15)、輪郭抽出処理を1回進めるキーが操作され
たか(ステップA16)、輪郭抽出処理を1回前に戻す
キーが操作されたか(ステップA17)、処理を再開さ
せる「再開」キーが操作されたか(ステップA18)、
等の判断処理を行ない、何れのキーも押されていなけれ
ばステップA15に戻り、何れかのキーが操作されるま
で待機する。
Then, by repeating the processing of steps A4 to A14, if it is determined in step A11 that all the contour points satisfy a certain stopping condition, the contour is automatically extracted while the current contour line is displayed. To stop the progress of. In this state, the "end" key is operated (step A15), the key for advancing the contour extraction process once is operated (step A16), or the key for returning the contour extraction process once before is operated (step A15). A17), whether the "restart" key for restarting the process has been operated (step A18),
Etc., and if none of the keys is pressed, the process returns to step A15 and waits until any key is operated.

【0032】上記のようにステップA6で「停止」キー
の操作が検出された場合、あるいはステップA11で全
ての輪郭点が一定の停止条件を満たしていると判定され
た場合に、ステップA15以降の処理に進み、輪郭自動
抽出の進行を停止してキー入力待ちの状態となる。ま
た、上記ステップA4〜A14の処理が予め設定したN
回まで繰返しても輪郭自動抽出の処理が終了しない場合
には、その状態をステップA14で検出してステップA
15以降の処理に進み、輪郭自動抽出の進行を一旦停止
してキー入力待ちの状態とする。
When the operation of the "stop" key is detected in step A6 as described above, or when it is determined in step A11 that all the contour points satisfy the certain stop condition, the steps from step A15 are executed. The process proceeds to stop the automatic contour extraction and wait for key input. In addition, the processing of steps A4 to A14 is set to N
If the process of automatic contour extraction is not completed even after repeating the process up to a number of times, the state is detected in step A14 and step A14 is detected.
Proceeding to the processing of 15 and thereafter, the progress of automatic contour extraction is temporarily stopped and the key input waiting state is entered.

【0033】上記キー入力待ちの状態で、ユーザーは現
在表示されている輪郭線34から輪郭抽出の状態を確認
し、輪郭抽出が正しく行なわれていれば「終了」キー、
輪郭抽出が実際の輪郭の近くに達しているが、もう少し
処理を進めたい場合には輪郭抽出処理を1回進めるキ
ー、輪郭抽出が実際の輪郭以上に進行している場合には
輪郭抽出処理を1回戻すキー、「停止」キーの操作によ
って輪郭抽出処理が未だ途中の段階であれば「再開」キ
ーを操作する。
While waiting for the above key input, the user confirms the contour extraction state from the contour line 34 currently displayed, and if the contour extraction is performed correctly, the "end" key,
If the contour extraction has reached near the actual contour, but you want to proceed with the processing a little more, press the key that advances the contour extraction processing once. If the contour extraction is more than the actual contour, press the contour extraction processing. If the contour extraction process is still in the middle of operation by operating the return key and the "stop" key once, the "restart" key is operated.

【0034】輪郭抽出処理を1回進めるキーが押された
場合は、ステップA16によってそのキー操作が検出さ
れ、図4(c)に示すステップA22に進む。このステ
ップA22では、輪郭点の停止条件は無視し、各輪郭点
を一定の規則に従って、移動、追加、削除する。次いで
iの値に「1」を加算し(ステップA23)、現在の各
輪郭点の座標を輪郭線メモリ13dの領域iに保存する
(ステップA24)。そして、現在の輪郭線を表示し
(ステップA25)、図3におけるステップA15に戻
って次のキー入力に備える。
When the key for advancing the contour extracting process once is pressed, the key operation is detected in step A16, and the process proceeds to step A22 shown in FIG. 4 (c). In step A22, the stop condition of the contour points is ignored, and each contour point is moved, added, or deleted according to a certain rule. Next, "1" is added to the value of i (step A23), and the current coordinates of each contour point are stored in the area i of the contour line memory 13d (step A24). Then, the current contour line is displayed (step A25), and the process returns to step A15 in FIG. 3 to prepare for the next key input.

【0035】また、輪郭抽出処理を1回戻すキーが押さ
れた場合は、ステップA17によってそのキー操作が検
出され、図5に示すステップA26に進む。このステッ
プA26では、iが「0」か否かを判断し、「0」でな
ければステップA27に進んで現在の輪郭線を消去す
る。次にiの値から1を減算し(ステップA28)、そ
のiに基づいて、輪郭線メモリ13dに記憶されている
輪郭点座標値を読出し、現在の輪郭点として輪郭線を表
示する(ステップA29)。その後、図3におけるステ
ップA15に戻って次のキー入力に備える。また、ステ
ップA26でiの値が「0」であると判断された場合
は、輪郭抽出処理が未だ初期の段階であるので、そのま
ま上記ステップA15に戻る。
When the key for returning the contour extraction process once is pressed, the key operation is detected in step A17, and the process proceeds to step A26 shown in FIG. In step A26, it is determined whether or not i is "0". If it is not "0", the process proceeds to step A27 and the current contour line is erased. Next, 1 is subtracted from the value of i (step A28), the coordinate value of the contour point stored in the contour memory 13d is read out based on the i, and the contour line is displayed as the current contour point (step A29). ). Then, the process returns to step A15 in FIG. 3 to prepare for the next key input. If it is determined in step A26 that the value of i is "0", the contour extraction processing is still in an early stage, and the process directly returns to step A15.

【0036】上記のようにキー操作により輪郭抽出処理
を1段階ずつ進める、あるいは戻す処理が行なわれるの
で、自動的に処理した輪郭抽出が実際の輪郭から多少ず
れている場合でも、画面上で確認しながら正しい輪郭抽
出を行なわせることができる。
As described above, since the contour extraction process is advanced or returned one step at a time by the key operation, even if the automatically processed contour extraction is slightly deviated from the actual contour, it is confirmed on the screen. However, correct contour extraction can be performed.

【0037】そして、ユーザーは、上記自動抽出された
輪郭線あるいはキー操作により補正処理した輪郭線が図
6(d)に示すように実際の輪郭、即ち、輪郭抽出対象
32の輪郭に一致したことを確認して「終了」キーを操
作する。この「終了」キーが操作されると、その状態を
ステップA15で検出し、現在の抽出輪郭を確定して輪
郭抽出処理を終了する。
Then, the user confirms that the automatically extracted contour line or the contour line corrected by the key operation matches the actual contour, that is, the contour of the contour extraction target 32, as shown in FIG. 6D. Confirm and operate the "End" key. When this "end" key is operated, that state is detected in step A15, the current extraction contour is confirmed, and the contour extraction processing is terminated.

【0038】上記のようにしてイメージデータから輪郭
線を抽出すると、この輪郭線を利用してイメージデータ
の中から対象としている人物や風景等を切出して、他の
イメージや文書等と合成することができる。
When the contour line is extracted from the image data as described above, the target person, landscape or the like is cut out from the image data by using the contour line and is combined with another image or document. You can

【0039】なお、上記実施形態では、「スピードアッ
プ」キー及び「スピードダウン」キーにより、輪郭自動
抽出処理の進行速度を調整するようにしたが、その他、
輪郭抽出動作の開始時には進行速度を高速に設定し、抽
出動作の進行に従って進行速度を低下させるようにして
もよい。このような制御を行なうことにより、抽出した
輪郭線が実際の輪郭に近付くと輪郭抽出処理の進行速度
が低下するので、輪郭抽出動作の停止指示を出すタイミ
ングを容易に得ることができる。
In the above embodiment, the "speed up" key and the "speed down" key are used to adjust the progressing speed of the automatic contour extraction process.
It is also possible to set the traveling speed to a high speed at the start of the contour extracting operation and reduce the traveling speed as the extracting operation progresses. By performing such control, the progress speed of the contour extraction processing decreases when the extracted contour line approaches the actual contour, so that it is possible to easily obtain the timing for issuing a stop instruction for the contour extraction operation.

【0040】[0040]

【発明の効果】以上のように本発明によれば、輪郭抽出
途中の各段階の輪郭線を表示するようにしているので、
輪郭抽出動作の進行状況を容易に確認することができ
る。また、輪郭抽出動作を段階的に実施中に、輪郭抽出
動作の進行を一旦停止させる指示手段及び再開させる指
示手段を備えているので、輪郭抽出結果が実際の輪郭よ
りも狭く、あるいは広くなることを防止できる。更に、
輪郭抽出の進行の速さを任意に指示する手段を備えてい
るので、輪郭抽出の進行速度の調整により、上記輪郭抽
出動作の停止指示を出すタイミングを容易に得ることが
できる。また、輪郭抽出動作の開始時には進行速度を高
速に設定し、抽出動作の進行に従って進行速度を低下さ
せることにより、上記輪郭抽出動作の停止指示を出すタ
イミングを容易に得ることができる。
As described above, according to the present invention, the contour line at each stage during contour extraction is displayed.
The progress of the contour extraction operation can be easily confirmed. Further, since the contour extracting operation is provided with an instruction means for temporarily stopping the progress of the contour extracting operation and an instruction means for restarting the contour extracting operation while the contour extracting operation is being carried out step by step, the contour extraction result may be narrower or wider than the actual contour. Can be prevented. Furthermore,
Since the means for arbitrarily instructing the speed of the contour extraction progress is provided, the timing for issuing the stop instruction of the contour extraction operation can be easily obtained by adjusting the speed of the contour extraction progress. Further, by setting the traveling speed to a high speed at the start of the contour extracting operation and decreasing the traveling speed as the extracting operation progresses, it is possible to easily obtain the timing for issuing the stop instruction of the contour extracting operation.

【0041】更にまた、一度停止させた輪郭抽出動作の
進行を逆方向に戻す手段を備えているので、実際の輪郭
よりも狭い状態にまで進行した輪郭線を実際の輪郭位置
に戻すことができる。また、抽出動作の進行を1段階ず
つ前後させる指示手段を備えているので、輪郭抽出動作
の微調整が可能である。
Furthermore, since the means for returning the progress of the contour extraction operation once stopped to the reverse direction is provided, the contour line which has progressed to a state narrower than the actual contour can be returned to the actual contour position. . Further, since the instruction means for moving the extraction operation forward and backward by one step is provided, the contour extraction operation can be finely adjusted.

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

【図1】本発明の一実施形態に係る文書作成装置の構成
を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a document creation device according to an embodiment of the present invention.

【図2】同実施形態における輪郭線抽出処理動作を示す
フローチャート。
FIG. 2 is a flowchart showing a contour line extraction processing operation in the same embodiment.

【図3】同実施形態における輪郭線抽出処理動作を示す
フローチャート。
FIG. 3 is a flowchart showing a contour line extraction processing operation in the same embodiment.

【図4】同実施形態における輪郭線抽出処理動作を示す
フローチャート。
FIG. 4 is a flowchart showing a contour line extraction processing operation in the same embodiment.

【図5】同実施形態における輪郭線抽出処理動作を示す
フローチャート。
FIG. 5 is a flowchart showing a contour line extraction processing operation in the same embodiment.

【図6】イメージデータより画像の輪郭を抽出する過程
を説明するための図。
FIG. 6 is a diagram for explaining a process of extracting an image contour from image data.

【図7】複数の輪郭点により形成される多角形の輪郭線
及び輪郭点の移動方向を示す図。
FIG. 7 is a diagram showing a polygonal contour line formed by a plurality of contour points and a moving direction of the contour point.

【図8】抽出した輪郭線が実際の輪郭とずれている場合
の例を示す図。
FIG. 8 is a diagram showing an example in which the extracted contour line is displaced from the actual contour line.

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

11 CPU 12 ROM 12a システムROM 12b 辞書ROM 12c 輪郭抽出プログラム 13 RAM 13a 文書バッファ 13b 動作設定メモリ 13c イメージバッファ 13d 輪郭線メモリ 14 キ―ボ―ド 16 マウス 18 表示器 20 プリンタ装置 24 イメージスキャナ 11 CPU 12 ROM 12a System ROM 12b Dictionary ROM 12c Contour extraction program 13 RAM 13a Document buffer 13b Operation setting memory 13c Image buffer 13d Contour line memory 14 Key board 16 Mouse 18 Display 20 Printer device 24 Image scanner

───────────────────────────────────────────────────── フロントページの続き (72)発明者 村上 雅俊 東京都青梅市末広町2丁目9番地 株式会 社東芝青梅工場内 (72)発明者 山口 正博 東京都青梅市新町1385番地 東芝ソフトウ ェアエンジニアリング株式会社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Masatoshi Murakami 2-9 Suehiro-cho, Ome-shi, Tokyo Inside Toshiba Ome factory (72) Inventor Masahiro Yamaguchi 1385 Shinmachi, Ome-shi, Tokyo Toshiba Software Engineering Co., Ltd. Within the corporation

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 イメージデータを入力するイメージデー
タ入力手段と、この手段により入力されたイメージデー
タを格納するイメージバッファと、このイメージバッフ
ァに格納されたイメージデータを表示する表示手段と、
上記入力されたイメージデータからイメージ中の画像輪
郭を抽出する輪郭抽出手段と、この輪郭抽出手段が段階
的に輪郭抽出動作を実行中に得られる各段階の輪郭線を
上記表示手段に表示する輪郭線表示手段とを具備したこ
とを特徴とする画像輪郭抽出装置。
1. An image data input means for inputting image data, an image buffer for storing the image data input by the means, and a display means for displaying the image data stored in the image buffer.
A contour extracting means for extracting an image contour in an image from the inputted image data, and a contour for displaying on the display means contour lines at respective stages obtained while the contour extracting operation executes the contour extracting operation stepwise. An image contour extracting device comprising: a line display means.
【請求項2】 請求項1記載の画像輪郭抽出装置におい
て、輪郭抽出手段が輪郭抽出動作を段階的に実施中に、
抽出動作の停止を指示する停止指示手段を具備し、上記
停止指示手段の指示によって輪郭抽出動作の進行を停止
することを特徴とする画像輪郭抽出装置。
2. The image contour extracting apparatus according to claim 1, wherein the contour extracting means is performing the contour extracting operation stepwise.
An image contour extracting apparatus comprising: stop instruction means for instructing to stop the extraction operation, and stopping the progress of the contour extraction operation according to the instruction of the stop instruction means.
【請求項3】 請求項1記載の画像輪郭抽出装置におい
て、輪郭抽出手段は、段階的な輪郭抽出動作を設定回数
実施した後、輪郭抽出動作の進行を自動的に停止するこ
とを特徴とする画像輪郭抽出装置。
3. The image contour extracting apparatus according to claim 1, wherein the contour extracting means automatically stops the progress of the contour extracting operation after performing the stepwise contour extracting operation a set number of times. Image contour extraction device.
【請求項4】 請求項1記載の画像輪郭抽出装置におい
て、輪郭抽出手段による輪郭抽出の進行の速さを指示す
る輪郭抽出速度指示手段を具備し、上記輪郭抽出速度指
示手段の指示に応じた速さで輪郭抽出を進行させること
を特徴とする画像輪郭抽出装置。
4. The image contour extraction device according to claim 1, further comprising a contour extraction speed instruction means for instructing a speed of the contour extraction by the contour extraction means, and responding to the instruction of the contour extraction speed instruction means. An image contour extracting device characterized by advancing contour extraction at a speed.
【請求項5】 請求項1記載の画像輪郭抽出装置におい
て、輪郭抽出手段が設定回数よる輪郭抽出の進行は、抽
出動作の開始時には高速に設定し、抽出動作の進行につ
れて進行速度を低下させることを特徴とする画像輪郭抽
出装置。
5. The image contour extraction apparatus according to claim 1, wherein the contour extraction means sets the progress of contour extraction according to the set number of times at a high speed at the start of the extraction operation, and decreases the progress speed as the extraction operation progresses. An image contour extracting device characterized by:
【請求項6】 請求項2又は3記載の画像輪郭抽出装置
において、一度停止させた輪郭抽出動作進行を再び開始
させる手段を備えたことを特徴とする画像輪郭抽出装
置。
6. The image contour extracting apparatus according to claim 2, further comprising means for restarting the progress of the contour extracting operation which has been stopped once.
【請求項7】 請求項2又は3記載の画像輪郭抽出装置
において、一度停止させた輪郭抽出動作進行を逆方向に
戻す手段を備えたことを特徴とする画像輪郭抽出装置。
7. The image contour extracting apparatus according to claim 2 or 3, further comprising means for returning the progress of the contour extracting operation that has been once stopped to the reverse direction.
【請求項8】 請求項2記載の画像輪郭抽出装置におい
て、停止指示手段により一度停止させた輪郭抽出動作進
行を1段階ずつ進める手段を備えたことを特徴とする画
像輪郭抽出装置。
8. The image contour extracting apparatus according to claim 2, further comprising means for advancing the contour extracting operation, which is once stopped by the stop instruction means, step by step.
JP7246194A 1995-09-25 1995-09-25 Image contour extract device Pending JPH0991457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7246194A JPH0991457A (en) 1995-09-25 1995-09-25 Image contour extract device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7246194A JPH0991457A (en) 1995-09-25 1995-09-25 Image contour extract device

Publications (1)

Publication Number Publication Date
JPH0991457A true JPH0991457A (en) 1997-04-04

Family

ID=17144915

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7246194A Pending JPH0991457A (en) 1995-09-25 1995-09-25 Image contour extract device

Country Status (1)

Country Link
JP (1) JPH0991457A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019057209A (en) * 2017-09-22 2019-04-11 Line株式会社 Program, method for processing information, and information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019057209A (en) * 2017-09-22 2019-04-11 Line株式会社 Program, method for processing information, and information processor

Similar Documents

Publication Publication Date Title
US5682541A (en) Preview system for printed documents
US6594405B1 (en) Method and apparatus for preprinted forms completion
JPH0991457A (en) Image contour extract device
JP3867185B2 (en) Printing cutting apparatus and storage medium
JP2832102B2 (en) Printing method and apparatus
JP2684175B2 (en) Page printing method
JP2001005911A (en) Character input device and display controlling method
JPH0728801A (en) Image data processing method and device therefor
JPH0991398A (en) Image processor
JPH06149465A (en) Handwriting input device
JPH0991443A (en) Image contour extract device
JPH08123801A (en) Document preparing device and frame editing method
JP2000218881A (en) Cutting apparatus
JPS63197266A (en) Document image editing device
JPH07160240A (en) Pattern generator and method for controlling it
JP3345142B2 (en) Document processing device with ruled line display function
JP3352843B2 (en) Information processing apparatus for controlling cursor position of pointing device and method for controlling cursor position of pointing device of information processing apparatus
JPH0581261A (en) Document input device
JP2860024B2 (en) Text editing device
JP2921975B2 (en) Handwritten document creation device
JP2958784B2 (en) Image processing device
JPS60250482A (en) Picture rotation indicating system
JP2006072730A (en) Character recognition device, character recognition method and character recognition program
JPH0512279A (en) Document preparing device
JPH07287769A (en) Device and method for preparing document