JPH056418A - Graphic processing device - Google Patents

Graphic processing device

Info

Publication number
JPH056418A
JPH056418A JP15700791A JP15700791A JPH056418A JP H056418 A JPH056418 A JP H056418A JP 15700791 A JP15700791 A JP 15700791A JP 15700791 A JP15700791 A JP 15700791A JP H056418 A JPH056418 A JP H056418A
Authority
JP
Japan
Prior art keywords
point
graph
points
designated
coordinates
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
JP15700791A
Other languages
Japanese (ja)
Inventor
Yoshihisa Kayanaka
良久 茅中
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP15700791A priority Critical patent/JPH056418A/en
Publication of JPH056418A publication Critical patent/JPH056418A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

(57)【要約】 【目的】 グラフ用紙等に描画された関数をイメージス
キャナーで読みとって画面上に表示し、原稿のグラフの
一部に歪みがある時、正しい部分は近傍点処理を行い、
歪みのある部分は近傍点処理を行なわずに歪みを修正し
ながらプロット入力することで、正確な形状のグラフを
描画することができる図形処理装置を提供することを目
的とする。 【構成】 図形処理装置において、イメージスキャナー
8で読み取ったイメージをCRT7の画面上に表示し、
プロットされる可能性のある点の座標をすべて候補点座
標記憶領域3bに記憶し、マウス6によってグラフが通
る点を指定する際に近傍点処理を行うか行なわないかを
任意に選択することによって座標のずれを修正しながら
通過点を指定し、スプラインによって各通過点の間を補
間しグラフを描画することによって正確な形状のグラフ
を容易に描画することができる。
(57) [Abstract] [Purpose] The function drawn on a graph paper is read by an image scanner and displayed on the screen. When there is distortion in a part of the graph of the manuscript, the correct part is processed by neighborhood point processing,
It is an object of the present invention to provide a graphic processing device capable of drawing a graph having an accurate shape by plotting while correcting distortion without performing neighborhood point processing on a distorted portion. [Structure] In the graphic processing device, the image read by the image scanner 8 is displayed on the screen of the CRT 7,
By storing all the coordinates of the points that may be plotted in the candidate point coordinate storage area 3b and arbitrarily selecting whether or not to perform the neighboring point processing when the point through which the graph passes is specified by the mouse 6. It is possible to easily draw a graph having an accurate shape by designating the passing points while correcting the deviation of the coordinates, interpolating between the passing points by the spline, and drawing the graph.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、関数のグラフを描画す
る図形処理装置に関し、更に詳細にはイメージスキャナ
ーから取り込んだ画像を元にして関数のグラフを描画す
る図形処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing apparatus for drawing a function graph, and more particularly to a graphic processing apparatus for drawing a function graph based on an image captured by an image scanner.

【0002】[0002]

【従来の技術】従来、図形処理装置の表示画面上に複雑
な形状のグラフを描画する場合、イメージスキャナーな
どの画像読み取り装置でグラフの原稿のイメージを読み
取り、読み込んだイメージを表示装置の画面上に表示し
て通過点をプロットし、プロットした各通過点の間をス
プラインなどの手法で補間してグラフを描画していた。
2. Description of the Related Art Conventionally, when a graph having a complicated shape is drawn on a display screen of a graphic processing device, an image reading device such as an image scanner reads an image of an original of the graph and the read image is displayed on the screen of the display device. , The passing points are plotted, and the plotted passing points are interpolated by a method such as a spline to draw a graph.

【0003】また、この方法の改良としては下記の方法
がある。通過点をプロット指定する前に読み込んだイメ
ージからグラフの線上の点の座標を計算によって求めて
記憶する。点プロットの際にグラフの線に近い座標、即
ち先に記憶した点の座標の近傍がプロットされたときに
はグラフの線上の点がプロットされたと見なして、プロ
ット指定した点の座標をグラフ上の点の座標に修正する
といういわゆる近傍点処理を行い、プロットの際のずれ
をなくす方法である。
Further, the following method is an improvement of this method. The coordinates of the points on the line of the graph are calculated from the image read before plotting the passing points and stored. When plotting the coordinates near the line of the graph at the time of point plotting, that is, when the neighborhood of the coordinates of the previously stored point is plotted, it is considered that the point on the line of the graph is plotted, and the coordinates of the specified point are plotted on the graph. This is a method of eliminating so-called misalignment during plotting by performing so-called neighboring point processing of correcting the coordinates to.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、読みと
る原稿に手書きのグラフを使用する場合は、初めからグ
ラフの形に多少狂いがあるので、読み取ったイメージを
元にグラフの形状を修正しながら点プロットしたい場合
があり、この場合、後者の方法は使用できず前者の方法
で慎重に点プロットするしか方法はなかった。しかし、
この方法では元の原稿のグラフの正しい形状の部分を点
プロット指定する際にずれがでやすく慎重にプロットす
る必要があった。
However, when a handwritten graph is used for the original document to be read, the shape of the graph is a little distorted from the beginning, so the point plot is performed while correcting the shape of the graph based on the read image. In this case, the latter method could not be used, and the only method was careful point plotting in the former method. But,
With this method, it was necessary to carefully plot the correct shape portion of the original manuscript graph when specifying the point plot.

【0005】また、イメージスキャナーなどの画像読み
取り装置で読み取る原稿のグラフは、グラフの線の色が
薄かったり、かすれていたり、また、原稿が汚れていた
りする場合がある。このためグラフを読み取った結果の
イメージは、グラフが途中で一部分途切れたり、余計な
ゴミがついてしまう。
Further, in a graph of an original read by an image reading apparatus such as an image scanner, the color of the line of the graph may be light, faint, or the original may be dirty. Therefore, in the image obtained as a result of reading the graph, the graph is partially cut off in the middle, or extra dust is attached.

【0006】前者の方法ではプロットした位置が画面上
に表示されているイメージと微妙にずれやすく、その結
果、描画したグラフにプロットした点のずれに起因する
凸凹が発生した。
In the former method, the plotted position is liable to be slightly deviated from the image displayed on the screen, and as a result, irregularities are generated due to the deviation of the plotted points in the drawn graph.

【0007】後者の方法のようにプロット時に近傍点処
理を行ったとしてもグラフの線が途切れている区間では
近傍点処理そのものが無意味になり、ゴミがついている
区間では近傍点処理の結果が必ず正しくグラフ上の座標
になるとは限らず、近傍点処理の結果がグラフ上の点を
指定するまで次候補の点を呼び出さなければならず手間
がかかった。
Even if the neighborhood point processing is performed at the time of plotting as in the latter method, the neighborhood point processing itself becomes meaningless in the section where the line of the graph is broken, and the result of the neighborhood point processing becomes in the section with dust. The coordinates on the graph are not always correct, and it took time and effort to call the next candidate point until the result of the neighborhood point processing specified a point on the graph.

【0008】本発明は、上述した問題点を解決するため
になされたものであり、点プロットの際に近傍点処理を
行なうか行なわないかを必要に応じて任意に切り替える
ことによって、近傍点処理を有効に利用できる区間は近
傍点処理を行なうことによってプロットした座標のずれ
に起因するグラフの凸凹をなくし、近傍点処理を利用で
きない区間は近傍点処理を行なわずに点プロットするこ
とによって、より早くより正確なグラフを描画できる図
形処理装置を提供することを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and it is possible to arbitrarily switch whether or not to perform the neighboring point processing at the time of point plotting, as necessary, thereby performing the neighboring point processing. By eliminating the irregularities of the graph due to the deviation of the plotted coordinates by performing the neighborhood point processing in the section where it can be effectively used, and by plotting the points where the neighborhood point processing cannot be used without performing the neighborhood point processing, An object of the present invention is to provide a graphic processing device capable of drawing a more accurate graph quickly.

【0009】[0009]

【課題を解決するための手段】この目的を達成するため
に本発明の図形処理装置は、画像読み取り装置から読み
込んだイメージを表示装置の画面上に表示するイメージ
表示手段と、前記イメージ表示手段によって表示された
イメージのうちの複数の点の座標を計算し記憶する候補
点座標記憶手段と、画面上の点を指定する点プロット手
段と、前記点プロット手段によって指定された座標が前
記候補点座標記憶手段に記憶されている候補点の内の1
つの候補点の近傍にあるとき、指定された点の座標をそ
の候補点の座標で置き換える指定座標修正手段と、前記
点プロット手段によって画面上の点が指定されたときに
指定座標修正手段を動作させるかさせないかを選択する
切り替え手段と、前記点プロット手段及び前記指定座標
修正手段によって指定された各指定点の間を補間する補
間手段と、前記補間手段によって算出されたグラフの各
通過点の座標よりグラフを描画するグラフ描画手段とを
備えている。
To achieve this object, a graphic processing apparatus of the present invention comprises an image display means for displaying an image read from an image reading device on a screen of a display device, and the image display means. Candidate point coordinate storage means for calculating and storing the coordinates of a plurality of points in the displayed image, point plotting means for designating points on the screen, and coordinates designated by the point plotting means are the candidate point coordinates. 1 of the candidate points stored in the storage means
When a point is near one of the candidate points, a designated coordinate correction means for replacing the coordinate of the designated point with the coordinate of the candidate point, and a designated coordinate correction means when the point on the screen is designated by the point plotting means Switching means for selecting whether to perform or not, interpolation means for interpolating between the designated points designated by the point plotting means and the designated coordinate correcting means, and each passing point of the graph calculated by the interpolating means And a graph drawing means for drawing a graph from the coordinates.

【0010】[0010]

【作用】上記の構成を有する本発明の図形処理装置は、
前記イメージ表示手段が画像読み取り装置で取り込んだ
イメージを表示装置の画面上に表示する。候補点座標記
憶手段は前記イメージ表示手段によって表示されたイメ
ージのうちの複数の点の座標を計算し記憶する。点プロ
ット手段は前記イメージ表示手段によって表示装置の画
面上に表示されたイメージを見ながらグラフが通る点を
指定する。切り替え手段は指定座標修正手段を動作させ
るかさせないかを切り替える。指定座標修正手段は前記
切り替え手段によって指定座標修正手段を動作させる場
合に前記点プロット手段によって指定された点の座標が
前記候補点座標記憶手段に記憶されている候補点の内の
1つの候補点の近傍にあるとき、指定された点の座標を
その候補点の座標で置き換える。補間手段は前記点プロ
ット手段及び指定座標修正手段によって指定された各指
定点の間を補間する。グラフ描画手段は前記補間手段に
よって算出されたグラフの各通過点の座標よりグラフを
描画する。
The graphic processing apparatus of the present invention having the above-mentioned configuration is
The image display means displays the image captured by the image reading device on the screen of the display device. The candidate point coordinate storage means calculates and stores the coordinates of a plurality of points in the image displayed by the image display means. The point plotting means designates a point through which the graph passes while observing the image displayed on the screen of the display device by the image displaying means. The switching means switches whether the designated coordinate correction means is operated or not. The designated coordinate correction means is one of the candidate points stored in the candidate point coordinate storage means when the designated coordinate correction means is operated by the switching means, and the coordinates of the point designated by the point plotting means are one of the candidate points. Replaces the coordinates of the specified point with the coordinates of the candidate point when it is near. The interpolating means interpolates between the designated points designated by the point plotting means and the designated coordinate correcting means. The graph drawing means draws a graph from the coordinates of each passing point of the graph calculated by the interpolation means.

【0011】[0011]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0012】図2は本発明を具体化した一実施例のハー
ドウェア構成を示すブロック図である。
FIG. 2 is a block diagram showing the hardware configuration of an embodiment embodying the present invention.

【0013】同図に示されるように、装置全体を統括制
御する中央処理装置(CPU)1には、所定のプログラ
ムやデータを記憶した読み出し専用記憶装置(ROM)
2、プログラムや各種のデータを一時的に記憶しておく
読み書き可能記憶装置(RAM)3、図形処理装置のプ
ログラムその他を記憶しておく補助記憶装置(ハードデ
ィスク)4、開始キーや「はい」「いいえ」などのキー
を備えるキー入力装置(キーボード)5、画面上の点を
指定するマウス6、グラフを表示する表示装置(CR
T)7、グラフの原稿を読み取るイメージスキャナー8
がそれぞれ接続されている。
As shown in FIG. 1, a central processing unit (CPU) 1 that controls the entire apparatus has a read-only storage device (ROM) that stores predetermined programs and data.
2, a readable / writable storage device (RAM) 3 for temporarily storing programs and various data, an auxiliary storage device (hard disk) 4 for storing programs and the like of the graphic processing device, a start key and "Yes"" A key input device (keyboard) 5 having keys such as "No", a mouse 6 for designating points on the screen, a display device (CR for displaying a graph)
T) 7, image scanner 8 for reading graph originals
Are connected respectively.

【0014】周知のように、CPU1ではROM2ある
いはハードディスク4からRAM3に読み込んだデータ
コードを解読しながら処理を実行するものである。ま
た、RAM3にはプログラム領域3a、候補点座標記憶
領域3b、通過点座標記憶領域3c及び一般的にプログ
ラムの実行にあたって必要なその他の作業領域3d、ス
タック領域3eが設けられており、キーボード5には開
始キー5a、「はい」キー5b、「いいえ」キー5cが
設けられている。
As is well known, the CPU 1 executes the processing while decoding the data code read from the ROM 2 or the hard disk 4 into the RAM 3. Further, the RAM 3 is provided with a program area 3a, a candidate point coordinate storage area 3b, a passing point coordinate storage area 3c, and other work area 3d and a stack area 3e which are generally necessary for executing a program. Is provided with a start key 5a, a "yes" key 5b, and a "no" key 5c.

【0015】次に図3から図7は本実施例の動作を示す
フローチャートであり、以下にこのフローチャートを参
照しながら本実施例装置の動作を系統的に説明する。
Next, FIGS. 3 to 7 are flow charts showing the operation of the present embodiment, and the operation of the apparatus of the present embodiment will be systematically described below with reference to this flow chart.

【0016】ステップ1(以下S1と略す。以下のステ
ップも同様である。)では、オペレーターに対してスキ
ャナーに描画しようとするグラフの元になる原稿をセッ
トして開始キー5aを押すようにCRT7の画面にメッ
セージを表示する(図8参照)。次にキー入力待ちを行
い、開始キー5aが押されるまで待つ(S2、S3:N
O)。開始キー5aが押されると(S3:YES)、C
PU1はイメージスキャナー8に対して原稿を読み取る
ようコマンドを送り(S4)、イメージスキャナー8が
読み取ったイメージデータを受信する(S5)。S6で
CPU1は受信したイメージデータをCRT7の画面左
上隅から仮表示する。なお読み取ったデータは白黒の2
値のデータである。またグラフの原稿は通常白い紙に黒
で書かれていることが多いので黒い部分をデータ1(O
N)、白い部分をデータ0(OFF)と読み込む。
In step 1 (hereinafter abbreviated as S1; the same applies to the following steps), the operator sets the original document of the graph to be drawn on the scanner and presses the start key 5a on the CRT 7. Message is displayed on the screen (see FIG. 8). Next, the system waits for key input and waits until the start key 5a is pressed (S2, S3: N
O). When the start key 5a is pressed (S3: YES), C
The PU 1 sends a command to the image scanner 8 to read a document (S4), and receives the image data read by the image scanner 8 (S5). In S6, the CPU 1 temporarily displays the received image data from the upper left corner of the screen of the CRT 7. The scanned data is black and white 2
Value data. In addition, since the graph original is usually written in black on white paper, the black part is the data 1 (O
N), the white part is read as data 0 (OFF).

【0017】S7でCPU1は表示中のイメージデータ
の表示位置をマウス6で指定するようにメッセージを表
示し、マウス6の左ボタン6aが押されるのを待つ(S
8、S9:NO)。ここでマウス6を動かすとマウス6
の動きに対応したマウスカーソルが画面上を移動する。
適当な位置までマウスカーソルを動かしてマウス6の左
ボタン6aを押すとマウス6から位置確定コードが出力
される。位置確定コードが出力されると(S9:YE
S)、CPU1は以前に表示したイメージデータを消去
し、マウスカーソルの位置を読み取ってその位置からイ
メージデータを再表示する(S10)。
In S7, the CPU 1 displays a message to specify the display position of the image data being displayed with the mouse 6, and waits for the left button 6a of the mouse 6 to be pressed (S7).
8, S9: NO). If you move mouse 6 here, mouse 6
The mouse cursor corresponding to the movement of moves on the screen.
When the mouse cursor is moved to an appropriate position and the left button 6a of the mouse 6 is pressed, the position confirmation code is output from the mouse 6. When the position confirmation code is output (S9: YE
S), the CPU 1 erases the previously displayed image data, reads the position of the mouse cursor, and redisplays the image data from that position (S10).

【0018】S11でCPU1は図9に示すようにイメ
ージデータの表示位置を確定するか、もう一度指定し直
すかの判断を促すメッセージをCRT7の画面下部に表
示する。S12、S13でCPU1は「はい」「いい
え」のいずれかのキー入力待ちを行う。ここで「はい」
「いいえ」以外のキーが押された場合はS12に戻り
(S13:NO)、「はい」「いいえ」のいずれかのキ
ーが押された場合はS14に進む(S13:YES)。
S14でCPU1は入力されたキーが「はい」の場合
(S14:YES)、S15に進み、「いいえ」の場合
はS7に戻り(S14:NO)、再度イメージデータの
表示位置を指定する。
In step S11, the CPU 1 displays a message for prompting the user to decide whether to fix the display position of the image data or to specify it again at the bottom of the screen of the CRT 7, as shown in FIG. In S12 and S13, the CPU 1 waits for a key input of either "Yes" or "No". "Yes" here
If any key other than "No" is pressed, the process returns to S12 (S13: NO), and if any of the "Yes" and "No" keys is pressed, the process proceeds to S14 (S13: YES).
In S14, the CPU 1 proceeds to S15 if the input key is "yes" (S14: YES), returns to S7 if "no" (S14: NO), and again designates the display position of the image data.

【0019】S7からS14まででイメージの表示位置
が決まると、CPU1はS5で受信したイメージデータ
の中のONのドットを適当な間隔、例えば1ドットおき
でピックアップして個数を数えてRAM3内に必要な大
きさの候補点座標記憶領域3bを確保する(S15)。
When the image display position is determined in S7 to S14, the CPU 1 picks up ON dots in the image data received in S5 at an appropriate interval, for example, every other dot, counts the number, and stores it in the RAM3. A candidate point coordinate storage area 3b having a required size is secured (S15).

【0020】S16でCPU1はS5で受信したイメー
ジデータの中のONのドットを適当な間隔でピックアッ
プし、ピックアップしたドットの座標を候補点座標記憶
領域3bに記憶する。
In S16, the CPU 1 picks up ON dots in the image data received in S5 at appropriate intervals, and stores the coordinates of the picked up dots in the candidate point coordinate storage area 3b.

【0021】S17でCPU1はグラフの通過点をマウ
スでプロット入力するようにメッセージを表示する(図
10参照)。S18ではマウスの入力待ちを行う。S1
9でマウスの左ボタン6aが押された場合(S19:Y
ES)はS20に進み、マウスの左ボタン6aが押され
てない場合はS18に戻る。S20でCPU1は入力さ
れたコードが終了コードかどうかを判定する。入力され
たコードが終了コードであった場合(S20:YE
S)、通過点の座標指定を終了しS36に進み、終了コ
ードでなかった場合(S20:NO)はS21に進む。
S21で入力されたコードが位置確定コードであった場
合(S21:YES)、S24に進む。
In S17, the CPU 1 displays a message for plotting the passing points of the graph with the mouse (see FIG. 10). In S18, the mouse input is waited. S1
When the left button 6a of the mouse is pressed in step 9 (S19: Y
ES) proceeds to S20, and if the left mouse button 6a has not been pressed, returns to S18. In S20, the CPU 1 determines whether the input code is the end code. When the entered code is the end code (S20: YE
S), the designation of the coordinates of the passing point is ended, and the process proceeds to S36. If it is not the end code (S20: NO), the process proceeds to S21.
When the code input in S21 is the position confirmation code (S21: YES), the process proceeds to S24.

【0022】入力されたコードが位置確定コードでない
場合(S21:NO)はS22に進む。S22で入力さ
れたコードが近傍点処理切り替えコードであった場合
(S22:YES)はS23に進み、近傍点処理切り替
えコードでなかった場合(S22:NO)はS18へ戻
り、次の入力を待つ(図10参照)。S23ではRAM
3の作業領域3d内に設けられた近傍点処理フラグを反
転する。このフラグは値が0(OFF)もしくは1(O
N)のいずれかの値をとり、値が1(ON)の場合は近
傍点処理を行うことを意味する。
When the input code is not the position confirmation code (S21: NO), the process proceeds to S22. If the code input in S22 is the neighbor point process switching code (S22: YES), the process proceeds to S23. If it is not the neighbor point process switching code (S22: NO), the process returns to S18 and waits for the next input. (See Figure 10). RAM in S23
The neighborhood point processing flag provided in the work area 3d of No. 3 is inverted. The value of this flag is 0 (OFF) or 1 (O
N) takes any of the values, and when the value is 1 (ON), it means that the neighborhood point processing is performed.

【0023】S24でCPU1はRAM3の作業領域3
d内に設けられた近傍点処理フラグを参照して近傍点処
理を行なうかどうかを決める。この近傍点処理フラグが
ONの場合(S24:YES)はS25に分岐し、OF
Fの場合(S24:NO)はS34に分岐する。
At S24, the CPU 1 causes the work area 3 of the RAM 3 to operate.
It is determined whether or not to perform the near point processing by referring to the near point processing flag provided in d. If this neighborhood point processing flag is ON (S24: YES), the process branches to S25, where OF
In the case of F (S24: NO), the process branches to S34.

【0024】S25でCPU1はS16までで記憶した
イメージデータの内のドットがONの点(以下候補点と
呼ぶ)の内の、S17からS24まででプロットした点
の近傍にある候補点を検索する。S26でCPU1はプ
ロットした点の近傍に候補点があるかどうかによって分
岐する。プロットした点の近傍に1点以上候補点がある
場合(S26:YES)はS27へ、ない場合(S2
6:NO)はS34へ分岐する。
In step S25, the CPU 1 searches for candidate points in the vicinity of the points plotted in steps S17 to S24 among the points (hereinafter referred to as candidate points) in which the dots in the image data stored in steps S16 are ON. .. In S26, the CPU 1 branches depending on whether there is a candidate point near the plotted point. If there is at least one candidate point in the vicinity of the plotted points (S26: YES), go to S27, if not (S2
6: NO) branches to S34.

【0025】ここで図11はプロットした点の近傍を拡
大表示した図である。図11において点Aから点Eはプ
ロットした点の近傍にある候補点であり、Fはプロット
した点を示すマウスカーソルである。S27でCPU1
はプロットした点の近傍の候補点の内の最もプロットし
た点に近い候補点(ここでは点C)を×印のマーカーで
表示する。S28でCPU1はプロット入力した点をS
27で×印のマーカーで示した候補点(近傍点)と置換
してよいかどうかをオペレーターに尋ねるメッセージを
表示する(図12参照)。S29でCPU1は「はい」
「いいえ」の入力待ちを行う。
FIG. 11 is an enlarged view of the vicinity of the plotted points. In FIG. 11, points A to E are candidate points near the plotted points, and F is a mouse cursor indicating the plotted points. CPU1 in S27
Displays the candidate point (here, point C) closest to the plotted point among the candidate points in the vicinity of the plotted point with a marker of x. In S28, the CPU 1 sets the plot input point to S
A message asking the operator whether to replace the candidate point (neighboring point) indicated by the mark X in 27 is displayed (see FIG. 12). In S29, CPU1 is "Yes"
Wait for "No" input.

【0026】ここで「はい」はマーカーで示した候補点
の座標をプロットしたようにプロットした点の座標にマ
ーカーで示した候補点の座標を代入する近傍点処理を行
うことを意味し、「いいえ」はマーカーで示した点とは
近傍点処理を行わないことを意味する。S30でCPU
1は「はい」「いいえ」のいずれかの入力があったかど
うか判断し、入力があった場合(S30:YES)はS
31へ、入力がなかった場合(S30:NO)はS29
へ分岐する。S31でCPU1は入力されたコードが
「はい」か「いいえ」かを判断し、「はい」の場合(S
31:YES)はS33へ、「いいえ」の場合(S3
1:NO)はS32へ分岐する。
Here, "Yes" means that the neighboring point processing is performed by substituting the coordinates of the candidate points indicated by the markers into the coordinates of the plotted points as if the coordinates of the candidate points indicated by the markers were plotted. "No" means that the point indicated by the marker is not subjected to neighborhood point processing. CPU at S30
1 judges whether there is any input of "Yes" or "No", and if there is any input (S30: YES), S
If there is no input to S31 (S30: NO), S29
Branch to. In S31, the CPU 1 determines whether the input code is "yes" or "no", and if "yes" (S
31: YES, go to S33, if “No” (S3
1: NO) branches to S32.

【0027】S32でCPU1は現在表示中の候補点
(点C)のマーカーを消去し、近傍点の次候補をマーカ
ーで表示してS29に戻る。なお、近傍点の次候補とは
現在マーカーで表示中の候補点の次にプロット指定した
点に近い候補点である。S33でCPU1はS27で表
示したマーカーを消去する。S34でCPU1はプロッ
ト入力した点または近傍点処理によって修正された点の
座標を通過点座標記憶領域3cに記憶する。S35では
記憶した点を×印のマーカーで表示し、S17に戻る。
In S32, the CPU 1 erases the marker of the currently displayed candidate point (point C), displays the next candidate of the neighboring point with the marker, and returns to S29. The next candidate of the neighboring point is a candidate point that is closest to the point designated by plotting next to the candidate point currently displayed by the marker. In S33, the CPU 1 erases the marker displayed in S27. In S34, the CPU 1 stores the coordinates of the point input by plotting or the point corrected by the neighboring point processing in the passing point coordinate storage area 3c. In S35, the stored points are displayed with a marker of X, and the process returns to S17.

【0028】S36でCPU1はS17からS35まで
で通過点座標記憶領域3cに記憶された通過点の座標デ
ータを元にして、指定された通過点の間をスプラインで
補間し、なめらかな座標点列を得て通過点座標記憶領域
3cに記憶する。S37でCPU1はS33で得られた
座標点列のデータより関数のグラフを描画する(図13
参照)。
In step S36, the CPU 1 interpolates between the designated passing points with a spline based on the passing point coordinate data stored in the passing point coordinate storage area 3c in steps S17 to S35, and a smooth coordinate point string is formed. Is obtained and stored in the passing point coordinate storage area 3c. In S37, the CPU 1 draws a function graph from the data of the coordinate point sequence obtained in S33 (FIG. 13).
reference).

【0029】本発明は以上詳述した実施例に限定される
ものではなく、その趣旨を逸脱しない範囲において種々
の変更を加えることができる。
The present invention is not limited to the embodiments described in detail above, and various modifications can be made without departing from the spirit of the invention.

【0030】本実施例においては点プロット指定を開始
する前に候補点の座標を算出・記憶していたが点プロッ
トされた時に毎回点プロットした座標の周辺、即ち近傍
点処理の対象となる範囲の候補点の座標のみ算出し近傍
点処理を行なってもよい。この場合わずかに処理時間が
増えるが候補点記憶領域に必要なメモリ容量が大幅に削
減される効果がある。
In the present embodiment, the coordinates of the candidate points are calculated and stored before the point plot designation is started, but the periphery of the coordinates plotted every time when the point plot is performed, that is, the range to be subjected to the neighboring point processing. Alternatively, only the coordinates of the candidate points may be calculated and the neighboring point processing may be performed. In this case, the processing time slightly increases, but the memory capacity required for the candidate point storage area is significantly reduced.

【0031】[0031]

【発明の効果】以上説明したことから明かなように、本
発明の図形処理装置は、あらかじめプロットされる可能
性のある候補点の座標を算出、記憶し、元の原稿のグラ
フの形状が正しいと思われる区間については、プロット
入力された点をその点の近傍にある候補点と置換するこ
とによってプロット時に発生するずれをなくし、また、
元の原稿のグラフの形状に歪みがあると思われる区間に
ついては、その点の近傍にある候補点と置換せずグラフ
の形状を意識的に修正しながら点プロットすることによ
り、正確な形状のグラフを描画することができる。
As is apparent from the above description, the graphic processing apparatus of the present invention calculates and stores the coordinates of candidate points that may be plotted in advance, and the shape of the graph of the original document is correct. For the interval that seems to be, replace the points entered in the plot with candidate points in the vicinity of the points to eliminate the deviation that occurs during plotting, and
For the section where the shape of the graph of the original manuscript seems to be distorted, the points are accurately plotted by making a point plot while consciously modifying the shape of the graph without replacing it with candidate points near that point. Graphs can be drawn.

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

【図1】本発明のクレーム対応図である。FIG. 1 is a diagram corresponding to a claim of the present invention.

【図2】図形処理装置のハードウェア構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a hardware configuration of a graphic processing device.

【図3】図形処理装置の動作を示すフローチャートであ
る。
FIG. 3 is a flowchart showing an operation of the graphic processing device.

【図4】図形処理装置の動作を示すフローチャートであ
る。
FIG. 4 is a flowchart showing an operation of the graphic processing device.

【図5】図形処理装置の動作を示すフローチャートであ
る。
FIG. 5 is a flowchart showing an operation of the graphic processing device.

【図6】図形処理装置の動作を示すフローチャートであ
る。
FIG. 6 is a flowchart showing an operation of the graphic processing device.

【図7】図形処理装置の動作を示すフローチャートであ
る。
FIG. 7 is a flowchart showing an operation of the graphic processing device.

【図8】図形処理装置の動作時の画面を示す図である。FIG. 8 is a diagram showing a screen when the graphic processing device is in operation.

【図9】図形処理装置の動作時の画面を示す図である。FIG. 9 is a diagram showing a screen when the graphic processing device is operating.

【図10】図形処理装置の動作時の画面を示す図であ
る。
FIG. 10 is a diagram showing a screen when the graphic processing device is operating.

【図11】近傍点処理を行なうときの画面の拡大図であ
る。
FIG. 11 is an enlarged view of a screen when performing near point processing.

【図12】図形処理装置の動作時の画面を示す図であ
る。
FIG. 12 is a diagram showing a screen when the graphic processing device is operating.

【図13】図形処理装置の動作時の画面を示す図であ
る。
FIG. 13 is a diagram showing a screen when the graphic processing device is operating.

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

1 中央処理装置(CPU)(指定座標修正手段、補
間手段、グラフ描画手段、切り替え手段) 3b 候補点座標記憶領域(候補点座標記憶手段) 6 マウス(点プロット手段) 7 表示装置(CRT)(イメージ表示手段)
1 central processing unit (CPU) (specified coordinate correction means, interpolation means, graph drawing means, switching means) 3b candidate point coordinate storage area (candidate point coordinate storage means) 6 mouse (point plotting means) 7 display device (CRT) ( Image display means)

Claims (1)

【特許請求の範囲】 【請求項1】 画像読み取り装置から読み取ったイメー
ジを表示装置の画面上に表示するイメージ表示手段と、
前記イメージ表示手段によって表示されたイメージの上
の複数の点の座標を計算し記憶する候補点座標記憶手段
と、画面上の点を指定する点プロット手段と、前記点プ
ロット手段によって指定された座標が前記候補点座標記
憶手段に記憶されている候補点の内の1つの候補点の近
傍にあるとき、指定された点の座標をその候補点の座標
で置き換える指定座標修正手段と、前記点プロット手段
によって画面上の点が指定されたときに指定座標修正手
段を動作させるかさせないかを選択する切り替え手段
と、前記点プロット手段及び前記指定座標修正手段によ
って指定された各指定点の間を補間する補間手段と、前
記補間手段によって算出されたグラフの各通過点の座標
よりグラフを描画するグラフ描画手段とを具備したこと
を特徴とする図形処理装置。
Claim: What is claimed is: 1. An image display means for displaying an image read from an image reading device on a screen of a display device,
Candidate point coordinate storage means for calculating and storing the coordinates of a plurality of points on the image displayed by the image display means, point plotting means for designating points on the screen, and coordinates designated by the point plotting means. Is in the vicinity of one of the candidate points stored in the candidate point coordinate storage means, designated coordinate correction means for replacing the coordinate of the designated point with the coordinate of the candidate point, and the point plot Interpolating between the switching means for selecting whether or not to operate the designated coordinate correction means when a point on the screen is designated by the means, and each designated point designated by the point plotting means and the designated coordinate correction means. And a graph drawing unit for drawing a graph from the coordinates of each passing point of the graph calculated by the interpolation unit. Apparatus.
JP15700791A 1991-06-27 1991-06-27 Graphic processing device Pending JPH056418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15700791A JPH056418A (en) 1991-06-27 1991-06-27 Graphic processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15700791A JPH056418A (en) 1991-06-27 1991-06-27 Graphic processing device

Publications (1)

Publication Number Publication Date
JPH056418A true JPH056418A (en) 1993-01-14

Family

ID=15640144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15700791A Pending JPH056418A (en) 1991-06-27 1991-06-27 Graphic processing device

Country Status (1)

Country Link
JP (1) JPH056418A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5469007A (en) * 1993-12-07 1995-11-21 Mitsubishi Jukogyo Kabushiki Kaisha Magnetic bearing arrangement

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5469007A (en) * 1993-12-07 1995-11-21 Mitsubishi Jukogyo Kabushiki Kaisha Magnetic bearing arrangement

Similar Documents

Publication Publication Date Title
EP0736999B1 (en) Method and apparatus for scanning a document
JP3756719B2 (en) Document modification apparatus and image processing apparatus
US5566003A (en) Image processing system in which the transmitter and receiver have different data resolutions and data is transmitted at the receiver resolution
US8494393B2 (en) Information processing apparatus, information processing method and computer readable medium
JPH11272871A (en) Document image processing apparatus, document image processing method, and recording medium
US8649064B2 (en) Printing device capable of printing image of image file
JP2005005768A (en) Image processing apparatus, image processing method, and program
US5361141A (en) Image processor
JPH056418A (en) Graphic processing device
US5454072A (en) Image processing system with editing area correcting function
JP3951492B2 (en) Image processing device
JPH0554147A (en) Graphic processor
JP3441089B2 (en) Image processing device
JP3084177B2 (en) Image data tilt correction device
JP3015066B2 (en) Document processing device
US5388195A (en) Image processing system with editing area correcting function
JPH04361383A (en) Graphic processing device
JPH1040313A (en) Device for preparing format and method for preparing format control program
JPH04321376A (en) Picture processing unit
JPH05108879A (en) Method and device for processing image
JP2980955B2 (en) Image generation device
JP3218678B2 (en) Information selection output device and method
JPH1098609A (en) Image input method and device
JP2578785B2 (en) Screen creation processing method
JPH10143645A (en) Picture reading device and recording medium