CN107481200A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN107481200A
CN107481200A CN201710644878.2A CN201710644878A CN107481200A CN 107481200 A CN107481200 A CN 107481200A CN 201710644878 A CN201710644878 A CN 201710644878A CN 107481200 A CN107481200 A CN 107481200A
Authority
CN
China
Prior art keywords
pixel
line segment
edge
image
original image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710644878.2A
Other languages
Chinese (zh)
Other versions
CN107481200B (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 CN201710644878.2A priority Critical patent/CN107481200B/en
Publication of CN107481200A publication Critical patent/CN107481200A/en
Application granted granted Critical
Publication of CN107481200B publication Critical patent/CN107481200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G06T5/70
    • 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/20172Image enhancement details
    • G06T2207/20192Edge enhancement; Edge preservation

Abstract

The invention discloses a kind of image processing method and device.Wherein, this method includes:The a plurality of line segment of destination object is obtained, wherein, a plurality of line segment is used for the edge contour for representing destination object;The original image of destination object is obtained, and draws a plurality of line segment on the original image, obtains the first image;Edge treated is carried out to a plurality of line segment on the first image, obtains the edge pixel of a plurality of line segment;Image procossing is carried out to the edge contour of original image according to the edge pixel of a plurality of line segment in the first image, obtains the second image of destination object, wherein, image procossing is used to carry out smoothly edge contour.The present invention solves the big technical problem of image procossing amount of correlation technique.

Description

Image processing method and device
Technical field
The present invention relates to image processing field, in particular to a kind of image processing method and device.
Background technology
Fig. 1 is a kind of schematic diagram of the image procossing of SSAA in correlation technique.As shown in figure 1, in super sampling In antialiasing (SuperSampling Anti-Aliasing, referred to as SSAA), 16 circles are used to represent inside a pixel 16 sampled points, top dash area 1 and dash area 2 are the pixels covered.This is a kind of most intuitively at antialiasing Reason method, one big figure is rendered, has then reduced sampling (downsampl), it is equal equivalent to having done one inside each pixel Even profile samples.
Each sampled point is carried out one time, can obtain 1 white sampled point (1,1,1), 1 light blue sampled point (0.77,0.77,1) and 14 yellow sampled points (1,1,0).The value of this last pixel is being averaged for this 16 sampled points, That is, ((1,1,1)+(0.77,0.77,1)+14* (1,1,0))/16=(0.98,0.98,0.125).In the situation that hits is N Under, it is N that PS, which performs number, in each pixel, the N number of color of space-consuming (color)+N number of depth (depth).
SSAA needs to be carried out an image procossing (PS), and save colors (color) and depth in each sampled point (depth), time and space expense are all surprising.Multiple sampling antialiasing (MultiSampling Anti-Aliasing, Referred to as MSAA) appearance significantly improve this point.MSAA is all in each pixel Exactly-once PS, output color write-in In the sampling sheet tested by depth template view (depth-stencil).Before Microsoft software Shader Model3, PS The certain center for being derived from pixel of input, added center (centric) interpolation later, PS input attribute can is triangle The center for all sampled points that shape is covered.As shown in Fig. 2 Fig. 2 is the image procossing of MSAA in correlation technique a kind of Schematic diagram.Wherein, circle is used to represent color samples (color sample), and cross is used to represent depth-sampling (depth sample).Left figure in Fig. 2 is the schematic diagram without the image procossing using central difference, and the right figure in Fig. 2 is using center The schematic diagram of the image procossing of difference.If as shown in figure 1, not having center interpolation, two in dash area 1 sampled point will all Obtain the color of ethereal blue, the color of final pixel for (2* (0,0,1)+14* (1,1,0))/16=(0.875,0.875, 0.125).It is exactly more accurate light blue ((1,1,1)+(0.77,0.77,1))/2=if having centric interpolation (0.885,0.885,1), final pixel color be (2* (0.885,0.885,1)+14* (1,1,0))/16=(0.98,0.98, 0.125).PS performs number each to cover the triangle of the pixel once in each pixel, the N number of color+N of space-consuming Individual depth.
Although MSAA solves the problems, such as calculating, but amount of storage is still very big, especially sample rate to more than 8.Cover Lid sampling antialiasing (CoverageSampling Anti-Aliasing, abbreviation CSAA) has decoupled color/depth buffering Device (buffer) and the buffer for covering (coverage), can be adopted with less color/depth spaces to store original height The getable quality of sample number.Such as situation as shown in Figure 1, rendered with CSAA 16x, a pixel will be divided into a left side There are 4 coverage sampled points in upper, upper right, lower-left and 4 pieces of bottom right region, every piece of region, but share same color and Depth, as a result it is exactly (0.25* (0.885,0.885,1)+0.25* (0.885,0.885,1)+3.75* (1,1,0))/4= (0.98,0.98,0.125).PS performs number each to cover the triangle of the pixel once in each pixel, space-consuming M color+M depth, M are less than N.
Deferred lighting technology (Deferred Lighting), which partly solves Deferred frameworks, can not use hardware MSAA The problem of, but the cost of one side scene or no small is rendered again.
Edge antialiasing (Edge AA) is to do an edge according to neighbours depth and normal (normal) difference degree Detection, each pixel can obtain a weight, for representing " as the degree at edge ", according to this weight, it is possible to need The buffer of anti-aliasing is, the color of neighbor pixel is brought into interpolation, obtains AA effect.As shown in Figure 3.Wherein, Fig. 3 is root According to a kind of schematic diagram of the treatment effect of edge antialiasing of correlation technique.
Fig. 4 is the schematic diagram according to a kind of MLAA of correlation technique image procossing.As shown in figure 4, form antialiasing (Morphological Antialiasing, referred to as MLAA) does not calculate isopleth (isoline), but divides door other edge Class, several specific shapes such as Z, U, L are summarized as, and Z and U can be decomposed into L.
These methods of above-mentioned SSAA, MSAA, CSAA need hardware directly to support, but the overhead brought can't neglect. On the one hand it is that they are surprising to the impact that memory space is brought.Especially on non-desktop platform, internal memory is natively few, such as Fruit also needs to just less qualified to do it if AA.On the other hand, these methods are all original (primitive) sides to considering for " edge " Boundary, no matter whether this edge really needs AA, it can all waste many amounts of calculation.And MLAA amounts of calculation are huge, to hardware performance It is it is required that higher.
For above-mentioned image procossing amount it is big the problem of, not yet propose effective solution at present.
The content of the invention
The embodiments of the invention provide a kind of image processing method and device, at least to solve the image procossing of correlation technique Measure big technical problem.
A kind of one side according to embodiments of the present invention, there is provided image processing method.This method includes:Obtain target The a plurality of line segment of object, wherein, a plurality of line segment is used for the edge contour for representing destination object;Obtain the original graph of destination object Picture, and a plurality of line segment is drawn on the original image, obtain the first image;Edge is carried out to a plurality of line segment on the first image Reason, obtains the edge pixel of a plurality of line segment;According to the edge pixel of a plurality of line segment in the first image to the edge of original image Profile carries out image procossing, obtains the second image of destination object, wherein, image procossing is used to carry out smoothly edge contour.
Another aspect according to embodiments of the present invention, additionally provide a kind of image processing apparatus.The device includes:First obtains Unit is taken, for obtaining a plurality of line segment of destination object, wherein, a plurality of line segment is used for the edge contour for representing destination object;The Two acquiring units, for obtaining the original image of destination object, and a plurality of line segment are drawn on the original image, obtain the first figure Picture;First processing units, for carrying out edge treated to a plurality of line segment on the first image, obtain the edge picture of a plurality of line segment Element;Second processing unit, for entering according to the edge pixel of a plurality of line segment in the first image to the edge contour of original image Row image procossing, the second image of destination object is obtained, wherein, image procossing is used to carry out smoothly edge contour.
In embodiments of the present invention, by obtaining a plurality of line segment of destination object, wherein, a plurality of line segment is used to represent target The edge contour of object;The original image of destination object is obtained, and draws a plurality of line segment on the original image, obtains the first figure Picture;Edge treated is carried out to a plurality of line segment on the first image, obtains the edge pixel of a plurality of line segment;According in the first image The edge pixel of a plurality of line segment carries out image procossing to the edge contour of original image, obtains the second image of destination object, its In, image procossing is used to carrying out edge contour smooth, has reached the purpose handled image, due to this method be based on The processes pixel at edge, and the treating capacity of the relative pixel processing method based on whole picture is low independent of hardware in itself A lot, it is achieved thereby that reaching the technique effect for reducing image procossing amount, and then the image procossing amount for solving correlation technique is big Technical problem.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the image procossing of SSAA in correlation technique;
Fig. 2 is a kind of schematic diagram of the image procossing of MSAA in correlation technique;
Fig. 3 is the schematic diagram according to a kind for the treatment of effect of edge antialiasing of correlation technique;
Fig. 4 is the schematic diagram according to a kind of MLAA of correlation technique image procossing;
Fig. 5 is a kind of schematic diagram of the hardware environment of image processing method according to embodiments of the present invention;
Fig. 6 is a kind of flow chart of image processing method according to embodiments of the present invention;
Fig. 7 is a kind of edge pixel of a plurality of line segment according in the first image according to embodiments of the present invention to original graph The edge contour of picture carries out the flow chart of the method for antialiasing processing;
Fig. 8 is the area ratio that a kind of acquisition edge pixel according to embodiments of the present invention accounts for original image, obtains edge The flow chart of the method for the coverage rate of pixel;
Fig. 9 is a kind of flow chart of the method for the directional information of every line segment of acquisition according to embodiments of the present invention;
Figure 10 is a kind of flow chart of the method for a plurality of line segment of acquisition destination object according to embodiments of the present invention;
Figure 11 is the method that a kind of a plurality of line segment on the first image according to embodiments of the present invention carries out edge treated Flow chart;
Figure 12 is a kind of schematic diagram that object model is split into a plurality of line segment according to embodiments of the present invention;
Figure 13 be a kind of drafting object according to embodiments of the present invention before picture and draw object after picture Schematic diagram;
Figure 14 is a kind of schematic diagram of the pixel of the edge extremity of segment of object according to embodiments of the present invention;
Figure 15 is the schematic diagram of a kind of pixel according to embodiments of the present invention and surrounding pixel;
Figure 16 is a kind of schematic diagram of object pixel according to embodiments of the present invention;
Figure 17 is a kind of edge pixel according to embodiments of the present invention showing by the area coverage ratio that original image includes It is intended to;
Figure 18 be one kind according to embodiments of the present invention according to coverage rate mixed edge pixel and edge pixel in target figure The schematic diagram of pixel on piece;
Figure 19 is a kind of schematic diagram of image processing apparatus according to embodiments of the present invention;And
Figure 20 is a kind of structured flowchart of terminal according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of image processing method.
Alternatively, in the present embodiment, above-mentioned image processing method can apply to as shown in Figure 5 by server 502 In the hardware environment formed with terminal 504.Fig. 5 is a kind of hardware environment of image processing method according to embodiments of the present invention Schematic diagram.As shown in figure 5, server 502 is attached by network and terminal 504, above-mentioned network includes but is not limited to:Extensively Domain net, Metropolitan Area Network (MAN) or LAN, terminal 504 are not limited to PC, mobile phone, tablet personal computer etc..At the image of the embodiment of the present invention Reason method can be performed by server 502, can also be performed, be can also be by server 502 and terminal by terminal 504 504 common execution.Wherein, the image processing method that terminal 504 performs the embodiment of the present invention can also be by mounted thereto Client performs.
Fig. 6 is a kind of flow chart of image processing method according to embodiments of the present invention.As shown in fig. 6, this method can be with Comprise the following steps:
Step S602, obtain a plurality of line segment of destination object.
In the technical scheme that the application above-mentioned steps S602 is provided, a plurality of line segment of destination object is obtained, wherein, it is a plurality of Line segment is used for the edge contour for representing destination object.
The image processing method of the embodiment can be the antialiasing method of the edge detection based on wire frame, can be used for pair The image of destination object carries out rendering processing.Wherein, destination object can be the object in reality scene.Obtain destination object A plurality of line segment, a plurality of line segment are used for the edge contour for representing destination object, form the wire frame of destination object, can be with two Summit is one group of list of line segments, wherein, the positional information with group summit is stored on every line segment.Alternatively, with a plurality of line segment According to the edge contour of latter linked form composition destination object before certain order.
The destination object of the embodiment has object model, and the object model is carried out according to the edge contour of destination object What modeling obtained.Deconsolidation process is carried out to the object model of destination object, obtained using two summits as one group of list of line segments.
Step S604, the original image of destination object is obtained, and draw a plurality of line segment on the original image, obtain the first figure Picture.
In the technical scheme that the application above-mentioned steps S604 is provided, the original image of destination object is obtained, and original A plurality of line segment is drawn on image, obtains the first image.
After a plurality of line segment of destination object is obtained, the original image of destination object is obtained, can be normal on picture Destination object is drawn, obtains original image, and original graph will be included after the picture before drawing destination object and drafting object The picture of picture is cached.
When getting the original image of destination object, drawn on the original image in a manner of drawing line segment above-mentioned a plurality of Line segment, above-mentioned a plurality of line segment can be drawn on the original image according to the positional information of a plurality of line segment, and then obtain the first image.
Step S606, edge treated is carried out to a plurality of line segment on the first image, obtains the edge pixel of a plurality of line segment.
In the technical scheme that the application above-mentioned steps S606 is provided, edge is carried out to a plurality of line segment on the first image Reason, obtains the edge pixel of a plurality of line segment.
The original image of destination object is being obtained, and is drawing a plurality of line segment on the original image, after obtaining the first image, Edge treated can be carried out to the first image in pixel coloring device, such as, judged by the filter of pixel coloring device a plurality of Whether the pixel on line segment is edge pixel.Alternatively, the pixel on every line segment is obtained, to the week of the pixel on every line segment The pixel for enclosing predetermined number is sampled, such as, 8 pixels around the pixel on every line segment are sampled, if through It is not the pixel in the original image of destination object to have any one pixel in the pixel that over-sampling obtains, it is determined that above-mentioned every Pixel on line segment is the edge pixel of a plurality of line segment, that is, the pixel of edge line segment.
Step S608, figure is carried out to the edge contour of original image according to the edge pixel of a plurality of line segment in the first image As processing, the second image of destination object is obtained.
In the technical scheme that the application above-mentioned steps S608 is provided, according to the edge picture of a plurality of line segment in the first image Element carries out image procossing to the edge contour of original image, obtains the second image of destination object, wherein, image procossing is used for pair Edge contour carries out smooth.
In 3-D view, the edge of the original image of the destination object always more or less sawtooth having a generally triangular shape, And image procossing just refers to carry out smoothly the edge contour of original image.A plurality of line segment on to the first image carries out edge Processing, after obtaining the edge pixel of a plurality of line segment, according to the edge pixel of a plurality of line segment in the first image to original image Edge contour carry out image procossing, obtain the second image of destination object.
Alternatively, can be in vertex shader VS with two summits of every line segment when drawing above-mentioned a plurality of line segment Positional information calculation goes out the direction of every line segment, and the direction of every line segment and vertex position information are passed to pixel coloring device PS Send.Pixel coloring device PS in the edge pixel on handling every line segment, according to the position of the edge pixel on every line segment and The vertex position information of line segment, every line segment every line segment of direction calculating on edge pixel and line segment fore-and-aft distance and water Flat distance, and then the side of every line segment is obtained according to the edge pixel on every line segment and the fore-and-aft distance of line segment and horizontal range The area coverage ratio that edge pixel is included by original image, that is, according to the edge pixel on every line segment and the longitudinal direction of line segment The coverage rate of edge pixel must be calculated in distance and horizontal range.
The number of respective pixel that can be with overlay edge pixel and edge pixel on picture according to the coverage rate of edge pixel According to, edge line segment pixels after being handled, wherein, picture is used to draw destination object, that is, obtain original image it Preceding picture.After the edge line segment pixels after being handled, set according to the edge line segment pixels after processing original The edge pixel of image, retains the data of the pixel in original image in addition to edge line segment pixels, and then obtains destination object The second image, so as to reach the jagged edges of the original image of optimization aim object, obtain fineness the second image purpose.
By above-mentioned steps S602 to step S608, by obtaining a plurality of line segment of destination object, a plurality of line segment is used for table Show the edge contour of destination object;The original image of destination object is obtained, and draws a plurality of line segment on the original image, obtains the One image;Edge treated is carried out to a plurality of line segment on the first image, obtains the edge pixel of a plurality of line segment;According to the first image In the edge pixel of a plurality of line segment image procossing is carried out to the edge contour of original image, obtain the second figure of destination object Picture, wherein, image procossing is used to edge contour is carried out smoothly, to have reached the purpose for handling image, due to this method For the processes pixel based on edge, independent of hardware in itself, and the processing of the relative pixel processing method based on whole picture Amount is much lower, it is achieved thereby that reaching the technique effect for reducing image procossing amount, and then solves at the image of correlation technique The big technical problem of reason amount.
Alternatively, image is carried out to the edge contour of original image according to the edge pixel of a plurality of line segment in the first image Processing, obtaining the second image of destination object includes:According to the edge pixel of a plurality of line segment in the first image to original image Edge contour carry out antialiasing processing, obtain the second image of destination object.And antialiasing processing just refers to original image Edge contour carry out smooth, that is, carrying out softening processing, the edge contour of original image is seemed smoother, it is closer Destination object, so as to improve the image quality of the image of destination object, it is allowed to soft.A plurality of line segment on to the first image carries out side Edge processing, after obtaining the edge pixel of a plurality of line segment, according to the edge pixel of a plurality of line segment in the first image to original graph The edge contour of picture carries out antialiasing processing, obtains the second image of destination object.
As an alternative embodiment, step S604, obtaining the original image of destination object includes:In Target Photo Upper drafting destination object, obtains original image;Step S608, according to the edge pixel of a plurality of line segment in the first image to original The edge contour of image carries out antialiasing processing, and obtaining the second image of destination object includes:Obtain edge pixel and account for original graph The area ratio of picture, obtain the coverage rate of edge pixel;According to coverage rate to edge pixel and edge pixel on Target Photo Corresponding first pixel is overlapped, and obtains object pixel;On Target Photo, original image is repainted according to object pixel Edge contour, obtain the second image.
Fig. 7 is a kind of edge pixel of a plurality of line segment according in the first image according to embodiments of the present invention to original graph The edge contour of picture carries out the flow chart of the method for antialiasing processing.As shown in fig. 7, this method comprises the following steps:
Step S701, the area ratio that edge pixel accounts for original image is obtained, obtains the coverage rate of edge pixel.
In the technical scheme that the application above-mentioned steps S701 is provided, the area ratio that edge pixel accounts for original image is obtained Example, obtains the coverage rate of edge pixel.
The embodiment is normally drawn destination object on Target Photo, obtained when obtaining the original image of destination object Original image, the Target Photo can be the background picture of original image to draw the picture before destination object.
The original image of destination object is being obtained, and is drawing a plurality of line segment on the original image, after obtaining the first image, Obtain edge pixel and account for the area ratio of original image, the coverage rate of the area ratio namely edge pixel on the original image, It is original can to determine that edge pixel accounts for by the lateral separation between the edge pixel of a plurality of line segment and corresponding line segment and fore-and-aft distance The area ratio of image determines.
Step S702, according to coverage rate, to edge pixel and edge pixel, corresponding first pixel on Target Photo is carried out Superposition, obtains object pixel.
In the technical scheme that the application above-mentioned steps S702 is provided, edge pixel and edge pixel are existed according to coverage rate First pixel corresponding on Target Photo is overlapped, and obtains object pixel.
The pixel in pixel and original image on Target Photo can influence the effect for the second pixel that final process obtains. The area ratio of original image is accounted in acquisition edge pixel, after obtaining the coverage rate of edge pixel, to the edge of every line segment Pixel and edge pixel the first pixel corresponding on Target Photo are overlapped, to consider the pixel pair on Target Photo The influence of the edge pixel of every line segment.The embodiment is according to the coverage rate of edge pixel obtained above to edge pixel and side Edge pixel first pixel corresponding on Target Photo is overlapped, and object pixel is obtained, that is, according to edge obtained above The coverage rate of pixel to the data of edge pixel and the data of edge pixel, fold by corresponding first pixel on Target Photo Add, obtain data corresponding to object pixel.
Step S703, on Target Photo, the edge contour of original image is repainted according to object pixel, obtains second Image.
In the technical scheme that the application above-mentioned steps S703 is provided, on Target Photo, painted again according to object pixel The edge contour of original image processed, obtain the second image.
According to coverage rate to edge pixel and edge pixel on Target Photo corresponding to the first pixel be overlapped, obtain To after object pixel, on Target Photo, pixel corresponding to the edge contour of original image is reset by object pixel, To repaint the edge contour of original image according to object pixel, the second image is obtained, second image can be opposite side edge Profile carries out the final image that antialiasing handles to obtain.
The embodiment accounts for the area ratio of original image by obtaining edge pixel, obtains the coverage rate of edge pixel;Press According to coverage rate, to edge pixel and edge pixel, corresponding first pixel on Target Photo is overlapped, and obtains object pixel; On Target Photo, the edge contour of original image is repainted according to object pixel, obtains the second image, is realized according to The edge pixel of a plurality of line segment in one image carries out image procossing to the edge contour of original image, obtains the of destination object The purpose of two images, the precision of image procossing, and the special antialiasing function independent of hardware in itself are improved, and then reduced Image procossing amount.
As an alternative embodiment, step S703, the edge wheel of original image is repainted according to object pixel Exterior feature, obtaining the second image includes:In original image, the pixel value of the second pixel corresponding to edge contour is arranged to target picture The pixel value of element;Retain the pixel value of the 3rd pixel in original image in addition to the second pixel, obtain the second image.
In the original image of destination object, pixel corresponding to the edge contour of destination object is the second pixel, original graph Except the pixel before the second pixel is the 3rd pixel as in.The edge contour of original image is being repainted according to object pixel, When obtaining the second image, the pixel value of the second pixel can be arranged to the pixel value of above-mentioned object pixel, retain the 3rd pixel Pixel value, so as to obtain the second image.Because the image processing method of the embodiment is the edge pixel based on original image Handled, relative to the method handled based on whole image pixel, the embodiment can reduce image procossing amount.
As an alternative embodiment, step S702, according to coverage rate to edge pixel and edge pixel in target First pixel corresponding on picture is overlapped, and obtaining object pixel includes:Determine first of edge pixel in object pixel The second weight of weight and the first pixel in object pixel, wherein, the first weight and the second weight are allocated by coverage rate; Edge pixel and the first pixel are overlapped according to the first weight and the second weight, obtain object pixel, wherein, including by mesh The pixel value of mark pixel is arranged to:The product of the pixel value of edge pixel and the first weight, the pixel value of the first pixel and the second power The sum of the product of weight.
According to coverage rate to edge pixel and edge pixel on Target Photo corresponding to the first pixel be overlapped, obtain During to object pixel, according to first weight of the coverage rate allocations of edge pixel in object pixel and the first pixel in object pixel In the second weight, such as, when coverage rate is more than default coverage rate, it is A weights to determine the first weight, then the second weight is (1-A).It is determined that after the first weight and the second weight, according to the first weight and the second weight to edge pixel and the first pixel It is overlapped, obtains object pixel.Alternatively, edge pixel and the first pixel are carried out according to the first weight and the second weight During superposition, the pixel value of object pixel can be arranged to:A*Wa+b*Wb, wherein, a is used for the pixel value for representing edge pixel, Wa is used to represent first weight of the edge pixel in object pixel, and b is used to represent pixel of first pixel in object pixel Value, above-mentioned pixel value belong to the pixel data of pixel, and Wb is used to represent second weight of first pixel in object pixel.
It should be noted that it is above-mentioned according to coverage rate to edge pixel and edge pixel on Target Photo corresponding to first Pixel is overlapped, and the method for obtaining object pixel is only the preferred embodiment of the embodiment of the present invention, does not limit the present invention According to coverage rate, to edge pixel and edge pixel, corresponding first pixel on Target Photo is overlapped only aforesaid way, It is any to realize that corresponding first pixel on Target Photo is overlapped to edge pixel and edge pixel according to coverage rate, Obtain the method for object pixel, and reach reduce image procossing amount effect method all within protection scope of the present invention, The explanation no longer illustrated one by one herein.
As an alternative embodiment, step S701, obtains the area ratio that edge pixel accounts for original image, obtains The coverage rate of edge pixel includes:Obtain the directional information of every line segment and the positional information of edge pixel;According to every line segment Vertex position information, the geometrical relationship between the positional information of the directional information of every line segment and edge pixel obtain edge picture Plain lateral separation and fore-and-aft distance between every line segment;The predeterminable area that acquisition is determined by lateral separation and fore-and-aft distance Area accounts for the ratio of the area of original image, obtains the coverage rate of edge pixel.
Fig. 8 is the area ratio that a kind of acquisition edge pixel according to embodiments of the present invention accounts for original image, obtains edge The flow chart of the method for the coverage rate of pixel.As shown in figure 8, this method comprises the following steps:
Step S801, the directional information of every line segment of acquisition and the positional information of edge pixel.
In the technical scheme that the application above-mentioned steps S801 is provided, the directional information and edge pixel of every line segment are obtained Positional information.
The embodiment can obtain the coverage rate of edge pixel when obtaining the coverage rate of edge pixel by tinter, Wherein, tinter includes vertex shader VS and pixel coloring device PS.The area ratio of original image is accounted in acquisition edge pixel, When obtaining the coverage rate of edge pixel, according in vertex shader VS with the position on two summits of every line segment of destination object Confidence, which ceases, calculates the directional information of every line segment, by the directional information of every line segment and the position of the edge pixel of every line segment Information is transmitted to tinter PS.
Step S802, according to the position of the vertex position information of every line segment, the directional information of every line segment and edge pixel Geometrical relationship between confidence breath obtains the lateral separation and fore-and-aft distance between edge pixel and every line segment.
The application above-mentioned steps S802 provide technical scheme in, according to the vertex position information of every line segment, every Geometrical relationship between the directional information of line segment and the positional information of edge pixel is obtained between edge pixel and every line segment Lateral separation and fore-and-aft distance.
After the directional information of every line segment of acquisition and the positional information of edge pixel, pixel coloring device PS can be passed through The edge pixel of every line segment is handled, can be according to the vertex position information of every line segment, the directional information of every line segment and side Geometrical relationship between the positional information of edge pixel is calculated between the edge pixel of every line segment and corresponding every line segment Lateral separation and fore-and-aft distance.
Step S803, the area for obtaining the predeterminable area determined by lateral separation and fore-and-aft distance account for the area of original image Ratio, obtain the coverage rate of edge pixel.
The application above-mentioned steps S803 provide technical scheme in, obtain determined by lateral separation and fore-and-aft distance it is pre- If the area in region accounts for the ratio of the area of original image, the coverage rate of edge pixel is obtained.
After lateral separation and the fore-and-aft distance between edge pixel and every line segment is got, according to edge pixel with Lateral separation and fore-and-aft distance between corresponding every line segment determine the area of predeterminable area, such as, it is determined that by lateral separation, The area for the closing triangle that fore-and-aft distance and every line segment determine accounts for the ratio of the area of original image, that is, edge pixel The area coverage ratio included by original image, so as to obtain the coverage rate of edge pixel.
The embodiment is by obtaining the directional information of every line segment and the positional information of edge pixel;According to every line segment Geometrical relationship between the positional information of vertex position information, the directional information of every line segment and edge pixel obtains edge pixel Lateral separation and fore-and-aft distance between every line segment;Obtain the face of the predeterminable area determined by lateral separation and fore-and-aft distance Product accounts for the ratio of the area of original image, obtains the coverage rate of edge pixel, has reached acquisition edge pixel and has accounted for original image Area ratio, obtains the coverage rate of edge pixel, so according to coverage rate to edge pixel and edge pixel on Target Photo Corresponding first pixel is overlapped, and obtains object pixel;On Target Photo, original image is repainted according to object pixel Edge contour, obtain the second image, reached reduce image procossing amount effect.
As an alternative embodiment, step S801, obtaining the directional information of every line segment includes:Obtain every line The first vertex position information and the second vertex position information of section, the summit of every line segment include the first summit and the second summit, Vertex position information includes the first vertex position information and the second vertex position information;Obtain the first summit position by every line segment The directional information for every line segment that confidence ceases and the second vertex position information is calculated.
Fig. 9 is a kind of flow chart of the method for the directional information of every line segment of acquisition according to embodiments of the present invention.Such as Fig. 9 Shown, this method comprises the following steps:
Step S901, obtain the first vertex position information and the second vertex position information of every line segment.
The application above-mentioned steps S901 provide technical scheme in, obtain every line segment the first vertex position information and Second vertex position information, wherein, the first vertex position information is used for the position for indicating the first summit of every line segment, the second top Dot position information is used for the position for indicating the second summit of every line segment, and the summit of every line segment includes the first summit and the second top Point, vertex position information include the first vertex position information and the second vertex position information.
Summit for every line segment of the edge contour for representing destination object includes two summits, and two summits are one Group.In the directional information of every line segment of acquisition, the first vertex position information and the second vertex position letter of every line segment are obtained Breath, first vertex position information are used for the position for indicating the first summit of every line segment, and the second vertex position information is used to refer to Show the position on the second summit of every line segment, the summit of every line segment includes the first summit and the second summit, vertex position information Including the first vertex position information and the second vertex position information.
Step S902, obtain what is be calculated by the first vertex position information and the second vertex position information of every line segment The directional information of every line segment.
In the technical scheme that the application above-mentioned steps S902 is provided, obtain by the first vertex position information of every line segment The directional information for every line segment being calculated with the second vertex position information.
After the first vertex position information and the second vertex position information of every line segment is obtained, it can by summit The side of line segment where color device calculates the first summit and the second summit with the first vertex position information and the second vertex position information To information, and then by pixel coloring device PS according to the vertex position information of every line segment, the directional information of every line segment and side Geometrical relationship between the positional information of edge pixel is calculated between the edge pixel of every line segment and corresponding every line segment Lateral separation and fore-and-aft distance, the area of the predeterminable area determined by lateral separation and fore-and-aft distance account for the area of original image Ratio, obtain the coverage rate of edge pixel.
The embodiment by obtaining the first vertex position information and the second vertex position information of every line segment, wherein, One vertex position information is used for the position for indicating the first summit of every line segment, and the second vertex position information is used to indicate every line The position on the second summit of section, the summit of every line segment include the first summit and the second summit, and vertex position information includes first Vertex position information and the second vertex position information;Obtain the first vertex position information and the second vertex position by every line segment The directional information for every line segment that information is calculated, realize the purpose for the directional information for obtaining every line segment.
As an alternative embodiment, step S602, obtaining a plurality of line segment of destination object includes:Obtain target pair The object module of elephant;The edge contour that object module represents is processed into a plurality of line segment.
Figure 10 is a kind of flow chart of the method for a plurality of line segment of acquisition destination object according to embodiments of the present invention.Such as figure Shown in 10, this method comprises the following steps:
Step S1001, obtain the object module of destination object.
In the technical scheme that the application above-mentioned steps S1001 is provided, the object module of destination object is obtained, wherein, mesh Mark model is used for the edge contour for representing destination object.
Destination object is with the object module pre-established, the object module namely before being rendered to original image Object model, there is certain shape, for representing the edge contour of destination object.
Step S1002, the edge contour that object module represents is processed into a plurality of line segment.
In the technical scheme that the application above-mentioned steps S1002 is provided, the edge contour that object module represents is processed into A plurality of line segment.
After the object module of destination object is obtained, deconsolidation process is carried out to object module, split into two summits For one group of list of line segments, a plurality of line segment includes list of line segments.
The embodiment by obtaining the object module of destination object, wherein, object module is used for the side for representing destination object Edge profile;The edge contour that object module represents is processed into a plurality of line segment, has reached a plurality of line segment of acquisition destination object Purpose.
As an alternative embodiment, in step S1002, the edge contour that object module represents is processed into a plurality of After line segment, the vertex position information of every line segment is stored, wherein, the vertex position information of every line segment is used to indicate every line The position on the summit of section;Step S604, drawing a plurality of line segment on the original image includes:Drawing on the original image includes every Every line segment of the vertex position information of line segment.
After the edge contour for representing object module is processed into a plurality of line segment, to the vertex position information of every line segment Stored, that is, the positional information with group summit is stored on each summit on every line segment, such as, line segment 1 includes top Point P1 and summit P2, summit P1 positional information are A information, and summit P2 positional information is B location information, then is deposited on the P1 of summit Location A information and B location information are stored up, location A information and B location information, the vertex position letter of every line segment are stored on the P2 of summit Cease the position on the summit for indicating every line segment.By being drawn on the original image according to the vertex position information of every line segment Every line segment, it is achieved thereby that drawing a plurality of line segment on the original image to obtain the purpose of the first image.
As an alternative embodiment, step S606, carries out edge treated to a plurality of line segment on the first image, obtains Edge pixel to a plurality of line segment includes:Obtain the 4th pixel in a plurality of line segment on the first image;Collection and the 4th pixel 5th pixel of adjacent predetermined number;At least one pixel be present in the 5th pixel of predetermined number is not original image In the case of pixel, the edge pixel that the 4th pixel is a plurality of line segment is determined.
Figure 11 is the method that a kind of a plurality of line segment on the first image according to embodiments of the present invention carries out edge treated Flow chart.As shown in figure 11, this method comprises the following steps:
Step S1101, obtain the 4th pixel in a plurality of line segment on the first image.
In the technical scheme that the application above-mentioned steps S1101 is provided, the in a plurality of line segment on the first image is obtained Four pixels.
A plurality of line segment on to the first image carries out edge treated, when obtaining the edge pixel of a plurality of line segment, obtains the 4th pixel of a plurality of line segment on one image, the 4th pixel be it is to be determined whether be edge pixel pixel.
Step S1102, the 5th pixel of the collection predetermined number adjacent with the 4th pixel.
In the technical scheme that the application above-mentioned steps S1102 is provided, the collection predetermined number adjacent with the 4th pixel 5th pixel.
After the 4th pixel in a plurality of line segment on the first image is obtained, default adjacent with the 4th pixel is gathered The 5th several pixels, such as, 8 the 5th pixels around the 4th pixel are sampled, do not limit predetermined number herein.
Step S1103, the pixel that at least one pixel is not original image in the 5th pixel of predetermined number be present In the case of, determine the edge pixel that the 4th pixel is a plurality of line segment.
In the technical scheme that the application above-mentioned steps S1103 is provided, exist at least in the 5th pixel of predetermined number In the case that one pixel is not the pixel of original image, the edge pixel that the 4th pixel is a plurality of line segment is determined.
After the 5th pixel of the predetermined number adjacent with the 4th pixel is gathered, in the 5th pixel for judging predetermined number It is not the pixel of original image with the presence or absence of at least one pixel, if it is judged that existing at least in the 5th pixel of predetermined number One pixel is not the pixel of original image, that is, there is the pixel that any one the 5th pixel is not original image, it is determined that the Four pixels are the edge pixel of a plurality of line segment.
The embodiment is by obtaining the 4th pixel in a plurality of line segment on the first image;Collection is adjacent with the 4th pixel 5th pixel of predetermined number;The pixel that at least one pixel is not original image in the 5th pixel of predetermined number be present In the case of, the edge pixel that the 4th pixel is a plurality of line segment is determined, realizes and edge is carried out to a plurality of line segment on the first image Processing, obtains the purpose of the edge pixel of a plurality of line segment, so according to a plurality of line segment in the first image edge pixel to original The edge contour of beginning image carries out image procossing, obtains the second image of destination object, wherein, image procossing is used for edge wheel Exterior feature carries out smoothly, having reached the effect for reducing image procossing amount.
As an alternative embodiment, the second image is handled to obtain by image processing method based on tinter.
The image processing method of the embodiment can be the tinter processing method based on edge pixel, use coverage rate meter Calculate, independent of the special antialiasing function of hardware in itself, while higher precision is obtained, relative to based on whole picture Pixel processing method, the effect for reducing image procossing amount is reached.
Embodiment 2
Technical scheme is illustrated with reference to preferred embodiment.
This embodiment offers a kind of antialiasing method of the edge detection based on wire frame.Destination object is object, in advance Object data is handled, the object has object model, for representing the edge shape of object.Before rendering in advance to object mould Type is split, and is split into using two summits as one group of list of line segments, and is stored on each summit of every line segment same The positional information on group summit.
Figure 12 is a kind of schematic diagram that object model is split into a plurality of line segment according to embodiments of the present invention.Such as Figure 12 institutes Show, the object model of the embodiment is triangle ABC, carries out deconsolidation process to triangle ABC, obtains line segment Line1, line segment Line2, line segment line3.Every line segment includes two summits, the line segment Line1 as shown in the bottom right figure in Figure 12, the line segment Line1 includes summit P1 and summit P2, wherein, summit P1 positional information is A, and summit P2 positional information is P2.Summit P1 Line segment Line1 vertex position information A and C are stored with summit P2, that is, it is expressed as P1 (A, C), P2 (A, C).
Figure 13 be a kind of drafting object according to embodiments of the present invention before picture and draw object after picture Schematic diagram.As shown in figure 13, after object model is split into a plurality of line segment, picture is cached.When caching picture, It is normal to draw object, the original image of object is obtained, the picture before drafting and the image cache after drafting object are got off. Wherein, the left figure in Figure 13 is draws the Target Photo O before object, and right figure is draws the picture M after object, by target figure Piece O and picture M are cached.
Figure 14 is a kind of schematic diagram of the pixel of the edge extremity of segment of object according to embodiments of the present invention.Such as Figure 14 institutes Show, after picture M is obtained, the edge line segment of object is drawn on picture M, determines the pixel of the edge line segment, can be in picture Judge whether the pixel on edge line segment is edge pixel using filter in plain tinter PS.On the picture M of the embodiment The edge pixel of edge line segment is the region shown in Figure 14 represented by dash area.
Figure 15 is the schematic diagram of a kind of pixel according to embodiments of the present invention and surrounding pixel.As shown in figure 15, in picture M In, by pixel filter determine in original image it is to be determined whether be edge pixel pixel to be determined it is (as shown in figure 15 Middle black is circular), 8 pixels around pixel to be determined are sampled, if any one pixel is not that object is painted The pixel of system, then pixel to be determined is edge pixel, in order to removes the black line segment of Figure 16 center sections.Wherein, scheme 16 be a kind of schematic diagram of object pixel according to embodiments of the present invention, and the black line segment of center section is not edge pixel.
Figure 17 is a kind of edge pixel according to embodiments of the present invention showing by the area coverage ratio that original image includes It is intended to.As shown in figure 17, during antialiasing processing is carried out to the original image of object, vertex shader VS can be passed through The directional information of every line segment is calculated according to the two of every line segment vertex position informations, by the directional information of every line segment and Vertex position information is transferred to pixel coloring device PS.Pixel coloring device PS is in the edge pixel of every line segment of processing, according to every The directional information of the positional information of the edge pixel of bar line segment, the vertex position information of every line segment and every line segment calculates edge The lateral separation x and fore-and-aft distance y of pixel and line segment, and then edge pixel is obtained by thing according to lateral separation x and fore-and-aft distance y The area coverage ratio that body includes, that is, obtaining the coverage rate of edge pixel.
Figure 18 be one kind according to embodiments of the present invention according to coverage rate mixed edge pixel and edge pixel in target figure The schematic diagram of pixel on piece.Left figure as shown in figure 18, wherein, orange dash area is used to represent edge line segment pixels;Such as Middle graph shown in Figure 18, wherein, Intermediate grey part is in target figure according to coverage rate mixed edge pixel and edge pixel The object pixel obtained by pixel on piece O;Right figure as shown in figure 18, wherein, by the edge contour of picture M original image Corresponding pixel value is arranged to pixel value corresponding to above-mentioned object pixel, and black portions are used to represent to remove edge in original image Pixel outside pixel corresponding to profile, and then obtain the final image after original image processing.
The image processing method of the embodiment be based on tinter handle edge pixel antialiasing method, due to based on Color device handles edge pixel, using the pixel of coverage rate mixed edge pixel and edge pixel on Target Photo, independent of hard The special antialiasing function of part in itself, for the pixel processing method based on whole picture, image procossing amount want it is low very It is more, the crenellated phenomena of object edge is optimized, obtains more exquisite image, and then improve image processing efficiency.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 3
According to embodiments of the present invention, a kind of image processing apparatus for being used to implement above-mentioned image processing method is additionally provided. Figure 19 is a kind of schematic diagram of image processing apparatus according to embodiments of the present invention.As shown in figure 19, the device can include:The One acquiring unit 10, second acquisition unit 20, first processing units 30 and second processing unit 40.
First acquisition unit 10, for obtaining a plurality of line segment of destination object, wherein, a plurality of line segment is used to represent target pair The edge contour of elephant.
Second acquisition unit 20, for obtaining the original image of destination object, and a plurality of line segment is drawn on the original image, Obtain the first image.
First processing units 30, for carrying out edge treated to a plurality of line segment on the first image, obtain a plurality of line segment Edge pixel.
Second processing unit 40, the edge for the edge pixel according to a plurality of line segment in the first image to original image Profile carries out image procossing, obtains the second image of destination object, wherein, image procossing is used to carry out smoothly edge contour.
Alternatively, second processing unit 40 is used for the edge pixel according to a plurality of line segment in the first image to original image Edge contour carry out antialiasing processing, obtain the second image of destination object.And antialiasing processing just refers to original image Edge contour carry out it is smooth.
Alternatively, second acquisition unit 20 includes:First drafting module, for drawing destination object on Target Photo, Obtain original image;Second processing unit 40 includes:First acquisition module, the area of original image is accounted for for obtaining edge pixel Ratio, obtain the coverage rate of edge pixel;Laminating module, for according to coverage rate to edge pixel and edge pixel in target figure First pixel corresponding on piece is overlapped, and obtains object pixel;Second drafting module, in Target Photo, according to mesh Mark pixel repaints the edge contour of original image, obtains the second image.
Alternatively, the second drafting module includes:Submodule is set, in original image, by corresponding to edge contour The pixel value of second pixel is arranged to the pixel value of object pixel;Retain submodule, the second picture is removed in original image for retaining The pixel value of the 3rd pixel outside element, obtains the second image.
Alternatively, first acquisition unit 10 includes:Second acquisition module, for obtaining the object module of destination object, its In, object module is used for the edge contour for representing destination object;Processing module, at the edge contour that represents object module Manage into a plurality of line segment.
Alternatively, the device also includes:Memory cell, it is a plurality of for being processed into the edge contour for representing object module After line segment, the vertex position information of every line segment is stored, wherein, the vertex position information of every line segment is used to indicate every line The position on the summit of section;Second acquisition unit 20 includes:3rd drafting module, for drawing on the original image including every line Every line segment of the vertex position information of section.
It should be noted that the first acquisition unit 10 in the embodiment can be used for performing in the embodiment of the present application 1 Step S602, the second acquisition unit 20 in the embodiment can be used for performing the step S604 in the embodiment of the present application 1, the reality Apply the first processing units 30 in example to can be used for performing the step S606 in the embodiment of the present application 1, second in the embodiment Processing unit 40 can be used for performing the step S608 in the embodiment of the present application 1.
The embodiment obtains a plurality of line segment of destination object by first acquisition unit 10, wherein, a plurality of line segment is used for table Show the edge contour of destination object, the original image of destination object is obtained by second acquisition unit 20, and on the original image A plurality of line segment is drawn, obtains the first image, edge is carried out to a plurality of line segment on the first image by first processing units 30 Reason, obtains the edge pixel of a plurality of line segment, the edge picture by second processing unit 40 according to a plurality of line segment in the first image Element carries out image procossing to the edge contour of original image, obtains the second image of destination object, wherein, image procossing is used for pair Edge contour carries out smoothly, having reached the purpose for handling image, because this method is the processes pixel based on edge, no Dependent on hardware in itself, it is and much lower with respect to the treating capacity of the pixel processing method based on whole picture, it is achieved thereby that reaching To the technique effect for reducing image procossing amount, and then the technical problem that the image procossing amount that solves correlation technique is big.
Herein it should be noted that example and application scenarios phase that said units and module are realized with corresponding step Together, but it is not limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module can transport as a part of of device Go in hardware environment as shown in Figure 5, can be realized, can also be realized by hardware by software, wherein, hardware environment bag Include network environment.
Embodiment 4
According to embodiments of the present invention, a kind of server or terminal for being used to implement above-mentioned image processing method is additionally provided.
Figure 20 is a kind of structured flowchart of terminal according to embodiments of the present invention.As shown in figure 20, the terminal can include: One or more (one is only shown in figure) processor 201, memory 203 and transmitting devices 205 are (in such as above-mentioned embodiment Dispensing device), as shown in figure 20, the terminal can also include input-output equipment 207.
Wherein, memory 203 can be used for storage software program and module, such as the image processing method in the embodiment of the present invention Programmed instruction/module corresponding to method and device, processor 201 by operation be stored in software program in memory 203 and Module, so as to perform various function application and data processing, that is, realize above-mentioned image processing method.Memory 203 can wrap Include high speed random access memory, nonvolatile memory can also be included, as one or more magnetic storage device, flash memory or Other non-volatile solid state memories of person.In some instances, memory 203 can further comprise remote relative to processor 201 The memory that journey is set, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes but unlimited In internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is used to data are received or sent via network, can be also used for processor with Data transfer between memory.Above-mentioned network instantiation may include cable network and wireless network.In an example, Transmitting device 205 includes a network adapter (Network Interface Controller, NIC), and it can pass through netting twine It is connected with other network equipments with router so as to be communicated with internet or LAN.In an example, transmission dress It is radio frequency (Radio Frequency, RF) module to put 205, and it is used to wirelessly be communicated with internet.
Wherein, specifically, memory 203 is used to store application program.
Processor 201 can call the application program that memory 203 stores by transmitting device 205, to perform following steps Suddenly:
The a plurality of line segment of destination object is obtained, wherein, a plurality of line segment is used for the edge contour for representing destination object;
The original image of destination object is obtained, and draws a plurality of line segment on the original image, obtains the first image;
Edge treated is carried out to a plurality of line segment on the first image, obtains the edge pixel of a plurality of line segment;
Image procossing is carried out to the edge contour of original image according to the edge pixel of a plurality of line segment in the first image, obtained To the second image of destination object, wherein, image procossing is used to carry out smoothly edge contour.
Processor 201 is additionally operable to perform following step:According to the edge pixel of a plurality of line segment in the first image to original The edge contour of image carries out antialiasing processing, obtains the second image of destination object.And antialiasing processing just refers to original The edge contour of image carries out smooth.
Processor 201 is additionally operable to perform following step:Destination object is drawn on Target Photo, obtains original image;Obtain Take edge pixel to account for the area ratio of original image, obtain the coverage rate of edge pixel;According to coverage rate to edge pixel and side Edge pixel first pixel corresponding on Target Photo is overlapped, and obtains object pixel;On Target Photo, according to target picture Element repaints the edge contour of original image, obtains the second image.
Processor 201 is additionally operable to perform following step:In original image, by the picture of the second pixel corresponding to edge contour Plain value is arranged to the pixel value of object pixel;Retain the pixel value of the 3rd pixel in original image in addition to the second pixel, obtain To the second image.
Processor 201 is additionally operable to perform following step:Determine first weight and first of the edge pixel in object pixel Second weight of the pixel in object pixel, wherein, the first weight and the second weight are allocated by coverage rate;According to the first power Weight and the second weight are overlapped to edge pixel and the first pixel, obtain object pixel, wherein, including the picture by object pixel Plain value is arranged to:The product of the pixel value of edge pixel and the first weight, the pixel value of the first pixel and the second weight product and.
Processor 201 is additionally operable to perform following step:Obtain the directional information of every line segment and the position letter of edge pixel Breath;According to several between the positional information of the vertex position information of every line segment, the directional information of every line segment and edge pixel What lateral separation and fore-and-aft distance between Relation acquisition edge pixel and every line segment;Obtain by lateral separation and fore-and-aft distance The area of the predeterminable area of determination accounts for the ratio of the area of original image, obtains the coverage rate of edge pixel.
Processor 201 is additionally operable to perform following step:Obtain the first vertex position information and the second summit of every line segment Positional information, wherein, the first vertex position information is used for the position for indicating the first summit of every line segment, the second vertex position letter The position on the second summit for indicating every line segment is ceased, the summit of every line segment includes the first summit and the second summit, summit Positional information includes the first vertex position information and the second vertex position information;Obtain and believed by the first vertex position of every line segment The directional information for every line segment that breath and the second vertex position information are calculated.
Processor 201 is additionally operable to perform following step:The object module of destination object is obtained, wherein, object module is used for Represent the edge contour of destination object;The edge contour that object module represents is processed into a plurality of line segment.
Processor 201 is additionally operable to perform following step:A plurality of line segment is processed into the edge contour for representing object module Afterwards, the vertex position information of every line segment is stored, wherein, the vertex position information of every line segment is used to indicating every line segment The position on summit;Every line segment of the vertex position information for including every line segment is drawn on the original image.
Processor 201 is additionally operable to perform following step:Obtain the 4th pixel in a plurality of line segment on the first image;Collection 5th pixel of the predetermined number adjacent with the 4th pixel;At least one pixel be present in the 5th pixel of predetermined number is not In the case of the pixel of original image, the edge pixel that the 4th pixel is a plurality of line segment is determined.
Using the embodiment of the present invention, there is provided a kind of scheme of image processing method.By obtaining a plurality of of destination object Line segment, wherein, a plurality of line segment is used for the edge contour for representing destination object;The original image of destination object is obtained, and original A plurality of line segment is drawn on image, obtains the first image;Edge treated is carried out to a plurality of line segment on the first image, obtains a plurality of line The edge pixel of section;The edge contour of original image is carried out at image according to the edge pixel of a plurality of line segment in the first image Reason, obtains the second image of destination object, wherein, image procossing is used to edge contour is carried out smoothly, to have reached and entered image The purpose of row processing, because this method is the processes pixel based on edge, independent of hardware in itself, and it is relative based on whole figure The treating capacity of the pixel processing method of piece is much lower, it is achieved thereby that reach the technique effect for reducing image procossing amount, and then Solves the big technical problem of the image procossing amount of correlation technique.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment It will not be repeated here.
It will appreciated by the skilled person that the structure shown in Figure 20 is only to illustrate, terminal can be smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile internet device (Mobile Internet Devices, MID), the terminal device such as PAD.Figure 20 it does not cause to limit to the structure of above-mentioned electronic installation.For example, terminal is also It may include more either less components (such as network interface, display device etc.) than shown in Figure 20 or have and Figure 20 institutes Show different configurations.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To be completed by program come command terminal device-dependent hardware, the program can be stored in a computer-readable recording medium In, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 5
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can For performing the program code of image processing method.
Alternatively, in the present embodiment, above-mentioned storage medium can be located at multiple in the network shown in above-described embodiment On at least one network equipment in the network equipment.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
The a plurality of line segment of destination object is obtained, wherein, a plurality of line segment is used for the edge contour for representing destination object;
The original image of destination object is obtained, and draws a plurality of line segment on the original image, obtains the first image;
Edge treated is carried out to a plurality of line segment on the first image, obtains the edge pixel of a plurality of line segment;
Image procossing is carried out to the edge contour of original image according to the edge pixel of a plurality of line segment in the first image, obtained To the second image of destination object, wherein, image procossing is used to carry out smoothly edge contour.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:According to the first image In the edge pixel of a plurality of line segment antialiasing processing is carried out to the edge contour of original image, obtain the second figure of destination object Picture.And antialiasing processing just refers to carry out smoothly the edge contour of original image.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:On Target Photo Destination object is drawn, obtains original image;The area ratio that edge pixel accounts for original image is obtained, obtains the covering of edge pixel Rate;According to coverage rate, to edge pixel and edge pixel, corresponding first pixel on Target Photo is overlapped, and obtains target Pixel;On Target Photo, the edge contour of original image is repainted according to object pixel, obtains the second image.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:In original image, The pixel value of second pixel corresponding to edge contour is arranged to the pixel value of object pixel;Retain in original image and remove the second picture The pixel value of the 3rd pixel outside element, obtains the second image.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Determine edge pixel The second weight of the first weight and the first pixel in object pixel in object pixel, wherein, the first weight and the second power Weight is allocated by coverage rate;Edge pixel and the first pixel are overlapped according to the first weight and the second weight, obtain mesh Pixel is marked, wherein, including the pixel value of object pixel is arranged to:The product of the pixel value of edge pixel and the first weight, first The pixel value of pixel and the second weight product and.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtain every line segment Directional information and edge pixel positional information;According to the vertex position information of every line segment, the directional information of every line segment Geometrical relationship between the positional information of edge pixel obtains lateral separation and the longitudinal direction between edge pixel and every line segment Distance;The area for the predeterminable area that acquisition is determined by lateral separation and fore-and-aft distance accounts for the ratio of the area of original image, obtains The coverage rate of edge pixel.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtain every line segment The first vertex position information and the second vertex position information, wherein, the first vertex position information is used to indicate every line segment The position on the first summit, the second vertex position information are used for the position for indicating the second summit of every line segment, the top of every line segment Point includes the first summit and the second summit, and vertex position information includes the first vertex position information and the second vertex position information; Believe in the direction for obtaining every line segment being calculated by the first vertex position information and the second vertex position information of every line segment Breath.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtain destination object Object module, wherein, object module is used to represent the edge contour of destination object;At the edge contour that object module is represented Manage into a plurality of line segment.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By object module The edge contour of expression is processed into after a plurality of line segment, stores the vertex position information of every line segment, wherein, the top of every line segment Dot position information is used for the position for indicating the summit of every line segment;Drawing on the original image includes the vertex position of every line segment Every line segment of information.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtain the first image On a plurality of line segment in the 4th pixel;5th pixel of the collection predetermined number adjacent with the 4th pixel;In predetermined number In the case of the pixel that at least one pixel is not original image in 5th pixel being present, determine the 4th pixel for a plurality of line segment Edge pixel.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment It will not be repeated here.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are causing one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (15)

  1. A kind of 1. image processing method, it is characterised in that including:
    The a plurality of line segment of destination object is obtained, wherein, a plurality of line segment is used for the edge contour for representing the destination object;
    The original image of the destination object is obtained, and a plurality of line segment is drawn on the original image, obtains the first figure Picture;
    Edge treated is carried out to a plurality of line segment in described first image, obtains the edge pixel of a plurality of line segment;
    Edge pixel according to a plurality of line segment in described first image carries out figure to the edge contour of the original image As processing, the second image of the destination object is obtained, wherein, described image is handled for being put down to the edge contour It is sliding.
  2. 2. according to the method for claim 1, it is characterised in that
    Obtaining the original image of the destination object includes:The destination object is drawn on Target Photo, is obtained described original Image;
    Edge pixel according to a plurality of line segment in described first image carries out figure to the edge contour of the original image As processing, obtaining second image of the destination object includes:According to a plurality of line segment in described first image Edge pixel carries out antialiasing processing to the edge contour of the original image, obtains second figure of the destination object Picture.
  3. 3. according to the method for claim 2, it is characterised in that according to the side of a plurality of line segment in described first image Edge pixel carries out antialiasing processing to the edge contour of the original image, obtains the second image bag of the destination object Include:
    The area ratio that the edge pixel accounts for the original image is obtained, obtains the coverage rate of the edge pixel;
    According to the coverage rate to the edge pixel and the edge pixel on the Target Photo corresponding to the first pixel It is overlapped, obtains object pixel;
    On the Target Photo, the edge contour of the original image is repainted according to the object pixel, is obtained described Second image.
  4. 4. according to the method for claim 3, it is characterised in that repaint the original image according to the object pixel Edge contour, obtaining second image includes:
    In the original image, the pixel value of the second pixel corresponding to the edge contour is arranged to the object pixel Pixel value;
    Retain the pixel value of the 3rd pixel in the original image in addition to second pixel, obtain second image.
  5. 5. according to the method for claim 3, it is characterised in that according to the coverage rate to the edge pixel and the side Edge pixel first pixel corresponding on the Target Photo is overlapped, and obtaining the object pixel includes:
    Determine first weight and first pixel of the edge pixel in the object pixel in the object pixel The second weight, wherein, first weight and second weight are allocated by the coverage rate;
    The edge pixel and first pixel are overlapped according to first weight and second weight, obtain institute Object pixel is stated, wherein, including the pixel value of the object pixel is arranged to:The pixel value of the edge pixel and described the The product of one weight, the pixel value of first pixel and the product of second weight and.
  6. 6. according to the method for claim 3, it is characterised in that obtain the area that the edge pixel accounts for the original image Ratio, obtaining the coverage rate of the edge pixel includes:
    Obtain the directional information of every line segment and the positional information of the edge pixel;
    According to the position of the vertex position information of every line segment, the directional information of every line segment and the edge pixel Geometrical relationship between information obtains the lateral separation and fore-and-aft distance between the edge pixel and every line segment;
    The area for obtaining the predeterminable area determined by the lateral separation and the fore-and-aft distance accounts for the area of the original image Ratio, obtain the coverage rate of the edge pixel.
  7. 7. according to the method for claim 6, it is characterised in that obtaining the directional information of every line segment includes:
    The first vertex position information and the second vertex position information of every line segment are obtained, wherein, first summit position Confidence ceases the position on the first summit for indicating every line segment, and second vertex position information is described every for indicating The position on the second summit of bar line segment, the summit of every line segment includes first summit and second summit, described Vertex position information includes first vertex position information and second vertex position information;
    Acquisition is calculated described every by the first vertex position information and the second vertex position information of every line segment The directional information of line segment.
  8. 8. according to the method for claim 1, it is characterised in that obtaining a plurality of line segment of the destination object includes:
    The object module of the destination object is obtained, wherein, the object module is used for the edge wheel for representing the destination object It is wide;
    The edge contour that the object module is represented is processed into a plurality of line segment.
  9. 9. according to the method for claim 8, it is characterised in that
    After the edge contour for representing the object module is processed into a plurality of line segment, methods described also includes: The vertex position information of every line segment is stored, wherein, the vertex position information of every line segment is used to indicate the every line The position on the summit of section;
    The a plurality of line segment is drawn on the original image to be included:Being drawn on the original image includes every line segment Vertex position information every line segment.
  10. 10. method as claimed in any of claims 1 to 9, it is characterised in that described in described first image A plurality of line segment carries out edge treated, and obtaining the edge pixel of a plurality of line segment includes:
    Obtain the 4th pixel in a plurality of line segment in described first image;
    5th pixel of the collection predetermined number adjacent with the 4th pixel;
    In the case of the pixel that at least one pixel is not the original image being present in the 5th pixel of the predetermined number, Determine the edge pixel that the 4th pixel is a plurality of line segment.
  11. 11. method as claimed in any of claims 1 to 9, it is characterised in that second image is by described image Processing method handles to obtain based on tinter.
  12. A kind of 12. image processing apparatus, it is characterised in that including:
    First acquisition unit, for obtaining a plurality of line segment of destination object, wherein, a plurality of line segment is used to represent the target The edge contour of object;
    Second acquisition unit, for obtaining the original image of the destination object, and draw on the original image described more Bar line segment, obtain the first image;
    First processing units, for carrying out edge treated to a plurality of line segment in described first image, obtain described a plurality of The edge pixel of line segment;
    Second processing unit, for the edge pixel according to a plurality of line segment in described first image to the original image Edge contour carry out image procossing, obtain the second image of the destination object, wherein, described image is handled for described Edge contour carries out smooth.
  13. 13. device according to claim 12, it is characterised in that
    Second acquisition unit includes:First drafting module, for drawing the destination object on Target Photo, obtain the original Beginning image;
    Second processing unit includes:First acquisition module, the area ratio of the original image is accounted for for obtaining the edge pixel Example, obtains the coverage rate of the edge pixel;Laminating module, for according to the coverage rate to the edge pixel and the side Edge pixel first pixel corresponding on the Target Photo is overlapped, and obtains object pixel;Second drafting module, for On the Target Photo, the edge contour of the original image is repainted according to the object pixel, obtains second figure Picture.
  14. 14. device according to claim 13, it is characterised in that the second drafting module includes:
    Submodule is set, in the original image, the pixel value of the second pixel corresponding to the edge contour to be set For the pixel value of the object pixel;
    Retain submodule, for retaining the pixel value of the 3rd pixel in the original image in addition to second pixel, obtain To second image.
  15. 15. device according to claim 12, it is characterised in that first acquisition unit includes:
    Second acquisition module, for obtaining the object module of the destination object, wherein, the object module is used to represent described The edge contour of destination object;
    Processing module, the edge contour for the object module to be represented are processed into a plurality of line segment.
CN201710644878.2A 2017-07-31 2017-07-31 Image processing method and device Active CN107481200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710644878.2A CN107481200B (en) 2017-07-31 2017-07-31 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710644878.2A CN107481200B (en) 2017-07-31 2017-07-31 Image processing method and device

Publications (2)

Publication Number Publication Date
CN107481200A true CN107481200A (en) 2017-12-15
CN107481200B CN107481200B (en) 2018-09-18

Family

ID=60598094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710644878.2A Active CN107481200B (en) 2017-07-31 2017-07-31 Image processing method and device

Country Status (1)

Country Link
CN (1) CN107481200B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110148147A (en) * 2018-11-07 2019-08-20 腾讯大地通途(北京)科技有限公司 Image detecting method, device, storage medium and electronic device
CN110390644A (en) * 2018-04-12 2019-10-29 辉达公司 The bigger sense of reality is added by the image that smooth jagged edges are generated to computer
CN113837955A (en) * 2021-08-17 2021-12-24 每平每屋(上海)科技有限公司 Image anti-aliasing processing method and electronic equipment
WO2022047701A1 (en) * 2020-09-03 2022-03-10 深圳市大疆创新科技有限公司 Image processing method and apparatus
CN116594582A (en) * 2022-06-22 2023-08-15 格兰菲智能科技(北京)有限公司 Image display method, apparatus, computer device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601562A (en) * 2003-09-25 2005-03-30 索尼株式会社 Image processing apparatus and method of same
CN101038675A (en) * 2006-03-16 2007-09-19 腾讯科技(深圳)有限公司 Method and apparatus for implementing wash painting style
CN101458825A (en) * 2009-01-04 2009-06-17 腾讯科技(深圳)有限公司 Collision detection method implementing 3D animation model in display card, display card and system therefor
CN101620725A (en) * 2008-07-03 2010-01-06 辉达公司 Hybrid multisample/supersample antialiasing
CN102289786A (en) * 2011-09-01 2011-12-21 青岛海信信芯科技有限公司 Edge anti-aliasing method and device for image scaling
US20130088505A1 (en) * 2011-10-11 2013-04-11 Microsoft Corporation Caching coverage values for rendering text using anti-aliasing techniques
CN104658030A (en) * 2015-02-05 2015-05-27 福建天晴数码有限公司 Secondary image mixing method and apparatus
CN104715454A (en) * 2013-12-14 2015-06-17 中国航空工业集团公司第六三一研究所 Anti-aliasing graph overlapping algorithm
EP3009982A1 (en) * 2014-10-17 2016-04-20 Huawei Technologies Co., Ltd. Image anti-aliasing method and apparatus
CN106600544A (en) * 2016-11-10 2017-04-26 北京暴风魔镜科技有限公司 Anti-aliasing method and anti-aliasing system based on texture mapping

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601562A (en) * 2003-09-25 2005-03-30 索尼株式会社 Image processing apparatus and method of same
CN101038675A (en) * 2006-03-16 2007-09-19 腾讯科技(深圳)有限公司 Method and apparatus for implementing wash painting style
CN101620725A (en) * 2008-07-03 2010-01-06 辉达公司 Hybrid multisample/supersample antialiasing
CN101458825A (en) * 2009-01-04 2009-06-17 腾讯科技(深圳)有限公司 Collision detection method implementing 3D animation model in display card, display card and system therefor
CN102289786A (en) * 2011-09-01 2011-12-21 青岛海信信芯科技有限公司 Edge anti-aliasing method and device for image scaling
US20130088505A1 (en) * 2011-10-11 2013-04-11 Microsoft Corporation Caching coverage values for rendering text using anti-aliasing techniques
CN104715454A (en) * 2013-12-14 2015-06-17 中国航空工业集团公司第六三一研究所 Anti-aliasing graph overlapping algorithm
EP3009982A1 (en) * 2014-10-17 2016-04-20 Huawei Technologies Co., Ltd. Image anti-aliasing method and apparatus
CN104658030A (en) * 2015-02-05 2015-05-27 福建天晴数码有限公司 Secondary image mixing method and apparatus
CN106600544A (en) * 2016-11-10 2017-04-26 北京暴风魔镜科技有限公司 Anti-aliasing method and anti-aliasing system based on texture mapping

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
JORGE JIMENEZ 等: "Filtering Approaches for Real-Time Anti-Aliasing", 《ACM SIGGRAPH》 *
JORGE JIMENEZ 等: "SMAA: Enhanced Subpixel Morphological Antialiasing", 《EUROGRAPHICS 2012》 *
吴玉培 等: "基于GPU的实时抗锯齿算法", 《现代计算机》 *
王斌 等: "基于SRAA延迟渲染抗锯齿", 《四川大学学报(自然科学版)》 *
王栋 等: "基于变混合系数的自适应抗锯齿视频叠加算法", 《电子测量技术》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110390644A (en) * 2018-04-12 2019-10-29 辉达公司 The bigger sense of reality is added by the image that smooth jagged edges are generated to computer
CN110148147A (en) * 2018-11-07 2019-08-20 腾讯大地通途(北京)科技有限公司 Image detecting method, device, storage medium and electronic device
CN110148147B (en) * 2018-11-07 2024-02-09 腾讯大地通途(北京)科技有限公司 Image detection method, image detection device, storage medium and electronic device
WO2022047701A1 (en) * 2020-09-03 2022-03-10 深圳市大疆创新科技有限公司 Image processing method and apparatus
CN113837955A (en) * 2021-08-17 2021-12-24 每平每屋(上海)科技有限公司 Image anti-aliasing processing method and electronic equipment
CN116594582A (en) * 2022-06-22 2023-08-15 格兰菲智能科技(北京)有限公司 Image display method, apparatus, computer device and storage medium
CN116594582B (en) * 2022-06-22 2024-03-22 格兰菲智能科技(北京)有限公司 Image display method, apparatus, computer device and storage medium

Also Published As

Publication number Publication date
CN107481200B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN107481200B (en) Image processing method and device
CN107610131A (en) A kind of image cropping method and image cropping device
CN104200506B (en) Three-dimension GIS massive vector data rendering intent and device
CN103503032B (en) Veining in graphic hardware
CN103164839B (en) A kind of drawing practice, device and terminal
CN107358649B (en) Processing method and device of terrain file
CN106294474A (en) The processing method of video data, Apparatus and system
CN110211218B (en) Picture rendering method and device, storage medium and electronic device
CN111080780B (en) Edge processing method and device for virtual character model
CN105549817B (en) The generation method of font packet, the methods of exhibiting of device and figure, device
CN108765520B (en) Text information rendering method and device, storage medium and electronic device
CN101548297A (en) Efficient scissoring for graphics application
CN107481190A (en) A kind of image processing method and device
US10489946B1 (en) Generalized primitives for smooth coloring of vector graphics artwork in constant time
CN106683100A (en) Image segmentation and defogging method and terminal
CN111161195B (en) Feature map processing method and device, storage medium and terminal
EP3333805A1 (en) Removing or identifying overlapping fragments after z-culling
CN107123077B (en) The rendering method and device of object
CN108055477A (en) A kind of method and apparatus for realizing smear special efficacy
CN106326251A (en) A full-scale adaption method and device for to-be-displayed objects
CN103021008A (en) Bone animation processing method based on programmable graphics processing unit (GPU)
CN108335260A (en) A kind of scene of game image processing method, device, storage medium and electronic device
CN109544658B (en) Map rendering method and device, storage medium and electronic device
US9129441B2 (en) Lookup tables for text rendering
CN108364324A (en) Image processing method, device and electric terminal

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
GR01 Patent grant
GR01 Patent grant