CN102129702A - Image thumbnail making method and system thereof - Google Patents

Image thumbnail making method and system thereof Download PDF

Info

Publication number
CN102129702A
CN102129702A CN 201010034028 CN201010034028A CN102129702A CN 102129702 A CN102129702 A CN 102129702A CN 201010034028 CN201010034028 CN 201010034028 CN 201010034028 A CN201010034028 A CN 201010034028A CN 102129702 A CN102129702 A CN 102129702A
Authority
CN
China
Prior art keywords
view data
thumbnail
data segment
internal memory
cutting
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
CN 201010034028
Other languages
Chinese (zh)
Other versions
CN102129702B (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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN 201010034028 priority Critical patent/CN102129702B/en
Publication of CN102129702A publication Critical patent/CN102129702A/en
Application granted granted Critical
Publication of CN102129702B publication Critical patent/CN102129702B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses an image thumbnail making method and a system thereof. The method comprises the following steps of: segmenting source image data into a plurality of image data segments; respectively calling each image data segment obtained by segmenting into a memory and generating thumbnail data according to the image data segments; and synthesizing the thumbnail data generated according to each image data segment to obtain thumbnails of a source image. Due to the adoption of the method, a final thumbnail of a large image is obtained by respectively making thumbnails of a small amount of data in batches in a mode of reading a large file into a memory in batches and splicing the thumbnails generated by the small amount of the data in sequence. Therefore, the problem that the conventional method consumes a large number of resources and cannot be used normally is overcome; the aims of high efficiency and low resource are fulfilled; and a very good preview effect can be achieved.

Description

A kind of method for making of image thumbnails and system thereof
Technical field
The present invention relates to the numerical imaging treatment technology of the communications field, relate in particular to a kind of method for making and system thereof of image thumbnails.
Background technology
In digital image processing system, often need management and handle the image files of various different sizes, in management and the process handled, just need utilize the thumbnail of image to carry out preview and check that the making of thumbnail or extraction just need certain method so.
Traditional method is that the original of image that will preview is all read in the internal memory, and then utilizes and take out line or a little the method for taking out obtains the thumbnail of this figure.For the little image file of data volume, this method can also be handled; But, need be if run into special circumstances to the image of data volume big (size that refers to the shared disk of file), as up to a hundred million or when going up gigabit even bigger its thumbnail of image making, traditional a large amount of consume system resources of method meeting, even system resource is consumed totally, so that system crash, the situation that the user can't continue to operate appear.
Summary of the invention
The embodiment of the invention provides a kind of method for making and system thereof of image thumbnails, in order to solve the existing big problem of thumbnail manufacturing technology system resources consumption.
The technical scheme that the embodiment of the invention provides comprises:
A kind of method for making of image thumbnails comprises:
Source image data is cut into a plurality of view data segments;
Each the view data segment that respectively cutting is obtained is called in internal memory and is generated thumbnail data according to this view data segment;
To synthesize according to the thumbnail data that each view data segment is generated, obtain the thumbnail of described source images.
A kind of manufacturing system of image thumbnails comprises:
Cutting module is used for source image data is cut into a plurality of view data segments;
Make module, each the view data segment that is used for respectively cutting being obtained is called in internal memory and is generated thumbnail data according to this view data segment;
Synthesis module, the thumbnail data that is used for being generated according to each view data segment synthesizes, and obtains the thumbnail of described source images.
The above embodiment of the present invention, by the image cutting source image data is cut into many parts of view data segments, and each part view data segment made thumbnail data respectively, the thumbnail data of all images data fragments that then cutting is obtained synthesizes, thereby obtains the thumbnail of this source images.Adopt the embodiment of the invention, the manufacturing process of image thumbnails is progressively carried out, because when making thumbnail at every turn, be that the view data segment after the cutting is carried out, therefore, its system resources consumption is less than usually whole source images is carried out thumbnail processing resource needed, especially for the bigger source images of data volume, can avoid taking excessively as far as possible, even cause the problem of system crash because of making system resource that thumbnail caused.
Description of drawings
One of making schematic flow sheet of the image thumbnails that Fig. 1 provides for the embodiment of the invention;
Two of the making schematic flow sheet of the image thumbnails that Fig. 2 provides for the embodiment of the invention;
The manufacturing system structural representation of the image thumbnails that Fig. 3 provides for the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In the making flow process of the image thumbnails that the embodiment of the invention provides, image is cut into many parts, one by one the data of each part image are called in internal memory then and carry out the thumbnail making of this part image, the thumbnail with each part image merges processing at last, thereby obtains the thumbnail of entire image.
As shown in Figure 1, image thumbnails makes that flow process mainly comprises the view data cutting stage, each part view data that cutting is obtained is carried out thumbnail respectively and made the stage of handling, and the thumbnail synthesis phase.
In the view data cutting stage, system will need that (to call this image in the following text is source images for its image of making thumbnail, i.e. Source image among the figure) data are cut, thereby the data of source images are cut into some parts of view data, every part of view data is a data segment of this source image data, and each the view data segment after the cutting can be kept on the disk.When carrying out the image cutting, (being cut into n part as shown in Figure 1) can be cut to source image data according to the data volume size of the cutting umber that sets in advance or every part by system, also can carry out the view data cutting according to the cutting umber of user's Set For Current or every part data volume size.The image thumbnails that the user can provide by system is made the data volume size that the interface be provided with cutting umber or every part.
Each part view data segment for cutting obtains can be numbered according to a definite sequence, as shown in fig. 1 from 1 to n, so that, synthesize in proper order according to this carrying out thumbnail when synthetic.When specific implementation, can to source image data in batches or piecemeal read processing, to realize the cutting of source image data.
Can in internal memory, hew out in advance and be used for the storing image data segment and can further store the buffer area (buffer) that thumbnail is made the intermediate data that processing procedure produced.
Carry out the stage that thumbnail make to be handled respectively in each part view data that cutting is obtained, the order that the numbering of the view data segment that can obtain according to cutting increases progressively, at every part of view data segment that cutting obtains, carry out following steps:
From some view data segments that cutting obtains, get a view data segment, it is read in buffer (promptly the read among the figure handles); The data fragments that is read into buffer is carried out the making of thumbnail and handle (promptly the make thumbnail among the figure handles), obtain the thumbnail data of this part view data segment; The thumbnail data that obtains after handling is deposited in the array.Preferably, can also behind thumbnail that a view data segment is completed, this part view data segment (if also produce intermediate data in the thumbnail manufacturing process, can also comprise intermediate data) be removed from buffer, or discharge this buffer.
This array can be after determining the cutting umber of source images, and system generates automatically, also can be pre-configured by system.This array can show as a buffer area in the internal memory.The view data segment that cutting is obtained carry out thumbnail make handle after, store the thumbnail data that obtains in this array relevant position.As, specific to the view data that is numbered 1, with the thumbnail data that obtains after handling first element (as the fragment thumbnail 1 among the figure) as this array, for the view data that is numbered 2, with the thumbnail data that obtains after handling second element (as the fragment thumbnail 2 among the figure) as this array, by that analogy, thus the thumbnail data of each view data segment that will obtain cutting deposits array in successively according to the view data number order.
Every part of view data segment being carried out thumbnail when make handling, can adopt existing thumbnail method for making, such as taking out line or a little the method for taking out obtains the thumbnail data of every part of view data segment.
At the thumbnail synthesis phase, be merged into a complete thumbnail (promptly the combine among the figure handles, and the thumbnail after the merging is thumbnail image) according to the thumbnail data on each element position in the array.When synthesizing, can be according to order or the position of each part view data segment in source image data, thumbnail data to each part view data synthesizes, the relative order in the thumbnail data of the thumbnail data that makes every part of view data segment after synthetic or the relative position at place are with relative order or the position consistency of this part view data segment in source image data.Specific to flow process shown in Figure 1, owing to be number consecutively to cutting apart the every part of view data segment that obtains when cutting apart for source image data, and be that thumbnail data with correspondence writes array in proper order, therefore when synthesizing, the thumbnail data in the array is write the thumbnail file data in proper order.
Need to prove, carry out thumbnail respectively in each view data that cutting is obtained and make the stage of handling, optimal way is respectively every part of image to be carried out thumbnail according to the order that picture number increases progressively to make processing, but those skilled in the art should be understood that, backward or random order (as random sequence) according to numbering are carried out thumbnail making processing to every part of image respectively, also allow, as long as write in the respective element of array according to the thumbnail data of the relative order of video data block in source image data with this data block, just can be by the synthetic thumbnail file data of array element order.In addition, it also is optimal way that image is numbered, for other mode identification images or identification image data not, as long as guarantee that respectively every part of view data being carried out thumbnail makes processing, and according to the order of each part view data in source image data, thumbnail data to each part view data synthesizes, and also allows.
In another embodiment of the present invention, as shown in Figure 2, the buffer that is used for caching image data can cut the umber setting according to source images.Owing to carry out successively for the processing of each part view data segment, promptly, a view data segment read in corresponding buffer and carry out thumbnail make handle after, read in next view data segment again and handle, by that analogy, can realize that like this all parts view data segment that cutting is obtained carries out thumbnail and handle.Preferable, can a view data segment is carried out thumbnail make finish dealing with after, the buffer at this view data segment place is discharged.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the above-mentioned implementation method is to instruct related hardware to finish by program, but described program can be in being stored in computing machine storage computation machine medium, described storage medium, as ROM/RAM, disk, CD etc.
Referring to Fig. 3, the manufacturing system structural representation of the image thumbnails that provides for the embodiment of the invention, as shown in the figure, this system comprises: cutting module 301, make module 302, synthesis module 303, wherein:
Cutting module 301 is used for source image data is cut into many parts of view data segments;
Make module 302, the every part of view data segment that is used for respectively cutting module 301 cuttings being obtained call in internal memory and according to this view data segment generate this view data segment thumbnail data;
Synthesis module 303 is used for the thumbnail data of making every part of view data segment that module 302 obtains is synthesized, and obtains the thumbnail of described source images; Wherein, when synthesizing, the order of view data segment in source image data that this module can obtain according to cutting, the thumbnail data of the view data segment that cutting is obtained merges.
Make module 301 and can a view data segment that cutting obtains be called in internal memory, and the view data of calling in internal memory is carried out thumbnail make processing, obtain the thumbnail data of this view data segment according to as Fig. 1 or mode shown in Figure 2; Again another part view data segment is called in internal memory, and the view data segment of calling in internal memory is carried out thumbnail make processing, obtain the thumbnail data of this view data segment; By that analogy, the thumbnail data of all parts view data segment after obtaining source images and being cut.Preferably, this making module 301 can also be removed this view data segment behind the thumbnail data that obtains the view data segment from internal memory.
Need to prove that the source images for there not being compression can directly adopt above-mentioned flow process to make the thumbnail of this source images; For the source images that compression is arranged, can be after the view data segment that cutting is obtained be called in internal memory, earlier this view data segment is carried out decompression by decoding, obtain not having the view data segment of compression, adopt above-mentioned flow process to make the thumbnail of this view data segment for the view data segment after decompressing then.The view data of compressed format is carried out decompression to obtain not having the view data of compression, and the various implementations that can adopt prior art to provide are finished.For system shown in Figure 3, the view data segment is carried out the operation of decompression and can be undertaken by making module 302.
In sum, the embodiment of the invention is made the deficiency of thumbnail inefficiency to big figure at classic method, a kind of method (certainly little figure also being suitable for) of big figure being made the lifting of thumbnail efficient has been proposed, by big file is carried out the mode of reading in internal memory in batches, respectively many batches of low volume datas are being carried out thumbnail making, the capable final thumbnail that obtains big figure that splices according to order of thumbnail that these low volume datas are generated at last.Thereby a large amount of consumption of natural resource in the solution classic method, the problem that can not normally use reaches high-level efficiency, end resource, and effect that can fine preview.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the method for making of an image thumbnails is characterized in that, comprises the steps:
Source image data is cut into a plurality of view data segments;
Each the view data segment that respectively cutting is obtained is called in internal memory and is generated thumbnail data according to this view data segment;
To synthesize according to the thumbnail data that each view data segment is generated, obtain the thumbnail of described source images.
2. the method for claim 1 is characterized in that, the thumbnail data that each the view data segment that respectively cutting is obtained is called in internal memory and generated according to this view data segment is specially:
The view data segment that cutting obtains is called in internal memory, and the view data segment of calling in internal memory is carried out thumbnail make processing, obtain the thumbnail data of this view data segment; Again another view data segment is called in internal memory, and the view data segment of calling in internal memory is carried out thumbnail make processing, obtain the thumbnail data of this view data segment; By that analogy, the thumbnail data of all images data fragments after obtaining described source images and being cut.
3. method as claimed in claim 1 or 2 is characterized in that, behind the thumbnail data that obtains the view data segment, this view data segment is removed from internal memory.
4. the method for claim 1, it is characterized in that, to synthesize according to the thumbnail data that each view data segment is generated, be specially: the order of view data segment in described source image data that obtains according to cutting, the thumbnail data of the view data segment that cutting is obtained merges.
5. as claim 1,2,4 each described methods, it is characterized in that, before generating thumbnail data, also comprise: this view data segment is carried out decompression according to the view data segment of calling in internal memory;
The view data segment that generates thumbnail data institute foundation is the view data segment through the nothing compression that obtains after the decompression.
6. the manufacturing system of an image thumbnails is characterized in that, comprising:
Cutting module is used for source image data is cut into a plurality of view data segments;
Make module, each the view data segment that is used for respectively cutting being obtained is called in internal memory and is generated thumbnail data according to this view data segment;
Synthesis module, the thumbnail data that is used for being generated according to each view data segment synthesizes, and obtains the thumbnail of described source images.
7. system as claimed in claim 6, it is characterized in that, described making module specifically is used for: the view data segment that cutting obtains is called in internal memory, and the view data segment of calling in internal memory is carried out thumbnail make processing, obtain the thumbnail data of this view data segment; Again another view data segment is called in internal memory, and the view data segment of calling in internal memory is carried out thumbnail make processing, obtain the thumbnail data of this view data segment; By that analogy, the thumbnail data of all images data fragments after obtaining described source images and being cut.
8. as claim 6 or 7 described systems, it is characterized in that described making module also is used for: behind the thumbnail data that obtains the view data segment, this view data segment is removed from internal memory.
9. system as claimed in claim 6 is characterized in that, described synthesis module has and is used for: the view data segment that obtains according to cutting is in the order of described source image data, and the thumbnail data of the view data segment that cutting is obtained merges.
10. as claim 6,7,9 each described systems, it is characterized in that described making module also is used for: before generating thumbnail data, this view data segment is carried out decompression according to the view data segment of calling in internal memory;
When described making module is carried out thumbnail making processing, generate thumbnail data according to the view data segment of compressing through the nothing that obtains after the decompression.
CN 201010034028 2010-01-12 2010-01-12 Image thumbnail making method and system thereof Expired - Fee Related CN102129702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010034028 CN102129702B (en) 2010-01-12 2010-01-12 Image thumbnail making method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010034028 CN102129702B (en) 2010-01-12 2010-01-12 Image thumbnail making method and system thereof

Publications (2)

Publication Number Publication Date
CN102129702A true CN102129702A (en) 2011-07-20
CN102129702B CN102129702B (en) 2013-07-03

Family

ID=44267776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010034028 Expired - Fee Related CN102129702B (en) 2010-01-12 2010-01-12 Image thumbnail making method and system thereof

Country Status (1)

Country Link
CN (1) CN102129702B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761208A (en) * 2016-02-03 2016-07-13 浙江科澜信息技术有限公司 Picture fusing and splicing method
CN110189814A (en) * 2019-04-26 2019-08-30 视联动力信息技术股份有限公司 A kind of image processing method and device
CN113836335A (en) * 2021-08-09 2021-12-24 深圳市猿人创新科技有限公司 Thumbnail display method and device, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4684930B2 (en) * 2006-03-31 2011-05-18 パイオニア株式会社 Image information processing apparatus and image information processing method
JP2009141430A (en) * 2007-12-03 2009-06-25 Murata Mach Ltd Image processor
EP2269367A4 (en) * 2008-03-20 2012-04-04 Hewlett Packard Development Co Thumbnail based image quality inspection
CN101370142B (en) * 2008-09-18 2011-05-04 华为技术有限公司 Image decoding and zooming method and device, image display system
CN101539937A (en) * 2009-04-30 2009-09-23 北京水晶石数字科技有限公司 Method for fast display of vast images

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761208A (en) * 2016-02-03 2016-07-13 浙江科澜信息技术有限公司 Picture fusing and splicing method
CN105761208B (en) * 2016-02-03 2019-03-01 浙江科澜信息技术有限公司 A kind of image co-registration joining method
CN110189814A (en) * 2019-04-26 2019-08-30 视联动力信息技术股份有限公司 A kind of image processing method and device
CN113836335A (en) * 2021-08-09 2021-12-24 深圳市猿人创新科技有限公司 Thumbnail display method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN102129702B (en) 2013-07-03

Similar Documents

Publication Publication Date Title
US10212440B2 (en) Virtual frame buffer system and method
US20140204088A1 (en) Surface codec using reprojection onto depth maps
US20140086309A1 (en) Method and device for encoding and decoding an image
TW200707193A (en) Computer system, memory managing method and program thereof
TW201926990A (en) System and method for foveated compression of image frames in a system on a chip
CN108492342B (en) Method, device, processor, storage medium and terminal for merging broken graphs
CN111292225B (en) Partitioning graphics data for large-scale graphics processing
US20180184096A1 (en) Method and apparatus for encoding and decoding lists of pixels
CN102129702B (en) Image thumbnail making method and system thereof
CN101996227A (en) Document compression system and method
US20160198051A1 (en) Image processing system, image output device, and image processing method
CN108024159A (en) A kind of generation method and system of video file thumbnail
US20200294270A1 (en) Patch extension method, encoder and decoder
CN102136154A (en) Cartoon manufacture method and device
CN102723093A (en) Caching method of image file
CN110555890A (en) Memory management method and system
WO2018068250A1 (en) Method and device for data processing, chip and camera
JP2017192080A (en) Image compression device, image decoding device, image compression method, and image compression program
CN102957913A (en) Image encoding apparatus, image encoding method and program
CN102768755A (en) Method and device for obtaining thumbnails of images
CN106791909A (en) A kind of video data handling procedure, device and server
CN103186597A (en) Method and system for expanding hard disk capacity
WO2022000324A1 (en) Data encoding method, data decoding method, data processing method, encoder, decoder, system, movable platform and computer-readable medium
CN115604465B (en) Light field microscopic image lossless compression method and device based on phase space continuity
US12015777B2 (en) Signaling profile level exemptions for immersive video

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130703

Termination date: 20190112