CN105761253B - A kind of three dimensions virtual data high definition screenshot method - Google Patents

A kind of three dimensions virtual data high definition screenshot method Download PDF

Info

Publication number
CN105761253B
CN105761253B CN201610076082.7A CN201610076082A CN105761253B CN 105761253 B CN105761253 B CN 105761253B CN 201610076082 A CN201610076082 A CN 201610076082A CN 105761253 B CN105761253 B CN 105761253B
Authority
CN
China
Prior art keywords
data
values
row
area
picture
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
Application number
CN201610076082.7A
Other languages
Chinese (zh)
Other versions
CN105761253A (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.)
Zhejiang Kelan Information Technology Co Ltd
Original Assignee
Zhejiang Kelan Information Technology Co Ltd
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 Zhejiang Kelan Information Technology Co Ltd filed Critical Zhejiang Kelan Information Technology Co Ltd
Priority to CN201610076082.7A priority Critical patent/CN105761253B/en
Publication of CN105761253A publication Critical patent/CN105761253A/en
Application granted granted Critical
Publication of CN105761253B publication Critical patent/CN105761253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • G06T2207/10012Stereo images

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The present invention relates to field of computer technology, disclose a kind of three dimensions virtual data high definition screenshot method, screen area image data is subjected to N horizontally and vertically etc. points of operation, it divides and obtains the screen data region unit of the sizes such as N*N, each screen data region unit is referred to as elementary area, it is identified with n rows n row, by data area segmentation and picture anastomosing and splicing, completes three dimensions virtual data high definition sectional drawing.Memory usage, sectional drawing stability are good when the present invention has the effect of reducing sectional drawing.

Description

A kind of three dimensions virtual data high definition screenshot method
Technical field
The present invention relates to field of computer technology, more particularly to a kind of three dimensions virtual data high definition screenshot method.
Background technology
Conventional needle carries out high definition sectional drawing to magnanimity three-dimensional data, needs completely to load data, sometimes will be because For exhausting for memory source, cause the abnormal either picture of picture effect that cannot normally generate.In high definition sectional drawing scheme, it will shield Curtain region cutting is that multi-block data distinguishes sectional drawing, is general way, but the realization of the way is on condition that number for a small pieces According to progress, it may be possible to the amplification to a piece of cell, it is also possible to which the amplification to a building house, there is no carry out pipe for memory Reason, therefore, during these sectional drawings, it is difficult to which memory source, which occurs, occupies excessively high problem, stability can be protected substantially Card.But the data in entire city, even national, when needing sectional drawing, the big data quantity bottleneck problem that can be encountered is cut in high definition It will appear that EMS memory occupation is high, problem of sectional drawing stability difference during figure.
Invention content
It is empty to provide a kind of three dimensions for the disadvantage that the present invention is high for EMS memory occupation in the prior art, sectional drawing is unstable Quasi- data high definition screenshot method.
In order to solve the above-mentioned technical problem, the present invention is addressed by following technical proposals:
A kind of three dimensions virtual data high definition screenshot method, by screen area image data progress horizontal direction and vertically The N in direction etc. points of operations, divide and obtain the screen data region unit of the sizes such as N*N, and each screen data region unit is referred to as Elementary area is identified with n rows n row, is included the following steps:
(1) projection relation, the screen resolution of n row n row elementary areas are set, and calculate the viewport of n row n row elementary areas Size, 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 indicates that the predetermined load threshold value of data, m indicate in vertical direction The length in region is divided since viewpoint position;First, from the range of viewpoint 0 to m, the preloading of a data is carried out Operation reduces m values, carries out the weight in region when the data actual loaded numerical value C of acquisition is more than the predetermined load threshold value V of setting It is new to divide, if after repartitioning, C values carry out reducing m Value Operations again, repeatedly, until C value stabilizations exist still more than V values Within the scope of V values, m is worth to determining m ' values;When C values are within the scope of V values, then the load of three-dimensional data is proceeded by, data add It after the completion of load, is rendered, rendering result is saved in image frame buffer;
(4) and then data area continues to divide, and range judges C values whether within the scope of V values from m ' to 2m ', if so, Then data area divides range to adjacent 2m ' Dao 3m ';Range judges C values whether within the scope of V values from 2m ' to 3m ', if It is that then data area divides range to adjacent 3m ' Dao 4m ', and repeats this operation;If C values are more than V values, step 3 is carried out M ' the values of operation, next region division range confirm according to the m ' values of upper one and adjacent area, reach until dividing range Stop when preset critical distance, then single image unit sectional drawing is completed;
(5) elementary area is stored in the image information in image frame buffer to handle, image frame buffer is received per frame To after image information, image frame buffer preserves depth buffer, the color cache information of image, compares the image information received, By carrying out pixel replacement according to depth buffer information, the pixel of same position, depth information it is big cannot replace depth information Small;
(6) image frame buffer processing final result is exactly the final image-forming information of the elementary area, by the elementary area Image-forming information is written in picture file and is preserved, while it is the data of n rows n row to mark the picture file;
(7) shot operation for carrying out next elementary area repeats the operation that step 3 arrives step 6;
(8) after all elementary areas are write as picture file, there can be N*N pictures;
(9) picture anastomosing and splicing:Picture is N*N dispersion file, and basic unit of splicing is A*A, according to ranks number N*N, Basic splicing unit A*A calculates picture number G*G, G=int (N/A), then starts the cycle over at each splicing unit Reason;In each basic splicing unit, the picture splicing fusion in horizontal direction is carried out first, by the image data in same a line A pictures are merged into, often row merges successively;After the completion of waiting for that row used merges, the picture then carried out in vertical direction is spelled Fusion is connect, A*A pictures are finally synthesized into a pictures;It is more according to the splicing rule of A*A when N does not divide exactly A Go out the data of N%A ranks, final picture number will be maintained at G*G=int (N/A) * int (N/A), therefore they are grouped into it Near concatenation unit in, that is, be in edge concatenation unit size between A*A and 2A*2A.
Preferably, projection relation is rectangular projection or perspective projection.
Preferably, after certain region division, when the ratio of C values and V values is less than or equal to 0.2, m value increasings are carried out It is long.
The present invention has significant technique effect as a result of above technical scheme:Pass through the region segmentation of this patent Technology efficiently uses memory headroom and image imaging law, is utilized in treatment effeciency and memory headroom and has above reached a balance, By subregional sectional drawing, it is excessively high and cause image unstable to avoid memory during sectional drawing;And picture integration technology then has Relationship between effect processing achievement picture final number and individual resolution ratio, facilitates the processing operation in later stage.
Specific implementation mode
Present invention is further described in detail for following example.
Embodiment 1
A kind of three dimensions virtual data high definition screenshot method, by screen area image data progress horizontal direction and vertically The N in direction etc. points of operations, divide and obtain the screen data region unit of the sizes such as N*N, and each screen data region unit is referred to as Elementary area is identified with n rows n row, because sectional drawing is the scene image data for intercepting entire screen, needs to divide equally screen At N*N blocks, and achievement photo resolution is necessary for N times of screen size, then on each screen data region unit, passes through Specific sectional drawing parameter is set, the data of the screen data region unit are amplified into N times, sectional drawing, the picture size of generation and entirely Screen size is identical, and by effect effect amplify N times, it is further comprising the steps of to realize the function of high definition sectional drawing:
(1) projection relation, the screen resolution of n row n row elementary areas are set, and projection relation is rectangular projection, and calculates n Viewport size, the what comes into a driver's body size of row n row elementary areas;
(2) in the elementary area of certain row row, data area segmentation is carried out;
(3) data area segmentation includes following control parameter:V indicates that the predetermined load threshold value of data, m indicate in vertical direction The length in region is divided since viewpoint position;First, from the range of viewpoint 0 to m, the preloading of a data is carried out Operation reduces m values, carries out the weight in region when the data actual loaded numerical value C of acquisition is more than the predetermined load threshold value V of setting It is new to divide, if after repartitioning, C values carry out reducing m Value Operations again, repeatedly, until C value stabilizations exist still more than V values Within the scope of V values, m is worth to determining m ' values;When C values are within the scope of V values, then the load of three-dimensional data is proceeded by, data add It after the completion of load, is rendered, rendering result is saved in image frame buffer;
(4) and then data area continues to divide, and range judges C values whether within the scope of V values from m ' to 2m ', if so, Then data area divides range to adjacent 2m ' Dao 3m ';Range judges C values whether within the scope of V values from 2m ' to 3m ', if It is that then data area divides range to adjacent 3m ' Dao 4m ', and repeats this operation;If C values are more than V values, step 3 is carried out M ' the values of operation, next region division range confirm according to the m ' values of upper one and adjacent area, reach until dividing range Stop when preset critical distance, then single image unit sectional drawing is completed;
(5) elementary area is stored in the image information in image frame buffer to handle, image frame buffer is received per frame To after image information, image frame buffer preserves depth buffer, the color cache information of image, compares the image information received, By carrying out pixel replacement according to depth buffer information, the pixel of same position, depth information it is big cannot replace depth information It is small, that is, depth information is smaller, it is higher that pixel replaces priority;
(6) image frame buffer processing final result is exactly the final image-forming information of the elementary area, by the elementary area Image-forming information is written in picture file and is preserved, while it is the data of n rows n row to mark the picture file;
(7) shot operation for carrying out next elementary area repeats the operation that step 3 arrives step 6;
(8) after all elementary areas are write as picture file, there can be N*N pictures;
(9) picture anastomosing and splicing:Picture is N*N dispersion file, and basic unit of splicing is A*A, according to ranks number N*N, Basic splicing unit A*A calculates picture number G*G, G=int (N/A), then starts the cycle over at each splicing unit Reason;In each basic splicing unit, the picture splicing fusion in horizontal direction is carried out first, by the image data in same a line A pictures are merged into, often row merges successively;After the completion of waiting for that row used merges, the picture then carried out in vertical direction is spelled Fusion is connect, A*A pictures are finally synthesized into a pictures;It is more according to the splicing rule of A*A when N does not divide exactly A Go out the data of N%A ranks, final picture number will be maintained at G*G=int (N/A) * int (N/A), therefore they are grouped into it Near concatenation unit in, that is, be in edge concatenation unit size between A*A and 2A*2A.
Embodiment 2
With embodiment 1, except that projection relation is perspective projection.
Embodiment 3
With embodiment 1, except that after certain region division, when the ratio of C values and V values is equal to 0.2, m is carried out Value increases.
Embodiment 4
A kind of three dimensions virtual data high definition screenshot method, by screen area image data progress horizontal direction and vertically The operation of equal point of the 18 of direction, divides and obtains the screen data region unit of the sizes such as 18*18, each screen data region unit is referred to as For elementary area, it is identified with n rows n row, because sectional drawing is the scene image data for intercepting entire screen, is needed screen is equal It is divided into 18*18 blocks, and achievement photo resolution is necessary for 18 times of screen size, then in each screen data region unit On, by the way that specific sectional drawing parameter is arranged, the data of the screen data region unit are amplified into 18 times, sectional drawing, the picture of generation is big It is small identical with entire screen size, and effect effect is amplified 18 times, further include following to realize the function of high definition sectional drawing Step:
(1) projection relation, the screen resolution of n row n row elementary areas are set, and projection relation is rectangular projection, and calculates n Viewport size, the what comes into a driver's body size of row n row elementary areas;
(2) in the elementary area of certain row row, data area segmentation is carried out;
(3) data area segmentation includes following control parameter:V indicates that the predetermined load threshold value of data, m indicate in vertical direction The length in region is divided since viewpoint position, the present embodiment m is 500 meters, and V indicates predetermined load data link table membership, Predetermined load data link table membership is 500;First, from the range of 0 to 500 meters of viewpoint, a data are carried out Preload operation, when the data actual loaded numerical value C of acquisition is more than the predetermined load threshold value 500 of setting, C is 800, Reduce m values, carries out repartitioning for region, when m values are reduced, C values also accordingly decline, if after repartitioning, C values are more than still V values carry out reducing m Value Operations again, and repeatedly, until C value stabilizations are within the scope of V values, m is worth to determining m ' values, m ' Value is 250 meters, and C values also accordingly fall to 400;When C values are within the scope of V values, then the load of three-dimensional data, data are proceeded by It after the completion of load, is rendered, rendering result is saved in image frame buffer;
(4) and then data area continues to divide, and range judges C values whether within the scope of V values from m ' to 2m ', if so, Then data area divides range to adjacent 2m ' Dao 3m ';Range judges C values whether within the scope of V values from 2m ' to 3m ', if It is that then data area divides range to adjacent 3m ' Dao 4m ', and repeats this operation;If C values are more than V values, step 3 is carried out M ' the values of operation, next region division range confirm according to the m ' values of upper one and adjacent area, reach until dividing range Stop when preset critical distance, then single image unit sectional drawing is completed;
(5) elementary area is stored in the image information in image frame buffer to handle, image frame buffer is received per frame To after image information, image frame buffer preserves depth buffer, the color cache information of image, compares the image information received, By carrying out pixel replacement according to depth buffer information, the pixel of same position, depth information it is big cannot replace depth information It is small, that is, depth information is smaller, it is higher that pixel replaces priority;
(6) image frame buffer processing final result is exactly the final image-forming information of the elementary area, by the elementary area Image-forming information is written in picture file and is preserved, while it is the data of n rows n row to mark the picture file;
(7) shot operation for carrying out next elementary area repeats the operation that step 3 arrives step 6;
(8) after all elementary areas are write as picture file, there can be 18*18 pictures;
(9) picture anastomosing and splicing:Picture is 18*18 dispersion file, and basic unit of splicing is 5*5, according to ranks number 18* 18, splicing unit 5*5 substantially calculates picture number G*G, G=int (18/5)=3, then starts the cycle over single to each splicing Position is handled;In each basic splicing unit, the picture splicing fusion in horizontal direction is carried out first, it will be in same a line Image data is merged into a pictures, and often row merges successively;After the completion of waiting for that row used merges, then carry out in vertical direction Picture splicing fusion, 25 pictures are finally synthesized into a pictures;When 18 do not divide exactly 5, according to the splicing of 5*5 Rule has more the data of 3 rows 3 row, and final picture number will be maintained at G*G=3*3=9, therefore they are grouped near them Concatenation unit in, that is, be in edge concatenation unit size between 5*5 and 10*10.
In short, the foregoing is merely presently preferred embodiments of the present invention, it is all according to impartial made by scope of the present invention patent Variation and modification, should all belong to the covering scope of patent of the present invention.

Claims (3)

1. screen area image data is carried out horizontal direction and Vertical Square by a kind of three dimensions virtual data high definition screenshot method To N etc. points of operations, divide and obtain the screen data region unit of the sizes such as N*N, each screen data region unit is referred to as to scheme As unit, it is identified with n rows n row, which is characterized in that include the following steps:
(1) projection relation, the screen resolution of n row n row elementary areas are set, and the viewport for calculating n row n row elementary areas is big Small, 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 indicates the predetermined load threshold value of data, m indicate in vertical direction from regarding Point position starts to divide the length in region;First, from the preloading behaviour in the range of viewpoint 0 to m, carrying out a data Make, when the data actual loaded numerical value C of acquisition is more than the predetermined load threshold value V of setting, reduces m values, carry out region again It divides, if after repartitioning, C values carry out reducing m Value Operations again, repeatedly, until C value stabilizations are in V still more than V values It is worth in range, m is worth to determining m ' values;When C values are within the scope of V values, then the load of three-dimensional data, data load are proceeded by After the completion, it is rendered, rendering result is saved in image frame buffer;
(4) and then data area continues to divide, and range judges C values whether within the scope of V values from m ' to 2m ', if it is, number According to region division range to adjacent 2m ' Dao 3m ';Range judges C values whether within the scope of V values from 2m ' to 3m ', if so, Then data area divides range to adjacent 3m ' Dao 4m ', and repeats this operation;If C values are more than V values, the behaviour of step 3 is carried out Make, the p value of next region division range confirms according to the m ' values of upper one and adjacent area, reaches advance until dividing range Stop when the critical distance of setting, then single image unit sectional drawing is completed;
(5) elementary area is stored in the image information in image frame buffer to handle, image frame buffer receives figure per frame As after information, image frame buffer preserves depth buffer, the color cache information of image, compares the image information received, passes through Carry out pixel replacement according to depth buffer information, the pixel of same position, depth information it is big cannot to replace depth information small;
(6) image frame buffer processing final result is exactly the final image-forming information of the elementary area, by the imaging of the elementary area Information is written in picture file and is preserved, while it is the data of n rows n row to mark the picture file;
(7) shot operation for carrying out next elementary area repeats the operation that step 3 arrives step 6;
(8) after all elementary areas are write as picture file, there can be N*N pictures;
(9) picture anastomosing and splicing:Picture is N*N dispersion file, and basic unit of splicing is A*A, according to ranks number N*N, substantially Splicing unit A*A calculates picture number G*G, G=int (N/A), then starts the cycle over and handles each splicing unit; In each basic splicing unit, the picture splicing fusion in horizontal direction is carried out first, the image data in same a line is closed It is often capable to merge successively and at a pictures;After the completion of waiting for that all rows merge, the picture splicing in vertical direction is then carried out A*A pictures are finally synthesized a pictures by fusion;When N does not divide exactly A, according to the splicing rule of A*A, have more The data of N%A ranks, final picture number will be maintained at G*G=int (N/A) * int (N/A), therefore they are grouped into them In neighbouring concatenation unit, that is, the size of the concatenation unit at edge is 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 For 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:In certain area After domain divides, when the ratio of C values and V values is less than or equal to 0.2, m value growths are carried out.
CN201610076082.7A 2016-02-03 2016-02-03 A kind of three dimensions virtual data high definition screenshot method Active CN105761253B (en)

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 CN105761253A (en) 2016-07-13
CN105761253B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN108364348B (en) * 2018-02-11 2022-04-12 浙江科澜信息技术有限公司 Control rule verification method, system and platform for urban design

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN105761253A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105741300B (en) A kind of region segmentation screenshot method
US11210765B2 (en) Image processing method and device, storage medium and computer device
JP6871314B2 (en) Object detection method, device and storage medium
KR20190058366A (en) Method and apparatus for adapting feature data in convolutional neural network
US9013479B2 (en) Apparatus and method for tile-based rendering
JPH0316377A (en) Method and apparatus for reducing binary picture
CN105761253B (en) A kind of three dimensions virtual data high definition screenshot method
CN106504205A (en) A kind of image defogging method and terminal
CN104318538B (en) A kind of two-dimensional sequence frame picture is spliced into the method for big picture and its device used
CN111836028A (en) Image processing method, readable storage medium, and electronic device
CN103650004B (en) Image processing apparatus, image processing method and integrated circuit
CN105761208B (en) A kind of image co-registration joining method
US7916969B2 (en) Varying the exposure of a digital image by region
US10580198B2 (en) System and method for optimized sparse volume rendering
US20110050873A1 (en) Display Masks for Display and Calibration in Projector-Based Display Systems
US8174526B2 (en) Methods and apparatus for rendering or preparing digital objects or portions thereof for subsequent processing
US7646385B2 (en) Computer graphics rendering method and apparatus
US20210233292A1 (en) Image generating apparatus, and image generating method and program
CN106934845A (en) Acquiring object method and device
RU2470368C2 (en) Image processing method
CN108776987A (en) A kind of model silhouette method for drafting based on screen space
US20200351456A1 (en) Image processing device, image processing method, and program
CN104715248A (en) Method for recognizing mail advertisement picture
CN105303618B (en) A method of model pinup picture optimization production is carried out based on 3DMAX script technology
CN111259613B (en) Electronic device and layout method of integrated circuit

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