CN105761253A - High-definition screenshot method for 3D virtual data - Google Patents
High-definition screenshot method for 3D virtual data Download PDFInfo
- Publication number
- CN105761253A CN105761253A CN201610076082.7A CN201610076082A CN105761253A CN 105761253 A CN105761253 A CN 105761253A CN 201610076082 A CN201610076082 A CN 201610076082A CN 105761253 A CN105761253 A CN 105761253A
- Authority
- CN
- China
- Prior art keywords
- value
- data
- row
- image
- scope
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4038—Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/60—Memory management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10012—Stereo images
Abstract
The invention discloses a high-definition screenshot method for 3D virtual data, and relates to the field of computer technology. Image data in a screen area is divided into N equivalent parts in the horizontal direction and also into N equivalent parts in the vertical direction to obtain N*N screen data area blocks of the same size, each screen data area block is names as an image unit, the image units are marked in n rows and n columns, and high-definition screenshot of the 3D virtual data is realized via data area segmentation and picture fusing and splicing. The high-definition screenshot method for 3D virtual data has the advantages that the memory occupied rate during screenshot is reduced, and the screenshot stability is high.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of three dimensions virtual data high definition screenshot method.
Background technology
Magnanimity three-dimensional data is carried out high definition sectional drawing by conventional needle, it is necessary to data are loaded completely, sometimes will exhausting because of memory source, cause that the exception of picture effect or picture can not normally generate.In high definition sectional drawing scheme, it is multi-block data sectional drawing respectively by screen area cutting, it is general way, but the premise that realizes of this way is that the data for small pieces carry out, it may be possible to the amplification to a piece of community, it is also likely to be the amplification to a house, building, it is not managed for internal memory, therefore, in these sectional drawing processes, being difficult to occur memory source to take too high problem, stability can be guaranteed substantially.But, in whole city, the data in the even whole nation are when needing sectional drawing, the big data quantity bottleneck problem that can run into, the problem that there will be EMS memory occupation height, sectional drawing poor stability in high definition sectional drawing process.
Summary of the invention
The present invention is directed in prior art the shortcoming that EMS memory occupation is high, sectional drawing is unstable, it is provided that a kind of three dimensions virtual data high definition screenshot method.
In order to solve above-mentioned technical problem, the present invention is addressed by following technical proposals:
A kind of three dimensions virtual data high definition screenshot method, screen area view data is carried out N etc. horizontally and vertically and divides operation, divide the on-screen data region unit obtaining the sizes such as N*N, each on-screen data region unit is referred to as elementary area, it is identified with n row n row, comprises the following steps:
(1) projection relation of n row n row elementary area, screen resolution are set, and calculate the viewport size of n row n row elementary area, what comes into a driver's body size;
(2) in the elementary area of certain row row, data area segmentation is carried out;
(3) data area segmentation includes following control parameter: V represents that data are predetermined and loads threshold value, and m represents the length starting zoning in vertical direction from viewpoint position;First, in from distance viewpoint 0 to the scope of m, carry out the preload operation of a secondary data, when the data actual loaded numerical value C obtained exceedes the predetermined loading threshold value V of setting, reduce m value, carrying out repartitioning of region, if after repartitioning, C value still exceedes V-value, again carry out reducing m Value Operations, so repeatedly, until C value stabilization is within the scope of V-value, m value obtains the m ' value determined;When C value is within the scope of V-value, then proceeding by the loading of three-dimensional data, after data have loaded, render, rendering result is saved in image frame buffer;
(4) then data area continues to divide, and scope is from m ' to 2m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 2m ' to 3m ';Scope is from 2m ' to 3m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 3m ' to 4m ', and repeats this operation;If C value exceedes V-value, then carrying out the operation of step 3, next region divides the m ' value of scope and confirms according to the m ' value of upper and adjacent area, and stop when ranging up to critical distance set in advance until dividing, then single image unit sectional drawing completes;
(5) image information being saved in image frame buffer by elementary area processes, after the every frame of image frame buffer receives image information, image frame buffer preserves the depth buffer of image, color cache information, the image information that contrast receives, by carrying out pixel replacement according to depth buffer information, the pixel of same position, it is little that what depth information was big can not replace depth information;
(6) image frame buffer processes final result is exactly the final image-forming information of this elementary area, is written in picture file by the image-forming information of this elementary area and preserves, with the data that this picture file of tense marker is n row n row;
(7) carry out the shot operation of next elementary area, repeat the step 3 operation to step 6;
(8) after all of elementary area is all write as picture file, can there is the N*N picture opened;
(9) picture anastomosing and splicing: picture is N*N dispersion file, basic splicing unit is A*A, calculate picture number G*G, G=int (N/A) according to ranks number N*N, basic splicing unit A*A, then start the cycle over and each splicing unit is processed;In each basic splicing unit, the picture splicing first carried out in horizontal direction is merged, and the image data in same a line is merged into a pictures, and each row is sequentially carried out merging;After row used has merged, the picture splicing then carried out in vertical direction is merged, and A*A pictures synthesizes a pictures the most at last;When N does not divide exactly A time, splicing rule according to A*A, have more the data of N%A ranks, final picture number to be maintained at G*G=int (N/A) * int (N/A), therefore they are grouped in the concatenation unit that they are neighbouring, are namely in the size of concatenation unit at edge between A*A and 2A*2A.
As preferably, projection relation is rectangular projection or perspective projection.
As preferably, after certain sub-region divides, when the ratio of C value and V-value is less than or equal to 0.2, carries out m value and increase.
Due to the fact that and have employed above technical scheme, there is significant technique effect: by the domain decomposition technique of this patent, effectively utilize memory headroom and image imaging law, utilize at treatment effeciency and memory headroom and reached a balance, by subregional sectional drawing, it is to avoid in sectional drawing process, internal memory is too high and cause that image is unstable;Picture integration technology then effectively processes the relation between number and individual resolution that achievement picture is final, facilitates the process in later stage to operate.
Detailed description of the invention
The present invention is described in further detail by example below.
Embodiment 1
A kind of three dimensions virtual data high definition screenshot method, screen area view data is carried out N etc. horizontally and vertically and divides operation, divide the on-screen data region unit obtaining the sizes such as N*N, each on-screen data region unit is referred to as elementary area, it is identified with n row n row, because sectional drawing is the scene image data intercepting whole screen, need to be divided into screen N*N block, and result map chip resolution is necessary for N times of screen size, then on each on-screen data region unit, by arranging specific sectional drawing parameter, the data of this on-screen data region unit are amplified N times, sectional drawing, the picture size generated is identical with whole screen size, also it is that effect effect is amplified N times, thus realizing the function of high definition sectional drawing, further comprising the steps of:
(1) arranging the projection relation of n row n row elementary area, screen resolution, projection relation is rectangular projection, and calculates the viewport size of n row n row elementary area, what comes into a driver's body size;
(2) in the elementary area of certain row row, data area segmentation is carried out;
(3) data area segmentation includes following control parameter: V represents that data are predetermined and loads threshold value, and m represents the length starting zoning in vertical direction from viewpoint position;First, in from distance viewpoint 0 to the scope of m, carry out the preload operation of a secondary data, when the data actual loaded numerical value C obtained exceedes the predetermined loading threshold value V of setting, reduce m value, carrying out repartitioning of region, if after repartitioning, C value still exceedes V-value, again carry out reducing m Value Operations, so repeatedly, until C value stabilization is within the scope of V-value, m value obtains the m ' value determined;When C value is within the scope of V-value, then proceeding by the loading of three-dimensional data, after data have loaded, render, rendering result is saved in image frame buffer;
(4) then data area continues to divide, and scope is from m ' to 2m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 2m ' to 3m ';Scope is from 2m ' to 3m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 3m ' to 4m ', and repeats this operation;If C value exceedes V-value, then carrying out the operation of step 3, next region divides the m ' value of scope and confirms according to the m ' value of upper and adjacent area, and stop when ranging up to critical distance set in advance until dividing, then single image unit sectional drawing completes;
(5) image information being saved in image frame buffer by elementary area processes, after the every frame of image frame buffer receives image information, image frame buffer preserves the depth buffer of image, color cache information, the image information that contrast receives, by carrying out pixel replacement according to depth buffer information, the pixel of same position, it is little that what depth information was big can not replace depth information, namely depth information is more little, and it is more high that pixel replaces priority;
(6) image frame buffer processes final result is exactly the final image-forming information of this elementary area, is written in picture file by the image-forming information of this elementary area and preserves, with the data that this picture file of tense marker is n row n row;
(7) carry out the shot operation of next elementary area, repeat the step 3 operation to step 6;
(8) after all of elementary area is all write as picture file, can there is the N*N picture opened;
(9) picture anastomosing and splicing: picture is N*N dispersion file, basic splicing unit is A*A, calculate picture number G*G, G=int (N/A) according to ranks number N*N, basic splicing unit A*A, then start the cycle over and each splicing unit is processed;In each basic splicing unit, the picture splicing first carried out in horizontal direction is merged, and the image data in same a line is merged into a pictures, and each row is sequentially carried out merging;After row used has merged, the picture splicing then carried out in vertical direction is merged, and A*A pictures synthesizes a pictures the most at last;When N does not divide exactly A time, splicing rule according to A*A, have more the data of N%A ranks, final picture number to be maintained at G*G=int (N/A) * int (N/A), therefore they are grouped in the concatenation unit that they are neighbouring, are namely in the size of concatenation unit at edge between A*A and 2A*2A.
Embodiment 2
With embodiment 1, institute is perspective projection the difference is that projection relation.
Embodiment 3
With embodiment 1, institute is the difference is that, after certain sub-region divides, when the ratio of C value and V-value is equal to 0.2, carrying out m value and increase.
Embodiment 4
A kind of three dimensions virtual data high definition screenshot method, screen area view data is carried out 18 grades horizontally and vertically and divides operation, divide the on-screen data region unit obtaining the sizes such as 18*18, each on-screen data region unit is referred to as elementary area, it is identified with n row n row, because sectional drawing is the scene image data intercepting whole screen, need to be divided into screen 18*18 block, and result map chip resolution is necessary for 18 times of screen size, then on each on-screen data region unit, by arranging specific sectional drawing parameter, the data of this on-screen data region unit are amplified 18 times, sectional drawing, the picture size generated is identical with whole screen size, also it is that effect effect is amplified 18 times, thus realizing the function of high definition sectional drawing, further comprising the steps of:
(1) arranging the projection relation of n row n row elementary area, screen resolution, projection relation is rectangular projection, and calculates the viewport size of n row n row elementary area, what comes into a driver's body size;
(2) in the elementary area of certain row row, data area segmentation is carried out;
(3) data area segmentation includes following control parameter: V represents that data are predetermined and loads threshold value, m represents the length starting zoning in vertical direction from viewpoint position, the present embodiment m is 500 meters, V represents predetermined loading data chained list membership, and predetermined loading data chained list membership is 500;First, in the scope of distance viewpoint 0 to 500 meters, carry out the preload operation of a secondary data, when the data actual loaded numerical value C obtained exceedes the predetermined loading threshold value 500 of setting, C is 800, reduces m value, carries out repartitioning of region, when m value reduces, C value also declines accordingly, if after repartitioning, C value still exceedes V-value, again carry out reducing m Value Operations, so repeatedly, until C value stabilization is within the scope of V-value, m value obtains the m ' value determined, m ' value is 250 meters, and C value also drops to 400 accordingly;When C value is within the scope of V-value, then proceeding by the loading of three-dimensional data, after data have loaded, render, rendering result is saved in image frame buffer;
(4) then data area continues to divide, and scope is from m ' to 2m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 2m ' to 3m ';Scope is from 2m ' to 3m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 3m ' to 4m ', and repeats this operation;If C value exceedes V-value, then carrying out the operation of step 3, next region divides the m ' value of scope and confirms according to the m ' value of upper and adjacent area, and stop when ranging up to critical distance set in advance until dividing, then single image unit sectional drawing completes;
(5) image information being saved in image frame buffer by elementary area processes, after the every frame of image frame buffer receives image information, image frame buffer preserves the depth buffer of image, color cache information, the image information that contrast receives, by carrying out pixel replacement according to depth buffer information, the pixel of same position, it is little that what depth information was big can not replace depth information, namely depth information is more little, and it is more high that pixel replaces priority;
(6) image frame buffer processes final result is exactly the final image-forming information of this elementary area, is written in picture file by the image-forming information of this elementary area and preserves, with the data that this picture file of tense marker is n row n row;
(7) carry out the shot operation of next elementary area, repeat the step 3 operation to step 6;
(8) after all of elementary area is all write as picture file, can there is the 18*18 picture opened;
(9) picture anastomosing and splicing: picture is 18*18 dispersion file, basic splicing unit is 5*5, calculate picture number G*G, G=int (18/5)=3 according to ranks number 18*18, basic splicing unit 5*5, then start the cycle over and each splicing unit is processed;In each basic splicing unit, the picture splicing first carried out in horizontal direction is merged, and the image data in same a line is merged into a pictures, and each row is sequentially carried out merging;After row used has merged, the picture splicing then carried out in vertical direction is merged, and 25 pictures synthesize a pictures the most at last;When 18 do not divide exactly 5 time, according to the splicing rule of 5*5, having more the data of 3 row 3 row, final picture number to be maintained at G*G=3*3=9, therefore they are grouped in the concatenation unit that they are neighbouring, are namely in the size of concatenation unit at edge between 5*5 and 10*10.
In a word, the foregoing is only presently preferred embodiments of the present invention, all equalizations made according to the present patent application the scope of the claims change and modify, and all should belong to the covering scope of patent of the present invention.
Claims (3)
1. a three dimensions virtual data high definition screenshot method, screen area view data is carried out N etc. horizontally and vertically and divides operation, divide the on-screen data region unit obtaining the sizes such as N*N, each on-screen data region unit is referred to as elementary area, it is identified with n row n row, it is characterized in that, comprise the following steps:
(1) projection relation of n row n row elementary area, screen resolution are set, and calculate the viewport size of n row n row elementary area, what comes into a driver's body size;
(2) in the elementary area of certain row row, data area segmentation is carried out;
(3) data area segmentation includes following control parameter: V represents that data are predetermined and loads threshold value, and m represents the length starting zoning in vertical direction from viewpoint position;First, in from distance viewpoint 0 to the scope of m, carry out the preload operation of a secondary data, when the data actual loaded numerical value C obtained exceedes the predetermined loading threshold value V of setting, reduce m value, carrying out repartitioning of region, if after repartitioning, C value still exceedes V-value, again carry out reducing m Value Operations, so repeatedly, until C value stabilization is within the scope of V-value, m value obtains the m ' value determined;When C value is within the scope of V-value, then proceeding by the loading of three-dimensional data, after data have loaded, render, rendering result is saved in image frame buffer;
(4) then data area continues to divide, and scope is from m ' to 2m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 2m ' to 3m ';Scope is from 2m ' to 3m ', it is judged that whether C value is within the scope of V-value, if it is, data area divides scope to adjacent 3m ' to 4m ', and repeats this operation;If C value exceedes V-value, then carrying out the operation of step 3, next region divides the m ' value of scope and confirms according to the m ' value of upper and adjacent area, and stop when ranging up to critical distance set in advance until dividing, then single image unit sectional drawing completes;
(5) image information being saved in image frame buffer by elementary area processes, after the every frame of image frame buffer receives image information, image frame buffer preserves the depth buffer of image, color cache information, the image information that contrast receives, by carrying out pixel replacement according to depth buffer information, the pixel of same position, it is little that what depth information was big can not replace depth information;
(6) image frame buffer processes final result is exactly the final image-forming information of this elementary area, is written in picture file by the image-forming information of this elementary area and preserves, with the data that this picture file of tense marker is n row n row;
(7) carry out the shot operation of next elementary area, repeat the step 3 operation to step 6;
(8) after all of elementary area is all write as picture file, can there is the N*N picture opened;
(9) picture anastomosing and splicing: picture is N*N dispersion file, basic splicing unit is A*A, calculate picture number G*G, G=int (N/A) according to ranks number N*N, basic splicing unit A*A, then start the cycle over and each splicing unit is processed;In each basic splicing unit, the picture splicing first carried out in horizontal direction is merged, and the image data in same a line is merged into a pictures, and each row is sequentially carried out merging;After row used has merged, the picture splicing then carried out in vertical direction is merged, and A*A pictures synthesizes a pictures the most at last;When N does not divide exactly A time, splicing rule according to A*A, have more the data of N%A ranks, final picture number to be maintained at G*G=int (N/A) * int (N/A), therefore they are grouped in the concatenation unit that they are neighbouring, are namely in the size of concatenation unit at edge between A*A and 2A*2A.
2. a kind of three dimensions virtual data high definition screenshot method according to claim 1, it is characterised in that: projection relation is rectangular projection or perspective projection.
3. a kind of three dimensions virtual data high definition screenshot method according to claim 1, it is characterised in that: after certain sub-region divides, when the ratio of C value and V-value is less than or equal to 0.2, carries out m value and increase.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610076082.7A CN105761253B (en) | 2016-02-03 | 2016-02-03 | A kind of three dimensions virtual data high definition screenshot method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610076082.7A CN105761253B (en) | 2016-02-03 | 2016-02-03 | A kind of three dimensions virtual data high definition screenshot method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105761253A true CN105761253A (en) | 2016-07-13 |
CN105761253B CN105761253B (en) | 2018-07-24 |
Family
ID=56329661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610076082.7A Active CN105761253B (en) | 2016-02-03 | 2016-02-03 | A kind of three dimensions virtual data high definition screenshot method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105761253B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445329A (en) * | 2016-08-31 | 2017-02-22 | 浙江科澜信息技术有限公司 | Image capture method for dynamic balance scene loading hierarchy |
CN108364348A (en) * | 2018-02-11 | 2018-08-03 | 浙江科澜信息技术有限公司 | A kind of regulatory control verification method, system and the platform of urban design |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005215760A (en) * | 2004-01-27 | 2005-08-11 | Seiko Epson Corp | Method, system and program for extracting figure candidate region in image, and method, system and program for deciding top/bottom of figure image |
CN1906632A (en) * | 2004-11-05 | 2007-01-31 | 卡西欧计算机株式会社 | Image processing apparatus and image processing method |
CN103971414A (en) * | 2014-04-30 | 2014-08-06 | 深圳职业技术学院 | Method and system for making visualized true three-dimensional map |
CN105100776A (en) * | 2015-08-24 | 2015-11-25 | 深圳凯澳斯科技有限公司 | Stereoscopic video screenshot method and stereoscopic video screenshot apparatus |
-
2016
- 2016-02-03 CN CN201610076082.7A patent/CN105761253B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005215760A (en) * | 2004-01-27 | 2005-08-11 | Seiko Epson Corp | Method, system and program for extracting figure candidate region in image, and method, system and program for deciding top/bottom of figure image |
CN1906632A (en) * | 2004-11-05 | 2007-01-31 | 卡西欧计算机株式会社 | Image processing apparatus and image processing method |
CN103971414A (en) * | 2014-04-30 | 2014-08-06 | 深圳职业技术学院 | Method and system for making visualized true three-dimensional map |
CN105100776A (en) * | 2015-08-24 | 2015-11-25 | 深圳凯澳斯科技有限公司 | Stereoscopic video screenshot method and stereoscopic video screenshot apparatus |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445329A (en) * | 2016-08-31 | 2017-02-22 | 浙江科澜信息技术有限公司 | Image capture method for dynamic balance scene loading hierarchy |
CN108364348A (en) * | 2018-02-11 | 2018-08-03 | 浙江科澜信息技术有限公司 | A kind of regulatory control verification method, system and the platform of urban design |
CN108364348B (en) * | 2018-02-11 | 2022-04-12 | 浙江科澜信息技术有限公司 | Control rule verification method, system and platform for urban design |
Also Published As
Publication number | Publication date |
---|---|
CN105761253B (en) | 2018-07-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11676253B2 (en) | Systems, methods, and media for hierarchical progressive point cloud rendering | |
CN105741300A (en) | Region segmentation screenshot method | |
WO2019041842A1 (en) | Image processing method and device, storage medium and computer device | |
US9013479B2 (en) | Apparatus and method for tile-based rendering | |
CN102834849A (en) | Image drawing device for drawing stereoscopic image, image drawing method, and image drawing program | |
WO2021253642A1 (en) | Image rendering method and apparatus, computer program and readable medium | |
CN112930552A (en) | Training and magnification of large size images | |
CN109785417B (en) | Method and device for realizing OpenGL cumulative operation | |
CN106067188B (en) | Tiling primitives in a graphics processing system | |
JP2016184605A (en) | Charged particle beam drawing device and drawing date creation method | |
JP2015125509A (en) | Image processing apparatus, image processing method, and program | |
KR101810019B1 (en) | Animation data generating method, apparatus, and electronic device | |
CN105761253A (en) | High-definition screenshot method for 3D virtual data | |
CN106780704B (en) | The direct lighting effect proximity rendering method of three-dimensional scenic reused based on visibility | |
TWI716874B (en) | Image processing apparatus, image processing method, and image processing program | |
CN105761208A (en) | Picture fusing and splicing method | |
KR20180074631A (en) | Writing-data generating method and charged particle beam writing apparatus | |
US7916969B2 (en) | Varying the exposure of a digital image by region | |
CN113255289A (en) | Method and system for composing and distributing file | |
CN111161127B (en) | Picture resource rendering optimization method | |
CN105323519A (en) | Image processing device, display apparatus, and image processing method | |
US8274613B2 (en) | Display masks for display and calibration in projector-based display systems | |
CN109214977B (en) | Image processing apparatus and control method thereof | |
US7646385B2 (en) | Computer graphics rendering method and apparatus | |
US7528839B1 (en) | Faster clears for three-dimensional modeling applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |