CN107633545A - A kind of processing method of panoramic picture - Google Patents

A kind of processing method of panoramic picture Download PDF

Info

Publication number
CN107633545A
CN107633545A CN201710740125.1A CN201710740125A CN107633545A CN 107633545 A CN107633545 A CN 107633545A CN 201710740125 A CN201710740125 A CN 201710740125A CN 107633545 A CN107633545 A CN 107633545A
Authority
CN
China
Prior art keywords
panoramic picture
processing method
image
mapping table
weighing factor
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
CN201710740125.1A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710740125.1A priority Critical patent/CN107633545A/en
Publication of CN107633545A publication Critical patent/CN107633545A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of processing method of panoramic picture, comprise the following steps:A) panoramic picture is generated, at least two initial pictures are calculated so as to generate corresponding mapping table by GPU, then the weighing factor of each pixel of the image is calculated by mapping table, so as to generate weighing factor table, at least two primary panoramic pictures are generated by mapping table again, finally mixing primary panoramic picture using weighing factor table generates final panoramic picture;B) final panoramic picture is plotted in spherical three-dimensional scenic;C) deviation at manual correction image mosaic;The processing method of the panoramic picture is presented in a spherical three-dimensional coordinate by the way that multiple images are synthesized into a Zhang Quanjing image, vivid, it is necessary to when changing, and need to only be spliced either manually or by the one of image of mouse drag, simple to operate, effect is good.

Description

A kind of processing method of panoramic picture
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of processing method of panoramic picture.
Background technology
Panoramic picture is typically all to be come out by multiple image mosaics, and the manufacturing process of existing panoramic picture is logical mostly Cross what software automatically generated, but because software leak in itself and intelligent effect are low so the panorama sketch automatically generated As having many flaws in stitching portion, because the distant view photograph of splicing might have because the depth of field is different or calibrated error is asked Topic causes stitching portion to have dislocation, and causes that whole Zhang Quanjing image effect is poor, and practicality is not strong.
The content of the invention
In order to solve the problems, such as that existing panoramic picture treatment effect is undesirable, the present invention provides a kind of simple to operate, place Manage the processing method of the good panoramic picture of effect.
To achieve these goals, technical scheme provided by the invention is:A kind of processing method of panoramic picture, including with Lower step:A) panoramic picture is generated, at least two initial pictures are calculated so as to generate corresponding mapping table by GPU, then The weighing factor of each pixel of the image is calculated by mapping table, so as to generate weighing factor table, then by mapping table generate to Few two primary panoramic pictures, finally mix primary panoramic picture using weighing factor table and generate final panoramic picture;B) will Final panoramic picture is plotted in spherical three-dimensional scenic;C) deviation at manual correction image mosaic.
As with preferable technical scheme, the quantity for being used to generate the initial pictures of panoramic picture is four, and four Open image to form in same position shooting, the shooting angle between adjacent two images differs 80 ° to 90 °.
Further, the data in the weighing factor table include each pixel distance image center location it is horizontal away from From according to weighted value, to calculate the color of corresponding pixel points.
As further technical scheme, mapping table and the weighing factor table is stored in video memory.
Further, the mapping table is generated by the distortion parameter of camera.
It is of the invention to be relative to the beneficial effect of prior art:The processing method of the panoramic picture is by the way that multiple images are closed It is presented on into a Zhang Quanjing image in a spherical three-dimensional coordinate, it is vivid, it is necessary to when changing, only need to be either manually or by mouse Drag one of image to be spliced, simple to operate, effect is good.
Brief description of the drawings
Fig. 1 is the flow chart of the present invention;
Fig. 2-5 is the artwork before the image procossing of the present invention;
Fig. 6-9 is that the image of the present invention is the image that artwork passes through mapping equation expansion;
Figure 10-13 is the weighing factor table image of the present invention;
Figure 14 is the image after present invention synthesis.
Embodiment
The embodiment of the present invention is described further below in conjunction with the accompanying drawings.Herein it should be noted that for The explanation of these embodiments is used to help understand the present invention, but does not form limitation of the invention.It is in addition, disclosed below As long as each embodiment of the invention in involved technical characteristic do not form conflict can each other and be mutually combined.
As shown in figure 1, a kind of processing method of panoramic picture, the panoramic picture is come by four image procossings, and this four Image is opened by four wide-angle lens shootings to come, and this four wide-angle lens differ 80 ° extremely between same position and each two 90 ° of settings, as preferable technical scheme, in the present embodiment, using 90 ° of settings, by the image of four lens shootings out Computer is imported, processing procedure is as follows:
S11:OpenGL running statuses, storage allocation and video memory resource are initialized, loads coloration program;
S12:Obtain the distortion parameter of panorama camera;The distortion parameter of each camera has just produced when camera dispatches from the factory It is raw, the supplemental characteristic only need to be imported to the program, the parameter includes coefficient of radial distortion and tangential distortion parameter;It is radially abnormal Become and occur during camera coordinates system turns image physical coordinates system, and tangential distortion is occurred in camera manufacturing process.
S13:Coloration program is run in video card, the mapping table of panoramic picture is generated according to distortion parameter;
According to the height and width for ultimately producing panoramic picture, an equal amount of mapping form, form are created in video card Each element can run a coloration program, coloration program calculates a position of four source images, below Program can take four pixel color values of four source images to be mixed by lookup table mode, and this four positions, which can be all stored in, to be reflected In firing table.
Citing:Assuming that panorama sketch size is 7680x3840, the size that four Zhang Yuans scheme every image is 4608x3456.Then reflect The size of firing table is 7680x3840, and each element saves eight short data, for example, some element in value for (2031, 1023,4011,2111,3241,2145,2344,3120), then it represents that respectively from the 2031st row the 1023rd of first Zhang Yuan's image The pixel position of row takes out first color value, and the pixel position arranged from the 4011st row the 2111st of second Zhang Yuan's image takes Going out second color value, the pixel position arranged from the 3241st row the 2145th of the 3rd Zhang Yuan's image takes out the 3rd color value, The pixel position arranged from the 2344th row the 3120th of the 4th Zhang Yuan's image takes out the 4th color value.
For coloration program, if panorama sketch size is 7680x3840,7680x3840 tinter can be run, is counted Calculate the content of each pixel element in mapping table.
The process that tinter solves, then be by three distortion parameters of every camera and the center of taken a picture camera Opening position is calculated, specific formula be (0.5*width+dr*px/r+xoff, 0.5*height+r*py/r+yoff) wherein, Width is picture traverse, and height is picture altitude;Px represents to be currently running pixel position and the fish eye images of tinter The deviation of the horizontal level at center;Py represents to be currently running the pixel position position vertical with fish eye images center of tinter The deviation put;Dr is the radius of the circumference fish eye images after correction, is solved and drawn by three distortion parameters (a, b, c);R is original Taken pictures in figure the radius size of formed circle;Xoff, yoff represent the skew of lens location respectively.
Implementation process is as follows, four Zhang Yuans first scheme as shown in Figure 2-5, then according to mapping table deploy four figure, obtain as Shown in Fig. 6-9.
S14:Weighing factor of four wide-angle lens to each pixel of panoramic picture is calculated according to mapping table, and preserved For weighing factor table;Weighing factor is used for calculating position of the center in panorama sketch of each camera lens, calculates each pixel distance mirror The horizontal range of head center, the more remote weighted value of distance is lower, according to weighted value, to calculate corresponding pixel points color, is used for The aberration of optimization splicing seam crossing, improves splicing effect;The weighted value sum of wherein four pixels is necessary for 1.0.
The image of every expansion calculates the distance of each pixel distance center to draw hybrid weight percentage, calculates The four weight tables gone out, as shown in figures 10-13;
S15:The weighing factor table and mapping table of generation are uploaded to video memory;
S16:Four primary panoramic pictures are generated by the mapping table in video memory, every primary panoramic picture only includes one The picture material of source images;
S17:Four primary panoramic pictures are mixed by the weighing factor table in video memory and obtain final panoramic picture;
Finally mixed, as a result such as Figure 14 institutes;
S21:Final panoramic picture is drawn out on the sphere in three-dimensional scenic by spherical mapping equation;
A spheroid is first drawn in three-dimensional scenic first, the plane panorama sketch obtained before is then mapped to spheroid On, specific method is any point coordinate (x, y, z) on spheroid, can calculate longitude and latitude, longitude range for- 180 degree is spent to 90 degree to 180 degree, latitude scope for -90.
S31:Deviation at user's manual correction image mosaic;Pass through the scope of mouse selection amendment and the position of amendment; Because stitching portion has a corresponding object of reference, user need to only select an object of reference and carry out two images of stitching portion pair Than, the part overlapped is then selected, it is simple to operate;
S32:Position judgment according to amendment is which image is impacted;Then the image is selected to be modified splicing; Selection one needs mobile image, then causes stitching portion slitless connection to both sides movement;
S41:Amendment terminates, deduced image file, bolt down procedure, the video memory and internal memory distributed in release procedure running Resource.
Embodiments of the present invention are explained in detail above in association with accompanying drawing, but the invention is not restricted to described implementation Mode.For a person skilled in the art, in the case where not departing from the principle of the invention and spirit, to these embodiments A variety of change, modification, replacement and modification are carried out, are still fallen within protection scope of the present invention.

Claims (5)

1. a kind of processing method of panoramic picture, it is characterised in that comprise the following steps:A) panoramic picture is generated, will at least two Open initial pictures to calculate so as to generate corresponding mapping table by GPU, each pixel of the image is then calculated by mapping table Weighing factor, so as to generate weighing factor table, then by mapping table generation at least two primary panoramic pictures, finally utilize influence Weight table mixes primary panoramic picture and generates final panoramic picture;B) final panoramic picture is plotted in spherical three dimensional field Jing Zhong;C) deviation at manual correction image mosaic.
2. processing method according to claim 1, it is characterised in that:The initial pictures for being used to generate panoramic picture Quantity is four, and four images form in same position shooting, and the shooting angle between adjacent two images differs 80 ° to 90 Degree.
3. processing method according to claim 1 or 2, it is characterised in that:Data in the weighing factor table include every The horizontal range of the individual pixel distance image center location, according to weighted value, to calculate the color of corresponding pixel points.
4. processing method according to claim 1, it is characterised in that:Mapping table and the weighing factor table is stored in video memory In.
5. processing method according to claim 1, it is characterised in that:The mapping table is given birth to by the distortion parameter of camera Into.
CN201710740125.1A 2017-08-25 2017-08-25 A kind of processing method of panoramic picture Pending CN107633545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710740125.1A CN107633545A (en) 2017-08-25 2017-08-25 A kind of processing method of panoramic picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710740125.1A CN107633545A (en) 2017-08-25 2017-08-25 A kind of processing method of panoramic picture

Publications (1)

Publication Number Publication Date
CN107633545A true CN107633545A (en) 2018-01-26

Family

ID=61100791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710740125.1A Pending CN107633545A (en) 2017-08-25 2017-08-25 A kind of processing method of panoramic picture

Country Status (1)

Country Link
CN (1) CN107633545A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0571180A2 (en) * 1992-05-22 1993-11-24 Sony Corporation Digital data conversion equipment
CN102013110A (en) * 2010-11-23 2011-04-13 李建成 Three-dimensional panoramic image generation method and system
US20110142343A1 (en) * 2009-12-11 2011-06-16 Electronics And Telecommunications Research Institute Method and apparatus for segmenting multi-view images into foreground and background based on codebook
CN103253194A (en) * 2013-05-17 2013-08-21 黄梅县云泰时代光学仪器有限公司 Traveling vehicle auxiliary system
US20140245367A1 (en) * 2012-08-10 2014-08-28 Panasonic Corporation Method for providing a video, transmitting device, and receiving device
CN105407278A (en) * 2015-11-10 2016-03-16 北京天睿空间科技股份有限公司 Panoramic video traffic situation monitoring system and method
CN105516597A (en) * 2015-12-30 2016-04-20 完美幻境(北京)科技有限公司 Method and device for processing panoramic photography
CN105678729A (en) * 2016-02-24 2016-06-15 段梦凡 Splicing method for panoramic images of fish-eye lenses
CN106856000A (en) * 2015-12-09 2017-06-16 广州汽车集团股份有限公司 A kind of vehicle-mounted panoramic image seamless splicing processing method and system
CN106952311A (en) * 2017-03-02 2017-07-14 山东省科学院自动化研究所 Auxiliary parking system and method based on panoramic mosaic data mapping tables

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0571180A2 (en) * 1992-05-22 1993-11-24 Sony Corporation Digital data conversion equipment
US20110142343A1 (en) * 2009-12-11 2011-06-16 Electronics And Telecommunications Research Institute Method and apparatus for segmenting multi-view images into foreground and background based on codebook
CN102013110A (en) * 2010-11-23 2011-04-13 李建成 Three-dimensional panoramic image generation method and system
US20140245367A1 (en) * 2012-08-10 2014-08-28 Panasonic Corporation Method for providing a video, transmitting device, and receiving device
CN103253194A (en) * 2013-05-17 2013-08-21 黄梅县云泰时代光学仪器有限公司 Traveling vehicle auxiliary system
CN105407278A (en) * 2015-11-10 2016-03-16 北京天睿空间科技股份有限公司 Panoramic video traffic situation monitoring system and method
CN106856000A (en) * 2015-12-09 2017-06-16 广州汽车集团股份有限公司 A kind of vehicle-mounted panoramic image seamless splicing processing method and system
CN105516597A (en) * 2015-12-30 2016-04-20 完美幻境(北京)科技有限公司 Method and device for processing panoramic photography
CN105678729A (en) * 2016-02-24 2016-06-15 段梦凡 Splicing method for panoramic images of fish-eye lenses
CN106952311A (en) * 2017-03-02 2017-07-14 山东省科学院自动化研究所 Auxiliary parking system and method based on panoramic mosaic data mapping tables

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
S.W. JENG .ECT: "Using pano-mapping tables for unwarping of omni-images into panoramic and perspective-view images", 《IET IMAGE PROCESSING》 *
徐萍 等: "全方位实景空间生成方法和漫游技术的研究", 《计算机应用与软件》 *
王庆波: "基于DAS的实时全景视频拼接系统的设计与实现", 《中国优秀硕士学位论文全文数据库-信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN104103067B (en) Method and apparatus for generating image sectional drawing
US7131733B2 (en) Method for creating brightness filter and virtual space creation system
CN101000461B (en) Method for generating stereoscopic panorama by fish eye image
CN102567976B (en) Tone mapping of very large aerial image mosaic
CN103839227B (en) Fisheye image correcting method and device
CN103327217B (en) A kind of method for processing video frequency and device
CN105243637B (en) One kind carrying out full-view image joining method based on three-dimensional laser point cloud
CN105957048A (en) 3D panorama display method and system of shooting image through fish eye lens
KR20180101165A (en) Frame stitching with panoramic frame
JP2007183949A (en) Method and apparatus for providing panoramic view with improved image matching speed and blending method
CN105137705B (en) A kind of creation method and device of virtual ball curtain
CN108259877B (en) A kind of white balancing treatment method and device
CN101783011A (en) Distortion correction method of fish eye lens
CN108200360A (en) A kind of real-time video joining method of more fish eye lens panoramic cameras
CN104937634B (en) For generating the method and system around view
CN107133918A (en) A kind of method that optional position in three-dimensional scenic generates panorama sketch
CN107317998A (en) Full-view video image fusion method and device
CN106558017A (en) Spherical display image processing method and system
CN106341673A (en) Novel 2D/3D panoramic VR video storing method
CN106358035A (en) Image processing method and image processing apparatus
CN104954716B (en) A kind of dome ball-screen projection imaging system based on more projection imagings
CN114926612A (en) Aerial panoramic image processing and immersive display system
CN107197135A (en) A kind of video generation method, player method and video-generating device, playing device
CN107948547A (en) Processing method, device and the electronic equipment of panoramic video splicing
CN107590773A (en) A kind of preparation method of panoramic picture

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180126