JPH05101184A - Automatic setting method for interesting area - Google Patents

Automatic setting method for interesting area

Info

Publication number
JPH05101184A
JPH05101184A JP28938791A JP28938791A JPH05101184A JP H05101184 A JPH05101184 A JP H05101184A JP 28938791 A JP28938791 A JP 28938791A JP 28938791 A JP28938791 A JP 28938791A JP H05101184 A JPH05101184 A JP H05101184A
Authority
JP
Japan
Prior art keywords
contour
interesting area
template
region
interest
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP28938791A
Other languages
Japanese (ja)
Other versions
JP3149069B2 (en
Inventor
Fumio Ito
文夫 伊藤
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.)
Yamaha Motor Co Ltd
Original Assignee
Yamaha Motor 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 Yamaha Motor Co Ltd filed Critical Yamaha Motor Co Ltd
Priority to JP28938791A priority Critical patent/JP3149069B2/en
Publication of JPH05101184A publication Critical patent/JPH05101184A/en
Application granted granted Critical
Publication of JP3149069B2 publication Critical patent/JP3149069B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To obtain the method which can set the interesting area of high quality with high reproducibility. CONSTITUTION:A template image wherein the background and object are completely separated is inputted 2, the contour of the object is extracted 3 by image processing, and an auxiliary contour which is moved by a constant distance from the contour to the inside of the object is found 4; and plural interesting area elements are arranged 5 along the auxiliary contour and the sum set of those interesting area elements is set as the interesting area of the template image. The respective interesting area elements arranged along the auxiliary contour which is offset to the contour by the specific quantity include the contour (border line of density variation), so the interesting area of the template image set as the sum set of the respective interesting area elements effectively includes the density variation, and so the interesting area has good quality and highly precise template matching becomes possible.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像処理における関心
領域の自動設定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of automatically setting a region of interest in image processing.

【0002】[0002]

【従来の技術】画像処理においては、予め登録された対
象物のパターン(以下、テンプレートと称す)が画像中
のどの部分に存在するかを、テンプレートと画像との類
似度(又は非類似度)により調べることによって、対象
物の位置を求めるテンプレートマッチングと称される手
法が用いられることがある。
2. Description of the Related Art In image processing, the degree of similarity (or dissimilarity) between a template and an image is determined by determining in which part of the image a pattern (hereinafter, referred to as a template) of an object registered in advance exists. A method called template matching for finding the position of the target object may be used.

【0003】上記テンプレートマッチングは、図6に示
すように、テンプレート領域Sを対象画像(ベアリング
の画像)a,b,c…に重ね、テンプレートAとテンプ
レート領域Sに重なる対象画像(図示例では、対象画像
b)の間の類似度(又は非類似度)を計算し、その値を
その位置における対象物が存在する確からしさ(又は存
在しない確からしさ)とする方法であって、以上の操作
を画像の全ての点について実施し、類似度が最大(又は
非類似度が最小)となる位置、或いは類似度が或る閾値
を超える(又は非類似度が或る閾値以下となる)位置が
対象物の位置であるとされる。
In the template matching, as shown in FIG. 6, the template area S is superimposed on the target images (bearing images) a, b, c ... And the target images overlapping the template A and the template area S (in the illustrated example, A method of calculating the degree of similarity (or dissimilarity) between the target images b) and determining the value as the probability that the object at that position exists (or the probability that the object does not exist). It is performed for all points in the image, and the position where the similarity is maximum (or the dissimilarity is minimum) or the position where the similarity exceeds a certain threshold (or the dissimilarity is less than a certain threshold) is targeted. It is said to be the position of the object.

【0004】ところで、図6に示す例のように、対象物
がベアリングのような平面的なものである場合には、対
象物が積み重なっていることが多い。斯かる場合に特徴
量による画像処理を行なうには、対象物を何らかの手法
で切り離す必要がある。これは、特徴量を抽出するため
には対象物の外形を画像上で正しく把握しなければなら
ないためであって、さもなくば以後の処理を正しく行な
うことができない。
By the way, when the objects are flat such as bearings as in the example shown in FIG. 6, the objects are often stacked. In such a case, in order to perform image processing based on the feature amount, it is necessary to separate the object by some method. This is because it is necessary to correctly grasp the outer shape of the object on the image in order to extract the feature amount, otherwise the subsequent processing cannot be performed correctly.

【0005】しかしながら、実際には対象物の切り出し
は容易ではなく、現在ではパーツフィーダ等によって対
象物を1個ずつ供給したり、パーツメーカーから供給さ
れた対象物を人手によって1段ずつ並べ直す等の機械的
な方法が採られている。
However, in practice, it is not easy to cut out the objects, and at present, the objects are supplied one by one by a parts feeder or the like, or the objects supplied from a parts maker are manually rearranged step by step. The mechanical method of is adopted.

【0006】そこで、上記機械的な方法によらないで背
景と対象物の形状を分離する方法として、関心領域を用
いた分離法が提案されている。この方法は、画像処理の
ために入力された画像に対して、画像処理対象とする領
域(関心領域)と画像処理対象としない領域(非関心領
域)を予め決定しておき、これに従って画像処理を行な
う方法である。
Therefore, a separation method using a region of interest has been proposed as a method of separating the background and the shape of an object without resorting to the mechanical method. In this method, a region to be image-processed (region of interest) and a region not to be subjected to image-processing (non-region of interest) are determined in advance with respect to an image input for image processing, and image processing is performed accordingly. Is a way to do.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
関心領域を用いた分離法では、関心領域の設定に際して
テンプレート画像を無条件に4×4画素単位のモザイク
状のブロックに分割し、各々のブロックについて濃度が
一定であればそのブロックは非関心領域であり、濃度が
一定でなければ関心領域であるとするため、テンプレー
ト内に含まれる濃度変化点を効果的に取り込むことがで
きず、良質な関心領域を得ることができないという問題
があった。
However, in the conventional separation method using a region of interest, the template image is unconditionally divided into mosaic blocks of 4 × 4 pixel units when setting the region of interest, and each block is divided into blocks. If the density is constant, the block is a non-interest region, and if the density is not constant, it is a region of interest. Therefore, it is not possible to effectively capture the density change points included in the template, and it is of good quality. There was a problem that the region of interest could not be obtained.

【0008】本発明は上記問題に鑑みてなされたもの
で、その目的とする処は、高質の関心領域を再現性良く
設定することができる関心領域の自動設定方法を提供す
ることにある。
The present invention has been made in view of the above problems, and an object thereof is to provide an automatic region-of-interest setting method capable of setting a high-quality region of interest with good reproducibility.

【0009】[0009]

【課題を解決するための手段】上記目的を達成すべく本
発明は、背景と対象物とが完全に分離されたテンプレー
ト用画像を取り込み、画像処理によって対象物の輪郭線
を抽出し、該輪郭線から対象物の内側に向かって一定距
離だけ移動した補助輪郭線を求め、該補助輪郭線に沿っ
て複数の関心領域要素を配置し、これら関心領域要素の
和集合をテンプレート画像の関心領域として設定するこ
とをその特徴とする。
In order to achieve the above object, the present invention takes in a template image in which a background and an object are completely separated, extracts the contour line of the object by image processing, and Obtain an auxiliary contour line that has moved a certain distance from the line toward the inside of the object, arrange a plurality of ROI elements along the auxiliary contour line, and set the union of these ROI elements as the ROI of the template image. The feature is that it is set.

【0010】[0010]

【作用】本発明によれば、画像処理によって抽出される
各対象物の輪郭線は濃度変化の境界線を構成し、この輪
郭線に対して所定量だけオフセットされた補助輪郭線に
沿って配置された各関心領域要素は輪郭線(濃度変化の
境界線)を含むため、各関心領域要素の和集合として設
定されるテンプレート画像の関心領域は濃度変化を効果
的に含むこととなり、該関心領域は良質なものとなって
高精度のテンプレートマッチングが可能となる。
According to the present invention, the contour line of each object extracted by the image processing constitutes the boundary line of density change, and is arranged along the auxiliary contour line offset by a predetermined amount with respect to this contour line. Since each region-of-interest element that has been created includes a contour line (border line of density change), the region of interest of the template image set as the union of each region-of-interest element effectively contains density changes, and Will be of high quality and highly accurate template matching will be possible.

【0011】[0011]

【実施例】以下に本発明の一実施例を添付図面に基づい
て説明する。
An embodiment of the present invention will be described below with reference to the accompanying drawings.

【0012】図1は本発明方法の処理手順を示すフロー
チャート、図2はテンプレート用入力画像を示す図、図
3は抽出された対象物の輪郭線を示す図、図4及び図5
は図3のX部拡大詳細図であって、図4は輪郭線に沿っ
て決定されて補助輪郭線を示す図、図5は補助輪郭線に
沿って配置された関心領域要素を示す図である。
FIG. 1 is a flow chart showing the processing procedure of the method of the present invention, FIG. 2 is a diagram showing an input image for a template, FIG. 3 is a diagram showing contour lines of an extracted object, FIG. 4 and FIG.
FIG. 4 is an enlarged detail view of a portion X of FIG. 3, FIG. 4 is a view showing auxiliary contour lines determined along the contour line, and FIG. 5 is a view showing region-of-interest elements arranged along the auxiliary contour lines. is there.

【0013】本発明方法は、背景と対象物とが完全に分
離されたテンプレート用画像を取り込み、画像処理によ
って対象物の輪郭線を抽出し、該輪郭線から対象物の内
側に向かって一定距離だけ移動した補助輪郭線を求め、
該補助輪郭線に沿って複数の関心領域要素を配置し、こ
れら関心領域要素の和集合をテンプレート画像の関心領
域として設定するものである。
According to the method of the present invention, a template image in which the background and the object are completely separated is taken in, the contour line of the object is extracted by image processing, and a constant distance from the contour line toward the inside of the object. Find the auxiliary contour that has moved only by
A plurality of ROI elements are arranged along the auxiliary contour line, and the union of these ROI elements is set as the ROI of the template image.

【0014】ここで、対象物がベアリングである場合に
ついて本発明方法を具体的に説明する。
Now, the method of the present invention will be described in detail when the object is a bearing.

【0015】先ず、前記補助輪郭線の輪郭線からのオフ
セット量εが予め設定され(図1のステップ1)、次に
図2に示すようなテンプレート用入力画像が取り込まれ
る(図1のステップ2)。この入力画像は、二値化処理
によって図2に示すように背景Bと対象物であるベアリ
ングCとが黒と白の2色で完全に分離されている。
First, the offset amount ε of the auxiliary contour line from the contour line is preset (step 1 in FIG. 1), and then the template input image as shown in FIG. 2 is taken in (step 2 in FIG. 1). ). In this input image, as shown in FIG. 2, the background B and the target bearing C are completely separated in two colors, black and white, by the binarization process.

【0016】次に、上記テンプレート入力画像を利用
し、ベアリングCの実際の入力画像からテンプレート入
力画像を画素単位で引き算する画像処理を施すことによ
って、図3に示すようなベアリングCの4本のリング状
輪郭線C1,C2,C3,C4を抽出する(図1のステ
ップ3)。そして、この抽出した輪郭線C1〜C4から
ベアリングCの内側に向かって前記オフセット量εだけ
移動した補助輪郭線を求める(図1のステップ4)。例
えば、輪郭線C1,C2については、図4に示すように
輪郭線C1,C2を図示矢印方向にオフセット量εだけ
移動することによって、補助輪郭線C1’,C2’が求
められる。
Next, the template input image is used to perform image processing for subtracting the template input image from the actual input image of the bearing C on a pixel-by-pixel basis. The ring-shaped contour lines C1, C2, C3 and C4 are extracted (step 3 in FIG. 1). Then, an auxiliary contour line which is moved from the extracted contour lines C1 to C4 toward the inside of the bearing C by the offset amount ε is obtained (step 4 in FIG. 1). For example, as for the contour lines C1 and C2, the auxiliary contour lines C1 ′ and C2 ′ are obtained by moving the contour lines C1 and C2 in the direction of the illustrated arrow by an offset amount ε as shown in FIG.

【0017】上記のようにして補助輪郭線C1’,C
2’…が求められると、該補助輪郭線C1’,C2’…
に沿って複数の関心領域要素eが配置される(図1のス
テップ5)。例えば、補助輪郭線C1’,C2’につい
ては、図5に示すように該補助輪郭線C1’,C2’に
沿って複数の関心領域要素eが配置される。そして、こ
れらの関心領域要素eの和集合Σeがテンプレート画像
の関心領域として設定される。
As described above, the auxiliary contour lines C1 ', C
When 2 '... Is obtained, the auxiliary contour lines C1', C2 '...
A plurality of region-of-interest elements e are arranged along the line (step 5 in FIG. 1). For example, as for the auxiliary contour lines C1 'and C2', a plurality of region-of-interest elements e are arranged along the auxiliary contour lines C1 'and C2' as shown in FIG. Then, the union Σe of these ROI elements e is set as the ROI of the template image.

【0018】ところで、以上のように関心領域が設定さ
れると、該関心領域を構成する全ての関心領域要素eに
対してアダマール変換(詳細は特開平2−83786号
公報参照)が施され(図1のステップ6)、各関心領域
要素eにおけるアダマール係数が算出され、これらのア
ダマール係数がテンプレートとしてメモリに保存され
(図1のステップ7)、以後はこのテンプレートを用い
てテンプレートマッチングが行なわれる。
By the way, when the region of interest is set as described above, Hadamard transformation (for details, see Japanese Patent Laid-Open No. 2-83786) is applied to all the region of interest elements e constituting the region of interest. In step 6) of FIG. 1, the Hadamard coefficients in each region of interest element e are calculated, these Hadamard coefficients are stored in the memory as a template (step 7 in FIG. 1), and thereafter, template matching is performed using this template. ..

【0019】而して、本実施例では、画像処理によって
抽出される対象物である各ベアリングCの輪郭線C1〜
C4は濃度変化の境界線を構成し、この輪郭線C1〜C
4に対して所定量εだけオフセットされた補助輪郭線C
1’,C2’…に沿って配置された各関心領域要素eは
輪郭線(濃度変化の境界線)C1〜C4を含むため、各
関心領域要素eの和集合として設定されるテンプレート
画像の関心領域は濃度変化を効果的に含むこととなり、
該関心領域は再現性の高い良質なものとなって高精度の
パターンマッチングが可能となる。
Thus, in this embodiment, the contour lines C1 to C1 of the bearings C, which are the objects extracted by the image processing, are selected.
C4 constitutes a boundary line of density change, and the contour lines C1 to C
Auxiliary contour line C offset by a predetermined amount ε with respect to 4
Since each region-of-interest element e arranged along 1 ′, C2 ′, ... The area will effectively contain density changes,
The region of interest has high reproducibility and high quality, and highly accurate pattern matching is possible.

【0020】尚、補助輪郭線C1’,C2’…を決定す
る際のオフセット量εを設定し直せば、異なる傾向の関
心領域の設定試行を容易に行なうことができる。
By resetting the offset amount ε when determining the auxiliary contour lines C1 ', C2' ..., It is possible to easily perform the trial setting of the regions of interest having different tendencies.

【0021】[0021]

【発明の効果】以上の説明で明らかな如く、本発明によ
れば、背景と対象物とが完全に分離されたテンプレート
用画像を取り込み、画像処理によって対象物の輪郭線を
抽出し、該輪郭線から対象物の内側に向かって一定距離
だけ移動した補助輪郭線を求め、該補助輪郭線に沿って
複数の関心領域要素を配置し、これら関心領域要素の和
集合をテンプレート画像の関心領域として設定するよう
にしたため、高質の関心領域を再現性良く設定すること
ができるという効果が得られる。
As is apparent from the above description, according to the present invention, the template image in which the background and the object are completely separated is taken in, the contour line of the object is extracted by image processing, and the contour is extracted. Obtain an auxiliary contour line that has moved a certain distance from the line toward the inside of the object, arrange a plurality of ROI elements along the auxiliary contour line, and set the union of these ROI elements as the ROI of the template image. Since it is set, it is possible to obtain an effect that a high quality region of interest can be set with good reproducibility.

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

【図1】本発明方法の処理手順を示すフローチャートで
ある。
FIG. 1 is a flowchart showing a processing procedure of a method of the present invention.

【図2】テンプレート用入力画像を示す図である。FIG. 2 is a diagram showing a template input image.

【図3】抽出された対象物の輪郭線を示す図である。FIG. 3 is a diagram showing a contour line of an extracted object.

【図4】輪郭線に沿って決定されて補助輪郭線を示す図
である。
FIG. 4 is a diagram showing auxiliary contour lines determined along a contour line.

【図5】補助輪郭線に沿って配置された関心領域要素を
示す図である。
FIG. 5 is a diagram showing region-of-interest elements arranged along an auxiliary contour line.

【図6】テンプレートマッチングの説明図である。FIG. 6 is an explanatory diagram of template matching.

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

B 背景 C ベアリング(対象物) C1〜C4 輪郭線 C1’,C2’補助輪郭線 e 関心領域要素 B Background C Bearing (object) C1 to C4 Contour line C1 ', C2' Auxiliary contour line e Region of interest element

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 背景と対象物とが完全に分離されたテン
プレート用画像を取り込み、画像処理によって対象物の
輪郭線を抽出し、該輪郭線から対象物の内側に向かって
一定距離だけ移動した補助輪郭線を求め、該補助輪郭線
に沿って複数の関心領域要素を配置し、これら関心領域
要素の和集合をテンプレート画像の関心領域として設定
することを特徴とする関心領域の自動設定方法。
1. A template image in which a background and an object are completely separated is taken in, an outline of the object is extracted by image processing, and the inside of the object is moved by a certain distance from the outline. An automatic region-of-interest setting method comprising: obtaining an auxiliary contour line, arranging a plurality of ROI elements along the auxiliary contour line, and setting a union of these ROI elements as a ROI of a template image.
JP28938791A 1991-10-09 1991-10-09 How to automatically set the region of interest Expired - Fee Related JP3149069B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28938791A JP3149069B2 (en) 1991-10-09 1991-10-09 How to automatically set the region of interest

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28938791A JP3149069B2 (en) 1991-10-09 1991-10-09 How to automatically set the region of interest

Publications (2)

Publication Number Publication Date
JPH05101184A true JPH05101184A (en) 1993-04-23
JP3149069B2 JP3149069B2 (en) 2001-03-26

Family

ID=17742563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28938791A Expired - Fee Related JP3149069B2 (en) 1991-10-09 1991-10-09 How to automatically set the region of interest

Country Status (1)

Country Link
JP (1) JP3149069B2 (en)

Also Published As

Publication number Publication date
JP3149069B2 (en) 2001-03-26

Similar Documents

Publication Publication Date Title
JP3114668B2 (en) Object detection / background removal method, apparatus, and recording medium recording program
JP3679512B2 (en) Image extraction apparatus and method
US4918611A (en) Method and apparatus for controlling laser cutting by image processing
US8077976B2 (en) Image search apparatus and image search method
WO2012074361A1 (en) Method of image segmentation using intensity and depth information
JPH0877362A (en) Image processor
JP2638691B2 (en) Exposure determination method
JP2848749B2 (en) Feature image data extraction method
JP3149069B2 (en) How to automatically set the region of interest
JPH05114045A (en) Area separating method and image processor
JP2721107B2 (en) Video feature processing method
JP2638693B2 (en) Feature image data extraction method
JP2006293600A (en) Image processing method, image processor, and image composition processor
JPH1040312A (en) Device for preparing slip picture
JP3163601B2 (en) Image processing apparatus and method
JPH07168941A (en) Picture processor
JPH0528254A (en) Automatic vectorization processing method for graphic data and device used for the method
JPH05158164A (en) Method for extracting characteristic image data
JPS6336482A (en) Area dividing system for image
JP3449836B2 (en) Image clipping method and apparatus
JPH02105152A (en) Cut mask formation system
JPH0254267A (en) Automatic cutting system
JPH1011589A (en) Picture processing method
US20050254728A1 (en) Automatic cutting method for digital images
JPH0573719A (en) Character/graphic separator

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees