JPS63106079A - Trapping processing system - Google Patents

Trapping processing system

Info

Publication number
JPS63106079A
JPS63106079A JP25257286A JP25257286A JPS63106079A JP S63106079 A JPS63106079 A JP S63106079A JP 25257286 A JP25257286 A JP 25257286A JP 25257286 A JP25257286 A JP 25257286A JP S63106079 A JPS63106079 A JP S63106079A
Authority
JP
Japan
Prior art keywords
closed
processing
pseudo
processing unit
mesh
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
JP25257286A
Other languages
Japanese (ja)
Inventor
Hisayo Fukushima
久代 福島
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 JP25257286A priority Critical patent/JPS63106079A/en
Publication of JPS63106079A publication Critical patent/JPS63106079A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the processing in a positioning processing part and to expedite the trapping processing by using a pseudo closed graphic. CONSTITUTION:In place of the closed graphic the pseudo closed graphic given by the collection of meshes is formed to examine a positional relation between the respective meshes constituting the pseudo closed graphic and an instructed point. Namely, a processing by a rectangular area extraction processing part 1, a processing by a mesh forming processing part 2, a processing by a pseudo closed graphic processing part 3, and a processing by a position decision processing part 4 are executed and whether a point instructed on a display screen is situated in the pseudo closed graphic 9 or not is decided. Based on this, whether the point is situated in the closed graphic 5 or not is decided.

Description

【発明の詳細な説明】 〔概要〕 表示画面上に表示されている閉図形と9表示画面上で指
示した点との位置関係を調べるトラフピング処理方式に
おいて、上記閉図形に対応する擬似閉図形をメツシュの
かたまりとして抽出し、当該擬慎閉図形を構成するメツ
シュと上記指示した点との位置関係を調べるよう構成し
、トラッピング処理を高速化したことが開示されている
[Detailed Description of the Invention] [Summary] In a troughing processing method that examines the positional relationship between a closed figure displayed on a display screen and a point indicated on a 9-display screen, a pseudo closed figure corresponding to the closed figure is It is disclosed that the trapping process is speeded up by extracting meshes as a cluster and checking the positional relationship between the meshes constituting the pseudo-closed figure and the designated points.

C産業上の利用分野〕 本発明は、トラッピング処理方式、特に1表示画面上で
指示した点が9表示されている閉図形の中に位置するか
否かを調べるトラフピング処理方式において、メツシュ
のかたまりよりなる擬似閉図形を抽出して、当該擬似閉
図形を構成するメツシュと上記指示した点との位置関係
を調べるようにしたトラッピング処理方式に関する。
C. Industrial Application Field] The present invention is directed to a trapping processing method, particularly a troughing processing method for checking whether a point specified on one display screen is located within a closed figure displayed nine times. The present invention relates to a trapping processing method in which a pseudo-closed figure consisting of the following is extracted and the positional relationship between the mesh forming the pseudo-closed figure and the specified point is examined.

〔従来の技術〕[Conventional technology]

従来から1表示画面上で指示した点が1表示されている
例えば多角形などの閉図形の中に位置するか否かを調べ
るトラッピング処理が開発されている0例えば多角形図
形の場合に2図形を囲う外接矩形の頂点と、多角形の各
頂点とを入力し、多角形の外側に位置する領域を多数の
三角形でカバーシ、当該各三角形内に上記指示した点が
存在するか否かをチェックするなどの処理も考慮されて
いる。
Traditionally, trapping processing has been developed to check whether a point specified on a display screen is located within a closed figure such as a polygon. Input the vertices of the circumscribed rectangle surrounding the polygon and each vertex of the polygon, cover the area outside the polygon with a large number of triangles, and check whether the specified point exists within each triangle. Processing such as

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記三角形と上記指示した点との位置関係を調べる方式
の場合には、 (i)多角形の頂点の個数が大である場
合、(ii)多角形が凹図形である場合などにおいては
、上記三角形の個数が大となる。
In the case of the method of checking the positional relationship between the above triangle and the above indicated point, (i) when the number of vertices of the polygon is large, (ii) when the polygon is a concave figure, the above The number of triangles becomes large.

また三角形と上記指示した点との位置関係を調べる処理
が簡単ではない、したがって、上記従来の方式の場合に
は、処理時間が大となる。
Further, the process of checking the positional relationship between the triangle and the designated point is not easy, and therefore, in the case of the conventional method described above, the processing time is long.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、上記の点を解決しており、上記閉図形の代わ
りに、メツシュの集団で与えられる擬似閉図形をつくり
、当該擬似閉図形を構成する各メツシュと上記指示した
点との位置関係を簡単な論理で調べるようにしている。
The present invention solves the above problem, and instead of the closed figure, a pseudo closed figure given by a group of meshes is created, and the positional relationship between each mesh constituting the pseudo closed figure and the indicated point is I try to investigate it using simple logic.

第1図は本発明の原理構成図を示す0図中の符号1は矩
形領域抽出処理部に対応し、2はメツシュ作成処理部に
対応し、3は擬似閉図形処理部に対応し、4は位置決定
処理部に対応し、夫々の処理を概念的に示している。
FIG. 1 shows the principle configuration diagram of the present invention. In FIG. corresponds to the position determination processing section and conceptually shows the respective processing.

矩形領域抽出処理部1においては9表示図面上の閉図形
5を囲う外接矩形6を抽出する。そして。
A rectangular area extraction processing unit 1 extracts a circumscribed rectangle 6 surrounding a closed figure 5 on a 9-display drawing. and.

当該外接矩形6の外周に、トラップ処理に当っての内外
判定の閾値(当該閾値以内であれば内とみなす)に相当
するトラップ・サイズ7をとった矩形頭載8を得る。
A rectangular head 8 is obtained on the outer periphery of the circumscribed rectangle 6 with a trap size 7 corresponding to a threshold value for inside/outside determination in trap processing (if it is within the threshold, it is considered inside).

メツシュ作成処理部2においては、上記矩形領域8内を
m×n個のメツシュに区分し、各メツシュにラベルrl
J、r2J・・・「88」をつける。
In the mesh creation processing unit 2, the rectangular area 8 is divided into m×n meshes, and each mesh is labeled rl.
J, r2J... Add "88".

擬似閉図形処理部3においては、閉図形5を構成する線
分が上記いずれのメツシュ上を通るかを調べ9図示の如
く、メツシュのかたまりよりなる擬似閉図形9を得る。
The pseudo-closed figure processing section 3 checks which of the above-mentioned meshes the line segments constituting the closed figure 5 pass over, and obtains a pseudo-closed figure 9 consisting of a cluster of meshes, as shown in FIG.

位置決定処理部4は、擬似閉図形9を構成する各メツシ
ュと上記表示画面上で指示した点との位置関係を調べ、
当該指示した点が擬似閉図形9の内側に位置するか否か
を調べる。即ち、1つのメツシュ10の左下点の座標を
(x+、y+)とし、右上点の座標を(Xz、)’z)
とし、上記指示した点11の座標を(Xo、yo)とし
たとき、当該指示した点11がメツシュ10の内部に存
在する条件式は。
The position determination processing unit 4 examines the positional relationship between each mesh constituting the pseudo-closed figure 9 and the point specified on the display screen,
It is checked whether the designated point is located inside the pseudo closed figure 9. That is, the coordinates of the lower left point of one mesh 10 are (x+, y+), and the coordinates of the upper right point are (Xz,)'z).
When the coordinates of the indicated point 11 are (Xo, yo), the conditional expression that the indicated point 11 exists inside the mesh 10 is as follows.

内部−(x+ ≦x0≦Xz)八(y+ ≦y0≦yt
)で与えられる。この演算をすべてのメツシュについて
、「内部」であることが見出されるまで繰返し、すべて
のメツシュについて「内部」でなければ、擬似閉図形の
外とみなす。
Internal - (x+ ≦x0≦Xz) 8 (y+ ≦y0≦yt
) is given by This operation is repeated for all meshes until they are found to be "inside", and if all meshes are not "inside", they are considered to be outside the pseudo-closed figure.

〔作用〕[Effect]

上記矩形領域抽出処理部1による処理、上記メツシュ作
成処理部2による処理、上記擬似閉図形処理部3による
処理、上記位置決定処理部4による処理が実行され、上
記表示画面上で指示した点が擬似閉図形9の内側に位置
するか否かが決定される。これにもとづいて、当該点が
本来の閉図形5の内側に位置するか否かが決定される。
Processing by the rectangular area extraction processing unit 1, processing by the mesh creation processing unit 2, processing by the pseudo closed figure processing unit 3, and processing by the position determination processing unit 4 are executed, and the point specified on the display screen is It is determined whether the object is located inside the pseudo closed figure 9 or not. Based on this, it is determined whether the point is located inside the original closed figure 5 or not.

〔実施例〕〔Example〕

第2図は第1図図示の擬似閉図形処理部において用いら
れるメツシュ走査順番設定処理を説明する説明図、第3
図(A)(B)は全体として1つの図を示すもので本発
明による一実施例処理フローチャートを示す。
FIG. 2 is an explanatory diagram illustrating mesh scanning order setting processing used in the pseudo-closed figure processing section shown in FIG.
Figures (A) and (B) are a single diagram as a whole, showing a processing flowchart of an embodiment according to the present invention.

第1図図示の擬似閉図形処理部3における処理をより高
速化するために、メツシュ作成処理部2によって得られ
たm X n個のメツシュについて。
Regarding m x n meshes obtained by the mesh creation processing section 2 in order to further speed up the processing in the pseudo closed figure processing section 3 shown in FIG.

第2図(A)図示■、■、■・・・[相]の如く、走査
する走査ルートを定めて走査番号をつける。そして。
The scanning route to be scanned is determined and a scanning number is assigned as shown in FIG. 2 (A). and.

走査番号がつけられた各走査ルート毎に、当該ルート上
に位置するメツシュについてのラベルを。
For each scan route with a scan number, a label for the meshes located on that route.

第2図(B)図示スケジュール・テーブル12における
「メツシュの順」の如くまとめておくようにする。そし
て2例えば走査番号■にしたがって。
The schedules are arranged in the "mesh order" in the schedule table 12 shown in FIG. 2(B). and 2, for example according to the scan number ■.

当該走査ルート上のメツシュr4J、r15J。Mesh r4J, r15J on the scanning route.

r26J、r37Jの順に、閉図形5を構成する線分が
夫々のメツシュ内を遣るか否かを調べる。
In the order of r26J and r37J, it is checked whether the line segments constituting the closed figure 5 extend within each mesh.

そして例えばメツシュ「15」において上記線分が通る
ことが判明すると、以降のメツシュ「26、J、r37
Jは閉図形5の内側に位置するメツシュであるとされる
。換言すれば、メツシュ「15’J、r26J、r37
Jは、擬似閉図形9を構成するメツシュとされる。この
ような処理は、すべての走査番号に対応する走査ルート
上で行われ。
For example, if it is found that the above line segment passes through the mesh "15", then the following mesh "26, J, r37"
It is assumed that J is a mesh located inside the closed figure 5. In other words, mesh "15'J, r26J, r37
J is a mesh forming the pseudo closed figure 9. Such processing is performed on scan routes corresponding to all scan numbers.

第1図図示の擬似閉図形9が得られる。A pseudo-closed figure 9 shown in FIG. 1 is obtained.

第3図(A)(B)は本発明の一実施例フローチャート
を示している。第3図において、符号13に対応する処
理は、第1図図示の処理部1の処理に対応している。符
号14に対応する処理は、第1図図示の処理部2の処理
に対応している。符号15に対応する処理は第2図図示
の処理に対応している。符号16に対応する処理は上記
走査番号を利用して行う第1図図示の処理部3の処理に
対応している。符号17に対応する処理は第1図図示の
処理部4の処理に対応している。
FIGS. 3(A) and 3(B) show flowcharts of one embodiment of the present invention. In FIG. 3, the process corresponding to the reference numeral 13 corresponds to the process of the processing section 1 shown in FIG. The process corresponding to the reference numeral 14 corresponds to the process of the processing section 2 shown in FIG. The process corresponding to the reference numeral 15 corresponds to the process shown in FIG. The process corresponding to the reference numeral 16 corresponds to the process performed by the processing unit 3 shown in FIG. 1 using the above-mentioned scanning number. The process corresponding to the reference numeral 17 corresponds to the process of the processing section 4 shown in FIG.

〔発明の効果〕〔Effect of the invention〕

以上説明した如く1本発明によれば、擬似閉図形を用い
るようにしており、特に位置決定処理部における処理が
簡単となり、トラッピング処理を高速化することができ
る。
As explained above, according to one aspect of the present invention, a pseudo closed figure is used, which simplifies the processing particularly in the position determination processing section and speeds up the trapping processing.

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

第1図は本発明の原理構成図、第2図はメツシュ走査順
番設定処理を説明する説明図、第3図は本発明による一
実施例処理フローチャートを示す。 図中、1は矩形領域抽出処理部、2はメツシュ作成処理
部、3は擬似閉図形処理部、4は位置決定処理部、5は
閉図形、8は矩形領域、9は擬似閉図形、10はメツシ
ュ、11は画面上に指示した点、12はスケジュール・
テーブルを表わす。
FIG. 1 is a diagram illustrating the principle of the present invention, FIG. 2 is an explanatory diagram illustrating a mesh scanning order setting process, and FIG. 3 is a flowchart of a process according to an embodiment of the present invention. In the figure, 1 is a rectangular area extraction processing unit, 2 is a mesh creation processing unit, 3 is a pseudo closed figure processing unit, 4 is a position determination processing unit, 5 is a closed figure, 8 is a rectangular area, 9 is a pseudo closed figure, 10 11 is the point specified on the screen, 12 is the schedule
Represents a table.

Claims (1)

【特許請求の範囲】 表示画面上に閉図形(5)を表示すると共に、表示画面
上で指示した点(11)が上記閉図形(5)内に位置す
るか否かを調べるトラッピング処理方式において、 上記閉図形(5)を囲う矩形領域(8)を抽出する矩形
領域抽出処理部(1)と、 該矩形領域抽出処理部(1)によって抽出された矩形領
域(8)内をm×n個のメッシュ(10)に区分して、
当該各メッシュ(10)にラベルを付与するメッシュ作
成処理部(2)と、当該メッシュ作成処理部(2)によ
って与えられた各メッシュ(10)が上記閉図形(5)
に属するか否かを調べて、当該閉図形(5)に対応する
擬似閉図形(9)を得る擬似閉図形処理部(3)と、 当該擬似閉図形処理部(3)によって与えられる擬似閉
図形(9)を構成する閉図形内メッシュ(10)につい
て、上記画面上で指示した点(11)が当該閉図形内メ
ッシュ(10)内に位置するか否かを調べる位置決定処
理部(4)と をそなえ、 上記位置決定処理部(4)によって調べた結果にもとづ
いて、上記画面上で指示した点(11)と上記閉図形(
5)との位置関係を決定するようにした ことを特徴とするトラッピング処理方式。
[Claims] In a trapping processing method that displays a closed figure (5) on a display screen and checks whether a point (11) designated on the display screen is located within the closed figure (5). , a rectangular area extraction processing unit (1) that extracts a rectangular area (8) surrounding the closed figure (5), and a rectangular area (8) extracted by the rectangular area extraction processing unit (1) into m×n divided into meshes (10),
A mesh creation processing unit (2) that gives a label to each mesh (10), and each mesh (10) provided by the mesh creation processing unit (2) is the closed figure (5).
a pseudo-closed figure processing unit (3) which obtains a pseudo-closed figure (9) corresponding to the closed figure (5) by checking whether the closed figure belongs to the pseudo-closed figure given by the pseudo-closed figure processing unit (3); A position determination processing unit (4) that examines whether or not the point (11) specified on the screen is located within the closed-figure mesh (10) constituting the figure (9). ), and based on the results investigated by the position determination processing unit (4), the point (11) specified on the screen and the closed figure (
5) A trapping processing method characterized in that the positional relationship with the trapping processing method is determined.
JP25257286A 1986-10-23 1986-10-23 Trapping processing system Pending JPS63106079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25257286A JPS63106079A (en) 1986-10-23 1986-10-23 Trapping processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25257286A JPS63106079A (en) 1986-10-23 1986-10-23 Trapping processing system

Publications (1)

Publication Number Publication Date
JPS63106079A true JPS63106079A (en) 1988-05-11

Family

ID=17239242

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25257286A Pending JPS63106079A (en) 1986-10-23 1986-10-23 Trapping processing system

Country Status (1)

Country Link
JP (1) JPS63106079A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0311472A (en) * 1989-06-08 1991-01-18 Nec Corp Area judging processing system
JP2010176329A (en) * 2009-01-28 2010-08-12 Sony Corp Information processing apparatus, animation addition method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0311472A (en) * 1989-06-08 1991-01-18 Nec Corp Area judging processing system
JP2010176329A (en) * 2009-01-28 2010-08-12 Sony Corp Information processing apparatus, animation addition method, and program
US8860730B2 (en) 2009-01-28 2014-10-14 Sony Corporation Information processing apparatus, animation method, and program

Similar Documents

Publication Publication Date Title
CA1213085A (en) Method and apparatus for image compression and manipulation
Arabnia A parallel algorithm for the arbitrary rotation of digitized images using process-and-data-decomposition approach
US20080292215A1 (en) Selective text flipping and image mirroring system and method
CN109064483B (en) Picture anti-aliasing method and device for LCD screen, single chip microcomputer and storage medium
JPS63106079A (en) Trapping processing system
CN112288672B (en) Tumor detection method and tumor detection device
JP3078088B2 (en) Character image synthesis display device
KR970071296A (en) Volume rendering devices and suitable methods
JPH0668761B2 (en) Small particle removal method
JP2613589B2 (en) Mask processing method
JPH0738240B2 (en) Image-based knowledge-based fault detection system
YAMANOUE et al. A Figure Programming Language
EP0067236B1 (en) Character and figure isolating and extracting system
JPH04312183A (en) Picture processor
JPS6352271A (en) Document picture processing method
JPH0683924A (en) Image editing device
JP2784059B2 (en) Method and apparatus for removing noise from binary image
JP2652435B2 (en) Image display method
JPS63141182A (en) Deciding system for graphic passing through specified area
JPS63142421A (en) Multiwindow display control system
JPH01189773A (en) Display information picking system
JPH04152483A (en) Device and method for extracting graphic segmenting boundary
Arabnia A scanline algorithm targeted at SIMD machine architectures
IE54824B1 (en) Image data transfer method
JPS6359683A (en) Graphic drawing system