CN103020888A - Image translation updating display method and system - Google Patents
Image translation updating display method and system Download PDFInfo
- Publication number
- CN103020888A CN103020888A CN201210518124XA CN201210518124A CN103020888A CN 103020888 A CN103020888 A CN 103020888A CN 201210518124X A CN201210518124X A CN 201210518124XA CN 201210518124 A CN201210518124 A CN 201210518124A CN 103020888 A CN103020888 A CN 103020888A
- Authority
- CN
- China
- Prior art keywords
- image
- internal memory
- translation
- data
- modified
- 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
Images
Abstract
Provided is an image translation updating display method and system. The method comprises the following steps of obtaining public image data from a first internal memory and copying the public image data to a second internal memory, wherein the first internal memory is used for keeping complete image data, the public image data are image data in a same area before and after image translation updating in the first internal memory; drawing changing image data in a third internal memory, wherein the changing image data are image data in a changing area before and after image translation updating in the first internal memory; copying image data in the second internal memory and the third internal memory to the first internal memory; and displaying the image data in the first internal memory. By means of calculation of the image translation updating display method and system, processed data quantity needed by translation operation each time can be effectively reduced, translation operation speed is quickened, and display efficiency of map translation can be improved.
Description
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of image translation update displayed method and system.
Background technology
Conventional art when showing image, generally be rendering system according to the indication range of display device, getting access to needs the view data that shows, then this view data is plotted on the internal memory, and then exports it to display device and show.When the translation update image, according to the indication range that recomputates, and the view data after finding translation and upgrading, this view data is plotted on the described internal memory, then show.
In the above-mentioned technology, because when carrying out the image translation renewal at every turn, all need with the Image Rendering in the indication range of whole display device once, and in fact, when image carries out the translation renewal mostly, the view data of a lot of parts is identical before and after upgrading, cause like this drawing process of a large amount of repetitions, cause the processor resource waste serious, particularly when display device resolution is larger, it is very huge repainting image data amount at every turn, reduces the speed of translation, even the phenomenon of card screen occurs.
Summary of the invention
Based on this, be necessary for the problems referred to above, provide a kind of point-to-point speed to reach soon the high image translation update displayed method and system of display efficiency.
A kind of image translation update displayed method comprises the steps:
When image translation upgrades, from the first internal memory, obtain the common image data, and it is copied in the second internal memory; Wherein, described the first internal memory is used for preserving complete view data, and described common image data are the view data of same area before and after image translation upgrades in the first internal memory;
The modified-image data are drawn to the 3rd internal memory; Wherein, described modified-image data are the view data of region of variation before and after image translation upgrades in the first internal memory;
View data in described the second internal memory and the 3rd internal memory is copied in described the first internal memory;
View data in described the first internal memory is shown.
A kind of image translation update displayed system comprises:
Identical data copy module is used for obtaining the common image data from the first internal memory, and it being copied in the second internal memory when image translation upgrades; Wherein, described the first internal memory is used for preserving complete view data, and described common image data are the view data of same area before and after image translation upgrades in the first internal memory;
The delta data drafting module is used for the modified-image data are drawn to the 3rd internal memory; Wherein, described modified-image data are the view data of region of variation before and after image translation upgrades in the first internal memory;
The data recombination module is used for the view data of described the second internal memory and the 3rd internal memory is copied in described the first internal memory;
Image display is used for the view data of described the first internal memory is shown.
Above-mentioned image translation update displayed method and system, when image carries out the translation renewal, upgrade front and back same area and region of variation by calculating translation, and from last frame image data the view data in the direct copying same area, only need the view data of real-time rendering region of variation, thus the less drafting of view data, the effectively required data volume to be processed of less each translation, improve translation speed, improve the display efficiency of map translation.
Description of drawings
Fig. 1 is the image translation update displayed method flow diagram of an embodiment;
Fig. 2 is synoptic diagram before and after image translation upgrades among the embodiment;
Fig. 3 is the image translation update displayed system construction drawing of an embodiment.
Embodiment
Be described in detail below in conjunction with the embodiment of accompanying drawing to image translation update displayed method of the present invention.
Referring to shown in Figure 1, Fig. 1 is the image translation update displayed method flow diagram of an embodiment, comprises the steps:
Step S10: when image translation upgrades, from the first internal memory, obtain the common image data, and it is copied in the second internal memory; Wherein, described the first internal memory is used for preserving complete view data, and described common image data are the view data of same area before and after image translation upgrades in the first internal memory.
In this step, mainly be the view data of obtaining the intersecting area on the image coordinate of translation before and after upgrading, it is copied in the second internal memory.
In one embodiment, can comprise the steps:
Step S101 is according to the image-region coordinate after the described span computed image of the image-region coordinate translation renewal before the image translation renewal.
Concrete, obtain the span that image translation upgrades the pixel translation, determine the image-region coordinate before image translation upgrades, add at this image-region coordinate the span of translation namely to obtain the image-region coordinate after image translation upgrades.
Step S102, the intersection graph of the image-region coordinate after the image-region before the image-region coordinate Calculation image translation renewal according to the image-region coordinate before the described renewal and after upgrading and image translation upgrade is as area coordinate.
Concrete, according to the image-region coordinate after the image-region coordinate before the translation renewal and the translation renewal, judge the image range of two area coordinates, get the common factor part of image range, obtain intersection graph as area coordinate.
Step S103 extracts corresponding common image data according to described intersection graph as area coordinate from the first internal memory.
Concrete, as area coordinate, from the first internal memory, read this intersection graph as the view data of area coordinate according to intersection graph, then it is copied in the second internal memory.
Because view data is direct copying from internal memory, speed is fast, has improved the efficient of translation update displayed.
Step S20: the modified-image data are drawn to the 3rd internal memory; Wherein, described modified-image data are the view data of region of variation before and after image translation upgrades in the first internal memory.
In this step, mainly be that the drawing image translation is upgraded in view data to the three internal memories that change, thereby reduce the processing procedure that the view data of front and back same area is upgraded in the drawing image translation.
In one embodiment, can comprise the steps:
Step S201, the modified-image area coordinate after the computed image translation is upgraded.
Concrete, the image-region coordinate according to after the translation renewal of aforementioned calculating deducts intersection graph as area coordinate, obtains the modified-image area coordinate after translation is upgraded.
Step S202 reads corresponding modified-image data according to described modified-image area coordinate from storage medium.
Concrete, according to the modified-image area coordinate, read view data in this modified-image area coordinate pixel coverage from storage mediums such as hard disk, disks.
Step S203 draws described modified-image data in described the 3rd internal memory.
Concrete, the view data in the modified-image area coordinate pixel coverage is plotted in the 3rd internal memory, owing to need not to draw the common image data, reduced the process of drawing, improve render speed and efficient.
Step S30: the view data in described the second internal memory and the 3rd internal memory is copied in described the first internal memory.
In this step, be the view data regrouping process, the view data that is about in the second internal memory and the 3rd internal memory concerns by its coordinate, is copied to successively in the first internal memory, obtains the view data after complete translation is upgraded.
Step S40: the view data in described the first internal memory is shown.
In this step, mainly be the process that realizes that the rear complete view data of translation renewal shows in display device.
In one embodiment, at first the view data of the first internal memory is copied on the dc of interface; Then the view data on the described interface dc is shown.
For more clear technical scheme of the present invention, set forth the application example that realizes based on image translation update displayed method of the present invention below in conjunction with accompanying drawing.This application example is based on and realizes GIS map translation update displayed process in the windows system.
Establishment internal memory Mdc0, internal memory Mdc1 and internal memory Mdc2 in internal memory dc, wherein, Mdc0 is used for preserving complete GIS map datum, and Mdc1 is used for preserving the rear constant GIS map datum of renewal, and Mdc2 is used for preserving the GIS map datum that upgrades rear variation.
At first, be plotted in the GIS map datum that needs on the display device to show first among the Mdc0, then use the BitBlt method of GDI that the GIS map datum among this Mdc0 is copied on the dc of interface, view data on the dc of interface is shown, thereby finish the initial demonstration of GIS map datum on the interface, at this moment, show the first two field picture at screen.
When carrying out GIS map translation renewal, calculate and upgrade the constant public part of front and back GIS map.As shown in Figure 2, particularly, under the original state, according to the indication range that shows the GIS map, geographic coordinate corresponding to the screen upper left corner is (x
Tl, y
Tl), coordinate corresponding to the lower right corner is (x
Br, y
Br), in this indication range, consisted of a rectangular area T
1Need to prove that above-mentioned coordinate when the content that shows is normal image, can use screen coordinate to represent at this regional coordinate for referring to geographic coordinate, for example, the upper left corner is (0,0), and the lower right corner is (W, H).
Suppose the geographical span (x of GIS map translation
0, y
0), wherein, (x
0, y
0) represent that the GIS map has carried out x at transverse axis
0The movement of individual unit, carried out y at the longitudinal axis
0The movement of individual unit.Geographic coordinate corresponding to the screen upper left corner is (x' after mobile
Tl, y'
Tl), geographic coordinate corresponding to the lower right corner is (x'
Br, y'
Br), rectangular area T
2Expression, then x'
Tl=x
Tl+ x
0, y '
Tl=y
Tl+ Y
0X'
Br=x
Br+ x
0, y '
Br=y
Br+ Y
0
Rectangle T is T
1, T
2In the intersection of two rectangles, then its coordinate range is (x
Tlc, y
Tlc), (x
Brc, y
Brc).All pixel (X, Y) ∈ T of ground in the rectangle T then
1∪ (X, Y) ∈ T
2, the IntersectRect function of use GDI or the Related Computational Methods of GEOS calculate the regional T (x of the intersection of two rectangles
Tlc, y
Tlc), (x
Brc, y
Brc).In Mdc0, find the GIS map datum in T zone, and it is copied among the Mdc1.
Calculate translation and need the regional T that upgrades before and after upgrading
3, wherein, T
3=T
2-T, i.e. T
2Remove the scope of T part in the rectangle; Obtain T from disk
3Scope in the GIS map datum be plotted among the Mdc2.
At last, according to Mdc1, the Mdc2 scope of GIS map datum separately, the GIS map datum is copied among the Mdc0, the scene of Mdc0 is copied on the dc of interface show again, finish the demonstration that the translation of GIS map is upgraded.
Be described in detail below in conjunction with the embodiment of accompanying drawing to image translation update displayed of the present invention system.
Referring to shown in Figure 3, Fig. 3 is the image translation update displayed system construction drawing of an embodiment, comprising: identical data copy module, delta data drafting module, data recombination module and image display.
Identical data copy module is used for obtaining the common image data from the first internal memory, and it being copied in the second internal memory when image translation upgrades; Wherein, described the first internal memory is used for preserving complete view data, and described common image data are the view data of same area before and after image translation upgrades in the first internal memory.
The delta data drafting module is used for the modified-image data are drawn to the 3rd internal memory; Wherein, described modified-image data are the view data of region of variation before and after image translation upgrades in the first internal memory.
The data recombination module is used for the view data of described the second internal memory and the 3rd internal memory is copied in described the first internal memory.
Image display is used for the view data of described the first internal memory is shown.
In one embodiment, described identical data copy module comprises: update image area coordinate computing unit, intersection graph are as area coordinate computing unit and common image data extracting unit.
Update image area coordinate computing unit is used for according to the image-region coordinate after the span computed image translation renewal of the image-region coordinate before the image translation renewal and pixel translation.
Intersection graph is as the area coordinate computing unit, be used for according to the image-region coordinate before the described renewal with upgrade after the image-region of image-region coordinate Calculation image translation before upgrading and image translation renewal after the intersection graph of image-region coordinate as area coordinate.
The common image data extracting unit is used for extracting corresponding common image data as area coordinate from the first internal memory according to described intersection graph.
In one embodiment, described delta data drafting module comprises: modified-image area coordinate computing unit, modified-image data-reading unit and modified-image data drawing unit.
Modified-image area coordinate computing unit is used for the modified-image area coordinate after the computed image translation is upgraded.
The modified-image data-reading unit is used for reading corresponding modified-image data according to described modified-image area coordinate from storage medium.
Modified-image data drawing unit is used for drawing described modified-image data at described the 3rd internal memory.
In one embodiment, described image display is further used for the view data of the first internal memory is copied on the dc of interface, the view data on the described interface dc is shown again.
In one embodiment, described image is the GIS map.
Image translation update displayed of the present invention system is corresponding one by one with image translation update displayed method of the present invention, technical characterictic and the beneficial effect thereof of setting forth at the embodiment of above-mentioned image translation update displayed method all are applicable to not repeat them here among the embodiment of image translation update displayed system.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (10)
1. an image translation update displayed method is characterized in that, comprises the steps:
When image translation upgrades, from the first internal memory, obtain the common image data, and it is copied in the second internal memory; Wherein, described the first internal memory is used for preserving complete view data, and described common image data are the view data of same area before and after image translation upgrades in the first internal memory;
The modified-image data are drawn to the 3rd internal memory; Wherein, described modified-image data are the view data of region of variation before and after image translation upgrades in the first internal memory;
View data in described the second internal memory and the 3rd internal memory is copied in described the first internal memory;
View data in described the first internal memory is shown.
2. image update display packing according to claim 1 is characterized in that, the described step of obtaining the common image data from the first internal memory comprises:
According to the image-region coordinate after the span computed image translation renewal of the image-region coordinate before the image translation renewal and pixel translation;
The intersection graph of the image-region coordinate after the image-region before the image-region coordinate Calculation image translation renewal according to the image-region coordinate before the described renewal and after upgrading and image translation upgrade is as area coordinate;
From the first internal memory, extract corresponding common image data according to described intersection graph as area coordinate.
3. image update display packing according to claim 1 is characterized in that, the described step that the modified-image data are drawn to the 3rd internal memory comprises:
Modified-image area coordinate after the computed image translation is upgraded;
From storage medium, read corresponding modified-image data according to described modified-image area coordinate;
In described the 3rd internal memory, draw described modified-image data.
4. image update display packing according to claim 1 is characterized in that, the step that the view data in described the first internal memory is shown comprises:
The view data of the first internal memory is copied on the dc of interface, again the view data on the described interface dc is shown.
5. according to claim 1 to 4 each described image update display packings, it is characterized in that described image is the GIS map.
6. an image translation update displayed system is characterized in that, comprising:
Identical data copy module is used for obtaining the common image data from the first internal memory, and it being copied in the second internal memory when image translation upgrades; Wherein, described the first internal memory is used for preserving complete view data, and described common image data are the view data of same area before and after image translation upgrades in the first internal memory;
The delta data drafting module is used for the modified-image data are drawn to the 3rd internal memory; Wherein, described modified-image data are the view data of region of variation before and after image translation upgrades in the first internal memory;
The data recombination module is used for the view data of described the second internal memory and the 3rd internal memory is copied in described the first internal memory;
Image display is used for the view data of described the first internal memory is shown.
7. image update display system according to claim 6 is characterized in that, described identical data copy module comprises:
Update image area coordinate computing unit is used for according to the image-region coordinate after the span computed image translation renewal of the image-region coordinate before the image translation renewal and pixel translation;
Intersection graph is as the area coordinate computing unit, be used for according to the image-region coordinate before the described renewal with upgrade after the image-region of image-region coordinate Calculation image translation before upgrading and image translation renewal after the intersection graph of image-region coordinate as area coordinate;
The common image data extracting unit is used for extracting corresponding common image data as area coordinate from the first internal memory according to described intersection graph.
8. image update display system according to claim 6 is characterized in that, described delta data drafting module comprises:
Modified-image area coordinate computing unit is used for the modified-image area coordinate after the computed image translation is upgraded;
The modified-image data-reading unit is used for reading corresponding modified-image data according to described modified-image area coordinate from storage medium;
Modified-image data drawing unit is used for drawing described modified-image data at described the 3rd internal memory.
9. image update display system according to claim 6 is characterized in that, described image display is further used for:
The view data of the first internal memory is copied on the dc of interface, again the view data on the described interface dc is shown.
10. according to claim 6 to 9 each described image update display systems, it is characterized in that described image is the GIS map.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210518124.XA CN103020888B (en) | 2012-12-05 | 2012-12-05 | Image translation upgrades display packing and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210518124.XA CN103020888B (en) | 2012-12-05 | 2012-12-05 | Image translation upgrades display packing and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103020888A true CN103020888A (en) | 2013-04-03 |
CN103020888B CN103020888B (en) | 2016-04-13 |
Family
ID=47969462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210518124.XA Active CN103020888B (en) | 2012-12-05 | 2012-12-05 | Image translation upgrades display packing and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103020888B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731547A (en) * | 2015-04-02 | 2015-06-24 | 深圳市亚特尔仪器有限公司 | Method for drawing dynamic tendency chart |
CN105139356A (en) * | 2015-08-25 | 2015-12-09 | 北京锤子数码科技有限公司 | Image data ground glass effect processing method and device |
CN105164683A (en) * | 2014-01-31 | 2015-12-16 | 谷歌公司 | System and method for geo-locating images |
CN107273072A (en) * | 2016-04-07 | 2017-10-20 | 阿里巴巴集团控股有限公司 | Image display method, device and electronic equipment |
CN108242070A (en) * | 2017-10-09 | 2018-07-03 | 北京车和家信息技术有限公司 | A kind of image drawing method, image plotting device and computer equipment |
CN109657017A (en) * | 2018-11-05 | 2019-04-19 | 北京市天元网络技术股份有限公司 | It polymerize the methods of exhibiting and device of point set in map |
CN109931933A (en) * | 2017-12-15 | 2019-06-25 | 中国航空工业集团公司成都飞机设计研究所 | Mission planning and navigation method for drafting based on GIS platform |
CN111481111A (en) * | 2019-01-29 | 2020-08-04 | 北京奇虎科技有限公司 | Use method and device of internal memory of sweeper |
CN117094879A (en) * | 2023-10-18 | 2023-11-21 | 南京砺算科技有限公司 | Data copying method and device, computer readable storage medium and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101299328A (en) * | 2008-06-19 | 2008-11-05 | 华为技术有限公司 | Image display method and apparatus |
CN102509536A (en) * | 2011-10-12 | 2012-06-20 | 上海果壳电子有限公司 | Refresh control method and system for electronic ink screen |
-
2012
- 2012-12-05 CN CN201210518124.XA patent/CN103020888B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101299328A (en) * | 2008-06-19 | 2008-11-05 | 华为技术有限公司 | Image display method and apparatus |
CN102509536A (en) * | 2011-10-12 | 2012-06-20 | 上海果壳电子有限公司 | Refresh control method and system for electronic ink screen |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105164683A (en) * | 2014-01-31 | 2015-12-16 | 谷歌公司 | System and method for geo-locating images |
CN104731547A (en) * | 2015-04-02 | 2015-06-24 | 深圳市亚特尔仪器有限公司 | Method for drawing dynamic tendency chart |
CN105139356B (en) * | 2015-08-25 | 2018-06-22 | 北京锤子数码科技有限公司 | The frosted glass effect processing method and device of a kind of image data |
CN105139356A (en) * | 2015-08-25 | 2015-12-09 | 北京锤子数码科技有限公司 | Image data ground glass effect processing method and device |
CN107273072B (en) * | 2016-04-07 | 2020-09-04 | 阿里巴巴集团控股有限公司 | Picture display method and device and electronic equipment |
CN107273072A (en) * | 2016-04-07 | 2017-10-20 | 阿里巴巴集团控股有限公司 | Image display method, device and electronic equipment |
CN108242070A (en) * | 2017-10-09 | 2018-07-03 | 北京车和家信息技术有限公司 | A kind of image drawing method, image plotting device and computer equipment |
CN109931933A (en) * | 2017-12-15 | 2019-06-25 | 中国航空工业集团公司成都飞机设计研究所 | Mission planning and navigation method for drafting based on GIS platform |
CN109931933B (en) * | 2017-12-15 | 2022-10-28 | 中航(成都)无人机系统股份有限公司 | Task planning and navigation drawing method based on GIS platform |
CN109657017A (en) * | 2018-11-05 | 2019-04-19 | 北京市天元网络技术股份有限公司 | It polymerize the methods of exhibiting and device of point set in map |
CN111481111A (en) * | 2019-01-29 | 2020-08-04 | 北京奇虎科技有限公司 | Use method and device of internal memory of sweeper |
CN117094879A (en) * | 2023-10-18 | 2023-11-21 | 南京砺算科技有限公司 | Data copying method and device, computer readable storage medium and electronic equipment |
CN117094879B (en) * | 2023-10-18 | 2024-03-26 | 南京砺算科技有限公司 | Data copying method and device, computer readable storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103020888B (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103020888A (en) | Image translation updating display method and system | |
CN101388157B (en) | Electronic map display method, apparatus and equipment | |
US10134106B2 (en) | Method and device for selective display refresh | |
US9013479B2 (en) | Apparatus and method for tile-based rendering | |
CN105487848B (en) | A kind of the display method for refreshing and system of 3D application | |
US9286122B2 (en) | Display techniques using virtual surface allocation | |
CN101290746A (en) | Image updating method of electronic paper screen | |
CN106611401B (en) | Method and device for storing image in texture memory | |
US9940907B2 (en) | Virtual surface gutters | |
TW201843651A (en) | Methods of compressing a texture image and image data processing system and methods of generating a 360-degree panoramic video thereof | |
Liang et al. | Embedding user-generated content into oblique airborne photogrammetry-based 3D city model | |
US9182934B2 (en) | Method and apparatus for generating an output surface from one or more input surfaces in data processing systems | |
CN105787402A (en) | Information display method and device | |
CN109859109B (en) | Series scale PDF map seamless organization and display method | |
EP2338152B1 (en) | Method and system for rendering of labels | |
CN103995684A (en) | Method and system for synchronously processing and displaying mass images under ultrahigh resolution platform | |
KR101810019B1 (en) | Animation data generating method, apparatus, and electronic device | |
CN102831605B (en) | Method for rapidly visualizing multi-scale image segmentation results for large images | |
CN105989568A (en) | OpenGL-based local refresh method and system | |
CN101656037A (en) | Method for displaying large-format picture on small screen equipment and small screen equipment | |
CN105096365A (en) | 3D interface local refreshing method and system | |
KR20220148814A (en) | Methods and apparatus for efficient multi-view rasterization | |
CN111414104B (en) | Electronic map local display method and device | |
CN103700362B (en) | Multi signal window display method and device | |
US20190220411A1 (en) | Efficient partitioning for binning layouts |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 510670 Guangdong Province, Guangzhou high tech Industrial Development Zone Kezhu Road No. 233 Patentee after: Wei Chong group Limited by Share Ltd Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No. Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd. |