CN107369188A - The synthetic method and device of image - Google Patents

The synthetic method and device of image Download PDF

Info

Publication number
CN107369188A
CN107369188A CN201710566472.7A CN201710566472A CN107369188A CN 107369188 A CN107369188 A CN 107369188A CN 201710566472 A CN201710566472 A CN 201710566472A CN 107369188 A CN107369188 A CN 107369188A
Authority
CN
China
Prior art keywords
image
target image
segmentation
texture
target
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.)
Pending
Application number
CN201710566472.7A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710566472.7A priority Critical patent/CN107369188A/en
Publication of CN107369188A publication Critical patent/CN107369188A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

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

Abstract

The invention discloses a kind of synthetic method of image and device, it is related to technical field of image processing, main purpose is that existing composograph is only the superposition of simple progress image, interaction can not be carried out to picture with the target in video after being encoded into video so that the problem of effect of image synthesis is poor.Main technical schemes include:Obtain the target image in video data;Split the target image;To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out coloring synthesis, target image that the preset coloring rule is used to reacting after the target image, the segmentation, the position display relation rendered between image.It is mainly used in the synthesis of image.

Description

The synthetic method and device of image
Technical field
The present invention relates to technical field of image processing, more particularly to the synthetic method and device of a kind of image.
Background technology
With the fast development of Internet technology, people have been no longer satisfied with simple being handed over using mobile phone communication Stream and communication, wherein, the social platform that online live, small video etc. is established using multimedia technology is entered between having become user The Main Means that row is linked up.
At present, user is when using terminal equipment carries out live or recording small video, in order to beautify the scene of video playback Effect, some bitmaps, i.e. dot matrix image or drawing image can be blended into each two field picture of video according to the demand of user, So as to beautify video effect.But existing bitmap is blended into image, bitmap is only blended into each frame figure of video As in, interaction can not be carried out with the destination object in video after being encoded into video so that the effect of image synthesis is poor.
The content of the invention
In view of this, the present invention provides a kind of synthetic method and device of image, and main purpose is existing composograph The only superposition of simple progress image, interaction can not be carried out to picture with the target in video after being encoded into video so that figure The problem of effect of picture synthesis is poor.
According to one aspect of the invention, there is provided a kind of synthetic method of image, including:
Obtain the target image in video data;
Split the target image;
To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out Color synthesizes, and the preset coloring rule is used to reacting the target image after the target image, the segmentation, described renders image Between position display relation.
Further, after the segmentation target image, methods described also includes:
By the target image after calling the preset pattern routine interface processing target image and splitting, target figure is obtained The texture image of target image after the texture image of picture and segmentation;
It is described to the target image after the target image, the segmentation and to render image according to preset coloring rule and enter Row coloring synthesis includes:
Texture maps according to preset coloring rule to the target image after the texture image of the target image, the segmentation As and render the texture image of image and carry out coloring synthesis.
Further, the target figure by after calling the preset pattern routine interface processing target image and splitting Picture, obtain target image texture image and segmentation after target image texture image after, methods described also includes:
The middle pixel of the texture image of target image after the texture image of respectively described target image and the segmentation Point configuration coordinate information.
Further, methods described also includes:
The image that renders to be synthesized is obtained from particular memory location, multiple users are stored with the particular memory location Input renders image;
Image is rendered described in the processing of preset pattern routine interface by calling, obtains rendering the texture image of image, and be The pixel configuration coordinate information of the texture image for rendering image.
Further, it is described according to preset coloring rule to the mesh after the texture image of the target image, the segmentation The texture image of logo image and render image texture image carry out colour synthesis include:
Call texture of the rendering program interface according to the target image after the texture image of the target image, the segmentation Image and render the texture image of image corresponding coordinate information carries out synthesis superposition respectively;
According to the coloring case of pixel corresponding to the overlapping coordinate information of preset coloring rule judgment, and coloured.
Further, the segmentation target image includes:
The target image is split using portrait partitioning algorithm in default memory space.
Further, after the target image obtained in video data, methods described also includes:
To target image process filter processing.
Further, it is described according to preset coloring rule to the mesh after the texture image of the target image, the segmentation After the texture image of logo image and the default texture image for rendering image carry out coloring synthesis, methods described also includes:
The target image coloured after synthesizing is encoded, obtains the video file of composograph.
According to one aspect of the invention, there is provided a kind of synthesizer of image, including:
First acquisition unit, for obtaining the target image in video data;
Cutting unit, for splitting the target image;
Synthesis unit, for according to preset coloring rule to the target image after the target image, the segmentation and Render image and carry out coloring synthesis, the preset coloring rule is used to react the target figure after the target image, the segmentation Picture, the position display relation rendered between image.
Further, described device also includes:First processing units,
The first processing units, after by calling preset pattern routine interface to handle the target image and segmentation Target image, obtain target image texture image and segmentation after target image texture image;
The synthesis unit, specifically for according to preset coloring rule to the texture image of the target image, described point The texture image of target image after cutting and render the texture image of image and carry out coloring synthesis.
Further, described device also includes:
Dispensing unit, for be respectively the target image texture image and the segmentation after target image texture The middle pixel configuration coordinate information of image.
Further, described device also includes:
Second acquisition unit, for obtaining the image that renders to be synthesized, the particular memory position from particular memory location Multiple user's inputs are stored with putting renders image;
Second processing unit, for rendering image described in the processing of preset pattern routine interface by calling, obtain rendering figure The texture image of picture, and the pixel for the texture image for rendering image configures coordinate information.
Further, the synthesis unit includes:
Synthesis module, after calling rendering program interface according to the texture image of the target image, the segmentation The texture image of target image and render the texture image of image corresponding coordinate information carries out synthesis superposition respectively;
Staining module, for according to corresponding to preset coloring rule judgment overlapping coordinate information pixel it is pornographic Condition, and coloured.
The cutting unit, specifically for being entered in default memory space using portrait partitioning algorithm to the target image Row segmentation.
Further, described device also includes:
3rd processing unit, for target image process filter processing.
Further, described device also includes:
Coding unit, for the target image coloured after synthesizing to be encoded, obtain the video file of composograph.
According to one aspect of the invention, there is provided a kind of storage device, wherein being stored with a plurality of instruction, the instruction is suitable to Loaded by processor and performed:
Obtain the target image in video data;
Split the target image;
To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out Color synthesizes, and the preset coloring rule is used to reacting the target image after the target image, the segmentation, described renders image Between position display relation.
According to one aspect of the invention, there is provided a kind of mobile terminal, including processor, be adapted for carrying out various instructions;With And storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by processor:
Obtain the target image in video data;
Split the target image;
To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out Color synthesizes, and the preset coloring rule is used to reacting the target image after the target image, the segmentation, described renders image Between position display relation.
By above-mentioned technical proposal, technical scheme provided in an embodiment of the present invention at least has following advantages:
The invention provides a kind of synthetic method of image and device, obtains the target image in video data first, so After split the target image, according still further to preset coloring rule to the target image after the target image, the segmentation and Render image and carry out coloring synthesis, the preset coloring rule is used to react the target figure after the target image, the segmentation Picture, the position display relation rendered between image.It is blended into image with existing bitmap, is only blended into bitmap Compared in each two field picture of video, the embodiment of the present invention by splitting to target image, by the image after segmentation according to The preset coloring synthesis for colouring rule and render image so that stereoeffect is presented in the image of synthesis, in realization and image Target is interactive, the dynamic effect of increase image synthesis, improves the effect of image synthesis.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of synthetic method flow chart for image that the embodiment of the present invention one provides;
Fig. 2 shows the synthetic method flow chart for another image that the embodiment of the present invention two provides;
Fig. 3 shows a kind of character image schematic diagram that the embodiment of the present invention two provides;
Fig. 4 shows the image schematic diagram after a kind of segmentation that the embodiment of the present invention two provides;
Fig. 5 shows that one kind that the embodiment of the present invention two provides renders figure and is located at schematic diagram before character image;
Fig. 6 shows that one kind that the embodiment of the present invention two provides renders figure and is located at schematic diagram after character image;
Fig. 7 shows a kind of synthesizer block diagram for image that the embodiment of the present invention three provides;
Fig. 8 shows the synthesizer block diagram for another image that the embodiment of the present invention four provides.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
The embodiments of the invention provide a kind of synthetic method of image, as shown in figure 1, methods described includes:
101st, the target image in video data is obtained.
Wherein, the target image is image to be synthesized, can be character image, animal painting etc., and the present invention is implemented Example is not specifically limited, in general, during live or recorded video, can select personage as target image, so as to Figure is sprouted in addition in video based on personage.
It should be noted that the video data obtained can be to be obtained from the camera in terminal device, camera is opened Open what is opened generally by small video that is live or recording.Further, since video data is by image one by one Information forms, and the target image is then the image for needing to synthesize in all frame image informations.The form of target image can be with For yuv format.
102nd, the target image is split.
Wherein, described be divided into splits the target in target image from image, so as to obtain target and background The segmentation figure for the RGBA forms being combined.
It should be noted that segmentation object image can be performed using partitioning algorithm in CPU, partitioning algorithm can be by mesh Mark is separated with background, so as to which target be split from image.
103rd, to the target image after the target image, the segmentation and render image according to preset coloring rule and enter Row coloring synthesis.
Wherein, the preset coloring rule is for the target image after reacting the target image, the segmentation, the wash with watercolours Contaminate the position display relation between image.The image that renders can be that will be generally toward the bitmap synthesized in target image Figure is sprouted, can be prestored, or is drawn by the application with drawing board function, the embodiment of the present invention is not done It is specific to limit.
It should be noted that the position display relation of preset coloring rule reaction can be used for judgement and render image adding Whether the position into target image show, show how much, and be hidden according to the target image after segmentation, so as to synthesis Image is shown in displaying with stereogenic.In addition, coloring synthesis can pass through rendering program interface OpenGL and coloring Programm hader enters line program execution.
The invention provides a kind of synthetic method of image, it is blended into existing bitmap in image, only by bitmap It is blended into each two field picture of video and compares, the embodiment of the present invention to target image by splits, by the figure after segmentation As being synthesized according to the regular coloring for render image of preset coloring so that stereoeffect is presented in the image of synthesis, realizes and schemes Target as in is interactive, the dynamic effect of increase image synthesis, improves the effect of image synthesis.
The embodiments of the invention provide the synthetic method of another image, as shown in Fig. 2 methods described includes:
201st, the target image in video data is obtained.
This step is identical with step 101 method shown in Fig. 1, will not be repeated here.
202nd, to target image process filter processing.
Wherein, the filter is handled for making target image that different image effect be presented, and can such as allow figure by filter Effect as producing scrolling, black and white effect etc. can also be produced by image by filter, the embodiment of the present invention is not specifically limited.
It should be noted that can be set for the effect of filter processing according to the input of user, can also be advance A fixed filtering effects are set, the embodiment of the present invention is not specifically limited.In order to increase the diversified effect of composograph, And the method for increase effect process, it is therefore desirable to which filter processing is carried out to target image.
203rd, the target image is split using portrait partitioning algorithm in default memory space.
Wherein, the default memory space is the CPU in terminal device, and the portrait partitioning algorithm is used for target image In personage split, obtain the segmentation figure of RGBA forms, include the hole of character contour in segmentation figure, background is then to be unified The background of color.For example, Fig. 3 is character image, Fig. 4 is the image after segmentation.
It should be noted that the portrait partitioning algorithm is not limited to split personage, can also include to animal Deng, it is only necessary to change the parameter and reference object of the identification object in portrait partitioning algorithm, it is possible to should by portrait partitioning algorithm With on animal or other objects.
204th, by the target image after calling the preset pattern routine interface processing target image and splitting, mesh is obtained The texture image of target image after the texture image of logo image and segmentation.
Wherein, the preset pattern routine interface is one across programming language, the specialty of cross-platform DLL specification Graphic package interface, if OpenGL is that One function is powerful, call convenient underlying graphics storehouse.For example, calling can be passed through OpenGL interfaces:GlTexSublmage2D () to carry out texture transformation to target image, for the synthesis effect for being in synthesis Fruit is more accurate, and synthetic effect is more bonded, it is necessary to image is carried out into texture processing, obtains texture image.
Further, can also include afterwards for the embodiment of the present invention, step 204:Respectively described target image The middle pixel configuration coordinate information of the texture image of target image after texture image and the segmentation.
Wherein, the coordinate information is used for the texture image of target image and the texture image of target image after singulation When addition renders the texture image of image, whether the pixel corresponding to judgement on coordinate position shows, for example, can be according to figure Four summits of picture are configured (0,0), (0,1), (1,0), (1,1), the coordinate of the pixel in image both can be (0, 0.25), (0.4,0.65) etc., each pixel correspond to the display color of texture image, and the embodiment of the present invention is not specifically limited.
It is each pixel it should be noted that in order to specifically determine which pixel is shown during imaging importing Point configuration coordinate information, so as to using call rendering program interface in coloring process carry out imaging importing when, more accurately The display color for determining the pixel in image.
Further, for the embodiment of the present invention, can also include:To be synthesized render is obtained from particular memory location Image, multiple users' inputs are stored with the particular memory location renders image;By calling preset pattern routine interface Image is rendered described in processing, obtains rendering the texture image of image, and the pixel for the texture image for rendering image is matched somebody with somebody Put coordinate information.
In order to need to synthesize into the image that renders in image to be anticipated, it is easy to user directly from storage location Obtaining needs to synthesize into image and sprouts figure, by being inputted in advance to user or be stored in particular memory location and render figure Coordinate information is configured as carrying out texture processing, and for pixel in texture image.The calling preset pattern routine interface is used for It is texture image that image procossing, which will be rendered,.The collocation method and mesh of the pixel coordinate information of the texture image for rendering image The pixel coordinate information collocation method of the texture image of logo image is the same, will not be repeated here.
205th, the line according to preset coloring rule to the target image after the texture image of the target image, the segmentation Reason image and render the texture image of image and carry out coloring synthesis.
It should be noted that carry out target image texture image, segmentation after target image texture image, render It during the texture image synthesis of image, can be synthesized three texture images are superimposed, then entered according to preset coloring rule Row judges the color that the pixel of different colours in specific overlapping pixel should be shown, or display how much.Each frame is corresponding Image be overlapped, it is different to obtain the position for rendering image in every two field picture, display size, so as to which temporal image moves The three-dimensional synthesis of state.
For the embodiment of the present invention, step 205 is specifically as follows:Rendering program interface is called according to the target image The texture image of target image after texture image, the segmentation and render image texture image respectively corresponding to coordinate letter Breath carries out synthesis superposition;According to the coloring case of pixel corresponding to the overlapping coordinate information of preset coloring rule judgment, go forward side by side Row coloring.
Wherein, the rendering program interface is for the routine interface for the OpenGL for handling image rendering, is such as called OpenGL():Texture image is fed directly to be coloured in rendering program by glBindTexture (), and the coloring can be with Performed by coloring process shader.The coloring case is the situation that overlapping pixel needs display color.
It should be noted that colouring main execution step includes:Using coordinate parameters x in program, y, w, h traversals are all Overlapping pixel point coordinates, when the seat for going out the texture image that overlapping pixel point coordinates is target image according to coloring rule judgment Mark and render the texture image of image, it is determined that be covered in render image on target image, then display renders the texture of image The color of the pixel of image, as each two field picture is synthesized with rendering image, when the texture maps for judging target image As corresponding with the texture image for the rendering image pixel point coordinates of coordinate occur second it is overlapping, then show the target after splitting The color of the pixel of the texture image of image, by that analogy.It is blended into target image, makes it is achieved thereby that image will be rendered The image of synthesis is shown as three-dimensional image, renders as shown in Figure 5 before figure is located at character image, renders figure as shown in Figure 6 and be located at After character image.
206th, the target image coloured after synthesizing is encoded, obtains the video file of composograph.
In order to the target image after synthesis is shown, it is necessary to each frame synthesize after image encode, similarly, Each two field picture in video data is obtained is also required to decode video data.By the video text for showing composograph Part, it can easily watch the dynamic render video of solid.
The invention provides the synthetic method of another image, the embodiment of the present invention by splitting to target image, Be texture image by the image procossing after segmentation, according to it is preset coloring rule by render image texture image, segmentation after figure The texture image of picture, the texture image of original image carry out coloring synthesis, judge the display color of the position of different pixels point, close Into image video present for three-dimensional rendering effect, realize, the dynamic effect of increase image synthesis interactive with the object in image Fruit, improve the effect of image synthesis.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiments of the invention provide a kind of synthesis of image Device, as shown in fig. 7, the device includes:First acquisition unit 31, cutting unit 32, synthesis unit 33.
First acquisition unit 31, for obtaining the target image in video data;The first acquisition unit 31 is image Synthesizer perform obtain video data in target image functional module.
Cutting unit 32, for splitting the target image;The cutting unit 32 performs for the synthesizer of image to be divided Cut the functional module of the target image.
Synthesis unit 33, for according to it is preset coloring rule to the target image after the target image, the segmentation with And render image and carry out coloring synthesis, the preset coloring rule is used to react the target after the target image, the segmentation Image, the position display relation rendered between image.The synthesis unit 33 is performed according to pre- for the synthesizer of image Put coloring rule to the target image after the target image, the segmentation and render image carry out colour synthesis function mould Block.
The invention provides a kind of synthesizer of image, it is blended into existing bitmap in image, only by bitmap It is blended into each two field picture of video and compares, the embodiment of the present invention to target image by splits, by the figure after segmentation As being synthesized according to the regular coloring for render image of preset coloring so that stereoeffect is presented in the image of synthesis, realizes and schemes Target as in is interactive, the dynamic effect of increase image synthesis, improves the effect of image synthesis.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiments of the invention provide the conjunction of another image Into device, as shown in figure 8, the device includes:First acquisition unit 41, cutting unit 42, synthesis unit 43, first processing units 44th, dispensing unit 45, second acquisition unit 46, second processing unit 47, the 3rd processing unit 48, coding unit 49.
First acquisition unit 41, for obtaining the target image in video data;
Cutting unit 42, for splitting the target image;
Synthesis unit 43, for according to it is preset coloring rule to the target image after the target image, the segmentation with And render image and carry out coloring synthesis, the preset coloring rule is used to react the target after the target image, the segmentation Image, the position display relation rendered between image.
Further, described device also includes:First processing units 44,
The first processing units 44, for by calling preset pattern routine interface to handle the target image and segmentation Target image afterwards, obtain target image texture image and segmentation after target image texture image;
The synthesis unit 43, specifically for according to preset coloring rule to the texture image of the target image, described The texture image of target image after segmentation and render the texture image of image and carry out coloring synthesis.
Further, for the ease of the execution of coloring process, and the display judgement to pixel, described device are also wrapped Include:
Dispensing unit 45, for be respectively the target image texture image and the segmentation after target image line Manage the middle pixel configuration coordinate information of image.
Further, in order to handle in advance rendering image, described device also includes:
Second acquisition unit 46, for obtaining the image that renders to be synthesized, the particular memory from particular memory location Multiple user's inputs are stored with position renders image;
Second processing unit 47, for rendering image described in the processing of preset pattern routine interface by calling, rendered The texture image of image, and the pixel for the texture image for rendering image configures coordinate information.
Specifically, the synthesis unit 43 includes:
Synthesis module 4301, for calling texture image of the rendering program interface according to the target image, the segmentation The texture image of target image afterwards and render the texture image of image corresponding coordinate information carries out synthesis superposition respectively;
Staining module 4302, the coloring for the pixel according to corresponding to preset coloring rule judgment overlapping coordinate information Situation, and coloured.
The cutting unit 42, specifically for using portrait partitioning algorithm to the target image in default memory space Split.
Further, in order to realize that the image of different-effect shows that described device also includes:
3rd processing unit 48, for target image process filter processing.
Further, in order to show the video content after synthesis, described device also includes:
Coding unit 49, for the target image coloured after synthesizing to be encoded, obtain the video file of composograph.
The invention provides the synthesizer of another image, the embodiment of the present invention by splitting to target image, Be texture image by the image procossing after segmentation, according to it is preset coloring rule by render image texture image, segmentation after figure The texture image of picture, the texture image of original image carry out coloring synthesis, judge the display color of the position of different pixels point, close Into image video present for three-dimensional rendering effect, realize, the dynamic effect of increase image synthesis interactive with the object in image Fruit, improve the effect of image synthesis.
The embodiments of the invention provide a kind of storage device, wherein being stored with a plurality of instruction, the instruction is suitable to by handling Device is loaded and performed:Obtain the target image in video data;Split the target image;According to preset coloring rule to described Target image after target image, the segmentation and render image and carry out coloring synthesis, the preset coloring rule is used for anti- Answer the target image after the target image, the segmentation, the position display relation rendered between image.
The embodiments of the invention provide a kind of mobile terminal, including processor, is adapted for carrying out various instructions;And storage is set Standby, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by processor:Obtain the target image in video data; Split the target image;To the target image after the target image, the segmentation and rendered according to preset coloring rule Image carries out coloring synthesis, and the preset coloring rule is for the target image after reacting the target image, the segmentation, institute State the position display relation between image of rendering.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be to be used to distinguish each embodiment, and do not represent the quality of each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are realized in the synthetic method of image according to embodiments of the present invention and device Some or all parts some or all functions.The present invention is also implemented as being used to perform side as described herein The some or all equipment or program of device (for example, computer program and computer program product) of method.It is such Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
Embodiment of the invention discloses that:
A1, a kind of synthetic method of image, including:
Obtain the target image in video data;
Split the target image;
To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out Color synthesizes, and the preset coloring rule is used to reacting the target image after the target image, the segmentation, described renders image Between position display relation.
A2, the method according to A1, after the segmentation target image, methods described also includes:
By the target image after calling the preset pattern routine interface processing target image and splitting, target figure is obtained The texture image of target image after the texture image of picture and segmentation;
It is described to the target image after the target image, the segmentation and to render image according to preset coloring rule and enter Row coloring synthesis includes:
Texture maps according to preset coloring rule to the target image after the texture image of the target image, the segmentation As and render the texture image of image and carry out coloring synthesis.
A3, the method according to A2, it is described by calling preset pattern routine interface to handle the target image and divide Target image after cutting, obtain target image texture image and segmentation after target image texture image after, the side Method also includes:
The middle pixel of the texture image of target image after the texture image of respectively described target image and the segmentation Point configuration coordinate information.
A4, the method according to A3, methods described also include:
The image that renders to be synthesized is obtained from particular memory location, multiple users are stored with the particular memory location Input renders image;
Image is rendered described in the processing of preset pattern routine interface by calling, obtains rendering the texture image of image, and be The pixel configuration coordinate information of the texture image for rendering image.
A5, the method according to A4, it is described according to preset coloring rule to the texture image of the target image, described The texture image of target image after segmentation and render image texture image carry out colour synthesis include:
Call texture of the rendering program interface according to the target image after the texture image of the target image, the segmentation Image and render the texture image of image corresponding coordinate information carries out synthesis superposition respectively;
According to the coloring case of pixel corresponding to the overlapping coordinate information of preset coloring rule judgment, and coloured.
A6, the method according to A1, the segmentation target image include:
The target image is split using portrait partitioning algorithm in default memory space.
A7, the method according to A1, it is described obtain video data in target image after, methods described also includes:
To target image process filter processing.
A8, the method according to A2, it is described according to preset coloring rule to the texture image of the target image, described After the texture image of target image after segmentation and the default texture image for rendering image carry out coloring synthesis, methods described Also include:
The target image coloured after synthesizing is encoded, obtains the video file of composograph.
B9, a kind of synthesizer of image, including:
First acquisition unit, for obtaining the target image in video data;
Cutting unit, for splitting the target image;
Synthesis unit, for according to preset coloring rule to the target image after the target image, the segmentation and Render image and carry out coloring synthesis, the preset coloring rule is used to react the target figure after the target image, the segmentation Picture, the position display relation rendered between image.
B10, the device according to B9, described device also include:First processing units,
The first processing units, after by calling preset pattern routine interface to handle the target image and segmentation Target image, obtain target image texture image and segmentation after target image texture image;
The synthesis unit, specifically for according to preset coloring rule to the texture image of the target image, described point The texture image of target image after cutting and render the texture image of image and carry out coloring synthesis.
B11, the device according to B10, described device also include:
Dispensing unit, for be respectively the target image texture image and the segmentation after target image texture The middle pixel configuration coordinate information of image.
B12, the device according to B11, described device also include:
Second acquisition unit, for obtaining the image that renders to be synthesized, the particular memory position from particular memory location Multiple user's inputs are stored with putting renders image;
Second processing unit, for rendering image described in the processing of preset pattern routine interface by calling, obtain rendering figure The texture image of picture, and the pixel for the texture image for rendering image configures coordinate information.
B13, the device according to B12, the synthesis unit include:
Synthesis module, after calling rendering program interface according to the texture image of the target image, the segmentation The texture image of target image and render the texture image of image corresponding coordinate information carries out synthesis superposition respectively;
Staining module, for according to corresponding to preset coloring rule judgment overlapping coordinate information pixel it is pornographic Condition, and coloured.
B14, the device according to B9,
The cutting unit, specifically for being entered in default memory space using portrait partitioning algorithm to the target image Row segmentation.
B15, the device according to B9, described device also include:
3rd processing unit, for target image process filter processing.
B16, the device according to B10, described device also include:
Coding unit, for the target image coloured after synthesizing to be encoded, obtain the video file of composograph.
C17, a kind of storage device, wherein being stored with a plurality of instruction, the instruction is suitable to be loaded and performed by processor:
Obtain the target image in video data;
Split the target image;
To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out Color synthesizes, and the preset coloring rule is used to reacting the target image after the target image, the segmentation, described renders image Between position display relation.
D18, a kind of mobile terminal, including processor, are adapted for carrying out various instructions;And storage device, it is more suitable for storing Bar instructs, and the instruction is suitable to be loaded and performed by processor:
Obtain the target image in video data;
Split the target image;
To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out Color synthesizes, and the preset coloring rule is used to reacting the target image after the target image, the segmentation, described renders image Between position display relation.

Claims (10)

  1. A kind of 1. synthetic method of image, it is characterised in that including:
    Obtain the target image in video data;
    Split the target image;
    To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out coloring conjunction It is used to reacting the target image after the target image, the segmentation into, the preset coloring rule, described renders between image Position display relation.
  2. 2. according to the method for claim 1, it is characterised in that after the segmentation target image, methods described is also Including:
    By the target image after calling the preset pattern routine interface processing target image and splitting, target image is obtained The texture image of target image after texture image and segmentation;
    It is described to the target image after the target image, the segmentation and to render image according to preset coloring rule and carry out Color synthesis includes:
    According to preset coloring rule to the texture image of the target image after the texture image of the target image, the segmentation with And render the texture image of image and carry out coloring synthesis.
  3. 3. according to the method for claim 2, it is characterised in that described by calling described in the processing of preset pattern routine interface Target image and segmentation after target image, obtain target image texture image and segmentation after target image texture image Afterwards, methods described also includes:
    The middle pixel of the texture image of target image after the texture image of respectively described target image and the segmentation is matched somebody with somebody Put coordinate information.
  4. 4. according to the method for claim 3, it is characterised in that methods described also includes:
    The image that renders to be synthesized is obtained from particular memory location, multiple user's inputs are stored with the particular memory location Render image;
    Image is rendered described in the processing of preset pattern routine interface by calling, obtains rendering the texture image of image, and be described Render the pixel configuration coordinate information of the texture image of image.
  5. A kind of 5. synthesizer of image, it is characterised in that including:
    First acquisition unit, for obtaining the target image in video data;
    Cutting unit, for splitting the target image;
    Synthesis unit, for the target image after the target image, the segmentation and being rendered according to preset coloring rule Image carries out coloring synthesis, and the preset coloring rule is for the target image after reacting the target image, the segmentation, institute State the position display relation between image of rendering.
  6. 6. device according to claim 5, it is characterised in that described device also includes:First processing units,
    The first processing units, for passing through the mesh after calling the preset pattern routine interface processing target image and splitting Logo image, obtain target image texture image and segmentation after target image texture image;
    The synthesis unit, after according to preset coloring rule to the texture image of the target image, the segmentation Target image texture image and render the texture image of image and carry out coloring synthesis.
  7. 7. device according to claim 6, it is characterised in that described device also includes:
    Dispensing unit, for be respectively the target image texture image and the segmentation after target image texture image Middle pixel configuration coordinate information.
  8. 8. device according to claim 9, it is characterised in that described device also includes:
    Second acquisition unit, for obtaining the image that renders to be synthesized from particular memory location, in the particular memory location Be stored with multiple user's inputs renders image;
    Second processing unit, for rendering image described in the processing of preset pattern routine interface by calling, obtain rendering image Texture image, and the pixel for the texture image for rendering image configures coordinate information.
  9. 9. a kind of storage device, wherein being stored with a plurality of instruction, the instruction is suitable to be loaded and performed by processor:
    Obtain the target image in video data;
    Split the target image;
    To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out coloring conjunction It is used to reacting the target image after the target image, the segmentation into, the preset coloring rule, described renders between image Position display relation.
  10. 10. a kind of mobile terminal, including processor, it is adapted for carrying out various instructions;And storage device, suitable for storing a plurality of finger Order, the instruction are suitable to be loaded and performed by processor:
    Obtain the target image in video data;
    Split the target image;
    To the target image after the target image, the segmentation and render image according to preset coloring rule and carry out coloring conjunction It is used to reacting the target image after the target image, the segmentation into, the preset coloring rule, described renders between image Position display relation.
CN201710566472.7A 2017-07-12 2017-07-12 The synthetic method and device of image Pending CN107369188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710566472.7A CN107369188A (en) 2017-07-12 2017-07-12 The synthetic method and device of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710566472.7A CN107369188A (en) 2017-07-12 2017-07-12 The synthetic method and device of image

Publications (1)

Publication Number Publication Date
CN107369188A true CN107369188A (en) 2017-11-21

Family

ID=60306887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710566472.7A Pending CN107369188A (en) 2017-07-12 2017-07-12 The synthetic method and device of image

Country Status (1)

Country Link
CN (1) CN107369188A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107958480A (en) * 2017-11-23 2018-04-24 腾讯科技(上海)有限公司 Image rendering method, device and storage medium
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device
CN108133718A (en) * 2017-12-13 2018-06-08 北京奇虎科技有限公司 A kind of method and apparatus handled video
CN108876873A (en) * 2018-06-22 2018-11-23 上海闻泰电子科技有限公司 Image generating method, device, equipment and storage medium
CN110047122A (en) * 2019-04-04 2019-07-23 北京字节跳动网络技术有限公司 Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN110292774A (en) * 2019-06-28 2019-10-01 广州华多网络科技有限公司 One kind is found fault picture materials processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452582A (en) * 2008-12-18 2009-06-10 北京中星微电子有限公司 Method and device for implementing three-dimensional video specific action
CN102238362A (en) * 2011-05-09 2011-11-09 苏州阔地网络科技有限公司 Image transmission method and system for community network
CN102831401A (en) * 2012-08-03 2012-12-19 樊晓东 Method and system for tracking, three-dimensionally superposing and interacting target object without special mark

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452582A (en) * 2008-12-18 2009-06-10 北京中星微电子有限公司 Method and device for implementing three-dimensional video specific action
CN102238362A (en) * 2011-05-09 2011-11-09 苏州阔地网络科技有限公司 Image transmission method and system for community network
CN102831401A (en) * 2012-08-03 2012-12-19 樊晓东 Method and system for tracking, three-dimensionally superposing and interacting target object without special mark

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107958480A (en) * 2017-11-23 2018-04-24 腾讯科技(上海)有限公司 Image rendering method, device and storage medium
CN107958480B (en) * 2017-11-23 2021-04-30 腾讯科技(上海)有限公司 Image rendering method and device and storage medium
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device
CN108133718A (en) * 2017-12-13 2018-06-08 北京奇虎科技有限公司 A kind of method and apparatus handled video
CN108133718B (en) * 2017-12-13 2021-04-06 北京奇虎科技有限公司 Method and device for processing video
CN108876873A (en) * 2018-06-22 2018-11-23 上海闻泰电子科技有限公司 Image generating method, device, equipment and storage medium
CN108876873B (en) * 2018-06-22 2022-07-19 上海闻泰电子科技有限公司 Image generation method, device, equipment and storage medium
CN110047122A (en) * 2019-04-04 2019-07-23 北京字节跳动网络技术有限公司 Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN110292774A (en) * 2019-06-28 2019-10-01 广州华多网络科技有限公司 One kind is found fault picture materials processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107369188A (en) The synthetic method and device of image
EP2705501B1 (en) Texturing in graphics hardware
JP7455161B2 (en) Line drawing automatic coloring program, line drawing automatic coloring device and graphical user interface program
CN106611435A (en) Animation processing method and device
US8464170B2 (en) 2D editing metaphor for 3D graphics
US20080307342A1 (en) Rendering Semi-Transparent User Interface Elements
CN108701351B (en) Image display enhancement method and device
JP7213616B2 (en) Information processing device, information processing program, and information processing method.
CN107483771A (en) A kind of method and image display device of image generation
WO2021078036A1 (en) Image processing method and device
US10074193B2 (en) Controlled dynamic detailing of images using limited storage
CN112870704B (en) Game data processing method, device and storage medium
CN105787874B (en) Method and device for mosaic processing of screenshot
US20060103671A1 (en) Method of background colour removal for porter and duff compositing
CN107408401A (en) The user's sliding block for simplifying adjustment for image
US20200342654A1 (en) Multi-spectral rendering for synthetics
Tan et al. Palette-based image decomposition, harmonization, and color transfer
CN109448088A (en) Render method, apparatus, computer equipment and the storage medium of solid figure wire frame
US11775159B1 (en) Methods and systems for generating graphical content through easing and paths
US9299389B2 (en) Interpretation of free-form timelines into compositing instructions
US20030169272A1 (en) Image generation apparatus and method thereof
CN109872277A (en) Information processing method and device
CN114565707A (en) 3D object rendering method and device
CN105472106A (en) Background display method and device
US11610352B2 (en) Multistate animation of existing digital and analog art

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171121