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

Image thumbnail making method and system thereof Download PDF

Info

Publication number
CN102129702B
CN102129702B CN 201010034028 CN201010034028A CN102129702B CN 102129702 B CN102129702 B CN 102129702B CN 201010034028 CN201010034028 CN 201010034028 CN 201010034028 A CN201010034028 A CN 201010034028A CN 102129702 B CN102129702 B CN 102129702B
Authority
CN
China
Prior art keywords
view data
thumbnail
data segment
internal memory
calling
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.)
Expired - Fee Related
Application number
CN 201010034028
Other languages
Chinese (zh)
Other versions
CN102129702A (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 manufacture method 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 manufacture method 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 to the image of data volume big (size that refers to the shared disk of file) if run into special circumstances, 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 manufacture method 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 manufacture method of image thumbnails comprises:
Source image data is cut into a plurality of view data segments, and each view data fragment is numbered;
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; Be specially: the numbering according to the view data fragment is called in internal memory with the view data segment that cutting obtains, and the view data segment of calling in internal memory is carried out thumbnail make processing, obtains the thumbnail data of this view data segment; According to the numbering of view data fragment, 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;
The thumbnail data that will generate according to each view data segment deposits in the array according to the numbering of view data fragment and synthesizes, and obtains 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, and each view data fragment is numbered;
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; Described making module specifically is used for: the numbering according to the view data fragment is called in internal memory with the view data segment that cutting obtains, and the view data segment of calling in internal memory is carried out thumbnail make processing, obtains the thumbnail data of this view data segment; According to the numbering of view data fragment, 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;
Synthesis module is used for the thumbnail data that will generate according to each view data segment and deposits an array in according to the numbering of view data fragment and synthesize, 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 because making system resource that thumbnail causes as far as possible, even cause the problem of system crash.
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, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction 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, the image that system will need to make for it thumbnail (is source images to call this image in the following text, 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 arrange 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, in order to carrying out thumbnail when synthetic, synthesize in proper order according to this.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 for the storing image data segment in advance and can further store the buffer area (buffer) that thumbnail is made the intermediate data that processing procedure produces.
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, with its read in buffer(namely the read among the figure handle); The data fragments that is read into buffer is carried out the making of thumbnail and handle (namely 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 be 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) is removed from buffer, or discharged 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 manufacture method, 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 (namely 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, 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, namely, 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, described program can be stored in the computer media being stored in computer, 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 according to as Fig. 1 or mode shown in Figure 2, and the view data of calling in internal memory is carried out thumbnail make processing, obtain the thumbnail data of this view data segment; 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 conventional 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 conventional method, the problem that can not normally use reaches high 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 (4)

1. the manufacture method of an image thumbnails is characterized in that, comprises the steps:
Source image data is cut into a plurality of view data segments, and each view data fragment is numbered;
Each the view data segment that respectively cutting is obtained is called in internal memory and is generated thumbnail data according to current view data segment of calling in internal memory, deposits this thumbnail data in an array, simultaneously with current view data segment deletion of calling in internal memory; Be specially: the numbering according to the view data fragment is called in internal memory with the view data segment that cutting obtains, 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, deposit this thumbnail data in an array, simultaneously with current view data segment deletion of calling in internal memory; Numbering according to the view data fragment, 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, deposit this thumbnail data in an array, simultaneously with current view data segment deletion of calling in internal memory; By that analogy, the thumbnail data of all images data fragments after obtaining described source images and being cut;
The thumbnail data that will generate according to each view data segment deposits in the array according to the numbering of view data fragment and synthesizes, and obtains the thumbnail of described source images.
2. the method for claim 1 is characterized in that, before generating thumbnail data according to the view data segment of calling in internal memory, also comprises: this view data segment is carried out decompression;
The view data segment that generates thumbnail data institute foundation is the view data segment through the nothing compression that obtains after the decompression.
3. 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, and each view data fragment is numbered;
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, deposits this thumbnail data in an array, simultaneously with current view data segment deletion of calling in internal memory; Described making module specifically is used for: the numbering according to the view data fragment is called in internal memory with the view data segment that cutting obtains, 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, deposit this thumbnail data in an array, simultaneously with current view data segment deletion of calling in internal memory; Numbering according to the view data fragment, 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, deposit this thumbnail data in an array, simultaneously with current view data segment deletion of calling in internal memory; By that analogy, the thumbnail data of all images data fragments after obtaining described source images and being cut;
Synthesis module is used for the thumbnail data that will generate according to each view data segment and deposits an array in according to the numbering of view data fragment and synthesize, and obtains the thumbnail of described source images.
4. system as claimed in claim 3 is characterized in that, described making module also is used for: before generating thumbnail data according to the view data segment of calling in internal memory, this view data segment is carried out decompression;
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 CN102129702A (en) 2011-07-20
CN102129702B true 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)

Families Citing this family (3)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370142A (en) * 2008-09-18 2009-02-18 华为技术有限公司 Image decoding and zooming method and device, image display system
CN101453543A (en) * 2007-12-03 2009-06-10 村田机械株式会社 Image processing apparatus
CN101539937A (en) * 2009-04-30 2009-09-23 北京水晶石数字科技有限公司 Method for fast display of vast images
JP4684930B2 (en) * 2006-03-31 2011-05-18 パイオニア株式会社 Image information processing apparatus and image information processing method
CN102113306A (en) * 2008-03-20 2011-06-29 惠普开发有限公司 Thumbnail based image quality inspection

Patent Citations (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
CN101453543A (en) * 2007-12-03 2009-06-10 村田机械株式会社 Image processing apparatus
CN102113306A (en) * 2008-03-20 2011-06-29 惠普开发有限公司 Thumbnail based image quality inspection
CN101370142A (en) * 2008-09-18 2009-02-18 华为技术有限公司 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

Also Published As

Publication number Publication date
CN102129702A (en) 2011-07-20

Similar Documents

Publication Publication Date Title
US20190320194A1 (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
US10438092B2 (en) Systems and methods for converting massive point cloud datasets to a hierarchical storage format
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
EP3343446A1 (en) Method and apparatus for encoding and decoding lists of pixels
CN102129702B (en) Image thumbnail making method and system thereof
CN109451317A (en) A kind of image compression system and method based on FPGA
CN102136154B (en) Cartoon manufacture method and device
CN102243615A (en) Memory buffer management mechanism supporting audio/video frame storage
CN108024159A (en) A kind of generation method and system of video file thumbnail
JP2016127475A (en) Image processing system, image processing method, and program
US20200294270A1 (en) Patch extension method, encoder and decoder
CN102723093A (en) Caching method of image file
CN110555890A (en) Memory management method and system
TW567729B (en) Method and system for compressing motion image information
CN104243886A (en) High-speed image analyzing and video generating technology based on plug-in technology
CN102957913A (en) Image encoding apparatus, image encoding method and program
CN102663715A (en) Super-resolution method and device
CN102768755A (en) Method and device for obtaining thumbnails of images
CN103186597A (en) Method and system for expanding hard disk capacity
Du et al. Out-of-core progressive lossless compression and selective decompression of large triangle meshes
WO2022000324A1 (en) Data encoding method, data decoding method, data processing method, encoder, decoder, system, movable platform and computer-readable medium
CN109495752A (en) A method of MXF file is combined into based on object storage fragment transcoding/synthesis sudden strain of a muscle

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