JP2563163B2 - Figure instruction method - Google Patents

Figure instruction method

Info

Publication number
JP2563163B2
JP2563163B2 JP60219733A JP21973385A JP2563163B2 JP 2563163 B2 JP2563163 B2 JP 2563163B2 JP 60219733 A JP60219733 A JP 60219733A JP 21973385 A JP21973385 A JP 21973385A JP 2563163 B2 JP2563163 B2 JP 2563163B2
Authority
JP
Japan
Prior art keywords
coordinate values
image data
input
continuous
coordinate
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.)
Expired - Fee Related
Application number
JP60219733A
Other languages
Japanese (ja)
Other versions
JPS6279572A (en
Inventor
英作 巽
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP60219733A priority Critical patent/JP2563163B2/en
Publication of JPS6279572A publication Critical patent/JPS6279572A/en
Application granted granted Critical
Publication of JP2563163B2 publication Critical patent/JP2563163B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ディスプレーに表示された画像の一部分を
指示する図形指示方法に関する。
TECHNICAL FIELD The present invention relates to a graphic pointing method for pointing a part of an image displayed on a display.

[従来の技術] 従来、ディスプレーに表示された画像の一部を指示す
る手法としては、追跡法と呼ばれる手法がある。この手
法は、図形の所定の点から、その図形を構成するドット
に沿って、図形を追うものである。
[Prior Art] Conventionally, as a method of indicating a part of an image displayed on a display, there is a method called a tracking method. This method follows a figure from a predetermined point of the figure along the dots that make up the figure.

たとえば、第4図(A)に示すような図形に応用した
場合、次のようになる。つまり、楕円11の長方形12とが
点cにおいて交差している図形において、同図に矢印で
示した位置から、ドットに沿って左に図形を追い始め、
2つの線が交差している点cにおいては、どちらに進め
ば良いのか不明である。このときには多くの場合、最も
内側に存在する閉曲面をたどるように図形を追ってい
く。すなわち、第4図(B)に示す図形を追跡し、一部
が欠けた四角形の図形を切り出す結果となる。
For example, when applied to a figure as shown in FIG. 4 (A), it becomes as follows. That is, in the figure in which the rectangle 12 of the ellipse 11 intersects at the point c, the figure starts to follow the dot to the left from the position indicated by the arrow in the figure,
At point c where the two lines intersect, it is unclear which way to proceed. At this time, in many cases, the figure is traced so as to follow the innermost closed curved surface. That is, the figure shown in FIG. 4 (B) is traced, and a rectangular figure with a part cut off is cut out.

ところが、上記動作において、楕円11を指示(切り出
す)したい場合には、当初の目的と異なる結果になって
しまうという問題がある。
However, in the above operation, when it is desired to specify (cut out) the ellipse 11, there is a problem that the result is different from the original purpose.

[発明の目的] 本発明は、上記従来例の問題点に着目してなされたも
ので、所定の画像データのうち、所望の図形を確実に指
示することができる図形指示方法を提供することを目的
とするものである。
[Object of the Invention] The present invention has been made in view of the problems of the above-mentioned conventional example, and provides a figure designating method capable of reliably designating a desired figure among predetermined image data. It is intended.

[発明の実施例] 第1図は、本発明の一実施例を示すブロック図であ
る。
Embodiment of the Invention FIG. 1 is a block diagram showing an embodiment of the present invention.

画像データ入力装置1は、CCD等によって構成され、
原画像を電気信号に変換する装置であり、たとえば、第
2図に示す楕円11、長方形12、三角形13等の画像データ
を入力するものである。
The image data input device 1 is composed of a CCD or the like,
A device for converting an original image into an electric signal, for example, for inputting image data of an ellipse 11, a rectangle 12, a triangle 13, etc. shown in FIG.

座標値入力装置2は、複数の座標値を入力する装置で
あり、マウスまたはライトペン等で構成されている。こ
の座標値入力装置2によって複数の座標値が入力された
状態を、第2図に点線14でプロットしてある。
The coordinate value input device 2 is a device for inputting a plurality of coordinate values, and is composed of a mouse, a light pen, or the like. A state in which a plurality of coordinate values are input by the coordinate value input device 2 is plotted by a dotted line 14 in FIG.

表示装置3は、画像データ入力装置1と座標値入力装
置2とによって入力されたデータを表示するものであ
り、CRT等によって構成されている。
The display device 3 displays the data input by the image data input device 1 and the coordinate value input device 2, and is configured by a CRT or the like.

比較装置4は、座標値入力装置2によって入力された
複数の座標で形成される閉ループのほぼ中心に向かっ
て、上記入力座標値を接近させたときに、その接近させ
ている座標値が入力画像データと一致しているか否かを
検出するものである。保持装置5は、比較装置4によっ
て両データが一致したときにそのデータを保持する装置
である。
When the comparison device 4 brings the input coordinate values closer to the center of a closed loop formed by a plurality of coordinates input by the coordinate value input device 2, the approaching coordinate values are input to the input image. It is to detect whether or not the data matches. The holding device 5 is a device that holds the data when the comparing device 4 matches the two data.

第2図は、上記実施例において、画像データ入力装置
1によって入力されたデータと、座標値入力装置2によ
って入力されたデータとを、表示装置3に表示させた場
合の例を示す図である。
FIG. 2 is a diagram showing an example in which the data input by the image data input device 1 and the data input by the coordinate value input device 2 are displayed on the display device 3 in the above embodiment. .

すなわち、上記実施例は、画像データを表示装置3の
表示画面に表示する段階と、座標値入力装置2から入力
された複数の座標値を記憶手段に記憶する段階と、この
複数の座標値で形成される閉ループによって囲まれる画
像データと、上記複数の座標値とを比較装置4によって
比較し、この比較結果に応じて、上記閉ループによって
囲まれる画像データを、保持装置5によって保持する画
像データ保持段階とを有する図形指示方法である。ま
た、上記画像データ保持段階は、上記複数の座標値で形
成される閉ループのほぼ中心に向けて、上記座標値を接
近させる段階と、上記中心に向けて接近させている座標
値が上記画像データと一致したときに上記座標値を保持
する段階とによって構成されるものである。
That is, in the above embodiment, a step of displaying the image data on the display screen of the display device 3, a step of storing a plurality of coordinate values input from the coordinate value input device 2 in the storage means, and a step of storing the plurality of coordinate values. The image data surrounded by the formed closed loop is compared with the plurality of coordinate values by the comparison device 4, and the image data surrounded by the closed loop is held by the holding device 5 according to the comparison result. And a figure designating method having steps. In the image data holding step, a step of bringing the coordinate values closer to substantially the center of the closed loop formed by the plurality of coordinate values and a step of bringing the coordinate values closer to the center are the image data. And a step of holding the above coordinate values when they match.

次に、上記実施例の動作について説明する。 Next, the operation of the above embodiment will be described.

第3図は、上記実施例の動作を示すフローチャートで
ある。
FIG. 3 is a flow chart showing the operation of the above embodiment.

まず、紙等に書かれた図形画像を、画像入力装置1内
のCCD、A/D変換回路等によって、電気信号に変換する
(S1)。この電気信号は、「1」、「0」で表現され、
これらに基づくドットの集まりとして、表示装置3に表
示される。すなわち、第2図において、楕円11と長方形
12と三角形13とが表示される。
First, a graphic image written on paper or the like is converted into an electric signal by a CCD, an A / D conversion circuit or the like in the image input device 1 (S1). This electric signal is expressed by "1" and "0",
It is displayed on the display device 3 as a collection of dots based on these. That is, in FIG. 2, an ellipse 11 and a rectangle
12 and triangle 13 are displayed.

そして、マウス等の座標値入力装置2によって、複数
の座標値を入力する(S2)。この場合、指示したい図形
(第2図に示す場合は、楕円11)の外側を1周するよう
にマウスを操作する。この場合に、多数の指示座標値が
得られ、これが上記複数の座標値である。
Then, a plurality of coordinate values are input by the coordinate value input device 2 such as a mouse (S2). In this case, the mouse is operated so as to go around the outside of the figure (ellipse 11 in the case of FIG. 2) desired to be indicated. In this case, a large number of designated coordinate values are obtained, which are the plurality of coordinate values.

上記S2によって入力された複数の座標値を基にして、
閉ループが形成され、この閉ループの中心座標値を求め
る(S3)。この中心座標値を求める場合、たとえば、入
力された上記複数の座標値の主走査方向、副走査方向そ
れぞれ、座標の最大値と最小値との和の1/2を計算する
ことによって求めるようにしてもよい。第2図におい
て、上記中心座標値を符号15で示してある。
Based on the multiple coordinate values input by S2 above,
A closed loop is formed, and the central coordinate value of this closed loop is obtained (S3). When the center coordinate value is obtained, for example, it is obtained by calculating 1/2 of the sum of the maximum value and the minimum value of the coordinates in the main scanning direction and the sub scanning direction of the input coordinate values. May be. In FIG. 2, the central coordinate value is indicated by reference numeral 15.

次に、入力された各座標値を、入信座標に次第に接近
させる(S4)。そして、その接近の途中に、接近させて
いる座標値が画像データと一致したか否かを判断する
(S5)。もし、一致していれば、一致した座標値を保持
装置5に保持する。そして、別の座標値を、上記中心座
標値に次第に接近させ、一致した点でそのデータを保持
装置5に保持する。この操作を繰り返して、上記S2で入
力した座標値の総てについて、画像データと一致させ
る。そして、これら一致した座標値同志を連続させる
(S6)。
Next, each input coordinate value is gradually brought closer to the incoming coordinate (S4). Then, during the approach, it is determined whether or not the approaching coordinate value matches the image data (S5). If they match, the held coordinate values are held in the holding device 5. Then, another coordinate value is gradually brought closer to the central coordinate value, and the data is held in the holding device 5 at the coincident point. By repeating this operation, all the coordinate values input in S2 are matched with the image data. Then, these coincident coordinate values are made continuous (S6).

なお、上記のようにマウスによって、対象図形(切り
出そうとする図形)の外側を1周するように複数の座標
値を入力するので、複数の座標値同志が連続しており、
この場合には、座標値同志を連続させる動作を必要とし
ない。しかし、後述のように非対象図形(切り出そうと
する図形以外の図形)をも複数の座標値で囲む場合があ
り、この場合には、座標値同志を連続させる動作を必要
とする。また、マウスによって複数の座標値を入力した
場合でも、その複数の座標値が互いに連続しないことも
想定されるが、これによって保持された指示座標の値も
連続しないことになり、この場合には、この種の装置に
おいては、入力座標間を直線的に接続する手法が通常採
用されており、この手法によって指示座標列とする。
As described above, since a plurality of coordinate values are entered with the mouse so as to make one round around the outside of the target figure (the figure to be cut out), a plurality of coordinate value comrades are continuous,
In this case, there is no need to perform an operation of making the coordinate values continuous. However, as will be described later, a non-target figure (a figure other than the figure to be cut out) may be surrounded by a plurality of coordinate values, and in this case, it is necessary to make the coordinate values be continuous. Moreover, even if a plurality of coordinate values are input with the mouse, it is assumed that the plurality of coordinate values are not continuous with each other, but the value of the designated coordinate held by this is also not continuous. In this case, In this type of device, a method of linearly connecting input coordinates is usually adopted, and a designated coordinate sequence is formed by this method.

そして、このようにして指示された画像データを取り
出す(S7)。
Then, the image data instructed in this way is taken out (S7).

なお、入力された座標値を中心座標値に接近させる途
中で、画像データ(画像の黒いビット)と一致しなけれ
ば、その接近させている座標値を無効とする。
If the input coordinate value does not match the image data (black bit of the image) while approaching the central coordinate value, the approaching coordinate value is invalidated.

また、座標値同志の連続作業(S6)においては、非対
象図形を切り出さないようにする必要があり、このため
には、次のようにする(なお、非対象図形は対象図形と
は離れているとする)。つまり、複数の座標値をその中
心に向けて接近させる過程で、中心に向けて接近させて
いる座標値が上記非対象図形と点αで一致し、その後、
中心に向けて接近させている座標値が上記対象図形と点
βで一致したとする。この場合、点αと点βとがともに
対象図形の一部であれば、点αと点βとが連続するが、
点αが非対象図形の一部であり、点βが対象図形の一部
であるので、点αと点βとは連続せず、点αの座標(指
示座標)と点βの座標(指示座標)との間が離れ、その
間に白ビット(画像データ以外のデータ)が多くなる。
この場合、点αの座標を無効にし、つまり保持装置5は
点αの座標を保持しない。このようにすれば、非対象図
形を切り出すことがなく、対象図形のみを確実に切り出
すことができる。
In the continuous work of coordinate values (S6), it is necessary not to cut out the non-target figure. To do this, do the following (note that the non-target figure is separated from the target figure). Suppose). That is, in the process of approaching a plurality of coordinate values toward the center, the coordinate values approaching toward the center coincide with the non-target figure at the point α, and then
It is assumed that the coordinate values approaching toward the center coincide with the target figure at the point β. In this case, if both the points α and β are part of the target figure, the points α and β are continuous,
Since the point α is a part of the non-target figure and the point β is a part of the target figure, the point α and the point β are not continuous, and the coordinates of the point α (instruction coordinates) and the coordinates of the point β (indication are (Coordinates), and white bits (data other than image data) increase in the meantime.
In this case, the coordinates of the point α are invalidated, that is, the holding device 5 does not hold the coordinates of the point α. By doing so, it is possible to reliably cut out only the target graphic without cutting out the non-target graphic.

上記のようにして一致した座標値の連続した形状は、
当初指示しようとした画像データと同じものになる。
The continuous shape of the coordinate values that match as above is
The image data will be the same as the image data that was originally requested.

つまり、操作者の意図に沿った図形を確実に指示(認
識)することができる。また、従来例に示した追跡法と
比べて、図形の認識速度が早い。さらに、上記実施例
は、複雑な画像データからなる図形であっても、確実に
所望形状を指示(認識)することができる。
That is, it is possible to reliably instruct (recognize) a graphic that is in line with the operator's intention. In addition, the recognition speed of the figure is faster than the tracking method shown in the conventional example. Furthermore, in the above embodiment, even if the figure is composed of complicated image data, the desired shape can be surely designated (recognized).

なお、第2図に示した図形は一例であり、これ以外の
図形について図形指示を行なうことができることは勿論
のことである。
The figure shown in FIG. 2 is an example, and it goes without saying that the figure can be designated for other figures.

[発明の効果] 本発明によれば、所定の画像データのうち、所望の図
形を確実に指示することができる。
[Effects of the Invention] According to the present invention, it is possible to reliably instruct a desired figure in predetermined image data.

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

第1図は、本発明の一実施例を示すブロック図である。 第2図は、上記実施例における動作を説明する表示画面
である。 第3図は、上記実施例の動作を示すフローチャートであ
る。 第4図は、従来例である追跡法の説明図である。 1……画像データ入力装置、 3……表示装置、 4……比較装置。
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a display screen for explaining the operation in the above embodiment. FIG. 3 is a flow chart showing the operation of the above embodiment. FIG. 4 is an explanatory diagram of a tracking method which is a conventional example. 1 ... Image data input device, 3 ... Display device, 4 ... Comparison device.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ドットで形成される画像データを所定の表
示手段の表示画面に表示する段階と; 閉ループを形成する複数の座標値を入力手段から入力す
る入力段階と; 上記入力された複数の座標値を記憶手段に記憶する記憶
段階と; 上記閉ループのほぼ中心に向けて、上記座標値を近接さ
せる近接段階と; 上記中心に向けて近接させている座標値が上記画像デー
タを構成するドットと一致したときに上記座標値を保持
する保持段階と; 上記入力された全ての座標値について、上記近接段階、
上記保持段階を繰り返す繰り返し段階と; 上記中心に向けて接近させている全ての座標値が上記画
像データを構成するドットと一致した後に、上記保持し
た座標値を、指示された画像データとして認識する認識
段階と; 上記認識した画像データを構成する座標値同士を連続さ
せる連続段階と; を有することを特徴とする図形指示方法。
1. A step of displaying image data formed by dots on a display screen of a predetermined display means; an input step of inputting a plurality of coordinate values forming a closed loop from an input means; A storage step of storing the coordinate values in a storage means; a proximity step of bringing the coordinate values close to each other near the center of the closed loop; a dot whose coordinate values are made close to each other to form the image data A holding step of holding the coordinate values when they match with each other; a proximity step of all the input coordinate values,
A repeating step of repeating the holding step; and recognizing the held coordinate value as instructed image data after all the coordinate values approaching toward the center coincide with the dots forming the image data. A graphic designating method, comprising: a recognizing step; and a continuous step in which the coordinate values forming the recognized image data are continuous with each other.
【請求項2】特許請求の範囲第1項において、 上記認識段階は、上記保持した座標値が連続するか否か
を判断する段階と、連続する座標値を、指示された画像
データとして認識する段階とによって構成されるもので
あることを特徴とする図形指示方法。
2. The recognizing step according to claim 1, wherein the step of determining whether the held coordinate values are continuous and the continuous coordinate values are recognized as instructed image data. A graphic designating method comprising:
JP60219733A 1985-10-02 1985-10-02 Figure instruction method Expired - Fee Related JP2563163B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60219733A JP2563163B2 (en) 1985-10-02 1985-10-02 Figure instruction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60219733A JP2563163B2 (en) 1985-10-02 1985-10-02 Figure instruction method

Publications (2)

Publication Number Publication Date
JPS6279572A JPS6279572A (en) 1987-04-11
JP2563163B2 true JP2563163B2 (en) 1996-12-11

Family

ID=16740126

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60219733A Expired - Fee Related JP2563163B2 (en) 1985-10-02 1985-10-02 Figure instruction method

Country Status (1)

Country Link
JP (1) JP2563163B2 (en)

Also Published As

Publication number Publication date
JPS6279572A (en) 1987-04-11

Similar Documents

Publication Publication Date Title
US20030174907A1 (en) Document image processing apparatus for processing line portions manually input to document image, method therefor, and computer readable recording medium recorded with document image processing program therefor
JPH03152670A (en) Graphic processor
JPS61175779A (en) Line following system
JP2563163B2 (en) Figure instruction method
JP2626528B2 (en) Figure recognition device
JPH0981740A (en) Diagram input device
US5168553A (en) Line figure encoder
JPH1049688A (en) Method for partial erasing method and partial detection method for picture data
JPH04112378A (en) Tracking start point input system
JP2954778B2 (en) Method for connecting line figure branch point of image input device
JP2641249B2 (en) Symbol figure arrangement method
JP2933932B2 (en) Character recognition method and apparatus
JPS59140586A (en) Picture processing device
JPH0139153B2 (en)
JPS6379183A (en) Graphic recognizing device
JPH0658689B2 (en) Line figure separation device
JPS62274467A (en) Intellectual conversation processing method
EP0537685A2 (en) Method for processing detection of candidate of branched direction
JP2852044B2 (en) Symbol recognition device
JP3426005B2 (en) Line figure input device
JPS6344278A (en) Semi-automatic drawing input system
JPH02146681A (en) Contour line extracting system
JPH04112379A (en) Image endpoint retracking method
JPH1173515A (en) Drawing input device and picture structure analysis method used in the same
JPS6316791B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees