CN105678679B - The system and method for extensive picture set quickly previewing - Google Patents

The system and method for extensive picture set quickly previewing Download PDF

Info

Publication number
CN105678679B
CN105678679B CN201511026930.5A CN201511026930A CN105678679B CN 105678679 B CN105678679 B CN 105678679B CN 201511026930 A CN201511026930 A CN 201511026930A CN 105678679 B CN105678679 B CN 105678679B
Authority
CN
China
Prior art keywords
picture
thumbnail
preview
thread
image
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
CN201511026930.5A
Other languages
Chinese (zh)
Other versions
CN105678679A (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.)
Third Research Institute of the Ministry of Public Security
Original Assignee
Third Research Institute of the Ministry of Public Security
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 Third Research Institute of the Ministry of Public Security filed Critical Third Research Institute of the Ministry of Public Security
Priority to CN201511026930.5A priority Critical patent/CN105678679B/en
Publication of CN105678679A publication Critical patent/CN105678679A/en
Application granted granted Critical
Publication of CN105678679B publication Critical patent/CN105678679B/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
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • 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/4092Image resolution transcoding, e.g. by using client-server architectures

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to a kind of extensive picture set quickly previewing systems, including thumbnail constructing module, to construct various sizes of thumbnail in the picture for treating preview from thread;Thumbnail image-forming module, to judge in main thread user whether self-defining image chip size, and imaging is carried out according to the picture that judging result treats preview and is shown;Image cache detection module, to judge the thumbnail caching to preview picture whether beyond preset cache size;The in due course release module of resource waits for the thumbnail caching of preview picture to discharge redundancy;The thumbnail constructing module further includes mini size configurations unit and large scale structural unit;The invention further relates to a kind of methods of extensive picture set quickly previewing.Using the extensive picture set quickly previewing system and method for this kind of structure, can effectively speeding up picture is shown in extensive picture set, guarantee the experience of user's quickly previewing, have wide range of applications.

Description

The system and method for extensive picture set quickly previewing
Technical field
The present invention relates to field of computer technology more particularly to big data, in particular to a kind of extensive picture set are fast The system and method for fast preview.
Background technique
Electronic pictures data have become the important component in computer and other information storage mediums, especially closely Carry out universal, the total amount and type presentation explosive growth of family's picture, how in a large amount of pictures of portable equipment, intelligent terminal Quickly previewing has become urgent problem in conjunction.
Some softwares on the market at present, the preview picture effect in hundred number of stages is fine, once reach thousand grades or with When the picture set of the upper order of magnitude, the speed of imaging and preview is all had a greatly reduced quality, and is not able to satisfy the requirement of user's quickly previewing.
Summary of the invention
The purpose of the present invention is overcoming the above-mentioned prior art, one kind is provided effectively in extensive pictures Speeding up picture shows, guarantees the system and method for the extensive picture set quickly previewing of the experience of user's quickly previewing in conjunction.
To achieve the goals above, the system and method for extensive picture set quickly previewing of the invention has following structure At:
The system of the extensive picture set quickly previewing, is mainly characterized by, and the system includes:
Thumbnail constructing module, to construct various sizes of thumbnail in the picture for treating preview from thread;
Thumbnail image-forming module, to judge in main thread user whether self-defining image chip size, and according to judgement tie The picture that fruit treats preview carries out imaging and shows.
Further, the thumbnail constructing module includes:
Mini size configurations unit, to first from thread to original size not less than 75 × 75 pixels to preview Picture construct 75 × 75 pixels thumbnail;
Large scale structural unit, to second from thread to original size not less than 600 × 600 pixels to preview Picture construct 600 × 600 pixels thumbnail.
Further, the system further include:
Image cache detection module, to judge whether the thumbnail caching to preview picture is big beyond preset caching It is small;
The in due course release module of resource waits for the thumbnail caching of preview picture to discharge redundancy.
The invention further relates to a kind of methods of extensive picture set quickly previewing, are mainly characterized by, the method Including main thread and from thread:
Main thread the following steps are included:
(1) thumbnail image-forming module judge user whether self-defining image chip size;
(2) if user's self-defining image chip size, the thumbnail image-forming module is according to the customized picture of user The picture that size treats preview is imaged and is shown in current image preview pane;
(3) if the non-self-defining image chip size of user, the thumbnail image-forming module is according to the picture of system default The picture that size treats preview is imaged and is shown in current image preview pane;
From thread the following steps are included:
The picture that thumbnail constructing module treats preview constructs various sizes of thumbnail.
First from thread:
The mini size configurations unit first from thread to original size not less than 75 × 75 pixels to pre- The picture look at constructs the thumbnail of 75 × 75 pixels;
Second from thread:
The large scale structural unit second from thread to original size not less than 600 × 600 pixels to pre- The picture look at constructs the thumbnail of 600 × 600 pixels.
Further, the system further includes image cache detection module and the in due course release module of resource, described Method is further comprising the steps of:
(4) system described in judges whether current image preview pane has sliding block;
(5) if in current image preview pane have sliding block, trigger third from thread, the 4th from thread and the 5th from Thread work;
(6) if not with sliding block in current image preview pane, the image cache detection module is ignored to preview The thumbnail cache size of picture.
Further, the third from thread the following steps are included:
(a.1) whether the image cache detection module described in judges the thumbnail caching to preview picture beyond preset slow Deposit size;
(a.2) if the thumbnail caching to preview picture exceeds preset cache size, the resource is released in due course Amplification module release redundancy waits for the thumbnail caching of preview picture;
(a.3) if the thumbnail to preview picture is cached without departing from preset cache size, terminate and exit.
Further, the described 4th from thread the following steps are included:
(b.1) difference set of system-computed current image preview pane and the predicted pictures preview pane of system prediction;
(b.2) system judges whether that there is also unimaged pictures;
It (b.3) is preferably the unimaged picture imaging if there is also unimaged picture;
(b.4) if there is no unimaged picture, then terminate and exit.
Further, the described 5th from thread the following steps are included:
(c.1) picture that system judgement has been imaged whether there is in the difference set;
(c.2) if the picture being imaged is present in the difference set, the in due course release module release of the resource The caching of its thumbnail;
(c.3) if the picture being imaged is not present in the difference set, terminate and exit.
Still further, the method is further comprising the steps of:
(7) system described in judge user whether roll mouse;
(8) if the user has rolled mouse, continue step (4);
(9) if the non-roll mouse of the user, terminates and exit.
It, can be effectively in Large Scale Graphs using the system and method for the extensive picture set quickly previewing in the invention Speeding up picture is shown in piece set, is guaranteed the experience of user's quickly previewing, is had wide range of applications.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the system of extensive picture set quickly previewing of the invention.
Fig. 2 is the step flow chart of the method for extensive picture set quickly previewing of the invention.
Specific embodiment
It is further to carry out combined with specific embodiments below in order to more clearly describe technology contents of the invention Description.
The present invention relates to a kind of method of extensive picture set quickly previewing, be related to picture fast imaging, intelligence at As prediction etc. technologies, can effectively in extensive picture set speeding up picture show, guarantee user's quickly previewing experience.
On the one hand the method that this technology uses multithreading constructs thumbnail for original image, as the source of image preview, separately On the one hand the real-time monitoring for thumbnail caching and intelligence imaging are predicted, are discharged expired breviary image resource, are guaranteed preview picture It is smooth.
When constructing thumbnail for original image, this technology still uses multithreading, is responsible for generating by two threads different The thumbnail of size, rule are as follows:
The mini size of (1) 75 × 75 pixel, thread 1 are responsible for generation;
The large-size images resolution ratio of (2) 600 × 600 pixels, thread 2 are responsible for generation.
Wherein 75 pixels, the final choice of 600 pixels are the common requirements based on user to preview picture and current market The size selection of upper extensive application is summarized.Dimensions above is longest edge unit after image scales in proportion, pre- to reach picture The requirement look to time and picture quality is shown.
In this specific embodiment, why the thumbnail of two kinds of sizes is generated the reason is that for imaging efficiency and quality, The selection of two kinds of sizes is also according to user's habit, acceptance level and the selection of mainstream applications realization on the market.
In the selection of imaging size, following rule is used:
(1) default fills picture preview pane using mini size thumbnail, guarantees that user sees imaging in the shortest time;
(2) if the preview picture frame of default is greater than mini size, or demand (the selection large scale for having amplification to show in user Preview) when, it is transformed to the breviary totem culture of corresponding large-size images, to guarantee the clarity of picture;
(3) in the construction process of thumbnail, the scheduling of its different priorities is assigned, guarantees the preview picture shape of mini size Formula is preferentially completed.
In user's roll mouse or sliding block, change form, when checking more pictures, this technology uses multithreading, by addition Three threads are measured in real time respectively to thumbnail imaging caching and intelligent predicting, rule are as follows:
(1) it is controlled to image cache has been imaged, guarantees that the thumbnail generation of later period new picture has sufficient space, thread 3 are responsible for;
(2) when the picture set shown in there are multiple at the interface preview vision area with sliding block, each preview vision area is known as One picture directory logic tree.Each vision area independently calculates the picture imaging and method for releasing of own directory logic tree.In calculating In the process, carry out when front-view area rectangle and predict the comparison of form rectangle.Wherein when front-view area, rectangle refers to that user is current The rectangular window of the picture set of preview on the screen.Prediction form rectangle is according to certain rule (including user's habit, figure The combined factors such as piece neighbor distance consider), thus it is speculated that user arranges by the picture set of preview, and with dimension of picture in current form The pattern of column calculates the rectangular window for showing that these picture set need.Comparison rules are as follows:
(1) calculating works as front-view area if being free of in prediction form rectangle when the difference set of front-view area rectangle and prediction form rectangle Element in rectangle is the picture that possible need to be imaged, and can be preferably its imaging.Thread 4 is responsible for.
(2) if image need to discharge its resource not in the difference set of two form rectangles.Thread 5 is responsible for.
In addition, the scheduling of thread 4 is superior to thread 5, to guarantee the processing time of image generation.
For ease of operation;The size of image cache is defaulted as 1/10th of Installed System Memory, supports user customized.One Denier exceeds predetermined cache, and picture just has been imaged by rule release, and rule is as follows:
(1) without the preview vision area of sliding block, to guarantee imaging, predetermined cache limitation is broken through;
(2) the preview vision area with sliding block has such as been imaged picture and has been all contained in two form difference sets, then current according to first distance The vision area picture farthest with prediction vision area, then distance successively discharge qualified figure when the rule of the farthest picture in front-view area Piece resource.
(4) as sliding block is not present, thread 4 and thread 5 will be idle, and no work finishes because the picture of the imaging is imaged, Without release resource.
When user's roll mouse, wherein being changed the preview window when front-view area, it will recalculate and newly work as front-view area Rectangle and new prediction form rectangle are imaged and are discharged according to above-mentioned rule in comparison process.
It, can be effectively in Large Scale Graphs using the system and method for the extensive picture set quickly previewing in the invention Speeding up picture is shown in piece set, is guaranteed the experience of user's quickly previewing, is had wide range of applications.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that can still make Various modifications and alterations are without departing from the spirit and scope of the invention.Therefore, the description and the appended drawings should be considered as illustrative And not restrictive.

Claims (7)

1. a kind of extensive picture set quickly previewing system, which is characterized in that the system includes:
Thumbnail constructing module, to construct various sizes of thumbnail in the picture for treating preview from thread;
Thumbnail image-forming module, to judge in main thread user whether self-defining image chip size, and according to judging result pair Picture to preview carries out imaging and shows;
Image cache detection module, to judge the thumbnail caching to preview picture whether beyond preset cache size;
The in due course release module of resource waits for the thumbnail caching of preview picture to discharge redundancy;
The system carries out realizing extensive picture set quickly previewing operation, wherein the system carries out realizing big rule The operation of mould picture set quickly previewing carries out the following processing, including main thread and from thread:
Main thread the following steps are included:
(1) thumbnail image-forming module judge user whether self-defining image chip size;
(2) if user's self-defining image chip size, the thumbnail image-forming module is according to the customized dimension of picture of user The picture for treating preview is imaged and is shown in current image preview pane;
(3) if the non-self-defining image chip size of user, the thumbnail image-forming module is according to the dimension of picture of system default The picture for treating preview is imaged and is shown in current image preview pane;
(4) system described in judges whether current image preview pane has sliding block;
(5) if having sliding block in current image preview pane, third is triggered from thread, the 4th from thread and the 5th from thread Work;
(6) if not with sliding block in current image preview pane, the image cache detection module is ignored to preview picture Thumbnail cache size;
From thread the following steps are included:
The picture that thumbnail constructing module treats preview constructs various sizes of thumbnail;
Wherein, the described 4th from thread the following steps are included:
(b.1) difference set of system-computed current image preview pane and the predicted pictures preview pane of system prediction;
(b.2) system judges whether that there is also unimaged pictures;
It (b.3) is preferably the unimaged picture imaging if there is also unimaged picture;
(b.4) if there is no unimaged picture, then terminate and exit.
2. extensive picture set quickly previewing system according to claim 1, which is characterized in that the thumbnail structure Modeling block includes:
Mini size configurations unit, to be not less than the figure to preview of 75 × 75 pixels to original size from thread first Piece constructs the thumbnail of 75 × 75 pixels;
Large scale structural unit, to be not less than the figure to preview of 600 × 600 pixels to original size from thread second Piece constructs the thumbnail of 600 × 600 pixels.
3. a method of extensive picture set quickly previewing is realized based on system described in claim 1, which is characterized in that The method includes main thread and from thread:
Main thread the following steps are included:
(1) thumbnail image-forming module judge user whether self-defining image chip size;
(2) if user's self-defining image chip size, the thumbnail image-forming module is according to the customized dimension of picture of user The picture for treating preview is imaged and is shown in current image preview pane;
(3) if the non-self-defining image chip size of user, the thumbnail image-forming module is according to the dimension of picture of system default The picture for treating preview is imaged and is shown in current image preview pane;
(4) system described in judges whether current image preview pane has sliding block;
(5) if having sliding block in current image preview pane, third is triggered from thread, the 4th from thread and the 5th from thread Work;
(6) if not with sliding block in current image preview pane, the image cache detection module is ignored to preview picture Thumbnail cache size;
From thread the following steps are included:
The picture that thumbnail constructing module treats preview constructs various sizes of thumbnail;
Described the 4th from thread the following steps are included:
(b.1) difference set of system-computed current image preview pane and the predicted pictures preview pane of system prediction;
(b.2) system judges whether that there is also unimaged pictures;
It (b.3) is preferably the unimaged picture imaging if there is also unimaged picture;
(b.4) if there is no unimaged picture, then terminate and exit.
4. the method for extensive picture set quickly previewing according to claim 3, which is characterized in that the thumbnail Constructing module includes mini size configurations unit and large scale structural unit;The thumbnail constructing module treats preview Picture constructs various sizes of thumbnail and specifically includes following thread:
First from thread:
The mini size configurations unit first from thread to original size not less than 75 × 75 pixels to preview Picture constructs the thumbnail of 75 × 75 pixels;
Second from thread:
The large scale structural unit second from thread to original size not less than 600 × 600 pixels to preview Picture constructs the thumbnail of 600 × 600 pixels.
5. the method for extensive picture set quickly previewing according to claim 4, which is characterized in that the third from Thread the following steps are included:
(a.1) the image cache detection module described in judges whether the thumbnail caching to preview picture is big beyond preset caching It is small;
(a.2) if the thumbnail caching to preview picture exceeds preset cache size, the resource discharges mould in due course Block release redundancy waits for the thumbnail caching of preview picture;
(a.3) if the thumbnail to preview picture is cached without departing from preset cache size, terminate and exit.
6. the method for extensive picture set quickly previewing according to claim 5, which is characterized in that described the 5th from Thread the following steps are included:
(c.1) picture that system judgement has been imaged whether there is in the difference set;
(c.2) if the picture being imaged is present in the difference set, the in due course release module of resource discharges its contracting The caching of sketch map;
(c.3) if the picture being imaged is not present in the difference set, terminate and exit.
7. the method for extensive picture set quickly previewing according to claim 6, which is characterized in that the method is also The following steps are included:
(7) system described in judge user whether roll mouse;
(8) if the user has rolled mouse, continue step (4);
(9) if the non-roll mouse of the user, terminates and exit.
CN201511026930.5A 2015-12-31 2015-12-31 The system and method for extensive picture set quickly previewing Active CN105678679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511026930.5A CN105678679B (en) 2015-12-31 2015-12-31 The system and method for extensive picture set quickly previewing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511026930.5A CN105678679B (en) 2015-12-31 2015-12-31 The system and method for extensive picture set quickly previewing

Publications (2)

Publication Number Publication Date
CN105678679A CN105678679A (en) 2016-06-15
CN105678679B true CN105678679B (en) 2019-02-12

Family

ID=56298304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511026930.5A Active CN105678679B (en) 2015-12-31 2015-12-31 The system and method for extensive picture set quickly previewing

Country Status (1)

Country Link
CN (1) CN105678679B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546213B (en) * 2021-08-23 2023-04-28 成都统信软件技术有限公司 Picture processing method, computing device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956458A (en) * 2005-10-28 2007-05-02 佳能株式会社 Image issue system, customer terminal and control method thereof
CN101464882A (en) * 2007-12-21 2009-06-24 株式会社理光 Information display system, information display method, and computer program product
CN104239435A (en) * 2014-08-29 2014-12-24 四川长虹电器股份有限公司 Distributed picture caching method based on picture thumbnail processing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7564460B2 (en) * 2001-07-16 2009-07-21 Microsoft Corporation Systems and methods for providing intermediate targets in a graphics system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956458A (en) * 2005-10-28 2007-05-02 佳能株式会社 Image issue system, customer terminal and control method thereof
CN101464882A (en) * 2007-12-21 2009-06-24 株式会社理光 Information display system, information display method, and computer program product
CN104239435A (en) * 2014-08-29 2014-12-24 四川长虹电器股份有限公司 Distributed picture caching method based on picture thumbnail processing

Also Published As

Publication number Publication date
CN105678679A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN109783181B (en) Screen adaptive display method, electronic device and computer storage medium
TWI490772B (en) Method and apparatus for adapting custom control components to a screen
CN110007999A (en) Page layout method, device and computer readable storage medium
US20150026566A1 (en) Systems and methods to prioritize browser tile generation from lq tile content
US20140298218A1 (en) Automatic application of templates to content
US20160063672A1 (en) Electronic device and method for generating thumbnail picture
US20090300506A1 (en) Mark-up extensions for semantically more relevant thumbnails of content
CN111260037B (en) Convolution operation method and device of image data, electronic equipment and storage medium
CN108737739A (en) A kind of preview screen acquisition method, preview screen harvester and electronic equipment
CN103999121A (en) Image stream pipeline controller for deploying image primitives to a computation fabric
CN103702032A (en) Image processing method, device and terminal equipment
CN107608731A (en) A kind of picture loading method and device
KR20180117619A (en) Object management and visualization using computing devices
CN105760458A (en) Picture processing method and electronic equipment
CN106572308A (en) Method and system for synthesizing local dynamic graph
CN105678679B (en) The system and method for extensive picture set quickly previewing
CN102999885A (en) Method and device for determining average brightness by Retinex video enhancement algorithm
US9767583B2 (en) Method and device for packing multiple images
CN108198125B (en) Image processing method and device
CN104918044B (en) Image processing method and device
CN105427235B (en) A kind of image browsing method and system
CN101690168A (en) Image processing device, image processing method, and integrated circuit for processing images
CN114419322B (en) Image instance segmentation method and device, electronic equipment and storage medium
CN101996390B (en) Image copying method and device
CN115588412A (en) Ink screen picture display method and device, terminal equipment and storage medium

Legal Events

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