CN102339472B - picture editing method and device - Google Patents

picture editing method and device Download PDF

Info

Publication number
CN102339472B
CN102339472B CN201010230914.9A CN201010230914A CN102339472B CN 102339472 B CN102339472 B CN 102339472B CN 201010230914 A CN201010230914 A CN 201010230914A CN 102339472 B CN102339472 B CN 102339472B
Authority
CN
China
Prior art keywords
ornaments
added
picture
resolution
visibility region
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
CN201010230914.9A
Other languages
Chinese (zh)
Other versions
CN102339472A (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 CN201010230914.9A priority Critical patent/CN102339472B/en
Publication of CN102339472A publication Critical patent/CN102339472A/en
Application granted granted Critical
Publication of CN102339472B publication Critical patent/CN102339472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of picture editing method and device, belong to picture Processing Technique field.Described method comprises: determine by the true resolution of ornaments to be added in editing picture; According to the true resolution of described ornaments to be added, obtain corresponding ornaments; The described ornaments got are added to described by editing picture.Described device comprises: determination module, acquisition module and interpolation module.The present invention by determining the true resolution of ornaments to be added, and adds ornaments according to the true resolution of ornaments to be added, can ensure the sharpness of the ornaments added, thus ensure the picture quality after editor.

Description

Picture editing method and device
Technical field
The present invention relates to technical field of image processing, particularly a kind of picture editing method and device.
Background technology
Along with the generation of various picture editor's instrument, the mode of picture editor gets more and more.User not only can be edited by the color, size etc. of picture editor's instrument to picture, can also add ornaments, namely on the basis of original picture, add other pictures for picture.
Existing picture editor's mode is when for being added ornaments by editing picture, mostly after loading is by editing picture, by having adjusted the decoration to picture to the ornaments be loaded into, such as, ornaments are carried out expanding or reducing, finally the picture that with the addition of ornaments is preserved.
Realizing in process of the present invention, inventor finds that prior art at least exists following shortcoming:
Prior art is when for being added ornaments by editing picture, because the resolution of ornaments own is mostly less, cause after ornaments amplify, the jagged edges of ornaments, meanwhile, ornaments, due to after being stretched, cause ornaments itself to occur fuzzy situation, no matter be which kind of mode, all will affect the quality after picture editor.
Summary of the invention
In order to improve the sharpness of the ornaments added in picture, ensureing the picture quality after editor, embodiments providing a kind of picture editing method and device.Described technical scheme is as follows:
On the one hand, provide a kind of picture editing method, described method comprises:
Determine by the true resolution of ornaments to be added in editing picture;
According to the true resolution of described ornaments to be added, obtain corresponding ornaments;
The ornaments got are added to described by editing picture.
Particularly, describedly determine, by the true resolution of ornaments to be added in editing picture, specifically to comprise:
Described by editing picture in determine the visibility region of ornaments to be added, and determine the visibility region resolution of described ornaments to be added;
According to described by the visibility region resolution of the visibility region resolution of editing picture, true resolution and described ornaments to be added, calculate the true resolution of described ornaments to be added.
Wherein, described described by editing picture in determine specifically to comprise the visibility region of ornaments to be added:
According to user described by editing picture in the region selected determine the visibility region of ornaments to be added, or, after user is loaded into initial ornaments, according to user the visibility region determining ornaments to be added is pulled to described initial ornaments.
Further, the described true resolution according to described ornaments to be added, obtains corresponding ornaments, specifically comprises:
According to the true resolution of described ornaments to be added, the ornaments that in-time generatin is corresponding.
Preferably, the described true resolution according to described ornaments to be added, before obtaining corresponding ornaments, also comprises:
Low-pass filtering is carried out to described ornaments to be added, and repeatedly Gauss's down-sampling is carried out to the ornaments to be added after low-pass filtering, obtain gaussian pyramid picture group;
Correspondingly, according to the true resolution of described ornaments to be added, obtain corresponding ornaments, specifically comprise:
In described gaussian pyramid picture group, corresponding ornaments are found according to the true resolution of described ornaments to be added.
On the other hand, additionally provide a kind of picture editor's device, described device comprises:
Determination module, for determining by the true resolution of ornaments to be added in editing picture;
Acquisition module, for the true resolution of ornaments to be added determined according to described determination module, obtains corresponding ornaments;
Add module, the ornaments for being got by described acquisition module add to described by editing picture.
Particularly, described determination module, specifically comprises:
Determining unit, for described by editing picture in determine the visibility region of ornaments to be added, and determine the visibility region resolution of described ornaments to be added;
Computing unit, for the visibility region resolution according to the described ornaments described to be added determined by the visibility region resolution of editing picture, true resolution and described determining unit, calculates the true resolution of described ornaments to be added.
Wherein, described determining unit, specifically for described by editing picture in determine the visibility region of ornaments to be added time, according to user described by editing picture in the region selected determine the visibility region of ornaments to be added, or, after user is loaded into initial ornaments, according to user the visibility region determining ornaments to be added is pulled to described initial ornaments.
Further, described acquisition module, specifically for the true resolution of ornaments to be added determined according to described determination module, the ornaments that in-time generatin is corresponding.
Preferably, described device, also comprises:
Pretreatment module, for carrying out low-pass filtering to described ornaments to be added, and carrying out repeatedly Gauss's down-sampling to the ornaments to be added after low-pass filtering, obtaining gaussian pyramid picture group;
Correspondingly, described acquisition module, finds corresponding ornaments in the gaussian pyramid picture group obtained in described pretreatment module specifically for the true resolution of ornaments to be added determined according to described determination module.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
By determining the true resolution of ornaments to be added, and adding ornaments according to the true resolution of ornaments to be added, the sharpness of the ornaments added can be ensured, thus ensure the picture quality after editor, promoting Consumer's Experience; In addition, when obtaining ornaments, by carrying out gaussian filtering and down-sampling to ornaments to be added in advance, obtain gaussian pyramid picture group, and in gaussian pyramid picture group, select corresponding ornaments, thus the time delay obtaining ornaments can be reduced, promote the efficiency of picture editor.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the picture editing method process flow diagram that the embodiment of the present invention one provides;
Fig. 2 is the picture editing method process flow diagram that the embodiment of the present invention two provides;
Fig. 3 is the picture editor interface schematic diagram that the embodiment of the present invention two provides;
Fig. 4 is the gaussian pyramid picture group schematic diagram that the embodiment of the present invention two provides;
Fig. 5 is the structural representation of picture editor's device that the embodiment of the present invention three provides;
Fig. 6 is that the embodiment of the present invention three provides cover half block structure schematic diagram really;
Fig. 7 is the structural representation of another kind of picture editor's device that the embodiment of the present invention three provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
See Fig. 1, present embodiments provide a kind of picture editing method, the method flow process is specific as follows:
101: determine by the true resolution of ornaments to be added in editing picture;
Particularly, in order to meet the coherence request by editing picture and ornaments to be added, can determine by the true resolution of the ornaments to be added of editing picture in the following way:
Determine the visibility region of ornaments to be added in by editing picture, and determine the visibility region resolution of ornaments to be added;
According to by the visibility region resolution of the visibility region resolution of editing picture, true resolution and ornaments to be added, calculate the true resolution of ornaments to be added.
Wherein, in by editing picture, determine that the mode of the visibility region of ornaments to be added includes but not limited to:
The visibility region of ornaments to be added is determined in the region selected in by editing picture according to user, or, after user is loaded into initial ornaments, according to user the visibility region determining ornaments to be added is pulled to initial ornaments.
102: according to the true resolution of ornaments to be added, obtain corresponding ornaments;
103: the ornaments got are added to by editing picture.
The method that the present embodiment provides, by determining the true resolution of ornaments to be added, and adding ornaments according to the true resolution of ornaments to be added, can ensure the sharpness of the ornaments added, thus ensureing the picture quality after editor.
Embodiment two
Present embodiments provide a kind of picture editing method, the method is for the picture editor's application scenarios adding ornaments in picture, by adopting the algorithm of gaussian pyramid, pre-service is carried out to ornaments, and pull corresponding ornaments according to the true resolution of ornaments, thus can make picture in editing process, obtain efficient picture editor's speed, ensure the edit effect of picture simultaneously.See Fig. 2, the picture editing method flow process that the present embodiment provides is specific as follows:
201: low-pass filtering is carried out to ornaments to be added, and repeatedly Gauss's down-sampling is carried out to the ornaments to be added after low-pass filtering, obtain gaussian pyramid picture group;
Particularly, the present embodiment does not limit the mode that ornaments to be added carry out low-pass filtering, with ornaments to be added for I 0(x, y), 2-d gaussian filters device is:
G ( x , y , σ ) = 1 2 πσ 2 e - ( x 2 + y 2 ) / 2 σ 2
For example, wherein, x, y are the two-dimentional transverse and longitudinal coordinate of the picture that ornaments to be added are corresponding, and σ is the variance of unit weight of Gaussian filter, and the variance of unit weight of Gaussian filter is set to 2 by the present embodiment, and obtaining the later ornaments to be added of device filtering is after filtering I 0` (x, y), wherein, I 0` (x, y)=I 0(x, y) * G (x, y, 2).
Next, carry out repeatedly Gauss's down-sampling to the ornaments to be added after low-pass filtering, the present embodiment does not limit sampling number, for decimation factor for 2, i.e. and I 1(x, y)=I 0` (x/2, y/2), the like, obtain:
I n(x,y)=I 0-1(x/2,y/2)
Wherein, n be greater than zero integer, often sampling should be carried out, and can obtain a corresponding picture, and it can be used as the one deck in gaussian pyramid, the present embodiment is for 4 layers of gaussian pyramid, and gaussian pyramid picture group can be as shown in Figure 3.For ornaments, the initial number of plies of its gaussian pyramid is original image corresponding to these ornaments, and the number of plies is 0, then the top number of plies of gaussian pyramid, and namely ornaments are by the number of times of Gauss's down-sampling, depend on the original size of ornaments.Cross undersized ornaments for the editor of picture, use is little.Therefore, the present embodiment sets the original size lower bound of ornaments according to actual conditions, is 8 pixels for the wide lower bound of the height in the original size of ornaments, then by the top number of plies of gaussian pyramid corresponding to following formulae discovery ornaments:
nLayerW=log 2DecoWidth-3,nLayerH=log 2DecoHeight-3
Wherein, DecoWidth is the width in the original size of ornaments, DecoHeight is the height in the original size of ornaments, nLayerW is according to the top number of plies of the gaussian pyramid out of the width calculation in the original size of ornaments, nLayerH is the top number of plies of high computational gaussian pyramid out according to the original size of ornaments, the top number of plies of the gaussian pyramid finally determined, should get the minimum value of nLayerW and nLayerH.Such as, the original size of ornaments is wide 64 pixels, high 32 pixels, then can calculate nLayerW=3 according to above-mentioned formula, nLayerH=2, then the top number of plies of gaussian pyramid is 2, be that 8 pixels are calculated according to the wide lower bound of the height of ornaments, these ornaments can carry out 2 down-samplings.The 1st layer of picture that down-sampling obtains for the first time is of a size of wide 32 pixels, high 16 pixels, and the 2nd layer of picture that second time down-sampling obtains is of a size of wide 16 pixels, high 8 pixels.In actual application, the wide lower bound of height of ornaments can also be other values, and the present embodiment does not do concrete restriction to this.
Can gaussian pyramid picture group easy to use for the ease of subsequent step, the method that the present embodiment provides also supports the pyramid picture group obtained to store, the present embodiment does not limit concrete storage mode, both client can be stored in, also server end can be stored in, a part can also be stored in server end, a part is stored in client.In addition, the process generating gaussian pyramid picture group both in client executing, also can perform at server end, and the present embodiment does not do concrete restriction to this equally.When storing gaussian pyramid picture group, for each ornaments, the gaussian pyramid picture group information that a dynamic structure generates to represent each width ornaments picture can be used, such as, use the number of plies of the gaussian pyramid that ID identifies, ornaments are corresponding of these dynamic structure record ornaments, the height of the every one deck picture of gaussian pyramid and width, address that the every one deck picture of gaussian pyramid is preserved etc., in addition, can also record other information, the present embodiment does not limit the specifying information of this dynamic structure record.
During initialization, set up such a structure to identify ornaments to each ornaments, meanwhile, the ID according to each ornaments sets up index, is convenient to search efficiently.
202: determine by the true resolution of ornaments to be added in editing picture;
For this step, when determining the true resolution of ornaments to be added in by editing picture, the present embodiment is taked as under type:
Determine the visibility region of ornaments to be added in by editing picture, and determine the visibility region resolution of ornaments to be added;
According to by the visibility region resolution of the visibility region resolution of editing picture, true resolution and ornaments to be added, calculate the true resolution of ornaments to be added.
Wherein, visibility region resolution is for the display size of picture at editing interface, true resolution is then the actual size for picture, such as, the actual size of a picture is 16 pixel * 16 pixels, and when being presented at editing interface, its resolution is only 8 pixel * 8 pixels, then actual size 16 pixel * 16 pixel of this picture is called the true resolution of this picture, and this picture is called the visibility region resolution of this picture in size 8 pixel * 8 pixel that editing interface shows.In practical application, all its display effect can be affected because picture zooms in or out, in order to ensure the quality of picture editor, the method that the present embodiment provides first is determined by the visibility region resolution needing to add ornaments in editing picture, and then obtain the true resolution ornaments corresponding with this visibility region resolution by subsequent step, thus ensure that the ornaments added are not through and zoom in or out display, but to show according to its life size.
For convenience of explanation, the present embodiment, for the picture editor interface shown in Fig. 4, explains this step.As shown in Figure 4, if be high H by the visibility region resolution of editing picture c* wide W c, true resolution is high H i* wide W i, the visibility region resolution of ornaments to be added is high H cD* wide W cD, the true resolution of ornaments to be added is high H d* wide W d, then when calculating the true resolution of ornaments to be added, in order to meet the coherence request by editing picture and ornaments to be added, ornaments to be added should equaled by the visibility region of editing picture and by the ratio between the actual size of editing picture by the visibility region in editing picture and the ratio between the actual size of ornaments to be added, namely the ratio between the visibility region resolution of ornaments to be added and the true resolution of ornaments to be added equals by the visibility region resolution of editing picture and by the ratio between the true resolution of editing picture, shown in following mask body formula:
H C H I = H D H CD , W C W I = W D W CD
Wherein, H c, H i, H cD, W c, W iand W cDknown data, H dand W dfor unknown number to be solved, then according to following formula:
H D = H CD × H C H I , W D = W CD × W C W I
The true resolution H of ornaments to be added can be calculated dand W d.
About the visibility region resolution of ornaments to be added, the present embodiment does not limit its obtain manner, in actual application, includes but not limited to the following two kinds mode:
Mode one: the visibility region of ornaments to be added is determined in the region selected in by editing picture according to user;
Such as, when user is not loaded into ornaments, user is by pinning left mouse button for a long time, and move by mouse the region that selected height and width are 2 centimetres in by editing picture, mean that user wants to add ornaments in this region, then region user selected is as the visibility region of ornaments to be added.
Mode two: after user is loaded into initial ornaments, pulls to initial ornaments the visibility region determining ornaments to be added according to user.
For this kind of mode, user is needed first to be loaded into initial ornaments, still for the picture editor interface shown in Fig. 4, such as, ornaments 1 are loaded into by editing picture by user in advance, then at this by editing picture, user is by pulling the ornaments 1 be loaded into, select these ornaments 1 to zoom in or out, and after user determines final operation, the final size of the ornaments 1 of loading is defined as the visibility region of ornaments to be added.
203: in gaussian pyramid picture group, find corresponding ornaments according to the true resolution of ornaments to be added;
Particularly, the present embodiment does not limit the mode of searching ornaments in gaussian pyramid picture group, because each ornaments all have respective ID, after the true resolution determining ornaments to be added, first in gaussian pyramid picture group, find corresponding picture group by ornaments ID, then find should the ornaments picture of true resolution in this picture group.
For the ease of understanding, for the corresponding ornaments 1 of the ID of ornaments to be added, owing to having prestored the gaussian pyramid picture group of ornaments 1, this gaussian pyramid has multilayer, the all corresponding picture of every one deck, and every layer of picture has respective height and width, then determine the true resolution of ornaments 1 in above-mentioned steps 202 after, if the width W in the true resolution of ornaments 1 dbe greater than the width of the i-th-1 layer picture in gaussian pyramid, but be less than the width of i-th layer of picture in gaussian pyramid, or the height H in the true resolution of these ornaments 1 dbe greater than the height of the i-th-1 layer picture in gaussian pyramid, but be less than the height of i-th layer of picture in gaussian pyramid, then mean that the true resolution of ornaments 1 drops in the resolving range of i-th layer of picture in gaussian pyramid, therefore, can using this i-th layer of picture as the picture corresponding with the true resolution of these ornaments.
204: the ornaments got are added to by editing picture.
For this step, added to by the ornaments got by the mode in editing picture, prior art can realize, and the present embodiment does not do concrete restriction to this.After with the addition of being preserved by editing picture of ornaments, this editing process can terminate.
It should be noted that, the present embodiment has only carried out gaussian filtering and Gauss's down-sampling to each ornaments in advance in the mode of gaussian pyramid, and after the gaussian pyramid obtained picture group is stored, so that when obtaining ornaments, directly carry out pulling operating, thus the speed of picture editor can be improved.But, some picture in gaussian pyramid picture group may for a long time with less than, such picture still takies certain storage space, therefore, in order to save storage space, after the true resolution determining ornaments to be added, the ornaments picture corresponding to true resolution of all right these ornaments to be added of in-time generatin, but it is slightly longer that this kind of mode generates ornaments time delay more in advance, specifically adopt which kind of mode, the present embodiment does not do concrete restriction to this.
The method that the present embodiment provides, by determining the true resolution of ornaments to be added, and adding ornaments according to the true resolution of ornaments to be added, can ensure the sharpness of the ornaments added, thus ensureing the picture quality after editor; In addition, when obtaining ornaments, by carrying out gaussian filtering and down-sampling to ornaments to be added in advance, obtain gaussian pyramid picture group, and in gaussian pyramid picture group, obtain corresponding ornaments, and then reduce the time delay obtaining ornaments, promote the efficiency of picture editor.
Embodiment three
See Fig. 5, present embodiments provide a kind of picture editor's device, this device comprises:
Determination module 501, for determining by the true resolution of ornaments to be added in editing picture;
Acquisition module 502, for the true resolution of ornaments to be added determined according to determination module 501, obtains corresponding ornaments;
Add module 503, the ornaments for being got by acquisition module 502 add to by editing picture.
Particularly, see Fig. 6, determination module 501, specifically comprises:
Determining unit 501a, for determining the visibility region of ornaments to be added in by editing picture, and determines the visibility region resolution of ornaments to be added;
Computing unit 501b, for the visibility region resolution according to the ornaments to be added determined by the visibility region resolution of editing picture, true resolution and determining unit 501a, calculates the true resolution of ornaments to be added.
Wherein, determining unit 501a, during specifically for determining the visibility region of ornaments to be added in by editing picture, the visibility region of ornaments to be added is determined in the region selected in by editing picture according to user, or, after user is loaded into initial ornaments, according to user the visibility region determining ornaments to be added is pulled to initial ornaments.
Further, acquisition module 502, specifically for the true resolution of ornaments to be added determined according to determination module 501, the ornaments that in-time generatin is corresponding.
Preferably, see Fig. 7, this picture editor's device, also comprises:
Pretreatment module 504, for carrying out low-pass filtering to ornaments to be added, and carrying out repeatedly Gauss's down-sampling to the ornaments to be added after low-pass filtering, obtaining gaussian pyramid picture group;
Correspondingly, acquisition module 502, finds corresponding ornaments in the gaussian pyramid picture group obtained in pretreatment module 504 specifically for the true resolution of ornaments to be added determined according to determination module 501.
Wherein, pretreatment module 504 both can perform the associative operation obtaining gaussian pyramid picture group before determination module 501 determines the true resolution of ornaments to be added, also the associative operation obtaining gaussian pyramid picture group can be performed after determination module 501 determines the true resolution of ornaments to be added, the present embodiment does not do concrete restriction to this, is only described for the former.
In sum, the device that the present embodiment provides, by determining the true resolution of ornaments to be added, and adding ornaments according to the true resolution of ornaments to be added, can ensure the sharpness of the ornaments added, thus ensureing the picture quality after editor; In addition, when obtaining ornaments, by carrying out gaussian filtering and down-sampling to ornaments to be added in advance, obtain gaussian pyramid picture group, and in gaussian pyramid, obtain corresponding ornaments, and then reduce the time delay obtaining ornaments, promote the efficiency of picture editor.
It should be noted that: picture editor's device that above-described embodiment provides is when editing picture, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, picture editor's device that above-described embodiment provides and picture editing method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
All or part of step in the embodiment of the present invention, can utilize software simulating, and corresponding software program can be stored in the storage medium that can read, as CD or hard disk etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a picture editing method, is characterized in that, described method comprises:
Determine by the true resolution of ornaments to be added in editing picture;
According to the true resolution of described ornaments to be added, obtain corresponding ornaments;
The ornaments got are added to described by editing picture;
Describedly determine, by the true resolution of ornaments to be added in editing picture, specifically to comprise:
Described by editing picture in determine the visibility region of ornaments to be added, and determine the visibility region resolution of described ornaments to be added;
According to described by the visibility region resolution of the visibility region resolution of editing picture, true resolution and described ornaments to be added, calculate the true resolution of described ornaments to be added;
Described visibility region resolution is for the display size of picture at editing interface, true resolution is then the actual size for picture, and the ratio between the visibility region resolution of described ornaments to be added and the true resolution of ornaments to be added equals by the visibility region resolution of editing picture and by the ratio between the true resolution of editing picture.
2. method according to claim 1, is characterized in that, described described by editing picture in determine specifically to comprise the visibility region of ornaments to be added:
According to user described by editing picture in the region selected determine the visibility region of ornaments to be added, or, after user is loaded into initial ornaments, according to user the visibility region determining ornaments to be added is pulled to described initial ornaments.
3. method according to claim 1, is characterized in that, the described true resolution according to described ornaments to be added, obtains corresponding ornaments, specifically comprises:
According to the true resolution of described ornaments to be added, the ornaments that in-time generatin is corresponding.
4. method according to claim 1, is characterized in that, the described true resolution according to described ornaments to be added, before obtaining corresponding ornaments, also comprises:
Low-pass filtering is carried out to described ornaments to be added, and repeatedly Gauss's down-sampling is carried out to the ornaments to be added after low-pass filtering, obtain gaussian pyramid picture group;
Correspondingly, according to the true resolution of described ornaments to be added, obtain corresponding ornaments, specifically comprise:
In described gaussian pyramid picture group, corresponding ornaments are found according to the true resolution of described ornaments to be added.
5. picture editor's device, is characterized in that, described device comprises:
Determination module, for determining by the true resolution of ornaments to be added in editing picture;
Acquisition module, for the true resolution of ornaments to be added determined according to described determination module, obtains corresponding ornaments;
Add module, the ornaments for being got by described acquisition module add to described by editing picture;
Described determination module, specifically comprises:
Determining unit, for described by editing picture in determine the visibility region of ornaments to be added, and determine the visibility region resolution of described ornaments to be added;
Computing unit, for the visibility region resolution according to the described ornaments described to be added determined by the visibility region resolution of editing picture, true resolution and described determining unit, calculates the true resolution of described ornaments to be added;
Described visibility region resolution is for the display size of picture at editing interface, true resolution is then the actual size for picture, and the ratio between the visibility region resolution of described ornaments to be added and the true resolution of ornaments to be added equals by the visibility region resolution of editing picture and by the ratio between the true resolution of editing picture.
6. device according to claim 5, it is characterized in that, described determining unit, specifically for described by editing picture in determine the visibility region of ornaments to be added time, according to user described by editing picture in the region selected determine the visibility region of ornaments to be added, or, after user is loaded into initial ornaments, according to user the visibility region determining ornaments to be added is pulled to described initial ornaments.
7. device according to claim 5, is characterized in that, described acquisition module, specifically for the true resolution of ornaments to be added determined according to described determination module, and the ornaments that in-time generatin is corresponding.
8. device according to claim 5, is characterized in that, described device, also comprises:
Pretreatment module, for carrying out low-pass filtering to described ornaments to be added, and carrying out repeatedly Gauss's down-sampling to the ornaments to be added after low-pass filtering, obtaining gaussian pyramid picture group;
Correspondingly, described acquisition module, finds corresponding ornaments in the gaussian pyramid picture group obtained in described pretreatment module specifically for the true resolution of ornaments to be added determined according to described determination module.
CN201010230914.9A 2010-07-15 2010-07-15 picture editing method and device Active CN102339472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010230914.9A CN102339472B (en) 2010-07-15 2010-07-15 picture editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010230914.9A CN102339472B (en) 2010-07-15 2010-07-15 picture editing method and device

Publications (2)

Publication Number Publication Date
CN102339472A CN102339472A (en) 2012-02-01
CN102339472B true CN102339472B (en) 2016-01-27

Family

ID=45515185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010230914.9A Active CN102339472B (en) 2010-07-15 2010-07-15 picture editing method and device

Country Status (1)

Country Link
CN (1) CN102339472B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421062B1 (en) * 1997-05-13 2002-07-16 Minolta Co., Ltd. Apparatus and method of information processing and storage medium that records information processing programs
CN1503567A (en) * 2002-11-26 2004-06-09 ���µ�����ҵ��ʽ���� Method and apparatus for processing image
CN101390090A (en) * 2006-02-28 2009-03-18 微软公司 Object-level image editing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421062B1 (en) * 1997-05-13 2002-07-16 Minolta Co., Ltd. Apparatus and method of information processing and storage medium that records information processing programs
CN1503567A (en) * 2002-11-26 2004-06-09 ���µ�����ҵ��ʽ���� Method and apparatus for processing image
CN101390090A (en) * 2006-02-28 2009-03-18 微软公司 Object-level image editing

Also Published As

Publication number Publication date
CN102339472A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
Zeng et al. Octree-based fusion for realtime 3D reconstruction
US7808501B2 (en) Method of shading using sample vectors
Jeschke et al. Estimating color and texture parameters for vector graphics
US9858715B2 (en) Transforming polygonal mesh by sub-polychord collapse
CN105894551B (en) Image drawing method and device
CN111353939B (en) Image super-resolution method based on multi-scale feature representation and weight sharing convolution layer
CN108229740A (en) A kind of determining method, apparatus, server and the storage medium on commercial circle boundary
CN109146813A (en) A kind of multitask image rebuilding method, device, equipment and medium
JP2012515982A (en) Smoothed local histogram filter for computer graphics
Lu et al. DSP-based image real-time dehazing optimization for improved dark-channel prior algorithm
Guan et al. Voxel-based quadrilateral mesh generation from point cloud
CN112634172A (en) 3D printing method and device for generating three-dimensional model by using two-dimensional image
US20230334729A1 (en) Image generation method, apparatus, and device, and storage medium
Wang et al. 2D point-in-polygon test by classifying edges into layers
CN102339472B (en) picture editing method and device
WO2008021839A1 (en) Interpolation according to a function represented using unevenly spaced samples of the function
CN113867850A (en) Data processing method, device, equipment and storage medium
Huang et al. Image style transfer for autonomous multi-robot systems
CN113379814B (en) Three-dimensional space relation judging method and device
CN115661340A (en) Three-dimensional point cloud up-sampling method and system based on source information fusion
Mat et al. An effective visualization and comparison of online terrain draped with multi-sensor satellite images
Wang et al. Single image rain removal via densely connected contextual and semantic correlation net
CN112017113B (en) Image processing method and device, model training method and device, equipment and medium
CN116029907B (en) Processing method, device and processing equipment for image resolution reduction model
CN116342393B (en) Image super-resolution method and system based on image noise prediction mechanism

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant