JPH0757095A - Number of reference picture element setting method in image processor for length measurement - Google Patents
Number of reference picture element setting method in image processor for length measurementInfo
- Publication number
- JPH0757095A JPH0757095A JP5201386A JP20138693A JPH0757095A JP H0757095 A JPH0757095 A JP H0757095A JP 5201386 A JP5201386 A JP 5201386A JP 20138693 A JP20138693 A JP 20138693A JP H0757095 A JPH0757095 A JP H0757095A
- Authority
- JP
- Japan
- Prior art keywords
- pixels
- scale
- length
- screen
- pixel
- 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
Links
- 238000005259 measurement Methods 0.000 title claims description 30
- 238000000034 method Methods 0.000 title claims description 21
- 239000011159 matrix material Substances 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 2
- 238000003384 imaging method Methods 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 3
Landscapes
- Image Analysis (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、画面上に撮像された被
測定物の任意の二点間の距離を測定する測長用画像処理
装置の基準画素数設定方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reference pixel number setting method for an image processing apparatus for length measurement which measures the distance between arbitrary two points of an object to be measured imaged on a screen.
【0002】[0002]
【従来の技術】測長用画像処理装置は、単位長さ当たり
の画素数を基準画素数として予め設定しておき、測定し
ようとする2点間の画素数と基準画素数とを比較するこ
とにより実際の距離を算出するようにしている。この基
準画素数を設定する際に、従来は図1に示すように、予
め設定された画素数(例えば 100画素)分の長さの基準
マーク1を画面2上に表示すると共に、被測定物Wと同
一の測定面Sに置かれた目盛Dの付いたスケール3を撮
像し、基準マーク1の一端をスケール3の任意の目盛D
0 に合わせた状態で、当該基準マーク1の長さを前記ス
ケール3の目盛Dを参照してオペレータが目視により読
み取り(例えば2.35mm )、その値に基づいて基準画素数
M0 を、 M0 = 100/2.35=42.5532 (画素/mm) で算出していた。したがって、この基準画素数M0 を一
度設定しておけば、被測定物W上の任意の2点P1 ,P
2 を画面上に撮像したとき、その2点間の画素数がG個
の場合、実際の距離LはL=G/M0 (mm) で求まり、
画像処理により任意の2点P1 ,P2 間の実際の距離を
容易に算出することができる。2. Description of the Related Art An image processing apparatus for length measurement sets in advance the number of pixels per unit length as a reference number of pixels, and compares the number of pixels between two points to be measured with the reference number of pixels. Is used to calculate the actual distance. When setting this reference pixel number, conventionally, as shown in FIG. 1, a reference mark 1 having a length of a preset number of pixels (for example, 100 pixels) is displayed on the screen 2 and the object to be measured is also set. An image of the scale 3 with a scale D placed on the same measurement surface S as W is imaged, and one end of the reference mark 1 is attached to an arbitrary scale D of the scale 3.
In a state of being adjusted to 0 , the operator visually reads the length of the reference mark 1 by referring to the scale D of the scale 3 (for example, 2.35 mm), and based on the value, the reference pixel number M 0 is M 0. = 100 / 2.35 = 42.5532 (pixels / mm). Therefore, once this reference pixel number M 0 is set, two arbitrary points P 1 , P on the object to be measured W are set.
When 2 is imaged on the screen and the number of pixels between the two points is G, the actual distance L is obtained by L = G / M 0 (mm),
The actual distance between any two points P 1 and P 2 can be easily calculated by image processing.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、基準マ
ーク1の両端は必ずしもスケール3の目盛Dと一致せ
ず、一端1aを目盛D0 に符合させたときに、他端1b
が目盛D1 とD2 の中間に位置した場合に、オペレータ
は、勘によりその長さを読み取らなければならないの
で、オペレータの熟練度や主観により読取誤差が含まれ
る。したがって、単位長さ当たりの画素数として算出さ
れた基準画素数M0 には、もともと誤差が含まれること
となり、この誤差を含んだ基準画素数M0 に基づいて長
さを測定するのであるから、測定結果にも大きな誤差が
含まれてしまうという問題があった。However, both ends of the reference mark 1 do not necessarily match the scale D of the scale 3, and when the one end 1a is aligned with the scale D 0 , the other end 1b is obtained.
When the mark is located between the scales D 1 and D 2 , the operator has to read the length by intuition, so that a reading error is included depending on the skill and subjectivity of the operator. Therefore, the reference pixel number M 0 calculated as the number of pixels per unit length originally includes an error, and the length is measured based on the reference pixel number M 0 including this error. However, there is a problem that the measurement result also includes a large error.
【0004】なお、測定面までの距離が変更されるたび
に、その測定面上で既知の長さのものを測定し、測定さ
れた長さと実際の長さから補正係数を求め、この補正係
数に基づいて長さを測定するものも提案されているが
(特開昭60−263804号公報参照)、この場合
も、元となる基準画素数は従来と同様の手段で設定して
いるため、いくら補正係数をかけても測定結果の誤差が
小さくなることがない。そこで、本発明は、基準マーク
の一端がスケールの目盛の中間に位置するときでも、誰
でも正確に基準画素数を設定できるようにすることを技
術的課題としている。Each time the distance to the measurement surface is changed, a known length is measured on the measurement surface, a correction coefficient is obtained from the measured length and the actual length, and the correction coefficient is calculated. Although a method of measuring the length based on the above has been proposed (see Japanese Patent Laid-Open No. 60-263804), in this case as well, the original reference pixel number is set by the same means as the conventional one. No matter how much the correction coefficient is applied, the error in the measurement result does not become small. Therefore, it is a technical object of the present invention to enable anyone to set the reference pixel number accurately even when one end of the reference mark is located in the middle of the scale of the scale.
【0005】[0005]
【課題を解決するための手段】この課題を解決するため
に、本発明は、各画素がマトリクス状に配列された画面
上に被測定物を撮像し、画面上で指定した被測定物の二
点間の画素数を検出し、検出された画素数と基準画素数
として設定された単位長さ当たりの画素数とを比較して
実際の距離を測定する前に、前記基準画素数を予め設定
する測長用画像処理装置の基準画素数設定方法であっ
て、[a]前記測長用画像処理装置は、画面上に基準マ
ークを表示する表示手段と、画面に表示された前記基準
マークを長手方向に伸縮させる操作手段と、基準マーク
の両端間の画素数を検出する画素数検出手段を備え、
[b]被測定物と同一の測定面上に在るスケールを撮像
してその目盛を前記画面上に表示させ、[c]基準マー
クの一端を前記スケールの目盛に符合させた後、当該基
準マークの他端側をスケールの長さ方向に沿って伸縮さ
せてその他端も前記スケールの任意の目盛に符合させ、
[d]この状態で、基準マークの両端間の画素数を前記
画素数検出手段で検出すると共に、その両端が指し示す
目盛間の長さを画面上で読み取ってこれを基準長さとし
て入力し、[e]前記画素数検出手段で検出した画素数
と前記基準長さに基づいて単位長さ当たりの画素数を算
出し、これを基準画素数として設定することを特徴とす
る。In order to solve this problem, according to the present invention, an object to be measured is imaged on a screen in which each pixel is arranged in a matrix, and the object to be measured specified on the screen is displayed. Before measuring the actual distance by detecting the number of pixels between points and comparing the number of detected pixels with the number of pixels per unit length set as the reference number of pixels, the reference number of pixels is preset. A method of setting a reference number of pixels for a length measurement image processing device, comprising: [a] the length measurement image processing device displays a reference mark on a screen and a reference mark displayed on the screen. An operation means for expanding and contracting in the longitudinal direction and a pixel number detecting means for detecting the number of pixels between both ends of the reference mark are provided.
[B] A scale on the same measurement surface as the object to be measured is imaged and its scale is displayed on the screen, [c] One end of the reference mark is matched with the scale of the scale, and then the scale is measured. Stretch the other end of the mark along the length direction of the scale to match the other end with any scale of the scale,
[D] In this state, the number of pixels between both ends of the reference mark is detected by the pixel number detecting means, the length between the scales indicated by the both ends is read on the screen, and this is input as the reference length. [E] The number of pixels per unit length is calculated based on the number of pixels detected by the pixel number detection means and the reference length, and this is set as the reference pixel number.
【0006】[0006]
【作用】本発明によれば、画面に表示された基準マーク
の一端をスケールに形成された任意の目盛に符合させた
状態で、当該マークの他端側をスケールの長さ方向に沿
って沿って伸縮させることにより、その他端も目盛に符
合させることができるので、基準マークの両端が指し示
す目盛を正確に読み取ることができ、基準マークの端部
が目盛と目盛の中間に位置することによる読取誤差を生
ずることがない。そして、検出された基準マークの両端
間の画素数と、基準マークの両端が指し示す目盛の長さ
から、単位長さ当たりの画素数を容易に算出することが
でき、これが基準画素数として設定される。According to the present invention, with one end of the reference mark displayed on the screen aligned with an arbitrary scale formed on the scale, the other end of the mark is guided along the length direction of the scale. The other end can also be matched with the scale by expanding and contracting, so that the scale indicated by both ends of the reference mark can be accurately read, and the reading can be made by positioning the end of the reference mark between the scale and the scale. No error will occur. Then, the number of pixels per unit length can be easily calculated from the number of pixels between both ends of the detected reference mark and the length of the scale pointed by both ends of the reference mark, and this is set as the number of reference pixels. It
【0007】すなわち、基準マークを伸縮させることに
よりその両端をスケールの目盛に符合させることができ
るので、その目盛を読み取るときにオペレータの熟練度
や主観に基づく誤差が入る余地がなく、誰が操作しても
基準画素数を正確に設定することができ、この基準画素
数に基づいて距離を測定することができるので、測定結
果の誤差を最小限に抑えることができる。That is, since both ends of the reference mark can be matched with the scale scale by expanding and contracting the reference mark, there is no room for error based on the skill and subjectivity of the operator when reading the scale, and no one can operate it. However, the reference pixel number can be set accurately and the distance can be measured based on the reference pixel number, so that the error in the measurement result can be minimized.
【0008】[0008]
【実施例】以下、本発明を図面に示す実施例に基づいて
具体的に説明する。図1は本発明方法により基準画素数
を設定する際の画面を示す説明図、図2は測長用画像処
理装置を示すフローシート、図3乃至図5はその処理手
順を示すフローチャート、図6及び図7は基準画素数を
設定する際の他の例を示す説明図である。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically described below based on the embodiments shown in the drawings. FIG. 1 is an explanatory view showing a screen when setting the number of reference pixels by the method of the present invention, FIG. 2 is a flow sheet showing an image processing device for length measurement, FIGS. 3 to 5 are flowcharts showing the processing procedure thereof, FIG. 7 and 8 are explanatory diagrams showing another example of setting the reference pixel number.
【0009】図中4は、各画素がX−Y座標で特定でき
るようにマトリクス状に配列された画面2上に被測定物
Wを撮像し、当該被測定物Wの任意の二点を画面2上で
指定することにより、その二点間の画素数Gと、基準画
素数M0 として設定された単位長さ当たりの画素数とを
比較して、実際の距離Lを測定する測長用画像処理装置
であって、記憶装置5,演算装置6及び入出力ポート7
を備えたマイクロコンピュータを備えている。In the figure, reference numeral 4 is an image of the object to be measured W on a screen 2 arranged in a matrix so that each pixel can be identified by XY coordinates, and two arbitrary points of the object to be measured W are displayed on the screen. 2) By specifying on 2, the number of pixels G between the two points is compared with the number of pixels per unit length set as the reference number of pixels M 0 , and the actual distance L is measured. An image processing device, which includes a storage device 5, a computing device 6, and an input / output port 7
Equipped with a microcomputer.
【0010】記憶装置5には、距離を測定するために必
要なデータやプログラムが記憶され、演算装置6はその
プログラムに従って演算処理を実行する。そして、その
入出力ポート7の入力側には、被測定物Wを撮影するC
CDカメラ8と、画面2上に表示された基準マーク1を
移動させたりその長さを伸縮させるマウス9と、各種デ
ータやコマンドの入力を行うキーボード10が接続さ
れ、出力側には前記画面2を有するディスプレイ装置1
1が接続されている。また、被測定物Wと同一の測定面
Sには、目盛Dが形成されたスケール3が画面のX軸と
平行に置かれ、これをCCDカメラ8で撮影すると、画
面2上には、図1に示すように水平なスケール3と基準
マーク1が表示される。Data and programs necessary for measuring the distance are stored in the storage device 5, and the arithmetic unit 6 executes arithmetic processing according to the programs. Then, at the input side of the input / output port 7, C for photographing the object to be measured W is taken.
A CD camera 8, a mouse 9 for moving the reference mark 1 displayed on the screen 2 and expanding / contracting the length thereof, and a keyboard 10 for inputting various data and commands are connected, and the screen 2 is provided on the output side. Display device 1 having
1 is connected. Further, on the same measurement surface S as the object to be measured W, the scale 3 on which the scale D is formed is placed parallel to the X axis of the screen, and when this is photographed by the CCD camera 8, the screen 2 shows A horizontal scale 3 and a reference mark 1 are displayed as shown in FIG.
【0011】次に、演算装置6における処理手順を図3
〜図5に示すフローチャートを伴って説明する。まず、
スイッチをオンすると図2に示すプログラムの処理が実
行開始され、ステップ(1) でCCDカメラ8をオンし
て被測定物Wを撮像し、次いでステップ(2)に移行し
て基準画素数設定キー(図示せず)が押下されたか否か
を判断し、設定キーが押下されたときはステップ(3)
に移行して基準画素数設定モードにセットされ、設定キ
ーが押下されないときはステップ(4)に移行する。Next, the processing procedure in the arithmetic unit 6 is shown in FIG.
~ It will be described with reference to the flowchart shown in FIG. First,
When the switch is turned on, the processing of the program shown in FIG. 2 is started, the CCD camera 8 is turned on in step (1) to take an image of the object to be measured W, and then the process proceeds to step (2) to set the reference pixel number setting key. It is determined whether or not (not shown) is pressed, and when the setting key is pressed, step (3)
If the setting key is not pressed, the process proceeds to step (4).
【0012】ステップ(4)では測長キー(図示せず)
が押下されたか否かを判断し、測長キーが押下されたと
きはステップ(5)に移行して測長モードに設定され、
測長キーが押下されないときはステップ(2)に戻る。
そして、前記ステップ(3)では図4に示すサブルーチ
ンが実行され、前記ステップ(5)では図5に示すサブ
ルーチンが実行される。In step (4), a length measuring key (not shown)
It is determined whether or not is pressed, and when the length measurement key is pressed, the process proceeds to step (5) to set the length measurement mode,
If the length measuring key is not pressed, the process returns to step (2).
Then, in the step (3), the subroutine shown in FIG. 4 is executed, and in the step (5), the subroutine shown in FIG. 5 is executed.
【0013】図4はステップ(3)で基準画素数設定モ
ードにセットされたときに実行されるサブルーチンであ
って、まずステップ(6)では、被測定物Wと同一の測
定面S上に置かれたスケール3をステップ(1)でオン
されたCCDカメラ8で撮像しディスプレイ装置11に
表示させ、ステップ(7)に移行して基準マーク1を画
面2に表示させる。FIG. 4 is a subroutine executed when the reference pixel number setting mode is set in step (3). First, in step (6), the measurement object is placed on the same measurement surface S as the object to be measured W. The scale 3 thus created is picked up by the CCD camera 8 which is turned on in step (1) and displayed on the display device 11, and the process moves to step (7) to display the reference mark 1 on the screen 2.
【0014】次いで、ステップ(8)に移行して、基準
マーク1の左端1aがスケール3の任意の目盛D0 とピ
ッタリ重なるように例えばマウス9を使用して移動さ
せ、重なった時点でクリックボタン(図示せず)を押
す。そして、ステップ(9)に移行して、基準マーク1
の右端1bが他の目盛D3とピッタリ重なるように例え
ばマウス9を使用して当該マーク1を伸縮させ、重なっ
た時点でクリックボタンを押す。Next, in step (8), the left end 1a of the reference mark 1 is moved using, for example, the mouse 9 so that the left end 1a of the reference mark 1 exactly overlaps the arbitrary scale D 0 of the scale 3. Press (not shown). Then, the process proceeds to step (9), and the reference mark 1
The mark 1 is expanded and contracted using the mouse 9 so that the right end 1b of the mark 1 is exactly overlapped with the other scale D 3, and the click button is pressed when the mark 1 is overlapped.
【0015】次いで、ステップ(10)に移行して、基準
マーク1の両端1a,1b間の画素数G0 を検出する。
これは、基準マーク1の両端1a,1bの位置の座標か
ら算出される。そして、ステップ(11)では、基準マー
ク1の両端1a,1bが指し示す目盛D0 ,D3 間の長
さを当該目盛から画面2上で読み取り、その値を基準長
さL0としてキーボード10から入力する。Next, in step (10), the number of pixels G 0 between both ends 1a and 1b of the reference mark 1 is detected.
This is calculated from the coordinates of the positions of both ends 1a and 1b of the reference mark 1. Then, in step (11), the length between the scales D 0 and D 3 indicated by both ends 1a and 1b of the reference mark 1 is read from the scale on the screen 2, and the value is set as the reference length L 0 from the keyboard 10. input.
【0016】次いで、ステップ(12)に移行し、前記画
素数G0 と基準長さL0 に基づいて単位長さ当たりの画
素数を算出し、これを基準画素数M0 として設定する。
このとき、基準画素数M0 は、M0 =G0 /L0 で算出
される。なお、上述の説明で、ステップ(1)及び
(6)が基準マーク1の表示手段、ステップ(8)及び
(9)が基準マーク1を伸縮させる操作手段、ステップ
(10)が画素数検出手段の具体例である。Next, in step (12), the number of pixels per unit length is calculated based on the number of pixels G 0 and the reference length L 0 , and this is set as the number of reference pixels M 0 .
At this time, the reference pixel number M 0 is calculated by M 0 = G 0 / L 0 . In the above description, steps (1) and (6) are means for displaying the reference mark 1, steps (8) and (9) are means for expanding and contracting the reference mark 1, and step (10) is a pixel number detecting means. Is a specific example of.
【0017】また、図5はステップ(4)で測長モード
にセットされたときに実行されるサブルーチンであっ
て、ステップ(13)で被測定物Wを表示し、ステップ
(14)及び(15)で被測定物W上の任意の二点P1 ,P
2 の座標(X1 ,Y1 )(X2 ,Y2 )を検出し、ステ
ップ(16)でその座標に基づいて二点P1 ,P2 間の画
面2上の距離Gを次式で算出し、 G=〔(X1 −X2 )2 +(Y1 −Y2 )2 〕1/2 ステップ(17)では基準画素数M0 に基づいて二点
P1 ,P2 間の実際の距離Lを次式で算出して表示す
る。 L=G/M0 FIG. 5 is a subroutine executed when the measurement mode is set in step (4), in which the object to be measured W is displayed in step (13), and steps (14) and (15) are displayed. ) At arbitrary two points P 1 , P on the object to be measured W
Second coordinate (X 1, Y 1) ( X 2, Y 2) detects, based on the coordinates in step (16) the distance G of the screen 2 between the two points P 1, P 2 by the following formula calculated, G = [(X 1 -X 2) 2 + (Y 1 -Y 2) 2 ] 1/2 point P 1 on the basis of the step (17) in the reference number of pixels M 0, actually between P 2 of The distance L of is calculated by the following equation and displayed. L = G / M 0
【0018】次に、この測長用画像処理装置の基準画素
数設定方法について説明する。まず、測定開始前に、図
1に示すように被測定物Wと同一の測定面S上に置かれ
たスケール3をCCDカメラ8で撮像して、これをディ
スプレイ装置11の画面2上に表示させ、前記基準長さ
L0 をキーボード10から入力し記憶装置5の所定の記
憶領域に記憶させる。Next, a method of setting the reference pixel number of the image processing device for length measurement will be described. First, before starting the measurement, as shown in FIG. 1, the CCD camera 8 captures an image of the scale 3 placed on the same measurement surface S as the object to be measured W and displays it on the screen 2 of the display device 11. Then, the reference length L 0 is input from the keyboard 10 and stored in a predetermined storage area of the storage device 5.
【0019】次に、画面2に表示された基準マーク1を
マウス15で移動させ、その左端1aがスケール3の目
盛D0 にピッタリと符合させたところでクリックボタン
を押して左端1aの座標を検出した後、今度は基準マー
ク1の右端側を伸縮させてその右端1bをスケール3の
目盛D3 にピッタリと符合させたことろでクリックボタ
ンを押して右端1bの座標を検出する。このとき、目盛
D0 及びD3 としてきりのよい目盛を選定すれば、目盛
の読み取りも極めて容易になり読み違えを起こすことも
ない。Next, the reference mark 1 displayed on the screen 2 is moved by the mouse 15, and when the left end 1a of the reference mark 1 exactly matches the scale D 0 of the scale 3, the click button is pressed to detect the coordinates of the left end 1a. Then, this time, the right end side of the reference mark 1 is expanded and contracted so that the right end 1b is exactly aligned with the scale D 3 of the scale 3 , and the click button is pressed to detect the coordinates of the right end 1b. At this time, if a well-defined scale is selected as the scales D 0 and D 3 , the scales can be read very easily without causing misreading.
【0020】そして、検出された基準マーク1の両端1
a,1bの座標から両端間の画素数G0 が算出されると
共に、基準マーク1の両端1a,1bが指し示す目盛D
0 ,D3 間の長さ(例えば3mm)を読み取り、その値を
基準長さL0 としてキーボード10から入力すると、前
記画素数G0 前記基準長さL0 に基づいて単位長さあた
りの画素数が算出され、これを基準画素数M0 として設
定される。Then, both ends 1 of the detected reference mark 1 are detected.
The number of pixels G 0 between both ends is calculated from the coordinates of a and 1b, and the scale D indicated by both ends 1a and 1b of the reference mark 1 is calculated.
When the length (for example, 3 mm) between 0 and D 3 is read and the value is input from the keyboard 10 as the reference length L 0 , the number of pixels G 0, the number of pixels per unit length based on the reference length L 0 The number is calculated and set as the reference pixel number M 0 .
【0021】このようにすれば、例えば基準マーク1の
左端1aを目盛D0 に符合させた状態で、右端1bがス
ケール3の目盛D1 ,D2 の中間に位置するような場合
であっても、基準マーク1を伸縮させることによりその
両端1a,1bの夫々を目盛D0 ,D3 にピッタリと符
合させることができるので、基準マーク1の長さを目盛
通りに読み取ることができ、オペレータの熟練度や主観
に基づく誤差が入る余地がなく、誰が操作しても基準画
素数を正確に設定することができるので、測定結果の誤
差も最小限に抑えることができる。In this case, for example, in the case where the left end 1a of the reference mark 1 is aligned with the scale D 0 , the right end 1b is located between the scales D 1 and D 2 of the scale 3. Also, by expanding and contracting the reference mark 1, both ends 1a and 1b of the reference mark 1 can be matched exactly with the scales D 0 and D 3 , so that the length of the reference mark 1 can be read according to the scale. Since there is no room for an error based on the skill level or subjectivity of No. 1 and the reference pixel number can be accurately set by anyone, it is possible to minimize the error in the measurement result.
【0022】図6は他の実施例を示し、本例では、画面
2上に位置を指定する×印の指標Qが表示され、撮像さ
れたスケール3の任意の二つの目盛D0 ,D3 を前記指
標Qで指定することにより、指標Qが指し示す目盛
D0 ,D3 間の画素数が検出されると共に、当該目盛D
0 ,D3 間の長さを読み取って基準長さL0 として入力
し、検出された画素数G0 と前記基準長さL0 に基づい
て単位長さあたりの画素数を算出し、これを基準画素数
M0 として設定するようにしている。FIG. 6 shows another embodiment. In this example, an index Q, which is a mark X for designating a position, is displayed on the screen 2, and two arbitrary scales D 0 and D 3 of the imaged scale 3 are displayed. Is specified by the index Q, the number of pixels between the scales D 0 and D 3 indicated by the index Q is detected, and the scale D
0, enter the reference length L 0 to read the length between D 3, calculates the number of pixels per unit length on the basis of the the detected pixel number G 0 reference length L 0, this The reference pixel number M 0 is set.
【0023】図7はさらに他の実施例を示す説明図であ
って、本例では、スケール3の目盛として距離L0 だけ
離して二つの基準点A,Bが形成されたものを用いてい
る。そして、画面2上の基準点A,BのX−Y座標A
(Xa,Ya),B(Xb,Yb)を水平線H及び垂直
線Vの交点で表された指標Qにより検出し、基準点A,
B間の画素数G0 を、G0 =〔(Xa−Xb)2 +(Y
a−Yb)2 〕1/2 により算出するようになされてい
る。このようにすれば、スケール3をX軸と平行に置か
なくても、基準点A,B間の距離G0 を画素数で算出で
き、この画素数G0 と基準長さL0 から基準画素数M0
を正確に算出することができる。FIG. 7 is an explanatory view showing still another embodiment. In this embodiment, as the scale of the scale 3, one having two reference points A and B separated by a distance L 0 is used. . Then, the XY coordinates A of the reference points A and B on the screen 2
(Xa, Ya), B (Xb, Yb) are detected by the index Q represented by the intersection of the horizontal line H and the vertical line V, and the reference point A,
The number of pixels G 0 between B is G 0 = [(Xa-Xb) 2 + (Y
a-Yb) 2 ] 1/2 . In this way, the distance G 0 between the reference points A and B can be calculated by the number of pixels without placing the scale 3 parallel to the X axis, and the reference pixel can be calculated from the number of pixels G 0 and the reference length L 0. Number M 0
Can be accurately calculated.
【0024】[0024]
【発明の効果】以上述べたように、本発明によれば、基
準マークの一端をスケールの目盛に符合させた状態で、
当該マークを伸縮させて他端を目盛に符合させることが
できるので、基準マークが指し示す目盛を正確に読み取
ることができ、目盛を読み取る際にオペレータの熟練度
や主観に基づく誤差が入る余地がなく、誰が操作しても
基準画素数を正確に設定することができ、この基準画素
数に基づいて距離を測定することができるので、測定結
果の誤差を最小限に抑えることができるという大変優れ
た効果がある。As described above, according to the present invention, with one end of the reference mark aligned with the scale of the scale,
Since the mark can be expanded and contracted and the other end can be matched with the scale, the scale indicated by the reference mark can be accurately read, and there is no room for error based on the skill and subjectivity of the operator when reading the scale. , The reference pixel number can be set accurately by anyone, and the distance can be measured based on this reference pixel number, which is extremely excellent in that the error in the measurement result can be minimized. effective.
【図1】 本発明方法により基準画素数を設定する際の
画面を示す説明図。FIG. 1 is an explanatory view showing a screen when setting a reference pixel number by the method of the present invention.
【図2】 測長用画像処理装置を示すフローシート。FIG. 2 is a flow sheet showing an image processing device for length measurement.
【図3】 処理手順の一例を示すフローチャート。FIG. 3 is a flowchart showing an example of a processing procedure.
【図4】 処理手順の一例を示すフローチャート。FIG. 4 is a flowchart showing an example of a processing procedure.
【図5】 処理手順の一例を示すフローチャート。FIG. 5 is a flowchart showing an example of a processing procedure.
【図6】 基準画素数を設定する際の画面の他の例を示
す図。FIG. 6 is a diagram showing another example of a screen when setting the reference pixel number.
【図7】 基準画素数を設定する際の画面の他の例を示
す図。FIG. 7 is a diagram showing another example of a screen when setting the reference pixel number.
1・・・基準マーク 2・・・画面 3・・・スケール D,D0 〜D3
・・・目盛 Q・・・指標 A,B・・基準
点1 ... Reference mark 2 ... Screen 3 ... Scale D, D 0 to D 3
... Scale Q ... Indicator A, B ... Reference point
Claims (2)
(2)上に被測定物(W)を撮像し、画面(2)上で指
定した被測定物(W)の二点間の画素数を検出し、検出
された画素数と基準画素数(M0 )として設定された単
位長さ当たりの画素数とを比較して実際の距離を測定す
る前に、前記基準画素数(M0 )を予め設定する測長用
画像処理装置の基準画素数設定方法であって、 [a]前記測長用画像処理装置は、画面(2)上に基準
マーク(1)を表示する表示手段と、画面(2)に表示
された前記基準マーク(1)を長手方向に伸縮させる操
作手段と、基準マーク(1)の両端(1a, 1b)間の画素
数を検出する画素数検出手段を備え、 [b]被測定物(W)と同一の測定面(S)上に在るス
ケール(3)を撮像してその目盛(D)を前記画面
(2)上に表示させ、 [c]基準マーク(1)の一端(1a)を前記スケール
(3)の目盛(D0 )に符合させた後、当該基準マーク
(1)の他端側をスケール(3)の長さ方向に沿って伸
縮させてその他端(1b)も前記スケール(3)の任意の
目盛(D3 )に符合させ、 [d]この状態で、基準マーク(1)の両端(1a, 1b)
間の画素数を前記画素数検出手段で検出すると共に、そ
の両端(1a, 1b)が指し示す目盛(D0 ,D3)間の長
さを画面(2)上で読み取ってこれを基準長さ(L0 )
として入力し、 [e]前記画素数検出手段で検出した画素数(G0 )と
前記基準長さ(L0 )に基づいて単位長さ当たりの画素
数を算出し、これを基準画素数(M0 )として設定する
ことを特徴とする測長用画像処理装置の基準画素数設定
方法。1. A pixel between two points of an object to be measured (W) designated on the screen (2) by imaging an object to be measured (W) on a screen (2) in which each pixel is arranged in a matrix. detecting the number, the detected number of pixels and the reference number of pixels (M 0) before measuring the actual distance by comparing the number of pixels per unit length is set as the reference number of pixels (M 0 ) Is set in advance, the reference pixel number setting method for the image-measuring device for length-measuring, wherein [a] the image-processing device for length-measuring has a display means for displaying the reference mark (1) on the screen (2). An operation means for expanding and contracting the reference mark (1) displayed on the screen (2) in the longitudinal direction, and a pixel number detecting means for detecting the number of pixels between both ends (1a, 1b) of the reference mark (1). [B] The scale (3) on the same measurement surface (S) as the object to be measured (W) is imaged, and the scale (D) is described above. Is displayed on the face (2), [c] After the end of the reference mark (1) (1a) were consistent on the scale (D 0) of the scale (3), the other end of the reference mark (1) By expanding and contracting along the length direction of the scale (3) so that the other end (1b) also matches the arbitrary scale (D 3 ) of the scale ( 3 ), and [d] in this state, the reference mark (1) Both ends of (1a, 1b)
The number of pixels between them is detected by the pixel number detecting means, and the length between the scales (D 0 , D 3 ) indicated by both ends (1a, 1b) is read on the screen (2) and this is used as the reference length. (L 0 )
[E] The number of pixels per unit length is calculated based on the number of pixels (G 0 ) detected by the number-of-pixels detecting means and the reference length (L 0 ), and this is calculated as the reference number of pixels ( M 0 ) is set as the reference pixel number setting method of the image processing device for length measurement.
(2)上に被測定物(W)を撮像し、画面(2)上で指
定した被測定物(W)の二点間の画素数を検出し、検出
された画素数と基準画素数(M0 )として設定された単
位長さ当たりの画素数とを比較して実際の距離を測定す
る前に、前記基準画素数(M0 )を予め設定する測長用
画像処理装置の基準画素数設定方法であって、 [a]前記測長用画像処理装置は、画面(2)上で位置
を指定する指標(Q)を表示する表示手段と、その指標
(Q)を任意の位置に移動させる操作手段と、当該指標
(Q)で指定された二点間の画素数を検出する画素数検
出手段を備え、 [b]被測定物(W)と同一の測定面(S)上に在るス
ケール(3)を撮像してその目盛(D)を前記画面
(2)上に表示させ、 [c]前記スケール(3)の二つの目盛(D0 ,D3 )
を前記指標(Q)で指定し、 [d]この状態で、指標(Q)が指し示した二点間の画
素数を前記画素数検出手段で検出すると共に、当該目盛
(D0 ,D3 )間の長さを画面(2)上で読み取ってこ
れを基準長さ(L0 )として入力し、 [e]前記画素数検出手段で検出した画素数(G0 )と
前記基準長さ(L0 )に基づいて単位長さ当たりの画素
数を算出し、これを基準画素数(M0 )として設定する
ことを特徴とする測長用画像処理装置の基準画素数設定
方法。2. A pixel between two points of an object to be measured (W) designated on the screen (2) by imaging an object to be measured (W) on a screen (2) in which each pixel is arranged in a matrix. detecting the number, the detected number of pixels and the reference number of pixels (M 0) before measuring the actual distance by comparing the number of pixels per unit length is set as the reference number of pixels (M 0 ) Is set in advance, the reference pixel number setting method of the image-measuring device for length measurement, [a] the image-processing device for length measurement displays an index (Q) designating a position on the screen (2). A display means, an operation means for moving the index (Q) to an arbitrary position, and a pixel number detection means for detecting the number of pixels between two points designated by the index (Q). The scale (3) existing on the same measurement surface (S) as the object (W) is imaged and its scale (D) is displayed on the screen (2). So, [c] two graduations of the scale (3) (D 0, D 3)
Is designated by the index (Q), [d] In this state, the number of pixels between the two points indicated by the index (Q) is detected by the pixel number detecting means, and the scale (D 0 , D 3 ) is also detected. The length of the interval is read on the screen (2) and is input as the reference length (L 0 ). [E] The number of pixels (G 0 ) detected by the pixel number detecting means and the reference length (L 0 ). 0 ), the number of pixels per unit length is calculated, and the number of pixels is set as the reference number of pixels (M 0 ).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5201386A JPH0757095A (en) | 1993-08-13 | 1993-08-13 | Number of reference picture element setting method in image processor for length measurement |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5201386A JPH0757095A (en) | 1993-08-13 | 1993-08-13 | Number of reference picture element setting method in image processor for length measurement |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0757095A true JPH0757095A (en) | 1995-03-03 |
Family
ID=16440229
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5201386A Pending JPH0757095A (en) | 1993-08-13 | 1993-08-13 | Number of reference picture element setting method in image processor for length measurement |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0757095A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002228429A (en) * | 2001-01-30 | 2002-08-14 | Tonen Chem Corp | Film evaluation method and slit film quality control method |
| JP2009217115A (en) * | 2008-03-12 | 2009-09-24 | Toa Corp | Camera picture simulator program |
| KR101863839B1 (en) * | 2017-06-01 | 2018-06-01 | 주식회사 한국매크로 | Method and apparatus for measuring high-speed and repetition length using image |
| EP3834772A1 (en) * | 2019-12-10 | 2021-06-16 | B&L Biotech, Inc. | Digital measurement apparatus and digital measurement method using the same |
-
1993
- 1993-08-13 JP JP5201386A patent/JPH0757095A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002228429A (en) * | 2001-01-30 | 2002-08-14 | Tonen Chem Corp | Film evaluation method and slit film quality control method |
| JP2009217115A (en) * | 2008-03-12 | 2009-09-24 | Toa Corp | Camera picture simulator program |
| KR101863839B1 (en) * | 2017-06-01 | 2018-06-01 | 주식회사 한국매크로 | Method and apparatus for measuring high-speed and repetition length using image |
| EP3834772A1 (en) * | 2019-12-10 | 2021-06-16 | B&L Biotech, Inc. | Digital measurement apparatus and digital measurement method using the same |
| US11262187B2 (en) | 2019-12-10 | 2022-03-01 | B&L Biotech, Inc. | Dental digital measurement apparatus and digital measurement method using the same |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7630539B2 (en) | Image processing apparatus | |
| TWI442300B (en) | Coordinate input device | |
| US20120147144A1 (en) | Trajectory processing apparatus and method | |
| EP1678485B2 (en) | Method and ir-camera for determining the risk of condensation | |
| JP4593730B2 (en) | Stereo image measuring device | |
| TW419933B (en) | Method and apparatus for measuring position errors based on positioning marks, and a machining apparatus for correcting positions based on the results of measuring position errors based on positioning marks | |
| KR100499764B1 (en) | Method and system of measuring an object in a digital | |
| JPH0757095A (en) | Number of reference picture element setting method in image processor for length measurement | |
| US7715614B2 (en) | Method and device for producing component data | |
| JP4550081B2 (en) | Image measurement method | |
| JPS6256814A (en) | 3D position measurement camera calibration method | |
| JP3990002B2 (en) | Image measuring device | |
| JPH0553249B2 (en) | ||
| JPH076777B2 (en) | Pattern contour detection method and length measuring apparatus using this method | |
| JP2522787Y2 (en) | Image processing device | |
| CN100417914C (en) | Image processing device and image processing method | |
| JPS63128215A (en) | Detecting method for inclination of camera optical axis | |
| JPS63241405A (en) | hardness meter | |
| JPH07327962A (en) | Body shape measuring device | |
| JPH05114028A (en) | Method and circuit for matching density pattern | |
| JPH0750668Y2 (en) | Adjustment and inspection device for pointer type meters | |
| JPH1021409A (en) | Size measuring method by picture processing method | |
| JP2000055624A (en) | Deviation measurement method | |
| JP3052454B2 (en) | Calibration setting method | |
| JPH0750669Y2 (en) | Adjustment and inspection device for pointer type meters |