JPS61265521A - Apparatus for automatically measuring shape of figure - Google Patents

Apparatus for automatically measuring shape of figure

Info

Publication number
JPS61265521A
JPS61265521A JP60106096A JP10609685A JPS61265521A JP S61265521 A JPS61265521 A JP S61265521A JP 60106096 A JP60106096 A JP 60106096A JP 10609685 A JP10609685 A JP 10609685A JP S61265521 A JPS61265521 A JP S61265521A
Authority
JP
Japan
Prior art keywords
input
physical coordinates
drawn
graphic
program
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
JP60106096A
Other languages
Japanese (ja)
Inventor
Eiji Watanabe
栄治 渡邊
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.)
METEOOLA SYST KK
Original Assignee
METEOOLA SYST 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 METEOOLA SYST KK filed Critical METEOOLA SYST KK
Priority to JP60106096A priority Critical patent/JPS61265521A/en
Publication of JPS61265521A publication Critical patent/JPS61265521A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make it possible to automatically converting an inputted figure to a numerical value or a numerical formula, by automatically inputting various figures. CONSTITUTION:A figure 5 to be measured is read by an input apparatus (image sensor) 3 to be converted to image data which is, in turn, outputted to a first image memory 9. Next, an operator manually locates an input figure at the predetermined position on CRT15 and the specific one point of the input figure appearing on CRT15 is indicated by the stylus pen of a tablet 17 and sets as the local origin of second physical coordinates. Subsequently, the input figure on first physical coordinates and the drawn figure on second physical coordinates are collimated by a coincidence degree detection part 29 to detect the coincidence degree of both figures. In the next step, the variable value of a figure program is altered on the basis of the detected result by a figure coinciding means 31 and the drawn figure is allowed to coincide with the input figure. Thereafter, the drawn figure stored in the first physical coordinates is outputted in a form of a numerical value or a numerical formula by an output apparatus 49.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は各種図形を自動的に入力し、入力した図形の
形状を自動的に数値化ないし数式化することのできる図
形形状の自動計測装置に関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to an automatic figure shape measuring device that can automatically input various figures and automatically convert the shape of the input figure into a numerical value or formula. It is something.

[従来技術の説明] 既に実用化されている図形の自動処理装置の例としては
、例えば、パターン認識装置や清書装置等が挙げられる
。これら従来よりの図形の自動処理装置では、入力図形
がどの種の形状に相当するかその図形種類を認識したり
、又、入力図形の図形要素を直線、円弧等に分類してこ
れをそのままトレースするものであり、各種多様に存在
する図形につい、てその図形形状を数値ないし数値化す
ることはできなかった。
[Description of Prior Art] Examples of automatic graphic processing devices that have already been put into practical use include pattern recognition devices, copying devices, and the like. These conventional automatic figure processing devices recognize the type of figure that the input figure corresponds to, or classify the figure elements of the input figure into straight lines, arcs, etc. and trace them as they are. However, it has not been possible to quantify or quantify the shapes of the various shapes that exist.

従来より、図形形状の数値化ないし数式化の作業は手動
で行われているところである。
Conventionally, the work of converting graphic shapes into numerical values or formulas has been performed manually.

しかしながら、昨今のFMS化の進展に伴って、又、C
AD、CAMシステムの進展に伴って、図形形状の数値
化ないし数式化の作業は増すばかりであり、この数値化
ないし数式化の作業を手動で行うことは余りにも多労で
ある。例えば、相似形状の図形をそれぞれ別途に数値化
ないし数式化するのは多労であり、又、製品設計変更の
都度変更後の図形についてその形状を数値化ないし数式
化するのも多労である。
However, with the recent progress in FMS, C
With the progress of AD and CAM systems, the work of quantifying or formulating graphic shapes is increasing, and it is too much work to manually perform this work of quantifying or formulating figures. For example, it is laborious to separately quantify or mathematically represent figures with similar shapes, and it is also laborious to quantify or mathematically express the shape of the changed figures each time a product design is changed. .

[発明の目的] この発明は上記従来技術の実状に鑑みて、各種図形を自
動的に入力し、入力された図形を自動的に数値化ないし
数式化することのできる図形形状の自動計測装置を提供
し、もって、各種分野における図形処理作業を容易化し
、併せて、図形処理作業の迅速化、正確化を図ることを
目的とする。
[Object of the Invention] In view of the above-mentioned state of the prior art, the present invention provides an automatic figure shape measuring device that can automatically input various figures and automatically convert the input figures into numerical values or formulas. The purpose of the present invention is to provide the following information, thereby facilitating graphic processing work in various fields, and at the same time, speeding up and increasing the accuracy of graphic processing work.

[発明の概要] 上記目的を達成するためにこの発明では、図形形状の自
動計測装置を、被計測図形を点群データとして入力する
図形入力手段と、該入力手段から入力された点群データ
を第1の物理座標上に記憶する第1画像記憶手段と、被
設計図形に合わせて予め準備され変数値を摺定すること
でその図形形状を被計測図形の形状と一致させることが
可能な態様の図形プログラムを多数格納する図形プログ
ラム格納手段と、前記入力手段に入力される被計測図形
の種別に応じて前記図形プログラム格納手段に格納され
ている多数の図形プログラムの中から該当図形プログラ
ムを選択する図形プログラム選択手段と、選択された図
形プログラムに基いて図形のベクトルデータを形成する
と共に形成されたベクトルデータを点群データに変換す
る描画データ生成手段と、該生成手段で生成された点群
データを第2の物理座標上に記憶する第2画像記憶手段
と、前記第1物理座標上の入力図形と前記第2物理座標
上の描画図形とを照合し両図形の一致度合を検出する一
致度検出手段と、該検出手段の検出結果に基いて前記図
形プログラムの変数値を変更し前記描画図形を前記入力
図形と一致させる図形一致化手段と、該一致化手段が前
記描画図形を前記入力図形に一致させたのち前記第1物
理座標に記憶された描画図形の図形形状を数値ないし数
式の形で出力する出力手段と、を有せしめて構成し、被
計測図形を自動的に入力し、入力された図形形状を自動
的に数値化ないし数式化できるようにした。
[Summary of the Invention] In order to achieve the above object, the present invention provides an automatic figure shape measurement device including a figure input means for inputting a figure to be measured as point cloud data, and a figure input means for inputting the figure to be measured as point cloud data; An embodiment in which the shape of the figure can be made to match the shape of the figure to be measured by storing the first image storage means on the first physical coordinates and the variable value prepared in advance according to the figure to be designed. a graphic program storage means for storing a large number of graphic programs, and a corresponding graphic program is selected from among the large number of graphic programs stored in the graphic program storage means according to the type of the figure to be measured inputted to the input means. a drawing data generating means for forming vector data of a figure based on the selected graphic program and converting the formed vector data into point cloud data; and a point cloud generated by the generating means. a second image storage unit that stores data on second physical coordinates; and a match that matches the input figure on the first physical coordinates with the drawn figure on the second physical coordinates and detects the degree of coincidence between the two figures. a figure matching means for changing variable values of the graphic program based on the detection result of the detecting means and matching the drawn figure with the input figure; an output means for outputting the figure shape of the drawn figure stored in the first physical coordinates in the form of a numerical value or a mathematical formula after matching the figure, and automatically inputting the figure to be measured; It is now possible to automatically convert input shapes into numbers or formulas.

[実施例の説明コ 以下、図面を用いてこの発明の一実施例を説明する。[Explanation code for the example] An embodiment of the present invention will be described below with reference to the drawings.

第1図は図形形状の自動計測装置(以下、自動計測装置
と略称する)の一実施例を示すブロック図、第2図は第
1図に示した自動計測装置の処理工程の概要を示す説明
図、第3図は第1図に示した自動計測装置の図形一致化
手段が行う同一化処理のフローチャート、第4図〜第7
図は被計測図形の簡単な例を示すと共に図形比較処理の
概要を併せて示す説明図である。
Fig. 1 is a block diagram showing an example of an automatic measuring device for figure shapes (hereinafter referred to as the automatic measuring device), and Fig. 2 is an explanation showing an overview of the processing steps of the automatic measuring device shown in Fig. 1. FIG. 3 is a flowchart of the matching process performed by the figure matching means of the automatic measuring device shown in FIG. 1, and FIGS.
The figure is an explanatory diagram showing a simple example of a figure to be measured and also an overview of the figure comparison process.

入力装置3は、イメージセンサを主体に構成され被計測
図形5を搬像して搬像図形の輪郭を表ね重点群データを
物理座標系に出力する。なお本例では入力装置3にはス
タイラスペンを備えたタブレット7を付属させており、
該タブレット7で手書きされた図形の形状データを画面
に出力させることも可能である。
The input device 3 is mainly composed of an image sensor, and images the figure to be measured 5, displays the outline of the imaged figure, and outputs point group data to a physical coordinate system. In this example, the input device 3 is attached with a tablet 7 equipped with a stylus pen.
It is also possible to output shape data of figures handwritten on the tablet 7 to the screen.

第1画像メモリ9はリフレッシュメモリで構成され、こ
のメモリで構成される第1物理座標には前記入力装置か
らの点群データが入力され、前記被計測図形5の形状が
記憶される。なお、このリフレッシュメモリに記憶され
た画像は操作装置11内に設けられたキーボード13付
のCRT15に表示可能である。又、操作装置11には
スタイラスペン付のタブレット17が備えられている。
The first image memory 9 is constituted by a refresh memory, and point group data from the input device is input to the first physical coordinates constituted by this memory, and the shape of the figure to be measured 5 is stored. Note that the images stored in this refresh memory can be displayed on a CRT 15 equipped with a keyboard 13 provided within the operating device 11. Further, the operating device 11 is equipped with a tablet 17 equipped with a stylus pen.

パラメトリック図形プログラム格納部19は、各種被計
測図形5に対応して、多数のパラメトリック図形のプロ
グラムが格納されている。
The parametric figure program storage section 19 stores a large number of parametric figure programs corresponding to various figures 5 to be measured.

ここに、パラメトリック図形とは、変数a、b。Here, the parametric figure is defined by variables a and b.

C(例えば、3角形の2辺とその夾角)に所定の値をパ
ラメータ値として与えることで特定図形Fo  (ao
、bo、Co)が規定される場合の図形1”(a、b、
c)を言う。又、パラメトリック図形プログラムとは、
この図形Fを規定するプログラムを言う。
A specific figure Fo (ao
, bo, Co) are defined.
Say c). Also, what is a parametric graphics program?
This is a program that defines this figure F.

前記パラメトリック図形プログラム格納部19には、予
測される被計測図形について、例えば、三角形のブロク
ラム、円弧のプログラムを始めとして、T字形製品のプ
ログラム、四角形のプログラム、フラットキーホール形
状のプログラム等々多数格納されている。ただし、これ
らプログラムは必ずしも図形毎に準備する必要は無く、
同一関数Fで定められる図形に対しては全ての図形に対
して1つのプログラムでよい。
The parametric figure program storage unit 19 stores a large number of predicted figures to be measured, such as triangular block diagrams, arc programs, T-shaped product programs, rectangular programs, flat keyhole shape programs, etc. has been done. However, these programs do not necessarily need to be prepared for each figure.
For figures defined by the same function F, one program is sufficient for all the figures.

描画データ生成手段21はベクトルデータ生成部23と
、点群データ生成部25とを有している。
The drawing data generation means 21 includes a vector data generation section 23 and a point group data generation section 25.

ベクトルデータ生成部23は、前記パラメトリック図形
プログラム格納部19から前記被計測図形5と合わせて
選択された1つのパラメトリック図形プログラムを入力
し、後述する外部からの変数変更指令及びパラメータ値
変更指令を受けてワールド座標上に描画用のベクトルデ
ータを生成する。生成されるベクトルデータの大きさは
初期においてはプログラムのみで定められ、各ベクトル
の集合は被計測図形の原型を作る。そして、その後、外
部からの変数変更指令及びパラメータ値変更指令を受け
て、順次、所定変数が所定の量に変更されてゆく。この
詳細は第3図以下で詳述する。
The vector data generation unit 23 inputs one parametric graphic program selected together with the measured figure 5 from the parametric graphic program storage unit 19, and receives variable change commands and parameter value change commands from the outside, which will be described later. to generate vector data for drawing on world coordinates. The size of the generated vector data is initially determined only by the program, and each set of vectors forms the prototype of the figure to be measured. Thereafter, the predetermined variables are sequentially changed to predetermined amounts in response to external variable change commands and parameter value change commands. The details will be explained in detail below in FIG.

前記点群データ生成部25は前記ベクトルデータ生成部
23で生成されたベクトルデータを第2画像メモリ27
に描画するための点群データを生成する。なお、この点
群データ生成部は前記操作装置11のタブレット17と
接続され、該タブレット17で指定した位置をローカル
原点とする。
The point cloud data generation section 25 stores the vector data generated by the vector data generation section 23 in a second image memory 27.
Generate point cloud data for drawing. Note that this point cloud data generation section is connected to the tablet 17 of the operating device 11, and the position specified by the tablet 17 is set as the local origin.

又、点群データ生成部25は外部から対称変換信号を入
力する。対称変換としては回転変換、相似変換、投影変
換等歯まれる。
Further, the point group data generation unit 25 receives a symmetrical transformation signal from the outside. Examples of symmetrical transformations include rotational transformation, similarity transformation, and projection transformation.

第2画像メモリ27はリフレッシュメモリで構成され、
前記第1画像メモリと同型の第2物理座標を形成する。
The second image memory 27 is composed of a refresh memory,
forming second physical coordinates of the same type as the first image memory;

リフレッシュメモリの記憶内容は前記CRT15に表示
可能である。この第2画像メモリ27には、前記点群デ
ータ生成部25からの点群データが入力され所定の線図
が描画される。
The contents stored in the refresh memory can be displayed on the CRT 15. Point group data from the point group data generation section 25 is input to the second image memory 27, and a predetermined line diagram is drawn.

−政変検出部29は、前記第1画像メモリ9及び前記第
2画像メモリ27のそれぞれの物理座標に表わされてい
る入力図形と描画図形とを全エリア又は所定のエリア毎
に対照して両図形の一致度を検出する。
- The political change detection unit 29 compares and contrasts the input figure and the drawn figure represented in the physical coordinates of each of the first image memory 9 and the second image memory 27 for all areas or for each predetermined area. Detect the degree of matching of shapes.

一致度Cは例えば次式で検出される。The degree of coincidence C is detected, for example, using the following equation.

ここに、Ml及びM2は第1及び第2の画像メモリ〈リ
フレッシュメモリ)を、(para)はパラメ〜りを意
味し、又、(n 、 m )は物理座標を意味する。即
ち、−政変の検出は2つのメモリM1、M2を照合する
ことで行われ、又、各変数についてそのパラメータ値を
種々変更して行われることを意味している。
Here, Ml and M2 represent the first and second image memories (refresh memories), (para) means parameters, and (n, m) represent physical coordinates. That is, the detection of a political change is performed by comparing the two memories M1 and M2, and is also performed by variously changing the parameter values of each variable.

図形一致化手段31は検出結果判定部33と、対称変換
部35と、パラメータ値変更部37と、変数変更部39
とで構成される。
The figure matching unit 31 includes a detection result determination unit 33, a symmetry conversion unit 35, a parameter value change unit 37, and a variable change unit 39.
It consists of

前記図形同一化手段31は計測終了判定部41と、対称
変換要否判定部43と、パラメータ値変更要否判定部4
5と、変数変更要否判定部47とで構成されている。
The figure equalization means 31 includes a measurement end determination section 41, a symmetry conversion necessity determination section 43, and a parameter value change necessity determination section 4.
5, and a variable change necessity determination unit 47.

前記計測終了判定部41は前記−政変検出部29の検出
結果に基いて入力図形と描画図形とが完全、又は、略完
全に一致したことを判定するもので、両図形が一致した
時点で計測終了信号を出力する。
The measurement end determination unit 41 determines whether the input figure and the drawn figure match completely or almost completely based on the detection result of the -political change detection unit 29, and the measurement ends when both figures match. Outputs a termination signal.

前記対称変換要否判定部43は前記−政変検出部29の
検出信号に基いて対称変換の要否を判定し、変更型すれ
ば前記対称変更部35に対称変換指令の信号を出力する
。なお、対称変換要否の時期及び程度の判定規準は前記
ベクトルデータ生成部23に入力されたバラタ1ヘリツ
9図形プログラムに対応して予め定められている。
The symmetrical conversion necessity determining section 43 determines whether symmetrical conversion is necessary based on the detection signal of the -political change detecting section 29, and if a change is made, outputs a symmetrical conversion command signal to the symmetrical changing section 35. Note that the criteria for determining the timing and extent of whether or not symmetry conversion is necessary are determined in advance in accordance with the balata 1 helices 9 graphic program input to the vector data generation section 23.

前記パラメータ値変更要否判定部45は前記−政変検出
部2つの検出値に基いて、現在、ベクトルデータ生成手
段23に設定されている変数についてその値の変更要否
を判定するものであり、変更要すれば前記パラメータ値
変更部37にパラメータ値変更指令の信号を出力する。
The parameter value change necessity determination unit 45 determines whether or not it is necessary to change the value of the variable currently set in the vector data generation means 23 based on the detected values of the two political change detection units. If a change is necessary, a parameter value change command signal is output to the parameter value change section 37.

前記変数変更要否判定部47は前記−政変検出部29の
検出結果に基いて前記第2画像メモリ27に描画してい
る図形のうちこれからパラメータ値を変更すべき変数の
変更要否を判定するものであり、変更要すれば前記変数
変更部39に変更指令の信号を出力する。なお、前記パ
ラメータ値変更要否判定部45においても、又、前記変
数変更要否判定部47においても、変更要否の時期及び
程度の判定規準は、前記対称変換要否判定部43と同様
に選択されたパラメトリック図形プログラムに対応して
予め定められている。
The variable change necessity determination unit 47 determines whether or not it is necessary to change variables whose parameter values are to be changed from now on among the figures drawn in the second image memory 27 based on the detection result of the political change detection unit 29. If a change is required, a change command signal is output to the variable change unit 39. In addition, in the parameter value change necessity determination section 45 and the variable change necessity determination section 47, the criteria for determining the timing and degree of change necessity are the same as in the symmetric transformation necessity determination section 43. It is predetermined corresponding to the selected parametric graphic program.

前記対称変換部35は前記点群データ生成部25と接続
され、前記対称変換要否判定部43からの出力信号を得
て点群データ生成部25に対称変換指令の詳細信号を出
力する。この詳細信号は描画図形が第2物理座標上で例
えば、所定方向に所定量だけ回転するように出力される
The symmetry conversion unit 35 is connected to the point group data generation unit 25, obtains the output signal from the symmetry conversion necessity determination unit 43, and outputs a detailed signal of the symmetry conversion command to the point group data generation unit 25. This detailed signal is output such that the drawn figure is rotated by a predetermined amount in a predetermined direction on the second physical coordinates, for example.

前記パラメータ値変更部37は前記ベクトルデータ生成
部23と接続され、前記パラメータ値変更要否判定部4
5からの出ノ〕信号を得て、ベクトルデータ生成部23
にパラメータ値の変更指令の詳細信号を出力する。この
出力信号は一つの変数で定められるベクトルが所定方向
に所定量だけその大きさを変更するように出力される。
The parameter value change unit 37 is connected to the vector data generation unit 23, and the parameter value change necessity determination unit 4
5] Obtaining the signal, the vector data generation unit 23
Outputs detailed signals for parameter value change commands. This output signal is output such that a vector defined by one variable changes its magnitude by a predetermined amount in a predetermined direction.

前記変数変更部3つは前記ベクトルデータ生成部23と
接続され、前記変数変更要否判定部47からの出力信号
を得て前記ベクトルデータ生成部23に所定の変数を設
定する。なお、どの変数を設定するかは前記ベクトルデ
ータ生成部23に設定されているパラメトリック図形プ
ログラムに対応して予めシーケンスされている。
The three variable change sections are connected to the vector data generation section 23, obtain an output signal from the variable change necessity determination section 47, and set predetermined variables in the vector data generation section 23. Note that the sequence of variables to be set is determined in advance in accordance with the parametric graphic program set in the vector data generating section 23.

出力装置49は前記計測終了判定部41と前記描画デー
タ生成手段とに接続され、計測終了判定部41からの計
測終了信号の入力があったのち、前記描画データ生成手
段21に入力されたパラメトリック図形プログラムの内
容、及び、前記ベクトルデータ生成部23と前記点群デ
ータ生成部25とに入力される信号に基すいて、前記第
2画像メモリ27に最終的に描画されている図形を数値
ないし数式の形で出力する。
The output device 49 is connected to the measurement end determination section 41 and the drawing data generation means, and after receiving the measurement end signal from the measurement end determination section 41, outputs the parametric figure input to the drawing data generation means 21. Based on the contents of the program and the signals input to the vector data generation section 23 and the point cloud data generation section 25, the figure finally drawn in the second image memory 27 can be calculated using numerical values or mathematical expressions. Output in the form of .

以上の自動計測装置1は第1画像メモリ9の第1物理座
標に被訓測図形の図形形状を入力し、又、第2画像メモ
リ27の第2物理座標に描画データ生成手段21からの
データを入力して所定図形を描画しで、両図形を一致度
検出手段29で検出しながら図形−数比手段31を介し
て前記描画図形を変形し、両図形が一致した時点で出力
装置4つを介して計測結果を出力することとなる。
The automatic measuring device 1 described above inputs the figure shape of the figure to be measured into the first physical coordinates of the first image memory 9, and also inputs the data from the drawing data generation means 21 into the second physical coordinates of the second image memory 27. is input to draw a predetermined figure, and while both figures are detected by the matching degree detection means 29, the drawn figure is transformed via the figure-to-number ratio means 31, and when both figures match, the four output devices are activated. The measurement results will be output via the .

第2図は自動計測装置1の処理方式の概要を工程順に示
したものである。
FIG. 2 shows an overview of the processing method of the automatic measuring device 1 in the order of steps.

工程は大きく分けて5工程P1〜P5に分けられる。第
1の工程P1は入力装置3の自動読取り作業を示してい
る。被計測図形5は入力装置3で読み取られ、読み取り
図形は画像データに変換され、第1画像メモリ9に画像
データとして出力される。
The steps can be roughly divided into five steps P1 to P5. The first step P1 shows an automatic reading operation of the input device 3. The figure to be measured 5 is read by the input device 3, the read figure is converted into image data, and is outputted to the first image memory 9 as image data.

第2の工程P2は画面レイアウトの工程である。The second process P2 is a screen layout process.

この工程は、入力図形をCRT上で所定位置に位置づ【
ブするものである。これは手動で行われる。
This process positions the input figure at a predetermined position on the CRT.
It is something to be used for. This is done manually.

第3の工程P3はローカル原点の指定である。The third step P3 is the designation of a local origin.

オペレータはCRTl 7上に現われている入力図形の
特定の一点をタブレット17のスタイラスペンで指定し
、ここを第2物理座標のローカル原点とする。
The operator specifies a specific point on the input figure appearing on the CRT 17 with the stylus pen of the tablet 17, and sets this point as the local origin of the second physical coordinates.

第4の工程P4は同一化の処理であり、これは全て自動
的に行われる。同一化の処理は第2物理座標上の描画図
形を第1物理座標上の入力図形に一致させる処理である
が、これについては第7図で詳述する。
The fourth step P4 is an identification process, which is all performed automatically. The matching process is a process of matching the drawn figure on the second physical coordinates with the input figure on the first physical coordinates, and this will be explained in detail in FIG. 7.

第5の工程は、図形の再現である。この工程は第1図に
示したCRTl 5.又は、出力装置4つが担当し、被
計測図形が再現され、数値化ないし数式の形で出力され
ることになる。
The fifth step is the reproduction of the figure. This process is carried out using the CRT shown in FIG. 5. Alternatively, four output devices are responsible for reproducing the figure to be measured and outputting it in the form of a numerical value or a mathematical formula.

第3図に同一化処理の詳細フローチャートを示した。FIG. 3 shows a detailed flowchart of the identification process.

ステップ303は検出結果判定部33の判定処理を示し
ている。検出結果判定部33は〜政変検出部29の検出
結果に基いて ■ 計測終了 ■ 対象変換部 ■ パラメータ値変更要 ■ 変数変更部 のうちいずれか1つを決定する。
Step 303 indicates determination processing by the detection result determination section 33. The detection result determination unit 33 determines one of the following: ■ Measurement completed ■ Target conversion unit ■ Parameter value change required ■ Variable change unit based on the detection results of the political change detection unit 29 .

ステップ307は対象変換ルーチンを示している。対象
変換は対象変換部35を介して点群データ生成部25に
その内容が指令され、ステップ309以下で示されるよ
うに、ステップ311で(1)式の極大値が検出される
まで徐々に行われる。
Step 307 shows an object conversion routine. The contents of the object conversion are instructed to the point cloud data generation section 25 via the object conversion section 35, and as shown in steps 309 onwards, the object conversion is gradually performed until the maximum value of equation (1) is detected at step 311. be exposed.

ステップ315は変数変更ルーチンを示している。変数
変更は変数変更部39を介してベクトルデータ生成部2
3に指令され、ステップ317に示されるように選択さ
れているパラメトリック図形プログラム内で所定の変数
が変更設定されることになる。
Step 315 shows a variable change routine. Variables are changed by the vector data generation unit 2 via the variable change unit 39.
3, and as shown in step 317, predetermined variables are changed and set within the selected parametric graphic program.

ステップ321はパラメータ値変更ルーチンを示してい
る。パラメータ値の変更はパラメータ値変更部37を介
してベクトルデータ生成部23に指令され、ステップ3
25で(1)式の極大値が判断されるまでステップ32
5を介して徐々に行われる。
Step 321 shows a parameter value changing routine. The parameter value change is instructed to the vector data generation unit 23 via the parameter value change unit 37, and step 3
Step 32 until the maximum value of equation (1) is determined in step 25.
It is done gradually through 5.

第4図〜第7図により被計測図形4例を挙げて計測方式
の具体例を説明する。
A specific example of the measurement method will be described using four examples of figures to be measured with reference to FIGS. 4 to 7.

第4図は三角形の例である。FIG. 4 is an example of a triangle.

まず、三角形は2辺it 、Q2とその夾角θで表わす
ことができるので、パラメトリック図形プログラムとし
ては、破線で示した定規図形F=+ 、即ら、2辺rl
 、r2とその夾角αを変数とするプログラムP+が規
定される。そこで、このプログラムP1を第1図に示し
たパラメトリック図形プログラム格納部に予め格納して
おく。
First, a triangle can be represented by two sides it, Q2 and its included angle θ, so as a parametric graphic program, we can use the ruler figure F=+ shown by the broken line, that is, the two sides rl
, r2 and the included angle α are defined as a program P+. Therefore, this program P1 is stored in advance in the parametric graphic program storage section shown in FIG.

図において三角形’F+(L+、θ、髪2)は第1物理
座標上の入力図形を示している。
In the figure, triangle 'F+ (L+, θ, hair 2) indicates the input figure on the first physical coordinates.

オペレータはこの三角形F1が被計測図形であることか
ら、パラメトリック図形プログラムとして上記3角形の
プログラムP1を操作装置11を用いて選択する。
Since the triangle F1 is the figure to be measured, the operator uses the operating device 11 to select the triangle program P1 as the parametric figure program.

定規図形F′+ の入力図形F1への一致化は次のよう
に行われる。
The matching of the ruler figure F'+ with the input figure F1 is performed as follows.

第1に、第4図に示したように第1の物理座標には入力
図形のイメージが、又、第2の物理座標には描画図形F
+  −のイメージが自動的に形成される。
First, as shown in Figure 4, the first physical coordinates contain the image of the input figure, and the second physical coordinates contain the image of the drawn figure
+ - images are automatically formed.

第2に、両図形の面積がほぼ等しいオーダとなるように
、パラメトリック図形F+  ′を自動的に修正する。
Second, the parametric figure F+' is automatically modified so that the areas of both figures are of approximately the same order.

第3に、オペレータは、入力図形F1上の所定の点Oに
ローカル原点を設定する。
Third, the operator sets the local origin at a predetermined point O on the input graphic F1.

第4に描画図形のローカル原点Oを入力図形の原点に自
動的に一致させる。
Fourth, the local origin O of the drawn figure is automatically made to coincide with the origin of the input figure.

第5に、描画図形を回転させ、(1)式で示したように
、両図形の積集合(積と加算〉を行って、辺1+ とr
lとを一致させる。〈自動)第6に、描画図形の辺r1
の長さを変更し、この辺rlを辺丈1に一致させる。(
自動)第7に、辺r1は固定として角度αを変更し、辺
r2を方丈2に一致させる。積集合が極大値を示したと
き角度αが角度θとなったことが判定される。(自動) 第8に辺r2の長さを変更して、辺r2の長さを方丈2
の長さに一致させる。これによりL12が検出される。
Fifth, rotate the drawn figure, perform the product set (product and addition) of both figures as shown in equation (1), and obtain sides 1+ and r
Match l. (Automatic) Sixth, side r1 of the drawn figure
Change the length of and make this side rl match the side length 1. (
Automatic) Seventh, the angle α is changed while the side r1 is fixed, and the side r2 is made to match the hojo 2. When the intersection set shows a maximum value, it is determined that the angle α has become the angle θ. (Automatic) Eighth, change the length of side r2, and set the length of side r2 to Hojo 2.
Match the length of. As a result, L12 is detected.

(自動) 第9に、以上の結果から辺丈3を演算して求める。これ
により、ベクトルデータAt 、  L12.13が求
められる。(自動) 第5図は四角形の例である。
(Automatic) Ninth, calculate and find the side length 3 from the above results. As a result, vector data At and L12.13 are obtained. (Automatic) Figure 5 is an example of a rectangle.

四角形の場合にも、その方丈1.史2の大きさに関係な
く、1つのパラメトリック図形プログラムP2を早漏し
ておけばよい。これにより、このプログラムP2で規定
される定規図形F=2を第3図で示した3角形の場合と
略同じ手順で入力図形F2に一致ざゼ、ベクトル交1〜
愛4を計測することができる。
Even in the case of a rectangle, its hojo 1. Regardless of the size of history 2, it is sufficient to prematurely ejaculate one parametric graphic program P2. As a result, the ruler figure F=2 defined by this program P2 can be matched with the input figure F2 in approximately the same procedure as in the case of the triangle shown in FIG.
Love 4 can be measured.

第6図はT型製品の図形F3の例である。FIG. 6 is an example of the figure F3 of a T-type product.

本例でもパラメトリック図形プログラムP3で定規図形
F′3を規定しておき、ローカル原点Oを指定すれば前
例と同様にして図形F3のベクトル吏1〜斐8を計測す
ることができる。この場合にも計測されるT型製品F3
の各辺の違いに拘わらずパラメトリック図形プログラム
P3は1つで良い。
In this example as well, by defining the ruler figure F'3 in the parametric figure program P3 and specifying the local origin O, vectors 1 to 8 of the figure F3 can be measured in the same manner as in the previous example. T-type product F3 also measured in this case
Regardless of the difference in each side, only one parametric graphic program P3 is required.

第7図は図形の一部に円弧を含む図形、例えば、フラッ
トキーホール図形F4の例である。
FIG. 7 is an example of a figure including a circular arc as a part of the figure, for example, a flat keyhole figure F4.

この場合にもローカル原点0を指定して、パラメトリッ
ク図形プログラムP4で規定される定規図形F−4をフ
ラットキーホール図形F4に一致させることで、図形F
を計測することができることになる。
In this case as well, by specifying the local origin 0 and matching the ruler figure F-4 specified in the parametric figure program P4 with the flat keyhole figure F4, figure F
This means that it will be possible to measure.

上記実施例に係る自動計測装W1では、パラメトリック
図形プログラムの選択とローカル原点の指定のみを手動
で行えば、後は全て自動的に処理し得て被計測図形を数
値ないし数式の形で出力することができることとなる。
In the automatic measurement device W1 according to the above embodiment, by manually selecting the parametric figure program and specifying the local origin, the rest can be automatically processed and the figure to be measured can be output in the form of numerical values or formulas. This means that you can do it.

ここに、プログラム選択操作を手動としたのは、この作
業は人が最も得意とする図形の認識作業に属するからで
あり、人の認識能力を積極的活用することにより、選択
操作を迅速確実に行い得るのである。
The reason why the program selection operation was made manual is because this work belongs to the figure recognition work that humans are best at, and by actively utilizing human recognition ability, the selection operation can be performed quickly and reliably. It can be done.

なお、第4図〜第7図においてはパラメトリック図形を
比較的簡単な例で説明したが、パラメトリック図形はこ
れら図形に限定されるものではなくより複雑なものであ
っても構わない。要するに、数学的に定義し得る、言い
換えれば、変数値の組み合わせで規定することができる
ものなら何でも良いのである。そして、例えば、自社の
製品図形について予めパラメトリック図形プログラムを
準備しておけば、仮にその製品が設計変更されたとして
も予め準備されたプログラムで設計変更後の図形を計測
することができることとなるのである。
Although the parametric figures are explained using relatively simple examples in FIGS. 4 to 7, the parametric figures are not limited to these figures and may be more complex. In short, anything that can be defined mathematically, in other words, can be defined by a combination of variable values, is fine. For example, if you prepare a parametric graphics program for your product's graphics in advance, even if the design of that product changes, you will be able to measure the graphics after the design change using the program prepared in advance. be.

又、予め、被計測図形のカタログ等にこの図形のパラメ
トリック図形プログラムを指定するコードバーを取付け
ておけば、このコードバーを読み取らせることで所定の
プログラムを選択することができ、プログラム選択作業
は一層容易となる。
Also, if you attach a code bar specifying the parametric graphic program for this figure in advance to the catalog of the figure to be measured, you can select the predetermined program by reading this code bar, and the program selection process is easy. It becomes even easier.

[発明の効果] 以上の通りこの発明に係る図形形状の自動計測装置では
、各種図形を自動的に入力し、入力された図形を自動的
に数値ないし数式の形で出力することができるので、各
種分野における図形処理作業を容易化し、併せて図形処
理作業の迅速化、正確化を図ることが可能となる。
[Effects of the Invention] As described above, the automatic figure shape measuring device according to the present invention can automatically input various figures and automatically output the input figures in the form of numerical values or formulas. It is possible to facilitate graphic processing work in various fields, and also to speed up and improve the accuracy of graphic processing work.

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

第1図は図形形状の自動計測装置の一実施例を示すブロ
ック図、 第2図は第1図に示した自動計測装置の処理工程の説明
図、 第3図は一致化手段の処理内容を示すフローチャート、 第4図〜第7図はパラメトリック図形の簡単な例を示す
と共に図形比較処理の概要を併せて示す説明図である。 9・・・第1画像メモリ 19・・・パラメトリック図形プログラム格納部21・
・・描画データ生成手段 27・・・第2画像メモリ 29・・・−政変検出部 31・・・図形−数比手段 49・・・出力装置 第4図 第6図 第7図 F4’[P4J
Fig. 1 is a block diagram showing an embodiment of an automatic measuring device for figure shapes, Fig. 2 is an explanatory diagram of the processing steps of the automatic measuring device shown in Fig. 1, and Fig. 3 shows the processing contents of the matching means. The flowcharts shown in FIGS. 4 to 7 are explanatory diagrams showing simple examples of parametric figures and an overview of the figure comparison process. 9... First image memory 19... Parametric graphic program storage section 21.
. . . Drawing data generation means 27 . . . Second image memory 29 . . . Political change detection section 31 .

Claims (1)

【特許請求の範囲】[Claims] 被計測図形を点群データとして入力する図形入力手段と
、該入力手段から入力された点群データを第1の物理座
標上に記憶する第1画像記憶手段と、被計測図形種に合
わせて予め準備され変数値を指定することでその図形形
状を被計測図形の形状と一致させることが可能な態様の
図形プログラムを多数格納する図形プログラム格納手段
と、前記入力手段に入力される被計測図形の種別に応じ
て前記図形プログラム格納手段に格納されている多数の
図形プログラムの中から該当図形プログラムを選択する
図形プログラム選択手段と、選択された図形プログラム
に基いて図形のベクトルデータを形成すると共に形成さ
れたベクトルデータを点群データに変換する描画データ
生成手段と、該生成手段で生成された点群データを第2
の物理座標上に記憶する第2画像記憶手段と、前記第1
物理座標上の入力図形と前記第2物理座標上の描画図形
とを照合し両図形の一致度合を検出する一致度検出手段
と、該検出手段の検出結果に基いて前記図形プログラム
の変数値を変更し前記描画図形を前記入力図形と一致さ
せる図形一致化手段と、該一致化手段が前記描画図形を
前記入力図形に一致させたのち前記第2物理座標に記憶
された描画図形の図形形状を数値ないし数式の形で出力
する出力手段と、を有して構成される図形形状の自動計
測装置。
a figure input means for inputting the figure to be measured as point cloud data; a first image storage means for storing the point cloud data inputted from the input means on first physical coordinates; graphic program storage means for storing a large number of graphic programs prepared in such a manner that the shape of the figure can be matched with the shape of the figure to be measured by specifying variable values; graphic program selection means for selecting a corresponding graphic program from among a large number of graphic programs stored in the graphic program storage means according to the type; and forming and forming vector data of a graphic based on the selected graphic program. drawing data generation means for converting the generated vector data into point cloud data;
a second image storage means for storing the image on the physical coordinates of the first image;
a degree of coincidence detection means for comparing the input figure on the physical coordinates and the drawn figure on the second physical coordinates and detecting the degree of coincidence between the two figures, and a variable value of the figure program based on the detection result of the detection means. a figure matching means for changing the drawn figure to match the input figure; and a figure matching means for matching the drawn figure to the input figure and then changing the figure shape of the drawn figure stored in the second physical coordinates. An automatic figure shape measuring device comprising: output means for outputting in the form of numerical values or formulas.
JP60106096A 1985-05-20 1985-05-20 Apparatus for automatically measuring shape of figure Pending JPS61265521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60106096A JPS61265521A (en) 1985-05-20 1985-05-20 Apparatus for automatically measuring shape of figure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60106096A JPS61265521A (en) 1985-05-20 1985-05-20 Apparatus for automatically measuring shape of figure

Publications (1)

Publication Number Publication Date
JPS61265521A true JPS61265521A (en) 1986-11-25

Family

ID=14424998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60106096A Pending JPS61265521A (en) 1985-05-20 1985-05-20 Apparatus for automatically measuring shape of figure

Country Status (1)

Country Link
JP (1) JPS61265521A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62212721A (en) * 1986-03-14 1987-09-18 Toshiba Corp Automatic production of program for fixed screen

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5861629A (en) * 1981-10-09 1983-04-12 Hitachi Ltd Bit pattern generator
JPS5988614A (en) * 1982-11-12 1984-05-22 Ckd Corp Inspection of shape

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5861629A (en) * 1981-10-09 1983-04-12 Hitachi Ltd Bit pattern generator
JPS5988614A (en) * 1982-11-12 1984-05-22 Ckd Corp Inspection of shape

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62212721A (en) * 1986-03-14 1987-09-18 Toshiba Corp Automatic production of program for fixed screen
JPH0429089B2 (en) * 1986-03-14 1992-05-18

Similar Documents

Publication Publication Date Title
US6246417B1 (en) Map editing apparatus enabling simplified editing through provision of user-selectable automatic editing functions
JPH061482B2 (en) Figure input method
JPH04270476A (en) Line width detecting method for linear picture
JPH03152670A (en) Graphic processor
US20090085932A1 (en) Image processing apparatus, image processing system, image processing method, and computer-readable medium
JPH0757073A (en) Shape changing method for region of interest
JPS61265521A (en) Apparatus for automatically measuring shape of figure
US5568565A (en) Handwriting input method and apparatus
US5430788A (en) Specific region extraction method of medical image
JPH02197965A (en) Method for displaying three-dimensional analysis data as pattern
JPH06176107A (en) Method and device for processing distance picture
JP2729699B2 (en) Tracking start point input method and device
EP3467764A1 (en) Image processing method and image processing apparatus
CN111414508A (en) Method and terminal for searching and realizing visualization in design model
JPH03662B2 (en)
JP2662540B2 (en) 3D distance measuring device
JPS62202286A (en) Illustrating device for image processor
JP3363611B2 (en) Graphic information processing method and apparatus
JP2589175B2 (en) Figure recognition device
JPH03209499A (en) Forming method for outline font and drawing device for the same
JP2880605B2 (en) Graphic display device
JP3433486B2 (en) Geometric deviation calculator
JPH02110796A (en) Handwritten character recognition dictionary creating system
JPH0816759A (en) Map data input system
JPH04358290A (en) Graphic measuring device