CN1112634C - A hierarchical comparison device for polygonal images - Google Patents

A hierarchical comparison device for polygonal images Download PDF

Info

Publication number
CN1112634C
CN1112634C CN 94118984 CN94118984A CN1112634C CN 1112634 C CN1112634 C CN 1112634C CN 94118984 CN94118984 CN 94118984 CN 94118984 A CN94118984 A CN 94118984A CN 1112634 C CN1112634 C CN 1112634C
Authority
CN
China
Prior art keywords
level
depth data
color code
layer
output
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
CN 94118984
Other languages
Chinese (zh)
Other versions
CN1123939A (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.)
United Microelectronics Corp
Original Assignee
United Microelectronics Corp
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 United Microelectronics Corp filed Critical United Microelectronics Corp
Priority to CN 94118984 priority Critical patent/CN1112634C/en
Publication of CN1123939A publication Critical patent/CN1123939A/en
Application granted granted Critical
Publication of CN1112634C publication Critical patent/CN1112634C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

The polygon portrait level comparing device is composed of plural level processing units, which includes: a depth register for storing depth data representing the polygon image; a color code register for storing color code data representing the polygon image; a level controller as a control device for outputting color code data, wherein when the image is to be displayed, the level controller receives the depth data of the depth register and compares the depth data with the depth data output by the next level processing unit, and when the depth data with the lightest level is found, the level controller of the next level processing unit outputs a control signal to enable the color code register to output the color code data; and a tri-state buffer.

Description

多边形画像的层次比较装置A hierarchical comparison device for polygonal images

本发明是关于一种多边形画像的层次比较装置,特别是关于一种由复数级层次处理单元构成的层次比较装置。The present invention relates to a layer comparison device for polygonal images, in particular to a layer comparison device composed of complex layer processing units.

通常在处理多层次或多种深度的多边形画像时,所使用的熟知装置大多为图场深度寄存器(Z-Frame Buffer),其经由图场寄存器来储存各种多边形的画像,再逐一比较其深度以得出层次最浅的画像,而上述的过程将导致处理速度过于缓慢,且所需存储容量亦十分庞大。Usually, when dealing with multi-level or multi-depth polygonal images, most of the well-known devices used are field depth registers (Z-Frame Buffer), which store various polygonal images through field registers, and then compare their depths one by one. In order to obtain the image with the shallowest level, and the above-mentioned process will cause the processing speed to be too slow, and the required storage capacity is also very large.

有鉴于此,本发明的目的是为了解决上述问题而提供一种多边形画像的层次比较装置,用以节省存储器并在短时间内找出层次最浅的画像,其中,该装置是由复数级的层次处理单元组成,又,该层次处理单元更包括:In view of this, the object of the present invention is to provide a kind of level comparison device of polygonal image in order to solve the above-mentioned problem, in order to save memory and find out the image with the shallowest level in a short time, wherein, this device is made up of multiple levels It consists of a hierarchical processing unit, and the hierarchical processing unit further includes:

一深度寄存器,用以储存代表多边形画像的深度数据;A depth register for storing depth data representing a polygon image;

一色码寄存器,用以储存代表多边形画像的色码数据;a color code register, used to store color code data representing the polygon image;

一层次控制器(Layer Controller),用以作色码数据输出控制装置,当各级的层次控制器比较出某一级层次处理单元内所含为层次最浅的深度数据时,即由该级输出色码数据;以及A layer controller (Layer Controller) is used as a color code data output control device. When the layer controllers of each level compare the depth data contained in the layer processing unit of a certain level as the shallowest level, the output color code data; and

一三态缓冲器,是由层次控制器输出的控制信号驱动,并可为色码数据的输出提供多工器的功能。A three-state buffer is driven by the control signal output by the layer controller, and can provide the function of multiplexer for the output of color code data.

为使本发明的上述目的、特征和优点能更明显易懂,特举一较佳实施例,并配合附图,作详细说明如下:In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and understandable, a preferred embodiment is specifically cited, and in conjunction with the accompanying drawings, it is described in detail as follows:

附图的简要说明Brief description of the drawings

图1是用以显示本发明层次比较装置的方框图;Fig. 1 is a block diagram for showing the hierarchical comparison device of the present invention;

图2是用以显示一层次控制器的电路图。FIG. 2 is a circuit diagram showing a layer controller.

现请参阅图1,本发明的多边形画像的层次比较装置,是由复数组的层次处理单元所组成,其中,以层次处理单元20及级数间的工作关系为例,说明如下:Referring now to Fig. 1, the level comparison device of the polygonal portrait of the present invention is made up of the level processing units of complex arrays, wherein, taking the working relationship between the level processing unit 20 and the series as an example, it is described as follows:

(1)一层次处理单元20,包括:(1) A first-level processing unit 20, including:

一深度寄存器Z2,其用以储存代表多边形画像的深度数据d2;A depth register Z2, which is used to store the depth data d2 representing the polygon image;

一色码寄存器C2,其用以储存代表多边形画像的色码数据;A color code register C2, which is used to store the color code data representing the polygon image;

一层次控制器L2,具有一输入致能线EN2,当画像欲显示时,即由一控制多边形画像形状的电路(未显示于图中)输出一致能信号EN2至层次控制器L2,此时,层次控制器L2会由Zb2接收来自该级深度寄存器Z2的深度数据d2,及由Zi2接收下一级传送上来较浅的深度数据Zo3,将两个深度数据d2与Zo3比较,可得出何者的深度数据层次较浅,并经由深度数据输出端Zo2再送往上一级继续比较,又,此时,在上述的比较过程中,层次控制器L2会由gi2接收来自上一级的控制信号go1以得知由该级Zo2输出的深度数据与上一级的深度数据d1的比较结果,最末并依此结果决定层次控制器L2的输出值out2,且传送一控制信号go2至下一级层次控制器L3;A level controller L2 has an input enable line EN2. When the image is to be displayed, a circuit (not shown in the figure) that controls the shape of the polygonal image outputs an enable signal EN2 to the level controller L2. At this time, The level controller L2 will receive the depth data d2 from the depth register Z2 of the level through Zb2, and receive the shallower depth data Zo3 from the next level through Zi2, and compare the two depth data d2 with Zo3 to find out which one is the best The level of depth data is relatively shallow, and it is sent to the upper level through the depth data output terminal Zo2 to continue the comparison. At this time, in the above comparison process, the level controller L2 will receive the control signal go1 from the upper level through gi2 In order to know the comparison result between the depth data output by this level Zo2 and the depth data d1 of the previous level, and finally determine the output value out2 of the level controller L2 according to the result, and send a control signal go2 to the next level Controller L3;

一三态缓冲器b2,其用以接收色码寄存器C2的色码数据,具有多工器的功能,并由层次控制器L2的输出值out2控制其动作。A tri-state buffer b2 is used to receive the color code data of the color code register C2, has the function of a multiplexer, and its action is controlled by the output value out2 of the layer controller L2.

(2)级数间的工作关系:(2) Working relationship between series:

假设该多边形画像的层次比较装置是由3级层次处理单元10、20、30构成,则Assuming that the level comparison device of the polygonal image is composed of three levels of level processing units 10, 20, 30, then

(a)层次处理单元30将该级深度数据d3由Zo3传送至层次处理单元20。(a) The layer processing unit 30 transmits the layer depth data d3 from Zo3 to the layer processing unit 20 .

(b)层次处理单元20由Zi2接收下一级层次处理单元30的深度数据d3,并由Zb2接收该级深度数据d2,若经两者相互比较得出深度数据d2层次较浅,则送出控制信号go2去抑制下一级层次处理单元30的色码输出,并将深度数据d2送往上一级层次处理单元10继续比较。(b) The level processing unit 20 receives the depth data d3 of the next level level processing unit 30 through Zi2, and receives the depth data d2 of this level through Zb2. The signal go2 suppresses the color code output of the next level processing unit 30, and sends the depth data d2 to the upper level processing unit 10 for further comparison.

(c)层次处理单元10由Zi1接收下一级层次处理单元20的深度数据d2,并由Zb1接收该级深度数据d1,经两者相互比较得出深度数据d2层次仍是较浅,于是送出控制信号go1去驱动下一级层次处理单元20的色码输出,而因层次处理单元10为最顶级,因此由控制信号go1抑制该级的色码输出。(c) The level processing unit 10 receives the depth data d2 of the next level level processing unit 20 from Zi1, and receives the depth data d1 of this level through Zb1. After comparing the two, it is found that the level of the depth data d2 is still relatively shallow, so it is sent out The control signal go1 is used to drive the color code output of the next level processing unit 20, and because the level processing unit 10 is at the top level, the control signal go1 suppresses the color code output of this level.

(d)综上所述,层次处理单元20的深度数据d2层次最浅,因此接收控制信号go1后,由层次控制器L2的输出值out2驱动该级的三态缓冲器b2,使色码能输出至调色盘(RAM DAC),另外,层次处理单元10与30因其深度数据d1、d3并非最浅,故接收控制信号go1、go2后,由层次控制器L1、L3输出值out1、out3来抑制三态缓冲器b1、b3,使色码不能输出。(d) To sum up, the depth data d2 of the layer processing unit 20 has the shallowest layer, so after receiving the control signal go1, the output value out2 of the layer controller L2 drives the tri-state buffer b2 of this stage, so that the color code can Output to the color palette (RAM DAC). In addition, because the depth data d1 and d3 of the layer processing units 10 and 30 are not the shallowest, after receiving the control signals go1 and go2, the layer controllers L1 and L3 output the values out1 and out3 To suppress the tri-state buffer b1, b3, so that the color code cannot be output.

因此,本发明的多边形画像的层次比较装置可以不须大量的存储器,并且能以很快的处理速度抓到层次最浅的深度数据。Therefore, the layer comparison device for polygonal images of the present invention does not need a large amount of memory, and can capture the depth data with the shallowest layer at a very fast processing speed.

现请参阅图2,有关于层次控制器L2的电路装置,包括:Referring now to Fig. 2, there is a circuit device about the layer controller L2, including:

一比较器P2,其输入端A接收来自深度寄存器Z2的深度数据d2,并由输入端B接收来自下一级层次较浅的深度数据Zo3,经由比较器P2比较,若深度数据d2层次较浅,则比较器P2输出一逻辑1的信号O2,若深度数据Zo3层次较浅,则比较器P2输出一逻辑0的信号O2;A comparator P2, whose input terminal A receives the depth data d2 from the depth register Z2, and the input terminal B receives the depth data Zo3 from the lower layer, which is relatively shallow, and is compared by the comparator P2. If the depth data d2 is relatively shallow , the comparator P2 outputs a signal O2 of logic 1, if the level of the depth data Zo3 is relatively shallow, the comparator P2 outputs a signal O2 of logic 0;

一与门U1,连接一致能线EN2及一来自比较器P2的信号O2,且两者透过与门U1输出一比较信号g2;An AND gate U1, connected to the enable line EN2 and a signal O2 from the comparator P2, and the two output a comparison signal g2 through the AND gate U1;

一多工器M2,其致能端S连接比较信号g2,其输入1端接收该级的深度数据d2,其输入0端则接收来自下一级层次较浅的深度数据Zo3,当比较信号g2为逻辑1时,多工器M2由输出端Zo2传送该级深度数据d2至上一级层次处理单元10,当比较信号g2为逻辑0时,多工器M2由输出端Zo2传送来自下一级的深度数据Zo3至上一级层次处理单元10;A multiplexer M2, its enabling terminal S is connected to the comparison signal g2, its input terminal 1 receives the depth data d2 of this level, and its input terminal 0 receives the shallower depth data Zo3 from the next level, when the comparison signal g2 When it is logic 1, the multiplexer M2 transmits the depth data d2 of this level to the upper level processing unit 10 through the output terminal Zo2, and when the comparison signal g2 is logic 0, the multiplexer M2 transmits the data from the next level through the output terminal Zo2 Depth data Zo3 to the upper level processing unit 10;

一或门U2,其连接一该级比较信号g2及一由gi2处接收的上一级层次处理单元10的控制信号go1,两者透过或门U2输出一控制信号go2至下一级;An OR gate U2, which is connected to a comparison signal g2 of this level and a control signal go1 of the upper level processing unit 10 received by gi2, and the two output a control signal go2 to the next level through the OR gate U2;

一与门U3,其连接一该级比较信号g2及一来自上一级的反相控制信号go1,用以产生输出值out2;An AND gate U3, which is connected to a comparison signal g2 of the stage and an inversion control signal go1 from the upper stage to generate the output value out2;

当比较器P2拿来自下一级的深度数据Zo3与该级的深度数据d2比较得出深度数据d2较浅时,即送出一逻辑1的信号02,并透过与门U1送出一逻辑1的比较信号g2,由该比较信号g2打开多工器M2使深度数据d2得以传送至上一级继续比较;When the comparator P2 compares the depth data Zo3 from the next stage with the depth data d2 of this stage and finds that the depth data d2 is shallower, it sends a logic 1 signal 02, and sends a logic 1 signal through the AND gate U1 The comparison signal g2, the multiplexer M2 is opened by the comparison signal g2 so that the depth data d2 can be transmitted to the upper level to continue the comparison;

又当上一级层次处理单元10比较得出的深度数据d2仍是较浅时,则送出一逻辑0的控制信号go1至层次处理单元20,该控制信号go1,其一经反相输入端成为逻辑1的go1,并和逻辑1的比较信号g2透过与门U3使输出值out2变为逻辑1,如此可驱动三态缓冲器b2使色码输出,其二为与比较信号g2透过或门U2输出逻辑1的控制信号go2去抑制以下各级层次处理单元的三态缓冲器,使色码不能输出。And when the depth data d2 obtained by the comparison of the upper-level layer processing unit 10 is still relatively shallow, a control signal go1 of logic 0 is sent to the layer processing unit 20, and the control signal go1 becomes logic 0 through the inverting input terminal. The go1 of 1, and the comparison signal g2 of logic 1 makes the output value out2 become logic 1 through the AND gate U3, so that the tri-state buffer b2 can be driven to output the color code, and the second is the comparison signal g2 of the logic 1 through the OR gate U2 outputs a logic 1 control signal go2 to suppress the tri-state buffers of the processing units at all levels below, so that the color code cannot be output.

综上所述,本发明的多边形画像的层次比较装置,包括复数级的层次处理单元,其利用各级的层次控制器比较各种深度数据,将层次较浅的深度数据继续送往上级比较,同时回送控制信号去关闭储存的深度数据非最浅的层次处理单元,直至最后,仅储存深度数据最浅的层次处理单元可以送出色码数据至调色盘。To sum up, the layer comparison device for polygonal portraits of the present invention includes multiple layers of layer processing units, which use layer controllers at all levels to compare various depth data, and continue to send shallower layer depth data to the upper level for comparison. At the same time, a control signal is sent back to turn off the layer processing unit that does not have the shallowest depth data stored, until finally, only the layer processing unit that stores the shallowest depth data can send the color code data to the palette.

虽然本发明以一较佳实施例披露如上,然其并非用以限定本发明,因此本发明的保护范围当视后附的权利要求范围所界定者为准。Although the present invention is disclosed above with a preferred embodiment, it is not intended to limit the present invention. Therefore, the scope of protection of the present invention should be defined by the appended claims.

Claims (2)

1、一种多边形画像的层次比较装置,由复数级的层次处理单元组成,其用以决定层次最浅的画像,每级层次处理单元包括:1. A layer comparison device for polygonal images, which is composed of multiple levels of layer processing units, which are used to determine the image with the shallowest layer, and each level of layer processing units includes: 一深度寄存器,用以储存代表多边形画像的深度数据;A depth register for storing depth data representing a polygon image; 一色码寄存器,用以储存代表多边形画像的色码数据;a color code register, used to store color code data representing the polygon image; 一层次控制器,用以作色码数据输出的控制装置,当画像欲显示时,该层次控制器即接收前述深度寄存器的深度数据,并与下一级层次处理单元输出的深度数据比较,同时,将两者中层次较浅的深度数据传送至上一级层次处理单元继续比较,直至确认出某一级层次处理单元储存的深度数据的层次最浅,即回送一控制信号至该级层次控制器以使该级色码寄存器输出色码数据;以及A layer controller is used as a control device for outputting color code data. When the image is to be displayed, the layer controller receives the depth data of the aforementioned depth register and compares it with the depth data output by the next layer processing unit, and at the same time , transmit the shallower depth data of the two to the upper level processing unit to continue the comparison until it is confirmed that the depth data stored in a certain level processing unit has the shallowest level, that is, send back a control signal to the level controller To make the color code register of this level output the color code data; and 一三态缓冲器,由层次控制器输出的控制信号驱动,并可为色码数据的输出提供多工器的功能。A three-state buffer is driven by the control signal output by the layer controller, and can provide the function of multiplexer for the output of color code data. 2、如权利要求1所述的装置,其中,该层次控制器更包括:2. The apparatus of claim 1, wherein the hierarchical controller further comprises: 一比较器,其输入端用以接收该级及来自下级层次控制器的深度数据,经由比较器比较两者的层次关系,即可得一比较结果并输出比较信号,又,比较信号可透过门电路传送控制信号至三态缓冲器及下级层次控制器,用以控制各级的色码数据输出状态;A comparator, the input end of which is used to receive the depth data of the level and from the lower level controller, compare the hierarchical relationship between the two through the comparator, and then obtain a comparison result and output a comparison signal, and the comparison signal can pass through the gate The circuit transmits the control signal to the three-state buffer and the lower-level controller to control the output status of the color code data at each level; 一多工器,其输入端用以接收该级及来自下级层次控制器的深度数据,其致能端则接收比较器输出的比较信号,即由比较器的比较信号使多工器致能,多工器选择两者中层次较浅的深度数据,用以送往上一级层次控制器并继续进行比较。A multiplexer, the input end of which is used to receive the depth data of the level and from the lower layer controller, and the enable end receives the comparison signal output by the comparator, that is, the comparison signal of the comparator enables the multiplexer, The multiplexer selects the shallower depth data from the two to be sent to the upper level controller for further comparison.
CN 94118984 1994-11-29 1994-11-29 A hierarchical comparison device for polygonal images Expired - Lifetime CN1112634C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 94118984 CN1112634C (en) 1994-11-29 1994-11-29 A hierarchical comparison device for polygonal images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 94118984 CN1112634C (en) 1994-11-29 1994-11-29 A hierarchical comparison device for polygonal images

Publications (2)

Publication Number Publication Date
CN1123939A CN1123939A (en) 1996-06-05
CN1112634C true CN1112634C (en) 2003-06-25

Family

ID=5039073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 94118984 Expired - Lifetime CN1112634C (en) 1994-11-29 1994-11-29 A hierarchical comparison device for polygonal images

Country Status (1)

Country Link
CN (1) CN1112634C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1032810A (en) * 1996-07-15 1998-02-03 Matsushita Electric Works Ltd Image-processing inspecting device
CN100336386C (en) * 2005-08-22 2007-09-05 上海广电(集团)有限公司中央研究院 Image enhancement method for controlling digital image mean brightness
CN1333585C (en) * 2005-09-14 2007-08-22 上海广电(集团)有限公司中央研究院 Method for conducting dynamic video-level treatment based on maximum-minimum value

Also Published As

Publication number Publication date
CN1123939A (en) 1996-06-05

Similar Documents

Publication Publication Date Title
JP2994926B2 (en) Method for creating finite state machine, method for creating pattern matching machine, method for transforming them, and method for driving
US20140337262A1 (en) Convolution operation circuit and object recognition apparatus
Dunham et al. Design by natural selection
US20070113003A1 (en) Obtaining search results for content addressable memory
JP4044586B2 (en) Method and system for performing Boolean operations on bit strings using maximum bit slices
CN1112634C (en) A hierarchical comparison device for polygonal images
JPS62187977A (en) Image data processor
CN110738317A (en) FPGA-based deformable convolution network operation method, device and system
CN101030441A (en) Method and apparatus for reading and sampling data of DDR and DDR2 memory controller
JPS6055475A (en) Extracting device of boundary line
JP2003150957A5 (en)
JP2003196660A (en) Fingerprint image determination device and program
US6487550B1 (en) Method and apparatus for finding a first element
JP2561308B2 (en) Data stacking device
CN1073727C (en) Parameterized multi-level image display device
CN115658145B (en) Data cyclic shift method and circuit, and chip
US7313275B2 (en) Method of separating text and graphs in digital image data
JP2976418B2 (en) Pattern matching processing device
RU2195703C2 (en) Situation identifying device
JPS60221873A (en) Binary image thinning processing method
CN1763700A (en) Device and method for detecting key signal in mobile communication terminal
JPH01295568A (en) Picture element synthesis processing unit
JP2587962B2 (en) Pattern judgment device
JP2003324614A (en) Image data coding/decoding system and image display device using the method
JPH0128428B2 (en)

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CX01 Expiry of patent term

Expiration termination date: 20141129

Granted publication date: 20030625