Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are elaborated.
Fig. 1 is the schematic flow sheet of an embodiment of the method for dynamically processing image of the present invention, and as shown in the figure, this flow process comprises:
Step S01 obtains image one, and with its preservation be set to background image;
Step S02 obtains image two;
Step S03 is compiled as foreground image with described image two;
Step S04 carries out the image synthetic operation to background image and foreground image.
In the present embodiment, dynamically will be as a setting image the image that formerly obtains together through editor after the image two that obtains synthesize to obtain new picture, thereby having removed the user from manually selects image and manually edits or the synthetic complicated processes that waits processing, the image that the user can be liked continues utilization, handle the enjoyment of image thereby improve the user, and simplified the process of image processing.
In another embodiment of the present invention, the obtain manner of above-mentioned image can be a shooting style, thereby make the user when getting access to photo by taking pictures, can be immediately the photograph image that successively obtain processing such as be edited, synthesizes immediately to obtain final image, further simplify the process of image processing, improved the efficient that the user handles photograph image.
Fig. 2 is the schematic flow sheet of another embodiment of the method for dynamically processing image of the present invention.As shown in the figure, this flow process on the basis of schematic flow sheet shown in Figure 1, step S02 obtain image two before also comprised:
Step S11 is provided with image two edit modes.
In the present embodiment, step S11 also can carry out obtaining after the image two of step S02.By the method for present embodiment, can set in advance or be provided with immediately according to the edit mode of user instruction to image two.For example edit mode can be set in advance, for example cutting or compression etc., and being preserved during so each execution method of the present invention, edited with existing edit mode image two; Can also be after the processing of at every turn finishing image one, immediately the edit mode of image two is selected or be provided with according to user instruction, thereby can come neatly image to be carried out editing and processing by diversified edit mode immediately is set, to obtain the final image of multiple pattern, improved the functional and rich of image processing.
Fig. 3 is the schematic flow sheet of another embodiment of the method for dynamically processing image of the present invention.As shown in the figure, also comprise in the step that image two edit modes are set in this flow process:
Step S21 is provided with the position and the size of described foreground image;
Step S22 is provided with the mode that described image two is converted to foreground image.
In the present embodiment, the step that image two edit modes are set is specially the mode that image two is converted to foreground image that is provided with of the position size that foreground image is set of step S21 and step S22, by these two settings, image two can clearly be set be compiled the mode that the position of great foreground image and foreground image (for example being positioned at the position on the screen) and image two are converted to foreground image.By the method for present embodiment, make that image two is carried out editing and processing is simple, be convenient to user's operation, make the image processing method of present embodiment have good practicability.
In one embodiment of the invention, the position that foreground image is set of above-mentioned steps S21 and big I are finished by four coordinates are set up and down, and promptly the coordinate on four limits by foreground image is finished.The user can by direct input up and down the numerical value of four coordinates determine the position and the size of foreground image.In the present embodiment, the position of foreground image and size can be provided with in simple and direct mode, are more convenient for user's operation.
In one embodiment of the invention, above-mentioned steps S22 the mode that image two is converted to foreground image is set can be by according to the position of foreground picture with size is cut or compressed image two is realized.In the present embodiment, can determine that image two is to be converted to foreground image by the cutting or the mode of compression, make image processing operations more flexibly and convenient, also easy operating more for the user according to user's selection.
In one embodiment of the invention, above-mentioned edit mode to image two can be: by the image cutting algorithm image two is converted to the frame image.In the present embodiment, if the user want with after the image two that obtains be treated to the frame that before obtains image, can when obtaining image two, the frame pattern of image two according to user's appointment be cut, immediately image two is compiled as the frame image by the image cutting algorithm.At this moment, owing to before preserved and be provided with the image one of image as a setting, so dynamically the image one of image is combined to above-mentioned frame image (being foreground image) behind editor as a setting.The method of present embodiment makes the user at any time the current image that obtains two to be compiled as the frame image, and will be synthetic with this frame image with the image that formerly obtains arbitrarily of preserving and being provided with, the flexibility and the convenience of image processing have been increased, and easy operating, convenient for users to use.
Fig. 4 is the schematic flow sheet of an embodiment again of the method for dynamically processing image of the present invention.As shown in the figure, this flow process comprises:
Step S31 obtains image one, and with its editor with save as foreground image;
Step S32 obtain image two, and it is set to background image;
Step S33 carries out the image synthetic operation to described foreground image and background image.
In the present embodiment, dynamically will be as a setting image after the image two that obtains synthesize to obtain new picture with the images that formerly obtain through editor, thereby having removed the user from manually selects image and manually edits or the synthetic complicated processes that waits processing, the image that the user can be liked continues utilization, handle the enjoyment of image thereby improve the user, and simplified the process of image processing.
In one embodiment of the invention, above-mentioned edit mode to image one can be: by the image cutting algorithm image one is converted to frame image as foreground image.In the present embodiment, if the image one that the user wants formerly to obtain is as the frame that obtained image afterwards, can by the image cutting algorithm frame pattern of image one according to user's appointment be cut obtaining image for the moment, immediately the frame image is edited and saved as to image one.When obtaining image two, dynamically the image two of image is combined to above-mentioned frame image as a setting.The method of present embodiment make the user can be at any time with the current picture editting of obtaining and save as the frame image, and it is synthetic to obtain image and this frame image arbitrarily afterwards, increased the flexibility and the convenience of image processing, and easy operating, convenient for users to use.
Fig. 5 is the structural representation of an embodiment of the device of dynamically processing image of the present invention, and as shown in the figure, this structure comprises: image acquisition unit 11 is used to obtain image; Picture editting unit 13 is used for image is carried out the conversion of position, size or shape; Image synthesis unit 14 is used for image and other images after the conversion are carried out synthetic operation.
In the present embodiment, can successively obtain image by image acquisition unit 11, picture editting unit 13 can come according to user's selection to formerly or after the image that obtains carry out the conversion of position, size or shape.At this moment, dynamically the image that will formerly obtain (image as a setting) with through picture editting unit 13 editors after the image (as foreground image) that obtains synthesize to obtain new image by image synthesis unit 14, also can be dynamically with after the image (image as a setting) that obtains synthesize to obtain new picture with the image of editing through picture editting unit 13 that formerly obtains (as foreground image).The device of the dynamically processing image of present embodiment has been removed the user from and has manually been selected image and manually edit or the synthetic complicated processes that waits processing, the image that the user can be liked continues utilization, handle the enjoyment of image thereby improve the user, and simplified the process of image processing.
In another embodiment of the present invention, above-mentioned image acquisition unit 11 can be a photographing device, thereby make the user when getting access to photo by taking pictures, can be immediately the photograph image that successively obtain processing such as be edited, synthesizes immediately to obtain final image, further simplify the process of image processing, improved the efficient that the user handles photograph image.
Fig. 6 is the structural representation of another embodiment of the device of dynamically processing image of the present invention, as shown in the figure, this device comprises that also image preserves unit 12, and it is used to preserve the image that described image acquisition unit 11 obtains, the image and/or the described image synthesis unit 14 of described picture editting unit 13 conversions synthesize the image of editing.In the present embodiment, image preservation unit 22 can be the particular memory region of terminal.The device of present embodiment can be preserved image that obtains or the image that passes through editor, has made things convenient for the realization of the device of dynamically processing image of the present invention.
Fig. 7 is the structural representation of another embodiment of the device of dynamically processing image of the present invention.As shown in the figure, this structure has comprised also that in picture editting unit 13 first is provided with module 15 and second module 16 is set on the basis of device shown in Figure 5.Wherein, first is provided with position, size and the shape that module 15 is used to be provided with image, and the position of described image and size are finished by four coordinates up and down that image is set, and the shape of described image is finished by frame is set; Second is provided with module 16 is used to be provided with the image transitions mode, and described image transitions mode is cutting or compress mode.
In the present embodiment, by first module 15 is set and determines the position and the size of needs editor's image, perhaps determine with the picture editting to be the shape of frame according to user's selection according to four coordinates up and down of user input.Second is provided with 16 of modules can determine by cutting still to be that the mode of compressing comes image is edited according to user's selection.The device of present embodiment makes image processing operations more flexibly and convenient, also easy operating more for the user.
Fig. 8 is the structural representation of an embodiment of the terminal of dynamically processing image of the present invention.As shown in the figure, this terminal comprises: the unit 21 of taking pictures is used to obtain image; Picture editting unit 23 is used for image is carried out the conversion of position, size or shape; Image synthesis unit 24 is used for image and other images after the conversion are carried out synthetic operation.Terminal in the present embodiment can be communication terminals such as mobile phone or PDA.
In the present embodiment, can successively obtain image by the unit 21 of taking pictures, picture editting unit 23 can come according to user's selection to formerly or after the image that obtains carry out the conversion of position, size or shape.At this moment, dynamically the image that will formerly obtain (image as a setting) with through picture editting unit 23 editors after the image (as foreground image) that obtains synthesize to obtain new picture by image synthesis unit 24, also can be dynamically with after the image (image as a setting) that obtains synthesize to obtain new picture with the image of editing through picture editting unit 23 that formerly obtains (as foreground image).The terminal of the dynamically processing image of present embodiment has been removed the user from and has manually been selected image and manually edit or the synthetic complicated processes that waits processing, the image that the user can be liked continues utilization, handle the enjoyment of image thereby improve the user, and simplified the process of image processing.
Fig. 9 is the structural representation of another embodiment of the terminal of dynamically processing image of the present invention, as shown in the figure, this terminal comprises that also image preserves unit 22, and it is used to preserve the image that described image acquisition unit 21 obtains, the image and/or the described image synthesis unit 24 of described picture editting unit 23 conversions synthesize the image of editing.In the present embodiment, image preservation unit 22 can be the particular memory region of terminal.The device of present embodiment can be preserved image that obtains or the image that passes through editor, has made things convenient for the realization of the device of dynamically processing image of the present invention.
Figure 10 is the structural representation of another embodiment of the terminal of dynamically processing image of the present invention.As shown in the figure, this structure has comprised also that in picture editting unit 23 first is provided with module 25 and second module 26 is set on the basis of terminal shown in Figure 8.Wherein, first is provided with position, size and the shape that module 25 is used to be provided with image, and the position of described image and size are finished by four coordinates up and down that image is set, and the shape of described image is finished by frame is set; Second is provided with module 26 is used to be provided with the image transitions mode, and described image transitions mode is cutting or compress mode.
In the present embodiment, by first module 25 is set and determines the position and the size of needs editor's image, perhaps determine with the picture editting to be the shape of frame according to user's selection according to four coordinates up and down of user input.Second is provided with 26 of modules can determine by cutting still to be that the mode of compressing comes image is edited according to user's selection.The device of present embodiment makes image processing operations more flexibly and convenient, also easy operating more for the user.
For example, the unit 21 of taking pictures is taken user's interest scenery according to user instruction, obtain image one, after finishing, shooting treats image one echo, at this moment, if the user wants the image one that will the take photo frame as next photographic images, can button be set by frame image one is set to frame, can also select the frame pattern when being provided with, at this moment, module 25 selects to determine image one is compiled as frame according to the user shape is set by first.After setting is finished, according to the frame pattern of user's appointment image one is edited, be about to image and cut into frame by picture editting unit 23.Should become the frame of next captured image when then take next time by the frame that image one editor forms.Then, according to user instruction, take pictures once more in the unit 21 of taking pictures, obtain image two, data with image two send to image synthesis unit 24 with the data of editing the frame image that forms by image one then, by its hardware IC characteristic or by image processing algorithm above-mentioned two view data are carried out (merge) synthetic operation by the image synthesis unit.
Perhaps, when the 21 couples of users in unit that take pictures interested scenery is taken finish after, treat during the image of clapping one echo, if the image one that the user wants to take is as the background of taking pictures next time, can button be set by background image one is set to background, before or after carrying out shooting next time, by first be provided with module 25 according to the user directly four coordinates up and down of input determine the display position of image two on terminal LCD, by second module 26 is set then and selects to determine that according to the user image two is carried out size to be cut or compress.If select the size cutting, then picture editting unit 23 directly cuts image two by first data that the module setting is set; If select image two is compressed, then picture editting unit 23 is reduced into image two default big or small behind photographic images two.The image cutting can realize that image compression then can be handled by correspondence image form algorithm by picture editting's algorithm.At last, the data of the data of image two and image one as a setting being delivered to image synthesis unit 24 synthesizes.
In the present embodiment, the frame image that dynamically will editing had before taken pictures obtains synthesizes with the photo of taking in the back, can directly obtain after make taking being the photo of frame through before taking pictures of editor, the photo setting that perhaps will formerly take saves as background, to dynamically synthetic after cutting or compress in the photo process of back shooting with background pictures, thereby the picture that the user likes has been carried out continuity utilization, improved the enjoyment that the user takes pictures, and it is convenient to realize, cost is low.
It more than is the explanation of some embodiments of the invention; but the present invention is not limited to above-mentioned particular implementation example; do not deviating under spirit of the present invention and the real situation thereof; skilled personnel can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong within the claims protection range of the present invention.