JPH10269054A - Graphic discriminating device - Google Patents

Graphic discriminating device

Info

Publication number
JPH10269054A
JPH10269054A JP7758397A JP7758397A JPH10269054A JP H10269054 A JPH10269054 A JP H10269054A JP 7758397 A JP7758397 A JP 7758397A JP 7758397 A JP7758397 A JP 7758397A JP H10269054 A JPH10269054 A JP H10269054A
Authority
JP
Japan
Prior art keywords
image data
graphic
memory
mask image
drawing order
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
JP7758397A
Other languages
Japanese (ja)
Inventor
Shigeki Ishino
茂樹 石野
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP7758397A priority Critical patent/JPH10269054A/en
Publication of JPH10269054A publication Critical patent/JPH10269054A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a graphic discriminating device capable of efficiently indicating and selecting only an intended graphic in the case that displayed plural graphics mutually overlap. SOLUTION: Plural graphic image data and mask image data are held in a memory 15 beforehand. When the graphic is indicated by a mouse 12, a discrimination processing part 17 successively develops the mask image data in a discrimination memory 18 in the inverse order to a plotting order stored in a plotting order storage part 16 and judges that the graphic for which an indicated position corresponds to the mask image data included in an object area is the indicated graphic.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数のイメージデ
ータを順次表示用メモリに描画して、該複数のイメージ
データにそれぞれ対応する複数の図形を前記表示用メモ
リに対応する表示部に表示し、該表示部の所望の位置が
指示された際に該指示位置に対応する図形を識別する図
形識別装置に関し、特に、表示した複数の図形が相互に
重なり合う場合に、意図する図形のみを効率良く指示選
択する図形識別装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for sequentially drawing a plurality of image data in a display memory and displaying a plurality of figures respectively corresponding to the plurality of image data on a display unit corresponding to the display memory. The present invention relates to a graphic identification device that identifies a graphic corresponding to a designated position when a desired position of the display unit is designated, and particularly, when a plurality of displayed graphics overlap with each other, only a desired graphic can be efficiently displayed. The present invention relates to a graphic identification device for selecting an instruction.

【0002】[0002]

【従来の技術】従来、コンピュータ等のディスプレイに
複数の図形を表示しておき、ユーザが所望の図形をポイ
ンティングデバイス等で指示した際に、指示図形に対応
するアプリケーションを実行する技術が知られている。
2. Description of the Related Art Conventionally, there has been known a technique of displaying a plurality of figures on a display of a computer or the like and executing an application corresponding to the designated figure when a user designates a desired figure with a pointing device or the like. I have.

【0003】例えば、特開平3−22014号公報に
は、拡大縮小等の画像処理を施した図形を表示し、その
表示結果に応じてメニュー管理テーブル内のメニューの
各項目の表示位置、形状、項目内容の値を変更し、変更
されたメニュー管理テーブルの内容と、ポインティング
デバイスにより指定された座標値をもとに処理を決定す
るよう構成したメニュー選択方法が開示されている。
[0003] For example, Japanese Patent Application Laid-Open No. Hei 3-22014 displays a graphic subjected to image processing such as enlargement / reduction, and displays the display position, shape, and shape of each item of a menu in a menu management table in accordance with the display result. A menu selection method is disclosed in which a value of an item content is changed and a process is determined based on the content of the changed menu management table and a coordinate value specified by a pointing device.

【0004】ここで、かかる図形の描画には、何らかの
関数を用いて図形に係わるデータを低減する方式(以下
「関数描画方式」と言う。)か、又はあらかじめ用意し
たイメージデータを表示する方式(以下「イメージ描画
方式」と言う。)が用いられる。
Here, in drawing such a figure, a method of reducing data relating to the figure by using some function (hereinafter referred to as a "function drawing method") or a method of displaying previously prepared image data ( Hereinafter, this will be referred to as an “image drawing method”).

【0005】このため、図形が指示されたか否かを判別
する際には、ポインティングデバイスの指示座標が関数
又はイメージ表現された図形領域内であるか否かを調べ
ることになる。
[0005] Therefore, when determining whether or not a figure has been designated, it is checked whether or not the pointing coordinates of the pointing device are within a figure area in which a function or image is represented.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来技術は、描画した複数の図形が相互に重なり合う場合
について考慮したものではないので、かかる図形の重複
を解消するための対策が必要となる。
However, the above-mentioned prior art does not consider the case where a plurality of drawn figures overlap each other, so that a measure for eliminating such overlapping of figures is required.

【0007】具体的には、重複した領域が発生しないよ
うに図形領域を再定義する対策があるが、かかる再定義
を行うためには、いずれかの図形を移動する度に図形領
域に重なりが生じたか否かを判定し、重なりが生じた場
合には図形領域を再定義せねばならない。
Specifically, there is a measure for redefining the graphic area so that an overlapping area does not occur. However, in order to perform such redefinition, every time one of the figures is moved, the graphic area is overlapped. It is determined whether or not the graphic area has occurred, and if an overlap has occurred, the graphic area must be redefined.

【0008】このため、比較的複雑な形状を有する図形
を関数表現するような場合には、かかる図形相互の再定
義に時間を要し、図形識別処理の遅延を招くおそれがあ
る。
For this reason, when a graphic having a relatively complicated shape is expressed as a function, it takes time to redefine the graphics, which may cause a delay in the graphic identification processing.

【0009】また、重複した複数の図形を全て選択する
こととして、かかる図形の重複に対応する対策も考えら
れるが、ユーザが意図しない図形の選択を認めるのは妥
当ではない。
Although a countermeasure to cope with such overlapping of the figures can be considered by selecting all of a plurality of overlapping figures, it is not appropriate to allow the user to select an unintended figure.

【0010】このように、従来の図形識別技術では、複
数の図形が重なう場合の図形の識別を効率良く行うこと
ができないため、かかる場合にいかに効率良く図形の識
別を行うかが重要な課題となっている。
As described above, in the conventional graphic identification technique, it is not possible to efficiently identify a figure when a plurality of figures overlap, and it is important how to efficiently identify the figure in such a case. It has become a challenge.

【0011】そこで、本発明では、上記課題を解決すべ
く、表示した複数の図形が相互に重なり合う場合に、意
図する図形のみを効率良く指示選択することができる図
形識別装置を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the above, an object of the present invention is to provide a graphic identification device capable of efficiently indicating and selecting only an intended graphic when a plurality of displayed graphics overlap each other. And

【0012】[0012]

【課題を解決するための手段】上記目的を達成するた
め、第1の発明は、複数のイメージデータを順次表示用
メモリに描画して、該複数のイメージデータにそれぞれ
対応する複数の図形を前記表示用メモリに対応する表示
部に表示し、該表示部の所望の位置が指示された際に該
指示位置に対応する図形を識別する図形識別装置におい
て、前記複数のイメージデータを前記表示用メモリに描
画する描画順序を記憶する描画順序記憶手段と、前記描
画順序記憶手段に記憶した描画順序の逆順に、前記指示
位置が各イメージデータに含まれるか否かを調べ、該指
示位置が含まれるイメージデータに対応する図形を前記
指示位置に対応する図形として判別する判別手段とを具
備することを特徴とする。
According to a first aspect of the present invention, a plurality of image data are sequentially drawn on a display memory, and a plurality of graphics respectively corresponding to the plurality of image data are drawn. In a graphic identification device for displaying on a display unit corresponding to a display memory and identifying a graphic corresponding to the designated position when a desired position of the display unit is designated, the plurality of image data are stored in the display memory. A drawing order storage unit for storing a drawing order for drawing in the image data, and checking whether or not the designated position is included in each image data in the reverse order of the drawing order stored in the drawing order storage unit. A determination unit configured to determine a graphic corresponding to the image data as a graphic corresponding to the designated position.

【0013】また、第2の発明は、各イメージデータを
その対象物を示す対象領域と背景を示す透過領域とに区
分した複数のマスクイメージを記憶するマスクイメージ
記憶手段と、前記マスクイメージ記憶手段に記憶したマ
スクイメージを展開する判別メモリとをさらに具備し、
前記判別手段は、前記マスクイメージを前記判別メモリ
に展開し、前記指示位置が該マスクイメージの対象領域
であるならば該マスクイメージに対応する図形を前記指
示位置に対応する図形として判別することを特徴とす
る。
According to a second aspect of the present invention, there is provided a mask image storing means for storing a plurality of mask images obtained by dividing each image data into a target area indicating an object and a transparent area indicating a background, and the mask image storing means. And a determination memory for developing the mask image stored in
The determination means expands the mask image in the determination memory, and determines that a graphic corresponding to the mask image is a graphic corresponding to the specified position if the specified position is a target area of the mask image. Features.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。なお、本実施の形態では、
イメージ描画方式を用いて図形を描画する場合を示して
いる。
Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment,
A case where a figure is drawn using the image drawing method is shown.

【0015】図1は、本実施の形態で用いる図形識別装
置の構成を示す機能ブロック図である。
FIG. 1 is a functional block diagram showing the configuration of the graphic identification device used in the present embodiment.

【0016】図1に示す図形識別装置10は、ディスプ
レイ11上に表示した識別対象物の図形(以下「対象図
形」と言う。)をマウス12で指示することにより、指
示した図形の外観イメージをディスプレイ11に表示す
る装置である。
A figure identifying apparatus 10 shown in FIG. 1 designates a figure (hereinafter referred to as an “object figure”) of an identification object displayed on a display 11 with a mouse 12 so that an appearance image of the designated figure is displayed. This is a device for displaying on the display 11.

【0017】具体的には、この図形識別装置10は、あ
らかじめ各対象図形の外観イメージデータ(以下「イメ
ージデータ」と言う。)をメモリ15に保持し、このイ
メージデータをV−RAMに順次重ね書きして、ディス
プレイ11に表示する。なお、ディスプレイ11上にか
かる表示を行う際の各対象図形のイメージデータの描画
順序は、描画順序記憶部16に記憶される。
More specifically, the figure identifying apparatus 10 previously stores appearance image data (hereinafter referred to as "image data") of each target figure in a memory 15 and sequentially superimposes the image data on a V-RAM. Write it and display it on the display 11. Note that the drawing order of the image data of each target graphic when the display is performed on the display 11 is stored in the drawing order storage unit 16.

【0018】また、この図形識別装置10は、上記イメ
ージデータの他に、該イメージデータを対象物の領域
(以下「対象領域」と言う。)と背景の領域(以下「透
過領域」と言う。)とに分離して2値化したマスクイメ
ージデータをメモリ15に保持している。なお、マスク
イメージデータの対象領域には画素値’1’を付与し、
透過領域には画素値’0’を付与することとする。
Further, in addition to the above-mentioned image data, the figure identifying apparatus 10 uses the image data as an object area (hereinafter, referred to as “target area”) and a background area (hereinafter, referred to as “transparent area”). ) Are stored in the memory 15. Note that a pixel value “1” is assigned to the target area of the mask image data,
A pixel value '0' is assigned to the transmissive area.

【0019】ここで、マウス12により指示された対象
図形を判別する際には、描画順序記憶部16に記憶した
最後に描画したマスクイメージデータを判別メモリ18
に展開し、マウス12の指示座標が対象領域内であるか
否かを調べる。
Here, when the target graphic pointed by the mouse 12 is determined, the last drawn mask image data stored in the drawing order storage section 16 is determined.
Then, it is checked whether or not the designated coordinates of the mouse 12 are within the target area.

【0020】そして、この指示座標が対象領域内であれ
ば、該マスクイメージデータに対応する対象図形がマウ
ス12で指示されたものと判断して、該対象図形のイメ
ージデータをディスプレイ11に表示する。
If the designated coordinates are within the target area, it is determined that the target graphic corresponding to the mask image data is specified by the mouse 12, and the image data of the target graphic is displayed on the display 11. .

【0021】これに対して、この指示座標が対象領域内
でなければ、描画順序記憶部16に記憶した描画順序を
逆に辿り、同様の処理を対象図形が特定されるまで繰り
返し、マウス12の指示座標がいずれの対象図形に含ま
れるかを判断する。
On the other hand, if the designated coordinates are not within the target area, the drawing order stored in the drawing order storage unit 16 is traced in reverse, and the same processing is repeated until the target graphic is specified. It is determined which target graphic includes the designated coordinates.

【0022】このように、本実施の形態では、イメージ
データの描画順序、各対象図形のマスクイメージデータ
及び判別メモリ18を用いて、マウス12により指示さ
れた対象図形を判別することとしている。
As described above, in the present embodiment, the target graphic pointed by the mouse 12 is determined by using the drawing order of the image data, the mask image data of each target graphic, and the determination memory 18.

【0023】次に、図形識別装置10の構成について説
明する。
Next, the configuration of the figure identifying apparatus 10 will be described.

【0024】図1に示すように、この図形識別装置10
は、ディスプレイ11と、マウス12と、マウスドライ
バ13と、制御部14と、メモリ15と、描画順序記憶
部16と、判別処理部17と、判別メモリ18とからな
る。
As shown in FIG. 1, this figure identifying device 10
Comprises a display 11, a mouse 12, a mouse driver 13, a control unit 14, a memory 15, a drawing order storage unit 16, a discrimination processing unit 17, and a discrimination memory 18.

【0025】ディスプレイ11は、対象図形等を表示す
る表示部であり、マウス12は、ディスプレイ11に表
示した対象図形を指示選択する入力デバイスである。
The display 11 is a display section for displaying a target graphic or the like, and the mouse 12 is an input device for pointing and selecting the target graphic displayed on the display 11.

【0026】マウスドライバ13は、該マウス12との
間のインターフェースを司るデバイスドライバであり、
制御部14は、図形識別装置全体を制御する制御部であ
る。
The mouse driver 13 is a device driver that manages an interface with the mouse 12.
The control unit 14 is a control unit that controls the entire graphic identification device.

【0027】メモリ15は、対象図形のイメージデータ
を記憶する領域15aと、該対象図形のイメージデータ
を対象領域及び透過領域に2値化したマスクイメージデ
ータを記憶する領域15bとからなる。
The memory 15 includes an area 15a for storing image data of a target graphic and an area 15b for storing mask image data obtained by binarizing the image data of the target graphic into a target area and a transparent area.

【0028】描画順序記憶部16は、各対象図形をディ
スプレイに表示する際の描画順序を記憶する記憶部であ
る。
The drawing order storage unit 16 is a storage unit for storing the drawing order when each target graphic is displayed on the display.

【0029】判別処理部17は、描画順序記憶部16に
記憶した描画順序と、メモリ15に記憶したマスクイメ
ージデータとを用いて、マウス12により指示された対
象図形を判別メモリ18上で判別する処理部である。
The discrimination processing unit 17 discriminates the target graphic pointed by the mouse 12 on the discrimination memory 18 using the drawing order stored in the drawing order storage unit 16 and the mask image data stored in the memory 15. It is a processing unit.

【0030】なお、この判別処理部17は、判別した対
象図形を制御部14に通知し、この通知を受けた制御部
14が、対象図形に対応するイメージデータをディスプ
レイ11に表示する。
The determination processing unit 17 notifies the control unit 14 of the determined target graphic, and the control unit 14 that has received the notification displays the image data corresponding to the target graphic on the display 11.

【0031】判別メモリ18は、判別処理部17が指示
入力された対象図形の判別を行う際に使用する専用メモ
リであり、具体的にはメモリ15に保持されたマスクイ
メージデータが順次展開される。
The discrimination memory 18 is a dedicated memory that is used when the discrimination processing unit 17 discriminates the target graphic that has been instructed and input. Specifically, the mask image data stored in the memory 15 is sequentially developed. .

【0032】上記構成を有する画像識別装置10を用い
ることにより、複数の対象図形のイメージデータを重ね
て表示する場合であっても、マウス12により指示され
た対象図形を効率良く判別することができる。
By using the image identification device 10 having the above configuration, the target graphic pointed by the mouse 12 can be efficiently discriminated even when the image data of a plurality of target graphics are displayed in a superimposed manner. .

【0033】次に、図1に示す判別処理部17の判別処
理手順について説明する。ただし、描画順序はすでに描
画順序記憶部16に記憶済みであるものとする。
Next, the determination processing procedure of the determination processing unit 17 shown in FIG. 1 will be described. However, it is assumed that the drawing order has already been stored in the drawing order storage unit 16.

【0034】図2は、図1に示す判別処理部17の判別
処理手順を示すフローチャートである。
FIG. 2 is a flowchart showing the procedure of the determination process of the determination processing section 17 shown in FIG.

【0035】図2に示すように、この判別処理部17
は、描画順序記憶部16に記憶した描画順序に基づい
て、最後に描画した対象図形のマスクイメージデータを
メモリ15から取得する(ステップ201)。
As shown in FIG. 2, this determination processing unit 17
Acquires the mask image data of the target figure drawn last from the memory 15 based on the drawing order stored in the drawing order storage unit 16 (step 201).

【0036】そして、取得したマスクイメージデータを
判別メモリ18に展開した後に(ステップ202)、マ
ウス12の指示座標の画素値を判別メモリ17から取得
する(ステップ203)。
After the acquired mask image data is developed in the discrimination memory 18 (step 202), the pixel value of the designated coordinates of the mouse 12 is obtained from the discrimination memory 17 (step 203).

【0037】そして、この画素値が’1’であるか否か
を判断し(ステップ204)、’1’である場合には指
示座標が判別領域に含まれるため、該マスクイメージデ
ータに対応する対象図形がマウス12により指示された
対象図形であると判断して(ステップ205)、処理を
終了する。
Then, it is determined whether or not the pixel value is "1" (step 204). If the pixel value is "1", the designated coordinates are included in the determination area, and the pixel data corresponds to the mask image data. It is determined that the target graphic is the target graphic designated by the mouse 12 (step 205), and the process ends.

【0038】一方、この画素値が’0’である場合に
は、指示座標が透過領域に含まれるため、描画順序記憶
部16に記憶した描画順序の次の対象図形を確認し(ス
テップ206)、該対象図形のマスクイメージデータを
メモリ15から取得し(ステップ207)、ステップ2
02に移行して同様の処理を繰り返す。
On the other hand, if the pixel value is "0", the designated coordinates are included in the transparent area, so the next target figure in the drawing order stored in the drawing order storage unit 16 is checked (step 206). Then, the mask image data of the target graphic is acquired from the memory 15 (step 207), and step 2 is executed.
02 and the same processing is repeated.

【0039】そして、描画順序の全ての対象図形につい
て処理を行ったとしても該当する対象図形を特定できな
ければ、該当物なしと判断して(ステップ208)、処
理を終了する。
Then, even if the processing is performed on all the target graphics in the drawing order, if the corresponding target graphic cannot be specified, it is determined that there is no corresponding object (step 208), and the processing is terminated.

【0040】以上、判別処理部17の判別処理手順につ
いて説明した。
In the above, the determination processing procedure of the determination processing unit 17 has been described.

【0041】次に、図1に示す画像識別装置10の識別
処理について具体例を用いて説明する。なお、ここで
は、プリンタ装置の各構成部分を対象図形とした場合を
示している。
Next, the identification processing of the image identification apparatus 10 shown in FIG. 1 will be described using a specific example. Here, a case where each component of the printer device is used as a target graphic is shown.

【0042】図3は、図1に示すメモリ15に保持する
イメージデータ及びマスクイメージデータと、描画順序
記憶部16に記憶する描画順序の一例を示す図である。
FIG. 3 is a diagram showing an example of the image data and mask image data stored in the memory 15 shown in FIG.

【0043】同図(a)に示すように、ここではプリン
タ装置が、トレイ、本体、本体カバー及びカバーという
4つの部品からなる場合を考え、各部品の部品イメージ
データ及びマスクイメージデータをメモリ15に記憶し
ている。
As shown in FIG. 5A, here, a case is considered where the printer device is composed of four parts: a tray, a main body, a main body cover, and a cover. I remember.

【0044】そして、同図(b)に示すプリンタ装置の
全体イメージをディスプレイ11に表示する際には、か
かる部品のイメージデータを同図(a)に示す描画順序
にしたがって、ディスプレイ11のV−RAM上に重ね
書きする。
When the entire image of the printer shown in FIG. 3B is displayed on the display 11, the image data of the parts is displayed on the V-display of the display 11 in accordance with the drawing order shown in FIG. Overwrite on RAM.

【0045】図4は、図3に示すマスクイメージデータ
及び描画順序を用いて判別処理部17が判別処理を行う
際の判別メモリ18の内容を示す図である。
FIG. 4 is a diagram showing the contents of the discrimination memory 18 when the discrimination processing unit 17 performs discrimination processing using the mask image data and the drawing order shown in FIG.

【0046】同図(a)に示すように、ユーザがディス
プレイ11に表示したプリンタ装置の部品をマウス12
で指示すると、判別メモリ18の全ての画素を画素値’
0’(黒)に初期化する。
As shown in FIG. 3A, the user displays the parts of the printer device displayed on the display 11 with the mouse 12.
, All pixels in the discrimination memory 18 are set to pixel values'
Initialize to 0 '(black).

【0047】次に、この判別処理部17は、描画順序が
最後であるカバーのマスクイメージデータをメモリ15
から取り出し、同図(b)に示すように該マスクイメー
ジデータを判別メモリ18に展開する。
Next, the discrimination processing unit 17 stores the mask image data of the cover having the last drawing order in the memory 15.
The mask image data is developed in the discrimination memory 18 as shown in FIG.

【0048】ここで、図中に矢印で示したマウスの指示
位置は、画素値’1’を持つ対象領域ではなく、画素
値’0’を持つ透過領域に該当するため、マウス12に
より指示した部品はカバーでないと判断する。
Here, the pointing position of the mouse indicated by the arrow in the drawing corresponds to not the target region having the pixel value of “1” but the transmission region having the pixel value of “0”. Judge that the part is not a cover.

【0049】次に、判別処理部17は、描画順序が最後
から2番目である本体カバーのマスクイメージデータを
メモリ15から取り出し、同図(c)に示すように該マ
スクイメージデータを判別メモリ18に展開する。
Next, the discrimination processing unit 17 retrieves the mask image data of the main body cover whose drawing order is the second from the last from the memory 15 and, as shown in FIG. Expand to

【0050】ここで、図中に矢印で示したマウスの指示
位置は、画素値’1’を持つ対象領域ではなく、画素
値’0’を持つ透過領域に該当するため、マウス12に
より指示した部品は本体カバーでないと判断する。
Here, the pointing position of the mouse indicated by the arrow in the figure corresponds to not the target region having the pixel value of “1” but the transmission region having the pixel value of “0”. Judge that the part is not the body cover.

【0051】次に、判別処理部17は、描画順序が最後
から3番目となる本体のマスクイメージデータをメモリ
15から取り出し、同図(d)に示すように該マスクイ
メージデータを判別メモリ18に展開する。
Next, the discrimination processing unit 17 retrieves from the memory 15 the mask image data of the main body whose rendering order is the third from the end, and stores the mask image data in the discrimination memory 18 as shown in FIG. expand.

【0052】ここで、図中に矢印で示したマウスの指示
位置は、画素値’1’を持つ対象領域であるので、マウ
ス12により指示した部品は本体であると識別し、処理
を終了する。
Here, the position indicated by the arrow indicated by the arrow in the figure is a target area having a pixel value of "1", so that the part pointed to by the mouse 12 is identified as the main body, and the processing is terminated. .

【0053】上記一連の処理を行うことにより、ディス
プレイ11上に表示した複数の部品が相互に重なり合う
場合に、マウス12で指示された部品を効率良く特定す
ることができる。
By performing the above series of processing, when a plurality of parts displayed on the display 11 overlap each other, the part specified by the mouse 12 can be specified efficiently.

【0054】ところで、上記具体例では、ディスプレイ
11上に表示した部品のイメージデータを対象とする場
合を示したが、本発明は、ユーザインターフェースとし
て広く用いられているアイコンを対象とする場合につい
ても適用することができる。
In the above specific example, a case has been described in which image data of a component displayed on the display 11 is targeted. However, the present invention is also applicable to a case in which an icon widely used as a user interface is targeted. Can be applied.

【0055】このため、以下では、複数のアイコンが相
互に重なり合う場合に、指示されたアイコンを効率良く
識別する具体例について説明する。
Therefore, a specific example will be described below in which, when a plurality of icons overlap each other, the designated icon is efficiently identified.

【0056】図5は、図1のメモリ15に保持するアイ
コンのイメージデータ及びマスクイメージデータと、描
画順序記憶部16に記憶する描画順序の一例を示す図で
ある。
FIG. 5 is a diagram showing an example of icon image data and mask image data stored in the memory 15 of FIG. 1 and a drawing order stored in the drawing order storage unit 16.

【0057】同図(a)に示すように、ここでは、文書
アイコン(1)、文書アイコン(2)、フォルダアイコ
ン及び送信箱アイコンという4つのアイコンを考え、各
アイコンのイメージデータ及びマスクイメージデータを
メモリ15に記憶している。
As shown in FIG. 9A, here, four icons, ie, a document icon (1), a document icon (2), a folder icon and an outbox icon are considered, and image data and mask image data of each icon are considered. Is stored in the memory 15.

【0058】そして、同図(b)に示すように、各アイ
コンを重ねてディスプレイ11に表示する場合には、か
かるアイコンのイメージデータを同図(a)に示す描画
順序にしたがって、ディスプレイ11のV−RAM上に
重ね書きする。
When the icons are superimposed and displayed on the display 11 as shown in FIG. 5B, the image data of the icons is displayed on the display 11 in accordance with the drawing order shown in FIG. Overwrite on V-RAM.

【0059】図6は、図5に示すマスクイメージデータ
及び描画順序を用いて判別処理部17が判別処理を行う
際の判別メモリ18の内容を示す図である。
FIG. 6 is a diagram showing the contents of the discrimination memory 18 when the discrimination processing unit 17 performs discrimination processing using the mask image data and the drawing order shown in FIG.

【0060】同図(a)に示すように、ユーザがディス
プレイ11に表示したアイコンをマウス12で指示する
と、判別メモリ18の全ての画素を画素値’0’(黒)
に初期化する。
As shown in FIG. 6A, when the user designates the icon displayed on the display 11 with the mouse 12, all the pixels in the discrimination memory 18 are set to the pixel value "0" (black).
Initialize to

【0061】次に、この判別処理部17は、描画順序が
最後である文書アイコン(2)のマスクイメージデータ
をメモリ15から取り出し、同図(b)に示すように該
マスクイメージデータを判別メモリ18に展開する。
Next, the discrimination processing unit 17 retrieves the mask image data of the document icon (2) whose drawing order is the last from the memory 15, and as shown in FIG. Expand to 18.

【0062】ここで、図中に矢印で示したマウスの指示
位置は、画素値’1’を持つ対象領域ではなく、画素
値’0’を持つ透過領域に該当するため、マウス12に
より指示したアイコンは文書アイコン(2)でないと判
断する。
Here, the pointing position of the mouse indicated by the arrow in the drawing corresponds to not the target region having the pixel value of “1” but the transmission region having the pixel value of “0”. It is determined that the icon is not the document icon (2).

【0063】次に、判別処理部17は、描画順序が最後
から2番目である送信箱アイコンのマスクイメージデー
タをメモリ15から取り出し、同図(c)に示すように
該マスクイメージデータを判別メモリ18に展開する。
Next, the discrimination processing unit 17 fetches the mask image data of the outgoing box icon whose drawing order is the second from the last from the memory 15 and, as shown in FIG. Expand to 18.

【0064】ここで、図中に矢印で示したマウスの指示
位置は、画素値’1’を持つ対象領域ではなく、画素
値’0’を持つ透過領域に該当するため、マウス12に
より指示したアイコンは送信箱アイコンでないと判断す
る。
Here, the pointing position of the mouse indicated by the arrow in the drawing corresponds to not the target region having the pixel value of “1” but the transmission region having the pixel value of “0”, and thus the pointing position is indicated by the mouse 12. It is determined that the icon is not an outbox icon.

【0065】次に、判別処理部17は、描画順序が最後
から3番目となるフォルダアイコンのマスクイメージデ
ータをメモリ15から取り出し、同図(d)に示すよう
に該マスクイメージデータを判別メモリ18に展開す
る。
Next, the discrimination processing unit 17 retrieves the mask image data of the folder icon whose rendering order is the third from the end from the memory 15 and, as shown in FIG. Expand to

【0066】ここで、図中に矢印で示したマウスの指示
位置は、画素値’1’を持つ対象領域であるので、マウ
ス12により指示したアイコンはフォルダアイコンであ
ると識別し、処理を終了する。
Here, the pointing position of the mouse indicated by the arrow in the figure is a target area having a pixel value of “1”, so that the icon pointed to by the mouse 12 is identified as a folder icon, and the processing is terminated. I do.

【0067】上述してきたように、本実施の形態では、
あらかじめ複数の図形イメージデータ及びマスクイメー
ジデータをメモリ15に保持し、マウス12により図形
が指示されたならば、判別処理部17は、描画順序記憶
部16に記憶した描画順序の逆順でかかるマスクイメー
ジデータを判別メモリ18に順次展開し、指示位置が対
象領域に含まれるマスクイメージデータに対応する図形
が指示された図形であると判断するよう構成したので、
ディスプレイ11上に表示した複数の図形が相互に重な
り合う場合に、マウス12で指示された図形を効率良く
特定することができる。
As described above, in the present embodiment,
When a plurality of graphic image data and mask image data are stored in the memory 15 in advance and a graphic is designated by the mouse 12, the discrimination processing unit 17 performs the mask image processing in the reverse order of the drawing order stored in the drawing order storage unit 16. Since the data is sequentially developed in the discrimination memory 18 and the designated position is determined to be the designated graphic corresponding to the mask image data included in the target area.
When a plurality of figures displayed on the display 11 overlap each other, the figure designated by the mouse 12 can be specified efficiently.

【0068】なお、本実施の形態では、イメージ描画方
式で描画したプリンタ装置の部品及びアイコンをそれぞ
れ対象図形とした場合を示したが、本発明はこれに限定
されるものではなく、関数描画方式で記述された円、楕
円及び矩形等を対象図形とする場合に適用することもで
きる。
In this embodiment, the case where the parts and the icons of the printer device drawn by the image drawing method are used as the target figures has been described. However, the present invention is not limited to this. The present invention can be applied to a case where a circle, an ellipse, a rectangle, or the like described in the above is used as a target graphic.

【0069】また、本実施の形態では、マスクイメージ
データを2値とすることとしたが、本発明はこれに限定
されるものではなく、多値のマスクイメージデータを用
いることも可能である。
In this embodiment, the mask image data is binary. However, the present invention is not limited to this, and multi-value mask image data can be used.

【0070】[0070]

【発明の効果】以上詳細に説明したように、第1の発明
は、複数のイメージデータを表示用メモリに描画する描
画順序を記憶しておき、記憶した描画順序の逆順に、指
示位置が各イメージデータに含まれるか否かを調べ、該
指示位置が含まれるイメージデータに対応する図形を前
記指示位置に対応する図形として判別するよう構成した
ので、表示部に表示した複数の図形が相互に重なり合う
場合に、指示された図形を効率良く特定することが可能
となる。
As described in detail above, according to the first aspect of the invention, the drawing order for drawing a plurality of image data in the display memory is stored, and the designated positions are set in the reverse order of the stored drawing order. It is configured to check whether or not the image data is included in the image data, and to determine the graphic corresponding to the image data including the designated position as the graphic corresponding to the designated position. When they overlap, the specified figure can be specified efficiently.

【0071】また、第2の発明は、各イメージデータを
その対象物を示す対象領域と背景を示す透過領域とに区
分した複数のマスクイメージをマスクイメージ記憶手段
に記憶しておき、描画順序の逆順に、マスクイメージを
判別メモリに展開し、指示位置が該マスクイメージの対
象領域であるならば該マスクイメージに対応する図形を
指示位置に対応する図形として判別するよう構成したの
で、指示位置が図形に属するか否かを判別メモリ上で容
易に判断することが可能となる。
According to a second aspect of the present invention, a plurality of mask images obtained by dividing each image data into a target area indicating the target and a transparent area indicating the background are stored in the mask image storage means, and the drawing order of the drawing order is determined. In the reverse order, the mask image is developed in the determination memory, and if the designated position is the target area of the mask image, the graphic corresponding to the mask image is determined as the graphic corresponding to the designated position. It is possible to easily determine whether or not it belongs to a figure on the determination memory.

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

【図1】本実施の形態で用いる図形識別装置の構成を示
す機能ブロック図。
FIG. 1 is a functional block diagram showing a configuration of a graphic identification device used in the present embodiment.

【図2】図1に示す判別処理部の判別処理手順を示すフ
ローチャート。
FIG. 2 is a flowchart illustrating a determination processing procedure of a determination processing unit illustrated in FIG. 1;

【図3】図1に示すメモリに保持するイメージデータ及
びマスクイメージデータと、描画順序記憶部に記憶する
描画順序の一例を示す図。
FIG. 3 is a diagram showing an example of image data and mask image data stored in a memory shown in FIG. 1 and a drawing order stored in a drawing order storage unit.

【図4】図3に示すマスクイメージデータ及び描画順序
を用いて判別処理部が判別処理を行う際の判別メモリの
内容を示す図。
FIG. 4 is a view showing the contents of a discrimination memory when a discrimination processing unit performs discrimination processing using the mask image data and the drawing order shown in FIG. 3;

【図5】図1のメモリに保持するイメージデータ及びマ
スクイメージデータと、描画順序記憶部に記憶する描画
順序の別の例を示す図。
5 is a diagram showing another example of image data and mask image data stored in the memory of FIG. 1 and a drawing order stored in a drawing order storage unit.

【図6】図5に示すマスクイメージデータ及び描画順序
を用いて判別処理部が判別処理を行う際の判別メモリの
内容を示す図。
FIG. 6 is a view showing the contents of a discrimination memory when a discrimination processing unit performs discrimination processing using the mask image data and the drawing order shown in FIG. 5;

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

10…図形識別装置、 11…ディスプレイ、 12…
マウス、13…マウスドライバ、 14…制御部、 1
5…メモリ、15a…イメージデータ記憶領域、15b
…マスクイメージデータ記憶領域、16…描画順序記憶
部、 17…判別処理部、 18…判別メモリ
10: Graphic identification device, 11: Display, 12 ...
Mouse, 13: mouse driver, 14: control unit, 1
5 ... memory, 15a ... image data storage area, 15b
... Mask image data storage area, 16 ... Drawing order storage section, 17 ... Discrimination processing section, 18 ... Discrimination memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のイメージデータを順次表示用メモ
リに描画して、該複数のイメージデータにそれぞれ対応
する複数の図形を前記表示用メモリに対応する表示部に
表示し、該表示部の所望の位置が指示された際に該指示
位置に対応する図形を識別する図形識別装置において、 前記複数のイメージデータを前記表示用メモリに描画す
る描画順序を記憶する描画順序記憶手段と、 前記描画順序記憶手段に記憶した描画順序の逆順に、前
記指示位置が各イメージデータに含まれるか否かを調
べ、該指示位置が含まれるイメージデータに対応する図
形を前記指示位置に対応する図形として判別する判別手
段とを具備することを特徴とする図形識別装置。
1. A plurality of image data are sequentially drawn on a display memory, and a plurality of figures respectively corresponding to the plurality of image data are displayed on a display unit corresponding to the display memory. A drawing order storage unit for storing a drawing order for drawing the plurality of image data in the display memory, wherein the drawing order is: In the reverse order of the drawing order stored in the storage means, it is checked whether or not the designated position is included in each image data, and a graphic corresponding to the image data including the designated position is determined as a graphic corresponding to the designated position. A graphic identification device comprising: a determination unit.
【請求項2】 各イメージデータをその対象物を示す対
象領域と背景を示す透過領域とに区分した複数のマスク
イメージを記憶するマスクイメージ記憶手段と、 前記マスクイメージ記憶手段に記憶したマスクイメージ
を展開する判別メモリとをさらに具備し、 前記判別手段は、 前記マスクイメージを前記判別メモリに展開し、前記指
示位置が該マスクイメージの対象領域であるならば該マ
スクイメージに対応する図形を前記指示位置に対応する
図形として判別することを特徴とする請求項1記載の図
形識別装置。
2. A mask image storing means for storing a plurality of mask images obtained by dividing each image data into a target area indicating an object and a transparent area indicating a background, and a mask image stored in the mask image storing means. A determination memory for developing the mask image; developing the mask image in the determination memory; and specifying the figure corresponding to the mask image if the designated position is a target area of the mask image. The figure identifying apparatus according to claim 1, wherein the figure is determined as a figure corresponding to the position.
JP7758397A 1997-03-28 1997-03-28 Graphic discriminating device Pending JPH10269054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7758397A JPH10269054A (en) 1997-03-28 1997-03-28 Graphic discriminating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7758397A JPH10269054A (en) 1997-03-28 1997-03-28 Graphic discriminating device

Publications (1)

Publication Number Publication Date
JPH10269054A true JPH10269054A (en) 1998-10-09

Family

ID=13638013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7758397A Pending JPH10269054A (en) 1997-03-28 1997-03-28 Graphic discriminating device

Country Status (1)

Country Link
JP (1) JPH10269054A (en)

Similar Documents

Publication Publication Date Title
US7590308B2 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
US6356281B1 (en) Method and apparatus for displaying translucent overlapping graphical objects on a computer monitor
US5321807A (en) Accelerated graphics display method
EP0738951B1 (en) Data processing method and apparatus to input and output trace data
US6597383B1 (en) Pointing apparatus and a pointing method
EP0380459A2 (en) Interactive computer graphics display system processing method for identifying an operator selected displayed object
IE54823B1 (en) Graphics display method and apparatus
US20090006990A1 (en) Detection and preview of graphical elements within a graphic
JPS6240580A (en) Graphic drawing method
JPH05265689A (en) Information processor
CN111798372A (en) Image rendering method, device, equipment and readable medium
US8363064B2 (en) Image processing apparatus, image processing system, image processing method, and computer-readable medium
US5805169A (en) Image processing method and apparatus for deciding whether to overwrite a color based on a comparison of stored color priorities
CN110457098B (en) Page local image sharing method, device, equipment and storage medium
JPH06259217A (en) Multiwindow system
JPH10269054A (en) Graphic discriminating device
EP0145817A1 (en) A data display system
JP2001202174A (en) Image display device, method and storage medium
JP3133093B2 (en) Electronic image correction method and apparatus
US5680527A (en) Information processing system having recognized pattern control
JP3887151B2 (en) Color display control device, display color setting method thereof, storage medium, color display device, and writing color setting method thereof
KR100586602B1 (en) Method for overlaing raster map
JPH10333867A (en) Picture display device
JPH11119762A (en) Display control device, display control method, and storage medium
JP3001433B2 (en) Apparatus and method for determining graphic range