JPH0571992B2 - - Google Patents
Info
- Publication number
- JPH0571992B2 JPH0571992B2 JP58142926A JP14292683A JPH0571992B2 JP H0571992 B2 JPH0571992 B2 JP H0571992B2 JP 58142926 A JP58142926 A JP 58142926A JP 14292683 A JP14292683 A JP 14292683A JP H0571992 B2 JPH0571992 B2 JP H0571992B2
- Authority
- JP
- Japan
- Prior art keywords
- moment
- trace
- region
- point
- closed loop
- 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.)
- Expired - Lifetime
Links
Landscapes
- Image Analysis (AREA)
Description
【発明の詳細な説明】
本発明は文字や図形等の認識回路に関し、特に
図面等を走査して得たビツトパターン中の閉ルー
プ領域のモーメントを算出する回路に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a recognition circuit for characters, figures, etc., and more particularly to a circuit for calculating the moment of a closed loop region in a bit pattern obtained by scanning a drawing or the like.
画像処理において、文字や図形を認識すること
が、しばしば行われる。その際、文字や図形の重
心位置、形状を判別するために一次又は高次のモ
ーメントを求めることが行われる。例えば1次の
モーメントM11,M12及び2次のモーメントM21,
M22,M23は次の式でえ与られる。 In image processing, characters and figures are often recognized. At this time, first-order or higher-order moments are determined in order to determine the center of gravity position and shape of characters and figures. For example, first-order moments M 11 , M 12 and second-order moments M 21 ,
M 22 and M 23 are given by the following formula.
M11=
〓(x,y)
∈Rx
M12=
〓(x,y)
∈Ry
M21=
〓(x,y)
∈Rx2
M22=
〓(x,y)
∈Rxy
M23=
〓(x,y)
∈Ry2 (1)
式(1)でRは閉ループ内の図形領域であり、(x,
y)はその内部のビツトの座標である。面積Sは
式(2)で求められる。 M 11 = 〓 (x,y) ∈ R x M 12 = 〓 (x,y) ∈ R y M 21 = 〓 (x,y) ∈ R x 2 M 22 = 〓 (x,y) ∈ R xy M 23 = 〓 (x,y) ∈ R y 2 (1) In equation (1), R is the graphic area in the closed loop, and (x,
y) is the coordinate of the internal bit. The area S is determined by equation (2).
S=
〓(x,y)
∈R1 (2)
以上のようにして求められた値から、図形の重
心位置,,分散Vは式(3)により求められる。 S= 〓 (x,y) ∈ R 1 (2) From the values obtained as above, the position of the center of gravity of the figure, and the variance V are obtained by equation (3).
=M11/S,=M12/S
V=(M21+M23)/S−(-2
x
+-2
y
) (3)
また、図形の形状が楕円であり、扁平率がhで
ある場合、
V/S=1+h2/4πh (4)
と書けるため、これらの値から扁平度を知ること
ができる。 =M 11 /S, =M 12 /S V = (M 21 +M 23 ) /S - (-2 x + -2 y) (3) Also, the shape of the figure is an ellipse, and the oblateness is h. In this case, it can be written as V/S=1+h 2 /4πh (4), so the flatness can be determined from these values.
従来、このような閉ループ内の図形領域のモー
メントを求めるには、ビツトパターンをラスタ走
査して閉ループに含まれる画素について、その画
素の座標値及びその自乗値又は積などを累積して
累計を求めていた。しかし従来の方法では画素1
つずつにつき計算を行うので時間がかかること、
およびモーメントを求めようとする閉ループ領域
と他の閉ループ領域が入り組んでいるとき切り分
け処理の手間がかかるという欠点があつた。 Conventionally, in order to find the moment of a graphical area in such a closed loop, the bit pattern is raster scanned and the coordinate values of the pixels included in the closed loop and their square values or products are accumulated to find the cumulative total. was. However, in the conventional method, pixel 1
It takes time to calculate each item one by one,
Another disadvantage is that when the closed loop region for which the moment is to be determined is complicated with other closed loop regions, it takes time and effort to separate the regions.
本発明の目的は高速かつ簡単に閉ループ領域の
モーメントを求めることができるモーメント算出
回路を提供することにある。 An object of the present invention is to provide a moment calculation circuit that can quickly and easily calculate moments in a closed loop region.
本発明は、図面上に描かれた閉ループに囲まれ
た領域RのモーメントΣxiyj(Σは領域Rに属する
すべての画素位置(x,y)関する総和、i,j
は整数)を算出するモーメント算出回路におい
て、図面等を走査して得たビツトパターンを記憶
するためのパターンメモリと、該パターンメモリ
への書き込みおよび読み出しを司る書き込み読み
出し回路と、該パターンメモリに記憶されたビツ
トパターン中の閉ループ領域のエツジをトレース
するエツジトレース部と、該エツジトレース部か
ら与えられるトレース点の現在位置の座標(x,
y)からモーメント累積値y
〓y
′=1xiy′j又はx
〓x
′=1x′iyj
を演算し、得られた値をトレース方向により定ま
る符号により積算する1個又は複数のモーメント
累算器と、前記各回路を制御するための制御部と
から構成されることを特徴とする。 The present invention is based on the moment Σx i y j of a region R surrounded by a closed loop drawn on the drawing (Σ is the sum of all pixel positions (x, y) belonging to the region R, i, j
is an integer), the moment calculation circuit includes a pattern memory for storing a bit pattern obtained by scanning a drawing, etc., a write/read circuit that controls writing to and reading from the pattern memory, and a moment calculation circuit for storing the bit pattern obtained by scanning a drawing, etc. An edge trace section that traces the edges of the closed loop region in the bit pattern that has been created, and the coordinates (x,
One or more units that calculate the cumulative moment value y 〓 y ′ =1 x i y′ j or x 〓 x ′ =1 x′ i y j from y) and integrate the obtained value with a sign determined by the tracing direction The present invention is characterized in that it is comprised of a moment accumulator, and a control section for controlling each of the circuits.
また本発明は、図面上に描かれた閉ループに囲
まれた領域RのモーメントΣxiyj(Σは領域Rに属
するすべての画素位置、(x,y)関する総和、
i,jは整数)を算出するモーメント算出回路に
おいて、図面等を走査して得たビツトパターンを
記憶するためのパターンメモリと、該パターンメ
モリへの書き込みおよび読み出しを司る書き込み
読み出し回路と、該パターンメモリに記憶された
ビツトパターン中の閉ループ領域のエツジをトレ
ースするエツジトレース部と、該エツジトレース
部からえられるトレース点の現在位置の座標
(x,y)から基準線からの距離を得、これをト
レース方向により定まる符号により積算する面積
累算器と、上記トレース点の現在位置の座標
(x,y)からモーメント累積値y
〓y
′=1xiy′j又はx
〓x
′=1x′iyj
を演算し、得られた値をトレース方向により定ま
る符号により積算する1個又は複数のモーメント
累算器と、前記各回路を制御するための制御部と
から構成されることを特徴とする。本発明で得ら
れたモーメント値及び面積を外部の電子計算機な
どでとり込み、式(3),式(4)などの簡単な演算を行
うことによつて、図形の重心位置、形状パラメー
タなどを得ることが可能である。 Further, the present invention provides a moment Σx i y j of a region R surrounded by a closed loop drawn on the drawing (Σ is the sum of all pixel positions belonging to the region R, (x, y),
i, j are integers), the moment calculation circuit includes a pattern memory for storing a bit pattern obtained by scanning a drawing, etc., a write/read circuit that controls writing to and reading from the pattern memory, and a moment calculation circuit for calculating the bit pattern obtained by scanning a drawing, etc.; The distance from the reference line is obtained from the coordinates (x, y) of the current position of the trace point obtained from the edge trace section that traces the edge of the closed loop region in the bit pattern stored in the memory, and the edge trace section. An area accumulator that integrates the area with a sign determined by the tracing direction, and a moment cumulative value y 〓 y ′ =1 x i y′ j or x 〓 x ′ =1 from the coordinates (x, y) of the current position of the above trace point. It is composed of one or more moment accumulators that calculate x' i y j and integrate the obtained values with a sign determined by the trace direction, and a control section for controlling each of the circuits. Features. By importing the moment value and area obtained by the present invention into an external computer, etc., and performing simple calculations such as equations (3) and (4), the center of gravity position, shape parameters, etc. of the figure can be calculated. It is possible to obtain.
本発明のモーメント算出回路は、閉ループ領域
のエツジの1まわりトレースし、トレースの向き
を積算の符号として用いて、各トレース点のx,
y座標から演算されるモーメント累積値を積算す
る。すなわち、トレース点を所定直線、例えばX
軸へ投影した時のトレースの向きが、例えば正方
向の時はモーメント累積値を積算値に加え、トレ
ースの向きが逆方向の時は、上記の積を積算値か
ら差引き、トレースが一周した時の積算値を閉ル
ープ領域のモーメントとするものである。 The moment calculation circuit of the present invention traces around one edge of a closed loop region, uses the direction of the trace as a sign for integration, and calculates x,
Accumulate the moment cumulative value calculated from the y coordinate. In other words, trace points are aligned with a predetermined straight line, for example, X
For example, when the direction of the trace when projected onto the axis is in the positive direction, the cumulative moment value is added to the cumulative value, and when the direction of the trace is in the opposite direction, the above product is subtracted from the cumulative value, and the trace completes one revolution. The integrated value of time is taken as the moment of the closed loop region.
次に本発明の原理について図面を参照して説明
する。 Next, the principle of the present invention will be explained with reference to the drawings.
第1図は本発明のモーメント算出回路の動作を
説明するためのビツトパターン中の閉ループを示
す図である。閉ループ領域は任意形状でよいが、
図示の形状の場合を例にして説明する。図におい
て、点P1は領域Rの一番右の点、点P2は領域R
中の凸領域の一番左の点、点P3は凹領域の一番
右の点、点P4は領域Rの一番左の点、点PI,PJ,
PK,PLは同じX座標値xIをもつエツジ上の点、
点PTはラスタ走査等により一番最初に見つかる
領域Rの一番上の点とする。モーメント算出は下
記により行われる。説明はトレース開始点を領域
Rの一番上の点トレースの方向を時計廻り、トレ
ースの向きと積算の符号との対応をX軸の正方向
のときプラス、負方向のときマイナスとする。点
P4から点P1の区間はX軸の正の向きにトレース
するので、この区間は後述するモーメント累積値
を積算値に加え、点P1から点P2の区間はX軸の
負の向きにトレースするので、この区間はモーメ
ント累積値を積算値から差引き、点P2から点P3
の区間は正の向きにトレースするので加え、点
P3から点P4の区間は負の向きにトレースするの
で差引き、この動作をトレースが領域Rを一周す
るまで続ける。 FIG. 1 is a diagram showing a closed loop in a bit pattern for explaining the operation of the moment calculation circuit of the present invention. The closed loop region can have any shape, but
The case of the illustrated shape will be explained as an example. In the figure, point P 1 is the rightmost point of region R, and point P 2 is the rightmost point of region R.
The leftmost point of the convex region in the middle, point P 3 is the rightmost point of the concave region, point P 4 is the leftmost point of region R, points P I , P J ,
P K and P L are points on the edge with the same X coordinate value x I ,
The point P T is the top point of the region R that is found first by raster scanning or the like. Moment calculation is performed as follows. In the explanation, the trace starting point is the topmost point of the region R, and the direction of the trace is clockwise, and the correspondence between the trace direction and the sign of the integration is positive when it is in the positive direction of the X axis, and negative when it is in the negative direction. point
Since the section from P 4 to point P 1 is traced in the positive direction of the X-axis, the moment cumulative value described later is added to the integrated value in this section, and the section from point P 1 to P 2 is traced in the negative direction of the X-axis. Therefore, in this section, the moment cumulative value is subtracted from the cumulative value, and from point P 2 to point P 3
Since the interval is traced in the positive direction, add the point
Since the section from P 3 to point P 4 is traced in a negative direction, it is subtracted, and this operation is continued until the trace goes around the region R.
モーメント累積値は求められるモーメントの次
数などにより異なるが、式(1)に示した5種類のモ
ーメントについては各点(x,y)からX軸にお
ろした長さyの線分についての寄与を累積すれば
よいので、式(5)のようになる。 The cumulative moment value differs depending on the order of the moment to be found, but for the five types of moments shown in equation (1), the contribution of a line segment of length y drawn from each point (x, y) to the X axis is Since it only needs to be accumulated, it becomes as shown in equation (5).
ΔM11(x,y)=y
〓y
′=1x=xy
ΔM12(x,y)=y
〓y
′=1y′=1/2y(y+1)
ΔM21(x,y)=y
〓y
′=1x2=x2y
ΔM22(x,y)=y
〓y
′=1xy′=1/2xy(y+1)
ΔM23(x,y)=y
〓y
′=1y′2
=1/6y(y+1)(2y+1) (5)
このようにすると例えばX座標値がxIの時を見
てみると、これまでの積算値に点PIのモーメント
累積値ΔMij(xI,yI)(ここでi及びjは式(5)での
ΔMの添字1,2…を代表している)を加え点PLのモ
ーメント累積値ΔMij(XI,yL)を差引き、点PKの
モーメント累積値ΔMij(xI,yK)を加え、点PJの
モーメント累積値ΔMij(xI,yJ)を差引くので、
結局点PIと点PJの間のモーメント累積値及び点PK
と点PLの間のモーメント累積値という領域R内
のXIにおける微小面積のモーメントに対する寄
与分を積算値に加えている。このようなことを領
域全体にわたつて行つているので、結局、モーメ
ントの積算値は領域のモーメントになることがわ
かる。尚、面積Sは上と同様の積算をモーメント
累積値ΔMijに対して行う代わりにy座標そのも
のについて行うことにより得られ、特開昭58−
7512「面積算出回路」に既に公知である。本発明
には、該面積算出回路を組み込むことによつて、
式(3)(4)に示すような図形の特徴量を簡単に得る装
置を構成することができる。 ΔM 11 (x, y)= y 〓 y ′ =1 x=xy ΔM 12 (x, y)= y 〓 y ′ =1 y′=1/2y(y+1) ΔM 21 (x, y)= y 〓 y ′ =1 x 2 =x 2 y ΔM 22 (x, y)= y 〓 y ′ =1 xy′=1/2xy(y+1) ΔM 23 (x, y)= y 〓 y ′ =1 y′ 2 = 1/6y(y+1)(2y+1) (5) In this way, for example, when the X coordinate value is x I , the moment cumulative value ΔM ij ( x I , y I ) (here, i and j represent the subscripts 1, 2, etc. of ΔM in equation (5)) and the cumulative moment value ΔM ij (X I , y L ) at the point P L is calculated as the difference. subtract, add the cumulative moment value ΔM ij (x I , y K ) at point P K , and subtract the cumulative moment value ΔM ij (x I , y J ) at point P J , so
After all, the moment cumulative value between point P I and point P J and point P K
The contribution to the moment of the minute area in the region XI in the region R, which is the cumulative value of the moment between and the point PL , is added to the cumulative value. Since this is done over the entire area, it can be seen that the integrated value of the moments is the moment of the area. Note that the area S can be obtained by performing the same integration as above on the y-coordinate itself instead of the cumulative moment value ΔM ij , and is
7512 "Area calculation circuit" is already known. By incorporating the area calculation circuit into the present invention,
It is possible to construct a device that easily obtains the feature values of a figure as shown in equations (3) and (4).
第2図は、面積算出回路を含んだ本発明の1実
施例を示すブロツク図であり、制御部1と、パタ
ーンメモリ2と、R/W回路3と、エツジトレー
ス部4と、面積累算器5と、モーメント累算器群
6とから構成される。エツジトレース部4は、ス
タートポイントレジスタ41と、カレントポイン
トレジスタ42と、方向検出回路43と、比較回
路44とから構成される。動作は次の通りであ
る。電子計算機などの情報処理装置(図示せず)
はビツトパターンを信号線101を介してパター
ンメモリ2に送り、これを記憶させる。情報処理
装置はさらにトレース開始点PTの座標値を信号
線102を介してエツジレース部4内のスタートポ
イントレジスタ41およびカレントポイントレジ
スタ42に送り、これを記憶させる。情報処理装
置は次にモーメント算出指令信号を信号線103
を介して制御部1に送る。制御部1は、モーメン
ト算出指令信号を受けると、クリア信号を信号線
104を介して面積累算器5及びモーメント累算
器群6(第2図では3個)に送つて各積算値を0
にクリアすると共に、トレース信号を、信号線1
05を介してR/W回路3に送る。R/W回路3
はトレース信号を受けると、現在のトレース点の
座標値を信号線106を介してカレントポイント
レジスタ42から受けとり、これをメモリアドレ
スとして信号線107を介してパターンメモリ2
に与え、トレース点の近傍のパターンデータ、例
えばその点を中心とする3×3画素のパターンデ
ータを信号線107を介してパターンメモリ2か
ら読み出し、これを信号線108を介してエツジ
トレース部4内の方向検出回路43に与える。方
向検出回路43はパターンデータからトレースの
方向を決定し、トレースの方向がX軸の正方向の
時はプラス符号を、トレースの方向が負方向の時
はマイナス符号を、X軸と垂直の方向の時は0を
信号線110を介して面積累算器5及びモーメン
ト累算器群6に送る。面積累算器5はトレース点
のy座標値を信号線111を介してカレントポイ
ントレジスタ42から受け、符号を信号線110
を介して方向検出回路43から受けると、これを
積算する。またモーメント累算器群6は、トレー
ス点のx,y座標値を信号線111を介してカレ
ントポイントレジスタ42から受け、符号を信号
線110を介して方向検出回路43から受ける
と、モーメント累積値を式(5)のように計算してこ
れを積算する。すなわち、符号がプラスの時はy
座標値又はモーメント累積値を現在貯えている各
積算値に加え、符号がマイナスの時は該積算値か
ら差引く動作を行う。符号が0のときは積算動作
は行わない。その後エツジトレース部4内のカウ
ントポイントレジスタ42はトレース方向を信号
線109を介して方向検出回路43から受け、そ
の方向値を用いて現在の内容を、その方向に対応
した新たなトレース点の座標値に更新する。 FIG. 2 is a block diagram showing an embodiment of the present invention including an area calculation circuit, which includes a control section 1, a pattern memory 2, an R/W circuit 3, an edge trace section 4, and an area accumulation circuit. 5 and a moment accumulator group 6. The edge trace section 4 includes a start point register 41, a current point register 42, a direction detection circuit 43, and a comparison circuit 44. The operation is as follows. Information processing equipment such as a computer (not shown)
sends the bit pattern to the pattern memory 2 via the signal line 101 and stores it. The information processing device further sends the coordinate values of the trace start point P T to the start point register 41 and current point register 42 in the edge lace section 4 via the signal line 102, and stores them. The information processing device then sends a moment calculation command signal to the signal line 103.
It is sent to the control unit 1 via. When the control unit 1 receives the moment calculation command signal, it sends a clear signal to the area accumulator 5 and the moment accumulator group 6 (three in FIG. 2) via the signal line 104 to set each integrated value to 0.
and clear the trace signal to signal line 1.
05 to the R/W circuit 3. R/W circuit 3
When receiving the trace signal, receives the coordinate value of the current trace point from the current point register 42 via the signal line 106, and stores this as a memory address via the signal line 107 in the pattern memory 2.
The pattern data in the vicinity of the trace point, for example, the pattern data of 3×3 pixels centered on that point, is read out from the pattern memory 2 via the signal line 107 and sent to the edge trace section 4 via the signal line 108. The signal is applied to the direction detection circuit 43 inside. The direction detection circuit 43 determines the direction of the trace from the pattern data, and outputs a plus sign when the trace direction is in the positive direction of the X-axis, a minus sign when the trace direction is in the negative direction, and a direction perpendicular to the X-axis. In this case, 0 is sent to the area accumulator 5 and the moment accumulator group 6 via the signal line 110. The area accumulator 5 receives the y-coordinate value of the trace point from the current point register 42 via the signal line 111, and sends the sign to the signal line 110.
When the signal is received from the direction detection circuit 43 via the direction detection circuit 43, it is integrated. Further, the moment accumulator group 6 receives the x, y coordinate values of the trace point from the current point register 42 via the signal line 111, and receives the sign from the direction detection circuit 43 via the signal line 110, and receives the moment cumulative value. is calculated as shown in equation (5) and integrated. In other words, when the sign is positive, y
The coordinate value or moment cumulative value is added to each currently stored integrated value, and when the sign is negative, it is subtracted from the integrated value. When the sign is 0, no integration operation is performed. Thereafter, the count point register 42 in the edge trace section 4 receives the trace direction from the direction detection circuit 43 via the signal line 109, and uses the direction value to calculate the current contents and the coordinates of a new trace point corresponding to that direction. Update to value.
エツジレース部4内の比較回路44はトレース
開始点の座標値を信号線112を介してスタート
ポイントレジスタ41から得、現在のトレース点
の座標値を信号線111を介してカウントポイン
トレジスタ42から得て、両者の値を比較し、一
致していれば一致信号を、不一致ならば不一致信
号を信号線113を介して制御部1に与える。 A comparison circuit 44 in the edge trace section 4 obtains the coordinate value of the trace start point from the start point register 41 via the signal line 112, and obtains the coordinate value of the current trace point from the count point register 42 via the signal line 111. , the two values are compared, and if they match, a match signal is given to the control section 1 via the signal line 113, and if they do not match, a mismatch signal is given to the control section 1.
制御部1は信号線113を調べ、不一致信号な
らば再びトレース信号をR/W回路3に送り、以
上の動作を再び実行させる。トレース点がトレー
ス開始点に閉ループ領域を一周して戻つてくる
と、比較回路44は信号線113を介して一致信
号を制御部1にえる。制御部1はこれを検出し閉
ループ領域の面積及び各モーメントの算出が終了
し、求めた面積が信号線114を介して、また求
めたモーメントが信号線群115を介してえられ
ていることを情報処理装置に信号線103を介し
て知らせ、これを入力させる。 The control unit 1 checks the signal line 113, and if it is a mismatch signal, sends the trace signal again to the R/W circuit 3, causing the above operation to be executed again. When the trace point returns to the trace start point after going around the closed loop region, the comparison circuit 44 sends a coincidence signal to the control unit 1 via the signal line 113. The control unit 1 detects this, completes the calculation of the area of the closed loop region and each moment, and confirms that the calculated area is obtained via the signal line 114 and the calculated moment is obtained via the signal line group 115. This is notified to the information processing device via the signal line 103, and the information is inputted.
以上の説明により、本発明のモーメント算出回
路によれば、ラスタ走査して閉ループ領域に含ま
れる画素毎に座標値から計算されるその画素のモ
ーメントに対する寄を累積する必要はなく、ま
た、他の閉ループ領域が入り組んでいても切り分
ける処理をする必要がなく、閉ループ領域のエツ
ジを1周トレースするだけで高速かつ簡単に閉ル
ープ領域のモーメントを算出できる。 As described above, according to the moment calculation circuit of the present invention, there is no need to raster scan and accumulate deviations from the moment of the pixel calculated from the coordinate values for each pixel included in the closed loop area, and Even if the closed-loop region is complicated, there is no need to perform separation processing, and the moment of the closed-loop region can be calculated quickly and easily by simply tracing the edges of the closed-loop region once.
なお、以上の説明において、トレース開始点は
領域Rの一番上の点、トレースの方向は時計廻
り、トレースの向きと積算の符号との対応はX軸
の正方向のときプラス、負方向のときマイナスと
して説明したが、上記に限定されるものではな
く、一般にトレース開始点はエツジ上の任意の
点、トレースの方向は反時計廻りでもよく、トレ
ースの向きと積算の符号との反応は、任意の直線
へ投影した時のある方向(正または負)の時プラ
ス、その逆方向の時マイナスと定めればよい。そ
して、積算結果がマイナスで得られる時は、その
絶対値を出力すればよい。 In the above explanation, the trace starting point is the top point of region R, the trace direction is clockwise, and the correspondence between the trace direction and the sign of integration is positive for the positive direction of the X axis, and positive for the negative direction. Although the explanation is given as minus when, the above is not limited to the above, in general, the trace starting point may be any point on the edge, the direction of the trace may be counterclockwise, and the reaction between the direction of the trace and the sign of the integration is as follows: When projected onto an arbitrary straight line, if it is in a certain direction (positive or negative), it should be defined as plus, and if it is in the opposite direction, it should be defined as minus. Then, when the integration result is negative, the absolute value may be output.
第1図はビツトパターン中の閉ループ領域を示
す図、第2図は本発明の1実施例を示すブロツク
図である。
なお、図において、1……制御部、2……パタ
ーンメモリ、3……R/W回路、4……エツジト
レース部、5……面積累算器、6……モーメント
累算器群、41……スタートポイントレジスタ、
42……カレントポイントレジスタ、43……方
向検出回路、44……比較回路である。
FIG. 1 is a diagram showing a closed loop region in a bit pattern, and FIG. 2 is a block diagram showing one embodiment of the present invention. In the figure, 1...control unit, 2...pattern memory, 3...R/W circuit, 4...edge trace unit, 5...area accumulator, 6...moment accumulator group, 41 ...start point register,
42...Current point register, 43...Direction detection circuit, 44...Comparison circuit.
Claims (1)
のモーメントΣxiyj(Σは領域Rに属するすべての
画素位置(x,y)に関する総和、i,jはi=
j=0を除く整数)を算出するモーメント算出回
路において、図面等を走査して得たビツトパター
ンを記憶するためのパターンメモリと、該パター
ンメモリへの書き込みおよび読み出しを司る書き
込み読み出し回路と、該パターンメモリに記憶さ
れたビツトパターン中の閉ループ領域のエツジを
トレースするエツジトレース部と、該エツジトレ
ース部からえられるトレース点の現在位置の座標
(x,y)からモーメント累積値y 〓y ′=1Xiy′j又はx 〓x ′=1x′iyj を演算し、得られた値をトレース方向により定ま
る符号により積算する1個又は複数のモーメント
累算器と、前記各回路を制御するための制御部と
から構成されることを特徴とするモーメント算出
回路。 2 図面上に描かれた閉ループに囲まれた領域R
のモーメントΣxiyj(Σは領域Rに属するすべての
画素位置(x,y)に関する総和、i,jはi=
j=0を除く整数)を算出するモーメント算出回
路において、図面等を走査して得たビツトパター
ンを記憶するためのパターンメモリと、該パター
ンメモリへの書き込みおよび読み出しを司る書き
込み読み出し回路と、該パターンメモリに記憶さ
れたビツトパターン中の閉ループ領域のエツジを
トレースするエツジトレース部と、該エツジレー
ス部から与えられるトレース点の現在位置の座標
(x,y)から基準線からの距離を得、これをト
レース方向により定まる符号により積算する面積
累算器と、上記トレース点の現在位置の座標
(x,y)からモーメント累積値y 〓y ′=1xiy′j又はx 〓x ′=1x′iyj を演算し、得られた値をトレース方向により定ま
る符号により積算する1個又は複数のモーメント
累算器と、前記各回路を制御するための制御部と
から構成されることを特徴とするモーメント算出
回路。[Claims] 1. Region R surrounded by a closed loop drawn on the drawing
moment Σx i y j (Σ is the sum of all pixel positions (x, y) belonging to region R, i, j is i=
j = an integer other than 0), the moment calculation circuit includes a pattern memory for storing a bit pattern obtained by scanning a drawing, etc., a write/read circuit that controls writing to and reading from the pattern memory, and An edge trace section that traces the edges of the closed loop region in the bit pattern stored in the pattern memory, and a moment cumulative value y 〓 y ′ = from the coordinates (x, y) of the current position of the trace point obtained from the edge trace section. 1 X i y ′ j or x 〓 A moment calculation circuit comprising: a control section for controlling the moment; 2 Region R surrounded by a closed loop drawn on the drawing
moment Σx i y j (Σ is the sum of all pixel positions (x, y) belonging to region R, i, j is i=
j = an integer other than 0), the moment calculation circuit includes a pattern memory for storing a bit pattern obtained by scanning a drawing, etc., a write/read circuit that controls writing to and reading from the pattern memory, and The distance from the reference line is obtained from the coordinates (x, y) of the current position of the trace point given by the edge trace section that traces the edge of the closed loop region in the bit pattern stored in the pattern memory, and the edge trace section. An area accumulator that integrates the area with a sign determined by the tracing direction, and a moment cumulative value y 〓 y ′ =1 x i y′ j or x 〓 x ′ =1 from the coordinates (x, y) of the current position of the above trace point. It is composed of one or more moment accumulators that calculate x' i y j and integrate the obtained values with a sign determined by the trace direction, and a control section for controlling each of the circuits. Characteristic moment calculation circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58142926A JPS6033679A (en) | 1983-08-04 | 1983-08-04 | Moment calculating circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58142926A JPS6033679A (en) | 1983-08-04 | 1983-08-04 | Moment calculating circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6033679A JPS6033679A (en) | 1985-02-21 |
| JPH0571992B2 true JPH0571992B2 (en) | 1993-10-08 |
Family
ID=15326843
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58142926A Granted JPS6033679A (en) | 1983-08-04 | 1983-08-04 | Moment calculating circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6033679A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8098926B2 (en) * | 2007-01-10 | 2012-01-17 | Applied Materials Israel, Ltd. | Method and system for evaluating an evaluated pattern of a mask |
| WO2012113732A1 (en) * | 2011-02-25 | 2012-08-30 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Determining model parameters based on transforming a model of an object |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS587512A (en) * | 1981-07-07 | 1983-01-17 | Nec Corp | Area computing circuit |
-
1983
- 1983-08-04 JP JP58142926A patent/JPS6033679A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6033679A (en) | 1985-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8340433B2 (en) | Image processing apparatus, electronic medium, and image processing method | |
| CN112668506A (en) | Gesture tracking method and device and computer readable storage medium | |
| CN110147750B (en) | An image search method, system and electronic device based on motion acceleration | |
| CN106780370A (en) | A kind of image de-jittering device and method thereof | |
| US20250086852A1 (en) | Green screen matting method, apparatus and electronic device | |
| WO2021246217A1 (en) | Object detection method, object detection device, and program | |
| CN117522963A (en) | Checkerboard corner point positioning method, device, storage medium and electronic equipment | |
| JPH0571992B2 (en) | ||
| CN114693919A (en) | Target detection method, terminal equipment and storage medium | |
| CN112733837B (en) | Method and apparatus for correcting text image, and computer-readable storage medium | |
| US20050207654A1 (en) | Methods for estimating the position and shape of lips and for estimating the position of teeth in a sequence of digital images of a human face | |
| CN106780365A (en) | A kind of image de-jittering system based on Heterogeneous Computing | |
| CN113971738B (en) | Image detection method, device, electronic device and storage medium | |
| CN111860492B (en) | License plate inclination correction method and device, computer equipment and storage medium | |
| CN116958198A (en) | Motion trail drift detection method and device based on visual inertial odometer | |
| CN113628273A (en) | Map positioning method and device, computer readable storage medium and terminal equipment | |
| US20020057273A1 (en) | Method of and apparatus for reproducing facial expressions | |
| JPS587512A (en) | Area computing circuit | |
| US20230119974A1 (en) | Method for processing aerial view, electronic device, and storage medium | |
| JP2854588B2 (en) | Raster vector conversion method and line figure input device | |
| JP2018136703A (en) | Image recognizing device | |
| JPH0424689A (en) | Image processor | |
| CN119991733A (en) | A target tracking method, device and computer storage medium | |
| CN121330018A (en) | Methods, devices, terminals, media, and software products for filtering motion trajectories | |
| JP2713764B2 (en) | Halftone image enlargement method |