JPH09218948A - Method for calculating center of image tending to concentric circle - Google Patents

Method for calculating center of image tending to concentric circle

Info

Publication number
JPH09218948A
JPH09218948A JP8023682A JP2368296A JPH09218948A JP H09218948 A JPH09218948 A JP H09218948A JP 8023682 A JP8023682 A JP 8023682A JP 2368296 A JP2368296 A JP 2368296A JP H09218948 A JPH09218948 A JP H09218948A
Authority
JP
Japan
Prior art keywords
center
circle
segments
segment
average length
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
JP8023682A
Other languages
Japanese (ja)
Other versions
JP3504417B2 (en
Inventor
Kiyoo Kobayashi
清雄 小林
Toshihiro Yamashita
敏広 山下
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.)
Nireco Corp
Original Assignee
Nireco Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nireco Corp filed Critical Nireco Corp
Priority to JP02368296A priority Critical patent/JP3504417B2/en
Publication of JPH09218948A publication Critical patent/JPH09218948A/en
Application granted granted Critical
Publication of JP3504417B2 publication Critical patent/JP3504417B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately find the center of graphic by drawing plural circles with different centers on a binarized object graphic and defining the center of a circle having the maximum or minimum average length overlapping these circles with the binarized graphic as the center of arcuate or radial graphic. SOLUTION: Plural circles with different centers O and P are drawn on the binarized object graphic such as a mesh 17, for example, the stream of picture elements within a range, which crosses one circle, composed of picture elements having continuous density on one side of the binarized graphic, namely, the part overlapping an arcuate object 17a with circles is defined as a segment, and a length L of the overlapped mesh 17 is defined as a segment length. In this case, a value dividing the total of lengths of segments with the number of these segments, namely, a value dividing the total of segment lengths of plural circles with the total number of segments in the case of a concentric circle composed of plural concentric circles is defined as the average length of segments. Then, the center of a circle having the maximum value of this average length of segments is defined as the center of the object graphic.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は同心円となるような
図形や1つの点から放射状に広がった図形の中心を算出
する同心円傾向画像中心算出法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a concentric circle tendency image center calculation method for calculating the center of a figure that becomes a concentric circle or a figure that spreads radially from one point.

【0002】[0002]

【従来の技術】くもの巣、点衝撃を与えられた時のガラ
スの放射状のひび割れ、水の波紋、流体の渦や巻貝など
の同心円または渦巻模様の画像の概略中心を画像処理に
より求め、この中心座標をもとに、半径方向と円周方向
を識別して、それぞれの方向について濃淡分布の変化状
態、2値化してピッチや線幅、線密度、地と線の割合な
どの分析が必要になる場合がある。このような場合、従
来はモニタ画面を目視して画像領域内で中心位置を決め
ていた。
2. Description of the Related Art Spiral webs, radial cracks in glass when subjected to point impact, ripples in water, concentric circles or spiral pattern images of fluid vortices and snails are obtained by image processing. Based on the center coordinates, it is necessary to identify the radial direction and the circumferential direction, and to analyze the change state of the density distribution in each direction and binarize it to determine the pitch, line width, line density, ratio of ground to line, etc. May be. In such a case, conventionally, the center position is determined within the image area by visually observing the monitor screen.

【0003】[0003]

【発明が解決しようとする課題】しかし、このような図
形は本来厳密な意味での中心は存在しない場合が多く、
このような状態で中心と思われる位置を決める作業とな
るため、個人差が大きくなり時間もかかる。このため画
像解析により自動的に中心を決めることが要望されてい
た。
However, such a graphic often has no center in the strict sense,
In such a state, since it is a work to determine the position which is considered to be the center, there are large individual differences and it takes time. Therefore, it has been desired to automatically determine the center by image analysis.

【0004】本発明は、上述の問題点に鑑みてなされた
もので、擬似的な円形状または放射状図形の中心を求め
る方法を提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a method for obtaining the center of a pseudo circular shape or radial figure.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
請求項1の発明では、2値化した対象図形上に中心を異
にした複数の円を描き、2値化した一方の濃度の連続し
た画素よりなり1つの円と交差している範囲の画素列を
セグメントとし、この円のセグメントの長さの合計値を
そのセグメント数で除したセグメントの平均値を求め、
このセグメントの平均長さが最大値または最小値となる
円の中心を対象図形の中心とする。
In order to achieve the above object, according to the invention of claim 1, a plurality of circles having different centers are drawn on a binarized target figure, and one binarized density is continuous. The pixel row of the range which consists of the pixels and intersects with one circle is set as a segment, and the average value of the segment is calculated by dividing the total value of the lengths of the segments of this circle by the number of the segments,
The center of the circle having the maximum or minimum average length of this segment is the center of the target graphic.

【0006】2値化した図形の一方の濃度、例えば白の
領域が円弧状をなしている場合、この円弧状体の中心と
同じ中心で、同じ半径の円はこの円弧状体と重なるが、
中心がずれた場合は重ならない。この円弧状体も正確な
円弧でなく変形したものが多い。そこで中心をずらし、
半径の同じ円を複数描き1つの円と重なる円弧状体の領
域をセグメントとして各円について、このセグメントの
平均長を求める。重なりが多い円がその円弧状体が形成
する円に近いとして、セグメントの平均長さの最大の円
の中心を円弧状体の中心とする。
When one density of a binarized figure, for example, a white area has an arc shape, a circle having the same center as the center of the arc body and having the same radius overlaps the arc body.
If the centers are offset, they do not overlap. Many of these arc-shaped bodies are not accurate arcs but have been deformed. So shift the center,
A plurality of circles having the same radius are drawn, and an area of an arcuate body overlapping with one circle is set as a segment, and the average length of this segment is obtained for each circle. The center of the circle having the largest average length of the segment is defined as the center of the arcuate body, assuming that the circle having a large number of overlaps is close to the circle formed by the arcuate body.

【0007】これに対して上記の白の領域が放射状とな
っている場合は、この放射状体図形の中心と同じ中心で
描いた円が放射状体の領域と重なる領域をセグメントと
すると、このセグメントの平均長さは他の中心位置で描
いた同一半径の円の場合と比べ最小となる。これは他の
中心の円は放射状体と斜めに重なるため、セグメントの
長さが長くなるためである。これにより図形が円弧状体
の集まりか放射状体の集まりかを決めておけば、その図
形の中心を推定することができる。円弧状をなす白領域
の径方向の間隔が大きく、描いた円弧と交叉する確率が
小さい場合にも放射状と同様になる。
On the other hand, in the case where the above-mentioned white area is radial, if the area where the circle drawn at the same center as the center of this radial body overlaps the area of the radial body is taken as a segment, this segment The average length is the smallest compared to the case of circles of the same radius drawn at other center positions. This is because the other central circle diagonally overlaps the radial body, and thus the length of the segment becomes long. Thus, if the figure is determined as a group of arcuate bodies or a group of radial bodies, the center of the figure can be estimated. The radial pattern is the same when the space between the white regions forming the circular arc is large in the radial direction and the probability of intersecting the drawn circular arc is small.

【0008】請求項2の発明では、2値化した対象図形
上に中心を異にした複数の同心円群を描き、2値化した
一方の濃度の連続した画素よりなり1つの円と交差して
いる範囲の画素列をセグメントとし、同心円を構成する
円のセグメントの長さの合計値をそのセグメント数で除
したセグメントの平均長さを求め、このセグメントの平
均長さが最大値または最小値となる同心円の中心を対象
図形の中心とする。
According to the second aspect of the present invention, a plurality of concentric circle groups having different centers are drawn on the binarized target figure, and the binarized pixel group consists of continuous pixels of one density and intersects with one circle. Determine the average length of a segment by dividing the total length of the segments of the circles that make up the concentric circles by the number of segments, with the pixel row in the range being the segment as the maximum value or the minimum value. The center of the concentric circle is the center of the target figure.

【0009】円弧状体や放射状体の図形の中心を求める
ために描く円は1つの中心位置に対して同心の円を複数
描き、この複数円のセグメントの長さを合計し、その合
計したセグメントの数で除したセグメントの平均長さを
求め、円弧状体の図形の場合、この平均長が最大のもの
を図形の中心とし、放射状体の図形の場合、この平均長
が最小のものを図形の中心とする。このように同心円に
ついて重なりを検出することにより、中心の推定精度が
向上する。円弧状をなす白領域の径方向の間隔が多少大
きくても、多数の同心円を描けばいずれかの円弧状の白
領域と重なる確率が大きくなる。
A circle drawn to find the center of a figure of an arcuate body or a radial body draws a plurality of concentric circles with respect to one center position, totals the segments of the plurality of circles, and sums the segments. Calculate the average length of the segment divided by the number of, and in the case of an arcuate figure, the one with the largest average length is the center of the figure, and in the case of a radial figure, the figure with the smallest average length is the figure As the center of. By detecting the overlap with respect to the concentric circles in this manner, the accuracy of center estimation is improved. Even if the radial intervals of the arc-shaped white areas are somewhat large, drawing a large number of concentric circles increases the probability of overlapping with any of the arc-shaped white areas.

【0010】請求項3の発明では、求めた中心に隣接し
た位置に中心を持つ円または同心円のセグメントの平均
長さが求めた中心の円または同心円のセグメントの平均
長さに接近している場合は、求めた中心と、接近したセ
グメントの平均長さを有する円の中心位置とを各セグメ
ントの平均長さまたはその逆数で重み付けした重心を求
め、この重心を新たな図形中心とする。
According to the third aspect of the present invention, when the average length of the circle or concentric circle segment having the center adjacent to the obtained center is close to the obtained center circle or the average length of the concentric segment. Calculates the center of gravity obtained by weighting the calculated center and the center position of the circle having the average length of the approaching segments by the average length of each segment or its reciprocal, and sets this center of gravity as a new figure center.

【0011】円弧状体や放射状体の形状は不規則性を有
し、1つの中心によって表せない場合が多い。また、描
かれた複数の円の中心位置は離散的(不連続)であるか
ら一般的には実際の中心と描かれた中心は一致しない。
このため値の接近したセグメントの平均長が複数得られ
る場合が多い。このような場合は求めた中心と、接近し
たセグメントの平均長を有する円の中心位置との重心を
求めるがその際、円弧状体の場合はセグメントの平均長
を重み付けし、放射状体の場合は平均長の逆数を重み付
けして重心を求め、その重心を新たな図形中心とする。
The shapes of arcuate bodies and radial bodies are irregular, and in many cases cannot be represented by one center. Further, since the center positions of the drawn circles are discrete (discontinuous), the actual center and the drawn center generally do not match.
For this reason, it is often the case that a plurality of average lengths of segments having close values are obtained. In such a case, the center of gravity between the obtained center and the center position of the circle having the average length of the approaching segments is obtained.At that time, in the case of an arcuate body, the average length of the segment is weighted, and in the case of a radial body, The center of gravity is obtained by weighting the reciprocal of the average length, and the center of gravity is set as the new center of the figure.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。図1は本発明を実施する画
像処理装置の構成例を示すブロック図である。撮像装置
1は二次元CCDセンサ等を有し、被測定物14を撮像
し電気信号を出力する。被測定物14はコンベアなどの
移送装置16により移送される。撮像装置1の近傍には
照明装置15が設けられ、移送されてくる被測定物14
を照明する。照明は上方、複数方向から、またはリング
状にして全周から行われる。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of an image processing apparatus embodying the present invention. The image pickup apparatus 1 has a two-dimensional CCD sensor or the like, and picks up an image of the DUT 14 and outputs an electric signal. The DUT 14 is transferred by a transfer device 16 such as a conveyor. An illumination device 15 is provided in the vicinity of the image pickup device 1, and the object to be measured 14 is transferred.
Illuminate. Illumination is performed from above, from multiple directions, or in a ring shape from the entire circumference.

【0013】A/D変換器2は撮像装置1からの入力デ
ータをアナログからディジタルに変換し、入力バッファ
3はこのディジタルデータを一時的に格納する。バス4
は信号の伝達を行い、プログラムメモリ5は本装置の動
作を規定するプログラムを格納し、CPU6はこのプロ
グラムに従い装置全体の制御を行う。画像処理器7は入
力した画像データの濃淡処理、2値化処理を行う。画像
解析器7aは本発明において最も重要かつ本質的作用、
すなわち2値画像に対して円環状のスキャンアドレスを
発生し、このアドレスに基づいて、2値画像メモリを検
査し、既に述べたセグメントを発見し、その長さを計算
する。2値画像メモリ8は2値画像データを格納し、濃
淡画像メモリ9は濃淡画像データを格納する。出力バッ
ファ10は出力するデータを一旦格納し、D/A変換部
11はこの出力データをディジタルよりアナログに変換
し、モニタ12はこの出力を画面に表示する。入力装置
13はキーボードやマウスからなり指示やデータなどを
入力する。
The A / D converter 2 converts the input data from the image pickup device 1 from analog to digital, and the input buffer 3 temporarily stores the digital data. Bus 4
Transmits a signal, the program memory 5 stores a program that defines the operation of the apparatus, and the CPU 6 controls the entire apparatus according to this program. The image processor 7 performs a gradation process and a binarization process on the input image data. The image analyzer 7a is the most important and essential function of the present invention,
That is, an annular scan address is generated for a binary image, the binary image memory is inspected based on this address, the segment already mentioned is found, and its length is calculated. The binary image memory 8 stores binary image data, and the grayscale image memory 9 stores grayscale image data. The output buffer 10 temporarily stores the data to be output, the D / A converter 11 converts this output data from digital to analog, and the monitor 12 displays this output on the screen. The input device 13 is composed of a keyboard and a mouse and inputs instructions, data and the like.

【0014】画像解析器7aにおける円環状スキャンア
ドレス生成の手法について説明する。図2は(X0,Y
0)を中心とし半径rの円上のアドレスS0,S1,…
…を示す図である。スキャンアドレスはS0,S1,S
2,S3,S4,……で示され、|Sn+1−Sn|の
距離は単位長さに設定されている。すなわちアドレスの
数は、単位長さをpとしたとき、2πr/p個とする。
円環状にスキャンするということは、S1,S2,S
3,……を順次発生し、これらに最も近い座標の画素を
取り出し、検査することである。
A method of generating an annular scan address in the image analyzer 7a will be described. Figure 2 shows (X0, Y
0) as the center and addresses S0, S1, ... on a circle of radius r
It is a figure which shows ... Scan addresses are S0, S1, S
2, S3, S4, ..., The distance | Sn + 1-Sn | is set to a unit length. That is, the number of addresses is 2πr / p, where p is the unit length.
Scanning in an annular shape means S1, S2, S
, 3 ... Sequentially occur, and the pixel of the coordinates closest to these is taken out and inspected.

【0015】図3はこのような画素座標を発生する手段
の構成例である。ステップカウンタ21は2πr/pに
等しいステップ(きざみ)を発生するカウンタである。
各ステップは図2における角度θを与えることと同意で
ある。ステップカウンタ21の出力は三角関数発生RO
M22,23に与えられ、水平および垂直成分に分解さ
れる。各成分は乗算器24で半径rを乗じられ円の中心
位置X0,Y0からの具体的距離に変換される。更に加
算器25で円の中心位置の座標、X0,Y0を加算する
ことにより、最終的なメモリ上のアドレスを得る。
FIG. 3 shows an example of the construction of means for generating such pixel coordinates. The step counter 21 is a counter that generates steps (steps) equal to 2πr / p.
Each step is synonymous with giving the angle θ in FIG. The output of the step counter 21 is the trigonometric function generation RO
It is given to M22 and M23 and decomposed into horizontal and vertical components. Each component is multiplied by the radius r in the multiplier 24 and converted into a concrete distance from the center positions X0 and Y0 of the circle. Further, the adder 25 adds the coordinates of the center position of the circle, X0 and Y0, to obtain the final address on the memory.

【0016】今までの説明では何らかの方法で濃淡画像
を2値化した画像に対して、円環状にスキャンする例を
記したが、それ以外に、直接濃淡画像を円環状にスキャ
ンし、この結果として得られた画素列に対して2値化処
理を施すことによってセグメント長を求めてもよい。こ
のようにすれば実質的に2値化メモリ8を省略でき、更
に便利である。
In the above description, an example in which a grayscale image is binarized by some method is described as an example in which the grayscale image is scanned in an annular shape. The segment length may be obtained by performing binarization processing on the pixel row obtained as above. In this way, the binarization memory 8 can be substantially omitted, which is more convenient.

【0017】被測定物14としてメロンを用いた場合に
ついて説明する。メロンの等級評価では、表面の網目の
細かさ、網目の線の細さ、網目の均一性などが評価対象
となる。このような評価を画像処理の技術により行うた
め、メロンを撮像して網目の解析を行う。網目は近似的
に円弧状形状(円弧状体)と放射状の形状(放射状体)
により構成されているとすると解析が容易になる。特に
網目の中心を座標の原点にする等、座標と関係付けて取
り扱うと解析が容易となる。このため網目の中心位置の
推定を画像処理の技術により行う。
A case in which a melon is used as the DUT 14 will be described. In the melon grade evaluation, the fineness of the surface mesh, the fineness of the mesh lines, the uniformity of the mesh, etc. are evaluated. Since such evaluation is performed by the image processing technique, the melon is imaged and the mesh is analyzed. The mesh is approximately circular arc shape (circular arc body) and radial shape (radial body)
If it is configured by, the analysis becomes easy. In particular, if the center of the mesh is used as the origin of the coordinates and handled in association with the coordinates, the analysis becomes easy. Therefore, the center position of the mesh is estimated by the image processing technique.

【0018】図4は図1の装置で撮像したメロンの表面
を表す。ベルトコンベア等の移送装置16の上に被測定
物14のメロンがつるの部分をほぼ上にして皿に乗せら
れて撮像装置1の下を通過してゆく。これを上方複数方
向から、またはリング照明15により全周方向から照明
し、撮像して、赤、緑、青の画像を得た後、2値化して
網目の出やすい色を選択し、これをシェーディング補正
して2値化する。画像にはつるの影響があるが、実際の
網目の解析ではつるの影響は少ないので無視する。図2
では網目の中心と思われる位置Oを中心に同心円を3個
描いた状態を示す。メロンの網目の場合円周方向は円弧
に近いが、半径方向の線は不規則で放射状とは認められ
ない。故に円周方向の網目の形状に基づいて、網目の中
心を推定する。
FIG. 4 represents the surface of the melon imaged with the device of FIG. The melon of the object to be measured 14 is placed on a plate on the transfer device 16 such as a belt conveyor or the like so that the vine part is substantially upward and passes under the imaging device 1. This is illuminated from a plurality of upward directions or from the entire circumference by the ring illumination 15 to obtain images of red, green, and blue, and then binarized to select a color that easily produces a mesh. Shading correction is performed and binarization is performed. Although the image has a vine effect, it is ignored in the actual mesh analysis because the vine effect is small. FIG.
Shows a state in which three concentric circles are drawn around the position O which is considered to be the center of the mesh. In the case of the melon mesh, the circumferential direction is close to a circular arc, but the radial lines are irregular and not radial. Therefore, the center of the mesh is estimated based on the shape of the mesh in the circumferential direction.

【0019】図5は網目と、網目の中心と仮定した位置
を中心とした円との重なりを示す図である。網目17は
円周方向の円弧状体17aと半径方向の放射状体17b
より成るが、円周方向の円弧状体17aの方が明確なの
でこれを考える。半径を同じくし、中心O,Pを有する
円と円弧状体17aとの重なり具合が示されている。円
弧状体17aまたは放射状体17bと円が重なっている
部分をセグメントと称し、重なっている網目17の長さ
Lをセグメント長とする。中心Oの円はO1,O2の範
囲で円弧状体17aと多く重なっており、中心Pの円は
P1,P2の範囲で円弧状体17aと多く重なってい
る。
FIG. 5 is a diagram showing an overlap between a mesh and a circle centered on a position assumed to be the center of the mesh. The mesh 17 is a circular arc-shaped body 17a in the circumferential direction and a radial body 17b in the radial direction.
However, since the circular arc-shaped body 17a in the circumferential direction is clearer, this will be considered. The degree of overlap between a circle having the same radius and having centers O and P and the arcuate body 17a is shown. A portion where a circle overlaps the arcuate body 17a or the radial body 17b is called a segment, and the length L of the overlapping mesh 17 is a segment length. The circle of the center O largely overlaps the arcuate body 17a in the range of O1 and O2, and the circle of the center P largely overlaps the arcuate body 17a in the range of P1 and P2.

【0020】1つの円の網目17との重なり具合を示す
指標としてセグメントの平均長を定義する。これは1つ
の円との場合は、1つの円のセグメントの長さの合計長
をそのセグメントの数で除した値であり、同心の円複数
よりなる同心円の場合は、複数の円のセグメントの長さ
の合計長をその複数の円のセグメントの合計数で除した
値である。
The average length of the segment is defined as an index showing the degree of overlap of one circle with the mesh 17. In the case of one circle, this is the value obtained by dividing the total length of the segments of one circle by the number of that segment. In the case of a concentric circle consisting of multiple concentric circles, It is a value obtained by dividing the total length by the total number of segments of the plurality of circles.

【0021】図6は網目の中心を求めるために中心をず
らして描いた円を示し、(a)は中心をずらした9個の
同一半径の円を示し、(b)は半径の異なる3個の円よ
りなる同心円の中心をずらした3組を示す。このような
中心をずらした各円または同心円について画像解析によ
りセグメントの長さおよびセグメントの平均長をもと
め、メロンの網目のように円弧状体17aの多い場合は
最大のセグメントの平均長を有する円の中心位置をメロ
ンの網目中心とする。
FIGS. 6A and 6B show circles deviated from the center to find the center of the mesh, FIG. 6A shows nine circles having the same radius with the centers deviated, and FIG. 6B shows three circles having different radii. 3 shows three sets in which the centers of concentric circles of For each circle or concentric circles with such a center offset, the length of the segment and the average length of the segment are obtained by image analysis, and when there are many arcuate bodies 17a like the mesh of the melon, the circle with the largest average length of the segment. The center position of is the center of the melon mesh.

【0022】このようにしてセグメントの平均長の最大
値を有する円または同心円の中心から網目の中心などを
求める場合、セグメントの平均長が同程度となり、かつ
中心位置の隣接したものが複数発生する場合がしばしば
生じる。このような場合、セグメントの平均長を重み付
けして隣接した中心との重心を求め、これを円弧状体の
中心とする。なお、放射状体の場合は平均長の逆数で重
み付けした重心とする。
In this way, when the center of the mesh or the like is obtained from the center of the circle or concentric circle having the maximum value of the average length of the segments, the average lengths of the segments are about the same and a plurality of adjacent center positions occur. Cases often arise. In such a case, the average length of the segments is weighted to find the center of gravity with the adjacent centers, and this is used as the center of the arcuate body. In the case of a radial body, the center of gravity is weighted by the reciprocal of the average length.

【0023】図7は図6(a)に示した中心を9個設定
し、円弧状体の中心を算出したときのセグメントの平均
長を示す。9個の中心の位置Aの平均長が5で最大であ
るが、Y方向真上の位置Bの平均長は4であり、X方向
左側の位置Cの平均長は3で、3個の位置A,B,Cの
平均長は近い値となっている。この場合A点を原点と
し、AとBの距離、AとCとの距離を1とすれば、次の
ようにして重心を求めることができる。
FIG. 7 shows the average lengths of the segments when nine centers shown in FIG. 6A are set and the centers of the arcuate bodies are calculated. The average length of the nine center positions A is 5, which is the maximum, but the average length of the position B immediately above in the Y direction is 4, the average length of the position C on the left side in the X direction is 3, and the three positions are 3 positions. The average lengths of A, B and C are close values. In this case, if the point A is the origin and the distance between A and B and the distance between A and C are 1, the center of gravity can be obtained as follows.

【0024】Gx=3×1/(3+5)=0.375 Gy=4×1/(4+5)=0.444 重心位置は(Gx,Gy)となり、この重心位置を円弧
状体の中心とする。
Gx = 3 × 1 / (3 + 5) = 0.375 Gy = 4 × 1 / (4 + 5) = 0.444 The center of gravity is (Gx, Gy), and this center of gravity is the center of the arcuate body. .

【0025】図8は放射状にひび割れなどが入った場合
を示す図である。この場合Oを中心として放射状体17
bが広がっている。Oを中心とした円Dは放射状体17
bとほぼ直交するためセグメントの長さは短いが、Oよ
りずれた中心を持つ円Eは放射状体17bと斜めに交差
するため、セグメントの長さは長くなる。故に放射状体
の場合は、セグメントの平均長が最小の円の中心が、そ
の放射状体の中心となる。
FIG. 8 is a diagram showing a case where cracks are radially formed. In this case, the radial body 17 is centered around O.
b has spread. Circle D centered on O is a radial body 17
Although the segment length is short because it is substantially orthogonal to b, the circle E having a center offset from O intersects the radial body 17b at an angle, and thus the segment length is long. Therefore, in the case of a radial body, the center of the circle having the smallest average segment length is the center of the radial body.

【0026】[0026]

【発明の効果】以上の説明より明らかなように、本発明
は、2値化した対象図形上に中心を異にした複数の円を
描き、この円が2値化した図形と重なる部分を求め、各
円について重なりの平均長さを求め、平均長さの最大と
なる円の中心を円弧状の図形の中心とし、平均長さの最
小となる図形を放射状の図形の中心とすることにより、
それぞれの性格の図形の中心を精度よく求めることがで
きる。複数の円を複数の同心円群とすることにより、中
心位置の精度が向上する。また隣接する中心を有し重な
りの平均値長が接近している場合は、円弧状の図形に対
しては重なりの平均長で重み付けした重心を中心とし、
放射状の図形に対しては重なりの平均長の逆数で重み付
けした重心を中心とすると、中心位置の精度が向上す
る。
As is apparent from the above description, according to the present invention, a plurality of circles having different centers are drawn on a binarized target figure, and a portion where the circle overlaps the binarized figure is obtained. , By calculating the average length of overlap for each circle, the center of the circle with the maximum average length is the center of the arc-shaped figure, and the figure with the minimum average length is the center of the radial figure.
It is possible to accurately find the center of a figure of each character. The accuracy of the center position is improved by making the plurality of circles into a plurality of concentric circle groups. If the average value length of the overlap is close to each other with adjacent centers, the center of gravity weighted by the average length of the overlap is the center for the arc-shaped figure,
For a radial figure, centering the center of gravity weighted by the reciprocal of the average length of overlap improves the accuracy of the center position.

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

【図1】本発明の実施の形態を実現する画像処理装置の
ブロック図である。
FIG. 1 is a block diagram of an image processing apparatus that realizes an embodiment of the present invention.

【図2】X0,Y0を中心とし半径rの円上のアドレス
S0,S1,……を示す図である。
FIG. 2 is a diagram showing addresses S0, S1, ... On a circle centered at X0, Y0 and having a radius r.

【図3】円上のアドレスS0,S1,……の画素座標を
発生する手段の構成例を示す図である。
FIG. 3 is a diagram showing a configuration example of means for generating pixel coordinates of addresses S0, S1, ... On a circle.

【図4】メロンの表面の網目を示す図である。FIG. 4 is a view showing a mesh on the surface of melon.

【図5】メロンの網目と網目の中心とを仮定した円との
重なりを示す図である。
FIG. 5 is a diagram showing an overlap between a melon mesh and a circle assuming the center of the mesh.

【図6】網目の中心を求める中心をずらして描いた円を
示し、(a)は中心をずらした9個の円、(b)は中心
をずらした3組の同心円を示す。
6A and 6B show circles drawn by shifting the center for determining the center of the mesh, wherein FIG. 6A shows nine circles with offset centers, and FIG. 6B shows three sets of concentric circles with offset centers.

【図7】円弧状図形で隣接した中心を有する円の重なり
の平均長が接近した場合の重心を求める説明図である。
FIG. 7 is an explanatory diagram for obtaining the center of gravity when the average lengths of the overlaps of circles having adjacent centers in arcuate figures approach each other.

【図8】放射性図形とその中心との関係を説明する図で
ある。
FIG. 8 is a diagram illustrating a relationship between a radioactive figure and its center.

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

1 撮像装置 7 画像処理器 7a 画像解析器 14 被測定物 17 網目 17a 円弧状体 17b 放射状体 21 ステップカウンタ 22,23 三角関数発生ROM 24 乗算器 25 加算器 DESCRIPTION OF SYMBOLS 1 Imaging device 7 Image processor 7a Image analyzer 14 Object to be measured 17 Mesh 17a Arcuate body 17b Radial body 21 Step counter 22,23 Trigonometric function generation ROM 24 Multiplier 25 Adder

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 2値化した対象図形上に中心を異にした
複数の円を描き、2値化した一方の濃度の連続した画素
よりなり1つの円と交差している範囲の画素列をセグメ
ントとし、この円のセグメントの長さの合計値をそのセ
グメント数で除したセグメントの平均値を求め、このセ
グメントの平均長さが最大値または最小値となる円の中
心を対象図形の中心とすることを特徴とする同心円傾向
画像中心算出方法。
1. A plurality of circles having different centers are drawn on a binarized target graphic, and a pixel row in a range which is made up of consecutive binarized pixels of one density and intersects with one circle is formed. As a segment, calculate the average value of the segments by dividing the total length of the segments of this circle by the number of the segments, and set the center of the circle where the average length of this segment is the maximum value or the minimum value as the center of the target figure. A concentric circle tendency image center calculation method, characterized by:
【請求項2】 2値化した対象図形上に中心を異にした
複数の同心円群を描き、2値化した一方の濃度の連続し
た画素よりなり1つの円と交差している範囲の画素列を
セグメントとし、同心円を構成する円のセグメントの長
さの合計値をそのセグメント数で除したセグメントの平
均長さを求め、このセグメントの平均長さが最大値また
は最小値となる同心円の中心を対象図形の中心とするこ
とを特徴とする同心円傾向画像中心算出方法。
2. A pixel row in a range in which a plurality of concentric circle groups with different centers are drawn on a binarized target graphic and which is binarized and consists of continuous pixels of one density and which intersects with one circle. Is the segment and the total length of the segments of the circles that make up the concentric circles is divided by the number of segments to obtain the average length of the segment, and the center of the concentric circle where the average length of this segment is the maximum or minimum value is determined. A concentric circle tendency image center calculation method characterized in that the center of a target graphic is used.
【請求項3】 求めた中心に隣接した位置に中心を持つ
円または同心円のセグメントの平均長さが求めた中心の
円または同心円のセグメントの平均長さに接近している
場合は、求めた中心と、接近したセグメントの平均長さ
を有する円の中心位置とを各セグメントの平均長さまた
はその逆数で重み付けした重心を求め、この重心を新た
な図形中心とすることを特徴とする請求項1または2記
載の同心円傾向画像中心算出方法。
3. If the average length of a circle or a concentric segment having a center adjacent to the obtained center is close to the obtained center circle or an average length of concentric segments, the obtained center is determined. And a center position of a circle having an average length of the approaching segments are weighted by the average length of each segment or its reciprocal, and the center of gravity is determined as a new figure center. Alternatively, the concentric circle tendency image center calculation method described in 2.
JP02368296A 1996-02-09 1996-02-09 Concentric trend image center calculation method Expired - Fee Related JP3504417B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02368296A JP3504417B2 (en) 1996-02-09 1996-02-09 Concentric trend image center calculation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02368296A JP3504417B2 (en) 1996-02-09 1996-02-09 Concentric trend image center calculation method

Publications (2)

Publication Number Publication Date
JPH09218948A true JPH09218948A (en) 1997-08-19
JP3504417B2 JP3504417B2 (en) 2004-03-08

Family

ID=12117238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02368296A Expired - Fee Related JP3504417B2 (en) 1996-02-09 1996-02-09 Concentric trend image center calculation method

Country Status (1)

Country Link
JP (1) JP3504417B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113936253A (en) * 2021-12-16 2022-01-14 深圳致星科技有限公司 Material conveying operation cycle generation method, storage medium, electronic device and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113936253A (en) * 2021-12-16 2022-01-14 深圳致星科技有限公司 Material conveying operation cycle generation method, storage medium, electronic device and device
CN113936253B (en) * 2021-12-16 2022-03-01 深圳致星科技有限公司 Material conveying operation cycle generation method, storage medium, electronic device and device

Also Published As

Publication number Publication date
JP3504417B2 (en) 2004-03-08

Similar Documents

Publication Publication Date Title
CN114529549B (en) Cloth defect labeling method and system based on machine vision
CN106408583B (en) A kind of multiple edge defect inspection method and device
CN1991343A (en) Method for inspecting patterns
JP6333307B2 (en) Degraded site detection device, degraded site detection method and program
JP2008145175A (en) Array period obtaining method of wire of cable, shape state measuring method of cable, shape state measuring system of cable used for this, and shape state measuring program of cable
JP3504417B2 (en) Concentric trend image center calculation method
CN112132823A (en) Photovoltaic cell image local uneven illumination processing method based on artificial intelligence
CN114240984B (en) Circular mark point edge extraction method and application thereof
CN113554688B (en) O-shaped sealing ring size measurement method based on monocular vision
JP4257720B2 (en) Method and apparatus for measuring outer shape of honeycomb structure
JPH08161508A (en) Pattern detecting method
JP4084969B2 (en) Pattern inspection apparatus and pattern inspection method
JP5812284B2 (en) Belt-like structure detecting device, method and program
JPH10208066A (en) Method for extracting edge line of check object and appearance check method using this method
JPH06160289A (en) Inner face inspection equipment for circular vessel
CN109378277B (en) Integrity detection method for substrate pattern array
KR100955736B1 (en) Method for inspecting surfaces and apparatus for performing the method
JPH07101455B2 (en) Line detection method and apparatus
JP3191419B2 (en) Line detection method
JP2638121B2 (en) Surface defect inspection equipment
JPH08279021A (en) Method for detecting angle of rotation and recognizing image
JP3035469B2 (en) How to measure strain
KR0139404B1 (en) How to extract density boundary pixels in images
JPH1131228A (en) Display panel inspecting device
JPH0670797B2 (en) Image run length calculation method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20031202

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20031210

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20121219

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121219

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20151219

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees