CN107203971A - The gradual loading method of sampled images - Google Patents

The gradual loading method of sampled images Download PDF

Info

Publication number
CN107203971A
CN107203971A CN201710629397.4A CN201710629397A CN107203971A CN 107203971 A CN107203971 A CN 107203971A CN 201710629397 A CN201710629397 A CN 201710629397A CN 107203971 A CN107203971 A CN 107203971A
Authority
CN
China
Prior art keywords
subgraph
image
resolution
sampled images
loading method
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
Application number
CN201710629397.4A
Other languages
Chinese (zh)
Other versions
CN107203971B (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.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201710629397.4A priority Critical patent/CN107203971B/en
Publication of CN107203971A publication Critical patent/CN107203971A/en
Application granted granted Critical
Publication of CN107203971B publication Critical patent/CN107203971B/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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The present invention provides a kind of gradual loading method of sampled images, and it comprises the following steps:The size, the resolution ratio of display screen and one subgraph resolution ratio of setting of crude sampling image are obtained, and calculates image and splits parameter, and crude sampling image is split into subgraph;The current resolution of display screen is obtained and updated in real time, a subgraph i is chosen and is shown as display subgraph, or more subgraphs are chosen according to the difference of current resolution and is shown with subgraph i restructuring.So make it that first loading is fast, the image of first reference resolution is loaded with for the first time to be shown, and realizes gradual loading, can be realized by obscuring clear effect.

Description

The gradual loading method of sampled images
Technical field
The invention belongs to medical domain, more particularly to a kind of gradual loading method of sampled images.
Background technology
In medical imaging device, the resolution ratio (length and width) of the single file of X-ray DR, CR etc. image file all compares Greatly, general length and width are between 2000-4000.And if necessary to which when web system shows medical image, user wishes that system can be carried Can be the method for first showing summary and then displaying the details of again for a kind of method of rapid image loaded and displayed.This effect is similar Image shows that effect that mosaic gradually shows.
And realize in image display process, particularly show this kind of big in the less equipment of the screen such as mobile phone and flat board During medical image, the length or width of mobile phone and flat board screen resolution may be between 300-1000.Therefore may be most Start to load and show that an image slightly larger than screen resolution is relatively good method during display, then as the contracting of user The image that operation reloads a bigger resolution ratio such as put.
Tradition has two class ways:
On be loaded directly into full resolution image, Zoom display is then done according to screen resolution.This way because Image file is larger, and the load time is long, needs to wait long time when display for the first time.
According to screen resolution and viewing area (screen may be only able to display a part for image), in server end The image of a corresponding region is downloaded, is then shown in browser end.This mode is taught flexibly, but needs repeatedly to download figure Picture, therefore flow consumption is more, although and the image downloaded every time less, also have certain stand-by period.
The content of the invention
To solve the above problems, the present invention provides a kind of gradual loading method of sampled images, it comprises the following steps:
Size a*b, the resolution ratio g*h of display screen of crude sampling image are obtained, and sets the basis point of a subgraph Resolution A*B, and figure is calculated according to the reference resolution A*B of the resolution ratio a*b of the crude sampling image, the subgraph The subgraph that c*d size is A*B is split into as splitting parameter c*d, and by crude sampling image, wherein c is more than a/A and tightly By its integer and for 2 e power, d be more than b/B and against its integer and be 2 f power, wherein e and f are just whole Number, and e >=1, f >=1;
The current resolution g*h of display screen is obtained and updates in real time,
Work as A=g, and during B=h, choose one of them described subgraph i and shown;
Work as g/A=m, during B/h=n, choose 2 in addition to subgraph im+n- 1 subgraph simultaneously recombinates it with subgraph i It has been shown that, wherein m and n are positive integer, and m≤c, n≤d;
When working as g/A=o, B/h=p, and o > m, p > n, 2 are choseno+p-2m+nIndividual segment subgraph and and before 2m+nIt is individual Subgraph restructuring shown, wherein o and p are positive integer, and m≤c, n≤d.
Preferably, in the gradual loading method of described sampled images, the subgraph i is the crude sampling image In the most upper left corner, the lower left corner, the subgraph in the upper right corner or the lower right corner.
Preferably, in the gradual loading method of described sampled images, remaining in addition to subgraph i 2m+n- 1 Subgraph turns into square with subgraph i splicings and shown.
Preferably, in the gradual loading method of described sampled images, 2 are choseno+p-2m+nIndividual subgraph and and before 2m+nWhen individual sub- image reorganization is shown, will be described before 2m+nIndividual subgraph as stitching image the most upper left corner, lower-left The image at angle, the upper right corner or the lower right corner, and by itself and 2o+p-2m+nIndividual sub- image mosaic is shown into square..
The present invention provides a kind of gradual loading method of sampled images, has the advantages that:
First loading is fast, and the image of first reference resolution is loaded with for the first time to be shown.
Gradual loading, can be realized by obscuring clear effect.If the target resolution of screen is more than current figure During the resolution ratio of picture, you can the remaining part of loading is assembled into the image of bigger resolution ratio for display.This behavior is circulated until group The image of original resolution is taken on or untill the resolution ratio of image that assembles is more than display resolution
Save flow.The image for needing to show most only is loaded with first, and during display, maximum image Whole original images are exactly loaded with, without as second of conventional method, there is what loading section image was discarded again Behavior.
Further advantage, target and the feature of the present invention embodies part by following explanation, and part will also be by this The research and practice of invention and be understood by the person skilled in the art.
Brief description of the drawings
The signal of the image reorganization of the one embodiment for the gradual loading method of sampled images that Fig. 1 provides for the present invention Figure;
Fig. 2 is shown for the image reorganization of another embodiment of the gradual loading method of sampled images provided using the present invention It is intended to.
Embodiment
The present invention is described in further detail below, to make those skilled in the art being capable of evidence with reference to specification word To implement.
It should be appreciated that such as " having ", "comprising" and " comprising " term used herein do not allot one or many The presence or addition of individual other elements or its combination.
The present invention provides a kind of gradual loading method of sampled images, and it comprises the following steps:
Size a*b, the resolution ratio g*h of display screen of crude sampling image are obtained, and sets the basis point of a subgraph Resolution A*B, and figure is calculated according to the reference resolution A*B of the resolution ratio a*b of the crude sampling image, the subgraph The subgraph that c*d size is A*B is split into as splitting parameter c*d, and by crude sampling image, wherein c is more than a/A and tightly By its integer and for 2 e power, d be more than b/B and against its integer and be 2 f power, wherein e and f are just whole Number, and e >=1, f >=1;
The current resolution g*h of display screen is obtained and updates in real time,
Work as A=g, and during B=h, choose one of them described subgraph i and shown;
Work as g/A=m, during B/h=n, choose 2 in addition to subgraph im+n- 1 subgraph simultaneously recombinates it with subgraph i It has been shown that, wherein m and n are positive integer, and m≤c, n≤d;
When working as g/A=o, B/h=p, and o > m, p > n, 2 are takeno+p-2m+nIndividual segment subgraph and and before 2m+nHeight Image reorganization shown, wherein o and p are positive integer, and m≤c, n≤d.
In the gradual loading method of described sampled images, the subgraph i be the original image in the most upper left corner, The subgraph in the lower left corner, the upper right corner or the lower right corner.
In the gradual loading method of described sampled images, remaining in addition to subgraph i 2m+n- 1 subgraph and son Image i splicings turn into square and shown.
In the gradual loading method of described sampled images, 2 are choseno+p-2m+nIndividual subgraph and and before 2m+nIndividual subgraph As restructuring shown when, will be described before 2m+nIndividual subgraph as stitching image the most upper left corner, the lower left corner, the upper right corner Or the image in the lower right corner, and by itself and 2o+p-2m+nIndividual sub- image mosaic is shown into square..
Resolution ratio and the resolution ratio of screen of the invention according to crude sampling image, and consider the length of network download time It is short, the image resolution ratio of a benchmark is first set up, then original image is split into 2 n times power of this reference resolution, so Afterwards in display according to the target resolution size for needing to show, reconstructing to be slightly larger than in browser end needs display resolution 2 M (M<=N) power image be used for show.
As an example it is assumed that the size of crude sampling image is the image of wide 2000 length 2000, and figure is shown on mobile phone Reference resolution is set during picture as 512*512, then 2 power more than 2000 is 2048, then crude sampling image can be split Into 4*4 subgraph, each subgraph size is 512*512.So most start first to load first son during display display Image can quickly go out preview graph.If the resolution ratio of equipment is more than 512 and is less than 1024, reconstructing resolution ratio is 1024*1024 image is used to show.When user does zoom operations to image, the image resolution ratio of actual displayed be more than 1024 and During less than or equal to 2048, then reconstruct resolution ratio be 2048 image be used for show.
The method for splitting of image:The original resolution of known image and the reference resolution of display, then it is known that original Resolution ratio is the multiple to reference resolution, as above in example, the length of original image and it is wide be all 4 times of reference resolution.Original Beginning image splits into 4*4 subgraph of the wide sizes of the long * of reference resolution.
Image rebuilding method:During first display, the image by first loaded and displayed of most upper left corner subgraph (can be certainly Fixed, such as upper right is left small, bottom right can).If desired, it is necessary to it will be assumed benchmark during the image of display 1024*1024 sizes Resolution ratio is that the image in the most upper left corner of 1024*1024 broken away view is shown.It is included due in preceding Sub-reso The subgraph in the upper left corner of 512*512 resolution ratio, then only need to loaded and displayed the other three 512*512 subgraph, and By this 4 512*512 subgraph composite assembly into 1024*1024 resolution ratio image.And so on, if necessary to show During the image of 2048*2048 resolution ratio, with reference to the image of existing 1024 resolution ratio, the other three 1024*1024 is reloaded Image, and assemble 2048 sizes image come.
When initial resolution is 512, when image size is 2048, that is, when showing the 512*512 figure of resolution ratio, such as Fig. 1 It is shown, the image that one of them subgraph for being expressed as 1 is assembled into 512*512 is extracted, during display 1024*1024, new load table 2 three subgraphs are shown as, and the image for assembling 1024*1024 resolution ratio with the subgraph for being expressed as 1 comes.As shown in Fig. 2 When showing 2048*2048, new loading is expressed as 3 12 subgraphs, and and is expressed as 1 subgraph and is expressed as 2 subgraph As the image for assembling 2048*2048 resolution ratio comes.
Although embodiment of the present invention is disclosed as above, it is not restricted in specification and embodiment listed With it can be applied to various suitable the field of the invention completely, can be easily for those skilled in the art Other modification is realized, therefore under the universal limited without departing substantially from claim and equivalency range, the present invention is not limited In specific details and shown here as the legend with description.

Claims (4)

1. the gradual loading method of sampled images, it is characterised in that comprise the following steps:
Size a*b, the resolution ratio g*h of display screen of crude sampling image are obtained, and sets the reference resolution of a subgraph A*B, and image is calculated according to the resolution ratio a*b of the crude sampling image, the subgraph reference resolution A*B torn open Divide parameter c*d, and crude sampling image is split into the subgraph that c*d size is A*B, wherein c is more than a/A and against it Integer and for 2 e power, d be more than b/B and against its integer and be 2 f power, wherein e and f are positive integer, and E >=1, f >=1;
The current resolution g*h of display screen is obtained and updates in real time,
Work as A=g, and during B=h, choose one of them described subgraph i and shown;
Work as g/A=m, during B/h=n, choose 2 in addition to subgraph im+nIt is simultaneously recombinated progress by -1 subgraph with subgraph i It has been shown that, wherein m and n are positive integer, and m≤c, n≤d;
When working as g/A=o, B/h=p, and o > m, p > n, 2 are choseno+p-2m+nIndividual subgraph and and before 2m+nIndividual subgraph weight Group shown, wherein o and p are positive integer, and o≤c, p≤d.
2. the gradual loading method of sampled images as claimed in claim 1, it is characterised in that the subgraph i is the original The subgraph in the most upper left corner, the lower left corner, the upper right corner or the lower right corner in beginning sampled images.
3. the gradual loading method of sampled images as claimed in claim 2, it is characterised in that remaining is in addition to subgraph i 2m+n- 1 subgraph turns into square with subgraph i splicings and shown.
4. the gradual loading method of sampled images as claimed in claim 3, it is characterised in that choose 2o+p-2m+nIndividual subgraph And and before 2m+nWhen individual sub- image reorganization is shown, will be described before 2m+nIndividual subgraph is used as the most left of stitching image Upper angle, the lower left corner, the image in the upper right corner or the lower right corner, and by itself and 2o+p-2m+nIndividual sub- image mosaic is shown into square.
CN201710629397.4A 2017-07-28 2017-07-28 Progressive loading method for sampled image Active CN107203971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710629397.4A CN107203971B (en) 2017-07-28 2017-07-28 Progressive loading method for sampled image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710629397.4A CN107203971B (en) 2017-07-28 2017-07-28 Progressive loading method for sampled image

Publications (2)

Publication Number Publication Date
CN107203971A true CN107203971A (en) 2017-09-26
CN107203971B CN107203971B (en) 2021-03-12

Family

ID=59911443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710629397.4A Active CN107203971B (en) 2017-07-28 2017-07-28 Progressive loading method for sampled image

Country Status (1)

Country Link
CN (1) CN107203971B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021345A (en) * 2017-12-26 2018-05-11 国网重庆市电力公司电力科学研究院 A kind of image browsing method, system, equipment and computer-readable storage medium
CN109062651A (en) * 2018-08-01 2018-12-21 深圳Tcl新技术有限公司 Picture loading method, device, storage medium and the intelligent terminal at the interface UI

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101511011A (en) * 2009-02-19 2009-08-19 浙江大学 Display method and device for image drop sampling quick decode
CN102411625A (en) * 2011-03-21 2012-04-11 苏州阔地网络科技有限公司 Progressive output display method and device
CN103312940A (en) * 2013-06-17 2013-09-18 中国航天科工集团第三研究院第八三五八研究所 Self-adaptive median filter method based on FPGA (filed programmable gate array)
WO2014034256A1 (en) * 2012-08-27 2014-03-06 ソニー株式会社 Display control apparatus, display control system, and display control method
CN103985085A (en) * 2014-05-26 2014-08-13 三星电子(中国)研发中心 Image super-resolution amplifying method and device
CN105472392A (en) * 2015-12-11 2016-04-06 钟炎培 Screen video encoding and decoding method based on progressive character block compression and encoding and decoding device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101511011A (en) * 2009-02-19 2009-08-19 浙江大学 Display method and device for image drop sampling quick decode
CN102411625A (en) * 2011-03-21 2012-04-11 苏州阔地网络科技有限公司 Progressive output display method and device
WO2014034256A1 (en) * 2012-08-27 2014-03-06 ソニー株式会社 Display control apparatus, display control system, and display control method
CN103312940A (en) * 2013-06-17 2013-09-18 中国航天科工集团第三研究院第八三五八研究所 Self-adaptive median filter method based on FPGA (filed programmable gate array)
CN103985085A (en) * 2014-05-26 2014-08-13 三星电子(中国)研发中心 Image super-resolution amplifying method and device
CN105472392A (en) * 2015-12-11 2016-04-06 钟炎培 Screen video encoding and decoding method based on progressive character block compression and encoding and decoding device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHIN-CHEN CHANG 等: "A novel method for progressive image transmission using blocked wavelets", 《AEU - INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATIONS》 *
何治 等: "基于算子系统的渐进式图像建模方法", 《计算机应用研究》 *
郝利国 等: "医学影像图像融合技术研究", 《齐齐哈尔医学院学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021345A (en) * 2017-12-26 2018-05-11 国网重庆市电力公司电力科学研究院 A kind of image browsing method, system, equipment and computer-readable storage medium
CN108021345B (en) * 2017-12-26 2021-05-11 国网重庆市电力公司电力科学研究院 Image browsing method, system, equipment and computer storage medium
CN109062651A (en) * 2018-08-01 2018-12-21 深圳Tcl新技术有限公司 Picture loading method, device, storage medium and the intelligent terminal at the interface UI

Also Published As

Publication number Publication date
CN107203971B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN105608161B (en) Loading progress display method and terminal
US9123084B2 (en) Graphical application integration with MPEG objects
CN103514241A (en) Image loading method and system
CN110688043B (en) Double-image display method and device and terminal
CN107203971A (en) The gradual loading method of sampled images
JP2007318694A (en) Image processing apparatus, image processing method
CN113905219B (en) Image processing apparatus and method, image processing system, control method, and medium
JP2004179881A5 (en)
CN105045587A (en) Picture display method and apparatus
US8296657B2 (en) Random image selection without viewing duplication
CN102769732B (en) A kind of conversion method for realizing video field
CN106326477A (en) Image downloading method and system
CN111562869B (en) Screenshot method and device, storage medium and electronic device
CN105094821A (en) Method and device used for determining background information of invoked applications
CN105678688B (en) Picture processing method and device
CN110647705A (en) Picture synthesis method, device, equipment and storage medium
JP5455714B2 (en) How to print the web page capture screen
CN101539939B (en) Method for fast display of vast images
CN101159819A (en) Method and device of inter cut Flash in online video
CN105955581A (en) Wallpaper split screen display method and equipment based on terminal screen
JP2005136599A (en) Image display apparatus
CN104915207A (en) Webpage icon making method and webpage icon making system
CN105550198B (en) A method of 3D rendering effect is added when browsing photo
CN101609547A (en) Seamless image splicing processing method based on cumlative energy
CN112165631B (en) Media resource processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant