CN105023285B - Picture method for splitting and device, picture loading method and device - Google Patents

Picture method for splitting and device, picture loading method and device Download PDF

Info

Publication number
CN105023285B
CN105023285B CN201410172883.4A CN201410172883A CN105023285B CN 105023285 B CN105023285 B CN 105023285B CN 201410172883 A CN201410172883 A CN 201410172883A CN 105023285 B CN105023285 B CN 105023285B
Authority
CN
China
Prior art keywords
picture
local picture
local
reservation
removal
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
CN201410172883.4A
Other languages
Chinese (zh)
Other versions
CN105023285A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410172883.4A priority Critical patent/CN105023285B/en
Priority to PCT/CN2015/077245 priority patent/WO2015161809A1/en
Publication of CN105023285A publication Critical patent/CN105023285A/en
Application granted granted Critical
Publication of CN105023285B publication Critical patent/CN105023285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/192Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding the adaptation method, adaptation tool or adaptation type being iterative or recursive
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding
    • H04N19/23Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding with coding of regions that are present throughout a whole video segment, e.g. sprites, background or mosaic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/99Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals involving fractal coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

A kind of picture method for splitting, comprising the following steps: obtain original image;Original image is split according to pre-set dimension, obtains local picture;Remove the local picture of redundancy in local picture;The recovery information of the local picture of removal is generated according to the local picture of reservation;It stores the local picture retained and restores information.Original image is split into local picture by the above method, remove the local picture of redundancy, and the recovery information of the local picture of removal is generated according to the local picture of reservation, and it stores the local picture of reservation and restores information, since the file size of the local picture of reservation is less than the file size of original image, memory space can be saved, and when needing to load original image, the local picture retained can only be loaded, and the occupied memory headroom of picture according to the local picture for restoring Information recovering removal, so as to reduce load.In addition, also providing a kind of picture detachment device, picture loading method and device and picture splits loading method and system.

Description

Picture method for splitting and device, picture loading method and device
Technical field
The present invention relates to graph processing techniques, more particularly to a kind of picture method for splitting and device, and are related to one kind Picture loading method and device.
Background technique
In order to reach certain visual effect, the higher and higher high definition screen of resolution ratio is adapted to, the file size of picture is got over Come bigger.Especially for the picture for needing to have transparent effect, file size but will aggravate to increase.For example, for 1024* The screen of 768 normal size, if picture uses RGBA module, each color value indicates by 8bit, then full frame picture File size just can reach 1024*768*4B=3MB.If the expression digit of each Color Channel increases, the file of picture Size is just bigger, even if using compress technique, in order not to damage its transparent effect, undistorted, by the text of compressed picture Part size is still bigger.
When current application program Loads Image, disposably picture is loaded into generally by the way of integrally loading interior It deposits, to need to consume a large amount of memory storage picture;And operating system often have to the memory that application program occupies it is certain Limitation, such as android, iOS operating system etc..When operating system receives memory warning, the big application program of memory consumption It is possible that occur operating slack problem, or even there is the process of application program or the case where thread is killed by system.
Summary of the invention
Based on this, it is necessary to provide a kind of picture method for splitting for reducing memory footprint when picture is loaded.
A kind of picture method for splitting, comprising the following steps:
Obtain original image;
Original image is split according to pre-set dimension, obtains local picture;
Remove the local picture of redundancy in the local picture;
The recovery information of the local picture of the removal is generated according to the local picture of reservation;
Store the reservation local picture and the recovery information.
In addition, there is a need to provide a kind of picture loading method that can reduce memory footprint.
A kind of picture loading method, comprising the following steps:
Load the local picture that the part of original image retains;
The recovery information of the local picture removed in the original image is obtained, the recovery information is according to the reservation Local picture and generate;
According to the local picture of the reservation and the local picture for restoring removal described in Information recovering;
The local picture of the local picture of the reservation and the recovery is combined into original image.
In addition, there is a need to provide a kind of picture detachment device for reducing memory footprint when picture is loaded.
A kind of picture detachment device characterized by comprising
Original image obtains module, for obtaining original image;
Module is split, for splitting original image according to pre-set dimension, obtains local picture;
Deduplication module, for removing the local picture of redundancy in the local picture;
Restore information generating module, the recovery letter of the local picture of the removal is generated for the local picture according to reservation Breath;
Memory module, for store the reservation local picture and the recovery information.
In addition, there is a need to provide a kind of picture loading device that can reduce memory footprint.
A kind of picture loading device, comprising:
Loading module, the local picture that the part for loading original image retains;
Restore data obtaining module, it is described for obtaining the recovery information of the local picture removed in the original image Restore information to be generated according to the local picture of the reservation;
Recovery module, for according to the local picture of the reservation and the part for restoring removal described in Information recovering Picture;
Composite module, for the local picture of the local picture of the reservation and recovery to be combined into original image.
Original image is split into local picture by above-mentioned picture method for splitting and device, removes redundancy in local picture Local picture, and the recovery information of the local picture according to the generation removal of the local picture of reservation, and store the Local map of reservation On the one hand piece and recovery information can be saved since the file size of the local picture of reservation is less than the file size of original image On the other hand memory space when needing to load original image, can only load the local picture retained, and according to recovery information Restore the local picture of removal, the occupied memory headroom of picture so as to reduce load.
Above-mentioned picture loading method and device only load the local picture that the part of original image retains, and obtain removal Local picture recovery information, further according to the local picture of reservation and restore Information recovering removal local picture, Since the file size of the local picture of load is less than the file size of original image, memory footprint can be reduced.
Detailed description of the invention
Fig. 1 is the flow diagram of the picture method for splitting in one embodiment;
Fig. 2 is the flow diagram of the picture method for splitting in another embodiment;
Fig. 3 is that original image split simultaneously reserve part portion of branch office picture by the picture method for splitting in one embodiment Schematic diagram;
Fig. 4 is the flow diagram of the picture loading method in one embodiment;
Fig. 5 is the structural schematic diagram of the picture detachment device in one embodiment;
Fig. 6 is the structural schematic diagram of picture detachment device in another embodiment;
Fig. 7 is the structural schematic diagram of the picture loading device in one embodiment;
Fig. 8 is the structural schematic diagram of recovery module in one embodiment;
Fig. 9 is the module map for being able to achieve a computer system 1000 of the embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, in one embodiment, a kind of picture method for splitting, comprising the following steps:
Step S10 obtains original image.
Picture resource and the dimension information etc. of original image can be obtained.Dimension information is the ranks number for constituting the pixel of picture Information is measured, such as the size of original image is 1024 × 768, then it represents that the original image is made of 1024 rows, 768 column pixels.
Step S20 splits original image according to pre-set dimension, obtains local picture.
The size of original image is about the integral multiple of the size of local picture.
In one embodiment, the length of original image is about 2 Nth power times of the length of Local map piece, the width of original image The M power times of wide 2 of about local picture, M, N are natural number, but M, N are not 0 simultaneously.That is, when splitting original image, it can Original image is separated in half, obtained local picture will be split by, which repeating, is separated in half, until completing to preset secondary fractionation. It for axial symmetry or centrosymmetric picture, is split according to above-described embodiment, it is easier to obtain axial symmetry or central symmetry Local picture, help to split into original image the multiple local pictures of the local picture comprising redundancy, office made of fractionation The redundancy picture that portion's picture includes is more, and the local picture of reservation is also fewer.
Step S30 removes the local picture of redundancy in local picture.
In one embodiment, the local picture of redundancy is can to pass through geometric transformation by other local pictures other than itself Obtained local picture.
Specifically, the local picture of redundancy is can be by any one picture in other Local maps other than itself by several How obtained local picture is converted.
Geometric transformation includes turning-over changed and rotation transformation etc..Identical two picture can pass through rotation between being believed that Three-sixth turn obtains.
Step S40 generates the recovery information of the local picture of removal according to the local picture of reservation.
Step S50 stores the recovery information of the local picture of reservation and the local picture of removal.
In one embodiment, step S30 the following steps are included: two width that removal can be obtained mutually by geometric transformation or Local picture more than two width in local picture other than any one width.
In one embodiment, step S30 can successively choose split a width part picture in obtained local picture with Remaining part picture is compared, and judges that can remaining local picture be obtained by the local picture chosen by geometric transformation It arrives, removal, which is split in obtained local picture, to pass through the local picture that geometric transformation obtains by the local picture chosen.
The position of the producible local picture chosen of step S40, the position of the local picture of removal and the office by choosing The corresponding relationship for the geometric transformation that the local picture that portion's picture transforms to removal need to pass through.
Step S50 can store the picture resource of the local picture of reservation and location information and store the corresponding of above-mentioned generation and close System.Location information of the local picture of the picture resource and reservation that store the local picture of reservation in original image.
The position of local picture is position of the local picture in original image.
Position of the local picture in original image can use column locations table of the pixel of local picture in original image Show, specifically, can be indicated with column locations of the two vertex pixels that the diagonal line of local picture connects in original image, example Such as, between ((1,1), (50,60)) indicate that local picture is located at the 1st row to the 50th row of original image, the 1st column to the 60th arrange, The pixel of local picture is located at the pixel (1,1) of original image and the connecting line of (50,60) for the covering of cornerwise rectangle In range, can also illustrate the left upper apex of local picture and bottom right vertex be respectively original image pixel (1,1) and (50, 60)。
For example, the note left upper apex of first partial picture and location of pixels of bottom right vertex in original image are respectively (1,1) and (50,60), the left upper apex of the second local picture and the location of pixels of bottom right vertex be respectively (1,61) and (50, 120)。
If one in above-mentioned corresponding relationship records are as follows: ((1,1), (50,60)), ((1,61), (50,120)), " level Overturn+rotate clockwise 90 degree ", then above-mentioned record can indicate that the second local picture can be by first partial picture by flip horizontal Then 90 degree are rotated clockwise again to obtain.
If record are as follows: ((1,1), (50,60)), ((1,61), (50,120)), "None", or ((1,1), (50,60)), ((1,61), (50,120)), " being rotated by 360 ° ", then the record can indicate that the second local picture is identical as first partial picture, nothing It needs by geometric transformation or the second local picture can be obtained by 360 degree of first partial picture rotation.
In one embodiment, after step S20, above-mentioned picture method for splitting the following steps are included:
A width part picture in local picture is chosen, the picture of selection is compared with remaining local picture, is judged Can remaining part picture be obtained by the local picture chosen by geometric transformation, and removing can be by selecting in remaining local picture The local picture taken passes through the obtained local picture of geometric transformation, generates and store the position of the local picture of selection, removal The correspondence for the geometric transformation that the local picture that the position of local picture and the local picture by choosing transform to removal need to pass through Relationship stores the picture resource and location information of the local picture of selection, and removal is chosen in splitting obtained local picture Local picture;
It is to execute range with the local picture of reservation, repeats the above selection picture, compares picture, removal picture, note The step of recording corresponding relationship, storage picture, until being only left a secondary local picture retained;Store last remaining width The picture resource and location information of local picture.
The position of local picture is position of the local picture in original image.
As shown in Fig. 2, in a specific embodiment, above-mentioned picture method for splitting the following steps are included:
Step S300 obtains original image, splits original image according to pre-set dimension, obtains local picture.
Step S301 chooses a width part picture in local picture.
I=1 is arranged in step S302.
The picture of selection is compared by step S303 with i-th local picture in remaining local picture, judges the Can i local pictures be obtained by the local picture chosen by geometric transformation, if so, S304 is thened follow the steps, if it is not, then holding Row step S305.
Step S304 removes i-th local picture, generates and store the position of the local picture of selection, i-th Local map The position of piece and the local picture by choosing transform to the corresponding relationship for the geometric transformation that i-th local picture need to pass through, into Enter step S305.
Step S305 is arranged i=i+1, judges whether i is equal to the quantity of local picture, if it is not, S303 is thened follow the steps, If so, thening follow the steps S306.
Step S306 stores the picture resource and location information of the local picture of selection, in the local picture that fractionation obtains The local picture that middle removal is chosen, enters step S307.
Step S307, judges whether the quantity of local picture is equal to 1, if it is not, S301 is thened follow the steps, if so, executing Step S308.
Step S308 stores the picture resource and location information of last remaining width part picture.
Fig. 3 is that original image split simultaneously reserve part portion of branch office picture by the picture method for splitting in one embodiment Schematic diagram.As shown in figure 3, splitting original image 1 along dotted line obtains 48 width part pictures, by comparing each local picture Compared with upper left corner part picture 1a, the first left side edge part picture 2b, the second left side edge part picture 2c, lower-left can be retained Angle part picture 1d, lower right corner part picture 1e, right side edge part picture 1f, upper edge part picture 1g and centre part This 8 width part picture of picture 1h, and remaining 40 width part picture can be obtained by the 8 width part pictures retained by geometric transformation It arrives, therefore is the local picture of redundancy, the local picture of the 40 width redundancy can be deleted.
Original image is split into local picture by above-mentioned picture method for splitting, removes the Local map of redundancy in local picture Piece, and generate according to the local picture of reservation the recovery information of the local picture of removal, and store the local picture of reservation and extensive On the one hand it is empty can to save storage since the file size of the local picture of reservation is less than the file size of original image for complex information Between, on the other hand, when needing to load original image, the local picture retained can be only loaded, and go according to Information recovering is restored The local picture removed, the occupied memory headroom of picture so as to reduce load.
As shown in figure 4, in one embodiment, a kind of picture loading method, comprising the following steps:
Step S70 loads the local picture that the part of original image retains.
Original image is made of the local picture of the removal other than the local picture of the local picture and reservation that retain.
Step S80 obtains the recovery information of the local picture removed in original image, the recovery letter of the local picture of removal Breath is generated according to the local picture of reservation.
Step S90, according to the local picture of reservation and the local picture of recovery Information recovering removal.
The local picture of the local picture of reservation and recovery is combined into original image by step S100.
In one embodiment, the local picture of removal can be obtained by the local picture retained by geometric transformation.
Geometric transformation includes rotation transformation and turning-over changed etc..
In one embodiment, the data of the local picture of the reservation of load include the picture resource of the local picture retained And location information.The location information of local picture is location information of the local picture in original image.Local picture is original Position in picture can be indicated with column locations of the pixel of local picture in original image, specifically, local picture can be used Column locations of two vertex pixels in original image of diagonal line connection indicate.
Restore the position for the local picture that information includes: reservation, can be obtained by the local picture retained by geometric transformation The position of local picture of removal, the geometric transformation that need to pass through the local picture that the local picture of reservation transforms to removal Corresponding relationship.
Step S90 is the following steps are included: corresponding according to the position acquisition of the local picture for the reservation for restoring to include in information The picture resource loaded;Picture resource is subjected to corresponding geometry change according to corresponding geometric transformation information in recovery information It changes, obtains the picture resource of the local picture of the removal of corresponding position.
For example, restore information in a record content include: ((1,1), (50,60)), ((1,61), (50,120)), " flip horizontal+rotate clockwise 90 degree ".Then position can be searched in the picture resource and location information of the local picture of load The picture resource found is further carried out flip horizontal, further up time by ((1,1), (50,60)) corresponding picture resource Needle is rotated by 90 °, to obtain the picture resource of the corresponding local picture in position ((1,61), (50,120)).
Step S100 is the following steps are included: by the picture resource of the local picture of reservation and the local picture of recovery according to right It answers position to be spliced, obtains original image.
For example, by position be ((1,1), (50,60)) picture resource be placed on combination picture the 1st row to the 50th row, The picture resource that position is ((1,61), (50,120)) is placed on the 1st row of combination picture to the position of the 60th column by the 1st column To the 50th row, the 61st column to the 120th column position, etc..
It in a specific embodiment, can be according to the picture resource wash with watercolours of the local picture of the local picture and recovery of reservation The interface control of corresponding position is contaminated, a local corresponding interface control of picture is spliced to form original image by interface control.
Above-mentioned picture loading method only loads the local picture that the part of original image retains, and obtains the office by retaining Portion's picture is restored to the recovery information of the local picture removed in original image, further according to the local picture of reservation and extensive Complex information restores the local picture of removal, since the file size of the local picture of load is less than the file size of original image, Therefore, memory footprint can be reduced.
A kind of picture fractionation loading method, is included the steps that in the picture method for splitting in any of the above-described embodiment, and Include the steps that in the picture loading method in any of the above-described embodiment.
In some application interfaces, background picture generally infrequently changes, and above-mentioned picture, which splits loading method, can be used for Split load background picture.In an application scenarios, it includes following fractionation background picture that above-mentioned picture, which splits loading method, Process, the process the following steps are included:
(1.1) specified background picture is obtained.
(1.2) background picture is split according to pre-set dimension, obtains local picture.
The size of original image is about the integral multiple of the size of local picture.Since the quantity of local picture will affect interface Refresh fluency, therefore, the settable the upper limit of the number for splitting obtained local picture.It, can be according to back when splitting background picture The minimum dimension of local picture is calculated in the size of scape picture and the upper limit of the number, and the size that local picture is arranged is less than etc. In the minimum dimension.
(1.3) the width part picture successively chosen in the local picture for splitting and obtaining is compared with remaining local picture Compared with judging that can remaining local picture be obtained by the local picture chosen by geometric transformation, removal splits obtained part The local picture that geometric transformation obtains can be passed through by the local picture chosen in picture.
(1.4) the recovery information that the local picture of removal is generated according to the local picture of reservation, that is, generate the part of selection Position of the picture in background picture, position of the local picture in background picture of removal and the local picture by choosing become Change to the corresponding relationship for the geometric transformation that the local picture of removal need to pass through.
(1.5) the position letter of the picture resource for the local picture that storage retains and the local picture of reservation in background picture It ceases and stores the recovery information for removing local picture.
Above-mentioned picture splits the process that loading method includes following load background picture, the process the following steps are included:
(2.1) the local picture that the part of background picture retains is loaded.
(2.2) the recovery information of the local picture removed in background picture is obtained.
(2.3) according to the local picture of reservation and the local picture of recovery Information recovering removal.
(2.4) the local picture of the local picture of reservation and recovery is combined into the original image of background picture.
Above-mentioned picture splits loading method, and original image is split into local picture, removes the office of redundancy in local picture Portion's picture, and the recovery information of the local picture according to the generation removal of the local picture of reservation, and the Local map that storage retains The recovery information of piece and the local picture of removal, during loading original image, the part for only loading original image retains Local picture, and obtain the recovery information of the local picture of removal, further according to the local picture of reservation and restore to believe Breath restores the local picture of removal, since the file size of the local picture of reservation is less than the file size of original image, a side Face can save memory space, on the other hand, can reduce the occupied memory headroom of picture of load.
As shown in figure 5, in one embodiment, a kind of picture detachment device, including original image obtain module 10, split Module 20, restores information generating module 40 and memory module 50 at deduplication module 30, in which:
Original image obtains module 10 for obtaining original image.
Original image, which obtains module 10, can obtain picture resource and dimension information of original image etc..Dimension information is to constitute The ranks quantity information of the pixel of picture, such as the size of original image is 1024 × 768, then it represents that the original image is by 1024 Row, 768 column pixels are constituted.
It splits module 20 to be used to split original image according to pre-set dimension, obtains local picture.
The size of original image is about the integral multiple of the size of local picture.
In one embodiment, the length of original image is about 2 Nth power times of the length of Local map piece, the width of original image For the M power times of wide 2 of local picture, M, N are natural number, but M, N are not 0 simultaneously.That is, splitting module 20 splits original graph When piece, original image can be separated in half, obtained local picture will be split by, which repeating, is separated in half, until completing default secondary tear open It is divided into only.For axial symmetry or centrosymmetric picture, split according to above-described embodiment, it is easier to obtain axial symmetry or in The symmetrical local picture of the heart, helps to split into original image the multiple local pictures of the local picture comprising redundancy, split and At the local picture redundancy picture that includes it is more, the local picture of reservation is also fewer.
Deduplication module 30 is used to remove the local picture of redundancy in local picture.
In one embodiment, the local picture of redundancy is can to pass through geometric transformation by other local pictures other than itself Obtained local picture.
Specifically, the local picture of redundancy is can be by any one picture in other Local maps other than itself by several How obtained local picture is converted.
Geometric transformation includes turning-over changed and rotation transformation etc..Identical two picture can pass through rotation between being believed that Three-sixth turn obtains.
Restore the recovery information that information generating module 40 is used to generate the local picture of removal according to the local picture of reservation.
Memory module 50 is used to store the recovery information of the local picture of the local picture and removal that retain.
In one embodiment, deduplication module 30 be used to remove two width that can mutually obtain by geometric transformation or two width with Local picture in upper part picture other than any one width.
In one embodiment, deduplication module 30 can successively choose the width part picture in the local picture for splitting and obtaining It is compared with remaining local picture, judges that can remaining local picture be obtained by the local picture chosen by geometric transformation It arrives, removal, which is split in obtained local picture, to pass through the local picture that geometric transformation obtains by the local picture chosen.
Restore information logging modle 40 be used to generate the position of local picture of selection, removal local picture position with And the local picture by choosing transforms to the corresponding relationship for the geometric transformation that the local picture of removal need to pass through.
The picture resource and location information of local picture of the memory module 50 for storing reservation simultaneously store above-mentioned generation Corresponding relationship.The location information for the local picture that memory module 50 stores is location information of the local picture in original image.
The position of local picture is position of the local picture in original image.
Position of the local picture in original image can use column locations table of the pixel of local picture in original image Show, specifically, can be indicated with column locations of the two vertex pixels that the diagonal line of local picture connects in original image.
As shown in fig. 6, in one embodiment, deduplication module 30 include choose module 301, compare and judgment module 302, Module 303 is removed, above-mentioned picture detachment device further includes loop control module 60, in which:
Original image obtains module 10 for obtaining original image.
It splits module 20 to be used to split original image according to pre-set dimension, obtains local picture.
Module 301 is chosen for choosing a width part picture in local picture.
Comparison and judgment module 302 are used to for the picture of selection being compared with remaining local picture, judge remaining Can local picture be obtained by the local picture of the selection by geometric transformation.
Removal module 303 can be obtained by the local picture chosen by geometric transformation for removing in remaining local picture Local picture;
Restore information generating module 40 be used to generate the position of local picture of selection, removal local picture position with And the local picture by choosing transforms to the corresponding relationship for the geometric transformation that the local picture of removal need to pass through.
Memory module 50 is used to store the corresponding relationship generated.
Memory module 50 is also used to store the picture resource and location information of the local picture of selection.
Removal module 303 is also used to after memory module stores the local picture chosen, in the Local map that fractionation obtains The local picture of selection is removed in piece.
Loop control module 60 is used to be to execute range with the local picture of reservation, and control chooses module 301, compares and sentence Disconnected module 302, removal module 303, recovery information logging modle 40 and memory module 50 rerun, and protect until being only left a pair Until the local picture stayed.
Memory module 50 is also used to store the picture resource and location information of last remaining width part picture.
The position of local picture is position of the local picture in original image.
In a specific embodiment:
Original image obtains module 10 for obtaining original image.
It splits module 20 to be used to split original image according to pre-set dimension, obtains local picture.
Module 301 is chosen for choosing a width part picture in local picture.
Loop control module 60 is used for after choosing module 301 and choosing the width part picture in local picture, and i=is arranged 1, and starting is compared and judgment module 302.
I-th part picture in picture and remaining local picture that comparison and judgment module 302 are used to choose into Row compares, and judges that can i-th local picture be obtained by the local picture chosen by geometric transformation.
If loop control module 60, which is also used to i-th local picture, to be obtained by the local picture chosen by geometric transformation It arrives, then i-th local picture is passed into removal module 303 and remove module 303 to start, and start recovery information logging modle 40。
Removal module 303 is used for the Local map that removal loop control module 60 is transmitted in splitting obtained local picture Piece.
Restore information generating module 40 be used for generates choose local picture position, i-th part picture position with And the local picture by choosing transforms to the corresponding relationship for the geometric transformation that i-th local picture need to pass through, memory module 50 is used In the corresponding relationship that storage generates.
Loop control module 60 is also used to after removal module 303 removes i-th local picture, and i=i+1 is arranged, sentences Whether disconnected i is equal to the quantity of local picture, if it is not, then starting is compared and judgment module 302 works, if so, will choose Local picture pass to memory module 50 to start memory module 50, and the local picture of selection is passed into removal module 303 remove module 303 with starting.
Memory module 50 is also used to store the picture resource and location information of the local picture of the transmitting of loop control module 60.
Loop control module 60 is also used to remove the part of selection in splitting obtained local picture in removal module 303 After picture, judge whether the quantity of local picture is equal to 1, choose module 301 if it is not, then starting, if so, by remaining last One width part picture starts memory module 50 to memory module 50.
Original image is split into local picture by above-mentioned picture detachment device, removes the Local map of redundancy in local picture Piece, and generate according to the local picture of reservation the recovery information of the local picture of removal, and store the local picture of reservation and extensive On the one hand it is empty can to save storage since the file size of the local picture of reservation is less than the file size of original image for complex information Between, on the other hand, when needing to load original image, the local picture retained can be only loaded, and go according to Information recovering is restored The local picture removed, the occupied memory headroom of picture so as to reduce load.
As shown in fig. 7, in one embodiment, a kind of picture loading device, including loading module 70, recovery acquisition of information Module 80, recovery module 90 and composite module 100, in which:
Loading module 70 is used to load the local picture that the part of original image retains.
Local picture of the original image by retaining and the local picture of the removal other than the local picture of the reservation form.
Restore the recovery information that data obtaining module 80 is used to obtain the local picture removed in original image, the office of removal The recovery information of portion's picture is generated according to the local picture of reservation.
Recovery module 90 is used for the local picture according to reservation and restores the local picture of Information recovering removal.
Composite module 100 is used to the local picture of the local picture retained and recovery being combined into original image.
In one embodiment, the local picture of removal can be obtained by the local picture retained by geometric transformation.
Geometric transformation includes rotation transformation and turning-over changed etc..
In one embodiment, the data of the local picture of the reservation of load include the picture resource of the local picture retained And location information.The location information of local picture is location information of the local picture in original image.Local picture is original Position in picture can be indicated with column locations of the pixel of local picture in original image, specifically, local picture can be used Column locations of two vertex pixels in original image of diagonal line connection indicate.
Restore the position for the local picture that information includes: reservation, can be obtained by the local picture retained by geometric transformation The position of local picture of removal, the geometric transformation that need to pass through the local picture that the local picture of reservation transforms to removal Corresponding relationship.
As shown in figure 8, in one embodiment, recovery module 90 includes that picture resource obtains module 902 and geometric transformation Module 904, in which:
Picture resource obtains the position acquisition phase for the local picture that module 902 is used for according to the reservation for restoring to include in information The picture resource loaded answered;Geometric transformation module 904 is used to be schemed according to corresponding geometric transformation information in recovery information Piece resource carries out corresponding geometric transformation, obtains the picture resource of the local picture of the removal of corresponding position.
In one embodiment, picture of the composite module 100 for the local picture that will retain and the local picture of recovery Resource is spliced according to corresponding position, obtains original image.
For example, by position be ((1,1), (50,60)) picture resource be placed on combination picture the 1st row to the 50th row, The picture resource that position is ((1,61), (50,120)) is placed on the 1st row of combination picture to the position of the 60th column by the 1st column To the 50th row, the 61st column to the 120th column position, etc..
In a specific embodiment, composite module 100 can be according to the local picture of reservation and the local picture of recovery Picture resource rendering corresponding position interface control, the corresponding interface control of a local picture splices by interface control Form original image.
Above-mentioned picture loading device only loads the local picture that the part of original image retains, and obtains the office by retaining Portion's picture is restored to the recovery information of the local picture removed in original image, further according to the local picture of reservation and extensive Complex information restores the local picture of removal, since the file size of the local picture of load is less than the file size of original image, Therefore, memory footprint can be reduced.
A kind of picture fractionation loading system, including the module in the picture detachment device in any of the above-described embodiment, and Including the module in the picture loading device in any of the above-described embodiment.
In an application scenarios, above-mentioned picture, which splits loading system, can be used for splitting load background picture, split During background picture:
Original image obtains module 10 for obtaining specified background picture.
It splits module 20 to be used to split background picture according to pre-set dimension, obtains local picture.
The size of original image is about the integral multiple of the size of local picture.
Above-mentioned picture, which splits loading system, may also include size setup module.Since the quantity of local picture will affect boundary Fluency is refreshed in face, and therefore, size setup module can be according to the size of background picture and the upper limit of the number of preset local picture The minimum dimension of local picture is calculated, and the size that local picture is arranged is less than or equal to the minimum dimension.
Deduplication module 30 is for successively choosing a width part picture and remaining part in the local picture for splitting and obtaining Picture is compared, and judges that can remaining local picture be obtained by the local picture chosen by geometric transformation, removal is split The local picture that geometric transformation obtains can be passed through by the local picture chosen in obtained local picture.
Restore the recovery information that information generating module 40 is used to generate the local picture of removal according to the local picture of reservation. Specifically, restoring the Local map that information generating module 40 produces position of the local picture in background picture, removal chosen Position of the piece in background picture and the local picture by choosing transform to the geometric transformation that the local picture of removal need to pass through Corresponding relationship.
Memory module 50 is used to store the picture resource of the local picture retained and the local picture of reservation in background picture In location information, and store the recovery information for removing local picture.
During loading background picture:
Loading module 70 is used to load the local picture that the part of background picture retains.
Restore the recovery information that data obtaining module 80 is used to obtain the local picture removed in background picture.
Recovery module 90 is used for the local picture according to reservation and restores the local picture of Information recovering removal.
Composite module 100 is used to for the local picture of the local picture retained and recovery being combined into the original graph of background picture Piece.
Above-mentioned picture splits loading system, and original image is split into local picture, removes the office of redundancy in local picture Portion's picture, and the recovery information of the local picture according to the generation removal of the local picture of reservation, and the Local map that storage retains The recovery information of piece and the local picture of removal, during loading original image, the part for only loading original image retains Local picture, and obtain the recovery information of the local picture of removal, further according to the local picture of reservation and restore to believe Breath restores the local picture of removal, since the file size of the local picture of reservation is less than the file size of original image, a side Face can save memory space, on the other hand, can reduce the occupied memory headroom of picture of load.
Fig. 9 is the module map for being able to achieve a computer system 1000 of the embodiment of the present invention.The computer system 1000 An only example for being suitable for the invention computer environment is not construed as proposing appointing to use scope of the invention What is limited.Computer system 1000 can not be construed to need to rely on or the illustrative computer system 1000 with diagram In one or more components combination.
Computer system 1000 shown in Fig. 9 is the example for being suitable for computer system of the invention.Have Other frameworks of different sub-systems configuration also can be used.Such as there are big well known desktop computer, notebook, tablet computer etc. Similar devices can be adapted for some embodiments of the present invention.But it is not limited to equipment enumerated above.
As shown in figure 9, computer system 1000 includes processor 1010, memory 1020 and system bus 1022.Including Various system components including memory 1020 and processor 1010 are connected on system bus 1022.Processor 1010 is one For executing the hardware of computer program instructions by arithmetic sum logical operation basic in computer system.Memory 1020 It is one for temporarily or permanently storing the physical equipment of calculation procedure or data (for example, program state information).System is total Line 1020 can be any one in the bus structures of following several types, including memory bus or storage control, outer If bus and local bus.Processor 1010 and memory 1020 can carry out data communication by system bus 1022.Wherein Memory 1020 includes read-only memory (ROM) or flash memory (being all not shown in figure) and random access memory (RAM), RAM Typically refer to the main memory for being loaded with operating system and application program.
Computer system 1000 further includes display interface 1030 (for example, graphics processing unit), display 1040 (example of equipment Such as, liquid crystal display), audio interface 1050 (for example, sound card) and audio frequency apparatus 1060 (for example, loudspeaker).Show equipment 1040 and audio frequency apparatus 1060 be media device for experiencing multimedia content.
Computer system 1000 generally comprises a storage equipment 1070.Storing equipment 1070 can from a variety of computers It reads to select in medium, computer-readable medium refers to any available medium that can be accessed by computer system 1000, Including mobile and fixed two media.For example, computer-readable medium includes but is not limited to, flash memory (miniature SD Card), CD-ROM, digital versatile disc (DVD) or other optical disc storages, cassette, tape, disk storage or other magnetic storages are set Any other medium that is standby, or can be used for storing information needed and can be accessed by computer system 1000.
Computer system 1000 further includes input unit 1080 and input interface 1090 (for example, I/O controller).User can With by input unit 1080, such as the touch panel equipment in keyboard, mouse, display device 1040, input instruction and information are arrived In computer system 1000.Input unit 1080 is usually connected on system bus 1022 by input interface 1090, but It can also be connected by other interfaces or bus structures, such as universal serial bus (USB).
Computer system 1000 can carry out logical connection with one or more network equipment in a network environment.Network is set It is standby to can be PC, server, router, smart phone, tablet computer or other common network nodes.Department of computer science System 1000 is connected by local area network (LAN) interface 1100 or mobile comm unit 1110 with the network equipment.Local area network (LAN) Refer in finite region, such as family, school, computer laboratory or the office building using the network media, interconnection composition Computer network.WiFi and twisted pair wiring Ethernet are two kinds of technologies of most common building local area network.WiFi is a kind of It can make 1000 swapping data of computer system or be connected to the technology of wireless network by radio wave.Mobile comm unit 1110 are answered and are made a phone call by radio communication diagram while capable of moving in a wide geographic area.In addition to logical Other than words, mobile comm unit 1110 is also supported to carry out in 2G, 3G or the 4G cellular communication system for providing mobile data service Internet access.
It should be pointed out that other includes than the computer system of the more or fewer subsystems of computer system 1000 It can be suitably used for inventing.For example, computer system 1000 may include the bluetooth unit that can exchange data in short distance, for shining The imaging sensor of phase, and the accelerometer for measuring acceleration.
As detailed above, picture method for splitting, picture can be executed by being suitable for the invention computer system 1000 Loading method and picture split the specified operation of loading method.Computer system 1000 runs computer by processor 1010 can The form of the software instruction in medium is read to execute these operations.These software instructions equipment 1070 or can pass through from storage Lan interfaces 1100 are read into memory 1020 from another equipment.The software instruction being stored in memory 1020 to locate Reason device 1010 executes above-mentioned picture method for splitting, picture loading method and picture and splits loading method.In addition, passing through hardware electricity Road or hardware circuit combination software instruction also can equally realize the present invention.Therefore, realize that the present invention is not limited to any specific The combination of hardware circuit and software.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (14)

1. a kind of picture method for splitting, comprising the following steps:
Obtain original image;
Original image is split according to pre-set dimension, obtains local picture;
Local map more than two width or two width that removal can be obtained mutually by geometric transformation in local picture other than any one width Piece;
The recovery information of the local picture of the removal is generated according to the local picture of reservation, the recovery information includes: to retain The position of local picture, the removal that can be obtained by the local picture that retains by geometric transformation local picture position, will The corresponding relationship for the geometric transformation that the local picture that the local picture of reservation transforms to removal need to pass through;
Store the reservation local picture and the recovery information.
2. picture method for splitting according to claim 1, which is characterized in that the removal can be obtained mutually by geometric transformation To two width or two width more than local picture in local picture other than any one width the step of include:
It successively chooses the width part picture split in the obtained local picture to be compared with remaining local picture, sentence Can the remaining local picture that break be obtained by the local picture of the selection by geometric transformation, and removal splits obtained institute The local picture that geometric transformation obtains can be passed through by the local picture of the selection by stating in local picture.
3. picture method for splitting according to claim 2, which is characterized in that described to generate institute according to the local picture of reservation The recovery information Step for stating the local picture of removal includes:
Generate the position of the local picture of the selection, the position of the local picture of the removal and the part by the selection The corresponding relationship for the geometric transformation that the local picture that picture transforms to the removal need to pass through.
4. picture method for splitting according to any one of claims 1 to 3, which is characterized in that the office of the storage reservation The step of portion's picture includes:
Store the picture resource and location information of the local picture retained.
5. a kind of picture loading method, comprising the following steps:
Load the local picture that the part of original image retains;
The recovery information of the local picture removed in the original image is obtained, the information of restoring is according to the part of the reservation Picture and generate, the position for restoring the local picture that information includes: reservation, can be by the local picture that retains by geometry change The position of the local picture for the removal got in return, the geometry that need to pass through the local picture that the local picture of reservation transforms to removal The corresponding relationship of transformation;
According to the local picture of the reservation and the local picture for restoring removal described in Information recovering;
The local picture of the local picture of the reservation and the recovery is combined into original image.
6. picture loading method according to claim 5, which is characterized in that the number of the local picture of the reservation of load According to the picture resource and location information of the local picture for including the reservation;
It is described according to the local picture of the reservation and it is described restore Information recovering described in removal local picture the step of wrap It includes:
The picture resource loaded accordingly according to the position acquisition of the local picture for the reservation for including in the recovery information;
Picture resource is subjected to corresponding geometric transformation according to corresponding geometric transformation information in the recovery information, is corresponded to The picture resource of the local picture of the removal of position.
7. picture loading method according to claim 6, by the Local map of the local picture of the reservation and the recovery Piece is combined into the step of original image and includes:
The picture resource of the local picture of reservation and the local picture of recovery is spliced according to corresponding position, obtains original graph Piece.
8. a kind of picture detachment device characterized by comprising
Original image obtains module, for obtaining original image;
Module is split, for splitting original image according to pre-set dimension, obtains local picture;
Deduplication module, for removing any one width in the local picture of two width or two width that can mutually obtain by geometric transformation or more Local picture in addition;
Restore information generating module, the recovery information of the local picture of the removal generated for the local picture according to reservation, The position for restoring the local picture that information includes: reservation can be gone by the local picture retained by what geometric transformation obtained The position of the local picture removed, the geometric transformation that need to pass through the local picture that the local picture of reservation transforms to removal correspondence Relationship;
Memory module, for store the reservation local picture and the recovery information.
9. picture detachment device according to claim 8, which is characterized in that the deduplication module is split for successively choosing The obtained width part picture in the local picture is compared with remaining local picture, judges the remaining part Can picture be obtained by the local picture of the selection by geometric transformation, and removal is split in the obtained local picture can be by The local picture of the selection passes through the local picture that geometric transformation obtains.
10. picture detachment device according to claim 9, which is characterized in that the recovery information generating module is for giving birth to Become at the position of the local picture of the selection, the position of the local picture of the removal and by the local picture of the selection Change to the corresponding relationship for the geometric transformation that the local picture of the removal need to pass through.
11. according to any picture detachment device of claim 8 to 10, it is characterised in that the memory module is for storing The picture resource and location information of the local picture of reservation.
12. a kind of picture loading device characterized by comprising
Loading module, the local picture that the part for loading original image retains;
Restore data obtaining module, for obtaining the recovery information of the local picture removed in the original image, the recovery Information is generated according to the local picture of the reservation, it is described restore information include: reservation local picture position, can be by protecting The local picture of reservation is transformed to removal by the position of the local picture for the removal that the local picture stayed is obtained by geometric transformation The corresponding relationship of geometric transformation that need to pass through of local picture;
Recovery module, for according to the local picture of the reservation and the Local map for restoring removal described in Information recovering Piece;
Composite module, for the local picture of the local picture of the reservation and the recovery to be combined into original image.
13. picture loading device according to claim 12, which is characterized in that the local picture of the reservation of load Data include the picture resource and location information of the local picture of the reservation;
The recovery module includes:
Picture resource obtains module, and the position acquisition for the local picture according to the reservation for including in the recovery information is corresponding The picture resource loaded;
Geometric transformation module, it is corresponding for being carried out picture resource according to corresponding geometric transformation information in the recovery information Geometric transformation obtains the picture resource of the local picture of the removal of corresponding position.
14. picture loading device according to claim 13, local picture that the composite module is used to retain and extensive The picture resource of multiple local picture is spliced according to corresponding position, obtains original image.
CN201410172883.4A 2014-04-25 2014-04-25 Picture method for splitting and device, picture loading method and device Active CN105023285B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410172883.4A CN105023285B (en) 2014-04-25 2014-04-25 Picture method for splitting and device, picture loading method and device
PCT/CN2015/077245 WO2015161809A1 (en) 2014-04-25 2015-04-23 Picture splitting method and apparatus, and picture loading method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410172883.4A CN105023285B (en) 2014-04-25 2014-04-25 Picture method for splitting and device, picture loading method and device

Publications (2)

Publication Number Publication Date
CN105023285A CN105023285A (en) 2015-11-04
CN105023285B true CN105023285B (en) 2018-12-18

Family

ID=54331762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410172883.4A Active CN105023285B (en) 2014-04-25 2014-04-25 Picture method for splitting and device, picture loading method and device

Country Status (2)

Country Link
CN (1) CN105023285B (en)
WO (1) WO2015161809A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204024A (en) * 2016-03-16 2017-09-26 腾讯科技(深圳)有限公司 Handle the method and device of sequence of pictures frame
CN106886549A (en) * 2016-08-30 2017-06-23 阿里巴巴集团控股有限公司 A kind of loading method of network picture, device and system
CN106598679B (en) * 2016-12-21 2020-07-31 北京奇虎科技有限公司 Method and device for loading picture resources
CN108734664B (en) * 2017-04-21 2021-02-09 北大方正集团有限公司 Picture rotation processing method and system
CN107515947A (en) * 2017-09-05 2017-12-26 北京京东尚科信息技术有限公司 picture loading method and its system
CN115205313B (en) * 2022-08-11 2023-04-07 北京拙河科技有限公司 Picture optimization method and device based on least square algorithm

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516461A (en) * 2003-01-10 2004-07-28 孙顺姬 Digital dynamic image compression method based on variable image plaid
CN101232625A (en) * 2008-02-26 2008-07-30 吉林大学 High efficient multidimensional video stream encoding and decoding method
CN101431676A (en) * 2008-12-08 2009-05-13 哈尔滨工程大学 Geometric moment invariants image compression method with maximum compression ratio optimization
KR101146138B1 (en) * 2008-12-10 2012-05-16 한국전자통신연구원 Temporal scalabel video encoder

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516461A (en) * 2003-01-10 2004-07-28 孙顺姬 Digital dynamic image compression method based on variable image plaid
CN101232625A (en) * 2008-02-26 2008-07-30 吉林大学 High efficient multidimensional video stream encoding and decoding method
CN101431676A (en) * 2008-12-08 2009-05-13 哈尔滨工程大学 Geometric moment invariants image compression method with maximum compression ratio optimization
KR101146138B1 (en) * 2008-12-10 2012-05-16 한국전자통신연구원 Temporal scalabel video encoder

Also Published As

Publication number Publication date
WO2015161809A1 (en) 2015-10-29
CN105023285A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN105023285B (en) Picture method for splitting and device, picture loading method and device
JP7114633B2 (en) Screen mirroring method, device, terminal and storage medium
CN107273083B (en) Interaction method, device, equipment and storage medium between terminal equipment
US20140189516A1 (en) Video preview display method and terminal device
CN110070496B (en) Method and device for generating image special effect and hardware device
EP2754020A1 (en) Multiple display device taskbars
US9703466B2 (en) Method, device and terminal for implementing rotation of floating window
CN109064399A (en) Image super-resolution reconstruction method and system, computer device and storage medium thereof
CN105453024B (en) Method for displaying and electronic device thereof
WO2021008427A1 (en) Image synthesis method and apparatus, electronic device, and storage medium
JP7553582B2 (en) Method and apparatus for processing special image effects
CN109144756A (en) A kind of method and device of stack overflow processing
CN114416261B (en) Information display method, device, equipment and medium
CN111240793A (en) cell pre-rendering method and device, electronic equipment and computer readable medium
US9354772B2 (en) Method and device for movement of image object
US20180253229A1 (en) Electronic device, control method, and medium
KR102213727B1 (en) Graphics processing using multiple primitives
JP2010181573A (en) Image processing apparatus, information processing apparatus, mobile terminal device, and image processing method
CN106201393B (en) Information processing method and electronic equipment
CN110209462B (en) Window arrangement method, device and equipment
US20150293679A1 (en) Method and Device for Controlling Switching of Virtual Navigation Bar
CN106294209A (en) A kind of information processing method and electronic equipment
US20120252536A1 (en) Mobile terminal
CN114820878B (en) Image editing method and device
JP2006106983A (en) Display device and display method

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