JPH04286914A - Method and apparatus for detecting of signal peak position - Google Patents

Method and apparatus for detecting of signal peak position

Info

Publication number
JPH04286914A
JPH04286914A JP7689591A JP7689591A JPH04286914A JP H04286914 A JPH04286914 A JP H04286914A JP 7689591 A JP7689591 A JP 7689591A JP 7689591 A JP7689591 A JP 7689591A JP H04286914 A JPH04286914 A JP H04286914A
Authority
JP
Japan
Prior art keywords
signal
value
peak
time
intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7689591A
Other languages
Japanese (ja)
Inventor
Takayuki Ohata
大幡 高之
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.)
YUNISUN KK
Original Assignee
YUNISUN 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 YUNISUN KK filed Critical YUNISUN KK
Priority to JP7689591A priority Critical patent/JPH04286914A/en
Publication of JPH04286914A publication Critical patent/JPH04286914A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

PURPOSE:To enable fast and correct detection of time when a signal level peak is reached by calculating an intersection of two virtual lines having an inclination corresponding to a rate of change in signal levels before and after the peak value. CONSTITUTION:A signal level is detected by a signal detection part 1 at a predetermined time interval by a clock generator 6. When the maximum detection value B is obtained, this value is used along with respective detection values C,A immediately before and after the value B. On a two-dimensional plot with a signal level and time as axes, a first line AB passing through two points of the maximum value B and a detection value with the larger difference from B, for example the detection value A, and a second line BC passing through the other detection value C in the opposite inclination to the above are obtained. An intersection E of the lines AB,BC is quickly calculated 5 by an arithmetic sequence which is set and stored 4 in advanced, and this time is regarded to be time when the signal reaches the peak.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、信号のピーク位置、
すなわち刻々に変化する信号のレベルがピークに達した
時刻を検出する方法とそのための装置に関するものであ
る。
[Industrial Application Field] This invention is directed to the peak position of a signal,
That is, the present invention relates to a method for detecting the time when the level of an ever-changing signal reaches its peak, and a device for the same.

【0002】0002

【従来の技術】信号がピークに達した時刻を検出し、こ
れを各種の制御などに利用するということは多くの装置
において行われている。しかし、信号のピーク位置を正
確に検出することは案外困難であり、比較的複雑な処理
手順を必要とする。その一例としては、一定の時間間隔
で信号レベルを検出し、信号のピークを含む所定の範囲
内でその重心を計算するようにした立体物測定装置が知
られている(例えば特開昭63−279110号公報参
照)。この種の装置は、周知のようにスリット状のレー
ザービームを被測定物に照射し、これをビデオカメラで
撮影して被測定物の形状に対応して変化する信号に変換
し、信号のピーク位置から被測定物の形状を測定するも
のであり、信号のピーク位置を正確に検出することが必
要である。
2. Description of the Related Art It is common practice in many devices to detect the time when a signal reaches its peak and utilize this for various types of control. However, accurately detecting the peak position of a signal is surprisingly difficult and requires relatively complicated processing procedures. As an example, there is a known three-dimensional object measuring device that detects the signal level at regular time intervals and calculates the center of gravity within a predetermined range including the peak of the signal (for example, Japanese Patent Application Laid-Open No. 63-1999) (See Publication No. 279110). As is well known, this type of device irradiates the object to be measured with a slit-shaped laser beam, photographs this with a video camera, converts it into a signal that changes according to the shape of the object, and peaks the signal. The shape of the object to be measured is measured from the position, and it is necessary to accurately detect the peak position of the signal.

【0003】0003

【発明が解決しようとする課題】上記公報のものではビ
デオカメラで撮影した画像が対象となっており、Σ(時
刻×輝度)/Σ輝度 という重心計算で輝度のピーク位置を求めている。しか
しながら、この計算をリアルタイムで行うには時刻×輝
度の計算をA/Dコンバータの1クロック以内に行わな
ければならず、この乗算計算に時間を要するのでクロッ
クを高速にすることができない。また乗算器が必要であ
ると共に処理回路全体がかなり複雑となり、更にピーク
幅が狭い場合は計算に必要なピーク前後のデータが不足
して計算が不正確になる等の問題点がある。
[Problems to be Solved by the Invention] In the above-mentioned publication, the subject is an image taken with a video camera, and the peak position of brightness is determined by the center of gravity calculation of Σ (time x brightness)/Σ brightness. However, in order to perform this calculation in real time, the calculation of time x luminance must be performed within one clock of the A/D converter, and this multiplication calculation requires time, so the clock cannot be made faster. In addition, a multiplier is required, and the entire processing circuit becomes quite complex. Furthermore, if the peak width is narrow, data before and after the peak required for calculation may be insufficient, resulting in inaccurate calculation.

【0004】この発明はこの点に着目し、信号レベルが
ピークに達した時刻を比較的簡単な処理回路で正確に検
出することを目的としてなされたものである。
The present invention has focused on this point and has been made with the object of accurately detecting the time when the signal level reaches its peak using a relatively simple processing circuit.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
めに、この発明の方法では、信号のピーク値の前後にお
ける信号レベルの変化割合に対応した傾斜を持つ2本の
直線を仮想し、これらの直線の交点の位置を算出して信
号のピーク位置を検出している。具体的には、所定の時
間間隔で信号レベルを検出して、最大の検出値が得られ
た場合にこの最大検出値及びその直前と直後の各検出値
を用い、信号レベルと時間とを軸とする二次元図上にお
いて、最大検出値及びこれとの差の大きい方の検出値の
2点を通る第1の直線と、この第1の直線の傾斜とは逆
の傾斜で且つ最大検出値との差の小さい方の検出値の1
点を通る第2の直線とを求め、これら第1及び第2の直
線の交点の位置を算出してこれを信号がピークに達した
時刻とするのである。
[Means for Solving the Problems] In order to achieve the above object, in the method of the present invention, two straight lines having slopes corresponding to the rate of change in the signal level before and after the peak value of the signal are imagined, The position of the intersection of these straight lines is calculated to detect the peak position of the signal. Specifically, the signal level is detected at a predetermined time interval, and when the maximum detected value is obtained, this maximum detected value and each detected value immediately before and after it are used to plot the signal level and time as an axis. On the two-dimensional diagram where 1 of the detected value with the smaller difference from
A second straight line passing through the point is determined, and the position of the intersection of these first and second straight lines is calculated and determined as the time when the signal reaches its peak.

【0006】なお信号のピーク値の前後では、一般に信
号波形がピークを中心として前後に対称な形状になって
いるとみなすことができるので、第2の直線の傾斜は第
1の直線の傾斜とは同一の傾斜角で傾きが逆のものとし
て処理すればよいが、装置や回路の特性上ピーク値の前
後で波形が非対称になることが判明していれば、その程
度に応じて演算の過程で第2の直線の傾斜に適宜の補正
を加えるようにすればよい。
[0006] It should be noted that before and after the peak value of a signal, the signal waveform can generally be considered to have a symmetrical shape around the peak, so the slope of the second straight line is the same as the slope of the first straight line. should be treated as having the same inclination angle and opposite slope, but if it is known that the waveform becomes asymmetrical around the peak value due to the characteristics of the device or circuit, the calculation process may be changed depending on the degree of the asymmetrical waveform. An appropriate correction may be made to the slope of the second straight line.

【0007】このような検出を行うために、この発明の
装置は、所定の時間間隔で信号レベルを検出する信号レ
ベル検出手段と、最大の検出値が得られた場合にその直
前及び直後の各検出値とを一時記憶する記憶回路と、信
号レベルと時間とを軸とする二次元図上において、最大
検出値及びこれとの差の大きい方の検出値の2点を通る
第1の直線と、この第1の直線の傾斜とは逆の傾斜で且
つ最大検出値との差の小さい方の検出値の1点を通る第
2の直線とを求め、第1及び第2の直線の交点の時間軸
上の位置を算出してこれを信号がピークに達した時刻と
して出力する演算手段、とを備えている。
In order to perform such detection, the apparatus of the present invention includes a signal level detection means for detecting the signal level at predetermined time intervals, and a signal level detection means for detecting the signal level at predetermined time intervals, and for detecting the signal level immediately before and after the maximum detected value. A first straight line passing through the two points of the maximum detection value and the detection value with a larger difference from the maximum detection value on a two-dimensional diagram with the signal level and time as axes; , find a second straight line that has an opposite slope to the slope of the first straight line and passes through one point of the detected value that has a smaller difference from the maximum detected value, and find the intersection of the first and second straight lines. and calculation means for calculating the position on the time axis and outputting this as the time when the signal reaches its peak.

【0008】上記の演算処理を容易に行うためには、記
憶手段に、最大検出値及びその直前と直後の三つの検出
値間の相対値の二つを用いて第1及び第2の直線の交点
を求める演算手順をあらかじめ記憶させておき、減算器
で算出された上記二つの相対値を記憶手段の各相対値に
対応したアドレスに入力することにより、2本の直線の
交点の時間軸上における小数桁に対応する信号を記憶手
段から出力するように構成することができる。
In order to easily perform the above arithmetic processing, the first and second straight lines are stored in the storage means using two values: the maximum detected value and the relative values between the three detected values immediately before and after the maximum detected value. By storing in advance the calculation procedure for finding the intersection point, and inputting the above two relative values calculated by the subtracter into the address corresponding to each relative value in the storage means, the intersection point of the two straight lines can be calculated on the time axis. The storage means may be configured to output a signal corresponding to the decimal digit in .

【0009】図1はこの発明を実施するための基本的な
構成を示したブロック図であり、1は信号レベル検出部
、2は一時記憶回路、3は減算器、4は記憶手段、5は
演算手段、6はクロック発生部、7は入力信号、8は出
力信号である。
FIG. 1 is a block diagram showing the basic configuration for carrying out the present invention, in which 1 is a signal level detection section, 2 is a temporary storage circuit, 3 is a subtracter, 4 is a storage means, and 5 is a storage means. 6 is a clock generator, 7 is an input signal, and 8 is an output signal.

【0010】0010

【作用】ピーク値前後の信号レベルの変化割合に対応し
た傾斜を持つ2本の直線を仮想し、これらの直線の交点
の位置を求めることにより信号のピーク位置を検出でき
る。また、所定の時間間隔で検出された最大検出値とそ
の直前及び直後の検出値とを用いて2本の直線を仮想す
ることにより、あらかじめ設定された演算手順を利用し
て交点の位置を容易に算出できる。特に、最大検出値及
びその直前と直後の三つの検出値間の相対値の二つを用
いて直線の交点を求める演算手順をあらかじめ記憶させ
ておき、二つの相対値を記憶手段の各相対値に対応した
アドレスに入力して交点の小数桁に対応する信号を出力
することにより、演算を容易に且つ速やかに行うことが
できる。
[Operation] The peak position of the signal can be detected by imagining two straight lines having slopes corresponding to the rate of change in the signal level before and after the peak value, and finding the position of the intersection of these straight lines. In addition, by imagining two straight lines using the maximum detection value detected at a predetermined time interval and the detection values immediately before and after it, the location of the intersection can be easily determined using a preset calculation procedure. It can be calculated as follows. In particular, the calculation procedure for finding the intersection of straight lines using the maximum detected value and the relative values between the three detected values immediately before and after the maximum detected value is stored in advance, and the two relative values are stored for each relative value in the storage means. By inputting the signal to the address corresponding to the intersection point and outputting the signal corresponding to the decimal place of the intersection point, the calculation can be performed easily and quickly.

【0011】[0011]

【実施例】以下、図示の一実施例について説明する。な
お、この発明は前掲公報と同様な立体物測定装置に関す
る改良研究によってなされたものであり、この実施例も
このような立体物測定装置に適用した場合の例として説
明してあるが、この発明の用途はこの種の装置に限定さ
れるものではなく、他の各種の回路に適宜利用すること
ができる。
[Embodiment] An embodiment shown in the drawings will be described below. This invention was made through improvement research on a three-dimensional object measuring device similar to that of the above-mentioned publication, and this embodiment is also described as an example of application to such a three-dimensional object measuring device. The application of the circuit is not limited to this type of device, and can be appropriately used in various other circuits.

【0012】図2において、10は立体物測定装置のビ
デオカメラであり、スリット状レーザ光で照射された被
測定物(図示せず)を撮影した画像が所定のビデオ信号
11の形式で出力され、A/Dコンバータ12でデジタ
ル信号に変換される。このデジタル信号は画素に対応し
たデジタルデータが各走査線ごとに連続したものとなっ
ており、Aレジスタ13、Bレジスタ14、Cレジスタ
15に送られる。レジスタ16及び17はデータを順次
シフトするもので、Bレジスタ14には一つ前のデータ
が、Cレジスタ15には更に一つ前のデータがそれぞれ
送られる。
In FIG. 2, reference numeral 10 denotes a video camera of the three-dimensional object measuring device, and an image taken of an object to be measured (not shown) irradiated with a slit-shaped laser beam is output in the form of a predetermined video signal 11. , are converted into digital signals by the A/D converter 12. This digital signal is a series of digital data corresponding to pixels for each scanning line, and is sent to an A register 13, a B register 14, and a C register 15. Registers 16 and 17 are used to shift data sequentially, and the B register 14 receives the previous data, and the C register 15 receives the previous data.

【0013】一方、レジスタ16からはデータセレクタ
18にもデータが送られ、しきい値レジスタ19のしき
い値と比較してこれ以上のデータであれば最大値レジス
タ20に入力されて保持される。しきい値は信号レベル
が一定値以上の場合にのみピーク位置検出の処理を行う
ようにするためにあらかじめ設定された値であり、信号
レベルがしきい値を超えない場合は各レジスタ13、1
4、15は0クリアされたままである。これらの動作は
ビデオ信号中の水平同期信号に同期して進められ、カウ
ンタ21はこの水平同期信号が終了するとクロック信号
22のカウントを開始し、カウント数をDレジスタ23
に順次入力する。比較器24では、次々に入力されるレ
ジスタ16からのデータと最大値レジスタ20からのデ
ータを比較し、最大値が検出されると最大値信号25を
出力する。
On the other hand, data is also sent from the register 16 to the data selector 18, and compared with the threshold value of the threshold register 19, if the data is greater than this, it is input to the maximum value register 20 and held. . The threshold value is a value set in advance so that peak position detection processing is performed only when the signal level is above a certain value, and when the signal level does not exceed the threshold value, each register 13, 1
4 and 15 remain cleared to 0. These operations proceed in synchronization with the horizontal synchronization signal in the video signal, and when the horizontal synchronization signal ends, the counter 21 starts counting the clock signal 22 and stores the count number in the D register 23.
Enter the information in sequence. The comparator 24 compares the data from the register 16 and the data from the maximum value register 20, which are input one after another, and outputs a maximum value signal 25 when the maximum value is detected.

【0014】比較器23から最大値信号25が出力され
ると各レジスタ13〜15及び23はラッチされ、減算
器26ではBレジスタ14のデータBからAレジスタ1
3のデータAを減算し、減算器27ではBレジスタ14
のデータBからCレジスタ15のデータCを減算し、こ
れらの結果がROM28のアドレスに入力される。RO
M28には、あらかじめ次の二つの式 t=(B−C)/2(B−A) t=1−(B−A)/2(B−C) が記憶させてあり、入力されたアドレスに対応したビッ
ト数の信号がROM28から出力され、またDレジスタ
23からはその時の画素の位置に対応するカウント数が
出力される。
When the maximum value signal 25 is output from the comparator 23, each register 13 to 15 and 23 is latched, and the subtracter 26 extracts the data B from the B register 14 from the A register 1.
3 data A is subtracted, and the subtracter 27 subtracts the data A from the B register 14.
The data C in the C register 15 is subtracted from the data B in the C register 15, and these results are input to the address of the ROM 28. R.O.
The following two equations t=(B-C)/2(B-A) t=1-(B-A)/2(B-C) are stored in M28 in advance, and the input address The ROM 28 outputs a signal with the number of bits corresponding to , and the D register 23 outputs a count number corresponding to the pixel position at that time.

【0015】レジスタ29ではこのカウント数をROM
28から出力されたビット数だけシフトさせて合成した
信号を出力する。この信号はクロック信号22でカウン
トされる時刻の小数桁の数値に対応しており、信号のピ
ーク位置がクロック信号22による時間軸で表わした値
で算出されることになる。以上の処理はインタフェース
30を介してCPU31により制御されながら行われる
The register 29 stores this count number in the ROM.
The signal is shifted by the number of bits outputted from 28 and is synthesized. This signal corresponds to the decimal place value of the time counted by the clock signal 22, and the peak position of the signal is calculated by the value expressed on the time axis by the clock signal 22. The above processing is performed while being controlled by the CPU 31 via the interface 30.

【0016】図3及び図4はこの算出手順の説明図であ
り、図3はB−A≧B−Cの場合、図4はB−C>B−
Aの場合を示している。横軸はクロック信号を単位とす
る時間軸t、縦軸は信号レベル、すなわちビデオカメラ
で撮影された画像の輝度であり、直線を実線で、信号を
破線でそれぞれ示してある。図3において、直線ABは
Bレジスタ14にラッチされた最大値BとAレジスタ1
3にラッチされた直後値Aの2点を通る直線、直線BC
はCレジスタ15にラッチされた直前値Cの点を通り、
直線ABの傾斜に対してマイナスの同一傾斜を持つ直線
であり、Eは2本の直線の交点である。便宜上、各点A
、B、Cの時刻をそれぞれ1.5、0.5、−0.5と
し、交点Eの時刻をTとして説明を進める。
FIGS. 3 and 4 are explanatory diagrams of this calculation procedure. FIG. 3 shows B-A≧B-C, and FIG. 4 shows B-C>B-
Case A is shown. The horizontal axis is the time axis t in units of clock signals, and the vertical axis is the signal level, that is, the brightness of the image taken by the video camera. Straight lines are shown as solid lines, and signals are shown as broken lines. In FIG. 3, the straight line AB is the maximum value B latched in the B register 14 and the A register 1.
Straight line passing through the two points of value A immediately after it is latched to 3, straight line BC
passes through the point of the previous value C latched in the C register 15,
It is a straight line that has the same negative slope as the slope of straight line AB, and E is the intersection of the two straight lines. For convenience, each point A
, B, and C are 1.5, 0.5, and -0.5, respectively, and the time of intersection E is assumed to be T. The explanation will proceed.

【0017】直線はy=at+bの式で表わされるので
、直線AB及び直線BCはそれぞれ y=a1t+b1  ……(1) y=a2t+b2  ……(2) となるが、a1=−a2であるから(2)式はy=−a
1t+b2  ……(2)´ で表わされる。よって B=a1×0.5+b1  ……(3)A=a1×1.
5+b1  ……(4)B−A=a1×(0.5−1.
5) a1=−(B−A)  ……(5) となる。また C=−a1×(−0.5)+b2  ……(6)B−C
=a1×0.5+b1−a1×0.5−b2=b1−b
2  ……(7)
Since a straight line is expressed by the formula y=at+b, the straight line AB and the straight line BC are respectively y=a1t+b1...(1) y=a2t+b2...(2) However, since a1=-a2, ( 2) The formula is y=-a
It is expressed as 1t+b2...(2)'. Therefore, B=a1×0.5+b1...(3) A=a1×1.
5+b1...(4) B-A=a1×(0.5-1.
5) a1=-(B-A)...(5) Also, C=-a1×(-0.5)+b2...(6) B-C
=a1×0.5+b1-a1×0.5-b2=b1-b
2...(7)

【0018】(1)(2)´式より、交点EはE=a1
T+b1  ……(1)´ E=−a1T+b2  ……(2)´´a1T+b1=
−a1T+b2 2a1T=b2−b1 T=−(b1−b2)/2a1  ……(8)(5)(
7)式より           T=−(B−C)/−2(B−A
)=(B−C)/2(B−A)  ……(9) となり、(9)式によって交点Eの時刻Tが求まるので
ある。
From formulas (1) and (2)', the intersection E is E=a1
T+b1...(1)'E=-a1T+b2...(2)''a1T+b1=
-a1T+b2 2a1T=b2-b1 T=-(b1-b2)/2a1...(8)(5)(
From formula 7) T=-(B-C)/-2(B-A
)=(B-C)/2(B-A)...(9) The time T at the intersection E can be found by equation (9).

【0019】また、図4の場合は次のようになる。直線
BCは最大値Bと直前値Cの2点を通る直線、直線AB
は直後値Aの点を通り、直線BCの傾斜に対してマイナ
スの同一傾斜を持つ直線である。 B=a1×0.5+b1 C=a1×(−0.5)+b1 B−C=a1×(0.5+0.5)=a1  ……(1
0)A=−a1×1.5+b2 B−A=a1×(0.5+1.5)+b1−b2b1−
b2=B−A−2a1  ……(11)(8)式に(1
0)(11)を代入するとT=−(b1−b2)/2a
1 =−(B−A−2a1)/2a1=1−(B−A)/2
a1=1−(B−A)/2(B−C)  ……(12)
となり、(12)式によって交点Eの時刻Tが求まるの
である。なお、上記の(9)式及び(12)式は点A,
B,Cの座標位置から2本の直線を求めて交点Eを計算
する式の一例であり、別の形にまとめた式を用いて処理
することももちろん可能である。
Further, in the case of FIG. 4, the situation is as follows. The straight line BC is a straight line passing through the two points of the maximum value B and the previous value C, and the straight line AB
is a straight line that immediately passes through the point of value A and has the same negative slope as the slope of straight line BC. B=a1×0.5+b1 C=a1×(-0.5)+b1 B-C=a1×(0.5+0.5)=a1...(1
0) A=-a1×1.5+b2 B-A=a1×(0.5+1.5)+b1-b2b1-
b2=B-A-2a1...(11) In equation (8), (1
0) Substituting (11), T=-(b1-b2)/2a
1 =-(B-A-2a1)/2a1=1-(B-A)/2
a1=1-(B-A)/2(B-C)...(12)
Therefore, the time T at the intersection E can be found using equation (12). Note that the above equations (9) and (12) are calculated at point A,
This is an example of a formula for calculating the intersection E by finding two straight lines from the coordinate positions B and C, and it is of course possible to process using a formula summarized in another form.

【0020】以上の処理による計算結果を具体的な数値
の例を次に示す。例えば図4において、A=28、B=
30、C=13と仮定すると T=1−(30−28)/2×(30−13)=0.9
4となる。これに対して同じ数値を用いて従来技術によ
る重心計算を行うと T=(1.5×28+0.5×30−0.5×13)/
(28+30+13)=0.71 となり、実施例の計算結果とはかなりの差が生ずる。こ
れは重心計算に用いるデータの範囲が不適当なためであ
り、重心計算では利用するデータの範囲を決めるのが難
しく、範囲によって結果が異なることになるのである。
[0020] Examples of specific numerical values of the calculation results obtained by the above processing are shown below. For example, in FIG. 4, A=28, B=
30, assuming C=13, T=1-(30-28)/2×(30-13)=0.9
It becomes 4. On the other hand, when calculating the center of gravity according to the conventional technology using the same numerical values, T = (1.5 x 28 + 0.5 x 30 - 0.5 x 13) /
(28+30+13)=0.71, which is a considerable difference from the calculation result of the example. This is because the range of data used in center of gravity calculations is inappropriate; it is difficult to determine the range of data to be used in center of gravity calculations, and results vary depending on the range.

【0021】なお、この発明ではピーク値の直前直後の
データしか使用しないので、実施例のような立体物測定
装置の場合に、虚像による誤差の可能性が低く正確な結
果を得ることができる。また、実施例では信号波形がピ
ークを中心として前後に対称な形状になっているとみな
して処理しているが、例えばビデオカメラ10の特性等
によって前後が一定の傾向で非対称になるような場合に
は、これを補正するような手順を加えて処理すればよい
。更に、前後の非対称性がランダムに発生する場合には
、実施例のように三つの検出値を用いるのではなく、ピ
ークの前後で検出値を二つずつ用いて各直線の傾斜を求
めるようにすればよい。
In the present invention, only the data immediately before and after the peak value are used, so in the case of a three-dimensional object measuring apparatus such as the embodiment, accurate results can be obtained with a low possibility of errors caused by virtual images. In addition, in the embodiment, processing is performed assuming that the signal waveform has a symmetrical shape in the front and back with the peak as the center, but for example, if the front and back become asymmetrical with a certain tendency due to the characteristics of the video camera 10, etc. , it is sufficient to add a procedure to correct this. Furthermore, when asymmetry before and after the peak occurs randomly, instead of using three detected values as in the example, two detected values before and after the peak are used to find the slope of each straight line. do it.

【0022】[0022]

【発明の効果】以上の説明から明らかなように、この発
明は、ピーク値前後の信号レベルの変化割合に対応した
傾斜を持つ2本の直線を仮想し、これらの直線の交点の
位置を求めることにより信号のピーク位置を検出するよ
うにしたものである。具体的には、例えば所定の時間間
隔で検出された最大検出値及びその直前と直後の各検出
値を用い、最大検出値及びこれとの差の大きい方の検出
値の2点を通る直線と、この直線の傾斜とは逆の傾斜で
且つ最大検出値との差の小さい方の検出値の1点を通る
直線とを求め、これらの直線の交点の位置を算出してこ
れを信号がピークに達した時刻とするのである。
[Effects of the Invention] As is clear from the above explanation, the present invention imagines two straight lines having slopes corresponding to the change rate of the signal level before and after the peak value, and finds the position of the intersection of these straight lines. This allows the peak position of the signal to be detected. Specifically, for example, using the maximum detection value detected at a predetermined time interval and each detection value immediately before and after it, a straight line passing through two points, the maximum detection value and the detection value with a larger difference from this, is drawn. , find a straight line that has an opposite slope to the slope of this straight line and passes through one point of the detected value that has a smaller difference from the maximum detected value, calculate the position of the intersection of these straight lines, and determine the point where the signal peaks. This is the time when .

【0023】従って、重心計算を行う場合のような乗算
器が不要になると共に演算が容易で処理回路全体の構成
が簡単となり、CPUの負担も軽減される。また時間を
要する乗算計算の必要がないのでクロックを高速化する
ことができ、ピーク幅が狭くても計算に必要なピーク前
後のデータが不足して計算が不正確になる等の問題も生
じない。更にピーク値の直前直後のデータしか使用しな
いのでノイズによる誤差が低減される利点もある。また
、2本の直線の交点を求める演算は適宜の手法で行うこ
とができるが、演算手順を使いやすい形に整理して記憶
手段に記憶させておくことにより、演算処理を簡単に行
うことができる。
[0023]Therefore, a multiplier, which is required when calculating the center of gravity, is not required, and the calculations are easy, and the configuration of the entire processing circuit is simplified, and the load on the CPU is also reduced. In addition, since there is no need for time-consuming multiplication calculations, the clock speed can be increased, and even if the peak width is narrow, there will be no problems such as insufficient data before and after the peak necessary for calculation, resulting in inaccurate calculations. . Furthermore, since only data immediately before and after the peak value is used, there is an advantage that errors due to noise are reduced. In addition, the calculation to find the intersection of two straight lines can be performed using any appropriate method, but the calculation process can be easily performed by organizing the calculation procedure in an easy-to-use format and storing it in a storage means. can.

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

【図1】この発明を実施するための装置の基本的な構成
を示したブロック図である。
FIG. 1 is a block diagram showing the basic configuration of an apparatus for implementing the present invention.

【図2】一実施例のブロック回路図である。FIG. 2 is a block circuit diagram of one embodiment.

【図3】実施例における演算の説明図である。FIG. 3 is an explanatory diagram of calculations in the embodiment.

【図4】同じく実施例における演算の説明図である。FIG. 4 is an explanatory diagram of calculations in the same embodiment.

【符号の説明】 10  ビデオカメラ 12  A/Dコンバータ 13、14、15  レジスタ 21  カウンタ 24  比較器 26、27  減算器 28  ROM 31  CPU A  直後値 B  最大値 C  直前値 T  ピーク位置[Explanation of symbols] 10 Video camera 12 A/D converter 13, 14, 15 register 21 Counter 24 Comparator 26, 27 Subtractor 28 ROM 31 CPU A Immediate value B Maximum value C Last value T Peak position

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  信号のピーク値の前後における信号レ
ベルの変化割合に対応した傾斜を持つ2本の直線を仮想
し、これらの直線の交点の位置を算出して信号のピーク
位置を検出することを特徴とする信号のピーク位置検出
方法。
[Claim 1] Detecting the peak position of the signal by imagining two straight lines having slopes corresponding to the rate of change in the signal level before and after the peak value of the signal, and calculating the position of the intersection of these straight lines. A signal peak position detection method characterized by:
【請求項2】  所定の時間間隔で信号レベルを検出し
て、最大の検出値が得られた場合にこの最大検出値及び
その直前と直後の各検出値を用い、信号レベルと時間と
を軸とする二次元図上において、最大検出値及びこれと
の差の大きい方の検出値の2点を通る第1の直線と、こ
の第1の直線の傾斜とは逆の傾斜で且つ最大検出値との
差の小さい方の検出値の1点を通る第2の直線とを求め
、これら第1及び第2の直線の交点の位置を算出してこ
れを信号がピークに達した時刻とすることを特徴とする
信号のピーク位置検出方法。
[Claim 2] Detect the signal level at a predetermined time interval, and when the maximum detected value is obtained, use this maximum detected value and each detected value immediately before and after it to axis the signal level and time. On the two-dimensional diagram where and a second straight line that passes through one point of the detection value that has the smaller difference from the first and second straight lines, calculate the position of the intersection of these first and second straight lines, and take this as the time when the signal reaches its peak. A signal peak position detection method characterized by:
【請求項3】  所定の時間間隔で信号レベルを検出す
る信号レベル検出手段と、最大の検出値が得られた場合
にその直前及び直後の各検出値とを一時記憶する記憶回
路と、信号レベルと時間とを軸とする二次元図上におい
て、最大検出値及びこれとの差の大きい方の検出値の2
点を通る第1の直線と、この第1の直線の傾斜とは逆の
傾斜で且つ最大検出値との差の小さい方の検出値の1点
を通る第2の直線とを求め、第1及び第2の直線の交点
の時間軸上の位置を算出してこれを信号がピークに達し
た時刻として出力する演算手段、とを備えたことを特徴
とする信号のピーク位置検出装置。
3. Signal level detection means for detecting a signal level at predetermined time intervals; a storage circuit for temporarily storing each detection value immediately before and after the maximum detection value when the maximum detection value is obtained; On a two-dimensional diagram with the axis of and time as the axes, the maximum detected value and the detected value with a larger difference from this two.
A first straight line that passes through the point and a second straight line that passes through one point of the detected value that has an opposite slope to the slope of the first straight line and has a smaller difference from the maximum detected value, and and arithmetic means for calculating the position on the time axis of the intersection point of the second straight line and outputting this as the time when the signal reaches its peak.
【請求項4】  記憶手段に、最大検出値及びその直前
と直後の三つの検出値間の相対値の二つを用いて第1及
び第2の直線の交点を求める演算手順をあらかじめ記憶
させておき、減算器で算出された上記二つの相対値を記
憶手段のアドレスに入力することにより、2本の直線の
交点の時間軸上における小数桁に対応する信号を記憶手
段から出力するように構成された請求項3記載の信号の
ピーク位置検出装置。
4. The storage means is preliminarily stored with a calculation procedure for determining the intersection of the first and second straight lines using the maximum detected value and the relative value between the three detected values immediately before and after the maximum detected value. By inputting the two relative values calculated by the subtracter into the address of the storage means, the storage means outputs a signal corresponding to the decimal place on the time axis at the intersection of the two straight lines. 4. The signal peak position detecting device according to claim 3.
JP7689591A 1991-03-15 1991-03-15 Method and apparatus for detecting of signal peak position Pending JPH04286914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7689591A JPH04286914A (en) 1991-03-15 1991-03-15 Method and apparatus for detecting of signal peak position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7689591A JPH04286914A (en) 1991-03-15 1991-03-15 Method and apparatus for detecting of signal peak position

Publications (1)

Publication Number Publication Date
JPH04286914A true JPH04286914A (en) 1992-10-12

Family

ID=13618386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7689591A Pending JPH04286914A (en) 1991-03-15 1991-03-15 Method and apparatus for detecting of signal peak position

Country Status (1)

Country Link
JP (1) JPH04286914A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013036928A (en) * 2011-08-10 2013-02-21 Denso Corp Data analysis device, radar device and data analysis method
US8674053B2 (en) 2009-11-20 2014-03-18 Mitsubishi Gas Chemical Company, Inc. Process for production of highly polymerized aromatic polycarbonate resin

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8674053B2 (en) 2009-11-20 2014-03-18 Mitsubishi Gas Chemical Company, Inc. Process for production of highly polymerized aromatic polycarbonate resin
JP2013036928A (en) * 2011-08-10 2013-02-21 Denso Corp Data analysis device, radar device and data analysis method

Similar Documents

Publication Publication Date Title
US4803645A (en) Method and apparatus for measuring coordinates
US4858157A (en) Apparatus and method for determining the coordinates of a three-dimensional object
KR19990080598A (en) Method for measuring similarity using the number of matched pixels and apparatus for implementing the same
KR100262793B1 (en) Apparatus for judging a hand movement of an image
JP3924796B2 (en) Pattern position measuring method and measuring apparatus
JP2003164431A (en) Blood flow velocity measuring apparatus
JPH04286914A (en) Method and apparatus for detecting of signal peak position
JPH0658209B2 (en) Coordinate measuring method and device
US6002431A (en) Video correction apparatus for camcorder
JPS62115636A (en) Image correcting apparatus for scanning type electron microscope
JP3037728B2 (en) Method for detecting amplitude fluctuations in the field of elements having a multivalent amplitude distribution, apparatus suitable for performing the method, and video system including the apparatus
JPH0933248A (en) Passive triangulation-type range finder
JP2516844B2 (en) Parts detection method and device
JP2000111318A (en) Method and device for measuring chain dimension
Jeon et al. A robust stereo-matching algorithm using multiple-baseline cameras
JP4094197B2 (en) Multipoint image corresponding point search device
JP2720843B2 (en) Emission center position detection device
JPS6071906A (en) Method for measuring circumferential length of binary coded image
JP2003264854A (en) Method and device for measuring random noise
JPH04109104A (en) Pattern defect inspecting device
JP2566954Y2 (en) Camera shake detection circuit
JP2745911B2 (en) Image processing device
JPS6312310B2 (en)
JPH0735547A (en) Distance measuring device
JPS58161817A (en) Distance measuring method