CN106657813B - A kind of implementation method of video superposition algorithm - Google Patents
A kind of implementation method of video superposition algorithm Download PDFInfo
- Publication number
- CN106657813B CN106657813B CN201611125556.9A CN201611125556A CN106657813B CN 106657813 B CN106657813 B CN 106657813B CN 201611125556 A CN201611125556 A CN 201611125556A CN 106657813 B CN106657813 B CN 106657813B
- Authority
- CN
- China
- Prior art keywords
- video
- fpga
- rgb
- superposition
- rgb value
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
A kind of implementation method of video superposition algorithm of the present invention, belongs to technical field of video image processing, is particularly suitable for needing to realize the method that prospect character graphics is superimposed with background map picture in airborne cockpit display.The present invention realizes video superposition algorithm using its hardware logic resource abundant using FPGA as core processor, in FPGA on piece, ensure that the real-time of algorithm;2 groups of RAM memories of carry are deposited as video image frame outside FPGA simultaneously, ensure that the continuous and smooth of video image.Present invention can apply in airborne cockpit display, compared to traditional video stacking method, the video overlay drafting that the present invention realizes can thoroughly solve sawtooth black surround caused by foreground video image border is handled due to anti-aliasing, and picture display effect is relatively sharp, stablizes.
Description
Technical field
The present invention relates to a kind of realizations of front and back scape video superposition algorithm to belong to technical field of video image processing.It is especially suitable
The method being superimposed for needing to realize prospect character graphics in airborne cockpit display with background map picture.
Background technique
In modern Airborne integrated display system, traditional mechanical instrument replaced all kinds of airborne indicators, flies
The capable various dynamic parameter pictures needed in the process, aircraft instrument parameter can be shown on airbome liquid crystal display.On machine
In practical service environment, according to the related data of aobvious control processor transmission inside airborne indicator, mapping generates corresponding in real time
Character, instrument picture, these, which independently generate picture generally, also needs the outer video (picture such as map, radar sent out with aobvious control processor
Face) it is just shown after superposition, in order to which pilot grasps more comprehensively information.
The pictures such as character, instrument that airborne indicator is autonomously generated generally all are handled by anti-aliasing, to reduce image side
Edge is because of sawtooth effect caused by liquid crystal display pixel discretization.The essence of various anti-aliasing algorithms is all to image border
Tonal gradation is handled so that the RGB gray scale of image border show it is a kind of from image true qualities to the slow mistake of image background color
The effect crossed, therefore suffered from by anti-aliasing processing image border RGB gray scale with image rgb value itself, image background rgb value
Direct relationship.Existing anti-aliasing algorithm is all that black has been that background is realized, thus image border anti-aliasing point be all by
Image true qualities carry out transition to black.
In airborne indicator existing video superposition algorithm be by judge the rgb value of prospect character picture whether be 0 come
Decide whether superposition background, i.e., when the region display background that prospect character RGB is 0, the non-zero region display foreground of prospect RGB itself.
The video superposition realized by this kind of mode, only when the rgb value very little of background, picture effect is just ideal, and works as background
Rgb value is larger, especially when background is pure white, since anti-aliasing processing in image border is passed through to black transition
On the picture of video superposition, the edge of anti-aliasing image will form extremely apparent black surround sawtooth, seriously affect picture display effect
Fruit.
Summary of the invention
Object of the present invention is to: a kind of realization of new front and back scape video superposition algorithm is proposed, when eliminating front and back scape superposition
The black surround sawtooth at foreground image edge.
The technical scheme is that
A kind of implementation method of video superposition algorithm is applied in airborne cockpit display, which is characterized in that the method
Take following steps:
1) timing of front and back scape vision signal is unified
Using FPGA as core devices, two groups of synchronized SRAMs (SSRAM) of outside cooperation, externally input two-way
Front and back scape vision signal respectively enters FPGA, and the rgb value of background vision signal is stored in two groups of SSRAM by FPGA internal logic,
And read background data from SSRAM with the video frequency signal time sequence of prospect, the background RGB data of reading returns in FPGA,
To realize the unification of front and back scape video frequency signal time sequence.
2) the transparency coefficient estimation of foreground video signal image individual element point;
Its coefficient of transparency is calculated to foreground video picture individual element point using FPGA on piece logical resource, entirely calculates base
It is carried out in RGB color pros body Model, if spatial position of the prospect current pixel point rgb value in square body Model is
P0, remember that the space coordinate of the pixel is P0(RP0,GP0,BP0), connection origin O and the P0It puts and is extended, line segment OP0Prolong
The plane of long line and square body Model intersects at point P1(RP1,GP1,BP1), then the coefficient of transparency L of the foreground pixel point such as following formula 1
It can be calculated.
3) superposition of front and back scape video signal pictures.
The rgb values of front and back scape video pictures using FPGA on piece logical resource by timing after reunification is according to being calculated
Foreground to transparent coefficient L redistributes respective ratio, obtains new secondary colour, which is the rgb value of picture after being superimposed.If
The secondary colour formed after superposition is P in RGB Cube model spatial coordinatesα(RPα,GPα,BPα), former prospect is P0(RP0,GP0,
BP0), background Pb(RPb,GPb,BPb), superposition secondary colour 2 is calculated as the following formula, and the rgb value of final overlay drafting is Pα
(RPα,GPα,BPα)。
Pα=P0+(1-L)×Pb (2)
Technical effect of the invention is as follows:
1) it for any background image, completely eliminates in superimposed image, the anti-aliasing black surround sawtooth of foreground image, is promoted
Image quality;
2) dynamic change is supported for the video pictures resolution ratio of input, reaches as high as 1600 × 1200@60Hz, 256 grades
Tonal gradation;
3) for overlay drafting, the transparency of foreground picture can dynamic regulation.
Detailed description of the invention
A kind of implementation method functional block diagram of video superposition algorithm of Fig. 1
Fig. 2 RGB color cube model schematic diagram
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing:
A kind of implementation method of video superposition algorithm is applied in airborne cockpit display, by 1 on hardware composition
FPGA, then plus external 2 groups of SSRAM memories composition, mould is calculated by video timing unified modules, coefficient of transparency inside FPGA
Block, video laminating module three parts composition, as shown in Figure 1.The method takes following steps:
1) timing of front and back scape vision signal is unified
Using FPGA as core devices, two groups of synchronized SRAMs (SSRAM) of outside cooperation, externally input two-way
Front and back scape vision signal respectively enters FPGA, and the rgb value of background vision signal is stored in two groups of SSRAM by FPGA internal logic,
And read background data from SSRAM with the video frequency signal time sequence of prospect, the background RGB data of reading returns in FPGA,
To realize the unification of front and back scape video frequency signal time sequence.
2) the transparency coefficient estimation of foreground video signal image individual element point;
Its coefficient of transparency is calculated to foreground video picture individual element point using FPGA on piece logical resource, entirely calculates base
It is carried out in RGB color pros body Model, as shown in Fig. 2, if prospect current pixel point rgb value is in square body Model
Spatial position is P0, remember that the space coordinate of the pixel is P0(RP0,GP0,BP0), connection origin O and the P0It puts and is extended,
Line segment OP0Extended line and the plane of square body Model intersect at point P1(RP1,GP1,BP1), then the transparent system of the foreground pixel point
Number L such as following formula 1 can be calculated.
3) superposition of front and back scape video signal pictures.
The rgb values of front and back scape video pictures using FPGA on piece logical resource by timing after reunification is according to being calculated
Foreground to transparent coefficient L redistributes respective ratio, obtains new secondary colour, which is the rgb value of picture after being superimposed.If
The secondary colour formed after superposition is P in RGB Cube model spatial coordinatesα(RPα,GPα,BPα), former prospect is P0(RP0,GP0,
BP0), background Pb(RPb,GPb,BPb), superposition secondary colour 2 is calculated as the following formula,
Pα=P0+(1-L)×Pb (2)
The rgb value of final overlay drafting is Pα(RPα,GPα,BPα)。
Claims (1)
1. a kind of implementation method of video superposition algorithm is applied in airborne cockpit display, which is characterized in that the method is adopted
Take following steps:
1) timing of front and back scape vision signal is unified;
Using FPGA as core devices, outside cooperates two groups of synchronized SRAM SSRAM, scape before and after externally input two-way
Vision signal respectively enters FPGA, and the rgb value of background vision signal is stored in two groups of SSRAM by FPGA internal logic, and before use
The video frequency signal time sequence of scape reads background data from SSRAM, and the background RGB data of reading returns in FPGA, thus real
The unification of front and back scape video frequency signal time sequence is showed;
2) the transparency coefficient estimation of foreground video signal image individual element point;
Its transparency coefficient is calculated to foreground video picture individual element point using FPGA on piece logical resource, entire calculate is based on
RGB color pros body Model carries out, if spatial position of the prospect current pixel point rgb value in square body Model is P0,
The space coordinate for remembering the pixel is P0(RP0,GP0,BP0), connection origin O and the P0It puts and is extended, line segment OP0Extension
The plane of line and square body Model intersects at point P1(RP1,GP1,BP1), then the transparency coefficient L such as following formula of the foreground pixel point
(1) it can be calculated;
3) superposition of front and back scape video signal pictures;
The rgb value of front and back scape video pictures using FPGA on piece logical resource by timing after reunification is according to the prospect being calculated
Transparency coefficient L redistributes respective ratio, obtains new secondary colour, which is the rgb value of picture after being superimposed;If folded
The secondary colour formed after adding is P in RGB Cube model spatial coordinatesα(RPα,GPα,BPα), former prospect is P0(RP0,GP0,
BP0), background Pb(RPb,GPb,BPb), superposition secondary colour is calculated as the following formula (2),
Pα=P0+(1-L)×Pb (2)
The rgb value of final overlay drafting is Pα(RPα,GPα,BPα)。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611125556.9A CN106657813B (en) | 2016-12-08 | 2016-12-08 | A kind of implementation method of video superposition algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611125556.9A CN106657813B (en) | 2016-12-08 | 2016-12-08 | A kind of implementation method of video superposition algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106657813A CN106657813A (en) | 2017-05-10 |
CN106657813B true CN106657813B (en) | 2019-08-02 |
Family
ID=58825675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611125556.9A Active CN106657813B (en) | 2016-12-08 | 2016-12-08 | A kind of implementation method of video superposition algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657813B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108200359A (en) * | 2017-12-13 | 2018-06-22 | 苏州长风航空电子有限公司 | A kind of multi-standard video frequency superimposer for airborne indicator |
CN108055478A (en) * | 2017-12-18 | 2018-05-18 | 天津津航计算技术研究所 | A kind of multi-channel video superposed transmission method based on FC-AV agreements |
CN110881092B (en) * | 2019-12-18 | 2021-03-26 | 广东高云半导体科技股份有限公司 | Image output method and system based on FPGA |
CN112785511A (en) * | 2020-06-30 | 2021-05-11 | 青岛经济技术开发区海尔热水器有限公司 | Image anti-aliasing processing method and electrical equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007193691A (en) * | 2006-01-20 | 2007-08-02 | Mitsubishi Electric Corp | Image superposition device |
CN101299804A (en) * | 2008-05-28 | 2008-11-05 | 华为技术有限公司 | Character overlapping method and device |
CN101365079A (en) * | 2007-08-08 | 2009-02-11 | 上海未来宽带技术及应用工程研究中心有限公司 | Method for overlapping and dynamically displaying background color into transparent dynamic image |
CN104463939A (en) * | 2014-11-28 | 2015-03-25 | 项天 | Anti-aliasing method for graphic rendering and system |
CN104715454A (en) * | 2013-12-14 | 2015-06-17 | 中国航空工业集团公司第六三一研究所 | Anti-aliasing graph overlapping algorithm |
CN106170821A (en) * | 2014-03-18 | 2016-11-30 | 株式会社Live2D | Image processing apparatus, image processing method and program |
-
2016
- 2016-12-08 CN CN201611125556.9A patent/CN106657813B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007193691A (en) * | 2006-01-20 | 2007-08-02 | Mitsubishi Electric Corp | Image superposition device |
CN101365079A (en) * | 2007-08-08 | 2009-02-11 | 上海未来宽带技术及应用工程研究中心有限公司 | Method for overlapping and dynamically displaying background color into transparent dynamic image |
CN101299804A (en) * | 2008-05-28 | 2008-11-05 | 华为技术有限公司 | Character overlapping method and device |
CN104715454A (en) * | 2013-12-14 | 2015-06-17 | 中国航空工业集团公司第六三一研究所 | Anti-aliasing graph overlapping algorithm |
CN106170821A (en) * | 2014-03-18 | 2016-11-30 | 株式会社Live2D | Image processing apparatus, image processing method and program |
CN104463939A (en) * | 2014-11-28 | 2015-03-25 | 项天 | Anti-aliasing method for graphic rendering and system |
Non-Patent Citations (2)
Title |
---|
基于FPGA的视频叠加系统设计与实现;刘天武;《中国优秀硕士学位论文全文数据库》;20160331;全文 |
基于FPGA的飞机座舱综合显示系统关键技术研究;王栋;《中国优秀硕士学位论文全文数据库》;20150131;全文 |
Also Published As
Publication number | Publication date |
---|---|
CN106657813A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657813B (en) | A kind of implementation method of video superposition algorithm | |
US10194135B2 (en) | Three-dimensional depth perception apparatus and method | |
KR101345362B1 (en) | Method and apparatus for volume rendering using depth weighted colorization | |
US20170287216A1 (en) | Augmented point cloud for a visualization system and method | |
CN104933758B (en) | A kind of space camera three-dimensional imaging emulation mode based on OSG d engines | |
US20190052864A1 (en) | Display method and system for converting two-dimensional image into multi-viewpoint image | |
CN111223191A (en) | Large-scale scene infrared imaging real-time simulation method for airborne enhanced synthetic vision system | |
CN102622979A (en) | A kind of LCD controller and display control method thereof | |
US20190293937A1 (en) | Augmented reality display device and method, and augmented reality glasses | |
CN102799657B (en) | System and method for realizing real-time data point mapping processing based on three-dimensional checking | |
CN101227621A (en) | Method of performing interpolation for CFA in CMOS sensor and circuit thereof | |
CN109358430A (en) | A kind of real-time three-dimensional display methods based on two-dimentional LED fan screen | |
US20200193891A1 (en) | Display method, display device, and display | |
GB2578510A (en) | Environment map generation and hole filling | |
CN105657401A (en) | Naked eye 3D display method and system and naked eye 3D display device | |
US20200090575A1 (en) | Data processing systems | |
CN104020565A (en) | Display system with optical lens and display screen and image display method thereof | |
CN109461197A (en) | A kind of cloud real-time rendering optimization algorithm based on spherical surface UV and re-projection | |
US20170069294A1 (en) | Driving device for display panel, and display panel | |
CN109541812A (en) | A kind of body three-dimensional display apparatus and its control method | |
CN104639924A (en) | Method for reducing degree of dependence on device pixel to improve color value precision | |
CN103903274B (en) | The method that the distortion curved surface projection correction of a kind of small radius and large curvature is merged | |
CN112116522A (en) | A Radar Data Visualization Framework Based on Modern Programmable Graphics Pipeline | |
JP2012044400A (en) | Superimposed image generation apparatus, and superimposed image display apparatus having the same | |
CN103702109B (en) | A three-dimensional image grayscale look-up table measurement device and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |