JPH0442712B2 - - Google Patents

Info

Publication number
JPH0442712B2
JPH0442712B2 JP14256186A JP14256186A JPH0442712B2 JP H0442712 B2 JPH0442712 B2 JP H0442712B2 JP 14256186 A JP14256186 A JP 14256186A JP 14256186 A JP14256186 A JP 14256186A JP H0442712 B2 JPH0442712 B2 JP H0442712B2
Authority
JP
Japan
Prior art keywords
coordinate
straight line
coordinate transformation
straight lines
values
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 - Lifetime
Application number
JP14256186A
Other languages
Japanese (ja)
Other versions
JPS62298883A (en
Inventor
Tosha Mima
Toshuki Goto
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 JP14256186A priority Critical patent/JPS62298883A/en
Publication of JPS62298883A publication Critical patent/JPS62298883A/en
Publication of JPH0442712B2 publication Critical patent/JPH0442712B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 [概要] 画像表示装置において、直線の表示速度の向上
のため、座標変換前に直線の簡単な可視、不可視
の判定を行い、不可視の直線を排除することによ
り、座標変換の作用する直線数を低減し、表示速
度を向上させたものである。
[Detailed Description of the Invention] [Summary] In order to improve the display speed of straight lines in an image display device, the coordinates This reduces the number of lines on which conversion is applied and improves display speed.

[産業上の利用分野] 本発明は画像表示装置に係わり、特に直線のク
リツプのための前処理方式に関する。
[Industrial Application Field] The present invention relates to an image display device, and more particularly to a preprocessing method for straight line clipping.

グラフイツク・デイスプレイ装置のような画像
の表示装置において画像の平行移動、回転、拡大
等のような処理を行う場合、直線の両端点の座標
値に対して座標変換を施し、変換後の座標値を直
線発生器に送ることにより直線を表示している。
この際、直線を正しく表示させるためには、予め
定められた表示領域よりはみ出た直線部分を削除
する「クリツプ」という操作を行わなければなら
ない。
When performing processing such as parallel translation, rotation, or enlargement of an image on an image display device such as a graphic display device, coordinate transformation is performed on the coordinate values of both end points of a straight line, and the coordinate values after the transformation are A straight line is displayed by sending it to a straight line generator.
At this time, in order to display the straight line correctly, an operation called "clip" must be performed to delete the straight line portion that protrudes from a predetermined display area.

これらの座標変換−クリツプという一連の処理
は応答性の向上の面から、できるだけ高速に行う
ことが望ましい。
From the viewpoint of improving responsiveness, it is desirable that the series of processes of coordinate transformation and clipping be performed as quickly as possible.

[従来の技術] 従来のクリツプ技術の原理を示すブロツク図を
第5図に示す。図中、11,12,13はそれぞ
れ直線の端点座標値、座標変換パラメータ、およ
び表示領域の境界値を格納するレジスタである。
[Prior Art] A block diagram showing the principle of the conventional clipping technique is shown in FIG. In the figure, numerals 11, 12, and 13 are registers that store coordinate values of end points of straight lines, coordinate conversion parameters, and boundary values of display areas, respectively.

4は座標変換手段であり、5はクリツプ手段で
ある。
4 is a coordinate transformation means, and 5 is a clip means.

レジスタ11にある直線の両端点の座標値は、
データ線aを介して座標変換手段4に送られる。
The coordinate values of both end points of the straight line in register 11 are
It is sent to the coordinate conversion means 4 via the data line a.

座標変換手段4では、データ線bを介してレジ
スタ12から得られる座標変換パラメータに従つ
て、直線の端点に対して座標変換を施し、その結
果の座標値をデータ線dを介して出力する。
The coordinate transformation means 4 performs coordinate transformation on the end points of the straight line according to the coordinate transformation parameters obtained from the register 12 via the data line b, and outputs the resulting coordinate values via the data line d.

クリツプ手段5では、この座標値と、データ線
cを介してレジスタ13から読み出された表示領
域の境界値を比較し、直線のうち領域外にある部
分を削除する、いわゆる「刈り込み」処理を行い
その結果ををデータ線eを介して出力する。
The clipping means 5 compares this coordinate value with the boundary value of the display area read out from the register 13 via the data line c, and performs a so-called "pruning" process in which the portion of the straight line outside the area is deleted. and outputs the result via data line e.

[発明が解決しようとする問題点] 従来のクリツプ方式では、クリツプ処理が座標
変換処理の後に置かれているため、総ての直線に
対して座標変換を施す必要がある。
[Problems to be Solved by the Invention] In the conventional clipping method, clip processing is performed after coordinate transformation processing, and therefore it is necessary to perform coordinate transformation on all straight lines.

座標変換のパラメータによつては、例えば極端
な拡大処理の場合には、直線の大部分が表示領域
より完全にはみ出るが、それらの直線に対しても
座標変換処理を施さなければならない。
Depending on the coordinate transformation parameters, for example, in the case of extreme enlargement processing, most of the straight lines will completely protrude from the display area, but the coordinate transformation processing must also be applied to these straight lines.

座標変換処理は、乗算の回数が多く時間のかか
る処理であり、座標変換処理の対象数が多く、且
つ無駄なものを含むことによつて、効率が悪く、
全体の表示速度の低下を招いている。
Coordinate transformation processing is a time-consuming process that involves a large number of multiplications, and is inefficient due to the large number of objects to be transformed and the inclusion of useless items.
This causes a decrease in the overall display speed.

本発明は、このような従来の問題点を解消した
直線のクリツプのための前処理部を備えた画像表
示装置を提供しとうとするものである。
SUMMARY OF THE INVENTION The present invention aims to provide an image display device equipped with a pre-processing section for straight line clipping which solves the above-mentioned conventional problems.

[問題点を解決するための手段] 第1図は本発明の画像表示装置における直線の
クリツプのための前処理部の原理ブロツク図を示
す。
[Means for Solving the Problems] FIG. 1 shows a principle block diagram of a preprocessing section for clipping a straight line in an image display device of the present invention.

第1図において、11,12,13はそれぞ
れ、直線の端点座標値、座標変換パラメータ、お
よび表示領域境界値を格納するレジスタである。
In FIG. 1, numerals 11, 12, and 13 are registers that store coordinate values of end points of straight lines, coordinate conversion parameters, and display area boundary values, respectively.

2は逆座標変換手段であつて、表示領域境界値
を座標変換パラメータに従つて逆座標変換する。
Reference numeral 2 denotes an inverse coordinate transformation means which performs inverse coordinate transformation of the display area boundary value in accordance with coordinate transformation parameters.

3は不要直線排除手段であつて、逆座標変換手
段2により逆変換された表示領域境界値と、直線
の端点座標値との比較により明らかに表示領域の
外に配置される直線を排除する。
Reference numeral 3 denotes an unnecessary straight line eliminating means, which eliminates straight lines that are clearly located outside the display area by comparing the display area boundary value reversely transformed by the inverse coordinate transformation means 2 with the coordinate values of the end points of the straight line.

4は座標変換手段であつて、不要直線排除手段
3により排除された以外の直線の端点の座標変換
を行う。
Reference numeral 4 denotes a coordinate transformation means which performs coordinate transformation of end points of straight lines other than those excluded by the unnecessary straight line elimination means 3.

5はクリツプ手段であつて、座標変換手段4の
出力した座標値と、表示領域の境界値を比較し、
直線のうち領域外にある部分を削除する、 [作用] 逆座標変換手段2は、表示領域境界値を座標変
換パラメータを用いて逆変換することによつて、
座標変換実行前の時点で、不要直線排除手段3に
おいて不要直線と判定するための境界値を算出す
ることができる。
Reference numeral 5 denotes a clipping means, which compares the coordinate values output from the coordinate conversion means 4 with the boundary values of the display area;
[Operation] The inverse coordinate transformation means 2 deletes the part of the straight line that is outside the area. By inversely transforming the display area boundary value using the coordinate transformation parameter,
Before executing the coordinate transformation, the unnecessary straight line eliminating means 3 can calculate a boundary value for determining an unnecessary straight line.

不要直線排除手段3においては、直線の端点座
標値と逆座標変換手段2が算出した境界値とを比
較し、明らかに領域外となる直線を排除すること
ができる。
The unnecessary straight line elimination means 3 compares the coordinate values of the end points of the straight lines with the boundary values calculated by the inverse coordinate transformation means 2, and can eliminate straight lines that are obviously outside the area.

これによつて、座標変換を施す直線の数は削減
され、全体の処理速度を向上する。
As a result, the number of straight lines subjected to coordinate transformation is reduced, and the overall processing speed is improved.

[実施例] 以下第2図〜第4図に示す実施例により、本発
明をさらに具体的に説明する。
[Example] The present invention will be described in more detail below with reference to Examples shown in FIGS. 2 to 4.

第2図は、本発明の実施例である2次元ワイヤ
フレーム型(直線のみを対象とし面等を対象とし
ない表示)グラフイツク・デイスプレイのブロツ
ク図である。
FIG. 2 is a block diagram of a two-dimensional wireframe type (display that targets only straight lines and does not target surfaces, etc.) graphic display that is an embodiment of the present invention.

第2図において、1は表示リストバツフアであ
り、直線端点座標値用レジスタ11、座標変換パ
ラメータ用レジスタ12、表示領域境界値用レジ
スタ13およびその他のデータ用レジスタを備え
ている。
In FIG. 2, reference numeral 1 denotes a display list buffer, which includes a register 11 for linear end point coordinate values, a register 12 for coordinate conversion parameters, a register 13 for display area boundary values, and registers for other data.

2は逆座標変換手段であり、3は不要直線排除
回路であり、4は座標変換回路であり、5はクリ
ツプ回路であり、その機能はそれぞれ第1図の2
〜5と同一である。
2 is an inverse coordinate conversion means, 3 is an unnecessary straight line elimination circuit, 4 is a coordinate conversion circuit, and 5 is a clip circuit, each of whose functions are the same as 2 in FIG.
- Same as 5.

6はデイジタル微分解析機(DDA)による直
線発生器であり、端点の座標値よりこれを結ぶ直
線を構成する各点の座標値を発生する。
6 is a straight line generator using a digital differential analyzer (DDA), which generates coordinate values of each point constituting a straight line connecting the end points from the coordinate values of the end points.

7はフレームバツフアであり、画像サイズのメ
モリとして直線発生器6により発生された直線の
形状を記憶する。
A frame buffer 7 stores the shape of a straight line generated by the straight line generator 6 as an image size memory.

8はCRTであり、フレームバツフア7の内容
を画面に表示する。
8 is a CRT, which displays the contents of the frame buffer 7 on the screen.

第3図は、本発明による直線のクリツプのため
の前処理の処理例を説明する図である。
FIG. 3 is a diagram illustrating an example of preprocessing for straight line clipping according to the present invention.

第3図aは、表示リストバツフア1内に格納さ
れた直線端点の座標値より再現した直線群の配置
を示す図である。
FIG. 3a is a diagram showing the arrangement of a group of straight lines reproduced from the coordinate values of the straight line end points stored in the display list buffer 1.

同図bは、これらの直線群に対して、座標変換
パラメータにより座標変換を施した場合の直線の
配置と、表示領域境界値との関係を示す図であ
る。
FIG. 5B is a diagram showing the relationship between the arrangement of straight lines and the display area boundary value when coordinate transformation is performed on these straight line groups using coordinate transformation parameters.

同図cは、aに示す直線群の配置に対し、表示
領域境界値を逆座標変換したものを実線枠で示し
ている。
In FIG. 3c, the display area boundary value obtained by inverse coordinate transformation with respect to the arrangement of the straight line group shown in a is shown by a solid line frame.

この実線枠の頂点の座標値の最大値/最小値か
ら、座標軸に平行な境界を持つ、破線で示すよう
な不要直線排除境界を得る。
From the maximum/minimum coordinate values of the vertices of this solid line frame, an unnecessary straight line exclusion boundary as shown by a broken line having a boundary parallel to the coordinate axis is obtained.

不要直線排除回路3では、各直線の端点座標値
と第3図cに示す不要直線排除境界とを比較判定
し、その結果により不要直線を排除する。
The unnecessary straight line elimination circuit 3 compares and determines the coordinate values of the end points of each straight line with the unnecessary straight line elimination boundary shown in FIG. 3c, and eliminates unnecessary straight lines based on the result.

この比較判定には、通常のクリツプ処理におい
て用いられる“Cohen&Sutherland”のアルゴリ
ズムを適用する。
The "Cohen &Sutherland" algorithm used in normal clip processing is applied to this comparison.

第4図は、不要直線排除判定のアルゴリズムを
説明する図である。
FIG. 4 is a diagram illustrating an algorithm for unnecessary straight line exclusion determination.

図に示すように、不要直線排除境界を中心とし
て9つの領域を設定し、中心の領域には4ビツト
のコード“0000”を付与する。
As shown in the figure, nine areas are set around the unnecessary straight line exclusion boundary, and a 4-bit code "0000" is assigned to the central area.

中央領域より左にある領域には上位の2ビツト
に“01”を付与し、右にある領域には上位の2ビ
ツトに“10”を付与し、また中央領域より上にあ
る領域には下位の2ビツトに“01”を付与し、中
央領域より下にある領域には下位の2ビツトに
“10”を付与する。
For the area to the left of the center area, ``01'' is assigned to the upper 2 bits, ``10'' is assigned to the upper 2 bits for the area to the right, and the lower 2 bits are assigned to the area above the center area. "01" is assigned to the 2 bits of the area, and "10" is assigned to the lower 2 bits of the area below the center area.

このようにして、各領域に付与された4ビツト
のコードは図に示すとおりである。
The 4-bit code assigned to each area in this way is as shown in the figure.

不要直線排除は、「直線の二つの端点が位置す
る領域のコードのビツトごとの論理積において、
“1”のビツトがあればその直線は明らかに領域
“0000”外にある」というアルゴリズムに基づい
て判定する。
Elimination of unnecessary straight lines is carried out by ``in the bitwise logical product of the codes in the area where the two end points of the straight line are located,
The determination is made based on an algorithm that states that if there is a bit of "1", the straight line is clearly outside the region "0000".

例えば、 (1) 直線dの端点は、領域“0100”と領域
“0000”に位置し、それらの論理積は“0000”
となり、“1”のビツトが無いから排除されな
い。
For example, (1) The end points of straight line d are located in the area “0100” and the area “0000”, and their logical product is “0000”.
Therefore, since there is no "1" bit, it is not excluded.

(2) 直線eの端点は、領域“0010”と領域
“1010”に位置し、それらの論理積は“0010”
となり、“1”のビツトがあるから排除の対象
となる。
(2) The end points of straight line e are located in area “0010” and area “1010”, and their logical product is “0010”
Since there is a "1" bit, it is subject to exclusion.

(3) 直線fの端点は、領域“0001”と領域
“1000”に位置し、それらの論理積は“0000”
となり、“1”のビツトが無いから排除されな
い。
(3) The end points of the straight line f are located in the area “0001” and the area “1000”, and their logical product is “0000”.
Therefore, since there is no "1" bit, it is not excluded.

このようして、第3図cに示す直線eのごとく
明らかに不要直線排除境界の外にある直線を排除
し、不要直線排除処理を終了する。
In this way, straight lines that are clearly outside the unnecessary straight line exclusion boundary, such as the straight line e shown in FIG. 3c, are excluded, and the unnecessary straight line exclusion process is completed.

この処理で排除されなかつた直線に対しては座
標変換手段4において座標変換を施し、クリツプ
回路5により通常のクリツプ処理を行い、直線発
生器6によつて直線の座標を発生し、フレームバ
ツフア7に格納されてCRT8において表示され
る。
For the straight lines that were not eliminated by this process, the coordinate transformation means 4 performs coordinate transformation, the clip circuit 5 performs normal clip processing, the straight line generator 6 generates the coordinates of the straight line, and the frame buffer is 7 and displayed on the CRT8.

本実施例では、表示領域境界値を逆変換したデ
ータから不要直線排除境界を生成し、簡単なアル
ゴリズムにより明らかに表示境界外の直線の排除
を判定している。従つて、この不要直線排除に要
する処理時間は非常に少なくて済む。
In this embodiment, an unnecessary straight line exclusion boundary is generated from data obtained by inversely converting the display area boundary value, and a simple algorithm is used to clearly determine the exclusion of straight lines outside the display boundary. Therefore, the processing time required for eliminating unnecessary straight lines can be extremely short.

[発明の効果] 以上説明のように本発明によれば、座標変換を
施した結果明らかに表示領域の外に配置される直
線を、座標変換前にある程度排除でき、多くの処
理時間を要する座標変換の対象本数を削減して、
全体として処理速度の向上が可能であつて、その
実用上の効果は極めて大である。
[Effects of the Invention] As explained above, according to the present invention, it is possible to eliminate to some extent straight lines that are clearly located outside the display area as a result of coordinate transformation, and to avoid coordinates that require a lot of processing time. By reducing the number of files to be converted,
Overall, the processing speed can be improved, and the practical effects thereof are extremely large.

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

第1図は本発明の原理ブロツク図、第2図は本
発明の実施例のブロツク図、第3図は本発明によ
る直線のクリツプのための前処理の処理例を説明
する図、第4図は不要直線排除判定のアルゴリズ
ムを説明する図、第5図は従来のクリツプ技術の
原理を示すブロツク図である。 図面において、1は表示リストバツフア、2は
逆座標変換手段(回路)、3は不要直線排除手段
(回路)、4は座標変換手段(回路)、5はクリツ
プ手段(回路)、6は直線発生器(DDA)、7は
フレームバツフア、8はCRT、11は直線端点
座標値用レジスタ、12は座標変換パラメータ・
レジスタ、13は表示領域境界値レジスタ、をそ
れぞれ示す。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a diagram explaining an example of preprocessing for clipping a straight line according to the present invention, and FIG. 4 5 is a diagram illustrating an algorithm for determining whether unnecessary straight lines are eliminated, and FIG. 5 is a block diagram showing the principle of the conventional clipping technique. In the drawing, 1 is a display list buffer, 2 is an inverse coordinate transformation means (circuit), 3 is an unnecessary straight line eliminating means (circuit), 4 is a coordinate transformation means (circuit), 5 is a clipping means (circuit), and 6 is a straight line generator (DDA), 7 is a frame buffer, 8 is a CRT, 11 is a register for straight line end point coordinate values, 12 is a coordinate transformation parameter.
Registers 13 and 13 indicate display area boundary value registers, respectively.

Claims (1)

【特許請求の範囲】 1 直線の端点座標値を座標変換パラメータに従
つて座標変換する座標変換手段4と、座標変換後
の座標値と表示領域境界値との比較により直線の
刈り込みを行うクリツプ手段5を有する画像表示
装置において、 前記表示領域境界値を前記座標変換パラメータ
に従つて逆座標変換する逆座標変換手段2と、該
逆座標変換手段2により座標変換された境界値
と、前記直線の端点座標値との比較により、表示
領域外に配置される直線を排除する不要直線排除
手段3とを備え、 該排除処理によつて排除されなかつた直線につ
いてのみ座標変換を施し、刈り込み処理を行い表
示するよう構成したことを特徴とする画像表示装
置。
[Scope of Claims] 1. Coordinate conversion means 4 for converting coordinate values of end points of straight lines according to coordinate conversion parameters, and clipping means for pruning straight lines by comparing coordinate values after coordinate conversion with display area boundary values. 5, an inverse coordinate transformation means 2 for inverse coordinate transformation of the display area boundary value according to the coordinate transformation parameter; a boundary value coordinate-transformed by the inverse coordinate transformation means 2; An unnecessary straight line eliminating means 3 is provided which eliminates straight lines located outside the display area by comparison with end point coordinate values, and performs coordinate transformation and pruning processing only for the straight lines that are not eliminated by the elimination process. An image display device configured to display images.
JP14256186A 1986-06-18 1986-06-18 Preprocessing system for linear clipping Granted JPS62298883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14256186A JPS62298883A (en) 1986-06-18 1986-06-18 Preprocessing system for linear clipping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14256186A JPS62298883A (en) 1986-06-18 1986-06-18 Preprocessing system for linear clipping

Publications (2)

Publication Number Publication Date
JPS62298883A JPS62298883A (en) 1987-12-25
JPH0442712B2 true JPH0442712B2 (en) 1992-07-14

Family

ID=15318196

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14256186A Granted JPS62298883A (en) 1986-06-18 1986-06-18 Preprocessing system for linear clipping

Country Status (1)

Country Link
JP (1) JPS62298883A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4982345A (en) * 1989-01-23 1991-01-01 International Business Machines Corporation Interactive computer graphics display system processing method for identifying an operator selected displayed object

Also Published As

Publication number Publication date
JPS62298883A (en) 1987-12-25

Similar Documents

Publication Publication Date Title
EP0360155B1 (en) Image transformation method and device
US6133923A (en) Method and apparatus for texture data
US7978914B2 (en) Image processing system
JPH0442712B2 (en)
JPH0634237B2 (en) Image clipping method
JP3352761B2 (en) Image data position conversion method
JPH06274149A (en) Method and device for varying width of outline font
JP2897876B2 (en) Code data expansion processing method
JP2690385B2 (en) Enlarged display method of arc
JP2991735B2 (en) Buffering method
JPH0229834A (en) Image processor
JP3795564B2 (en) Image expansion processing method
JP2001209813A (en) Method and device for generating two-dimensional pattern
JPH01283679A (en) Circle clip processing system
JP2797660B2 (en) Pixel correction method
JPH01241681A (en) Image processor
JP2835269B2 (en) Image recognition device
JP2561521B2 (en) Spoke register generation circuit
JPH0744730A (en) Image conversion processing method
JPH07203178A (en) Image data processing method
JPS63116193A (en) Affine transformation system for image
JPS62154177A (en) Image converter
JPH03269773A (en) Picture element/vector converter and converting method
JPH11205576A (en) Image processor
JPH0695645A (en) Character shadow processing method for full dot characters