CN107203971B - Progressive loading method for sampled image - Google Patents

Progressive loading method for sampled image Download PDF

Info

Publication number
CN107203971B
CN107203971B CN201710629397.4A CN201710629397A CN107203971B CN 107203971 B CN107203971 B CN 107203971B CN 201710629397 A CN201710629397 A CN 201710629397A CN 107203971 B CN107203971 B CN 107203971B
Authority
CN
China
Prior art keywords
image
sub
images
resolution
display
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
CN201710629397.4A
Other languages
Chinese (zh)
Other versions
CN107203971A (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

Images

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 invention provides a progressive loading method of a sampled image, which comprises the following steps: acquiring the size of an original sampling image and the resolution of a display screen, setting the resolution of a sub-image, calculating to obtain an image splitting parameter, and splitting the original sampling image into the sub-images; and acquiring and updating the current resolution of the display screen in real time, and selecting one sub-image i as a display sub-image to be displayed, or selecting more sub-images to be recombined with the sub-image i to be displayed according to different current resolutions. Therefore, the initial loading is fast, the image with the first reference resolution is loaded for the first time to be displayed, the progressive loading is realized, and the effect of getting clear from fuzzy can be realized.

Description

Progressive loading method for sampled image
Technical Field
The invention belongs to the field of medicine, and particularly relates to a progressive loading method for a sampled image.
Background
In medical imaging equipment, the resolution (length and width) of each of the image files of X-ray films DR, CR, etc. is relatively large, and the length and width are generally between 2000-4000. If the medical image needs to be displayed on the web system, the user hopes that the system can provide a method for rapidly loading and displaying the image, which can be a method of firstly displaying the abstract and then displaying the abstract in detail. This effect is similar to the effect that an image display mosaic gradually appears.
In the process of displaying images, especially when such large medical images are displayed on devices with smaller screens, such as mobile phones and tablets, the screen resolution of the mobile phones and the tablets may be between 300-1000 in length or width. It may be desirable to load and display an image slightly greater than the screen resolution at the beginning of the display, and then to load a larger resolution image as the user zooms or otherwise.
There are two traditional approaches:
the full-resolution image is directly loaded, and then the zooming display is carried out according to the screen resolution. This is done because the image file is large and the loading time is long, and it takes a long time to wait for the first display.
According to the screen resolution and the display area (the screen can only display a part of the image), the image of a corresponding area is downloaded at the server side and then displayed at the browser side. This method is flexible, but requires downloading images many times, and therefore consumes a lot of traffic, and the images downloaded each time are not large, but have a certain waiting time.
Disclosure of Invention
In order to solve the above problems, the present invention provides a progressive loading method for a sampled image, which comprises the following steps:
acquiring the size a & ltb & gt of an original sampling image, displaying the resolution g & lth & gt of a screen, setting the reference resolution A & ltb & gt of a sub-image, calculating an image splitting parameter c & ltd & gt according to the resolution a & ltb & gt of the original sampling image and the reference resolution A & ltb & gt of the sub-image, splitting the original sampling image into c & ltd & gt sub-images with the size A & ltb & gt, wherein c is an integer which is larger than a/A and close to the a/A and is the power e of 2, d is an integer which is larger than B/B and close to the B/B and is the power f of 2, wherein e and f are positive integers, e is larger than or equal to 1, and f is larger than or equal to 1;
acquiring and updating the current resolution g x h of the display screen in real time,
when A is g and B is h, selecting one of the sub-images i for display;
when g/A equals m and B/h equals n, 2 except the sub-image i is selectedm+n1 sub-image and recombining the sub-image with the sub-image i for display, wherein m and n are positive integers, m is less than or equal to c, and n is less than or equal to d;
when g/A ═ o, B/h ═ p, o > m, and p > n, 2 is selectedo+p-2m+nMerging of tile sub-images with previous 2m+nAnd recombining the sub-images for display, wherein o and p are positive integers, m is less than or equal to c, and n is less than or equal to d.
Preferably, in the progressive sample image loading method, the sub-image i is a sub-image at the top left corner, the bottom left corner, the top right corner, or the bottom right corner of the original sample image.
Preferably, in the method for progressively loading sampled images, the rest 2 except the sub-image im+n-1 sub-image is stitched with sub-image i into a square for display.
Preferably, in the progressive loading method for sampled images, 2 is selectedo+p-2m+nSub-image merging with previous 2m+nWhen the sub-images are recombined and displayed, the previous 2 are displayedm+nThe sub-images are used as the images of the leftmost upper corner, the lower left corner, the upper right corner or the lower right corner of the spliced image and are compared with 2o+p-2m+nThe sub-images are spliced into a square for display. .
The invention provides a progressive loading method for a sampled image, which has the following beneficial effects:
the initial loading is fast, and the image with the first reference resolution is loaded for the first time and can be displayed.
And progressive loading can realize the effect from blurring to clarification. If the target resolution of the screen is greater than the resolution of the current image, the remaining portions may be loaded into a larger resolution image for display. Looping through this action until an image of the original resolution is assembled or the resolution of the assembled image is greater than the display resolution
The flow is saved. Only the image to be displayed is loaded at the beginning, and the largest image is loaded with the whole original image during the display process, and the action of loading partial images and discarding is not performed like the second traditional method.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
FIG. 1 is a schematic diagram of image reorganization according to an embodiment of a progressive sample image loading method provided by the present invention;
fig. 2 is a schematic diagram of image reorganization by using another embodiment of the progressive sample image loading method provided by the present invention.
Detailed Description
The present invention is described in further detail below to enable those skilled in the art to practice the invention with reference to the description.
It will be understood that terms such as "having," "including," and "comprising," as used herein, do not preclude the presence or addition of one or more other elements or groups thereof.
The invention provides a progressive loading method of a sampled image, which comprises the following steps:
acquiring the size a & ltb & gt of an original sampling image, displaying the resolution g & lth & gt of a screen, setting the reference resolution A & ltb & gt of a sub-image, calculating an image splitting parameter c & ltd & gt according to the resolution a & ltb & gt of the original sampling image and the reference resolution A & ltb & gt of the sub-image, splitting the original sampling image into c & ltd & gt sub-images with the size A & ltb & gt, wherein c is an integer which is larger than a/A and close to the a/A and is the power e of 2, d is an integer which is larger than B/B and close to the B/B and is the power f of 2, wherein e and f are positive integers, e is larger than or equal to 1, and f is larger than or equal to 1;
acquiring and updating the current resolution g x h of the display screen in real time,
when A is g and B is h, selecting one of the sub-images i for display;
when g/A equals m and B/h equals n, 2 except the sub-image i is selectedm+n1 sub-image and recombining the sub-image with the sub-image i for display, wherein m and n are positive integers, m is less than or equal to c, and n is less than or equal to d;
when g/A ═ o, B/h ═ p, and o > m, p > n, 2 is takeno+p-2m+nMerging of tile sub-images with previous 2m+nAnd recombining the sub-images for display, wherein o and p are positive integers, m is less than or equal to c, and n is less than or equal to d.
In the progressive sampling image loading method, the sub-image i is a sub-image at the top left corner, the bottom left corner, the top right corner or the bottom right corner of the original image.
In the progressive loading method of the sampling image, the rest 2 except the sub-image im+n-1 sub-image is stitched with sub-image i into a square for display.
In the progressive loading method of the sampled image, 2 is selectedo+p-2m+nSub-image merging with previous 2m+nWhen the sub-images are recombined and displayed, the sub-images are displayed2 of the preceding paragraphm+nThe sub-images are used as the images of the leftmost upper corner, the lower left corner, the upper right corner or the lower right corner of the spliced image and are compared with 2o+p-2m+nThe sub-images are spliced into a square for display. .
According to the resolution of an original sampling image and the resolution of a screen, and considering the length of network downloading time, the method firstly establishes a reference image resolution, then splits the original image into 2 powers of N of the reference resolution, and then reconstructs an image slightly larger than 2 powers of M (M < -N) of the resolution required to be displayed at a browser end for display according to the size of the target resolution required to be displayed.
For example, assuming that the original sample image is 2000 images wide and 2000 images long, and the reference resolution is set to 512 × 512 when the images are displayed on a mobile phone, then a power of 2 greater than 2000 is 2048, the original sample image is split into 4 × 4 sub-images, each of which has a size of 512 × 512. Then loading the first sub-image when initially displayed may cause the preview to be quickly dropped. If the resolution of the device is greater than 512 and less than 1024, an image with a resolution of 1024 x 1024 is reconstructed for display. When the user performs scaling operation on the image and the resolution of the actually displayed image is greater than 1024 and less than or equal to 2048, the image with the resolution of 2048 is reconstructed for display.
The image splitting method comprises the following steps: knowing the original resolution of the image and the reference resolution of the display, it can be known that the original resolution is a multiple of the reference resolution, as in the above example, the original image is 4 times as long and as wide as the reference resolution. The original image is split into 4 x 4 sub-images of the size of length x width of the reference resolution.
The image reconstruction method comprises the following steps: when the image is displayed for the first time, the image displayed for the first time is loaded by taking the leftmost sub-image (which can be specified, for example, the image can be displayed at the upper right, the image can be displayed at the small left, and the image can be displayed at the lower right). If it is desired to display images of 1024 × 1024 size, the image at the upper left corner of the split map assuming the reference resolution is 1024 × 1024 needs to be displayed. Since the sub-image in the top left corner of 512 × 512 resolution was already included in the previous resolution, only three additional 512 × 512 sub-images need to be loaded and assembled into an image of 1024 × 1024 resolution. By analogy, if 2048 × 2048 resolution images need to be displayed, the other three 1024 × 1024 images are reloaded in combination with the existing 1024 resolution images, and 2048 size images are assembled.
When the initial resolution is 512 and the image size is 2048, that is, when a 512 × 512 resolution map is displayed, as shown in fig. 1, one of the sub-images denoted by 1 is extracted and assembled into a 512 × 512 image, when 1024 × 1024 is displayed, three sub-images denoted by 2 are newly loaded and assembled into a 1024 × 1024 resolution image with the sub-images denoted by 1. As shown in fig. 2, while 2048 × 2048 is displayed, 12 sub-images denoted 3 are newly loaded and assembled with sub-images denoted 1 and sub-images denoted 2 to form an image of 2048 × 2048 resolution.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

Claims (2)

1. The progressive loading method of the sampling image is characterized by comprising the following steps:
acquiring the size a & ltb & gt of an original sampling image, displaying the resolution g & lth & gt of a screen, setting the reference resolution A & ltb & gt of a sub-image, calculating an image splitting parameter c & ltd & gt according to the resolution a & ltb & gt of the original sampling image and the reference resolution A & ltb & gt of the sub-image, splitting the original sampling image into c & ltd & gt sub-images with the size A & ltb & gt, wherein c is an integer which is larger than a/A and close to the a/A and is the power e of 2, d is an integer which is larger than B/B and close to the B/B and is the power f of 2, wherein e and f are positive integers, e is larger than or equal to 1, and f is larger than or equal to 1;
acquiring and updating the current resolution g x h of the display screen in real time,
when A is g and B is h, selecting one of the sub-images i for display;
when g/A equals m and B/h equals n, 2 except the sub-image i is selectedm+n1 sub-image and recombining the sub-image with the sub-image i for display, wherein m and n are positive integers, m is less than or equal to c, and n is less than or equal to d;
when g/A ═ o, B/h ═ p, o > m, and p > n, 2 is selectedo+p-2m+nSub-image merging with previous 2m+nRecombining the sub-images for display, wherein o and p are positive integers, o is less than or equal to c, and p is less than or equal to d;
the sub-image i is a sub-image at the top left corner, the bottom left corner, the top right corner or the bottom right corner in the original sampling image; the remaining 2 except the sub-image im+n-1 sub-image is stitched with sub-image i into a square for display.
2. The method for progressive loading of sampled images according to claim 1, wherein 2 is choseno+p-2m+nSub-image merging with previous 2m+nWhen the sub-images are recombined and displayed, the previous 2 are displayedm+nThe sub-images are used as the images of the leftmost upper corner, the lower left corner, the upper right corner or the lower right corner of the spliced image and are compared with 2o+p-2m+nThe sub-images are spliced into a square for display.
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 CN107203971A (en) 2017-09-26
CN107203971B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (3)

* 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
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
A novel method for progressive image transmission using blocked wavelets;Chin-Chen Chang 等;《AEU - International Journal of Electronics and Communications》;20080201;第62卷(第2期);第159-162页 *
医学影像图像融合技术研究;郝利国 等;《齐齐哈尔医学院学报》;20100115;第31卷(第1期);第74-76页 *
基于算子系统的渐进式图像建模方法;何治 等;《计算机应用研究》;20050610(第6期);第231-233页 *

Also Published As

Publication number Publication date
CN107203971A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
US10594957B2 (en) Image acquisition control methods and apparatuses, and image acquisition devices
CN110163237B (en) Model training and image processing method, device, medium and electronic equipment
EP0476409B1 (en) Image display apparatus
US9196228B2 (en) Image displaying apparatus and image displaying method
CN109992226A (en) Image display method and device and spliced display screen
CN107203971B (en) Progressive loading method for sampled image
KR20090115755A (en) Method for processing a digital image
WO2000016263A1 (en) A method and apparatus for re-sizing and cropping images by operating directly on their digital orthogonal transforms
CN110688043B (en) Double-image display method and device and terminal
EP1494196A3 (en) Method of processing a video image sequence in a liquid crystal display panel
US20170280052A1 (en) Super-resolution image acquisition methods and apparatus
CN109817170A (en) Pixel compensation method, device and terminal device
JP4346859B2 (en) Image pickup apparatus, image display method and program in image pickup apparatus
KR20080104546A (en) Real-size preview system and control method in terminal that have digitial camera function
CN112770042A (en) Image processing method and device, computer readable medium, wireless communication terminal
DE69839079T2 (en) SYSTEM AND METHOD FOR 2-ABGRIFF / 3-ABGRIFF FLIMMERFILTERN
US10908795B2 (en) Information processing apparatus, information processing method
EP2435987B1 (en) Presentation and manipulation of high depth images in low depth image display systems
CN104361559A (en) Image magnifying method and system based on small image memory
CN110602410A (en) Image processing method and device, aerial camera and storage medium
CN108702465B (en) Method and apparatus for processing images in virtual reality system
EP2945364A1 (en) Display control device, program, and display control method
JP2016090906A (en) Image processor, image processing method, and program
JP2012200287A (en) X-ray imaging system, method for controlling x-ray imaging system, information processing device, x-ray imaging apparatus and program
JP2010136218A5 (en)

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