CN100531323C - A method for realizing image layer overlapping - Google Patents

A method for realizing image layer overlapping Download PDF

Info

Publication number
CN100531323C
CN100531323C CNB2007101779427A CN200710177942A CN100531323C CN 100531323 C CN100531323 C CN 100531323C CN B2007101779427 A CNB2007101779427 A CN B2007101779427A CN 200710177942 A CN200710177942 A CN 200710177942A CN 100531323 C CN100531323 C CN 100531323C
Authority
CN
China
Prior art keywords
current layer
layer
stack
district
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2007101779427A
Other languages
Chinese (zh)
Other versions
CN101170651A (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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101779427A priority Critical patent/CN100531323C/en
Publication of CN101170651A publication Critical patent/CN101170651A/en
Application granted granted Critical
Publication of CN100531323C publication Critical patent/CN100531323C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Circuits (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention provides a method for overlaying image layers, which comprises: A, obtaining expected overlay areas of a current and a non-current on video and determining an overlay clipping area on video; B, calculating an overlay area and a non-overlay area between the expected overlay areas of the current layer and the incurrent layer; and C, overlaying the overlay area of the layers and placing in the relevant position in the overlay clipping region and directly placing the non-overlay area of the current layer in the relevant position in the overlay clipping region. The inventive method is easy to operate and realize.

Description

A kind ofly realize scheming the stacked method that adds
Technical field
The present invention relates to the stacked technology that adds of figure on the video, relate in particular to a kind of stacked method that adds that realizes scheming.
Background technology
Carrying out the stack of figure layer signal on vision signal, is a problem that often runs in the multimedia communication.But how rational and effective realizes the stack of figure layer on vision signal, in inquiring into always.
At present, for the technology that vision signal and figure signal superpose, mainly contain Alpha and mix (AlphaBlending) technology.The processing procedure of described Alpha hybrid technology is: at first three color components of RGB with source pixel and object pixel separate; Afterwards, three color components of source pixel be multiply by the value of Alpha respectively, and three color components of object pixel be multiply by the anti-value of Alpha respectively; The result of calculation that to carry out obtaining after the above-mentioned multiplying is by the addition of corresponding color component, again to each color component result of trying to achieve at last maximum divided by Alpha; At last three color components are synthesized a pixel output again.
When adopting this method that the figure layer is superposeed, need the individual element point to carry out corresponding overlap-add procedure, amount of calculation is big, realizes complicated.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of stacked method that adds that realizes scheming, and this method computing is simple, realizes easily.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of stacked method that adds that realizes scheming, this method comprises:
A, obtain current layer and the expectation overlap-add region of non-current layer on video, and the district is cut out in the stack on definite video;
Overlapping region and Non-overlapping Domain between the expectation overlap-add region of B, the expectation overlap-add region of calculating current layer and non-current layer;
C, obtain the superposing control parameter of current layer and non-current layer, put into stack after according to the superposing control parameter of obtaining current layer and the corresponding overlapping region of non-current layer being superposeed and cut out the district, the Non-overlapping Domain of current layer is directly put into stack cut out the district.
Wherein, further comprise before the steps A:
A0, current layer and non-current layer are carried out initialization.
Described superposing control parameter comprises: figure layer identification code ID, overall Alpha and key color.
Further comprise after the step C:
D, with current stack cut out the district on the video stack cut out the district The corresponding area refresh.
Further comprise between steps A and the B:
Whether there is the overlapping region between the expectation overlap-add region of A1, the expectation overlap-add region of judging current layer and non-current layer, if existence, then execution in step B; If there is no, then directly the expectation overlap-add region of current layer is put into after stack cuts out the district execution in step D.
The stacked method that adds of realization figure provided by the present invention, when the figure layer is superposeed, only calculate the overlapping region of two figure layers, use overall A1pha to carry out overlap-add procedure, and need not carry out the computing of each pixel, therefore, make that the operand in the stack significantly reduces, computing is simple, and realizes easily.
Description of drawings
Fig. 1 is the stacked method flow schematic diagram that adds of realization figure of the present invention;
Fig. 2 is the expectation overlap-add region of two figure layers demonstration schematic diagram on video when not having the overlapping region;
Fig. 3 is the expectation overlap-add region of two figure layers demonstration schematic diagram on video when having the overlapping region.
Embodiment
Basic thought of the present invention is: determine to superpose and cut out the district, overlapping region and Non-overlapping Domain between the expectation overlap-add region of calculating current layer and non-current layer; Put into stack after current layer and the corresponding overlapping region of non-current layer superposeed and cut out the relevant position, district, the Non-overlapping Domain of current layer is directly put into stack and is cut out the relevant position, district; Afterwards, cutting out the district with current stack cuts out institute corresponding region, district to stack on the video and refreshes.
Below by specific embodiment and be described with reference to the accompanying drawings the realization of the stacked adding method of figure of the present invention.
Fig. 1 is the stacked method flow schematic diagram that adds of realization figure of the present invention, and as shown in Figure 1, this method comprises:
Step 101:, promptly each figure layer memory buffer, superposing control parameter, initial show state etc. are carried out initialization to the initialization of figure layer.
Wherein, all by the digital form storage, institute's canned data comprises each figure layer: memory buffer, initial show state, superposing control parameter etc.
Described each figure layer comprises current layer and non-current layer, and wherein, current layer is meant need be to the figure layer of current video stack; Non-current layer is meant the figure layer that has existed in the current video.
Described initial show state represents whether this initial show state institute corresponding diagram layer shows on current video; The superposing control parameter comprises: figure layer ID, overall Alpha and key color etc.Wherein, figure layer ID is meant sequence number or the numbering that is associated with layer properties.
For example, when the inventive method is applied to the Linux environment, can use frame buffer zone (Frame Buffer) as the figure layer that holds user interface, it with the window unit interface that on video, superposes, adopt the Nano-X interface shape of MicroWindows, at this moment, at each figure layer, open corresponding Frame Buffer, set the initial attribute of figure layer: overall Alpha and key color and initial show state thereof.Here, described initial show state can be with opening or closing and represent.
Step 102: obtain be added to expectation overlap-add region on the video of current layer and non-current layer expectation, and the district is cut out in the stack on definite video.
Wherein, described expectation overlap-add region is need be added to regional extent on the video of expectation overlap-add region pairing figure layer; Described stack is cut out the district and is need be added to regional extent on the video of current layer, is the respective regions scope of expectation overlap-add region on video of current layer.
Suppose that figure layer A is current layer, figure layer B is non-current layer.At first obtain be added to expectation overlap-add region on the video of current layer A and non-current layer B expectation, with different realm description word preservations, for example, current layer A and non-current layer B describe with ARegion and BRegion respectively; The district is cut out in stack on definite simultaneously video, and expectation overlap-add region The corresponding area scope on video that the district is current layer A is cut out in described stack.Wherein, specifically how determine that according to the expectation overlap-add region of current layer stack on the video cuts out the district and belong to known technology, repeat no more here.
Wherein, expectation overlap-add region specifically how to obtain the figure layer belongs to known technology, repeats no more here.
Step 103: judge between the expectation overlap-add region of the expectation overlap-add region of current layer A and non-current layer B whether have the overlapping region, if having, execution in step 104, if do not have, execution in step 107.
Wherein, specifically how to judge between two figure layers whether exist the overlapping region to belong to known technology, to repeat no more here.
Step 104: the overlapping region between the expectation overlap-add region of calculating current layer A and the expectation overlap-add region of non-current layer B, and the Non-overlapping Domain between the expectation overlap-add region of the expectation overlap-add region of current layer A and non-current layer B.
Wherein, the overlapping region of specifically how to calculate current layer and non-current layer belongs to known technology, repeats no more here.
Step 105: obtain current layer A and the corresponding superposing control parameter of non-current layer B.
Wherein, the not fixedly requirement of the order of this step in processing procedure can change arbitrarily between step 101 and step 106.
Wherein, how to obtain described parameter and belong to known technology, repeat no more here.
Step 106: current layer A and the corresponding overlapping region of non-current layer B with calculating, superpose according to the superposing control parameter of obtaining in the step 105, be placed on the relevant position that the district is cut out in stack afterwards.
Wherein, specifically how the stack of carrying out the overlapping region according to superposing control parameters such as overall Alpha and key colors belongs to known technology, repeats no more here.
Step 107: do not have overlapping Non-overlapping Domain to be placed directly in the relevant position that the district is cut out in stack current layer A and non-current layer B.
Have two kinds of situations in this step: if do not have the overlapping region between the expectation overlap-add region of the expectation overlap-add region of current layer and non-current layer, then the expectation overlap-add region that district's part is directly put into current layer is cut out in stack; As shown in Figure 2, when the expectation overlap-add region 220 of the expectation overlap-add region 210 of current layer A and non-current layer B does not have the overlapping region, then directly the expectation overlap-add region 210 of current layer A is put into the relevant position that the district is cut out in stack.
If there are the overlapping region in current layer and non-current layer, then the Non-overlapping Domain in the current layer that calculates are put into stack and cut out corresponding position, district.As shown in Figure 3, be added with the lap of the overlapping region 310 of lattice shape blank map for the expectation overlap-add region of the expectation overlap-add region of current layer A and non-current layer B, Non-overlapping Domain 320 is the non-overlapped part of the expectation overlap-add region of the expectation overlap-add region of current layer A and non-current layer B; Overlapping region 310 is altogether with Non-overlapping Domain 320: the expectation overlap-add region of current layer A, the district is cut out in its promptly corresponding stack on video.
Step 108: with current stack cut out the district on the video stack cut out the district The corresponding area refresh.
Wherein, step 101, step 103, step 108 are optional step.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (5)

1, a kind ofly realize scheming the stacked method that adds, it is characterized in that this method comprises:
A, obtain current layer and the expectation overlap-add region of non-current layer on video, and the district is cut out in the stack on definite video;
Overlapping region and Non-overlapping Domain between the expectation overlap-add region of B, the expectation overlap-add region of calculating current layer and non-current layer;
C, obtain the superposing control parameter of current layer and non-current layer, put into stack after according to the superposing control parameter of obtaining current layer and the corresponding overlapping region of non-current layer being superposeed and cut out the district, the Non-overlapping Domain of current layer is directly put into stack cut out the district.
2, the stacked method that adds of realization figure according to claim 1 is characterized in that, further comprises before the steps A:
A0, current layer and non-current layer are carried out initialization.
3, the stacked method that adds of realization figure according to claim 1 is characterized in that, described superposing control parameter comprises: figure layer identification code ID, overall Alpha and key color.
4, the stacked method that adds of realization figure according to claim 1 and 2 is characterized in that, further comprises after the step C:
D, with current stack cut out the district on the video stack cut out the district The corresponding area refresh.
5, the stacked method that adds of realization figure according to claim 4 is characterized in that, further comprises between steps A and the B:
Whether there is the overlapping region between the expectation overlap-add region of A1, the expectation overlap-add region of judging current layer and non-current layer, if existence, then execution in step B; If there is no, then directly the expectation overlap-add region of current layer is put into after stack cuts out the district execution in step D.
CNB2007101779427A 2007-11-22 2007-11-22 A method for realizing image layer overlapping Expired - Fee Related CN100531323C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101779427A CN100531323C (en) 2007-11-22 2007-11-22 A method for realizing image layer overlapping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101779427A CN100531323C (en) 2007-11-22 2007-11-22 A method for realizing image layer overlapping

Publications (2)

Publication Number Publication Date
CN101170651A CN101170651A (en) 2008-04-30
CN100531323C true CN100531323C (en) 2009-08-19

Family

ID=39391097

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101779427A Expired - Fee Related CN100531323C (en) 2007-11-22 2007-11-22 A method for realizing image layer overlapping

Country Status (1)

Country Link
CN (1) CN100531323C (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299328B (en) * 2008-06-19 2010-06-02 华为技术有限公司 Image display method and apparatus
CN101667398B (en) * 2008-09-02 2011-07-13 珠海全志科技有限公司 Layer superposition circuit of display driver and layer processing method
CN101493339B (en) * 2009-02-25 2011-02-09 江苏新科软件有限公司 Working method for implementing smooth rolling of map for navigation apparatus and the navigation apparatus
CN102281381B (en) * 2010-06-12 2016-03-09 无锡中感微电子股份有限公司 A kind of processing method and processing unit carrying out image blend
CN102184720A (en) * 2010-06-22 2011-09-14 上海盈方微电子有限公司 A method and a device for image composition display of multi-layer and multi-format input
CN102572296B (en) * 2010-12-27 2014-12-24 新奥特(北京)视频技术有限公司 Straight through processing method and system of special effect graph
CN102665130B (en) * 2012-05-14 2014-10-15 青岛海信传媒网络技术有限公司 Method and device for displaying application program window and video playing window
CN102724581B (en) * 2012-05-31 2014-08-13 福州瑞芯微电子有限公司 Method for realizing pixel superposition based on 2D (two-dimensional) image accelerator
CN104361556B (en) 2014-10-22 2017-11-28 华为技术有限公司 A kind of image combining method and image chip and vision facilities
WO2016187769A1 (en) * 2015-05-25 2016-12-01 武克易 Method and device for achieving multilayer smoke special effect in video
CN105126343B (en) * 2015-08-27 2019-01-22 网易(杭州)网络有限公司 A kind of the mask display methods and device of 2D game
CN106055294B (en) * 2016-05-23 2019-02-01 福州瑞芯微电子股份有限公司 A kind of figure layer synthesis optimizing method and apparatus
CN107426599B (en) * 2017-06-29 2020-02-07 武汉斗鱼网络科技有限公司 Floating layer management method and system
CN109934795B (en) * 2019-03-04 2021-03-16 京东方科技集团股份有限公司 Display method, display device, electronic equipment and computer readable storage medium
CN112130948A (en) * 2020-09-25 2020-12-25 Oppo广东移动通信有限公司 Display control method and device, computer readable medium and electronic device
CN112616083A (en) * 2020-12-11 2021-04-06 湖南国科微电子股份有限公司 Video display layer superposition processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN101170651A (en) 2008-04-30

Similar Documents

Publication Publication Date Title
CN100531323C (en) A method for realizing image layer overlapping
CN109192054B (en) Data processing method and device for map region merging
CN108829435A (en) A kind of image labeling method and general image annotation tool
EP2669792A1 (en) Method and device for implementing many display modes for general icon
CN106791937A (en) The mask method and system of video image
ATE504897T1 (en) DISPARITY MAP
CN103810728A (en) System, method, and computer program product for inputting modified coverage data into a pixel shader
CN103208115B (en) Based on the saliency method for detecting area of geodesic line distance
TW200513908A (en) Display data mapping method, system, and program product
CN105992120A (en) Upmixing method of audio signals
US8952981B2 (en) Subpixel compositing on transparent backgrounds
CN103729174B (en) Screenshotss method and device
CN104463838A (en) Color video processing system and method, and corresponding computer program
CN106448432A (en) Wind-field multi-element fusion visualization method for map service
CN102572304A (en) Image addition processing method and device
CN103544582A (en) Method of displaying logistics distribution range on map
WO2005031644A8 (en) Method and system for scaling images
CN104461614A (en) Method for processing theme resource and electronic device
CN104020849B (en) Based on multiprogram display packing and the system simultaneously of Windows CE
CN103106671B (en) Method for detecting interested region of image based on visual attention mechanism
CN104461423A (en) Resource information distribution display method and device based on GIS
CN111787240B (en) Video generation method, apparatus and computer readable storage medium
CN110880164B (en) Image processing method, device, equipment and computer storage medium
CN105719335A (en) Map image rendering method and device, and vehicle-mounted terminal
US6983081B2 (en) Method for integration of source object into base image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090819

Termination date: 20161122

CF01 Termination of patent right due to non-payment of annual fee