JPH0368085A - Method for detecting picture segmenting position and picture segmenting method using this method - Google Patents

Method for detecting picture segmenting position and picture segmenting method using this method

Info

Publication number
JPH0368085A
JPH0368085A JP1204321A JP20432189A JPH0368085A JP H0368085 A JPH0368085 A JP H0368085A JP 1204321 A JP1204321 A JP 1204321A JP 20432189 A JP20432189 A JP 20432189A JP H0368085 A JPH0368085 A JP H0368085A
Authority
JP
Japan
Prior art keywords
image
curve
location
points
designated
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
JP1204321A
Other languages
Japanese (ja)
Inventor
Yutaka Sako
裕 酒匂
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1204321A priority Critical patent/JPH0368085A/en
Publication of JPH0368085A publication Critical patent/JPH0368085A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To extract only a specific object by automatically determining edge parts of the gradually segmented specific object and finally obtaining all of the periphery of the outside line of the object. CONSTITUTION:A position Pi (i=1 to 4) where plural edge forms in the object are learnt are designated, and a smooth curve Co passing the designated position Pi for inference of the direction of an edge to be learnt it obtained, and a variable density waveform Wi on a straight line Vi (i=1 to 4) passing the designated position Pi in the normal direction of the designated position Pi of the curve Co is obtained. A variable density waveform W'i in the normal direction in another position Pi in the vicinity of the designated position Pi of the curve Co is obtained, and two variable density waveforms Wi and W'i are collated to obtain an extent Zi of positional deviation, and correction is performed, and the correction position is added to the designated position Pi to successively deform the curve to the outside line of the object. Finally, all of the periphery of the outside line of the object is obtained. Thus, only the specific object surrounded with the outside line is extracted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、階調性を有する画像または2値画像から特定
の物体画像のみを切り出す場合の画像切り出し箇所検出
方法、およびその検出方法を用いて画像を切り出す切り
出し方法に関し、特に写真画像から特定の領域のみを分
離抽出するための切り出し方法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a method for detecting an image cutout point when only a specific object image is cut out from an image having gradation or a binary image, and a method using the detection method. The present invention relates to a cropping method for cropping an image, and particularly to a cropping method for separating and extracting only a specific region from a photographic image.

〔従来の技術〕[Conventional technology]

パーソナルコンピュータやワードプロセッサの普及とそ
の進歩は目を見はるものがあり、それらに記録する記録
媒体の低価格化に伴って、文書等が数多く作成編集され
ている。また、上記各機器とイメージスキャナとを組み
合わせて、文書中に階調性を有する写真等の画像を挿入
する方法も多用されている。さらに、光デイスクファイ
ルやマイクロフィルムを用いて、これらの文書のデータ
ベース化や印刷物の電子ファイル化がOA(オフィスオ
ートメイション)の重要位置を占めるようになった。特
に、最近は、パーソナルコンピュータやワードプロセッ
サ上での印刷文書内の画像情報の編集が極めて重要とな
ってきた。
The spread and progress of personal computers and word processors has been remarkable, and as the cost of the recording media used to record information on these devices has decreased, a large number of documents have been created and edited. Also, a method is often used in which images such as photographs having gradation are inserted into a document by combining each of the above devices with an image scanner. Furthermore, the creation of databases of these documents and the creation of electronic files of printed materials using optical disk files and microfilms have come to play an important role in OA (office automation). In particular, editing of image information in a printed document on a personal computer or word processor has become extremely important recently.

この編集機能の1つとして、写真等の画像情報内の特定
対象物だけを自動的に抽出する作業がある。
One of these editing functions is to automatically extract only a specific object within image information such as a photograph.

この写真等の濃淡画像から特定の物体を切り出す作業を
人手により行う場合には、たとえ、その物体の一部のエ
ツジが不明瞭でも、物体に対する一般的な形状や明るさ
等の既存の知識を利用することにより、エツジを推測す
ることができ、その結果、その物体のみを切り出すこと
が可能である。
When manually cutting out a specific object from a grayscale image such as a photograph, even if some of the edges of the object are unclear, existing knowledge about the general shape and brightness of the object may be used. By using this, it is possible to infer edges, and as a result, it is possible to extract only that object.

このように、人間の認識は、あらゆる条件を考えて常識
や知識を用いることにより推測して、物体を抽出するの
で、かなり高精度に物体を切り出すことができる。
In this way, human recognition extracts objects by considering all conditions and using common sense and knowledge to extract objects.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来、この人間の認識過程を種数した知識駆動型の手法
、例えば’The  ACRONYM  model−
based  vision  5ysten+″(P
roc、  6th  TJCAI。
Conventionally, knowledge-driven methods that incorporate this human cognitive process, such as 'The ACRONYM model-
based vision 5ysten+''(P
roc, 6th TJCAI.

pp、 105〜+13. !979)に記載されてい
る画像認識手法が提案されている。
pp, 105~+13. ! An image recognition method described in 979) has been proposed.

しかしながら、人間の認識過程を種数しようとしても、
任意の特定物を自動的に抽出する場合、条件や環境の多
様性、例えばカメラの方向、カメラの特性、照明の当て
方、あるいは影の形状が異なっているため、理論的には
種数が可能であっても、実際には極めて難かしく、未だ
実用化されていない。
However, even if we try to quantify the human cognitive process,
When automatically extracting any specific object, theoretically the genus is different due to the diversity of conditions and environments, such as the direction of the camera, the characteristics of the camera, the way of lighting, and the shape of the shadow. Even if it is possible, it is extremely difficult in practice and has not yet been put to practical use.

本発明の目的は、このような従来の課題を解決し、写真
等の濃淡画像情報内の特定物体を自動的に抽出し、かつ
切り出すことが可能な画像切り出し箇所検出方法および
それを用いた画像切り出し方法を提供することにある。
The purpose of the present invention is to solve such conventional problems and provide an image cutting point detection method that can automatically extract and cut out a specific object in gray scale image information such as a photograph, and an image using the method. The purpose is to provide an extraction method.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するため、本発明による画像切り出し箇
所検出方法は、(イ)特定の物体画像と背景との境界線
上に複数個の指定箇所を決定する第1のステップと、複
数の指定箇所を通る滑らかな曲線を求める第2のステッ
プと、各指定箇所での上記曲線に対する法線方向で、該
指定箇所を通る直線上の濃淡波形を各指定箇所毎に求め
る第3のステップと、各指定箇所の近傍にある曲線上の
1つの箇所での曲線に対する法線方向で、近傍箇所を通
る直線上の濃淡波形を、指定箇所の近傍箇所毎に求める
第4のステップと、各指定箇所毎に、指定箇所で求めた
濃淡画像と近傍箇所で求めた濃淡画像を照合し、近傍箇
所の法線方向の位置ずれ量を求め、各近傍箇所の位置を
補正することにより曲線自体を補正する第5のステップ
とを有することに特徴がある。また、(ロ)位置が補正
された各近傍箇所を指定箇所に加えて、第2のステップ
から第5のステップまでの処理を、指定箇所の合計個数
が予め定めた個数に達するまで繰り返し行い、かつ第2
回目以降の繰り返し処理では、前回の処理で位置が補正
された近傍箇所のみに対して、濃淡波形の照合を行うこ
とにも特徴がある。また、(ハ)曲線は、複数の指定箇
所を通る滑らかな曲線であるスプライン曲線とすること
にも特徴がある。
In order to achieve the above object, the image cutting point detection method according to the present invention includes (a) a first step of determining a plurality of specified points on the boundary line between a specific object image and the background; a second step of finding a smooth curve that passes through the specified point, a third step of finding a shading waveform on a straight line passing through the specified point in the normal direction to the curve at each specified point, and each specified point. A fourth step in which a shading waveform on a straight line passing through the neighboring points in the normal direction to the curve at one point on the curve near the point is obtained for each point near the specified point, and for each specified point. The fifth step is to compare the grayscale image obtained at the specified location with the grayscale image obtained at the neighboring locations, calculate the amount of positional deviation in the normal direction of the neighboring locations, and correct the curve itself by correcting the position of each neighboring location. It is characterized by having the following steps. (b) Add each neighboring location whose position has been corrected to the designated location, and repeat the processes from the second step to the fifth step until the total number of designated locations reaches a predetermined number; and second
Another feature of the repeated processing after the first processing is that the gray scale waveforms are compared only for the neighboring locations whose positions have been corrected in the previous processing. Another feature is that (c) the curve is a spline curve that is a smooth curve that passes through a plurality of specified locations.

さらに、(ニ)曲線は、各指定箇所における特定の物体
画像と背景の境界の方向が明らかなとき、各指定箇所の
近傍に存在する濃淡変化が急激なエツジのつながりの方
向に、各指定箇所での曲線の接線方向が一致するように
、初期入力時の複数の指定箇所を通る滑らかな曲線を求
めることにも特徴がある。また1本発明の画像切り出し
方法は、(ホ)濃淡ないし2値画像から特定の物体画像
のみを切り出し、切り出された物体画像を画面に表示し
て、該物体画像と他の画像を組み合わせて編集する方法
において、第1のステップから第5のステップまでの処
理を行った後、曲線上の複数の指定箇所と近傍箇所を濃
淡ないし2値画像内の切り出し箇所とするステップ1と
、上記複数の隣接する切り出し箇所間を直線ないし清ら
かな曲線で結んで、該曲線を切り出し領域の外形線とす
るステップ2と、該切り出し領域の外形線の内部ないし
外部のいずれか一方の画像のみを抽出するステップ3と
を有することに特徴がある。
Furthermore, (d) when the direction of the boundary between a specific object image and the background at each designated location is clear, the curve is drawn at each designated location in the direction of the connection of edges with rapid changes in shading existing in the vicinity of each designated location. Another feature is that it finds a smooth curve that passes through multiple specified points at the time of initial input so that the tangential directions of the curves match. In addition, (1) the image cropping method of the present invention includes (e) cropping only a specific object image from a grayscale or binary image, displaying the cropped object image on a screen, and editing by combining the object image and other images; In the method of Step 2: Connecting adjacent cutout locations with a straight line or a clear curved line and using the curve as the outline of the cutout area; and Step 2: Extracting only an image either inside or outside the outline of the cutout area. It is characterized by having 3.

〔作  用〕[For production]

本発明においては1条件や環境の多様性を学習する手順
を持たせる。すなわち、(イ)物体内の複数のエツジ形
状を学習する箇所を指定し、(ロ)学習すべきエツジの
方向を推測するための指定箇所を通る滑らかな曲線を求
め、(ハ)その曲線の指定箇所の法線方向で指定箇所を
通る直線上の濃淡波形を求め、(ニ)次に、その曲線の
指定箇所の近傍の箇所での法線方向で、濃淡波形を求め
、(ホ)2つの濃淡波形を照合して、位置のずれ量を求
めて補正し、補正位置を指定箇所に加えることにより、
その曲線を抽出すべき物体の外形線に順次変形させてい
く手順を、プログラムにより実行するのである。
In the present invention, a procedure for learning the diversity of one condition or environment is provided. In other words, (a) specify a location in the object where multiple edge shapes are to be learned, (b) find a smooth curve that passes through the designated location to estimate the direction of the edge to be learned, and (c) calculate the shape of that curve. Find the shading waveform on a straight line passing through the specified point in the normal direction of the specified point, (d) Next, find the shading waveform in the normal direction of the curve at a point near the specified point, and (e) 2 By comparing two shading waveforms, determining the amount of positional deviation, correcting it, and adding the corrected position to the specified location,
The program executes a procedure that sequentially transforms the curve into the outline of the object to be extracted.

このようにして、逐次、切り出すべき特定の物体のエツ
ジ部分を決定していくことにより、最終的に物体の外形
線全周が求められる。その結果、この外形線内に囲まれ
た物体の抽出が可能となる。
In this way, by successively determining the edge portions of a specific object to be cut out, the entire circumference of the object's outline is finally determined. As a result, it becomes possible to extract objects enclosed within this outline.

[実施例ゴ 以下、本発明の実施例を7図面により詳細に説明する。[Example Go Hereinafter, embodiments of the present invention will be described in detail with reference to seven drawings.

第2図は、本発明が適用される画像編集システムの全体
構成図である。
FIG. 2 is an overall configuration diagram of an image editing system to which the present invention is applied.

第2図において、lは原稿となる写真、2は2次元画像
を格納する第1の画像メモリまたは画像メモリ領域、4
は特定対象物を抽出分離して格納する第2の画像メモリ
または画像メモリ領域、3は画像切り出し箇所検出およ
び切り出しを実行する計算機、5はCRTデイスプレィ
、6は原稿の写真を走査するスキャナ、7は座標入力袋
ra(マウス)である。
In FIG. 2, 1 is a photograph serving as a manuscript, 2 is a first image memory or image memory area for storing a two-dimensional image, and 4 is a first image memory or image memory area for storing a two-dimensional image.
is a second image memory or image memory area for extracting and separating specific objects and storing them; 3 is a computer for detecting and cutting out image cutout points; 5 is a CRT display; 6 is a scanner for scanning photographs of original documents; is the coordinate input bag ra (mouse).

先ず、写真lをスキャナ6上に載置すると、スキャナ6
は写真の濃淡画像情報を走査して読み取り、ディジタル
信号1sに変換して計算機3に入力する。計算機3は、
このディジタル信号Isを一旦、画像メモリ2に2次元
画像として格納する。
First, when you place the photo l on the scanner 6, the scanner 6
scans and reads the grayscale image information of the photograph, converts it into a digital signal 1s, and inputs it to the computer 3. Calculator 3 is
This digital signal Is is temporarily stored in the image memory 2 as a two-dimensional image.

ここで、計算機3は、画像切り出し箇所検出処理を開始
する。計算機3は、画像メモリ2内の写真画像内から特
定の対象物を分離した後、この分離した対象物画像を画
像メモリ4に格納する。CRT5は、編集時、人間が計
算機3に指定箇所の座標を座標入力装置7を用いて出力
するための画像表示用モニタである。
Here, the computer 3 starts image cutout location detection processing. After separating a specific object from the photographic image in the image memory 2, the computer 3 stores the separated object image in the image memory 4. The CRT 5 is an image display monitor used by a person to output the coordinates of a specified location to the computer 3 using the coordinate input device 7 during editing.

第1図(a)は、本発明の一実施例を示す画像切り出し
箇所検出方法の動作フローチャートであり、第1図(b
)は切り出される前の全濃淡画像Aと、その画像Aから
切り出された特定画像aをそれぞれ示した図である。
FIG. 1(a) is an operation flowchart of a method for detecting an image cutout point showing an embodiment of the present invention, and FIG.
) is a diagram showing a full grayscale image A before being cut out and a specific image a cut out from the image A.

また、第3図(a)〜(c)は、画像切り出し箇所検出
方法における′指定箇所と近傍箇所を示す図、第4図(
a)〜(d)は、スプライン曲線の各繰り返し毎の変化
を示す図である。
In addition, FIGS. 3(a) to (c) are diagrams showing designated locations and neighboring locations in the image cutout location detection method, and FIG.
a) to (d) are diagrams showing changes in each repetition of a spline curve.

画像切り出し箇所検出の最終目標は、第1図(b)に示
すように全濃淡画像Aから特定画像aを切り出すことで
ある。
The ultimate goal of image cutout location detection is to cut out a specific image a from the full grayscale image A, as shown in FIG. 1(b).

先ず、第1図(b)に示す切り出される前の全濃淡画像
AをCRTデイスプレィ5に表示した後、座標入力装置
7を用いて特定画像aの代表的なエツジ位置の箇所Pi
を指定して、計算機3に座標入力する。ここでは、4箇
所のi=1.2,3゜4を入力するく第1ステツプ)。
First, after displaying the full gray scale image A before being cut out as shown in FIG.
Specify and input the coordinates into the calculator 3. Here, the first step is to input i=1.2, 3°4 at four locations.

次に、第3図(a)に示すように、各指定箇所PI(i
=1,2,3゜4)を通過するスプライン曲線C0を求
める(第2ステツプ)、ここで、曲線C0は、最初に複
数箇所の指定位置を通過するように描かれた曲線であっ
て、以降に説明するように順次補正されながら異なった
形状の曲線に変化していく。なお、第3図(a)では、
曲線C0を明瞭に描くために、原画像Aを淡く表現して
いる。次に、第3図(a)のV。
Next, as shown in FIG. 3(a), each specified location PI(i
= 1, 2, 3° 4) Find a spline curve C0 (second step), where the curve C0 is a curve that is first drawn to pass through a plurality of designated positions, and As will be explained later, the curve changes to a different shape while being sequentially corrected. In addition, in FIG. 3(a),
In order to clearly draw the curve C0, the original image A is expressed faintly. Next, V in FIG. 3(a).

および第3図(b)のW、で示すように、スプライン曲
線C0の法線方向で、しかも各指定箇所Plを通過する
直線Vi上の濃淡波形Wiを求める(第3ステツプ)。
Then, as shown by W in FIG. 3(b), a shading waveform Wi on a straight line Vi that is in the normal direction of the spline curve C0 and passes through each specified location Pl is determined (third step).

すなわち、第3図(a)では、4つの指定位置P、、P
、、P□ P4のうち先ずPl の位置で、曲線C0の
法線方向に直線V、を設定し、そのV、上の濃淡波形W
lを測定する。この結果、第3図(b)の左側に示すよ
うに、■、上の座標のPに対応する点付近を境として、
左側より右側のレベル(濃淡値〉が高くなっている。つ
まり、左側の低レベルと右側の高レベルの位置の境目が
対象物体の境界が存在する位置であり、当然Plの位置
は物体の境界、つまり切り出し位置にある。
That is, in FIG. 3(a), four specified positions P, , P
,,P□ First, at the position of Pl in P4, set a straight line V in the normal direction of the curve C0, and set the gray waveform W on that V.
Measure l. As a result, as shown on the left side of Fig. 3(b),
The level (gradation value) on the right side is higher than on the left side.In other words, the boundary between the low level position on the left side and the high level position on the right side is the position where the boundary of the target object exists, and of course the position of Pl is the boundary of the object. , that is, at the cutting position.

次に、指定箇所Plの近傍の曲線C0上にある箇所pJ
lを設定し、その点における曲線C6の法線方向で近傍
箇所Pi′ を通過する直線Vi′上の濃淡波形W′l
を各指定箇所近傍Pi′毎に求める(第4ステツプ)、
すなわち、第3図では、Plの位置の近傍のP1′の位
置で、曲線C0の法線方向に直線V、/ を書き、その
V1′上における濃淡波形W1′ を測定する。この結
果、第3図(b)の右側に示すように、■1′上の座標
のP′より左側の点を境界として左側より右側のレベル
(濃淡値)が高くなっている。つまり、P′位置は対象
物体の境界よりずれた位置にある。
Next, a point pJ on the curve C0 near the specified point Pl
1, and the gray waveform W'l on the straight line Vi' passing through the neighboring point Pi' in the normal direction of the curve C6 at that point.
is determined for each designated location Pi' (fourth step).
That is, in FIG. 3, a straight line V,/ is drawn in the normal direction of the curve C0 at a position P1' near the position P1, and a gradation waveform W1' on that V1' is measured. As a result, as shown on the right side of FIG. 3(b), the level (gradation value) on the right side is higher than on the left side, with the point to the left of coordinate P' on 1' being the boundary. In other words, the P' position is at a position shifted from the boundary of the target object.

このようにして、第3ステツプと第4ステツプとでP、
、 P、、 P、、 P、の各位置での濃淡波形と、そ
れらの近傍におけるp % 、 p、l 、 p、l 
、 P、/の各位置での濃淡波形とを求める。
In this way, in the third and fourth steps, P,
, P, , P, , P, gradation waveform at each position and p % , p, l , p, l in their vicinity
, P, and the shading waveform at each position are determined.

ここで、第3図(b)の左側と右側の画像濃淡波形Wl
とW1′ を比較すると、位置が殆んど近接しているた
め、類似した形状の波形を示していることが判る。しか
し、曲線C0と実際のエツジ部が形成する外形線とに若
干のずれがあるため、そのずれ量Zl だけ一方をシフ
トすれば、正しい境界線、つまり切り出し線が得られる
。そこで、近傍箇所Pi′の位置を修正するために、次
のステップで波形照合を行って、ずれ量Ziの値を各近
傍毎に求めていくのである。すなわち、濃淡波形Wi。
Here, the image density waveforms Wl on the left and right sides of FIG. 3(b)
Comparing W1' and W1', it can be seen that they exhibit similar waveforms because their positions are almost close to each other. However, since there is a slight deviation between the curve C0 and the actual outline formed by the edge portion, by shifting one of them by the amount of deviation Zl, a correct boundary line, that is, a cutting line can be obtained. Therefore, in order to correct the position of the neighboring point Pi', waveform comparison is performed in the next step, and the value of the deviation amount Zi is determined for each neighborhood. That is, the gray scale waveform Wi.

W五′の照合によって求められたずれfi Z iを用
いて近傍箇所を補正し、この補正箇所を指定箇所に加え
る(第5ステツプ)。波形照合では、従来よりよく知ら
れている相関法等を用いることにより、ずれ量Ziを簡
単に求めることができる。近傍箇所Pi′に求めたずれ
量Zlを加えて補正したものを箇所Pi′と表現する。
The neighboring locations are corrected using the deviation fiZi obtained by matching W5', and this corrected location is added to the designated location (fifth step). In waveform matching, the deviation amount Zi can be easily determined by using a well-known correlation method or the like. A point Pi' that is corrected by adding the obtained shift amount Zl to the neighboring point Pi' is expressed as a point Pi'.

次に、指定箇所Piにそれらの補正箇所を加えたものを
新しい指定箇所として、第2ステツプから第5ステツプ
までの処理を繰り返す(第6ステツプ、第2ステツプ〜
第5ステツプ)。
Next, adding these correction points to the specified point Pi is set as a new specified point, and the processes from the second step to the fifth step are repeated (the sixth step, the second step to
5th step).

そして、エツジ上の指定箇所の個数も増加してくると曲
線C,が切り出したい画像の外形エツジに近付いてくる
従って、予め指定箇所の数を設定しておき、その個数以
上になったときに、画像切リ出し箇所の検出処理を終了
する(第6ステツプ)。
As the number of specified points on the edge increases, the curve C approaches the outer edge of the image you want to cut out. Therefore, set the number of specified points in advance, and when the number exceeds that number, , the image cropping point detection process is completed (sixth step).

第3図(C))は、新たに求めた曲線C0を示す図であ
る。
FIG. 3(C)) is a diagram showing the newly determined curve C0.

第3図(c)において、p 、l 、  p、11 、
  p、IP、′は、いずれも、第3図(a)で位f!
!P、’、P、’p、l、p、I をZiのずれ量だけ
シフトさせて補正した位置である。そして、第3図(C
)の曲線C1は、それらの補正された各位置P1′〜P
4′を前の指定位置P1〜P、に加えて描いた第2番目
の補正曲線である。この第2番目の補正曲線は、最初の
曲線C,よりも対象物体の境界線に近い形状をしている
。そして、この第2番目の曲線上の補正位置P′〜P5
′に対して、第1図(a)の処理を実行することにより
、他の位置でのずれを再度計測し、次にその補正位置を
加えた第3番目の曲線を作成するのである。
In FIG. 3(c), p , l , p, 11 ,
p, IP,' are all at the position f! in FIG. 3(a).
! This is the position corrected by shifting P,',P,'p,l,p,I by the deviation amount of Zi. And, Figure 3 (C
) curve C1 corresponds to each of their corrected positions P1' to P
4' is the second correction curve drawn in addition to the previously specified positions P1 to P. This second correction curve has a shape closer to the boundary line of the target object than the first curve C. Then, the correction positions P' to P5 on this second curve
By executing the process shown in FIG. 1(a) with respect to ', the deviation at another position is measured again, and then a third curve is created by adding the corrected position.

第3図(C)の曲aC,から明らかなように、指定箇所
の数が増加すると、取り出したい特定画像の外形により
近い曲線を求めることが可能である。
As is clear from the curve aC in FIG. 3(C), as the number of specified points increases, it is possible to obtain a curve closer to the outline of the specific image to be extracted.

従って、次の近傍箇所の検出が容易となる。なお、2回
目以降の繰り返し処理では、画像濃淡波形W、とWi′
の切り出しのための基準となる箇所を、指定箇所Piの
うちで最新のもの(つまり、前の繰り返しで求めた補正
箇所p、#)のみを使用するものとする。
Therefore, the next nearby location can be easily detected. In addition, in the second and subsequent iterations, the image gradation waveforms W and Wi'
It is assumed that only the latest one (that is, the correction points p, # obtained in the previous iteration) among the specified points Pi is used as a reference point for cutting out.

第4図(a)〜(d)は、本発明におけるスプライン曲
線の各繰り返し毎の変化を示す図である。
FIGS. 4(a) to 4(d) are diagrams showing changes in each repetition of the spline curve in the present invention.

指定箇所の近傍の位置のずれ量を求め、それにより補正
した位置を指定箇所に加えることにより、スプライン曲
線C1は、第4図(a)から(b)、(b)から(C)
、(C)から(d)へと変化していく。繰り返し処理に
より、曲線C0は徐々に切り出したい画像の外形に近づ
いていく、このとき、徐々に切り出したい画像の外形エ
ツジ上の指定箇所の個数が増加するので、それが一定個
数になったときに、画像切り出し箇所検出を終了する。
By determining the amount of positional deviation in the vicinity of the designated location and adding the corrected position based on this to the designated location, the spline curve C1 can be created from Figure 4 (a) to (b) and (b) to (C).
, changes from (C) to (d). Through repeated processing, the curve C0 gradually approaches the outline of the image you want to cut out.At this time, the number of specified points on the outline edge of the image you want to cut out gradually increases, so when it reaches a certain number, , ends the image cutout location detection.

次に、求めた指定箇所の集合である画像切り出し箇所を
、直線ないし滑らかな曲線で補間することにより、切り
出したい画像の外形線上の各座標Qiを求める(Q、、
 Q、、 Q、、 Q、、 −・・−−Qnを求める)
。 そして、これらの座標をもとに、外形線の内部また
は外部の画像を切り出す、この切り出しの詳細は、例え
ば、「多角形のスキャンコンバージョン(2)j (P
 I X、 E L、 No、 16 、 pp。
Next, each coordinate Qi on the outline of the image to be cut out is determined by interpolating the image cutout points, which are a set of specified points, with a straight line or a smooth curve (Q, ,
Q,, Q,, Q,, -...--Find Qn)
. Then, based on these coordinates, the details of this clipping, which cuts out an image inside or outside the outline line, can be found, for example, in ``Polygon Scan Conversion (2)j (P
IX, EL, No. 16, pp.

136)に記載されている方法を用いることにより、容
易に実現することができる。
This can be easily realized by using the method described in 136).

なお、切り出し画像の形状的な特徴である中心位置、最
大高さ、幅、面積等が必要な場合には、指定箇所Piと
外形線上の座標Qiを用いた平均演算、最大最小検出演
算、または加算演算等により求めることができる。
In addition, when the central position, maximum height, width, area, etc., which are the geometrical characteristics of the cut-out image, are required, an average calculation, maximum/minimum detection calculation, or It can be determined by addition operations, etc.

第5図は、本発明の他の実施例を示す画像切り出し箇所
検出方法の説明図である。
FIG. 5 is an explanatory diagram of an image cutout point detection method showing another embodiment of the present invention.

前述の実施例では、指定箇所を通る滑らかな曲線を単に
スプライン曲線としたが、指定箇所におけるエツジ部の
つながりの方向が判っている場合には、各指定箇所での
曲線の接線方向がこの方向に一致するような条件付きの
スプライン曲線とする。すなわち、第5図(a)に示す
ように、画像切り出し外形部に対してR,、R,、Rあ
の接線方向が明らかに書ける場合には、それらを考慮し
た曲線C0を最初に描く6次に前述のように、複数の指
定箇所について繰り返し処理を行う。
In the above example, a smooth curve passing through a designated location was simply defined as a spline curve, but if the direction of connection of edge portions at a designated location is known, the tangential direction of the curve at each designated location can be set in this direction. Let it be a conditional spline curve that matches . In other words, as shown in FIG. 5(a), if the tangent directions R, , R, , R can be clearly drawn with respect to the image cutout outline, the sixth-order curve C0 that takes these into account is first drawn. As described above, the process is repeated for multiple designated locations.

また、前述の実施例では、最初の近傍箇所を設定すると
き、指定箇所に対して1つの近傍箇所としたが、指定箇
所の両側の近傍に1つずつの近傍箇所を設定して、処理
の効率化を図ることができる。すなわち、第5図(b)
に示すように、最初の曲線C0に対して、複数指定され
たうちの1つの箇所Plに対して、その左側の近傍P、
′ と右側の近傍P1.′ に対して、それぞれ法線方
向での濃淡波形W、’ 、 W、、’ を求めていく、
これにより。
In addition, in the above embodiment, when setting the first neighborhood point, one neighborhood point is set for the specified point, but one neighborhood point is set on each side of the specified point, and processing is performed. Efficiency can be improved. That is, FIG. 5(b)
As shown in FIG.
′ and the right-hand neighborhood P1. ′, find the shading waveforms W, ′, W, , ′ in the normal direction, respectively.
Due to this.

補正した位置をp、#、p、、#とすると、これらの位
置を指定位置に加えた曲線はC8′となる。
Letting the corrected positions be p, #, p, . . . , the curve obtained by adding these positions to the designated position is C8'.

このように、1つの指定位置の両側の近傍位置で同時に
補正を行えば、それだけ早く切り出し外形部のエツジに
近ずくことができる。
In this way, if the correction is performed simultaneously at positions near both sides of one specified position, the edge of the cut-out external portion can be approached more quickly.

〔発明の効果] 以上説明したように、本発明によれば、徐々に切り出す
べき特定物体のエツジ部分を自動的に決定していくので
、最終的に物体の外形線全周を求めることができ、この
外形線により特定の物体のみを抽出することができる。
[Effects of the Invention] As explained above, according to the present invention, since the edge portion of a specific object to be gradually cut out is automatically determined, it is possible to finally obtain the entire circumference of the object. , it is possible to extract only a specific object using this outline.

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

第1図は本発明の一実施例を示す画像切り出し箇所検出
方法の処理フローチャートと切り出される物体の例を示
す図、第2図は本発明が適用された画像編集システムの
全体構成図、第3図は第1図の画像切り出し箇所検出方
法における指定箇所と近傍箇所を示す図、第4図はスプ
ライン曲線の各繰り返し毎の変化を示す図、第5図は本
発明の他の実施例を示す画像切り出し箇所検出方法の説
明図である。 l:写真、3:計算機、2,4:画像メモリ、5:CR
Tデイスプレィ、6:スキャナ、7:座標入力装置、A
:全体の濃淡画像、a:特定部分画像、Pill!定箇
所、PN2.近傍箇所、C,ニスプライン曲線。 < 9 図(その1) 第 3 図(その1) (a) ■1上座標 ■1′上座標 第 図 第 図(その2) (C) 第 図 (a) 斑
FIG. 1 is a processing flowchart of a method for detecting an image cutout location according to an embodiment of the present invention and a diagram showing an example of an object to be cut out, FIG. 2 is an overall configuration diagram of an image editing system to which the present invention is applied, and FIG. The figure shows a specified point and a nearby point in the method of detecting an image cutout point in FIG. 1, FIG. 4 shows a change in each repetition of a spline curve, and FIG. 5 shows another embodiment of the present invention. FIG. 2 is an explanatory diagram of a method for detecting an image cutout location. l: photo, 3: computer, 2, 4: image memory, 5: CR
T display, 6: scanner, 7: coordinate input device, A
: Overall grayscale image, a: Specific partial image, Pill! Fixed location, PN2. Nearby location, C, Nispline curve. < 9 Figure (Part 1) Figure 3 (Part 1) (a) ■1 upper coordinate ■1' upper coordinate Figure Figure (2) (C) Figure (a) Spot

Claims (1)

【特許請求の範囲】 1、濃淡ないし2値画像から特定の物体画像のみを切り
出すための画像処理による切り出し箇所検出方法におい
て、上記特定の物体画像と背景との境界線上に複数個の
指定箇所を決定する第1のステップと、上記複数の指定
箇所を通る滑らかな曲線を求める第2のステップと、上
記各指定箇所での上記曲線に対する法線方向で、該指定
箇所を通る直線上の濃淡波形を各指定箇所毎に求める第
3のステップと、上記各指定箇所の近傍にある上記曲線
上の1つの箇所での上記曲線に対する法線方向で、上記
近傍箇所を通る直線上の濃淡波形を、上記指定箇所の近
傍箇所毎に求める第4のステップと、上記各指定箇所毎
に、指定箇所で求めた濃淡画像と近傍箇所で求めた濃淡
画像を照合し、近傍箇所の法線方向の位置ずれ量を求め
、上記各近傍箇所の位置を補正することにより上記曲線
自体を補正する第5のステップとを有することを特徴と
する画像切り出し箇所検出方法。 2、上記位置が補正された各近傍箇所を指定箇所に加え
て、上記第2のステップから第5のステップまでの処理
を、指定箇所の合計個数が予め定めた個数に達するまで
繰り返し行い、かつ第2回目以降の上記繰り返し処理で
は、前回の処理で位置が補正された近傍箇所のみに対し
て、濃淡波形の照合を行うことを特徴とする請求項1に
記載の画像切り出し箇所検出方法。 3、上記曲線は、複数の指定箇所を通る滑らかな曲線で
あるスプライン曲線とすることを特徴とする請求項1ま
たは2に記載の画像切り出し箇所検出方法。 4、上記曲線は、各指定箇所における特定の物体画像と
背景の境界の方向が明らかなとき、上記各指定箇所の近
傍に存在する濃淡変化が急激なエッジのつながりの方向
に、上記各指定箇所での曲線の接線方向が一致するよう
に、初期入力時の複数の指定箇所を通る滑らかな曲線を
求めることを特徴とする請求項1または2項に記載の画
像切り出し箇所検出方法。 5、画像処理によって濃淡ないし2値画像から特定の物
体画像のみを切り出し、切り出された物体画像を画面に
表示して、該物体画像と他の画像を組み合わせて編集す
る方法において、請求項第1項から第4項のうちの1つ
の画像切り出し箇所検出方法を用い、上記第1項に示し
た第1のステップから第5のステップまでの処理を行っ
た後、曲線上の複数の指定箇所と近傍箇所を濃淡ないし
2値画像内の切り出し箇所とするステップ1と、上記複
数の隣接する切り出し箇所間を直線ないし滑らかな曲線
で結んで、該曲線を切り出し領域の外形線とするステッ
プ2と、該切り出し領域の外形線の内部ないし外部のい
ずれか一方の画像のみを抽出するステップ3とを有する
ことを特徴とする画像切り出し方法。
[Claims] 1. In a method for detecting a cutout point by image processing for cutting out only a specific object image from a grayscale or binary image, a plurality of specified points are set on the boundary line between the specific object image and the background. a first step of determining, a second step of determining a smooth curve passing through the plurality of specified points, and a shading waveform on a straight line passing through the specified points in the normal direction to the curve at each of the specified points. A third step is to obtain for each designated location, and a shading waveform on a straight line passing through the nearby location in the normal direction to the curve at one location on the curve near each of the designated locations, A fourth step of determining the positional deviation in the normal direction of the nearby location by comparing the gray scale image determined at the designated location with the gray scale image determined at the nearby location for each designated location. a fifth step of correcting the curve itself by calculating the amount and correcting the position of each of the neighboring points. 2. Add each neighboring location whose position has been corrected above to the designated location, and repeat the processes from the second step to the fifth step until the total number of designated locations reaches a predetermined number, and 2. The image cutout point detection method according to claim 1, wherein in the second and subsequent repeating processes, gray scale waveforms are compared only for neighboring points whose positions have been corrected in the previous process. 3. The image cutting point detection method according to claim 1 or 2, wherein the curve is a spline curve that is a smooth curve passing through a plurality of specified points. 4. When the direction of the boundary between the specific object image and the background at each designated location is clear, the above curve is drawn in the direction of the connection of edges with rapid changes in shading existing in the vicinity of each of the designated locations. 3. The image cutting point detection method according to claim 1, wherein a smooth curve passing through a plurality of specified points at the time of initial input is obtained so that the tangential directions of the curves coincide with each other. 5. A method for cutting out only a specific object image from a gray scale or binary image by image processing, displaying the cut out object image on a screen, and editing the object image in combination with other images, as claimed in claim 1. After performing the processing from the first step to the fifth step shown in the above section 1 using one of the image cropping point detection methods from the sections 4 to 4, multiple designated points on the curve and a step 1 in which neighboring points are cut out points in a gray scale or binary image; a step 2 in which the plurality of adjacent cut out points are connected with a straight line or a smooth curve and the curve is set as an outline of the cut out region; An image cutting method comprising the step of extracting only an image either inside or outside the outline of the cutting area.
JP1204321A 1989-08-07 1989-08-07 Method for detecting picture segmenting position and picture segmenting method using this method Pending JPH0368085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1204321A JPH0368085A (en) 1989-08-07 1989-08-07 Method for detecting picture segmenting position and picture segmenting method using this method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1204321A JPH0368085A (en) 1989-08-07 1989-08-07 Method for detecting picture segmenting position and picture segmenting method using this method

Publications (1)

Publication Number Publication Date
JPH0368085A true JPH0368085A (en) 1991-03-25

Family

ID=16488553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1204321A Pending JPH0368085A (en) 1989-08-07 1989-08-07 Method for detecting picture segmenting position and picture segmenting method using this method

Country Status (1)

Country Link
JP (1) JPH0368085A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0581429A (en) * 1991-09-18 1993-04-02 Personal Joho Kankyo Kyokai Detection of picture segmentation position and segmenting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0581429A (en) * 1991-09-18 1993-04-02 Personal Joho Kankyo Kyokai Detection of picture segmentation position and segmenting device

Similar Documents

Publication Publication Date Title
CN110569699B (en) Method and device for carrying out target sampling on picture
JP2776295B2 (en) Image index generation method and image index generation device
US6654506B1 (en) Method for automatically creating cropped and zoomed versions of photographic images
KR101399709B1 (en) Model-based dewarping method and apparatus
US8160366B2 (en) Object recognition device, object recognition method, program for object recognition method, and recording medium having recorded thereon program for object recognition method
JP3684017B2 (en) Image processing apparatus and method
EP1211640A2 (en) Image processing methods and apparatus for detecting human eyes, human face and other objects in an image
US20040037460A1 (en) Method for detecting objects in digital images
JP2006338313A (en) Similar image retrieving method, similar image retrieving system, similar image retrieving program, and recording medium
JP2002092606A (en) Image processor, image processing method and recording medium recording the same
JP4772819B2 (en) Image search apparatus and image search method
US10586099B2 (en) Information processing apparatus for tracking processing
EP2782065A1 (en) Image-processing device removing encircling lines for identifying sub-regions of image
EP2536123B1 (en) Image processing method and image processing apparatus
JP2009211490A (en) Image recognition method and image recognition device
JP2002099911A (en) Raster image vector conversion method based on computerized automation
JPH05303643A (en) Pattern matching method
JPH11312243A (en) Facial region detector
JP2007026308A (en) Image processing method and image processor
JPH0368085A (en) Method for detecting picture segmenting position and picture segmenting method using this method
JP3698867B2 (en) Circular pattern determination method, apparatus and recording medium
CN110349111B (en) Correction method and device for two-dimensional code image
JP6278757B2 (en) Feature value generation device, feature value generation method, and program
JP2000132692A (en) Method for extracting feature point of curve and recording medium recording the method
US10796197B2 (en) Automatic method and system for similar images and image fragments detection basing on image content