JPH08272980A - Closed area extracting device - Google Patents

Closed area extracting device

Info

Publication number
JPH08272980A
JPH08272980A JP7100442A JP10044295A JPH08272980A JP H08272980 A JPH08272980 A JP H08272980A JP 7100442 A JP7100442 A JP 7100442A JP 10044295 A JP10044295 A JP 10044295A JP H08272980 A JPH08272980 A JP H08272980A
Authority
JP
Japan
Prior art keywords
edge
pixel
unit
detected
pixels
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
JP7100442A
Other languages
Japanese (ja)
Other versions
JP3415700B2 (en
Inventor
Yuji Tsukasaki
裕士 司城
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.)
M C C KK
Original Assignee
M C C KK
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 M C C KK filed Critical M C C KK
Priority to JP10044295A priority Critical patent/JP3415700B2/en
Publication of JPH08272980A publication Critical patent/JPH08272980A/en
Application granted granted Critical
Publication of JP3415700B2 publication Critical patent/JP3415700B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE: To extract a closed area and perform closed area extraction which is faster than before by detecting 1st-4th edge directions. CONSTITUTION: An edge detection part 20 performs specific operation for pixel data and detects whether or not each pixel is an edge. When it is judged that the pixel is an edge, which of the 1st-4th edge directions the pixel has is detected. An extraction part 30 extracts a pixel which is in the edge direction from the pixel detected as the edge by the edge detection part 20 and has the 1st-4th edge directions crossing each other as a pixel in the closed area. Consequently, the operation by the edge detection part 20 which detects the pixel as the edge can be made small. Further, since the crossing of the 1st-4th edge directions is only necessary to be detected, the process of the extraction part 30 is made easy.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、入力した画像データ
からエッジ部分に囲まれた閉領域を抽出する装置に関す
るものである。特に、所定のある範囲の大きさの閉じた
目標形状を抽出するための装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for extracting a closed region surrounded by edge portions from input image data. In particular, the present invention relates to a device for extracting a closed target shape having a size within a predetermined range.

【0002】[0002]

【従来の技術】まず、従来の形状抽出技術について説明
する。画像データから目標を抽出するに際して、一般に
画像データ中で目標は明るい映像となっている、という
前提が成り立っている。エッジとは画像中で明るさの急
激な変化が或る部分をいう。また、エッジ方向とは画像
中の暗い部分から明るい部分に向かう方向を言う。この
エッジとエッジの持つ方向を抽出する処理を行うフィル
タをエッジ抽出フィルタと呼ぶ。
2. Description of the Related Art First, a conventional shape extraction technique will be described. When extracting a target from image data, it is generally assumed that the target is a bright image in the image data. The edge refers to a portion of the image where there is a rapid change in brightness. Further, the edge direction means a direction from a dark portion to a bright portion in the image. A filter that performs a process of extracting the edge and the direction of the edge is called an edge extraction filter.

【0003】図38は、エッジを説明する図である。図
において、90は目標の輪郭であると想定されるエッジ
である。図39は、エッジ方向を説明する図である。図
39(a)は、図38に示す91の部分を拡大したもの
である。また、図39(b)は、図38における92の
部分を拡大したものである。図において、斜線を施した
部分が画像中の暗い部分であり、無地の部分が画像中の
明るい部分である。両者の境界線がエッジであり、図3
9において矢印で示す方向がエッジ方向である。図40
は、従来のエッジ抽出処理を説明する図である。図にお
いて、矩形の一枡が1画素に相当する。注目画素eにエ
ッジが有るかどうかを検出するために、画素aから画素
iまでの9画素の領域を用いる。各画素は、例えば、0
〜255のいずれかの画素値を持っているものとする。
図41は、従来のX方向エッジ抽出フィルタを示す図で
ある。また、図42は、従来のY方向エッジ抽出フィル
タを示す図である。図41及び図42に示すフィルタ
を、図40に示す注目画素の領域の画素値とかけ算する
ことにより、エッジがあるかどうかを検出する。ソーベ
ルオペレータの計算式を図43に示す。図43に示す計
算式によって、X及びYの値が求められた後、Xの絶対
値とYの絶対値の和が閾値Tよりも大きかった場合に画
素eは、エッジを持つと判断される。図44にエッジ方
向を判断する基準を示す。図44に示すような、X及び
Yのそれぞれの値の大きさに応じてエッジ方向が8つの
方向に分類され、決定される。図45は、エッジ方向を
量子化する値を示す図である。
FIG. 38 is a diagram for explaining an edge. In the figure, 90 is an edge which is assumed to be the target contour. FIG. 39 is a diagram for explaining the edge direction. FIG. 39A is an enlarged view of the portion 91 shown in FIG. Further, FIG. 39 (b) is an enlarged view of a portion 92 in FIG. In the figure, the shaded area is the dark area in the image, and the plain area is the bright area in the image. The boundary line between the two is an edge, and FIG.
The direction indicated by the arrow in 9 is the edge direction. Figure 40
FIG. 6 is a diagram illustrating a conventional edge extraction process. In the figure, one box in a rectangle corresponds to one pixel. In order to detect whether or not the target pixel e has an edge, an area of 9 pixels from pixel a to pixel i is used. Each pixel is, for example, 0
It has a pixel value of any of .about.255.
FIG. 41 is a diagram showing a conventional X-direction edge extraction filter. FIG. 42 is a diagram showing a conventional Y-direction edge extraction filter. It is detected whether or not there is an edge by multiplying the filter shown in FIGS. 41 and 42 with the pixel value of the region of the target pixel shown in FIG. The calculation formula of the Sobel operator is shown in FIG. After the values of X and Y are obtained by the calculation formula shown in FIG. 43, if the sum of the absolute value of X and the absolute value of Y is larger than the threshold value T, the pixel e is determined to have an edge. . FIG. 44 shows the criteria for determining the edge direction. As shown in FIG. 44, the edge direction is classified into eight directions and determined according to the magnitude of each value of X and Y. FIG. 45 is a diagram showing values for quantizing the edge direction.

【0004】従来の形状抽出方法においては、特に目標
が円及び楕円である場合を想定している。円及び楕円に
おいては、エッジ方向は全て中心に向かっている。即
ち、エッジ抽出フィルタを用いて検出されたエッジ方向
を利用して、8方向が交差する部分を抽出する方法をと
っている。図46の点線で示すように、エッジ方向は円
の中心で交差する。図47は、量子化された方向1につ
いて、長さL画素分の線要素「スポーク」を伸ばした図
である。この従来例においては、スポークの長さを7画
素分とする。即ち、エッジが検出された画素P11から
量子化された方向1に向かって、7画素分矢印aで示す
方向にスポークを伸ばしてゆく。この時、スポーク内の
各画素P11からP17は、それぞれ量子化された方向
である1という値を持っている。図48は、量子化され
た方向が5である場合のスポークを示している。エッジ
方向5を持つ画素P23から矢印Pで示す方向、即ち、
方向5に向かってP17までスポークを伸ばしていく。
その結果、図49に示すように、画素P17は、1とい
う値と5という値の両方を持つので、6という値にな
る。同様に、他の方向から伸ばされたスポークも中心で
ある画素P17においては、全て重なる。図50に示す
ように、画素P17は、1+2+3+4+5+6+7+
8即ち、36という値を持つ。
In the conventional shape extraction method, it is particularly assumed that the target is a circle or an ellipse. In circles and ellipses, all edge directions are toward the center. That is, a method is adopted in which the edge direction detected by using the edge extraction filter is used to extract a portion where the eight directions intersect. As shown by the dotted line in FIG. 46, the edge directions intersect at the center of the circle. FIG. 47 is a diagram in which line elements “spokes” of length L pixels are extended in the quantized direction 1. In this conventional example, the length of the spoke is set to 7 pixels. That is, the spokes are extended by 7 pixels in the direction indicated by the arrow a from the pixel P11 where the edge is detected toward the quantized direction 1. At this time, each pixel P11 to P17 in the spoke has a value of 1, which is the quantized direction. FIG. 48 shows a spoke when the quantized direction is 5. The direction from the pixel P23 having the edge direction 5 to the arrow P, that is,
Extend the spoke in direction 5 to P17.
As a result, as shown in FIG. 49, the pixel P17 has both a value of 1 and a value of 5, and thus has a value of 6. Similarly, all the spokes extended from other directions also overlap in the pixel P17 which is the center. As shown in FIG. 50, the pixel P17 has 1 + 2 + 3 + 4 + 5 + 6 + 7 +
It has a value of 8 or 36.

【0005】なお、ここまでの説明においては、量子化
された方向を分かりやすく示すために、1から8の数値
を用いて表現してきたが、実際には各エッジ方向に対応
するビットを持つレジスタでエッジ方向を表現する。図
51に量子化されたエッジ方向と、8ビットレジスタと
の対応を示す。図に示すように、レジスタは右から左に
向かって0ビット目から7ビット目までが並んでいる。
エッジ方向が1の時には、0ビット目が1となり、エッ
ジ方向が2の時には、1ビット目が1となる。以下、同
様にエッジ方向が8の時には、7ビット目が1となる。
図51に示すように、8ビットを用いて量子化されたエ
ッジ方向を表現しスポークを伸ばした場合、図50に示
した画素P17の持つレジスタは、8方向全てを持つこ
とになるので、図52に示すように、全てのビットがオ
ンになった状態、即ち、1がたった状態となる。これに
より、この形状が円であることが判断される。また、図
52には、目標物が円である場合の中心に当たる画素の
レジスタのみを示したが、同様の8ビット表現のレジス
タは、全ての画素に対応して備えられている。即ち、画
素の画像データ中の画素の数と、エッジ方向を示す画素
毎のレジスタの数は同一である。
In the above description, in order to show the quantized direction in an easy-to-understand manner, it has been expressed by using the numerical values from 1 to 8. However, in reality, a register having a bit corresponding to each edge direction is used. Is used to express the edge direction. FIG. 51 shows the correspondence between the quantized edge direction and the 8-bit register. As shown in the figure, in the register, the 0th bit to the 7th bit are arranged from right to left.
When the edge direction is 1, the 0th bit is 1, and when the edge direction is 2, the 1st bit is 1. Similarly, when the edge direction is 8, the 7th bit becomes 1.
As shown in FIG. 51, when the quantized edge direction is expressed using 8 bits and the spoke is extended, the register of the pixel P17 shown in FIG. 50 has all eight directions. As shown at 52, all bits are turned on, that is, 1 is absent. From this, it is determined that this shape is a circle. Further, FIG. 52 shows only the register of the pixel corresponding to the center when the target is a circle, but the register of the same 8-bit expression is provided corresponding to all the pixels. That is, the number of pixels in the image data of the pixel is the same as the number of registers for each pixel indicating the edge direction.

【0006】次に、検出されたエッジの持つ方向が長方
形である場合について、図53及び図54を用いて説明
する。図53(a)は、検出された長方形のエッジから
伸ばされるスポークの例を示している。又図53(b)
は、検出されたエッジの方向を示している。このような
場合には、レジスタの値はエッジ方向1,3,5,7の
みを示しており、図54に示すようなレジスタの内容と
なる。また、長方形が傾きを持つような場合には、レジ
スタが図55に示すような値を持つ場合もある。
Next, a case where the direction of the detected edge is a rectangle will be described with reference to FIGS. 53 and 54. FIG. 53 (a) shows an example of the spokes extended from the detected rectangular edge. Moreover, FIG. 53 (b)
Indicates the direction of the detected edge. In such a case, the register value indicates only the edge directions 1, 3, 5, and 7, and the register contents are as shown in FIG. When the rectangle has a slope, the register may have a value as shown in FIG.

【0007】図56,図57は、検出されたエッジが平
行線を成す場合を示している。図56に示すように、エ
ッジ方向1及びエッジ方向5を持つようなエッジが検出
されると、レジスタは図57に示すような値を持つ。前
述した長方形の場合と同様に、平行線が傾きを持つ場
合、その傾きに応じてレジスタは、図58に示すような
値を取る場合もある。
56 and 57 show the case where the detected edges form parallel lines. As shown in FIG. 56, when an edge having edge direction 1 and edge direction 5 is detected, the register has a value as shown in FIG. Similar to the case of the rectangle described above, when the parallel lines have an inclination, the register may take a value as shown in FIG. 58 depending on the inclination.

【0008】[0008]

【発明が解決しようとする課題】従来の目標抽出装置
は、以上のように構成されていたので、以下に述べるよ
うな問題点があった。マトリクス状のエッジ抽出フィル
タを用いていることにより、1画素のエッジ検出及びエ
ッジ方向の検出に3×3画素、即ち9画素の演算が必要
であり、計算時間がかかるという問題点があった。ま
た、記憶容量も大きな容量を必要としていた。また、
円、楕円形状等の特殊な形状の抽出しかできず、細長い
形状や複雑な形状は抽出できないという問題点があっ
た。抽出できない形状の例を図59及び図60に示す。
図59は、細長い領域が抽出されない例である。また、
図60は、複雑な領域が抽出されない例である。また、
円、楕円形状の一部分のみが抽出されることがあるとい
う問題点があった。この場合の例を図61,図62に示
す。図61は、1つの領域の一部分しか抽出されない例
であり、実際の形状が図61(a)であるのに対して、
抽出された形状は、図61(b)となってしまう。ま
た、図62は、1つの連続した領域が複数の領域に分断
されて抽出される例である。実際の領域は、図62
(a)に示す形状であるのに対して抽出された形状は図
62(b)となってしまう。これらの問題点は、この従
来の方式がエッジ方向は、すべて中心に向かっていると
いう考え方に基づいていることによる。
Since the conventional target extraction apparatus is constructed as described above, it has the following problems. The use of the matrix-shaped edge extraction filter requires the calculation of 3 × 3 pixels, that is, 9 pixels for the edge detection of one pixel and the detection of the edge direction, resulting in a problem that the calculation time is long. Also, a large storage capacity is required. Also,
There is a problem that only special shapes such as circles and ellipses can be extracted, and elongated shapes and complicated shapes cannot be extracted. Examples of shapes that cannot be extracted are shown in FIGS. 59 and 60.
FIG. 59 is an example in which a long and narrow area is not extracted. Also,
FIG. 60 is an example in which a complicated area is not extracted. Also,
There is a problem that only a part of a circle or an ellipse may be extracted. An example of this case is shown in FIGS. 61 and 62. FIG. 61 is an example in which only a part of one region is extracted, and the actual shape is shown in FIG.
The extracted shape is as shown in FIG. 61 (b). Further, FIG. 62 is an example in which one continuous area is divided into a plurality of areas and extracted. The actual area is shown in FIG.
The shape shown in FIG. 62A is shown in FIG. 62B while the shape shown in FIG. These problems are based on the idea that this conventional method is that all edge directions are toward the center.

【0009】この発明は上記のような問題点を解消する
ためになされたもので、以下の各点を目的としている。
画像データのノイズを誤って目標として抽出することの
ない閉領域抽出装置を得る。目標対象物でないものを抽
出したり、目標対象物の抽出を逃すことのない閉領域抽
出装置を得る。目標対象物よりも大きなものの一部を目
標対象物と誤って抽出することのない閉領域抽出装置を
得る。
The present invention has been made to solve the above problems, and has the following objects.
(EN) A closed region extraction device that does not erroneously extract noise of image data as a target. (EN) A closed region extraction device that does not miss a target object or misses the extraction of a target object. (EN) A closed region extraction device that does not mistakenly extract a part of a larger object than a target object as a target object.

【0010】[0010]

【課題を解決するための手段】この発明の閉領域抽出装
置は、以下の要素を有する。 (a)複数の画素から構成された画像を画素データに基
づいて記憶する記憶部、(b)上記記憶部に記憶された
画素データに対して所定の演算を行い、各画素が上記画
像内の輪郭となるエッジであるか否かを検出するととも
に、エッジである場合に第1〜第4のエッジ方向の内、
いずれのエッジ方向を持つエッジであるかを検出するエ
ッジ検出部、(c)上記エッジ検出部によりエッジとし
て検出された各画素からエッジ方向に存在する画素であ
って、第1〜第4のエッジ方向が交差する画素を、閉領
域内の画素として抽出する抽出部。
The closed area extraction device of the present invention has the following elements. (A) a storage unit that stores an image composed of a plurality of pixels based on pixel data; (b) a predetermined calculation is performed on the pixel data stored in the storage unit, and each pixel is stored in the image. In addition to detecting whether the edge is a contour, if it is an edge, in the first to fourth edge directions,
An edge detection unit that detects which edge direction the edge has, (c) a pixel existing in the edge direction from each pixel detected as an edge by the edge detection unit, and the first to fourth edges An extraction unit that extracts pixels whose directions intersect each other as pixels in a closed region.

【0011】上記抽出部は、上記画像の各画素毎に、第
1〜第4のエッジ方向に対応した第1〜第4のレジスタ
を有するレジスタ部と、上記エッジ検出部によってエッ
ジとして検出された画素のエッジ方向に対応するレジス
タをオンにするとともに、その画素からエッジ方向に存
在する所定数の画素のエッジ方向に対応するレジスタを
オンにするレジスタ設定部と、上記レジスタ設定部によ
り、第1〜第4のレジスタがオンに設定された画素を閉
領域内に属する画素として選択する選択部を備えたこと
を特徴とする。
The extraction unit detects, for each pixel of the image, a register unit having first to fourth registers corresponding to the first to fourth edge directions and an edge detected by the edge detection unit. A register setting unit that turns on a register corresponding to an edge direction of a pixel and turns on a register corresponding to an edge direction of a predetermined number of pixels existing in the edge direction from the pixel, and the register setting unit, ~ It is characterized by comprising a selection unit for selecting a pixel for which the fourth register is set to ON as a pixel belonging to the closed region.

【0012】上記エッジ検出部は、X方向において、+
X方向と−X方向のエッジを検出するX方向エッジ抽出
フィルタと、X方向に直交するY方向において、+Y方
向と−Y方向のエッジを検出するY方向エッジ抽出フィ
ルタを備え、上記各フィルタと画素データの演算により
エッジとエッジ方向を検出することを特徴とする。
[0012] The edge detecting section is + in the X direction.
An X direction edge extraction filter that detects edges in the X direction and the -X direction, and a Y direction edge extraction filter that detects edges in the + Y direction and the -Y direction in the Y direction orthogonal to the X direction are provided. It is characterized in that an edge and an edge direction are detected by calculating pixel data.

【0013】上記閉領域抽出装置は、更に、エッジ検出
部が検出したエッジとエッジ方向に基づいて、エッジ検
出部がエッジとして検出した画素が、閉領域の輪郭であ
ることを確認する輪郭確認部を備えていることを特徴と
する。
The closed area extraction device further includes a contour confirmation section for confirming that the pixel detected as an edge by the edge detection section is the contour of the closed area based on the edge and the edge direction detected by the edge detection section. It is characterized by having.

【0014】上記輪郭確認部は、エッジ検出部が検出し
たエッジとエッジ方向に基づいて、隣接する画素がエッ
ジであることを追跡確認することを特徴とする。
The contour confirmation unit traces and confirms that adjacent pixels are edges based on the edge detected by the edge detection unit and the edge direction.

【0015】上記輪郭確認部は、エッジ検出部が検出し
たエッジが持つエッジ方向に対向するエッジ方向を持つ
エッジの存在をチェックすることを特徴とする。
The contour confirmation unit is characterized by checking the existence of an edge having an edge direction opposite to the edge direction of the edge detected by the edge detection unit.

【0016】[0016]

【作用】この発明の閉領域抽出装置においては、エッジ
検出部が画素データに対して所定の演算を行い、各画素
がエッジであるかどうかを検出する。また、エッジであ
ると検出された場合には、第1〜第4のエッジ方向の
内、いずれのエッジ方向を持つ画素であるかを検出す
る。抽出部は、エッジ検出部により、エッジとして検出
された画素からエッジ方向にある画素であって、かつ、
第1〜第4のエッジ方向が交差する画素を閉領域内の画
素として抽出する。この発明においては、画素をエッジ
として検出しているエッジ検出部における演算が少なく
てすむ。また、第1〜第4のエッジ方向が交差すること
を検出すればよいため、抽出部における処理が容易にな
る。
In the closed region extracting apparatus of the present invention, the edge detecting section performs a predetermined calculation on the pixel data to detect whether each pixel is an edge. When the pixel is detected as an edge, it is detected which of the first to fourth edge directions the pixel has. The extraction unit is a pixel in the edge direction from the pixel detected as an edge by the edge detection unit, and
Pixels in which the first to fourth edge directions intersect are extracted as pixels in the closed region. According to the present invention, the number of calculations in the edge detection unit that detects pixels as edges is small. Moreover, since it is sufficient to detect that the first to fourth edge directions intersect, the processing in the extraction unit becomes easy.

【0017】上記抽出部は、第1〜第4のエッジ方向に
対応して第1〜第4のレジスタを各画素毎に有してい
る。レジスタ設定部は、エッジとして検出された画素及
びそのエッジとして検出された画素からその画素のエッ
ジ方向に存在する所定数の画素のエッジ方向に対応する
レジスタをオンにする。このようなレジスタの設定動作
を各画素について行うことにより、閉領域に存在する画
素は、第1〜第4のエッジ方向内に存在することによ
り、第1〜第4のレジスタが全てオンになる。選択部
は、第1〜第4のレジスタがオンに設定された画素を、
閉領域内の画素として選択する。
The extraction section has first to fourth registers for each pixel corresponding to the first to fourth edge directions. The register setting unit turns on a pixel detected as an edge and a register corresponding to the edge direction of a predetermined number of pixels existing in the edge direction of the pixel from the pixel detected as the edge. By performing such a register setting operation for each pixel, the pixels existing in the closed region are present in the first to fourth edge directions, so that all the first to fourth registers are turned on. . The selection unit selects pixels for which the first to fourth registers are set to ON,
Select as a pixel in the closed area.

【0018】上記エッジ検出部は、X方向エッジ抽出フ
ィルタと、Y方向エッジ抽出フィルタを備えている。X
方向エッジ抽出フィルタにより、+X方向と−X方向の
エッジを抽出する。また、Y方向エッジ抽出フィルタに
より、+Y方向と−Y方向のエッジを抽出する。
The edge detection section includes an X-direction edge extraction filter and a Y-direction edge extraction filter. X
The direction edge extraction filter extracts edges in the + X direction and the -X direction. Further, the Y direction edge extraction filter extracts the edges in the + Y direction and the −Y direction.

【0019】更に、この発明の閉領域抽出装置は、輪郭
確認部を備えている。輪郭確認部は、エッジ検出部が検
出したエッジが閉領域の輪郭であるかどうかを確認す
る。この輪郭確認部により、領域が閉領域であるか、開
領域であるかを認識することができる。
Further, the closed area extraction device of the present invention includes a contour confirmation section. The contour confirmation unit confirms whether the edge detected by the edge detection unit is the contour of the closed region. The contour confirmation unit can recognize whether the area is a closed area or an open area.

【0020】上記輪郭確認部は、エッジ検出部が検出し
たエッジとエッジ方向を辿ることにより、隣接する画素
がエッジであることを追跡確認する。追跡の結果、輪郭
の確認を開始した画素に戻ってきた場合には、閉領域で
あることが確認できる。
The contour confirmation unit traces and confirms that the adjacent pixel is an edge by tracing the edge detected by the edge detection unit and the edge direction. As a result of the tracking, when the pixel returns to the pixel where the confirmation of the contour is started, it can be confirmed that it is a closed region.

【0021】上記輪郭部は、エッジ検出部が検出したエ
ッジが持つエッジ方向に対向するエッジ方向を待つエッ
ジの存在を確認することにより、閉領域であることを確
認する。例えば、ある画素が+X方向のエッジである場
合には、その画素に対応して−X方向のエッジを持つ画
素が存在していることを確認する。また、ある画素が+
Y方向のエッジである場合には、その画素に対応して−
Y方向のエッジを待つ画素が存在することを確認する。
全てのエッジに対して、対向する方向を持つエッジが存
在していれば、閉領域であることが確認できる。
The contour portion is confirmed to be a closed region by confirming the existence of an edge waiting for an edge direction opposite to the edge direction of the edge detected by the edge detecting portion. For example, when a certain pixel has an edge in the + X direction, it is confirmed that a pixel having an edge in the -X direction exists corresponding to the pixel. Also, if a pixel is +
If it is an edge in the Y direction, it corresponds to the pixel −
Make sure that there are pixels waiting for an edge in the Y direction.
If there is an edge having a facing direction with respect to all the edges, it can be confirmed that it is a closed region.

【0022】[0022]

【実施例】【Example】

実施例1.図1は、この発明の実施例の目標探知アルゴ
リズムを示す流れ図である。この実施例においても、入
力画像中で周辺の画素と比較して明るい部分が目標物で
あるという考え方を前提にしている。即ち、入力画像が
周りの画素に比べて、明るい部分(目標と思われる部
分)を抽出し、抽出された形状により目標を2値化して
画像として出力するまでの処理を行う。
Example 1. FIG. 1 is a flowchart showing a target finding algorithm according to the embodiment of the present invention. Also in this embodiment, it is premised on the idea that a bright portion in the input image as compared with surrounding pixels is the target. That is, the process of extracting a bright portion (a portion that seems to be the target) in the input image as compared with the surrounding pixels, binarizing the target based on the extracted shape, and outputting it as an image is performed.

【0023】図1を用いて説明する。先ず、S10にお
いて、目標を抽出する対象の画像を入力する。次に、S
11において、エッジ抽出フィルタを用いてエッジの抽
出を行う。また、同時にエッジ方向の検出も行う。次
に、S12において、フィルタにより目標候補を検出す
る。続いて、S13において、検出された目標候補に対
してラベリング、即ち、ラベル付け操作を行う。次に、
S14において、ラベル付けされた目標候補からモーメ
ント特徴量により目標を検出する。最後に、S15にお
いて、画像を出力する。2値化された画像を出力する。
This will be described with reference to FIG. First, in S10, an image of a target from which a target is extracted is input. Then S
At 11, edges are extracted using an edge extraction filter. At the same time, the edge direction is also detected. Next, in S12, the target candidate is detected by the filter. Subsequently, in S13, labeling, that is, labeling operation is performed on the detected target candidates. next,
In S14, the target is detected from the labeled target candidates by the moment feature amount. Finally, in S15, the image is output. The binarized image is output.

【0024】図2は、前述した流れ図のS12におい
て、目標候補として検出された明るい部分の分布配置を
示す図である。S13において、ラベリングが行われた
後の状態を図3に示す。ラベリングとは、検出された目
標候補を識別するために行う名前付けのことである。各
目標候補に対して、ユニークな一意の識別子が付けられ
る。図3においては、数字とアルファベットの組み合わ
せでラベリングを行っているが、目標候補同士がユニー
クになる方式であれば、他の文字の組み合わせ等でも構
わない。また、S14の目標検出では、検出された目標
候補の面積やモーメント特徴量(目標の長さの縦,横
比)等を用いて目標の検出が行われる。
FIG. 2 is a diagram showing a distribution arrangement of bright portions detected as target candidates in S12 of the above-mentioned flowchart. FIG. 3 shows a state after the labeling is performed in S13. Labeling is a naming used to identify the detected target candidates. A unique identifier is assigned to each target candidate. In FIG. 3, labeling is performed using a combination of numbers and alphabets, but other combinations of characters may be used as long as the target candidates are unique. Further, in the target detection of S14, the target is detected by using the area of the detected target candidate, the moment feature amount (the length of the target, the aspect ratio), and the like.

【0025】図4に、この実施例の閉領域抽出装置の構
成を示すブロック図を示す。図において、1は閉領域抽
出装置であり、記憶部10、エッジ検出部20、抽出部
30、輪郭確認部40からなる。エッジ検出部20は、
X方向エッジ抽出フィルタ22及びY方向エッジ抽出フ
ィルタを備えている。X方向エッジ抽出フィルタは、X
方向の+X方向と−X方向のエッジを検出する。Y方向
エッジ抽出フィルタは、+Y方向と−Y方向のエッジを
検出する。また、抽出部30は、レジスタ部32、レジ
スタ設定部34、選択部36を備えている。
FIG. 4 is a block diagram showing the configuration of the closed region extracting apparatus of this embodiment. In the figure, 1 is a closed region extraction device, which comprises a storage unit 10, an edge detection unit 20, an extraction unit 30, and a contour confirmation unit 40. The edge detector 20
An X-direction edge extraction filter 22 and a Y-direction edge extraction filter are provided. The X direction edge extraction filter
The edges in the + X direction and the −X direction are detected. The Y direction edge extraction filter detects edges in the + Y direction and the −Y direction. The extraction unit 30 also includes a register unit 32, a register setting unit 34, and a selection unit 36.

【0026】先ず、エッジ検出部20について説明す
る。図5は、この実施例の閉じた領域からなる目標の一
例を示す図である。図5において、点線で示す矩形が一
画素に対応している。また、図6は、図5に示した目標
のエッジ方向を矢印で書き表した図である。図7は、こ
の発明の実施例において用いられるX方向エッジ抽出フ
ィルタの一例を示す図である。図に示すように、+方
向、−方向それぞれに長さrを持つ線状のフィルタであ
る。図8に、この発明の実施例のY方向エッジ抽出フィ
ルタを示す。図7に示すX方向エッジ抽出フィルタと同
様に、+Y方向、−Y方向それぞれに長さrを持つ線状
のフィルタである。図7及び図8に示すように、この実
施例で用いるエッジ抽出フィルタは、幅1画素に対して
長さが2r+1となっている。画素a,b,c,d,e
がX方向に並んでおり、注目画素を画素cとすると、 X=−a−b+d+e という計算をする。また、画素a,b,c,d,eがY
方向に並んでおり、注目画素を画素cとすると、 Y=−a−b+d+e という計算をする。そして、抽出する目標によって予め
与えられた所定の閾値Tと、X及びYの値をそれぞれ比
較することによって、X>Tであれば、注目画素cが+
X方向、即ち右向きのエッジ方向を持つエッジであると
検出する。また、X<−Tの場合には、−X方向、即ち
左向きのエッジ方向を持つエッジであると検出する。同
様に、Y>Tの時には、注目画素cが+Y方向、即ち上
向きのエッジ方向を持つエッジであると検出され、Y<
−Tの時には、注目画素cが−Y方向の、即ち下向きの
エッジ方向を持つエッジであると検出される。なお、こ
のエッジ抽出フィルタの値は可変である。このように、
幅が1画素である線状のエッジ抽出フィルタを用いるこ
とにより、従来用いていたマトリクス状(面状)のエッ
ジ抽出フィルタより、演算計算時間が早くなるという利
点が得られる。
First, the edge detector 20 will be described. FIG. 5 is a diagram showing an example of a target formed of a closed region according to this embodiment. In FIG. 5, the rectangle indicated by the dotted line corresponds to one pixel. Further, FIG. 6 is a diagram in which the target edge direction shown in FIG. 5 is represented by arrows. FIG. 7 is a diagram showing an example of the X-direction edge extraction filter used in the embodiment of the present invention. As shown in the figure, it is a linear filter having a length r in each of the + direction and the-direction. FIG. 8 shows a Y-direction edge extraction filter according to the embodiment of the present invention. Similar to the X-direction edge extraction filter shown in FIG. 7, it is a linear filter having a length r in each of the + Y direction and the −Y direction. As shown in FIGS. 7 and 8, the edge extraction filter used in this embodiment has a length of 2r + 1 for one pixel in width. Pixels a, b, c, d, e
Are arranged in the X direction and the pixel of interest is pixel c, X = −a−b + d + e is calculated. Also, the pixels a, b, c, d, and e are Y
When the pixel of interest is arranged in the direction and the pixel of interest is pixel c, Y = −a−b + d + e is calculated. Then, by comparing the values of X and Y with a predetermined threshold value T given in advance by the target to be extracted, if X> T, the pixel of interest c is +
It is detected that the edge has the X direction, that is, the edge direction facing right. When X <-T, it is detected that the edge has a -X direction, that is, an edge direction that is leftward. Similarly, when Y> T, the target pixel c is detected to be in the + Y direction, that is, an edge having an upward edge direction, and Y <
When -T, the target pixel c is detected as an edge having a -Y direction, that is, a downward edge direction. The value of this edge extraction filter is variable. in this way,
The use of the linear edge extraction filter having a width of 1 pixel has an advantage that the calculation time is shorter than that of the conventionally used matrix-shaped (planar) edge extraction filter.

【0027】図9は、抽出部30によるエッジ検出から
形状抽出までの処理の流れを示す流れ図である。エッジ
が検出されると、S20において、エッジ方向を縦,横
4方向に量子化する。図10は、この実施例の4方向に
量子化されたエッジ方向の値を示す図である。1は+X
方向、2は−Y方向、3は−X方向、4は+Y方向とそ
れぞれ定められている。図11は、この実施例において
画素毎に備えられる4ビットレジスタを示す図である。
この実施例では、エッジ方向の量子化は4方向で行われ
るので、レジスタも画素毎に4ビットからなる。0ビッ
ト目がエッジ方向1、1ビット目がエッジ方向2、2ビ
ット目がエッジ方向3、3ビット目がエッジ方向4にそ
れぞれ対応して設けられている。例えば、縦200画
素、横200画素の解像度を持つ画像が入力された場合
には、画素数は、200×200(40000)画素と
なり、4ビットレジスタの数も40000となる。レジ
スタ部32は、これらのレジスタを保持しているメモリ
である。
FIG. 9 is a flow chart showing the flow of processing from edge detection to shape extraction by the extraction unit 30. When an edge is detected, in S20, the edge direction is quantized into four vertical and horizontal directions. FIG. 10 is a diagram showing the values in the edge direction quantized in four directions in this embodiment. 1 is + X
Direction, 2 is defined as -Y direction, 3 is defined as -X direction, and 4 is defined as + Y direction. FIG. 11 is a diagram showing a 4-bit register provided for each pixel in this embodiment.
In this embodiment, since the quantization in the edge direction is performed in four directions, the register also has 4 bits for each pixel. The 0th bit corresponds to the edge direction 1, the 1st bit corresponds to the edge direction 2, the 2nd bit corresponds to the edge direction 3, and the 3rd bit corresponds to the edge direction 4. For example, when an image having a resolution of 200 pixels in the vertical direction and 200 pixels in the horizontal direction is input, the number of pixels is 200 × 200 (40000) pixels, and the number of 4-bit registers is 40,000. The register unit 32 is a memory that holds these registers.

【0028】次に、図を用いてこの実施例の閉領域抽出
装置の動作について詳しく説明する。図12は、図6に
示したエッジ方向を矢印で表わした図の拡大図である。
また、図13は、図12と同じ大きさで、エッジ方向の
量子化された値を用いて表現した図である。また、図1
4は、エッジ方向を図11に示した画素毎のレジスタを
用いて表現した図である。なお、これ以降、図におい
て、エッジ方向を持たない画素のレジスタは、ブランク
で表示する。図面を見やすくするためにブランクで表し
ているが、実際にはレジスタの値はオール0となってい
る。図11から図14に示したように、図9を示す流れ
図において、S21では全ての画素に対し、量子化され
た4つのレジスタを持たせる。次に、S22において、
レジスタ設定部34が検出されたエッジから長さL画素
分に対してエッジ方向にあるレジスタの対応するビット
を1にする。図15は、4方向に囲まれた長さLの範囲
の領域Lの領域抽出を説明する図である。抽出したい目
標の長さがL画素未満である場合、レジスタ設定部34
により、エッジ部分から長さL画素分検出されたエッジ
方向の値を入れることによって、縦,横の4方向が交差
する部分を抽出すれば、目標が検出できる。図16から
図23を用いて詳しく説明する。図16は、+X方向の
エッジ方向を持つ画素から、L画素分(この実施例では
6画素)の長さの線状フィルタを伸ばした図である。そ
れぞれの画素の量子化された方向1に対応するビットで
ある0ビット目のレジスタに1がたっている。図17
は、量子化された方向に(−Y)のエッジ方向を持つ画
素から、−Y方向に線状フィルタを伸ばした図である。
−Y方向に対応するビット各画素のレジスタ2ビット目
に1がたっている。図18は、量子化された方向3(−
X)のエッジ方向を持つ画素から6画素分のフィルタを
−X方向に伸ばした図である。量子化された方向3に対
応する画素毎のレジスタの2ビット目に1がたってい
る。図19は、量子化された方向4(+Y)のエッジ方
向を持つ画素から6画素分の線状フィルタを伸ばした図
である。量子化された方向4に対応する各画素毎のレジ
スタの3ビット目に1がたっている。目標の形状抽出
は、図16から図19に示した各フィルタの各レジスタ
の各ビットをオア演算することで行われる。図20は、
図14に示した検出されたエッジ方向を示すレジスタ
に、図16に示した+X方向のフィルタの値をオア演算
したものである。図21は、図20で示した図に、図1
7で示した−Y方向のフィルタの値をオア演算した各画
素ごとのレジスタを示す図である。図22は、図21に
示したレジスタに、図18に示した−X方向のフィルタ
の値をオア演算したものである。また、図23は、図2
2に示したレジスタの値に、図19に示した+Y方向の
フィルタの値を、オア演算した各画素毎のレジスタを示
す図である。以上のような手順で、図9に示した流れ図
のS22における処理が完了する。
Next, the operation of the closed region extracting apparatus of this embodiment will be described in detail with reference to the drawings. FIG. 12 is an enlarged view of the diagram shown in FIG. 6 in which the edge directions are indicated by arrows.
Further, FIG. 13 is a diagram expressed using the quantized value in the edge direction, which has the same size as FIG. Also, FIG.
FIG. 4 is a diagram in which the edge direction is expressed using the register for each pixel shown in FIG. It should be noted that, from this point onward, in the figure, the register of the pixel having no edge direction is displayed as blank. The values in the registers are all 0s, although they are shown as blanks for the sake of clarity. As shown in FIGS. 11 to 14, in the flow chart shown in FIG. 9, in S21, all pixels have four quantized registers. Next, in S22,
The register setting unit 34 sets 1 to the corresponding bit of the register in the edge direction for the length L pixels from the detected edge. FIG. 15 is a diagram for explaining the area extraction of the area L in the range of the length L surrounded by four directions. If the target length to be extracted is less than L pixels, the register setting unit 34
Thus, the target can be detected by inserting the value in the edge direction detected by the length L pixels from the edge portion and extracting the portion where the four vertical and horizontal directions intersect. This will be described in detail with reference to FIGS. 16 to 23. FIG. 16 is a diagram in which a linear filter having a length of L pixels (6 pixels in this embodiment) is extended from a pixel having an edge direction of + X direction. There is a 1 in the 0th bit register, which is the bit corresponding to the quantized direction 1 of each pixel. FIG. 17
[FIG. 6] is a diagram in which a linear filter is extended in the −Y direction from a pixel having a (−Y) edge direction in the quantized direction.
Bit corresponding to −Y direction 1 is set in the second bit of the register of each pixel. FIG. 18 shows that the quantized direction 3 (−
It is the figure which extended the filter for 6 pixels from the pixel which has the edge direction of (X) to the -X direction. There is a 1 in the second bit of the register for each pixel corresponding to the quantized direction 3. FIG. 19 is a diagram in which a linear filter for 6 pixels is extended from a pixel having a quantized direction 4 (+ Y) edge direction. There is a 1 in the 3rd bit of the register for each pixel corresponding to the quantized direction 4. The target shape extraction is performed by ORing each bit of each register of each filter shown in FIGS. 16 to 19. 20
The register indicating the detected edge direction shown in FIG. 14 is obtained by ORing the value of the filter in the + X direction shown in FIG. 21 is similar to the diagram shown in FIG.
FIG. 9 is a diagram showing a register for each pixel obtained by performing an OR operation on the value of the filter in the −Y direction shown in FIG. 7. FIG. 22 shows the register shown in FIG. 21 obtained by ORing the values of the −X direction filter shown in FIG. In addition, FIG.
FIG. 20 is a diagram showing a register for each pixel obtained by ORing the value of the filter in the + Y direction shown in FIG. 19 to the value of the register shown in FIG. 2. With the above procedure, the process in S22 of the flowchart shown in FIG. 9 is completed.

【0029】続いて、S23において、抽出部30の選
択部36が4つのビットが、全てが1になった画素を抽
出する。図24は、図23に示した画素毎のレジスタの
各ビットの値が、全て1になった画素のみを取り出して
2値化して表した図である。図において、レジスタの各
ビットが4つ全て1になった画素を1として、斜線部分
で表している。また、それ以外のレジスタの値を持つ画
素は0として、空白で表している。このように、斜線部
で示された画素の集合が抽出された形状となる。
Subsequently, in S23, the selection unit 36 of the extraction unit 30 extracts a pixel whose four bits are all 1. FIG. 24 is a diagram in which only pixels in which the value of each bit of the register for each pixel shown in FIG. 23 is 1 are extracted and binarized. In the drawing, a pixel in which all four bits of the register are 1 is represented by 1 and is indicated by a hatched portion. Pixels having other register values are set to 0 and are represented by blanks. In this way, the set of pixels indicated by the shaded portions has the extracted shape.

【0030】以上のように、この発明の閉領域抽出装置
においては、エッジ検出部20と抽出部30を用いるこ
とにより、画像内の各画素がエッジであるか否かを検出
する。また、エッジである場合には、第1〜第4のエッ
ジ方向の内、いずれのエッジ方向を持つエッジであるか
を検出する。更に、レジスタ設定部34が画素毎に設け
られたレジスタ部32に値を設定することにより、選択
部36がレジスタがオンに設定された画素を閉領域内に
属する画素として選択する。
As described above, in the closed region extracting apparatus of the present invention, the edge detecting section 20 and the extracting section 30 are used to detect whether or not each pixel in the image is an edge. In the case of an edge, it is detected which of the first to fourth edge directions the edge has. Further, the register setting unit 34 sets a value in the register unit 32 provided for each pixel, so that the selection unit 36 selects the pixel whose register is set to ON as a pixel belonging to the closed region.

【0031】次に、輪郭確認部40の動作について説明
する。図25は、形状全体が抽出されている場合の検出
されたエッジを表した図である。図26は、形状の一部
分しか抽出されていない場合のエッジを表す図である。
図25及び図26に示すように、人間が目で見て確認で
きるように、エッジ方向を表示すれば、形状全体が抽出
されているか、あるいは一部分しか抽出されていないか
の判断は、即座に行うことができる。一方、エッジの存
在、あるいは存在するエッジのエッジ方向をデータとし
て記憶している装置の場合には、検出されたエッジが形
状全体を囲んでいるかどうかの判断には、一定のアルゴ
リズムが必要である。図27に、この実施例の輪郭確認
部40の動作を説明する図を示す。輪郭確認部が輪郭を
追跡していく場合、エッジ方向と追跡方向を同一にして
追跡を開始する。更には、追跡は時計廻りに行う。その
詳細については、図28から図34を用いて説明する。
図27(a)は、追跡を行う画素の持つエッジ方向が量
子化された方向1である場合の追跡を示す。即ち、エッ
ジ方向と同一の方向から時計廻りにエッジが存在するか
どうかの追跡を行い、時計廻りに一回りする間にエッジ
の存在が検出されたら、そのエッジを持つ画素から継続
して次の追跡を行う。図27(b)は、追跡を開始する
画素の持つエッジ方向が量子化された方向2の場合であ
る。図27(c)は、追跡を開始する画素の持つエッジ
方向が量子化された方向3である場合を示している。図
27(d)は、追跡を開始する画素の持つエッジ方向が
量子化された方向4を持つ場合を示している。このよう
に、エッジの存在を発見するとそのエッジから追跡を開
始し、追跡中に検出された次のエッジから、そのエッジ
の持つ方向に応じて定められた方向で追跡を継続し、最
終的に追跡を開始した一番目の画素(始点の画素a)ま
で戻ってきたら追跡を完了する。以上のように、連続し
て追跡を行い始点まで戻って来たことにより、抽出され
た形状が閉じた領域(閉領域)であることの確認ができ
る。また、図26に示すように、エッジの存在が連続し
ていない場合には、輪郭確認部は図26のエッジ10
1、あるいは、エッジ102において、エッジの追跡を
行っても追跡する該当画素内において、エッジの存在を
検出することができなくなるので、抽出された形状が閉
領域ではないと判断できる。
Next, the operation of the contour confirmation section 40 will be described. FIG. 25 is a diagram showing detected edges when the entire shape is extracted. FIG. 26 is a diagram showing edges when only a part of the shape is extracted.
As shown in FIGS. 25 and 26, if the edge direction is displayed so that a person can visually check it, it is possible to immediately judge whether the entire shape is extracted or only a part thereof is extracted. It can be carried out. On the other hand, in the case of a device that stores the presence of an edge or the edge direction of an existing edge as data, a certain algorithm is required to determine whether the detected edge surrounds the entire shape. . FIG. 27 is a diagram for explaining the operation of the contour confirmation unit 40 of this embodiment. When the contour confirmation unit traces the contour, the tracking is started with the edge direction and the tracking direction being the same. Furthermore, the tracking is done clockwise. Details thereof will be described with reference to FIGS. 28 to 34.
FIG. 27A shows the tracking when the edge direction of the pixel to be tracked is the quantized direction 1. That is, it is tracked whether or not there is an edge in the clockwise direction from the same direction as the edge direction. Make a chase. FIG. 27B shows a case where the edge direction of the pixel that starts tracking is the quantized direction 2. FIG. 27C shows a case where the edge direction of the pixel that starts tracking is the quantized direction 3. FIG. 27D shows a case where the edge direction of the pixel that starts tracking has the quantized direction 4. In this way, when the existence of an edge is found, tracking is started from that edge, and from the next edge detected during tracking, tracking is continued in the direction determined by the direction of that edge, and finally The tracking is completed when the first pixel (the pixel a at the starting point) where the tracking is started is returned. As described above, it is possible to confirm that the extracted shape is a closed region (closed region) by tracing continuously and returning to the starting point. Further, as shown in FIG. 26, when the existence of edges is not continuous, the contour confirmation unit determines the edge 10 of FIG.
1 or the edge 102 cannot detect the existence of the edge in the corresponding pixel to be tracked even if the edge is tracked, so it can be determined that the extracted shape is not a closed region.

【0032】図28から図34を用いて詳しく説明す
る。輪郭確認部は、エッジ方向を持つ画像データを走査
し、最初に見つかったエッジから輪郭の追跡を開始す
る。図28は、最初の画素の追跡方向を示す図である。
図において、点線でかこまれているエッジが最初に見つ
かったエッジを持つ画素であるとする。エッジ方向が2
なので、図27(b)の方向で追跡を行うと、次のエッ
ジが(図中では左斜め下)検出される。図29に示すよ
うに、検出された画素の持つエッジ方向が1であるの
で、図27(a)に示す方向で追跡を行う。追跡中に次
のエッジを持つ画素が検出されると、その画素に着目し
て次の追跡を行う。図30に示すように、検出されたエ
ッジのエッジ方向は1であるので、図29に示した場合
と同様に、図27(a)の方向で追跡を行う。次に、検
出されたエッジは、図31に示すように、エッジ方向が
2であるので、図27(b)に示した方向で追跡を継続
する。同様に、図32においてもエッジ方向2に従って
追跡を行う。図33に示すように、検出されたエッジの
方向は1であるので図27(a)に示す方向で追跡を継
続する。以下、同様に追跡を連続して行い、最終的に図
34に示すように、開始した画素の隣の画素に至る。図
34では、検出されたエッジ方向が2であるので、図2
7(b)に示す方向で追跡を行い、図中で左隣に存在す
るエッジを検出する。輪郭確認部は、エッジの追跡中に
検出されたエッジをもつ画素が、1番最初に検出された
エッジを持つ画素であるかどうか常に監視している。図
34に示した追跡の時点で、検出されたエッジを持つ画
素が最初の画素と一致し、始点まで戻ってきたことが判
断され、追跡を終了する。この時点で、輪郭確認部は、
自分が追跡してきた抽出形状が閉領域であることを確認
する。以上のように、この実施例においては、エッジ検
出部が検出したエッジとエッジ方向に基づいて、隣接す
る画素がエッジであることを追跡確認する輪郭確認部に
ついて説明した。この例では、エッジ方向と同一方向に
追跡を開始する場合を示したが、エッジ方向を反対方向
に追跡を開始する場合でも構わない。エッジ方向と反対
方向に追跡する場合でも、右回りに追跡することで、エ
ッジを捜していくことができる。
A detailed description will be given with reference to FIGS. 28 to 34. The contour confirmation unit scans the image data having the edge direction, and starts the contour tracking from the edge found first. FIG. 28 is a diagram showing the tracking direction of the first pixel.
In the figure, it is assumed that the edge surrounded by the dotted line is the pixel having the edge found first. Edge direction is 2
Therefore, when the tracking is performed in the direction of FIG. 27B, the next edge is detected (lower left in the drawing). As shown in FIG. 29, the edge direction of the detected pixel is 1, so tracking is performed in the direction shown in FIG. When a pixel having a next edge is detected during tracking, the pixel is focused on for the next tracking. As shown in FIG. 30, the edge direction of the detected edge is 1, so tracking is performed in the direction of FIG. 27A, as in the case shown in FIG. Next, since the detected edge has an edge direction of 2 as shown in FIG. 31, tracking is continued in the direction shown in FIG. 27 (b). Similarly, in FIG. 32, tracking is performed according to the edge direction 2. As shown in FIG. 33, since the detected edge direction is 1, the tracking is continued in the direction shown in FIG. Thereafter, the tracking is continuously performed in the same manner, and finally, the pixel next to the pixel which has started is reached as shown in FIG. Since the detected edge direction is 2 in FIG. 34,
Tracking is performed in the direction shown in FIG. 7B, and the edge existing on the left side in the drawing is detected. The contour checking unit constantly monitors whether or not the pixel having the edge detected during the edge tracking is the pixel having the first detected edge. At the time of tracking shown in FIG. 34, it is determined that the pixel having the detected edge coincides with the first pixel and has returned to the starting point, and the tracking is ended. At this point, the contour checker
Make sure that the extracted shape you are tracking is a closed region. As described above, in this embodiment, the contour confirmation unit that traces and confirms that the adjacent pixel is an edge based on the edge detected by the edge detection unit and the edge direction has been described. In this example, the case where the tracking is started in the same direction as the edge direction is shown, but the case where the tracking is started in the opposite edge direction may be used. Even when tracing in the direction opposite to the edge direction, the edge can be searched by tracing in the clockwise direction.

【0033】次に、輪郭確認部の他の動作例について説
明する。図35は、前述した図25に示した図と同一の
形状全体が抽出されている場合のエッジを表わす図であ
る。図に示すように、閉じた形状全体が抽出されている
場合には、エッジが持つエッジ方向に対向するエッジ方
向を持つエッジが必ず存在する。例えば、図35に示す
ように、エッジ1aにはエッジ1bが対向している。同
様に、エッジ2aには2bが、エッジ3aには3bが対
向している。一方、図36に示すように、形状の一部分
しか抽出されていない場合には、図35に示したエッジ
1b,2bが存在していない。輪郭確認部は、このこと
を利用して、あるエッジが持つエッジ方向に対向するエ
ッジ方向を持つエッジが存在を確認できないことによ
り、形状が閉形状でないことを判断してもよい。
Next, another operation example of the contour confirmation section will be described. FIG. 35 is a diagram showing edges when the same entire shape as that shown in FIG. 25 is extracted. As shown in the figure, when the entire closed shape is extracted, there is always an edge having an edge direction opposite to the edge direction of the edge. For example, as shown in FIG. 35, the edge 1a is opposed to the edge 1b. Similarly, 2b faces edge 2a and 3b faces edge 3a. On the other hand, as shown in FIG. 36, when only part of the shape is extracted, the edges 1b and 2b shown in FIG. 35 do not exist. The contour confirming unit may judge that the shape is not a closed shape by utilizing this fact and not being able to confirm the existence of an edge having an edge direction opposite to the edge direction of a certain edge.

【0034】実施例2.前述した実施例においては、エ
ッジ抽出フィルタの長さrが2画素で構成されている例
を示したが、図37に示すように、長さrを3画素で構
成してもよい。あるいは、フィルタに設定する値を変え
ることによって、特性の違う抽出を行うエッジ抽出フィ
ルタを得ることができる。図37(a)に示すように、
前述した実施例で用いたエッジ抽出フィルタよりも画素
数を多く設定すると、画像データの輝度の変化が淡くて
も、輝度の差が出やすくなるというエッジ抽出フィルタ
を実現できる。また、図37(b)に示すように、値が
0である画素を多く、即ち幅広く設定すると、画像デー
タの輝度の差が淡くても、検出しやすい抽出フィルタを
得ることができ。即ち、輪郭がぼやけた画像データから
エッジの抽出が行える。図37においては、水平方向の
エッジを抽出するX方向エッジ抽出フィルタの例を示し
たが、同一の抽出フィルタをY方向エッジ抽出フィルタ
に用いても構わない。また、図示はしないが、幅を1画
素でなく2画素以上で構成して、エッジ抽出フィルタと
して用いても構わない。但し、その場合には、使用する
メモリが増え、計算時間も長くかかるという欠点があ
る。しかし、その場合でも、X方向又はY方向のみの計
算で済むので、従来の3×3のマトリクス状(面状)の
フィルタを用いた場合よりも、計算量が少なく、早く計
算が行えるという利点がある。
Embodiment 2 FIG. Although the length r of the edge extraction filter is composed of 2 pixels in the above-described embodiment, the length r may be composed of 3 pixels as shown in FIG. Alternatively, an edge extraction filter that performs extraction with different characteristics can be obtained by changing the value set in the filter. As shown in FIG. 37 (a),
When the number of pixels is set to be larger than that of the edge extraction filter used in the above-described embodiment, it is possible to realize an edge extraction filter in which a difference in luminance is likely to occur even if the change in luminance of image data is faint. Further, as shown in FIG. 37B, when the number of pixels having a value of 0 is set to be large, that is, wide, it is possible to obtain an extraction filter that is easy to detect even if the difference in brightness of image data is small. That is, the edge can be extracted from the image data whose outline is blurred. In FIG. 37, an example of the X-direction edge extraction filter for extracting the horizontal edge is shown, but the same extraction filter may be used as the Y-direction edge extraction filter. Although not shown, the width may be composed of two or more pixels instead of one pixel and used as an edge extraction filter. However, in that case, there is a drawback that the memory used increases and the calculation time also takes a long time. However, even in that case, since calculation in only the X direction or the Y direction is sufficient, the amount of calculation is smaller and the calculation can be performed faster than in the case of using a conventional 3 × 3 matrix (planar) filter. There is.

【0035】[0035]

【発明の効果】以上のように、この発明によれば、第1
〜第4のエッジ方向の検出を行うことにより、閉領域の
抽出を行うことができ、従来にまして高速な閉領域抽出
を行える。
As described above, according to the present invention, the first
~ By detecting the fourth edge direction, the closed region can be extracted, and the closed region can be extracted at a higher speed than ever before.

【0036】また、この発明によれば、各画素毎に第1
〜第4のレジスタを設けているので、従来に比べて少な
い記憶容量で閉領域の抽出を行える。
Further, according to the present invention, the first pixel is provided for each pixel.
Since the fourth register is provided, the closed area can be extracted with a smaller storage capacity than the conventional one.

【0037】また、この発明によれば、互いに直交する
X方向エッジ抽出フィルタとY方向エッジ抽出フィルタ
を用いることにより、エッジとエッジ方向を検出できる
ので、演算回数が少ないエッジ検出を行える。
Further, according to the present invention, since the edge and the edge direction can be detected by using the X-direction edge extraction filter and the Y-direction edge extraction filter which are orthogonal to each other, the edge can be detected with a small number of calculations.

【0038】また、この発明によれば、輪郭確認部を備
えているので、画像に含まれているノイズやクラッター
等の除去が行える。
Further, according to the present invention, since the contour confirmation section is provided, it is possible to remove noise and clutter contained in the image.

【0039】上記輪郭確認部は、隣接する画素を順に追
跡確認することにより、閉領域であることを確実にチェ
ックすることができる。
The contour checking section can surely check that the area is a closed area by sequentially checking the adjacent pixels.

【0040】また、上記輪郭部は、対向するエッジの存
在を確認することにより、前記画素を追跡する場合に比
べて、より高速に閉領域であることを確認することがで
きる。
Further, by confirming the existence of opposing edges, it is possible to confirm that the contour portion is a closed region at a higher speed than in the case of tracing the pixel.

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

【図1】 この発明の目標探知アルゴリズムの流れ図で
ある。
FIG. 1 is a flow chart of a target finding algorithm of the present invention.

【図2】 この発明の実施例におけるラベリングを説明
する図である。
FIG. 2 is a diagram for explaining labeling in the embodiment of the present invention.

【図3】 この発明の実施例におけるラベリングを説明
する図である。
FIG. 3 is a diagram for explaining labeling in the embodiment of the present invention.

【図4】 この発明の閉領域抽出装置の構成を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration of a closed region extraction device of the present invention.

【図5】 この発明の実施例で抽出される閉領域を示す
図である。
FIG. 5 is a diagram showing a closed region extracted in the embodiment of the present invention.

【図6】 この発明の実施例で抽出される閉領域をエッ
ジ方向を持つエッジで表した図である。
FIG. 6 is a diagram showing a closed region extracted by an embodiment of the present invention as an edge having an edge direction.

【図7】 この発明の実施例のX方向エッジ抽出フィル
タを示す図である。
FIG. 7 is a diagram showing an X-direction edge extraction filter according to an embodiment of the present invention.

【図8】 この発明の実施例のY方向エッジ抽出フィル
タを示す図である。
FIG. 8 is a diagram showing a Y-direction edge extraction filter according to an embodiment of the present invention.

【図9】 この発明の実施例のエッジ検出から形状抽出
の流れ図である。
FIG. 9 is a flowchart of edge detection to shape extraction according to the embodiment of this invention.

【図10】 この発明の実施例のエッジ方向の値を示す
図である。
FIG. 10 is a diagram showing values in the edge direction according to the embodiment of this invention.

【図11】 この発明の実施例の画素毎のレジスタを示
す図である。
FIG. 11 is a diagram showing a register for each pixel according to the embodiment of the present invention.

【図12】 この発明の実施例の図6の拡大図である。FIG. 12 is an enlarged view of FIG. 6 of the embodiment of the present invention.

【図13】 この発明の実施例のエッジ方向を量子化さ
れた方向を示す1〜4の数字で表した図である。
FIG. 13 is a diagram in which the edge direction of the embodiment of the present invention is represented by the numbers 1 to 4 indicating the quantized direction.

【図14】 この発明の実施例のエッジ方向を画素毎の
レジスタを用いて表した図である。
FIG. 14 is a diagram showing the edge direction of an embodiment of the present invention using a register for each pixel.

【図15】 この発明の実施例の4方向に囲まれた長さ
Lの範囲の領域抽出の概念図である。
FIG. 15 is a conceptual diagram of region extraction within a range of length L surrounded in four directions according to the embodiment of the present invention.

【図16】 この発明の実施例の+X方向の線状フィル
タの図である。
FIG. 16 is a diagram of a linear filter in the + X direction according to the embodiment of the present invention.

【図17】 この発明の実施例の−Y方向の線状フィル
タの図である。
FIG. 17 is a diagram of a linear filter in the −Y direction according to the embodiment of the present invention.

【図18】 この発明の実施例の−X方向の線状フィル
タの図である。
FIG. 18 is a diagram of a linear filter in the −X direction according to the embodiment of the present invention.

【図19】 この発明の実施例の+Y方向の線状フィル
タの図である。
FIG. 19 is a diagram of a + Y direction linear filter according to an embodiment of the present invention.

【図20】 この発明の実施例の+X方向の線状フィル
タをOR演算したレジスタを示す図である。
FIG. 20 is a diagram showing a register obtained by ORing a linear filter in the + X direction according to the embodiment of the present invention.

【図21】 この発明の実施例の−Y方向の線状フィル
タをOR演算したレジスタを示す図である。
FIG. 21 is a diagram showing a register obtained by ORing a linear filter in the −Y direction according to the embodiment of the present invention.

【図22】 この発明の実施例の−X方向の線状フィル
タをOR演算したレジスタを示す図である。
FIG. 22 is a diagram showing a register obtained by ORing a linear filter in the −X direction according to the embodiment of this invention.

【図23】 この発明の実施例の+Y方向の線状フィル
タをOR演算したレジスタを示す図である。
FIG. 23 is a diagram showing a register obtained by ORing a linear filter in the + Y direction according to the embodiment of the present invention.

【図24】 この発明の実施例の抽出された形状を示す
図である。
FIG. 24 is a diagram showing an extracted shape according to the embodiment of this invention.

【図25】 この発明の実施例の形状全体が抽出されて
いる場合を示す図である。
FIG. 25 is a diagram showing a case where the entire shape of the embodiment of the present invention is extracted.

【図26】 この発明の実施例の形状の一部分しか抽出
されていない場合を示す図である。
FIG. 26 is a diagram showing a case where only a part of the shape of the embodiment of the present invention is extracted.

【図27】 この発明の実施例の輪郭追跡部の動作を説
明する図である。
FIG. 27 is a diagram for explaining the operation of the contour tracking unit according to the embodiment of the present invention.

【図28】 この発明の実施例の画素の追跡方向を示す
図である。
FIG. 28 is a diagram showing tracking directions of pixels according to the embodiment of the present invention.

【図29】 この発明の実施例の画素の追跡方向を示す
図である。
FIG. 29 is a diagram showing tracking directions of pixels according to the embodiment of the present invention.

【図30】 この発明の実施例の画素の追跡方向を示す
図である。
FIG. 30 is a diagram showing tracking directions of pixels according to the embodiment of the present invention.

【図31】 この発明の実施例の画素の追跡方向を示す
図である。
FIG. 31 is a diagram showing tracking directions of pixels according to the embodiment of the present invention.

【図32】 この発明の実施例の画素の追跡方向を示す
図である。
FIG. 32 is a diagram showing tracking directions of pixels according to the embodiment of the present invention.

【図33】 この発明の実施例の画素の追跡方向を示す
図である。
FIG. 33 is a diagram showing tracking directions of pixels according to the embodiment of the present invention.

【図34】 この発明の実施例の画素の追跡方向を示す
図である。
FIG. 34 is a diagram showing tracking directions of pixels according to the embodiment of the present invention.

【図35】 この発明の実施例の形状全体が抽出されて
いる場合のエッジを表す図である。
FIG. 35 is a diagram showing edges when the entire shape of the embodiment of the present invention is extracted.

【図36】 この発明の実施例の形状の一部分しか抽出
されていない場合のエッジを示す図である。
FIG. 36 is a diagram showing edges when only part of the shape of the embodiment of the present invention is extracted.

【図37】 この発明の実施例のエッジ抽出フィルタの
他の例を示す図である。
FIG. 37 is a diagram showing another example of the edge extraction filter according to the embodiment of the present invention.

【図38】 従来のエッジを説明する図である。FIG. 38 is a diagram illustrating a conventional edge.

【図39】 従来のエッジ方向を説明する図である。FIG. 39 is a diagram illustrating a conventional edge direction.

【図40】 従来のエッジ抽出を説明する図である。FIG. 40 is a diagram illustrating conventional edge extraction.

【図41】 従来のX方向エッジ抽出フィルタを示す図
である。
FIG. 41 is a diagram showing a conventional X-direction edge extraction filter.

【図42】 従来のY方向エッジ抽出フィルタを示す図
である。
FIG. 42 is a diagram showing a conventional Y-direction edge extraction filter.

【図43】 従来のエッジ検出の計算式を示す図であ
る。
FIG. 43 is a diagram showing a conventional edge detection calculation formula.

【図44】 従来のエッジ方向を判断する基準を示す図
である。
FIG. 44 is a diagram showing a conventional criterion for determining an edge direction.

【図45】 従来のエッジ方向を量子化する値を示す図
である。
FIG. 45 is a diagram showing a conventional value for quantizing an edge direction.

【図46】 従来のエッジ方向が円形状の中心で交差す
ることを示す図である。
FIG. 46 is a diagram showing that the conventional edge directions intersect at the center of a circular shape.

【図47】 従来のスポークを伸ばした例を示す図であ
る。
FIG. 47 is a diagram showing an example in which a conventional spoke is extended.

【図48】 従来の量子化されたエッジ方向が5の時の
スポークを示す図である。
FIG. 48 is a diagram showing a conventional spoke when the quantized edge direction is 5.

【図49】 従来のスポークが重なった画素を示す図で
ある。
FIG. 49 is a diagram showing a pixel in which conventional spokes are overlapped.

【図50】 従来のスポークが重なった画素を示す図で
ある。
FIG. 50 is a diagram showing a pixel in which conventional spokes are overlapped.

【図51】 従来の量子化されたエッジ方向と8ビット
の対応を示す図である。
FIG. 51 is a diagram showing a correspondence between a conventional quantized edge direction and 8 bits.

【図52】 従来の画素毎のレジスタを示す図である。FIG. 52 is a diagram showing a conventional register for each pixel.

【図53】 従来の形状が長方形の例を示す図である。FIG. 53 is a diagram showing an example of a conventional rectangular shape.

【図54】 従来の形状が長方形の例を示す図である。FIG. 54 is a diagram showing an example in which the conventional shape is a rectangle.

【図55】 従来の形状が長方形の例を示す図である。FIG. 55 is a diagram showing an example of a conventional rectangular shape.

【図56】 従来の形状が平行線の例を示す図である。FIG. 56 is a diagram showing an example of conventional parallel lines.

【図57】 従来の形状が平行線の例を示す図である。FIG. 57 is a diagram showing an example of conventional parallel lines.

【図58】 従来の形状が平行線の例を示す図である。FIG. 58 is a diagram showing an example of conventional parallel lines.

【図59】 従来の抽出できない形状を示す図である。FIG. 59 is a diagram showing a conventional shape that cannot be extracted.

【図60】 従来の抽出できない形状を示す図である。FIG. 60 is a diagram showing a conventional shape that cannot be extracted.

【図61】 従来の抽出できない形状を示す図である。FIG. 61 is a diagram showing a conventional unextractable shape.

【図62】 従来の抽出できない形状を示す図である。FIG. 62 is a diagram showing a conventional shape that cannot be extracted.

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

1 閉領域抽出装置、10 記憶部、20 エッジ検出
部、22 X方向エッジ抽出フィルタ、24 Y方向エ
ッジ抽出フィルタ、30 抽出部、32 レジスタ部、
34 レジスタ設定部、36 選択部、40 輪郭確認
部。
DESCRIPTION OF SYMBOLS 1 closed area extraction device, 10 storage unit, 20 edge detection unit, 22 X direction edge extraction filter, 24 Y direction edge extraction filter, 30 extraction unit, 32 register unit,
34 register setting section, 36 selection section, 40 contour confirmation section.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 以下の要素を有する閉領域抽出装置 (a)複数の画素から構成された画像を画素データに基
づいて記憶する記憶部、(b)上記記憶部に記憶された
画素データに対して所定の演算を行い、各画素が上記画
像内の輪郭となるエッジであるか否かを検出するととも
に、エッジである場合に第1〜第4のエッジ方向の内、
いずれのエッジ方向を持つエッジであるかを検出するエ
ッジ検出部、(c)上記エッジ検出部によりエッジとし
て検出された各画素からエッジ方向に存在する画素であ
って、第1〜第4のエッジ方向が交差する画素を、閉領
域内の画素として抽出する抽出部。
1. A closed region extraction device having the following elements: (a) a storage unit for storing an image composed of a plurality of pixels based on pixel data; and (b) for the pixel data stored in the storage unit. Performs predetermined calculation to detect whether or not each pixel is an edge that is a contour in the image, and when it is an edge, in the first to fourth edge directions,
An edge detection unit that detects which edge direction the edge has, (c) a pixel existing in the edge direction from each pixel detected as an edge by the edge detection unit, and the first to fourth edges An extraction unit that extracts pixels whose directions intersect each other as pixels in a closed region.
【請求項2】 上記抽出部は、 上記画像の各画素毎に、第1〜第4のエッジ方向に対応
した第1〜第4のレジスタを有するレジスタ部と、 上記エッジ検出部によってエッジとして検出された画素
のエッジ方向に対応するレジスタをオンにするととも
に、その画素からエッジ方向に存在する所定数の画素の
エッジ方向に対応するレジスタをオンにするレジスタ設
定部と、 上記レジスタ設定部により、第1〜第4のレジスタがオ
ンに設定された画素を閉領域内に属する画素として選択
する選択部を備えたことを特徴とする請求項1記載の閉
領域抽出装置。
2. The extraction unit detects, as an edge by the edge detection unit, a register unit having first to fourth registers corresponding to first to fourth edge directions for each pixel of the image. The register setting unit that turns on the register corresponding to the edge direction of the selected pixel and turns on the register corresponding to the edge direction of a predetermined number of pixels existing in the edge direction from the pixel, and the register setting unit, The closed area extraction device according to claim 1, further comprising a selection unit that selects a pixel whose first to fourth registers are set to ON as a pixel belonging to the closed area.
【請求項3】 上記エッジ検出部は、X方向において、
+X方向と−X方向のエッジを検出するX方向エッジ抽
出フィルタと、X方向に直交するY方向において、+Y
方向と−Y方向のエッジを検出するY方向エッジ抽出フ
ィルタを備え、上記各フィルタと画素データの演算によ
りエッジとエッジ方向を検出することを特徴とする請求
項1又は2記載の閉領域抽出装置。
3. The edge detection unit in the X direction,
An X-direction edge extraction filter that detects edges in the + X direction and the -X direction, and + Y in the Y direction orthogonal to the X direction.
3. A closed region extracting apparatus according to claim 1, further comprising a Y-direction edge extraction filter for detecting edges in the Y-direction and the Y-direction, and detecting the edge and the edge direction by calculating each filter and pixel data. .
【請求項4】 上記閉領域抽出装置は、更に、エッジ検
出部が検出したエッジとエッジ方向に基づいて、エッジ
検出部がエッジとして検出した画素が、閉領域の輪郭で
あることを確認する輪郭確認部を備えていることを特徴
とする請求項1〜3いずれかに記載の閉領域抽出装置。
4. The contour area checking device further confirms, based on the edge and edge direction detected by the edge detector, that the pixel detected by the edge detector as an edge is the contour of the closed area. The closed region extraction device according to claim 1, further comprising a confirmation unit.
【請求項5】 上記輪郭確認部は、エッジ検出部が検出
したエッジとエッジ方向に基づいて、隣接する画素がエ
ッジであることを追跡確認することを特徴とする請求項
4記載の閉領域抽出装置。
5. The closed region extraction according to claim 4, wherein the contour confirmation unit traces and confirms that adjacent pixels are edges based on the edge detected by the edge detection unit and the edge direction. apparatus.
【請求項6】 上記輪郭確認部は、エッジ検出部が検出
したエッジが持つエッジ方向に対向するエッジ方向を持
つエッジの存在をチェックすることを特徴とする請求項
4記載の閉領域抽出装置。
6. The closed region extracting apparatus according to claim 4, wherein the contour checking unit checks the presence of an edge having an edge direction opposite to the edge direction of the edge detected by the edge detecting unit.
JP10044295A 1995-03-31 1995-03-31 Closed area extraction device Expired - Fee Related JP3415700B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10044295A JP3415700B2 (en) 1995-03-31 1995-03-31 Closed area extraction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10044295A JP3415700B2 (en) 1995-03-31 1995-03-31 Closed area extraction device

Publications (2)

Publication Number Publication Date
JPH08272980A true JPH08272980A (en) 1996-10-18
JP3415700B2 JP3415700B2 (en) 2003-06-09

Family

ID=14274053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10044295A Expired - Fee Related JP3415700B2 (en) 1995-03-31 1995-03-31 Closed area extraction device

Country Status (1)

Country Link
JP (1) JP3415700B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7239740B1 (en) 1998-04-07 2007-07-03 Omron Corporation Image processing apparatus and method, medium storing program for image processing, and inspection apparatus
JP2007183999A (en) * 1998-04-07 2007-07-19 Omron Corp Image processing apparatus and method, medium with program for image processing recorded thereon, and inspection apparatus
JP2014063377A (en) * 2012-09-21 2014-04-10 Nikon Systems Inc Image processing device and program
JP2015203652A (en) * 2014-04-15 2015-11-16 キヤノン株式会社 Information processing unit and information processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7239740B1 (en) 1998-04-07 2007-07-03 Omron Corporation Image processing apparatus and method, medium storing program for image processing, and inspection apparatus
JP2007183999A (en) * 1998-04-07 2007-07-19 Omron Corp Image processing apparatus and method, medium with program for image processing recorded thereon, and inspection apparatus
JP2014063377A (en) * 2012-09-21 2014-04-10 Nikon Systems Inc Image processing device and program
JP2015203652A (en) * 2014-04-15 2015-11-16 キヤノン株式会社 Information processing unit and information processing method

Also Published As

Publication number Publication date
JP3415700B2 (en) 2003-06-09

Similar Documents

Publication Publication Date Title
CN111627009B (en) Screen detection method and device and head-mounted display equipment
JP2938338B2 (en) Two-dimensional code
KR100361385B1 (en) Two-dimensional code recognition apparatus and method
US8254683B2 (en) Code image processing method
US7164795B2 (en) Apparatus for extracting ruled line from multiple-valued image
JP3251918B2 (en) Binarization method in optical character recognition system
US20080212879A1 (en) Method and apparatus for detecting and processing specific pattern from image
JPH09510809A (en) Method and apparatus for determining a fine azimuth of a barcode symbol in a two-dimensional CDD image
JPH0757051A (en) Pattern recognition device
JP5111055B2 (en) Image processing apparatus, image processing method, and computer program
JP2001043313A (en) Character segmenting method
JP3415700B2 (en) Closed area extraction device
US5119441A (en) Optical character recognition apparatus and method using masks operation
KR100503724B1 (en) Finding objects in an image
JP3268552B2 (en) Area extraction method, destination area extraction method, destination area extraction apparatus, and image processing apparatus
CN113888562A (en) Target detection method and device, computing equipment and storage medium
JP3460356B2 (en) Method and apparatus for detecting circle or ellipse
JP4244692B2 (en) Character recognition device and character recognition program
EP0702320A1 (en) Skew detection
JPH06109446A (en) Inspection apparatus for wiring pattern
KR0158417B1 (en) Object-locating method using image processing apparatus
EP1176544A1 (en) One-step scanning thinning algorithm
KR940011699B1 (en) Method of extracting the image contour from binary image signal
JPH0581430A (en) Detection of edge
JPH11232463A (en) Picture recognizing device and method therefor

Legal Events

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