[go: up one dir, main page]

JPH0816309A - Tracer - Google Patents

Tracer

Info

Publication number
JPH0816309A
JPH0816309A JP6144829A JP14482994A JPH0816309A JP H0816309 A JPH0816309 A JP H0816309A JP 6144829 A JP6144829 A JP 6144829A JP 14482994 A JP14482994 A JP 14482994A JP H0816309 A JPH0816309 A JP H0816309A
Authority
JP
Japan
Prior art keywords
line
line segment
memory
input
segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP6144829A
Other languages
Japanese (ja)
Other versions
JP3255540B2 (en
Inventor
Mayumi Arisaka
真由美 有阪
Miyako Nishio
美也子 西尾
Norimasa Sugaya
宣正 菅谷
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP14482994A priority Critical patent/JP3255540B2/en
Publication of JPH0816309A publication Critical patent/JPH0816309A/en
Application granted granted Critical
Publication of JP3255540B2 publication Critical patent/JP3255540B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)

Abstract

(57)【要約】 【目的】本発明は、例えばトラックボール,マウス等の
操作子を操作して表示画面上に線や領域を表示するトレ
ーサに関し、トレース時の不具合を解決し、より高精度
に所望の領域のみを囲うようにトレースする。 【構成】操作子の操作により新たに入力された第1の線
分が、メモリに記憶された折れ線を構成する線分のうち
の、第1の線分の入力の直前に入力された第2の線分と
重畳するか否かを判断する第1の判定手段と、上記第2
の線分よりも前に入力された1本もしくは複数本の第3
の線分それぞれについて、第1の線分の始点と第3の線
分の始点および終点それぞれとを結ぶ2本の線分と所定
の基準線との角度、および第1の線分の終点と第3の線
分の始点および終点それぞれとを結ぶ2本の線分と所定
の基準線との角度に基づいて線分どうしの交差を判定す
る第2の判定手段を備えた。
(57) [Abstract] [Object] The present invention relates to a tracer that displays a line or an area on a display screen by operating an operator such as a trackball or a mouse. Trace to surround only the desired area. [Structure] A first line segment newly input by operation of an operator is a second line segment input immediately before inputting a first line segment of line segments forming a broken line stored in a memory. The first determination means for determining whether or not the line segment overlaps
1 or multiple thirds entered before the line segment of
For each line segment, the angle between two line segments connecting the first line segment start point and the third line segment start point and end point and a predetermined reference line, and the first line segment end point. A second determining means is provided for determining the intersection of the line segments based on the angle between two line segments connecting the start point and the end point of the third line segment and a predetermined reference line.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばトラックボー
ル,マウス等の操作子を操作して表示画面上に線や領域
を表示するトレーサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tracer for displaying a line or area on a display screen by operating an operator such as a trackball or a mouse.

【0002】[0002]

【従来の技術】従来より、表示画面上に線や領域を表示
するトレーサが広く用いられている。ここでは、その適
用分野の一例として超音波診断装置について説明する。
被検体、特に人体内に超音波を送信し、被検体内の組織
で反射して戻ってきた超音波を受信して受信信号を得、
この受信信号に基づいて被検体内の断層像を表示する装
置が従来より広く用いらており、この装置は、一般に、
超音波診断装置と呼ばれている。この超音波診断装置に
おいて、疾患の診断を一層容易ならしめるために、その
断層像に現われた組織、例えば心臓の左心室の面積やそ
の左心室の輪郭から推定された左心室の体積(容積)の
時間変化を求めることが要望されている。この面積ない
し体積を求めるためには、先ず、その組織の輪郭を知っ
てその組織の領域を抽出する必要がある。その輪郭を求
めるにあたり、その輪郭を自動認識するための研究も種
々行われてはいるが、最も確実な実現方法として、表示
画面上に断層像を表示しておき、操作者が、その断層像
を見ながら、トラックボール,マウス等の操作子を操作
して所望の組織の輪郭をなぞる方法が採用されている。
このようなトレース機能を駆使して、例えば心臓の鼓動
を基準とした、種々に時間のずれた断層像それぞれにつ
いて輪郭を入力して面積ないし体積を求めることによ
り、その時間変化を知り、疾患の診断に供せられる。
2. Description of the Related Art Conventionally, tracers for displaying lines and areas on a display screen have been widely used. Here, an ultrasonic diagnostic apparatus will be described as an example of its application field.
The ultrasonic wave is transmitted to the subject, particularly the human body, and the received ultrasonic wave is returned by being reflected by the tissue inside the subject, and a reception signal is obtained.
A device for displaying a tomographic image of the inside of a subject based on this received signal has been widely used, and this device is generally used.
It is called an ultrasonic diagnostic device. In this ultrasonic diagnostic apparatus, in order to make the diagnosis of the disease easier, the tissue appearing in the tomographic image, for example, the area of the left ventricle of the heart or the volume (volume) of the left ventricle estimated from the contour of the left ventricle It is desired to obtain the time variation of. In order to obtain this area or volume, it is first necessary to know the contour of the tissue and extract the region of the tissue. Although various researches have been conducted to automatically recognize the contour in obtaining the contour, the most reliable method is to display the tomographic image on the display screen and allow the operator to display the tomographic image. A method of tracing the desired contour of a tissue by operating an operator such as a trackball or a mouse while watching is adopted.
By making full use of such a tracing function, for example, by inputting contours for each tomographic image with various time lags based on the heartbeat of the heart and determining the area or volume, the time change can be known and the disease It is used for diagnosis.

【0003】[0003]

【発明が解決しようとする課題】図7は、表示画面上に
トレースされた線を示した模式図である。例えばトラッ
クボールを用いて、上記のようなトレース操作を行う
と、操作者の意図通りにはなかなかトレースできず、ト
レース線によって囲おうとした領域D1のほかに、領域
D2,D3といった意図していなかった領域もトレース
線によって形成されてしまい、この場合、それら意図さ
れていなかった領域D2,D3の面積が誤差となるとい
う問題がある。
FIG. 7 is a schematic diagram showing traced lines on a display screen. For example, when the above tracing operation is performed using a trackball, it is difficult to trace as intended by the operator, and areas D2 and D3 other than the area D1 intended to be surrounded by the trace line are not intended. The regions that are not formed are also formed by the trace lines, and in this case, there is a problem that the areas of the regions D2 and D3 that are not intended become an error.

【0004】これを避けるためには、トレース線どうし
の交点を求め、領域D2,D3を面積計算から排除すれ
ばよい。しかし、リアルタイムでトレース操作している
時の交点を求める計算処理には事実上限界があり、これ
までは実現困難であった。また、領域D1,D2,D3
のうちのいずれの領域が操作者の意図した領域であるか
判然としない場合もある。
In order to avoid this, the intersections of the trace lines should be obtained and the regions D2 and D3 should be excluded from the area calculation. However, there is a practical limit to the calculation processing to find the intersection point during the trace operation in real time, and it has been difficult to realize so far. In addition, areas D1, D2, D3
In some cases, it is not clear which of these areas is the area intended by the operator.

【0005】本発明は、上記事情に鑑み、トレース時の
不具合を解決し、より高精度に所望の領域のみを囲うよ
うにトレースすることのできるトレーサを提供すること
を目的とする。
In view of the above circumstances, it is an object of the present invention to provide a tracer which solves a problem at the time of tracing and can trace with high accuracy so as to surround only a desired area.

【0006】[0006]

【課題を解決するための手段】上記目的を達成する本発
明のトレーサは、入力操作に応じた複数の線分を順次入
力することにより、これら複数の線分の連続からなる、
2次元画面上の折れ線を指示する操作子と、前記操作子
により指示された折れ線を記憶するメモリと、前記メモ
リに記憶された折れ線を表示する表示手段とを備えたト
レーサにおいて、 (1)操作子の操作により新たに入力された第1の線分
が、メモリに記憶された折れ線を構成する線分のうち
の、第1の線分の入力の直前に入力された第2の線分と
重畳するか否かを判定する第1の判定手段 (2)メモリに記憶された折れ線を構成する線分のうち
上記第2の線分よりも前に入力された1本もしくは複数
本の第3の線分それぞれについて、第1の線分と第3の
線分とが交差するか否かを判定する第2の判定手段 を備えたことを特徴とする。
The tracer of the present invention which achieves the above-mentioned object is formed by successively inputting a plurality of line segments according to an input operation.
A tracer comprising an operator for instructing a polygonal line on a two-dimensional screen, a memory for storing the polygonal line instructed by the operator, and a display unit for displaying the polygonal line stored in the memory. The first line segment newly input by the child operation is the same as the second line segment input immediately before the input of the first line segment among the line segments forming the broken line stored in the memory. First determining means for determining whether or not to overlap (2) Of the line segments forming the broken line stored in the memory, one or a plurality of third lines input before the second line segment. For each of the line segments, the second determination means for determining whether or not the first line segment and the third line segment intersect is provided.

【0007】ここで、上記(1)の第1の判定手段は、
例えば、 (1_1)第1の線分と所定の基準線との成す角と、第
2の線分と上記基準線との成す角とを比較することによ
り、第1の線分が第2の線分と重畳するか否かを判定す
るものであってもよい。また上記(2)の第2の判定手
段は、例えば、 (2_1)上記第1の線分の始点および終点のうちのい
ずれか一方の点と上記第3の線分の始点および終点のう
ちのいずれか一方の点が互いに一致するか否かを判定す
る第1のサブ判定手段 (2_2)上記第1の線分の始点からその第1の線分の
終点に向かう基準線と、上記第1の線分の始点と上記第
3の線分の始点および終点それぞれとを結ぶ2本の各線
分との成す、符号を含む各角度をそれぞれα,βとした
とき、 α・β≦0、かつ、|α−β|≦180° 但し、α,βは、|α|≦180°,|β|≦180°
であり、かつ、−180°もしくは180°の一方が除
外された範囲内の角度である。の条件を満足するか否か
を判定する第2のサブ判定手段 (2_3)上記第1の線分の終点からその第1の線分の
始点に向かう基準線と、上記第1の線分の終点と上記第
3の線分の始点および終点それぞれとを結ぶ2本の各線
分との成す、符号を含む各角度をそれぞれα’,β’と
したとき、 α’・β’≦0、かつ、|α’−β’|≦180° 但し、α’,β’は、|α’|≦180°,|β’|≦
180°であり、かつ、−180°もしくは180°の
一方が除外された範囲内の角度である。 の条件を満足するか否かを判定する第3のサブ判定手段 を備えたものであってもよい。
Here, the first determination means of the above (1) is
For example, by comparing the angle formed by the (1_1) first line segment and a predetermined reference line with the angle formed by the second line segment and the reference line, the first line segment is It may be one that determines whether or not it overlaps with a line segment. The second determination means of (2) may be, for example, (2_1) one of the start point and the end point of the first line segment and the start point and the end point of the third line segment. First sub-judging means for judging whether or not one of the points coincides with each other (2_2) A reference line extending from the start point of the first line segment to the end point of the first line segment, and the first sub-determination means. Let α and β be respective angles formed by the two line segments connecting the start point of the line segment and the start point and the end point of the third line segment, respectively, where α · β ≦ 0, and , | Α-β | ≦ 180 ° where α and β are | α | ≦ 180 ° and | β | ≦ 180 °
And -180 [deg.] Or 180 [deg.] Is an angle within the excluded range. Second sub-judgment means (2_3) for judging whether or not the above condition is satisfied, and a reference line from the end point of the first line segment to the start point of the first line segment, and the first line segment. Let α ′ and β ′ be respective angles formed by the two line segments connecting the end point and the start point and end point of the third line segment, respectively, where α ′ and β ′ ≦ 0, and , | Α′−β ′ | ≦ 180 ° where α ′ and β ′ are | α ′ | ≦ 180 °, | β ′ | ≦
It is 180 °, and either −180 ° or 180 ° is an angle within the range excluded. A third sub-judging means for judging whether or not the condition of (3) is satisfied may be provided.

【0008】また、上記(2)の第2の判定手段が、上
記(2_1)〜(2_3)のサブ判定手段を備えたもの
である場合に、 (3)その第2の判定手段が、上記第3の線分それぞれ
について、上記第2のサブ判定手段および上記第3のサ
ブ判定手段のうちの一方のみを適用することにより、上
記第1の線分と交差しているおそれのある第3の線分を
抽出し、抽出された第3の線分について、上記第2のサ
ブ判定手段および上記第3のサブ判定手段のうち、上記
一方とは異なる他方を適用するものであることが好まし
い。
Further, in the case where the above-mentioned (2) second judging means comprises the above-mentioned (2_1) to (2_3) sub-judging means, (3) the second judging means is the above-mentioned By applying only one of the second sub-determination means and the third sub-determination means to each of the third line segments, there is a possibility that the third line segment may intersect with the first line segment. Of the second sub-judging means and the third sub-judging means of the second sub-judging means is applied to the extracted third line segment. .

【0009】また、上記本発明のトレーサにおいて、 (4)上記表示手段に表示された折れ線と、その折れ線
全体の始点と終点とを結ぶ線分とに囲まれた領域の面積
を算出する面積算出手段を備えることが好ましい。さら
に、上記本発明のトレーサにおいて、 (5)上記第1の判定手段により第1の線分と第2の線
分との重畳が検出された場合に、メモリの内容を、第2
の線分を除く、その第2の線分よりも前に入力された線
分からなる折れ線に変更し、上記第2の判定手段により
第1の線分と交差する第3の線分が検出された場合に、
メモリの内容を、その第3の線分を除く、その第3の線
分よりも前に入力された線分からなる折れ線に変更する
メモリ書換え手段を備え、上記表示手段が、メモリ書換
え手段によりメモリの内容が書き換えられる際に、書き
換え前後の折れ線どうしの相違に相当する部分の線分の
表示を消去するものであることが好ましい。
Further, in the tracer of the present invention, (4) area calculation for calculating an area of a region surrounded by the polygonal line displayed on the display means and a line segment connecting the start point and the end point of the entire polygonal line Means are preferably provided. Further, in the tracer of the present invention, (5) when the first determination means detects the superposition of the first line segment and the second line segment, the content of the memory is changed to the second
Except for the line segment No., the line segment is changed to a polygonal line that is input before the second line segment, and the third line segment that intersects the first line segment is detected by the second determination means. If
The memory rewriting means for changing the contents of the memory into a broken line formed by a line segment input before the third line segment, excluding the third line segment, is provided, and the display means stores the memory by the memory rewriting means. It is preferable that the display of the line segment of the portion corresponding to the difference between the polygonal lines before and after the rewriting is erased when the content of (1) is rewritten.

【0010】また、本発明のトレーサにおいて、 (6)操作子の操作によりリセットされる、操作子の操
作停止時点からの所定時間を計時するタイマを備え、上
記表示手段が、タイマのタイムアップを受けてメモリに
記憶された折れ線を再表示するものであることが好まし
い。
Further, in the tracer of the present invention, (6) a timer is provided which is reset by the operation of the operator and measures a predetermined time from the time when the operation of the operator is stopped, and the display means increases the time of the timer. It is preferable that the polygonal line which is received and stored in the memory is displayed again.

【0011】[0011]

【作用】本発明のトレーサは、上記(1)の第1の判定
手段において、新たに入力された第1の線分が、直前に
入力された第2の線分と重畳しているか否かを判定する
ことにより、同一トレース線上を戻ったか否かが検出さ
れ、また上記(3)の第2の判定手段において、新たに
入力された第1の線分が、直前に入力された第2の線分
よりも前に入力された1本もしくは複数本の第3の線分
と交差しているか否かを判定することにより、トレース
線どうしが交差したか否かが検出され、これにより、ト
レース線のうち、操作者が意図した有効な部分と、操作
者が操作を誤って後戻りしたり交差したりした無効な部
分が区別される。したがってそのトレース線によりある
領域を指定したときに、その領域の面積、体積等を高精
度に求めることができる。これら第1の判定手段、第2
の判定手段は、それぞれ上述の(1_1)、(2_1)
〜(2_3)の構成をとることができ、角度判定等の簡
単な演算で、操作者を待たせることなく、高速にリアル
タイムで判定を行うことができる。
In the tracer of the present invention, in the first determination means of (1) above, whether or not the newly input first line segment overlaps with the immediately preceding second line segment. It is detected whether or not the line has returned on the same trace line, and in the second determination means of (3), the newly input first line segment is the second line input immediately before. It is detected whether or not the trace lines intersect with each other by determining whether or not they intersect with one or a plurality of third line segments input before the line segment of Among the trace lines, a valid portion intended by the operator is distinguished from an invalid portion where the operator mistakenly moves back or crosses. Therefore, when a certain area is designated by the trace line, the area, volume, etc. of the area can be obtained with high accuracy. These first determination means, the second
The determination means of the above are (1_1) and (2_1), respectively.
The configurations (1) to (2_3) can be adopted, and the determination can be performed in real time at high speed by a simple calculation such as angle determination without causing the operator to wait.

【0012】また、上記第2の判定手段が、上記(2_
1)〜(2_3)の構成を備えたものである場合におい
て、その第2の判定手段を、上記(3)のシーケンスに
基づいて交差判定を行うよう構成すると、演算量がさら
に少なくて済み、その演算時間を一層短縮することがで
きる。また、本発明のトレーサにおいて、上記(4)の
面積算出手段を備え、トレースの途中でも面積を算出す
ることにより、操作者にその所望領域の面積の目安をト
レースの途中でも与えることができ、好ましい。
Further, the second determining means is the above (2_
1) to (2_3), if the second determination means is configured to perform the intersection determination based on the sequence of (3), the amount of calculation can be further reduced. The calculation time can be further shortened. Further, in the tracer of the present invention, the area calculating means of the above (4) is provided, and by calculating the area even in the middle of tracing, it is possible to give the operator an indication of the area of the desired region even in the middle of tracing. preferable.

【0013】さらに、本発明のトレーサにおいて、上記
(5)のメモリ書換え手段を備え、トレース線の、操作
者が操作を誤って後戻りしたり交差したりした無効な部
分を消去することにより、トレース線の、操作者が意図
した有効な部分のみ表示され、無効な部分もそのまま表
示しておく場合と比べ見やすい画面が提供され、操作の
能率も向上する。
Further, in the tracer of the present invention, the memory rewriting means of the above (5) is provided, and the trace portion is traced by erasing an invalid portion of the trace line which is mistakenly moved back or crossed by the operator. Only a valid portion of the line intended by the operator is displayed, and a screen that is easier to see is provided as compared with a case where the invalid portion is displayed as it is, and the operation efficiency is improved.

【0014】ところで、上記(5)のメモリ書換え手段
を備え、それに対応して表示画面上のトレース線を消去
すると、不都合を生じる場合がある。図8を参照してこ
の不都合について説明する。図8は、表示画面上のレー
ス線の、トレース線どうしが交差した部分を示す拡大図
である。
By the way, if the memory rewriting means of the above (5) is provided and the trace line on the display screen is erased in correspondence therewith, inconvenience may occur. This inconvenience will be described with reference to FIG. FIG. 8 is an enlarged view showing a portion of the race line on the display screen where the trace lines intersect with each other.

【0015】図中の多数の正方形領域は、表示画面上の
各表示画素を表わしている。図中、線分a→線分b→…
→線分c→線分dのようにトレースが行われ、さらに線
分eが入力されると、上記(2)の第2の判定手段によ
り、線分bと、今入力された線分eが交差していると判
定され、上記(5)のメモリ書換え手段により、線分b
以降のトレース線が消去される。
A large number of square areas in the figure represent each display pixel on the display screen. In the figure, line segment a → line segment b → ...
When tracing is performed in the order of line segment c → line segment d, and line segment e is further input, the line segment b and the line segment e just input are obtained by the second determination means in (2) above. Is determined to intersect, and the line segment b is determined by the memory rewriting means in (5) above.
Subsequent trace lines are erased.

【0016】このとき、表示手段では図にハッチングを
施した表示画素の表示が消去されることになるが、この
消去により、表示したままの状態に残しておくべき線分
aに対応する表示画素のうち、画素領域R1,R2の表
示画素も消去されてしまう結果となる。このように消去
されてしまった、本来消去されるべきでない画素につい
て、その消去の後直ちに再表示の処理を行うことも考え
られるが、その再表示にはある程度の時間がかかり、操
作者のトレース操作を中断させてしまうことになる。
At this time, in the display means, the display of the display pixels hatched in the figure is erased, but due to this erasure, the display pixels corresponding to the line segment a to be left in the displayed state are displayed. Of these, the display pixels in the pixel regions R1 and R2 are also erased. It is conceivable to perform re-display processing immediately after erasing pixels that should not have been erased, which has been erased in this way, but it takes some time to re-display, and the trace of the operator It will interrupt the operation.

【0017】この場合に、上記(6)のタイマを備え、
操作者の意思でトレース操作が中断されたときを見計ら
ってトレース線を再表示することにより、操作者のトレ
ース操作の、操作者の意図しない中断を余儀なくさせる
ことなく、図8に示すような表示の抜けの無い、きれい
なトレース線を表示した画面が提供される。
In this case, the timer (6) is provided,
By re-displaying the trace line in anticipation of the trace operation being interrupted by the operator's intention, the display as shown in FIG. 8 is made without inevitably interrupting the operator's trace operation. A screen with a clean trace line without any gaps is provided.

【0018】[0018]

【実施例】以下、本発明の実施例について説明する。図
1は、本発明のトレーサの一実施例の構成を示すブロッ
ク図である。このトレーサには、トラックボール1、表
示ライン管理メモリ2、ライン表示消去制御部3、演算
制御部4、線画メモリ5、文字メモリ6、CRTディス
プレイ7が備えられており、トラックボール1、表示ラ
イン管理メモリ2は、それぞれ、本発明にいう操作子、
メモリの各一例に相当し、ライン表示消去制御部3、線
画メモリ5、およびCRTディスプレイ7の組合せが本
発明にいう表示手段の一例に相当する。また、ライン表
示消去制御部3の、表示ライン管理メモリ2の内容を書
き換える機能は、本発明にいうメモリ書換え手段の一例
に相当する。さらに、演算制御部4は、その機能に応
じ、本発明にいう、第1および第2の判定手段、面積算
出手段、およびタイマの各一例に相当する。
Embodiments of the present invention will be described below. FIG. 1 is a block diagram showing the configuration of an embodiment of the tracer of the present invention. This tracer is provided with a trackball 1, a display line management memory 2, a line display erasing control unit 3, a calculation control unit 4, a line drawing memory 5, a character memory 6 and a CRT display 7. The management memory 2 includes an operator according to the present invention,
This corresponds to each example of the memory, and the combination of the line display erasing control unit 3, the line drawing memory 5, and the CRT display 7 corresponds to an example of the display means according to the present invention. The function of rewriting the contents of the display line management memory 2 of the line display erasing control unit 3 corresponds to an example of the memory rewriting means according to the present invention. Further, the arithmetic control unit 4 corresponds to one example of each of the first and second determination means, the area calculation means, and the timer according to the present invention, depending on its function.

【0019】トラックボール1が操作されると、各線分
を表わすベクトル情報(dx,dy)が順次入力され、
そのトラックボール1から順次入力されたベクトル情報
は通常、ライン表示消去制御部3を経由して表示ライン
管理メモリ2に格納される。またトラックボール1の操
作により順次入力された線分は、画像メモリ5にも入力
され、CRTディスプレイ7に、それらの線分の連続か
らなるトレース線が表示される。また演算制御部4で
は、トレース線とそのトレース線の始点と終点を結んだ
閉領域の面積が求められ、その面積を表わす文字情報が
文字メモリ6に入力され、CRTディスプレイ7にその
面積を表わす数値が表示される。
When the trackball 1 is operated, vector information (dx, dy) representing each line segment is sequentially input,
The vector information sequentially input from the trackball 1 is normally stored in the display line management memory 2 via the line display erasing control unit 3. The line segments sequentially input by operating the trackball 1 are also input to the image memory 5, and the CRT display 7 displays a trace line consisting of a series of these line segments. Further, the arithmetic control unit 4 obtains the area of the trace line and the closed region connecting the start point and the end point of the trace line, the character information representing the area is input to the character memory 6, and the area is displayed on the CRT display 7. The numerical value is displayed.

【0020】表示ライン管理メモリ2には、表示最終ラ
イン情報、ベクトル情報、およびラインパターン開始情
報が格納される。図2は、表示ライン管理メモリ2に格
納される情報の説明図であり、図2(A)は、登録ライ
ンパターンの模式図、図2(B)は、CRTディスプレ
イ7に表示されたトレース線の模式図である。
The display line management memory 2 stores display last line information, vector information, and line pattern start information. 2A and 2B are explanatory diagrams of information stored in the display line management memory 2. FIG. 2A is a schematic diagram of a registered line pattern, and FIG. 2B is a trace line displayed on the CRT display 7. FIG.

【0021】図2(A)に示す登録ラインパターンは、
CRTディスプレイ7に表示するトレース線の線種、例
えば、実線、破線、一点鎖線等を定めるものであり、こ
の例では10ビットからなり、‘1’,‘0’が書込ま
れた各ビットは、表示画面上のその各ビットに対応する
表示画素を、例えば明るく点灯させ、あるいは消灯した
状態に置くことを示している。
The registered line pattern shown in FIG. 2A is
It defines the line type of the trace line displayed on the CRT display 7, for example, a solid line, a broken line, a dash-dotted line, etc. In this example, it consists of 10 bits, and each bit written with "1" or "0" is , That is, the display pixel corresponding to each bit on the display screen is placed in a state in which it is brightly turned on or turned off, for example.

【0022】図2(A)に示す登録ラインパターンは
‘1111100000’であり、この登録ラインパタ
ーンが循環的に用いられる。すなわち、この登録ライン
パターンは、トレース線に沿って連続して5画素点灯さ
せ、次の5画素は消灯した状態とし、さらに次の5画素
は点灯させるというようにして、トレース線を破線で表
示することを表わしている。
The registered line pattern shown in FIG. 2A is '1111100000', and this registered line pattern is cyclically used. That is, in this registered line pattern, 5 pixels are continuously turned on along the trace line, the next 5 pixels are turned off, and the next 5 pixels are turned on. It means to do.

【0023】図2(B)に示すトレース線の模式図中
に、その点灯,消灯の状態が示されており、線分1→2
→3→4→5とトレースされたとき、各表示画素を示す
正方形中に‘1’が記載された画素のみが表示画面上で
実際に点灯し、‘0’が記載された画素は表示画面上で
は消灯した状態に置かれる。ここで、図1に示す表示ラ
イン管理メモリ2中のベクトル情報(ex,ey)は、
トラックボール1から順次入力されるベクトル情報(d
x,dy)を表わしている。図2(B)に示す例では、
先ず線分1のベクトル情報として(dx,dy)=
(3,0)が入力され、次に線分2のベクトル情報とし
て(dx,dy)=(0,3)が入力され、さらに、線
分3,4,5のベクトル情報(dx,dy)=(−8,
0),(0,−6),(6,0)が順次入力され、表示
ライン管理メモリ2のベクトル情報(ex,ey)とし
て格納される。また、表示ライン管理メモリ2中のライ
ンパターン開始情報は、その線分の最終の画素、すなわ
ち次の線分の先頭の画素が、図2(A)に示す登録ライ
ンパターンの何ビット目に対応するかを、そのビット番
号で示したものであり、線分1,2,3,4,5の最終
の画素、すなわち線分2,3,4,5,6の先頭の画素
は、登録ラインパターンのそれぞれ4,7,5,1,7
ビット目に相当する。また、表示ライン管理メモリ2中
の表示最終ライン情報は、CRTディスプレイ7に現在
表示されているトレース線を構成する最後の線分のライ
ン番号、およびその最後の線分の終点の座標を示すもの
であり、図1に示す例では、ライン番号=5,終点の座
標(Px,Py )=(252,200)が格納されてい
る。
In the schematic diagram of the trace line shown in FIG. 2B, the on / off state is shown, and the line segment 1 → 2.
When traced as → 3 → 4 → 5, only the pixels with "1" written in the square indicating each display pixel actually light up on the display screen, and the pixels with "0" are displayed on the display screen. It is placed in the off state above. Here, the vector information (ex, ey) in the display line management memory 2 shown in FIG.
Vector information (d
x, dy). In the example shown in FIG. 2 (B),
First, as vector information of line segment 1, (dx, dy) =
(3, 0) is input, then (dx, dy) = (0, 3) is input as vector information of the line segment 2, and further vector information (dx, dy) of the line segments 3, 4, 5 is input. = (-8,
0), (0, -6), (6, 0) are sequentially input and stored as vector information (ex, ey) in the display line management memory 2. In the line pattern start information in the display line management memory 2, the last pixel of the line segment, that is, the first pixel of the next line segment corresponds to what bit of the registered line pattern shown in FIG. The last pixel of the line segment 1, 2, 3, 4, 5 or the first pixel of the line segment 2, 3, 4, 5, 6 is the registration line. Each of the patterns 4, 7, 5, 1, 7
Equivalent to the bit eye. The display last line information in the display line management memory 2 indicates the line number of the last line segment forming the trace line currently displayed on the CRT display 7 and the coordinates of the end point of the last line segment. In the example shown in FIG. 1, line number = 5, coordinates of the end point (P x , P y ) = (252, 200) are stored.

【0024】上記例では、トラックボール1から線分1
〜5が入力されている間は、後述するような線分の重な
りや交差はなく、したがって各線分1〜5が入力される
毎に、ライン表示消去制御部3を構成するライン表示消
去判定部3aでは、演算制御部4からの、線分の重なり
や交差がないという情報に基づいて今回入力された線分
を表示するものと判定し、ライン表示消去制御部3は、
表示ライン管理メモリ2に、今回入力された線分に対応
する必要な情報を格納する。また、これとともに、ライ
ン表示消去制御部3は、登録ラインパターンに従って、
今回入力された場合を線画メモリ5に格納し、これによ
りCRTディスプレイ7に今回入力された線分が、それ
までのトレース線に追加して表示される。
In the above example, the trackball 1 to the line segment 1
There is no overlap or intersection of line segments as will be described later while inputting ~ 5. Therefore, every time each line segment 1 to 5 is input, the line display deletion determining unit configuring the line display deletion control unit 3 is input. In 3a, it is determined that the line segment input this time is displayed based on the information from the arithmetic control unit 4 that the line segments do not overlap or intersect, and the line display deletion control unit 3
The display line management memory 2 stores necessary information corresponding to the line segment input this time. At the same time, the line display erasure control unit 3 follows the registered line pattern
The case of this input is stored in the line drawing memory 5, whereby the line segment input this time is displayed on the CRT display 7 in addition to the trace lines up to that point.

【0025】次に、上記のようにして、トラックボール
1から線分1〜5が入力され、次いで、トラックボール
1から、図2(B)に破線で示す線分6のベクトル情報
(dx,dy)=(0,4)が入力された場合について
説明する。このベクトル情報(dx,dy)=(0,
4)は、図1に示すライン表示消去制御部3を経由して
演算制御部4に入力される。この演算制御部4ではその
ベクトル−角度換算器4aにおいて、今回入力されたベ
クトル情報(dx,dy)に基づいて勾配dy/dxが
演算される。今回の場合、勾配dy/dx=4/0=+
∞となる。ベクトル角度換算器4aには、勾配dy/d
xを、図2(B)に示すx軸の正方向を基準線としたと
きの、その基準線と線分との成す角度θに変換するため
の勾配−角度変換表が格納されており、この勾配−角度
変換表が参照され、求められた勾配dx/dyから角度
(今回の場合θ=90°)が求められる。尚、このベク
トル−角度換算器4aでは、前回、線分5(図2(B)
参照)のベクトル情報が入力されたときには、上記と同
様にして、その線分5の基準線からの角度θ=0°が求
められている。
Next, line segments 1 to 5 are input from the trackball 1 as described above, and then the vector information (dx, of the line segment 6 indicated by the broken line in FIG. A case where dy) = (0,4) is input will be described. This vector information (dx, dy) = (0,
4) is input to the arithmetic control unit 4 via the line display deletion control unit 3 shown in FIG. In the calculation control unit 4, the vector-angle converter 4a calculates the gradient dy / dx based on the vector information (dx, dy) input this time. In this case, the gradient dy / dx = 4/0 = +
It becomes ∞. The vector angle converter 4a has a gradient dy / d
A gradient-angle conversion table for converting x into an angle θ between the reference line and the line segment when the positive direction of the x-axis shown in FIG. 2B is used as a reference line is stored. This gradient-angle conversion table is referred to, and the angle (θ = 90 ° in this case) is obtained from the obtained gradient dx / dy. In the vector-angle converter 4a, the line segment 5 (see FIG.
When the vector information of (see) is input, the angle θ = 0 ° from the reference line of the line segment 5 is obtained in the same manner as above.

【0026】図3は、トレース線の模式図である。図3
(A)は、図2と同様に、線分1〜5が既に入力されて
おり、さらに新たに線分6が入力されたときの状態を示
す模式図であり、上述したように、演算制御部4では、
線分6が入力されると、そのベクトル情報(dx,d
y)=(0,4)に基づいて角度θが求められる。
FIG. 3 is a schematic diagram of trace lines. FIG.
(A) is a schematic diagram showing a state when line segments 1 to 5 have already been input and a new line segment 6 has been input, as in FIG. In Part 4,
When the line segment 6 is input, its vector information (dx, d
The angle θ is calculated based on y) = (0,4).

【0027】演算制御部4では、直前に入力された線分
5と今回入力された線分6の角度が180°であるか否
か、すなわち、図3(B)に示すように、今回入力され
た線分6が直前に入力された線分5を逆方向にトレース
した線分であるか否かが判定される。図3(A)に示す
例では、今回入力された線分6は線分5に重なった線分
ではないと判定されるが、仮に、図3(B)に示すよう
に、線分6が線分5に重なった線分であった場合、その
情報がライン表示消去制御部3に入力され、そのライン
表示消去判定部3aで線分5を消去すべき旨判定され、
表示ライン管理メモリ2の線分5に対応するベクトル情
報(ex,ey)=(6,0)、およびラインパターン
開始情報‘7’が消去され、また表示最終ライン情報
が、ライン番号=4、線分4の終点座標(Px ,Py
=(246,200)に書き換えられる。またこれとと
もに、線画メモリ5に記憶されているトレース線の情報
のうち線分5の情報が消去され、これに伴ってCRTデ
ィスプレイ7に表示されていた線分5が消去される。さ
らに、演算制御部4では、線分5が消去されたことに伴
い、トレース線全体の始点と終点を結んだ領域の面積が
変更され、新たな面積を表わす文字情報が文字メモリ6
に格納され、CRTディスプレイ7の面積表示が変更さ
れる。
In the arithmetic control unit 4, whether or not the angle between the line segment 5 input immediately before and the line segment 6 input this time is 180 °, that is, as shown in FIG. It is determined whether the created line segment 6 is a line segment traced in the reverse direction of the line segment 5 input immediately before. In the example shown in FIG. 3A, it is determined that the line segment 6 input this time is not a line segment that overlaps the line segment 5. However, as shown in FIG. If the line segment overlaps the line segment 5, the information is input to the line display erasure control unit 3, and the line display erasure determination unit 3a determines that the line segment 5 should be erased.
The vector information (ex, ey) = (6, 0) corresponding to the line segment 5 of the display line management memory 2 and the line pattern start information '7' are erased, and the display last line information is the line number = 4, End point coordinates of line segment 4 ( Px , Py )
= (246,200). At the same time, the information of the line segment 5 among the information of the trace lines stored in the line drawing memory 5 is erased, and the line segment 5 displayed on the CRT display 7 is erased accordingly. Further, in the arithmetic control unit 4, the area of the region connecting the start point and the end point of the entire trace line is changed in accordance with the deletion of the line segment 5, and the character information representing the new area is stored in the character memory 6.
And the area display of the CRT display 7 is changed.

【0028】但し、ここでは、図3(A)に示すよう
に、今回入力された線分6が、前回入力された線分5と
は重ならないものとし、その場合、演算制御部4では、
以下に説明するようにして、線分5よりも前に入力され
た線分1,2,3,4それぞれについて、線分6と各線
分1,2,3,4が交差しているか否かが判定される。
この交差の判定基準は以下のとおりである。
However, here, as shown in FIG. 3A, it is assumed that the line segment 6 input this time does not overlap with the line segment 5 input last time. In that case, in the arithmetic control unit 4,
As described below, for each of the line segments 1, 2, 3, 4 input before the line segment 5, whether or not the line segment 6 intersects each line segment 1, 2, 3, 4 Is determined.
The criteria for this intersection are as follows.

【0029】(a)線分6の始点および終点のうちのい
ずれか一方の点と、ある1本の線分A(線分4,3,
2,1の何れか1本)の始点および終点のうちのいずれ
か一方の点が互いに一致するか否かを調べ、一致すると
判定された場合は、線分6と線分Aが交差していると判
定する。それらの点が何れも一致していないと判定され
た場合は、さらに、(b)線分6の始点からその線分6
の終点に向かう基準線と、線分6の始点と線分Aの始点
および終点それぞれとを結ぶ2本の各線分との成す各角
度をそれぞれα,βとしたとき、 α・β≦0、かつ、|α−β|≦180° ……(1) 但し、−180°<α≦180°,−180°<β≦1
80°である。 の条件を満足するか否かを判定するとともに、(c)線
分6の終点からその線分6の始点に向かう基準線と、線
分6の終点と線分Aの始点および終点それぞれを結ぶ2
本の各線分との成す、符号を含む各角度をそれぞれ
α’,β’としたとき、 α’・β’≦0、かつ、|α’−β’|≦180° ……(2) 但し、−180°<α’≦180°,−180°<β’
≦180°である。 の条件を満足するか否かを判定し、上記(1)式,
(2)式の双方を満足する場合に、線分6が線分Aと交
差していると判定する。
(A) Any one of the start point and the end point of the line segment 6 and a certain line segment A (line segments 4, 3, 3)
It is checked whether or not any one of the start point and the end point of (2, 1) is coincident with each other, and when it is determined that they coincide with each other, the line segment 6 and the line segment A cross each other. Determine that When it is determined that none of these points match each other, (b) the line segment 6 from the start point of the line segment 6 is further added.
Let α and β be the angles formed by the reference line toward the end point of and the two line segments that connect the start point of line segment 6 and the start point and end point of line segment A, respectively. And | α-β | ≦ 180 ° (1) where −180 ° <α ≦ 180 °, −180 ° <β ≦ 1
It is 80 °. (C) A reference line extending from the end point of the line segment 6 to the start point of the line segment 6 and the end point of the line segment 6 and the start point and end point of the line segment A are connected to each other. Two
Let α ′ and β ′ be the angles formed by the line segments of the book, including the sign, respectively, α ′ · β ′ ≦ 0 and | α′−β ′ | ≦ 180 ° (2) , -180 ° <α '≤ 180 °, -180 ° <β'
≦ 180 °. It is determined whether or not the condition of is satisfied, and the above equation (1),
If both of the expressions (2) are satisfied, it is determined that the line segment 6 intersects with the line segment A.

【0030】図3(C)〜(F)に示す例では、図3
(C),(D)のみがこの条件を満足し、線分6と線分
Aとが交差していると判定される。図3(A)に示す各
線分1,2,3,4のうちこの条件を満足する線分(即
ち線分6と交差している線分)は線分1である。尚、本
実施例では、各角度α,β;α’,β’は、それぞれ、 −180°<α≦180°,−180°<β≦180° −180°<α’≦180°,−180°<β’≦18
0° であるとしたが、これらに代えて、 −180°≦α<180°,−180°≦β<180° −180°≦α’<180°,−180°≦β’<18
0° であってもよい。
In the example shown in FIGS. 3C to 3F, FIG.
Only (C) and (D) satisfy this condition, and it is determined that the line segment 6 and the line segment A intersect. Of the line segments 1, 2, 3, and 4 shown in FIG. 3A, the line segment that satisfies this condition (that is, the line segment that intersects the line segment 6) is the line segment 1. In this embodiment, the angles α, β; α ′, β ′ are −180 ° <α ≦ 180 °, −180 ° <β ≦ 180 ° −180 ° <α ′ ≦ 180 °, −, respectively. 180 ° <β '≤ 18
Although it is assumed that it is 0 °, instead of these, −180 ° ≦ α <180 °, −180 ° ≦ β <180 ° −180 ° ≦ α ′ <180 °, −180 ° ≦ β ′ <18
It may be 0 °.

【0031】演算制御部4では上記のような交差判定が
行われ、ここに示す例では、線分1が今回入力された線
分6と交差している旨、ライン表示消去制御部3に通知
される。すると、ライン表示消去判定部3aでは、その
交差した線分(ここに示す例の場合、線分1)を含め、
それ以降に入力された全ての線分が消去すべき線分であ
ると判定され、ライン表示消去制御部3では、表示ライ
ン管理メモリ2の内容の変更、および線画メモリ5に記
憶されたトレース線のうち、交差した線分を含めそれ以
降に入力された線分の消去処理が行われる。
The arithmetic control unit 4 performs the above-described intersection determination, and in the example shown here, notifies the line display erasure control unit 3 that the line segment 1 intersects the line segment 6 input this time. To be done. Then, the line display deletion determination unit 3a includes the intersecting line segment (line segment 1 in the example shown here),
It is determined that all the line segments input thereafter are lines to be erased, and the line display erase control unit 3 changes the contents of the display line management memory 2 and trace lines stored in the line drawing memory 5. Among these, the erasing process of the line segment including the intersecting line segment and the lines input thereafter is performed.

【0032】ここに示す例では、新たに入力された線分
6は、最初に入力された線分1と交差しているため、そ
れまで入力されたトレース線全てが消去されるが、トレ
ース線の途中の線分と交差した場合は、その交差した途
中の線分を含むその線分以降に入力された線分が消去さ
れることになる。次にトラックボール1からさらに新た
な線分が入力されると、その入力された線分は、消去さ
れずに残ったトレース線の最終の線分に続く線分として
処理される。尚、上記の例では、トレース線全てが消去
されたため、新たに入力された線分はトレース線の最初
の線分となる。
In the example shown here, since the newly input line segment 6 intersects with the first input line segment 1, all the trace lines input so far are erased, but the trace line When the line segment intersects with the line segment in the middle of, the line segment input after the line segment including the line segment in the middle of the intersection is deleted. Next, when a new line segment is input from the trackball 1, the input line segment is processed as a line segment subsequent to the final line segment of the trace lines remaining without being erased. In the above example, since all the trace lines have been erased, the newly input line segment becomes the first line segment of the trace lines.

【0033】図4は、交差判定の手順を示すフローチャ
ートである。先ず、上述したように、線分6と直前の線
分5とが重なっているか否かが判定される(ステップ4
_1)。ここでは線分5とは重ならないものとしている
が、仮に重なっているとした場合、ステップ4_4に進
み、交差線分(ここでは線分5;重なりも交差と見な
す)の直前までの線分1〜4を除き、他(ここでは線分
5)を消去する。
FIG. 4 is a flow chart showing the procedure of intersection determination. First, as described above, it is determined whether or not the line segment 6 and the immediately preceding line segment 5 overlap (step 4).
_1). Here, it is assumed that the line segment 5 does not overlap, but if it does, it proceeds to step 4_4 and the line segment 1 immediately before the intersection line segment (here, line segment 5; overlap is also considered to be an intersection). Others (here, the line segment 5) are deleted except for 4 to 4.

【0034】ステップ(4_1)で線分6と線分5が重
なっていないと判定されると、ステップ4_2に進み、
線分6と、さらに1つ前の線分(ここでは線分4)とが
交差するか否かを判定するための上記(a)〜(c)の
交差判定演算が行なわれ、ステップ4_3で交差してい
ると判断されるとステップ4_4に進む。一方交差して
いないと判定されると、ステップ4_2に戻り、線分6
と、さらに1つ前の線分(ここでは線分3)との交差判
定演算が行なわれる。
When it is determined in step (4_1) that the line segment 6 and the line segment 5 do not overlap, the process proceeds to step 4_2.
The intersection determination operations (a) to (c) described above are performed to determine whether the line segment 6 and the line segment immediately preceding it (here, the line segment 4) intersect, and in step 4_3. If it is determined that they intersect, the process proceeds to step 4_4. On the other hand, if it is determined that they do not intersect, the process returns to step 4_2 and the line segment 6
And an intersection determination calculation with the immediately preceding line segment (line segment 3 in this case) are performed.

【0035】このようにして、本実施例では、後から入
力された線分から、先に入力された線分へと、順次遡る
順序で交差判定が行なわれる。図5は、図1に示す演算
制御部4における、交差判定の他の手法を説明するため
の、トレース線の模式図である。ここでは線分1〜5が
入力され、さらに新たな線分6が入力された時点に戻っ
て説明する。
In this way, in the present embodiment, the intersection determination is performed in the order of going back from the line segment input later to the line segment input earlier. FIG. 5 is a schematic diagram of trace lines for explaining another method of intersection determination in the arithmetic control unit 4 shown in FIG. Here, description will be given by returning to the time point when line segments 1 to 5 are input and a new line segment 6 is input.

【0036】線分6が入力されると、演算制御部4で
は、図5(A)に示すように、その線分6の始点と、線
分6と交差しているか否かの判定対象とされる各線分
1,2,3,4のうちの1本(ここでは線分4)の始点
および終点それぞれとを結んだ2本の線分と、線分6の
始点からその終点に向かう基準線との間の角度α,βが
求められ、上記(1)式を満足するか否かが判定され
る。図5(A)に示す線分4に関してはα・β>0であ
って(1)式を満足せず、したがって線分4については
それ以上の演算を行わずに、今度は、図5(B)に示す
ように、線分3について同様の判定を行う。
When the line segment 6 is input, the arithmetic control unit 4 determines, as shown in FIG. 5A, the starting point of the line segment 6 and a determination target whether or not the line segment 6 intersects. Two line segments that connect the start point and the end point of each of the line segments 1, 2, 3, and 4 (here, the line segment 4) and a reference from the start point of the line segment 6 to the end point The angles α and β with the line are obtained, and it is determined whether or not the above expression (1) is satisfied. For the line segment 4 shown in FIG. 5 (A), α.beta.> 0 is not satisfied and therefore the formula (1) is not satisfied. Therefore, no further calculation is performed for the line segment 4, and this time, FIG. As shown in B), the same determination is made for the line segment 3.

【0037】線分3に関しては、上記(1)式を満足す
るため、この線分3に関し、図5(C)に示すように、
線分6の終点と、線分3の始点および終点それぞれを結
んだ2本の線分と、線分6の終点からその始点に向かう
基準線との角度α’,β’が求められ、上記(2)式を
満足するか否かが判定される。ここでは|α’−β’|
が180°を越えているため、線分3は線分1とは交差
していないと判定される。
Since the line segment 3 satisfies the above equation (1), as shown in FIG.
The angles α ′ and β ′ between the end point of the line segment 6 and the two line segments connecting the start point and the end point of the line segment 3 and the reference line extending from the end point of the line segment 6 to the start point are obtained, and It is determined whether or not the expression (2) is satisfied. Here | α'-β '|
Is greater than 180 °, it is determined that line segment 3 does not intersect line segment 1.

【0038】次いで、図5(D)に示すように、線分2
について上記(1)式の判定が行われ、線分2に関して
はα・β>0であるため上記(1)式を満足せず、した
がって、次に、図5(E)に示すように、線分1につい
て上記(1)式の判定が行われる。線分1については上
記(1)式を満足するため、線分1について、図5
(F)に示すように、図5(C)の場合と同様にして上
記(2)式を満足するか否かが判定される。ここでは、
線分1に関しては上記(2)式も満足することから、線
分1が線分6と交差している旨判定される。
Then, as shown in FIG.
For the line segment 2, since α · β> 0 is satisfied, the above equation (1) is not satisfied. Therefore, as shown in FIG. The determination of the above equation (1) is performed for the line segment 1. Since the line segment 1 satisfies the above equation (1), the line segment 1 shown in FIG.
As shown in (F), it is determined whether or not the above expression (2) is satisfied in the same manner as in the case of FIG. 5C. here,
Since the equation (2) is also satisfied for the line segment 1, it is determined that the line segment 1 intersects with the line segment 6.

【0039】図6は、上述した、(1)式の判定のみを
先に行なう場合の交差判定の手順を示すフローチャート
である。ステップ6_1,ステップ6_6は、前述した
図4のステップ4_1,4_4と同一であるため、ここ
では説明は省略する。ステップ6_2では、さらに1つ
前の線分(ここでは線分4)について、上記(1)式の
判定演算を行ない、その線分(ここでは線分4)が交差
判定候補であるか否か、即ち、その線分が線分6と交差
している可能性があるか否かが判定される(ステップ6
_3)。交差判定候補ではないと判定されると、ステッ
プ6_2に戻り、さらに1つ前の線分(ここでは線分
3)について、上記(1)式の判定演算が行なわれる。
線分3は、上記(1)式を満足するため、ステップ6_
3では、その線分が交差判定候補であると判定され、ス
テップ6_4に進む。ステップ6_4では、上記(2)
式の判定演算を行ない、ステップ6_5では、その線分
(ここでは線分3)が線分6と交差しているか否か、即
ち上記(2)式を満足するか否かが判定される。交差し
ていないと判定されるとステップ6_2に戻り、交差し
ていると判定されるとステップ6_6に進む。
FIG. 6 is a flow chart showing the procedure of the intersection determination in the case where only the determination of the above equation (1) is performed first. Since Steps 6_1 and 6_6 are the same as Steps 4_1 and 4_4 of FIG. 4 described above, description thereof will be omitted here. In step 6_2, the determination calculation of the above equation (1) is performed for the line segment immediately before (line segment 4 here), and whether or not the line segment (line segment 4 here) is an intersection determination candidate That is, it is determined whether or not the line segment may intersect with the line segment 6 (step 6).
_3). If it is determined that the candidate is not an intersection determination candidate, the process returns to step 6_2, and the determination calculation of the above formula (1) is performed for the line segment immediately before (line segment 3 here).
Since the line segment 3 satisfies the above expression (1), step 6_
In 3, it is determined that the line segment is an intersection determination candidate, and the process proceeds to step 6_4. In step 6_4, the above (2)
Expression determination is performed, and in step 6_5, it is determined whether the line segment (here, line segment 3) intersects the line segment 6, that is, whether or not the above equation (2) is satisfied. When it is determined that they do not intersect, the process returns to step 6_2, and when it is determined that they intersect, the process proceeds to step 6_6.

【0040】図6に示すフローに従って交差判定を行な
うと、線分4,3,2,1のそれぞれについて上記
(1)式,(2)式双方を満足するか否かを判定する前
述の判定手法よりも演算時間がさらに短縮される。図1
に戻って説明を続行する。トラックボール1が操作さ
れ、以上のようにして線分の重なりや交差が判定され、
重なりや交差があったときには線分の消去が行われなが
ら全体としてはトレース線が順次延長され、トレース線
による閉ループが形成されると、演算制御部4では、そ
れまで逐次演算された、トレース線と、トレース線の始
点と終点とを結んだ線分とで形成される閉ループ内の領
域の面積が、トレース線のみによる閉ループ内の面積と
して確定し、その閉ループ内の面積がCRTディスプレ
イ7に表示される。
When the intersection determination is performed according to the flow shown in FIG. 6, it is determined whether or not each of the line segments 4, 3, 2 and 1 satisfies both the above equations (1) and (2). The calculation time is further shortened as compared with the method. FIG.
Return to to continue the explanation. The trackball 1 is operated, and the overlap and intersection of line segments are determined as described above.
When there is an overlap or an intersection, the line segments are erased while the trace lines are sequentially extended as a whole, and when a closed loop is formed by the trace lines, the arithmetic control unit 4 sequentially calculates the trace lines until then. And the area of the area in the closed loop formed by the line segment connecting the start point and the end point of the trace line is determined as the area in the closed loop only by the trace line, and the area in the closed loop is displayed on the CRT display 7. To be done.

【0041】また、トレース線による閉ループが形成さ
れた後かそれ以前であるかを問わず、トラックボール1
からの線分の入力が中断すると、演算制御部4ではタイ
マが起動される。このタイマはタイムアップ前に再度ト
ラックホール1からの線分の入力が再開されるとリセッ
トされる。このリセットが行われないままタイムアップ
すると、その旨ライン表示消去制御部3に通知され、ラ
イン表示消去制御部3では、その通知を受けて、表示ラ
イン管理メモリ2に格納されたトレース線の情報に従っ
て、そのトレース線全体を再度線画メモリ5に書き込
む。これにより、図8を参照して説明したようなトレー
ス線の表示の部分的な抜けがあった場合であっても、そ
の部分的な抜けが補修されたきれいなトレース線がCR
Tディスプレイ7に表示される。
Whether the trackball 1 is formed or not before or after the closed loop formed by the trace line is formed.
When the input of the line segment from is interrupted, the arithmetic control unit 4 starts a timer. This timer is reset when the input of the line segment from the trackhole 1 is restarted before the time is up. If the time is up without this reset being performed, the line display erasing control unit 3 is notified of that fact, and the line display erasing control unit 3 receives the notification, and the trace line information stored in the display line management memory 2 is notified. Then, the entire trace line is written again in the line drawing memory 5. As a result, even if there is a partial omission of the trace line display as described with reference to FIG. 8, a clean trace line in which the partial omission has been repaired is CR.
It is displayed on the T display 7.

【0042】[0042]

【発明の効果】以上説明したように、本発明のトレーサ
によれば、上記第1の判定手段および第2の判定手段を
備えたため、従来よりも高精度に所望の領域のみを囲う
ようにトレースすることができる。また本発明のトレー
サにおいて、先ず、上記(1)式の条件を満足する否か
の判定を行ない、上記(1)式の条件を満足する場合の
み、上記(2)式の条件を満足するか否かの判定を行な
うように構成すると、第2の判定手段による判定結果を
得るまでの演算時間が一層短縮される。さらに、本発明
のトレーサにおいて、上述のメモリ書換え手段を備え、
トレース線の、操作者が操作を誤って後戻りしたり交差
したりした無効の部分を消去することにより、操作者が
意図した有効なトレース線のみが表示され、見易い画面
が提供される。
As described above, according to the tracer of the present invention, since the tracer of the present invention is provided with the first determining means and the second determining means, it is possible to trace the desired area with higher accuracy than the conventional one. can do. In the tracer of the present invention, first, it is determined whether or not the condition of the above formula (1) is satisfied, and only when the condition of the above formula (1) is satisfied, the condition of the above formula (2) is satisfied. When it is configured to determine whether or not to perform the determination, the calculation time until the determination result by the second determination means is obtained is further shortened. Furthermore, in the tracer of the present invention, the memory rewriting means described above is provided,
By deleting the invalid portion of the trace line where the operator mistakenly goes back or crosses the operation, only the valid trace line intended by the operator is displayed, and an easy-to-see screen is provided.

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

【図1】本発明のトレーサの一実施例の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a tracer of the present invention.

【図2】表示ライン管理メモリに格納される情報の説明
図である。
FIG. 2 is an explanatory diagram of information stored in a display line management memory.

【図3】トレース線の模式図である。FIG. 3 is a schematic diagram of a trace line.

【図4】交差判定の手順を示すフローチャートである。FIG. 4 is a flowchart showing a procedure for intersection determination.

【図5】トレース線の模式図である。FIG. 5 is a schematic diagram of a trace line.

【図6】交差判定の手順を示すフローチャートである。FIG. 6 is a flowchart showing a procedure of intersection determination.

【図7】表示画面上にトレースされた線を示した模式図
である。
FIG. 7 is a schematic diagram showing traced lines on a display screen.

【図8】表示画面上のトレース線の、トレース線どうし
が交差した部分を示す拡大図である。
FIG. 8 is an enlarged view showing a portion of trace lines on a display screen where the trace lines intersect with each other.

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

1 トラックボール 2 表示ライン管理メモリ 3 ライン表示消去制御部 4 演算制御部 5 線画メモリ 6 文字メモリ 7 CRTディスプレイ 1 Trackball 2 Display line management memory 3 Line display erasing control unit 4 Calculation control unit 5 Line drawing memory 6 Character memory 7 CRT display

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 入力操作に応じた複数の線分を順次入力
することにより、これら複数の線分の連続からなる、2
次元画面上の折れ線を指示する操作子と、前記操作子に
より指示された折れ線を記憶するメモリと、前記メモリ
に記憶された折れ線を表示する表示手段とを備えたトレ
ーサにおいて、 前記操作子の操作により新たに入力された第1の線分
が、前記メモリに記憶された折れ線を構成する線分のう
ちの前記第1の線分の入力の直前に入力された第2の線
分と重畳するか否かを判定する第1の判定手段、および
前記メモリに記憶された折れ線を構成する線分のうち前
記第2の線分よりも前に入力された1本もしくは複数本
の第3の線分それぞれについて、前記第1の線分と前記
第3の線分とが交差するか否かを判定する第2の判定手
段を備えたことを特徴とするトレーサ。
1. A plurality of line segments are successively input by sequentially inputting a plurality of line segments according to an input operation.
A tracer including an operator for indicating a polygonal line on a three-dimensional screen, a memory for storing the polygonal line instructed by the operator, and a display means for displaying the polygonal line stored in the memory, wherein an operation of the operator The first line segment newly input by is superposed on the second line segment input immediately before the input of the first line segment among the line segments forming the broken line stored in the memory. First determining means for determining whether or not the one line or one third line input before the second line segment among the line segments forming the broken line stored in the memory A tracer comprising second determination means for determining whether or not the first line segment and the third line segment intersect for each of the minutes.
【請求項2】 前記第1の判定手段が、前記第1の線分
と所定の基準線との成す角と、前記第2の線分と前記基
準線との成す角とを比較することにより、前記第1の線
分が前記第2の線分と重畳するか否かを判定するもので
あることを特徴とする請求項1記載のトレーサ。
2. The first determination means compares the angle formed by the first line segment and a predetermined reference line with the angle formed by the second line segment and the reference line. The tracer according to claim 1, wherein the tracer determines whether or not the first line segment overlaps the second line segment.
【請求項3】 前記第2の判定手段が、 前記第1の線分の始点および終点のうちのいずれか一方
の点と前記第3の線分の始点および終点のうちのいずれ
か一方の点が互いに一致するか否かを判定する第1のサ
ブ判定手段と、 前記第1の線分の始点から該第1の線分の終点に向かう
基準線と、前記第1の線分の始点と前記第3の線分の始
点および終点それぞれとを結ぶ2本の各線分との成す、
符号を含む各角度をそれぞれα,βとしたとき、 α・β≦0、かつ、|α−β|≦180° 但し、α,βは、|α|≦180°,|β|≦180°
であり、かつ、−180°もしくは180°の一方が除
外された範囲内の角度である。の条件を満足するか否か
を判定する第2のサブ判定手段と、 前記第1の線分の終点から該第1の線分の始点に向かう
基準線と、前記第1の線分の終点と前記第3の線分の始
点および終点それぞれとを結ぶ2本の各線分との成す、
符号を含む各角度をそれぞれα’,β’としたとき、 α’・β’≦0、かつ、|α’−β’|≦180° 但し、α’,β’は、|α’|≦180°,|β’|≦
180°であり、かつ、−180°もしくは180°の
一方が除外された範囲内の角度である。の条件を満足す
るか否かを判定する第3のサブ判定手段とを備えたこと
を特徴とする請求項1記載のトレーサ。
3. The second determination means includes one of a start point and an end point of the first line segment and one point of a start point and an end point of the third line segment. A first sub-judgment means for judging whether or not the two coincide with each other, a reference line extending from a start point of the first line segment to an end point of the first line segment, and a start point of the first line segment. Two line segments connecting the start point and the end point of the third line segment,
When each angle including the sign is α and β, α · β ≦ 0 and | α−β | ≦ 180 °, where α and β are | α | ≦ 180 ° and | β | ≦ 180 °
And -180 [deg.] Or 180 [deg.] Is an angle within the excluded range. Second sub-judging means for judging whether or not the above condition is satisfied, a reference line from the end point of the first line segment to the start point of the first line segment, and the end point of the first line segment. And two line segments connecting the start point and the end point of the third line segment,
When each angle including the sign is α ′ and β ′, α ′ · β ′ ≦ 0 and | α′−β ′ | ≦ 180 °, where α ′ and β ′ are | α ′ | ≦ 180 °, | β '| ≦
It is 180 °, and either −180 ° or 180 ° is an angle within the range excluded. The tracer according to claim 1, further comprising a third sub-judging means for judging whether or not the condition of is satisfied.
【請求項4】 前記第2の判定手段が、前記第3の線分
それぞれについて、前記第2のサブ判定手段および前記
第3のサブ判定手段のうちの一方のみを適用することに
より、前記第1の線分と交差しているおそれのある第3
の線分を抽出し、抽出された第3の線分について、前記
第2のサブ判定手段および前記第3のサブ判定手段のう
ち、前記一方とは異なる他方を適用するものであること
を特徴とする請求項3記載のトレーサ。
4. The second determining means applies only one of the second sub-determining means and the third sub-determining means to each of the third line segments, whereby the second Third that may intersect the line segment of 1
Of the second sub-judging means and the third sub-judging means are applied to the extracted third line segment. The tracer according to claim 3.
【請求項5】 前記表示手段に表示された折れ線と、該
折れ線全体の始点と終点とを結ぶ線分とに囲まれた領域
の面積を算出する面積算出手段を備えたことを特徴とす
る請求項1記載のトレーサ。
5. An area calculation means for calculating an area of a region surrounded by the polygonal line displayed on the display means and a line segment connecting the start point and the end point of the entire polygonal line is provided. The tracer according to Item 1.
【請求項6】 前記第1の判定手段により前記第1の線
分と前記第2の線分との重畳が検出された場合に、前記
メモリの内容を、該第2の線分を除く、該第2の線分よ
りも前に入力された線分からなる折れ線に変更し、前記
第2の判定手段により前記第1の線分と交差する前記第
3の線分が検出された場合に、前記メモリの内容を、該
第3の線分を除く、該第3の線分よりも前に入力された
線分からなる折れ線に変更するメモリ書換え手段を備
え、 前記表示手段が、前記メモリ書換え手段により前記メモ
リの内容が書き換えられる際に、書き換え前後の折れ線
どうしの相違に相当する部分の線分の表示を消去するも
のであることを特徴とする請求項1記載のトレーサ。
6. The contents of the memory excluding the second line segment when the first determination unit detects a superposition of the first line segment and the second line segment, When the polygonal line is made up of line segments input before the second line segment, and the third line segment intersecting the first line segment is detected by the second determination means, A memory rewriting unit for changing the contents of the memory to a broken line formed by a line segment input before the third line segment, excluding the third line segment; and the display unit, the memory rewriting unit. 2. The tracer according to claim 1, wherein when the contents of the memory are rewritten, the display of the line segment of the portion corresponding to the difference between the polygonal lines before and after the rewriting is erased.
【請求項7】 前記操作子の操作によりリセットされ
る、前記操作子の操作停止時点からの所定時間を計時す
るタイマを備え、 前記表示手段が、前記タイマのタイムアップを受けて前
記メモリに記憶された折れ線を再表示するものであるこ
とを特徴とする請求項1記載のトレーサ。
7. A timer, which is reset by the operation of the operation element, for measuring a predetermined time from the time when the operation operation of the operation element is stopped, and the display means stores the time in the memory in response to the time-up of the timer. The tracer according to claim 1, wherein the traced line is displayed again.
JP14482994A 1994-06-27 1994-06-27 Tracer Expired - Fee Related JP3255540B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14482994A JP3255540B2 (en) 1994-06-27 1994-06-27 Tracer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14482994A JP3255540B2 (en) 1994-06-27 1994-06-27 Tracer

Publications (2)

Publication Number Publication Date
JPH0816309A true JPH0816309A (en) 1996-01-19
JP3255540B2 JP3255540B2 (en) 2002-02-12

Family

ID=15371419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14482994A Expired - Fee Related JP3255540B2 (en) 1994-06-27 1994-06-27 Tracer

Country Status (1)

Country Link
JP (1) JP3255540B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009175834A (en) * 2008-01-22 2009-08-06 Dainippon Printing Co Ltd Terminal and its program
JP2009175836A (en) * 2008-01-22 2009-08-06 Dainippon Printing Co Ltd Information processing device
JP2009181281A (en) * 2008-01-30 2009-08-13 Dainippon Printing Co Ltd Terminal equipment and its program
JP2009181282A (en) * 2008-01-30 2009-08-13 Dainippon Printing Co Ltd Information processing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009175834A (en) * 2008-01-22 2009-08-06 Dainippon Printing Co Ltd Terminal and its program
JP2009175836A (en) * 2008-01-22 2009-08-06 Dainippon Printing Co Ltd Information processing device
JP2009181281A (en) * 2008-01-30 2009-08-13 Dainippon Printing Co Ltd Terminal equipment and its program
JP2009181282A (en) * 2008-01-30 2009-08-13 Dainippon Printing Co Ltd Information processing device

Also Published As

Publication number Publication date
JP3255540B2 (en) 2002-02-12

Similar Documents

Publication Publication Date Title
JP4070493B2 (en) X-ray diagnostic apparatus and medical image analysis apparatus
KR102269467B1 (en) Measurement point determination in medical diagnostic imaging
EP1207495B1 (en) Three-dimensional image display, display method, program for display
JP4476400B2 (en) Ultrasonic diagnostic equipment
JPH0765154A (en) Device and method for quantitatively analyzing blood vessel image
US20070053555A1 (en) Medical image display method and apparatus
CN109477800A (en) Information processing apparatus, information processing method, and program
US8175364B2 (en) Medical image display device and program that generates marker and changes shape of region of interest to contact marker
US20140369583A1 (en) Ultrasound diagnostic device, ultrasound diagnostic method, and computer-readable medium having recorded program therein
CN111671461B (en) Ultrasonic diagnostic apparatus and display method
EP1934864A1 (en) User interface system and method for creating and managing ultrasound measurment-based calculations in ultrasound imaging systems
US20100067753A1 (en) Method and device for imaging a blood vessel
KR100770248B1 (en) Point input device and method for three-dimensional image, and computer-readable recording medium recording program for realizing the method
CN111142753A (en) Interactive method, information processing method and storage medium
US20060269112A1 (en) Medical report preparing system and ultrasound diagnostic apparatus incorporating the system
JP2005185405A (en) Medical image processor, region-of-interest extraction method and program
JPH0816309A (en) Tracer
CN113516701A (en) Image processing method, image processing device, related equipment and storage medium
JP4648709B2 (en) Medical diagnostic imaging equipment
RU2708317C2 (en) Ultrasound diagnosis of cardiac function by segmentation of a chamber with one degree of freedom
JP4220605B2 (en) Ultrasound diagnostic imaging equipment
JP2000276550A (en) Diagnostic device for medical treatment and method for starting and checking application for medical diagnosis for medical treatment
JP2005169155A (en) Ultrasonic diagnostic equipment
EP4156112A1 (en) Computer-implemented method for performing and displaying at least one measurement using medical imaging, data processing device, computer program and electronically readable storage medium
JP2007151652A (en) System and apparatus for processing medical image

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011113

LAPS Cancellation because of no payment of annual fees