CN105447819A - Picture processing method and apparatus - Google Patents
Picture processing method and apparatus Download PDFInfo
- Publication number
- CN105447819A CN105447819A CN201510884587.1A CN201510884587A CN105447819A CN 105447819 A CN105447819 A CN 105447819A CN 201510884587 A CN201510884587 A CN 201510884587A CN 105447819 A CN105447819 A CN 105447819A
- Authority
- CN
- China
- Prior art keywords
- edge direction
- original image
- vegetarian refreshments
- image vegetarian
- pending
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000004364 calculation method Methods 0.000 claims abstract description 128
- 238000000034 method Methods 0.000 claims abstract description 79
- 238000012545 processing Methods 0.000 claims abstract description 27
- 230000008569 process Effects 0.000 description 47
- 230000003321 amplification Effects 0.000 description 18
- 230000006870 function Effects 0.000 description 18
- 238000003199 nucleic acid amplification method Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 15
- 230000000694 effects Effects 0.000 description 12
- 239000003086 colorant Substances 0.000 description 6
- 230000006854 communication Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 108010068977 Golgi membrane glycoproteins Proteins 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 239000011324 bead Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a picture processing method and apparatus, and belongs to the technical field of image processing. The method comprises: obtaining position coordinates of any to-be-processed interpolation pixel point on an amplified image; according to the position coordinates, determining a position relationship between the to-be-processed interpolation pixel point and a specified original pixel point; and according to the position relationship between the to-be-processed interpolation pixel point and the specified original pixel point, and calculating an actual pixel value of the to-be-processed interpolation pixel point in a calculation mode corresponding to the position relationship, wherein different position relationships correspond to different calculation modes. According to the picture processing method and apparatus, the directivity between the interpolation pixel point and the original pixel point is comprehensively considered when the actual pixel value of each interpolation pixel point on the amplified image is calculated, and the actual pixel value of the interpolation pixel point is calculated in different calculation modes according to the position relationship between each interpolation pixel point and the original pixel point, so that the image definition is remarkably improved and the processed image quality is relatively high.
Description
Technical field
The present invention relates to technical field of image processing, particularly a kind of image processing method and device.
Background technology
In video calling, made a start end before video data is sent to receiving end, usually can to coding video data.Be limited to the network bandwidth, transmitting terminal is when carrying out Video coding, and code distinguishability is usually lower, and the resolution of receiving end display screen generally can higher than code distinguishability, at this moment just face a problem, receiving end needs the video data of low resolution to need to be presented on high-resolution display screen.In order to address this problem, receiving end can carry out amplification process to image.At present, mainly through the pixel adopting interpolation algorithm to increase image, the amplification to image is realized.
But, in image amplification, because the gray-scale value between original image vegetarian refreshments and interpolating pixel point is discontinuous, there is jumping phenomenon, cause amplify after image outline and texture comparatively fuzzy, edge produce sawtooth.In order to improve the picture quality after amplification, prior art generally adopts the actual pixel value of bilinear interpolation algorithm determination interpolating pixel point.During concrete enforcement, can according to the distance of the spacing of original image vegetarian refreshments and interpolating pixel point, for original image vegetarian refreshments arranges different weighted values, and by computing weighted to original image vegetarian refreshments, determine the actual pixel value of interpolating pixel point, to remove the sawtooth in enlarged image.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Owing to all adopting identical processing mode to process to each interpolating pixel point, cause the image definition after processing lower, the picture quality after process is still poor.
Summary of the invention
In order to solve the problem of correlation technique, embodiments provide a kind of image processing method and device.Described technical scheme is as follows:
On the one hand, provide a kind of image processing method, described method comprises:
Obtain the position coordinates of arbitrary pending interpolating pixel point on enlarged image, described pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
According to described position coordinates, determine that described pending interpolating pixel selects the position relationship between described appointment original image vegetarian refreshments;
Select the position relationship between described appointment original image vegetarian refreshments according to described pending interpolating pixel, adopt the account form corresponding to described position relationship, calculate the actual pixel value of described pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
On the other hand, provide a kind of image processing apparatus, described device comprises:
Acquisition module, for obtaining the position coordinates of arbitrary pending interpolating pixel point on enlarged image, described pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
Determination module, for according to described position coordinates, determines that described pending interpolating pixel selects the position relationship between described appointment original image vegetarian refreshments;
Computing module, for selecting the position relationship between described appointment original image vegetarian refreshments according to described pending interpolating pixel, adopts the account form corresponding to described position relationship, calculates the actual pixel value of described pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
When calculating the actual pixel value of each interpolating pixel point on enlarged image, consider interpolating pixel and select directivity between original image vegetarian refreshments, the position relationship between original image vegetarian refreshments is selected according to each interpolating pixel, different account forms is adopted to calculate, significantly improve the sharpness of image, make the picture quality after processing better.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the block flow diagram that chat system a kind of Network Based that one embodiment of the invention provides is amplified image;
Fig. 2 be one embodiment of the invention provide by the schematic diagram of original image and 2 times of enlarged images;
Fig. 3 is a kind of image processing method process flow diagram that another embodiment of the present invention provides;
Fig. 4 is a kind of image processing method process flow diagram that another embodiment of the present invention provides;
The schematic diagram of the interpolating pixel point of the Four types that Fig. 5 another embodiment of the present invention provides;
Fig. 6 is the schematic diagram of the multiple original image vegetarian refreshments selected by employing second account form that an alternative embodiment of the invention provides;
Fig. 7 is the edge direction accessed by employing second account form that an alternative embodiment of the invention provides;
Fig. 8 is the schematic diagram of the multiple pixels selected by employing the 3rd account form that an alternative embodiment of the invention provides;
Fig. 9 is the schematic diagram of the multiple pixels selected by employing the 3rd account form that an alternative embodiment of the invention provides;
Figure 10 is the schematic diagram of the multiple original image vegetarian refreshments selected by employing the 3rd account form that an alternative embodiment of the invention provides;
Figure 11 is the edge direction accessed by employing the 3rd account form that an alternative embodiment of the invention provides;
Figure 12 is that the amplification in Internet video chat that an alternative embodiment of the invention provides strengthens algorithm frame process flow diagram;
Figure 13 is that the amplification in Internet video chat that an alternative embodiment of the invention provides strengthens algorithm frame process flow diagram;
Figure 14 is the actual effect figure that the employing prior art that provides of an alternative embodiment of the invention and the present invention amplify twice;
Figure 15 is the actual effect figure that employing the present invention that an alternative embodiment of the invention provides amplifies twice;
Figure 16 is the actual effect figure of the employing PhotoZoom amplification twice that an alternative embodiment of the invention provides;
Figure 17 is that the GIMP that an alternative embodiment of the invention provides uses bi-cubic interpolation algorithm to amplify the actual effect figure of twice;
Figure 18 is the original image that an alternative embodiment of the invention provides;
Figure 19 is the actual effect figure that original image is amplified twice by employing the present invention that an alternative embodiment of the invention provides;
Figure 20 is the actual effect figure that original image is amplified twice by employing PhotoZoom that an alternative embodiment of the invention provides;
Figure 21 is that the GIMP that an alternative embodiment of the invention provides uses bi-cubic interpolation algorithm original image to be amplified the actual effect figure of twice;
Figure 22 is the structural representation of a kind of image processing apparatus that another embodiment of the present invention provides;
Figure 23 is the structural representation of a kind of image processing terminal that another embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is the block flow diagram that a kind of video chat system Network Based amplifies image.Under video calling scene, when transmitting terminal and receiving end by Video chat apply communicate time, transmitting terminal opens camera, obtains image by camera, and the image got is encoded, and then by network, the video data after coding is sent to receiving end.When network condition is not good; can carry out smoothly in order to ensure the video calling between transmitting terminal and receiving end; transmitting terminal initiatively can reduce video encoding rate usually; such as; under the normal network bandwidth; the video encoding rate of transmitting terminal is 320*240,480*360 etc., and under the extremely low network bandwidth, the video encoding rate of transmitting terminal can reduce to 192*144.After receiving video data, receiving end adopts the video decode rate identical with video encoding rate to decode to the video data received.Because the resolution of receiving end display screen usually can higher than the video encoding rate of transmitting terminal, show on a display screen for enabling decoded image, receiving end repeatedly will amplify decoded image based on interpolation algorithm, first, receiving end adopts video enhancement systems by decoded Nonlinear magnify 2 times, the pixel on original image is made to increase by 4 times, as shown in Figure 2, left figure in Fig. 2 is original image (LowResolution, LR), right figure in Fig. 2 is the image (HighResolution adopting interpolation algorithm to amplify 2 times, HR), original image vegetarian refreshments is 16 as shown in Figure 2, pixel on enlarged image is 64, then, receiving end adopts OpenGL amplification system to proceed to amplify, by the Nonlinear magnify 2 ~ 6 times of amplification 2 times to 2 times of enlarged images, finally, enlarged image is presented on the display screen that resolution is 1920*1080 by receiving end.
At present, when carrying out amplification process to enlarged image, mainly contain neighbour's interpolation algorithm, bilinear interpolation algorithm, bi-cubic interpolation algorithm etc., best with the treatment effect of bi-cubic interpolation algorithm in this several interpolation algorithm.
Wherein, nearest neighbour method interpolation algorithm is fairly simple, easily realize, and widely, but enlarged image has obvious jagged edges and mosaic phenomenon to range of application.
Bilinear interpolation has smoothing function, effectively can overcome the deficiency of neighbour's interpolation algorithm, but the HFS of meeting degraded image, image detail is fogged.When enlargement factor is higher, high-order interpolation algorithm is as good in bilinear interpolation algorithm effects such as bicubic interpolation algorithm and cubic spline interpolation algorithms.Can change between the gray-scale value of the interpolating pixel point that bilinear interpolation algorithm can make interpolation generate and the gray-scale value of original image continuously, thus make the deep or light change of enlarged image naturally level and smooth.But in enlarged image, some interpolating pixel is selected and between adjacent original image vegetarian refreshments, gray-scale value still can exist sudden change, i.e. the gray-value variation of the gray-scale value selected of interpolating pixel and original image vegetarian refreshments discontinuous.These interpolating pixel points with gray-scale value sudden change are exactly the profile of description object in enlarged image or the edge pixel point of texture image.In image after amplification, these have the pixel of discontinuous gamma characteristic, and by fuzzy for the profile and texture making enlarged image, picture quality is poor.
Bi-cubic interpolation can according to the distance between original image vegetarian refreshments and interpolating pixel point, for original image vegetarian refreshments arranges different weighted values, and according to the weighted value of different original image vegetarian refreshments, original image vegetarian refreshments is computed weighted, and then using the actual pixel value of ranking operation result as interpolating pixel point.Although bi-cubic interpolation algorithm can remove the sawtooth on enlarged image to a certain extent, enlarged image effect is still comparatively fuzzy, and picture quality is poor, affects the viewing of user.
More than sketched several interpolation algorithm overcoming Nonlinear magnify problem, these interpolation algorithms, when carrying out method process to image, all process based on two-step approach.The first step, processes the interpolating pixel point be positioned on the enlarged image upper left corner and the lower right corner; Second step, to process after the above-mentioned first step process interpolating pixel point on the upper right corner on enlarged image or the lower left corner.Adopt this kind of processing mode can not carry out concurrent operation to enlarged image, and need the buffer memory that doubles, enlarged image ageing poor, be very applicable to the mobile device very high to requirement of real-time; In addition, this kind of processing mode does not have or the less compromise considering real-time and effect, also the compromise reckoning without different GPU (GraphicsProcessingUnit, graphic process unit) processing power is accepted or rejected, to obtain the optimum efficiency obtaining this type of type on different performance type.
Embodiments provide a kind of image processing method, the method has considered interpolating pixel and has selected position relationship between original image vegetarian refreshments, and select the position relationship between original image vegetarian refreshments based on interpolating pixel, different account forms is adopted to calculate the actual pixel value of interpolating pixel point, on removal enlarged image while sawtooth, improve the sharpness of image.See Fig. 3, the method flow that the present embodiment provides comprises:
301, obtain the position coordinates of arbitrary pending interpolating pixel point on enlarged image, pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple.
302, according to position coordinates, determine that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments.
303, select according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopting the account form corresponding to position relationship, calculating the actual pixel value of pending interpolating pixel point.
Wherein, diverse location relation corresponds to different account form.
The method that the embodiment of the present invention provides, when calculating the actual pixel value of each interpolating pixel point on enlarged image, consider interpolating pixel and select directivity between original image vegetarian refreshments, the position relationship between original image vegetarian refreshments is selected according to each interpolating pixel, different account forms is adopted to calculate, significantly improve the sharpness of image, make the picture quality after processing better.
In another embodiment of the present invention, select according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopting the account form corresponding to position relationship, calculating the actual pixel value of pending interpolating pixel point, comprising:
If pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments, then the first account form is adopted to calculate the actual pixel value of pending interpolating pixel point;
If pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments, then the second account form is adopted to calculate the actual pixel value of pending interpolating pixel point;
If pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, then the 3rd account form is adopted to calculate the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, if pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments, then adopt the first account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the pixel value selecting nearest original image vegetarian refreshments with pending interpolating pixel, using the actual pixel value of the pixel value of original image vegetarian refreshments as pending interpolating pixel point; Or;
Obtain the pixel value selecting two nearest original image vegetarian refreshments with pending interpolating pixel, adopt bilinear interpolation algorithm to carry out interpolation calculation to the pixel value of two original image vegetarian refreshments, obtain the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, if pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments, then adopt the second account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the first edge direction and second edge direction of pending interpolating pixel point;
Centered by pending interpolating pixel point, enlarged image is chosen multiple original image vegetarian refreshments;
According to multiple original image vegetarian refreshments, determine the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction;
According to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction;
If there is the last the first edge direction in pending interpolating pixel point, then from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the last the first edge direction, interpolation calculation is carried out to the original image vegetarian refreshments in the last the first edge direction, obtains the actual pixel value of pending interpolating pixel point;
If there is not the last the first edge direction in pending interpolating pixel point, then from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the principal direction of the first edge direction and the principal direction of the second edge direction, respectively interpolation calculation is carried out to the original image vegetarian refreshments in the principal direction of the first edge direction and the principal direction of the second edge direction, obtain the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, according to multiple original image vegetarian refreshments, determine the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, comprising:
Obtain the color value of adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction respectively;
Difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction;
The absolute value of difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction;
Using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the first edge direction as the intensity level in the first edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the second edge direction as the intensity level in the second edge direction.
In another embodiment of the present invention, according to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction, comprising:
Obtain the ratio of the intensity level in the first edge direction and the second edge direction;
According to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction.
In another embodiment of the present invention, the ratio of the intensity level in the first edge direction got and the second edge direction is:
R
1=(1+G
1)/(1+G
2);
Wherein, R
1be the ratio of the intensity level in the first edge direction and the second edge direction, G
1be the intensity level in the first edge direction, G
2it is the intensity level in the second edge direction.
In another embodiment of the present invention, according to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction, comprising:
If the ratio of the intensity level in the first edge direction and the second edge direction is not equal to the first predetermined threshold value, then determine that pending interpolating pixel point exists the last the first edge direction;
If the ratio of the intensity level in the first edge direction and the second edge direction equals the first predetermined threshold value, then determine that pending interpolating pixel point does not exist the last the first edge direction.
In another embodiment of the present invention, compute weighted to the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, the actual pixel value of the pending interpolating pixel point obtained is:
P
1=(w
1*value
1+w
2*value
2)/(w
1+w
2);
Wherein, P
1for the actual pixel value of pending interpolating pixel point, w
1be the first edge direction principal direction on weighted value corresponding to interpolation calculation result, value
1be the first edge direction principal direction on interpolation calculation result, w2 is weighted value corresponding to interpolation calculation result in the principal direction of the second edge direction, value
2be the second edge direction principal direction on interpolation calculation result, k is designated parameter.
In another embodiment of the present invention, if pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, then adopt the 3rd account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the 3rd edge direction and the 4th edge direction of pending interpolating pixel point;
Centered by pending interpolating pixel point, enlarged image is chosen multiple pixel, pixel comprises original image vegetarian refreshments and interpolating pixel point;
According to multiple pixel, determine the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction;
According to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction;
If there is the last the second edge direction in pending interpolating pixel point, then according to multiple pixel, obtain the pixel in the last the second edge direction, interpolation calculation is carried out to the pixel in the last the second edge direction, obtains the actual pixel value of pending interpolating pixel point;
If there is not the last the second edge direction in pending interpolating pixel point, then according to multiple pixel, obtain the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, respectively interpolation calculation is carried out to the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, obtain the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, according to multiple pixel, determine the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, comprising:
Obtain the color value of adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction respectively;
Interpolation between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction;
The absolute value of interpolation between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction;
Using the absolute value sum of interpolation between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point as the intensity level in the 3rd edge direction, and using the absolute value sum of interpolation between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point as the intensity level in the 4th edge direction.
In another embodiment of the present invention, according to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction, comprising:
Obtain the ratio of the intensity level in the 3rd edge direction and the 4th edge direction;
According to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction.
In another embodiment of the present invention, the ratio of the intensity level in the 3rd edge direction got and the 4th edge direction is:
R
2=(1+G
3)/(1+G
4);
Wherein, R
2be the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, G
3be the intensity level in the 3rd edge direction, G
4it is the intensity level in the 4th edge direction.
In another embodiment of the present invention, according to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, determine whether pending interpolating pixel point exists the last the second edge direction, comprising:
If the ratio of the intensity level in the 3rd edge direction and the 4th edge direction is not equal to the second predetermined threshold value, then determine that pending interpolating pixel point exists the last the second edge direction;
If the ratio of the intensity level in the 3rd edge direction and the 4th edge direction equals the second predetermined threshold value, then determine that pending interpolating pixel point does not exist the last the second edge direction.
In another embodiment of the present invention, according to multiple pixel, obtain the pixel in the last the second edge direction, comprising:
If multiple pixel exists original image vegetarian refreshments in the last the second edge direction, then obtain the original image vegetarian refreshments in the last the second edge direction;
If multiple pixel does not exist original image vegetarian refreshments in the last the second edge direction, then obtain the interpolating pixel point in the last the second edge direction.
In another embodiment of the present invention, compute weighted to the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, the actual pixel value of the pending interpolating pixel point obtained is:
P
2=(w
3*value
3+w
4*value
4)/(w
3+w
4);
Wherein, P
2for the actual pixel value of pending interpolating pixel point, w
3be the 3rd edge direction principal direction on weighted value corresponding to interpolation calculation result, value
3be the 3rd edge direction principal direction on interpolation calculation result, w
4be the 4th edge direction principal direction on weighted value corresponding to interpolation calculation result, value
4be the 4th edge direction principal direction on interpolation calculation result, k is designated parameter.
In another embodiment of the present invention, primary importance region is the upper left corner of specifying original image vegetarian refreshments, and second place region is the lower right corner of specifying original image vegetarian refreshments, and the 3rd band of position is the upper right corner or the lower left corner of specifying original image vegetarian refreshments.
In another embodiment of the present invention, the first edge direction is 45 degree of directions, and the second edge direction is 135 degree of directions, and the 3rd edge direction is 0 degree of direction, and the 4th edge direction is 90 degree of directions.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Embodiments provide a kind of image processing method, see Fig. 4, the method flow that the present embodiment provides comprises:
401, carrying out in the process of video calling with transmitting terminal, receiving end carries out amplification process to original image.
In the present embodiment, Video chat application is installed in receiving end, apply based on installed Video chat, receiving end can receiving end/sending end send video data, decode to receiving the video data obtained, and by decoded video data, also namely the original image described in the present embodiment shows on a display screen in real time.Wherein, receiving end can be the equipment such as smart mobile phone, notebook computer, desktop computer, panel computer, and the present embodiment does not do concrete restriction to the type of receiving end.
The video encoding rate of the video data sent due to transmitting terminal is lower, and the resolution of receiving end display screen is higher, in order to be presented on high-resolution display screen by the image of low resolution, employing interpolation algorithm enters to amplify process to original image by receiving end, is amplified image.
Because the multiplying power of amplifying is higher, make the sawtooth on enlarged image obvious, picture quality is poor.In order to improve enlarged image quality, following for employing step 402 processes to 404 pairs of enlarged images by the present embodiment.
402, receiving end obtains the position coordinates of arbitrary pending interpolating pixel point on enlarged image.
Wherein, the image that enlarged image will obtain after the original image vegetarian refreshments amplification preset multiple on original image for adopting interpolation algorithm, this preset multiple can be 2 times, 4 times, 8 times etc., and the present embodiment is 2 times with preset multiple, is namely treated to example to the image after 2 times are amplified.For the arbitrary specified pixel point on original image, pending interpolating pixel selects the pixel for producing when this appointment original image vegetarian refreshments is amplified 2 times.
Receiving end is when obtaining the position coordinates of arbitrary pending interpolating pixel point on enlarged image, can based on enlarged image, with the length of enlarged image for X-axis, the wide of enlarged image is Y-axis, build a rectangular coordinate system, and obtain the pending position coordinates of interpolating pixel point in constructed rectangular coordinate system.Certainly, receiving end can also based on each original image vegetarian refreshments, with each original image vegetarian refreshments for initial point, take right direction as X-axis positive dirction, take upward direction as Y-axis positive dirction, build rectangular coordinate system, and obtain the pending position coordinates of interpolating pixel point in constructed rectangular coordinate system.
403, receiving end is according to position coordinates, determines that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments.
In actual process, the actual pixel value of each interpolating pixel point that original image vegetarian refreshments obtains after amplifying 2 times is not identical, in order to accurately calculate the actual pixel value of each interpolating pixel point, appointment original image vegetarian refreshments is amplified 2 times of interpolating pixel points produced afterwards and is divided into Four types by the present embodiment.As shown in Figure 5, the black ball in left side represents specifies original image vegetarian refreshments, and four white balls on right side represent will specify original image vegetarian refreshments to amplify 2 times of interpolating pixel points produced.As shown in Figure 5, interpolating pixel select and specify the position relationship between original image vegetarian refreshments be interpolating pixel select be positioned at specify the upper left corner of original image vegetarian refreshments, interpolating pixel select be positioned at specify the lower right corner of original image vegetarian refreshments, interpolating pixel select be positioned at specify the upper right corner of original image vegetarian refreshments, interpolating pixel selects the lower left corner etc. being positioned at and specifying original image vegetarian refreshments.
In the present embodiment, pending interpolating pixel select and specify the position relationship between original image vegetarian refreshments comprise pending interpolating pixel select be positioned at specify the primary importance region of original image vegetarian refreshments, pending interpolating pixel select be positioned at specify the second place region of original image vegetarian refreshments, pending interpolating pixel selects the 3rd band of position etc. being positioned at and specifying original image vegetarian refreshments.Select based on interpolating pixel in above-mentioned Fig. 5 and specify the position relationship between original image vegetarian refreshments, in the present embodiment, primary importance region can for specifying the upper left corner of original image vegetarian refreshments, second place region can for specifying the lower right corner of original image vegetarian refreshments, and the 3rd band of position can for specifying the upper right corner or the lower left corner of original image vegetarian refreshments.
In the present embodiment, for two kinds of construction methods of rectangular coordinate system, receiving end, at the position coordinates according to pending interpolating pixel point, when determining that the position relationship between original image vegetarian refreshments is selected and specified to pending interpolating pixel, can adopt the following two kinds mode:
First kind of way: if with the length of enlarged image for X-axis, with enlarged image wide for Y-axis build rectangular coordinate system, then directly can select and the position coordinates of specifying original image vegetarian refreshments according to pending interpolating pixel, determine that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments.
Such as, with the length of enlarged image for X-axis, wide in the rectangular coordinate system of Y-axis with enlarged image, sets to get and specifies the position coordinates of original image vegetarian refreshments as (2.3,1.8).If the position coordinates getting pending interpolating pixel point is (2,2), then select and the position coordinates of specifying original image vegetarian refreshments according to pending interpolating pixel, can determine that pending interpolating pixel is positioned at the upper left corner of specifying original image vegetarian refreshments, i.e. primary importance region; If the position coordinates getting pending interpolating pixel point is (2.5,2), select and the position coordinates of specifying original image vegetarian refreshments according to pending interpolating pixel, can determine that pending interpolating pixel selects the upper right corner being positioned at and specifying original image vegetarian refreshments, i.e. the 3rd band of position; If the position coordinates getting pending interpolating pixel point is (2,1), select according to pending interpolating pixel and specify the position coordinates between original image vegetarian refreshments, can determine that interpolating pixel is selected to be positioned at and specify the original image vegetarian refreshments lower left corner, i.e. the 3rd band of position; If the position coordinates getting pending interpolating pixel point is (2.5,1), select according to pending interpolating pixel and specify the position coordinates between original image vegetarian refreshments, can determine that interpolating pixel selects the lower right corner being positioned at and specifying original image vegetarian refreshments, i.e. second place region.
The second way: if to specify original image vegetarian refreshments to build rectangular coordinate system for initial point, then residing in rectangular coordinate system according to pending interpolating pixel point quadrant, determines that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments.When pending interpolating pixel point is positioned at first quartile, then determine that pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments; When pending interpolating pixel point is positioned at the second quadrant, then determine that pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments; When pending interpolating pixel point is positioned at third quadrant, then determine that pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments; When pending interpolating pixel point is positioned at fourth quadrant, then determine that pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments.
Such as, to specify in the rectangular coordinate system of original image vegetarian refreshments constructed by initial point, the position coordinates of specifying original image vegetarian refreshments is (0,0).If get the position coordinates of pending interpolating pixel point for (-1,1), because pending interpolating pixel point is positioned at the second quadrant, then can determine that pending interpolating pixel is positioned at the upper left corner of specifying original image vegetarian refreshments, i.e. primary importance region; If get the position coordinates of pending interpolating pixel point for (1,1), because pending interpolating pixel point is positioned at first quartile, then can determine that pending interpolating pixel selects the upper right corner being positioned at and specifying original image vegetarian refreshments, i.e. the 3rd band of position; If get the position coordinates of pending interpolating pixel point for (-1 ,-1), because pending interpolating pixel point is positioned at third quadrant, then can determines that pending interpolating pixel is selected to be positioned at and specify the original image vegetarian refreshments lower left corner, i.e. the 3rd band of position; If get the position coordinates of pending interpolating pixel point for (1 ,-1), because pending interpolating pixel point is positioned at fourth quadrant, then can determine that pending interpolating pixel selects the lower right corner being positioned at and specifying original image vegetarian refreshments, i.e. second place region.
404, receiving end is selected according to pending interpolating pixel and is specified the position relationship between original image vegetarian refreshments, adopts the account form corresponding to position relationship, calculates the actual pixel value of pending interpolating pixel point.
Because the character being positioned at the interpolating pixel point of specifying original image vegetarian refreshments diverse location region is different, therefore, for improving the accuracy of pending interpolating pixel point pixel value, the method that the present embodiment provides will be selected according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopts different account forms to calculate the actual pixel value of pending interpolating pixel point.During concrete calculating, can see step 4041 ~ 4043:
If 4041 pending interpolating pixels select the primary importance region being positioned at and specifying original image vegetarian refreshments, then receiving end adopts the first account form to calculate the actual pixel value of pending interpolating pixel point.
If 4042 pending interpolating pixels select the second place region being positioned at and specifying original image vegetarian refreshments, then receiving end adopts the second account form to calculate the actual pixel value of pending interpolating pixel point.
If 4043 pending interpolating pixels select the 3rd band of position being positioned at and specifying original image vegetarian refreshments, then receiving end adopts the 3rd account form to calculate the actual pixel value of pending interpolating pixel point.
For 4041 ~ 4043 these three kinds of situations, will be introduced respectively below.
4041, when pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments, receiving end can obtain the pixel value selecting nearest original image vegetarian refreshments with pending interpolating pixel, and using the actual pixel value of the pixel value of this original image vegetarian refreshments as pending interpolating pixel point.Such as, pending interpolating pixel has 4 original image vegetarian refreshments around selecting, be respectively original image vegetarian refreshments A, original image vegetarian refreshments B, original image vegetarian refreshments C and original image vegetarian refreshments D, wherein, distance between original image vegetarian refreshments A and pending interpolating pixel point is 0.5, distance between original image vegetarian refreshments B and pending interpolating pixel point is 1, distance between original image vegetarian refreshments C and pending interpolating pixel point is 0.25, distance between original image vegetarian refreshments D and pending interpolating pixel point is 1.25, nearest due between original image vegetarian refreshments C and pending interpolating pixel point, therefore, receiving end can using the actual pixel value of the pixel value of original image vegetarian refreshments C as pending interpolating pixel point.
Except adopting aforesaid way, receiving end also can obtain the pixel value selecting two nearest original image vegetarian refreshments with pending interpolating pixel, and adopt bilinear interpolation algorithm to carry out interpolation calculation to the pixel value of two original image vegetarian refreshments, obtain the actual pixel value of pending interpolating pixel point.Such as, if receiving end gets the pixel value selecting two nearest original image vegetarian refreshments with pending interpolating pixel and is respectively 124,144, bilinear interpolation algorithm is adopted to carry out interpolation calculation to these two original image vegetarian refreshments, the pixel value obtained is 130, then can determine that the actual pixel value of pending interpolating pixel point is 130.
4042, when pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments, receiving end can adopt following steps 40421 ~ 40426 to calculate the actual pixel value of pending interpolating pixel point:
40421, receiving end obtains the first edge direction and second edge direction of pending interpolating pixel point.
In order to improve the quality of enlarged image, improve the sharpness of enlarged image, the method that the present embodiment provides is when the actual pixel value of calculated difference pixel, consider interpolating pixel and select the direction with original image vegetarian refreshments, and select the direction between original image vegetarian refreshments based on interpolating pixel, choose the edge direction of interpolating pixel point.Be limited to the number of interpolating pixel point and the data-handling capacity of receiving end, the present embodiment only chooses the orthogonal edge direction of pending interpolating pixel point two usually, can't choose all edge directions of pending interpolating pixel point.
When pending interpolating pixel is selected on the second place region being positioned at and specifying original image vegetarian refreshments, pending interpolating pixel is selected in the first edge direction and the second edge direction that are positioned at and specify original image vegetarian refreshments, and the present embodiment only calculates the gradient in the first edge direction and the second edge direction.Wherein, first edge direction can be 30 degree of directions, 45 degree of directions etc., and the second edge direction is vertical with the first edge direction, can be 120 degree of directions, 135 degree of directions etc., the present embodiment is 45 degree of directions with the first edge direction, and the second edge direction is 135 degree of directions is that example is described.
It should be noted that, first edge direction is one group of parallel lines from the horizontal by miter angle, second edge direction is one group of parallel lines from the horizontal by 135 degree of angles, the first edge direction by pending interpolating pixel point is called the principal direction of the first edge direction by the present embodiment, the second edge direction by pending interpolating pixel point is called the principal direction of the second edge direction.
40422, receiving end is centered by pending interpolating pixel point, and enlarged image is chosen multiple original image vegetarian refreshments.
Wherein, the number of original image vegetarian refreshments selected on enlarged image can be 10,20,30 etc., and the present embodiment is advisable to choose 16 pixels.After enlarged image is chosen multiple original image vegetarian refreshments, receiving end is also numbered according to order from top to bottom, from left to right successively by the multiple original pixels points around pending interpolating pixel point.See Fig. 6, grey chromosphere is pending interpolating pixel point, and black ball is original image vegetarian refreshments, and white ball is interpolating pixel point.Receiving end is numbered choose 16 original image vegetarian refreshments successively according to order from top to bottom, from left to right, be respectively 0,1,2....., 14,15 (uses p below
0, p
1, p
2..., p
15represent).
Based on the multiple original image vegetarian refreshments shown in above-mentioned Fig. 6, the direction of No. 3 black balls, No. 6 black balls, No. 9 black balls, No. 12 black ball lines is the principal direction of the first edge direction, and the direction of No. 0 black ball, No. 5 black balls, pending interpolating pixel point, No. 10 black balls, No. 15 black ball lines is the principal direction of the second edge direction.
40423, receiving end is according to multiple original image vegetarian refreshments, determines the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction.
For making the intensity level in the first calculated edge direction and the second edge direction more accurate, receiving end is according to multiple original image vegetarian refreshments, when calculating the intensity level of pending interpolating pixel o'clock in the first edge direction, not merely calculate according to the original image vegetarian refreshments be positioned in the principal direction of the first edge direction, also calculate according to other original image vegetarian refreshments be positioned in the first edge direction; In like manner, receiving end is according to multiple original image vegetarian refreshments, when calculating the intensity level of pending interpolating pixel o'clock in the second edge direction, not merely calculate according to the original image vegetarian refreshments be positioned in the principal direction of the second edge direction, also calculate according to other original image vegetarian refreshments be positioned in the second edge direction.Concrete computation process, can see following step (a) ~ (d):
A (), receiving end obtain the color value of adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction respectively.
Wherein, two original image vegetarian refreshments adjacent in first edge direction are two original image vegetarian refreshments nearest in the first edge direction, see Fig. 7, in first edge direction, adjacent two original image vegetarian refreshments have No. 1 original image vegetarian refreshments and No. 4 original image vegetarian refreshments, No. 2 original image vegetarian refreshments and No. 5 original image vegetarian refreshments, No. 5 original image vegetarian refreshments and No. 8 original image vegetarian refreshments, No. 3 original image vegetarian refreshments and No. 6 original image vegetarian refreshments, No. 6 original image vegetarian refreshments and No. 9 original image vegetarian refreshments, No. 9 original image vegetarian refreshments and No. 12 original image vegetarian refreshments, No. 7 original image vegetarian refreshments and No. 10 original image vegetarian refreshments, No. 10 original image vegetarian refreshments and No. 13 original image vegetarian refreshments, No. 11 original image vegetarian refreshments and No. 14 original image vegetarian refreshments, two original image vegetarian refreshments adjacent in second edge direction are two original image vegetarian refreshments nearest in the second edge direction, see Fig. 7, in second edge direction, adjacent two original image vegetarian refreshments have No. 2 original image vegetarian refreshments and No. 7 original image vegetarian refreshments, No. 1 original image vegetarian refreshments and No. 6 original image vegetarian refreshments, No. 6 original image vegetarian refreshments and No. 11 original image vegetarian refreshments, No. 0 original image vegetarian refreshments and No. 5 original image vegetarian refreshments, No. 5 original image vegetarian refreshments and No. 10 original image vegetarian refreshments, No. 10 original image vegetarian refreshments and No. 15 original image vegetarian refreshments, No. 4 original image vegetarian refreshments and No. 9 original image vegetarian refreshments, No. 9 original image vegetarian refreshments and No. 14 original image vegetarian refreshments, No. 8 original image vegetarian refreshments and No. 13 original image vegetarian refreshments.
During the color value of receiving end adjacent two original image vegetarian refreshments in acquisition first edge direction and the second edge direction, can obtain based on color code table.For No. 0 original image vegetarian refreshments, if the color code getting No. 0 original image vegetarian refreshments is #FFB6C1, then can know that the color value of red, green, blue three colors in No. 0 original image vegetarian refreshments is respectively 255,182,193; If the color code getting No. 0 original image vegetarian refreshments is #FFBOCB, then can know that the color value of red, green, blue three colors in No. 0 original image vegetarian refreshments is respectively 255,192,203.
Difference between b color value that (), receiving end obtain adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction.
When after the color value getting adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction, receiving end is by subtracting each other the color value of two original image vegetarian refreshments adjacent in the first edge direction, difference between the color value that can obtain adjacent two original image vegetarian refreshments in the first edge direction, simultaneously receiving end is by subtracting each other the color value of two original image vegetarian refreshments adjacent in the second edge direction, the difference between the color value that can obtain adjacent two original image vegetarian refreshments in the second edge direction.
See Fig. 7, original image vegetarian refreshments 1 and original image vegetarian refreshments 4 are two adjacent original image vegetarian refreshments pixels in the first edge direction, set the color value of original image vegetarian refreshments 1 as (255, 240, 245), the color value of original image vegetarian refreshments 4 is (219, 112, 147), receiving end is when obtaining the difference between original image vegetarian refreshments 1 and the color value of original image vegetarian refreshments 4, color value red in color value red in original image vegetarian refreshments 1 and original image vegetarian refreshments 4 can be subtracted each other, obtain 255-219=36, the color value of the color value of original image vegetarian refreshments 1 Green and original image vegetarian refreshments 4 Green is subtracted each other, obtain 240-112=128, color value blue in color value blue in original image vegetarian refreshments 1 and original image vegetarian refreshments 4 is subtracted each other, obtain 245-147=98, between the color value that finally can obtain original image vegetarian refreshments 1 and original image vegetarian refreshments 4, difference is (36, 128, 98).
The absolute value of difference between c color value that (), receiving end obtain adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction.
Due to the object of the difference between the color value that the present invention obtains adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction, it is the gradient in order to obtain with the color value of adjacent two original image vegetarian refreshments in the second edge direction in the first edge direction, and in actual computation in the first edge direction and the second edge direction the color value of adjacent two original image vegetarian refreshments may there is the situation of negative, therefore, between the color value of receiving end adjacent two original image vegetarian refreshments in acquisition first edge direction and the second edge after difference, also by the absolute value of difference between the color value of two original image vegetarian refreshments adjacent in acquisition first edge direction and the second edge direction.
For two original image vegetarian refreshments adjacent in the first edge direction color value between the absolute value of difference, see figure left in Fig. 7, wherein, between the color value of original image vegetarian refreshments 1 and original image vegetarian refreshments 4, the absolute value of difference is a11, between the color value of original image vegetarian refreshments 2 and original image vegetarian refreshments 5 difference absolute value between be b22, between the color value of original image vegetarian refreshments 5 and original image vegetarian refreshments 8, the absolute value of difference is b21, between the color value of original image vegetarian refreshments 3 and original image vegetarian refreshments 6, the absolute value of difference is c33, between the color value of original image vegetarian refreshments 6 and original image vegetarian refreshments 9, the absolute value of difference is c32, between the color value of original image vegetarian refreshments 9 and original image vegetarian refreshments 12, the absolute value of difference is c31, between the color value of original image vegetarian refreshments 7 and original image vegetarian refreshments 10, the absolute value of difference is d42, between the color value of original image vegetarian refreshments 10 and original image vegetarian refreshments 13, the absolute value of difference is d41, between the color value of original image vegetarian refreshments 11 and original image vegetarian refreshments 14, the absolute value of difference is e51.
For two original image vegetarian refreshments adjacent in the second edge direction color value between the absolute value of difference, see figure right in Fig. 7, wherein, between the color value of original image vegetarian refreshments 2 and original image vegetarian refreshments 7, the absolute value of difference is a1, between the color value of original image vegetarian refreshments 1 and original image vegetarian refreshments 6 difference absolute value between be b2, between the color value of original image vegetarian refreshments 6 and original image vegetarian refreshments 11, the absolute value of difference is b1, between the color value of original image vegetarian refreshments 0 and original image vegetarian refreshments 5, the absolute value of difference is c3, between the color value of original image vegetarian refreshments 5 and original image vegetarian refreshments 10, the absolute value of difference is c2, between the color value of original image vegetarian refreshments 10 and original image vegetarian refreshments 15, the absolute value of difference is c1, between the color value of original image vegetarian refreshments 4 and original image vegetarian refreshments 9, the absolute value of difference is d2, between the color value of original image vegetarian refreshments 9 and original image vegetarian refreshments 14, the absolute value of difference is d1, between the color value of original image vegetarian refreshments 8 and original image vegetarian refreshments 13, the absolute value of difference is e1.
(d), receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the first edge direction as the intensity level in the first edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the second edge direction as the intensity level in the second edge direction.
Based on two original image vegetarian refreshments adjacent in the first edge direction accessed by above-mentioned steps (c) color value between the absolute value of difference, receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the first edge direction as the intensity level in the first edge direction.See the left figure in Fig. 6, receiving end passes through difference value between the color value of two original image vegetarian refreshments adjacent in the first edge direction, and the intensity level that can get in the first edge direction is:
G1=a11+b21+b22+c31+c32+c33+d41+d42+e51
Namely the pending interpolating pixel intensity level o'clock on 45 degree of directions is:
G1=a11+b21+b22+c31+c32+c33+d41+d42+e51。
Based on two original image vegetarian refreshments adjacent in the second edge direction accessed by above-mentioned steps (c) color value between the absolute value of difference, receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the second edge direction as the intensity level in the second edge direction.See the right figure in Fig. 6, by by difference value between the color value of two original image vegetarian refreshments adjacent in the second edge direction, the intensity level that can get in the second edge direction is:
G2=a1+b1+b2+c1+c2+c3+d1+d2+e1
Namely the pending interpolating pixel intensity level o'clock on 135 degree of directions is:
G2=a1+b1+b2+c1+c2+c3+d1+d2+e1。
40424, receiving end is according to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judges whether pending interpolating pixel point exists the last the first edge direction.
Wherein, the last the first edge direction is the direction that changes in intensity values is less, is generally the principal direction of the first edge direction or the principal direction of the second edge direction.Receiving end according to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, when judging whether pending interpolating pixel point exists the last the first edge direction, can adopt following steps (a) ~ (b):
A (), receiving end obtain the ratio of the intensity level in the first edge direction and the second edge direction.
In the present embodiment, the ratio of the intensity level in the first edge direction of getting of receiving end and the second edge direction is:
R
1=(1+G
1)/(1+G
2);
Wherein, R
1be the ratio of the intensity level in the first edge direction and the second edge direction, G
1be the intensity level in the first edge direction, G
2it is the intensity level in the second edge direction.
It should be noted that, generally, during intensity level in acquisition first edge direction and the second edge direction, can directly the intensity level in the first edge direction and the second edge direction be done to compare, and why this enforcement add 1 on the intensity level of the first edge direction and the second edge direction, in order to prevent the intensity level in the first edge direction or the intensity level in the second edge direction from being 0 time main, the ratio of the intensity level in the first accessed edge direction and the second edge direction is caused to be 0.
B (), receiving end, according to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction.
Receiving end, at the ratio according to the intensity level in the first edge direction and the second edge direction, when judging whether pending interpolating pixel point exists the last the first edge direction, includes but not limited to following several situation:
If the ratio of intensity level is greater than the first predetermined threshold value in the first edge direction and the second edge direction, then determine that pending interpolating pixel point exists the last the first edge direction, and the principal direction of the second edge direction is the last the first edge direction;
If the ratio of intensity level is less than the first predetermined threshold value in the first edge direction and the second edge direction, then determine that pending interpolating pixel point exists the last the first edge direction, and the principal direction of the first edge direction is the last the first edge direction;
If the ratio of intensity level equals the first predetermined threshold value in the first edge direction and the second edge direction, then determine that pending interpolating pixel point does not exist the last the first edge direction.
Wherein, the first predetermined threshold value can be 1,1.5,1.7 etc., and it is 1.15 that the present embodiment sets the first predetermined threshold value.
If 40425 pending interpolating pixel point existence the last the first edge directions, then receiving end is from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the last the first edge direction, interpolation calculation is carried out to the original image vegetarian refreshments in the last the first edge direction, obtains the actual pixel value of pending interpolating pixel point.
Based on determined the last the first edge direction, receiving end will from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the last the first edge direction, and adopt bi-cubic interpolation function to calculate the interpolation coefficient that in the last the first edge direction, original image vegetarian refreshments is corresponding, and then by being weighted the pixel value of original image vegetarian refreshments in the last the first edge direction and the interpolation coefficient of correspondence, the actual pixel value of pending interpolating pixel point can be obtained.Wherein, the determined interpolation coefficient of bi-cubic interpolation function can represent with following formula (1):
Wherein, a is the distance between adjacent two pixels, and s is the distance between original image vegetarian refreshments and pending interpolating pixel point.The distance set in the present embodiment between two adjacent pixels is 1/2, that is to say a=1/2, then now the determined interpolation coefficient of bi-cubic interpolation function can represent with following formula (2):
When the last the first edge direction is the principal direction of the first edge direction, see the left figure in Fig. 7, the original image vegetarian refreshments in the principal direction of the first edge direction is original image vegetarian refreshments 3, original image vegetarian refreshments 6, original image vegetarian refreshments 9, original image vegetarian refreshments 12.From the left figure in Fig. 7, the distance s between original image vegetarian refreshments 3 and pending interpolating pixel point is 3/2, should adopt in above-mentioned formula (2)
calculate, now s=3/2 is updated to
in, the interpolation coefficient that can obtain original image vegetarian refreshments 3 correspondence is-1/16; Original image vegetarian refreshments 6 is 1/2 with the spacing of pending interpolating pixel point, should adopt in above-mentioned formula (2)
calculate, now s=1/2 is updated to formula
in, the interpolation coefficient that can obtain original image vegetarian refreshments 6 correspondence is 9/16; Because original image vegetarian refreshments 9 and the spacing of pending interpolating pixel point are 1/2, should adopt in above-mentioned formula (2)
now s=1/2 is updated to formula
in, when can obtain interpolation calculation, the interpolation coefficient of original image vegetarian refreshments 9 correspondence is 9/16; Because original image vegetarian refreshments 12 and the spacing of pending interpolating pixel point are 3/2, should adopt in above-mentioned formula (2)
calculate, now s=3/2 is updated to formula
in, the interpolation coefficient that can obtain original image vegetarian refreshments 12 correspondence is-1/16.Based on the interpolation coefficient of determined original image vegetarian refreshments 3, original image vegetarian refreshments 6, original image vegetarian refreshments 9, original image vegetarian refreshments 12 correspondence, the actual pixel value that receiving end can obtain pending interpolating pixel point is value1=-1/16*p3+9/16*p6+9/16*p9-1/16*p12.
When the last the first edge direction is the principal direction of the second edge direction, see the right figure in Fig. 7, the original image vegetarian refreshments in the principal direction of the second edge direction is original image vegetarian refreshments 0, original image vegetarian refreshments 5, original image vegetarian refreshments 10, original image vegetarian refreshments 15.From the right figure in Fig. 7, the distance s between original image vegetarian refreshments 0 and pending interpolating pixel point is 3/2, should adopt in above-mentioned formula (2)
calculate, now s=3/2 is updated to
in, the interpolation coefficient that can obtain original image vegetarian refreshments 0 correspondence is-1/16; Original image vegetarian refreshments 5 is 1/2 with the spacing of pending interpolating pixel point, should adopt in above-mentioned formula (2)
calculate, now s=1/2 is updated to formula
in, the interpolation coefficient that can obtain original image vegetarian refreshments 5 correspondence is 9/16; Because original image vegetarian refreshments 10 and the spacing of pending interpolating pixel point are 1/2, should adopt in above-mentioned formula (2)
Now s=1/2 is updated to formula
In, when can obtain interpolation calculation, the interpolation coefficient of original image vegetarian refreshments 10 correspondence is 9/16; Because original image vegetarian refreshments 15 and the spacing of pending interpolating pixel point are 3/2, should adopt in above-mentioned formula (2)
Now s=3/2 is updated to formula
In, the interpolation coefficient that can obtain original image vegetarian refreshments 15 correspondence is-1/16.Based on the interpolation coefficient of determined original image vegetarian refreshments 0, original image vegetarian refreshments 5, original image vegetarian refreshments 10, original image vegetarian refreshments 15 correspondence, the actual pixel value that receiving end can obtain pending interpolating pixel point is value2=-1/16*p0+9/16*p5+9/16*p10-1/16*p15.
40426, if there is not the last the first edge direction in pending interpolating pixel point, then receiving end is from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the principal direction of the first edge direction and the principal direction of the second edge direction, respectively interpolation calculation is carried out to the original image vegetarian refreshments in the principal direction of the first edge direction and the principal direction of the second edge direction, obtain the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, interpolation calculation result in first edge direction and the second edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
About obtaining the original image vegetarian refreshments be positioned in the principal direction of the first edge direction and the principal direction of the second edge direction, and the original image vegetarian refreshments in the principal direction of the first edge direction and the principal direction of the second edge direction is carried out to the process of interpolation calculation, see above-mentioned steps 40425, can repeat no more herein.
Based on the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, receiving end is by computing weighted to the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, and the actual pixel value of available pending interpolating pixel point is:
P
1=(w
1*value
1+w
2*value
2)/(w
1+w
2)
Wherein, P
1for the actual pixel value of pending interpolating pixel point, w
1be the first edge direction principal direction on weighted value corresponding to interpolation calculation result, value
1be the first edge direction principal direction on interpolation calculation result, w2 is weighted value corresponding to interpolation calculation result in the principal direction of the second edge direction, value
2be the second edge direction principal direction on interpolation calculation result, k is designated parameter, by test obtain, the value setting k is in the present embodiment 5.
It should be noted that, above-mentioned when obtaining the actual pixel value of pending interpolating pixel point, at w
1, w
2denominator on to add 1 be to prevent denominator from being 0.
4043 when pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, and receiving end can adopt following steps 40431 ~ 40436 to calculate the actual pixel value of pending interpolating pixel point:
40431, receiving end obtains the 3rd edge direction and the 4th edge direction of pending interpolating pixel point.
Owing to specifying the lower left corner and the upper right corner of original image vegetarian refreshments in the 3rd band of position, interpolating pixel point on 3rd band of position is in mutually on the diagonal line of the other side, therefore, in order to prevent producing dependence each other between the interpolating pixel point on the 3rd band of position, when pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, in the present embodiment, only calculate the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction.Wherein, 3rd edge direction can be 0 degree of direction, 10 degree of directions etc., and the 4th edge direction is vertical with the 3rd edge direction, can be 90 degree of directions, 100 degree of directions etc., the present embodiment is 0 degree of direction with the 3rd edge direction, and the 4th edge direction is 90 degree of directions is that example is described.
It should be noted that, 3rd edge direction is one group of parallel lines from the horizontal by 0 degree of angle, 4th edge direction is one group of parallel lines from the horizontal by an angle of 90 degrees, the 3rd edge direction by pending interpolating pixel point is called the principal direction of the 3rd edge direction by the present embodiment, the 4th edge direction by pending interpolating pixel point is called the principal direction of the 4th edge direction.
40432, receiving end is centered by pending interpolating pixel point, and enlarged image is chosen multiple pixel, and this pixel comprises original image vegetarian refreshments and interpolating pixel point.
When pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, receiving end, centered by pending interpolating pixel point, when enlarged image is chosen multiple pixel, can adopt the following two kinds mode:
First kind of way, receiving end are centered by pending interpolating pixel point, enlarged image is chosen multiple original image vegetarian refreshments, and successively multiple multiple original image vegetarian refreshments chosen are numbered according to order from top to bottom, from left to right, the present embodiment is advisable to choose 16 original image vegetarian refreshments.See Fig. 8, grey bead is pending interpolating pixel point, and black ball is original image vegetarian refreshments, and white globules is interpolating pixel point.According to order from top to bottom, from left to right, choose 16 original image vegetarian refreshments are numbered successively, are respectively 0,1,2....., 14,15 (uses p below
0, p
1, p
2..., p
15represent).
The second way, receiving end, centered by pending interpolating pixel point, enlarged image are chosen multiple original image vegetarian refreshments and interpolating pixel point, and according to computation requirement, are numbered the multiple original image vegetarian refreshments chosen and interpolating pixel point.
Because the 3rd band of position comprises the upper right corner or the lower left corner of specifying original image vegetarian refreshments, when pending interpolating pixel point is positioned at the diverse location of the 3rd band of position, the mode that receiving end chooses multiple original image vegetarian refreshments and interpolating pixel point on enlarged image is also different.Such as, when pending interpolating pixel selects the upper right corner being positioned at and specifying original image vegetarian refreshments, mode selected pixels point as shown in Figure 9 can be adopted, wherein, No. 0 pixel, No. 3 pixels, No. 4 pixels, No. 5 pixels, No. 10 pixels, No. 11 pixels, No. 12 pixels, No. 15 pixels are interpolating pixel point, and No. 1 pixel, No. 2 pixels, No. 6 pixels, No. 7 pixels, No. 8 pixels, No. 9 pixels, No. 13 pixels, No. 14 pixels are original image vegetarian refreshments; When pending interpolating pixel selects the lower left corner being positioned at and specifying original image vegetarian refreshments, mode selected pixels point as shown in Figure 10 can be adopted, wherein, No. 0 pixel, No. 3 pixels, No. 4 pixels, No. 5 pixels, No. 10 pixels, No. 11 pixels, No. 12 pixels, No. 15 pixels are original image vegetarian refreshments, and No. 1 pixel, No. 2 pixels, No. 6 pixels, No. 7 pixels, No. 8 pixels, No. 9 pixels, No. 13 pixels, No. 14 pixels are interpolating pixel point.
For Fig. 9, the direction of No. 6 pixels, No. 7 pixels, No. 8 pixels and No. 9 pixel lines is the principal direction of the 3rd edge direction, and the direction of No. 0 pixel, No. 4 pixels, No. 11 pixels and No. 15 pixel lines is the principal direction of the 4th edge direction.
40433, receiving end is according to multiple pixel, determines the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction.
Based on the pixel selected by above-mentioned steps 40432, receiving end, when determining the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, can adopt the following two kinds mode:
First kind of way, when the pixel selected by receiving end is all original image vegetarian refreshments, receiving end is according to multiple pixel, when determining the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, can following steps (a) ~ (d) be adopted:
A (), receiving end obtain the color value of adjacent two original image vegetarian refreshments in the 3rd edge direction and the 4th edge direction respectively.
Wherein, two original image vegetarian refreshments adjacent in 3rd edge direction are two original image vegetarian refreshments nearest in the 3rd edge direction, see Figure 11, in 3rd edge direction, adjacent two original image vegetarian refreshments have No. 1 original image vegetarian refreshments and No. 2 original image vegetarian refreshments, No. 4 original image vegetarian refreshments and No. 5 original image vegetarian refreshments, No. 5 original image vegetarian refreshments and No. 6 original image vegetarian refreshments, No. 6 original image vegetarian refreshments and No. 7 original image vegetarian refreshments, No. 8 original image vegetarian refreshments and No. 9 original image vegetarian refreshments, No. 9 original image vegetarian refreshments and No. 10 original image vegetarian refreshments, No. 10 original image vegetarian refreshments and No. 11 original image vegetarian refreshments, No. 13 original image vegetarian refreshments and No. 14 original image vegetarian refreshments, two original image vegetarian refreshments adjacent in 4th edge direction are two original image vegetarian refreshments nearest in the 4th edge direction, in 4th edge direction, adjacent two original image vegetarian refreshments have No. 4 original image vegetarian refreshments and No. 8 original image vegetarian refreshments, No. 1 original image vegetarian refreshments and No. 5 original image vegetarian refreshments, No. 5 original image vegetarian refreshments and No. 9 original image vegetarian refreshments, No. 9 original image vegetarian refreshments and No. 13 original image vegetarian refreshments, No. 2 original image vegetarian refreshments and No. 6 original image vegetarian refreshments, No. 6 original image vegetarian refreshments and No. 10 original image vegetarian refreshments, No. 10 original image vegetarian refreshments and No. 14 original image vegetarian refreshments, No. 7 original image vegetarian refreshments and No. 11 original image vegetarian refreshments.
During the color value of receiving end adjacent two original image vegetarian refreshments in acquisition the 3rd edge direction and the 4th edge direction, can obtain based on color code table.For No. 5 original image vegetarian refreshments, if the color code getting No. 5 original point is #EE82EEE, then can know that the color value of red, green, blue three colors in No. 5 original image vegetarian refreshments is respectively 238,130,238; If the color code getting No. 5 original image vegetarian refreshments is #FF00FF, then can know that the color value of red, green, blue three colors in No. 1 original image vegetarian refreshments is respectively 255,0,255.
Difference between b color value that (), receiving end obtain adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction.
When after the color value getting adjacent two original image vegetarian refreshments in the 3rd edge direction and the 4th edge direction, receiving end is by subtracting each other the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction, difference between the color value that can obtain adjacent two original image vegetarian refreshments in the 3rd edge direction, simultaneously receiving end is by subtracting each other the color value of two original image vegetarian refreshments adjacent in the 4th edge direction, the difference between the color value that can obtain adjacent two original image vegetarian refreshments in the 4th edge direction.
See Figure 11, original image vegetarian refreshments 1 and original image vegetarian refreshments 2 are two adjacent original image vegetarian refreshments pixels in the 3rd edge direction, set the color value of original image vegetarian refreshments 1 as (199,21,133), the color value of original image vegetarian refreshments 2 is (218,112,214).Receiving end is when obtaining the difference between original image vegetarian refreshments 1 and the color value of original image vegetarian refreshments 2, the color value of the redness in color value red in original image vegetarian refreshments 1 and original image vegetarian refreshments 2 can be subtracted each other, obtain 199-218=-19, the color value of the color value of original image vegetarian refreshments 1 Green and original image vegetarian refreshments 2 Green is subtracted each other, obtain 21-112=-91, color value blue in color value blue in original image vegetarian refreshments 1 and original image vegetarian refreshments 2 is subtracted each other, obtain 133-214=-81, between the color value that finally can obtain original image vegetarian refreshments 1 and original image vegetarian refreshments 2, difference is (-19,-91,-81).
The absolute value of difference between c color value that () receiving end obtains adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction.
Due to the object of the difference between the color value that the present invention obtains adjacent two original pixel values in the 3rd edge direction and the 4th edge direction, it is the gradient in order to obtain with the color value of adjacent two original image vegetarian refreshments in the four or two edge direction in the 3rd edge direction, and in actual computation in the 3rd edge direction and the 4th edge direction the color value of adjacent two original image vegetarian refreshments may there is the situation of negative, therefore, between the color value of receiving end adjacent two original image vegetarian refreshments in acquisition the 3rd edge direction and the 4th edge after difference, also by the absolute value of difference between the color value of adjacent two original image vegetarian refreshments in acquisition the 3rd edge direction and the 4th edge direction.
For two original image vegetarian refreshments adjacent in the 3rd edge direction color value between the absolute value of difference, see figure left in Figure 11, wherein, between the color value of original image vegetarian refreshments 1 and original image vegetarian refreshments 2, the absolute value of difference is a11, between the color value of original image vegetarian refreshments 4 and original image vegetarian refreshments 5 difference absolute value between be b21, between the color value of original image vegetarian refreshments 5 and original image vegetarian refreshments 6, the absolute value of difference is b22, between the color value of original image vegetarian refreshments 6 and original image vegetarian refreshments 7, the absolute value of difference is b23, between the color value of original image vegetarian refreshments 8 and original image vegetarian refreshments 9, the absolute value of difference is c31, between the color value of original image vegetarian refreshments 9 and original image vegetarian refreshments 10, the absolute value of difference is c32, between the color value of original image vegetarian refreshments 10 and original image vegetarian refreshments 11, the absolute value of difference is c33, between the color value of original image vegetarian refreshments 13 and original image vegetarian refreshments 14, the absolute value of difference is d41.
For two original image vegetarian refreshments adjacent in the 4th edge direction color value between the absolute value of difference, see figure right in Figure 11, wherein, between the color value of original image vegetarian refreshments 7 and original image vegetarian refreshments 11, the absolute value of difference is a1, between the color value of original image vegetarian refreshments 2 and original image vegetarian refreshments 6 difference absolute value between be b1, between the color value of original image vegetarian refreshments 6 and original image vegetarian refreshments 10, the absolute value of difference is b2, between the color value of original image vegetarian refreshments 10 and original image vegetarian refreshments 14, the absolute value of difference is b3, between the color value of original image vegetarian refreshments 1 and original image vegetarian refreshments 5, the absolute value of difference is c1, between the color value of original image vegetarian refreshments 5 and original image vegetarian refreshments 9, the absolute value of difference is c2, between the color value of original image vegetarian refreshments 9 and original image vegetarian refreshments 13, the absolute value of difference is c3, between the color value of original image vegetarian refreshments 4 and original image vegetarian refreshments 8, the absolute value of difference is d1.
(d), receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point as the intensity level in the 3rd edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point as the intensity level in the 4th edge direction.
Based on adjacent two original image vegetarian refreshments in the 3rd edge direction accessed by above-mentioned steps (c) color value between the absolute value of difference, receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction as the intensity level in the 3rd edge direction.See the left figure in Figure 11, receiving end passes through difference value between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction, and the intensity level that can get in the 3rd edge direction is:
G3=a11+b21+b22+b23+c31+c32+d41
Namely the pending interpolating pixel intensity level o'clock on 0 degree of direction is:
G3=a11+b21+b22+b23+c31+c32+d41。
Based on adjacent two original image vegetarian refreshments in the 4th edge direction accessed by above-mentioned steps (c) color value between the absolute value of difference, receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction as the intensity level in the 4th edge direction.See the right figure in Figure 11, by by difference value between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction, the intensity level that can get in the 4th edge direction is:
G4=a1+b1+b2+b3+c1+c2+c3+d1;
Namely the pending interpolating pixel intensity level o'clock on 90 degree of directions is:
G4=a1+b1+b2+b3+c1+c2+c3+d1。
The second way, when the pixel selected by receiving end be original image vegetarian refreshments and interpolating pixel point, receiving end is according to multiple pixel, when determining the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, can step be adopted: (a) ~ (d):
A (), receiving end obtain the color value of adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction respectively.
When pending interpolating pixel selects the upper right corner being positioned at and specifying original image vegetarian refreshments, see Fig. 9, two pixels adjacent in the 3rd edge direction are No. 1 original image vegetarian refreshments and No. 2 original image vegetarian refreshments, No. 7 original image vegetarian refreshments and No. 8 original image vegetarian refreshments, No. 13 original image vegetarian refreshments and No. 14 original image vegetarian refreshments, No. 3 interpolating pixel points and No. 4 interpolating pixel points, No. 4 interpolating pixel points and No. 5 interpolating pixel points, No. 10 interpolating pixel points and No. 11 interpolating pixel points, No. 11 interpolating pixel points and No. 12 interpolating pixel points; Two pixels adjacent in 4th edge direction are that No. 3 interpolating pixels are selected and No. 10 interpolating pixels are selected, No. 4 interpolating pixels are selected and No. 11 interpolating pixels are selected, No. 5 interpolating pixels are selected and No. 121 interpolating pixels are selected, No. 1 original image vegetarian refreshments and No. 7 original image vegetarian refreshments, No. 7 original image vegetarian refreshments and No. 13 original image vegetarian refreshments, No. 2 original image vegetarian refreshments and No. 8 original image vegetarian refreshments, No. 8 original image vegetarian refreshments and No. 14 original image vegetarian refreshments.
When pending interpolating pixel selects the lower left corner being positioned at and specifying original image vegetarian refreshments, see Figure 10, in the 3rd edge direction, adjacent two pixels are that No. 1 interpolating pixel is selected and No. 2 interpolating pixels are selected, No. 7 interpolating pixels select and No. 8 interpolating pixels are selected, No. 13 interpolating pixels are selected and No. 14 interpolating pixels are selected, No. 3 original image vegetarian refreshments and No. 4 original image vegetarian refreshments, No. 4 original image vegetarian refreshments and No. 5 original image vegetarian refreshments, No. 10 original image vegetarian refreshments and No. 11 original image vegetarian refreshments, No. 11 original image vegetarian refreshments and No. 12 original image vegetarian refreshments; In 4th edge direction, adjacent two pixels are No. 3 original image vegetarian refreshments and No. 10 original image vegetarian refreshments, No. 4 original image vegetarian refreshments and No. 11 original image vegetarian refreshments, No. 5 original image vegetarian refreshments and No. 12 original image vegetarian refreshments, No. 1 interpolating pixel point and No. 7 interpolating pixel points, No. 7 interpolating pixel points and No. 13 interpolating pixel points, No. 2 interpolating pixel points and No. 8 interpolating pixel points, No. 8 interpolating pixel points and No. 14 interpolating pixel points.
Receiving end can obtain the color value of adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction according to color code table.For in Fig. 9 No. 4 interpolating pixel point, if get the color code #0008B of No. 4 interpolating pixel points, then the color value that can get red, green, blue three colors in No. 4 interpolating pixel points is respectively 0,0,139; If get the color code #00080 of No. 4 interpolating pixel points, then the color value that can get red, green, blue three colors in No. 4 interpolating pixel points is respectively 0,0,128.
Difference between b color value that (), receiving end obtain adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction.
When after the color value getting adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction, receiving end is by subtracting each other the color value of adjacent two original image vegetarian refreshments, and the color value of two interpolating pixel points adjacent in the 3rd edge direction subtracts each other, obtain the interpolation between adjacent two original image vegetarian refreshments and the color of interpolating pixel point in the 3rd edge direction, same when after the color value getting adjacent two original image vegetarian refreshments and interpolating pixel point in the 4th edge direction, receiving end is by subtracting each other the color value of two original image vegetarian refreshments adjacent in the 4th edge direction, and the color value of adjacent two interpolating pixel points is subtracted each other, obtain the interpolation between adjacent two original image vegetarian refreshments and the color of interpolating pixel point in the 4th edge direction.
See Figure 10, interpolating pixel point 7 and interpolating pixel point 8 are two interpolating pixel points adjacent in the 3rd edge direction, set the color value of interpolating pixel point 7 as (0,139,139), and the color value of interpolating pixel point 8 is (0,128,128).Receiving end is when obtaining the difference between interpolating pixel point 7 and the color value of interpolating pixel point 8, color value red in color value red in interpolating pixel point 7 and interpolating pixel point 8 can be subtracted each other, obtain 0-0=0, the color value of the color value of interpolating pixel point 7 Green and interpolating pixel point 8 Green is subtracted each other, obtain 139-128=11, the color value that color value blue in interpolating pixel point 7 is added with color value blue in interpolating pixel point 8 is subtracted each other, obtain 139-128=11, between the color value that finally can obtain interpolating pixel point 7 and interpolating pixel point 8, difference is (-19,-91,-81).
The absolute value of difference between c color value that (), receiving end obtain adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction.
Due to the object of the difference between the color value that the present invention obtains adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction, to obtain in the 3rd edge direction and the gradient of the color value of adjacent two original image vegetarian refreshments and interpolating pixel point in the 4th edge direction, and in actual computation in the 3rd edge direction and the 4th edge direction the color value of adjacent two original image vegetarian refreshments and interpolating pixel point may there is the situation of negative, therefore, between the color value of receiving end adjacent two original image vegetarian refreshments and interpolating pixel point in acquisition the 3rd edge direction and the 4th edge after difference, also by the absolute value of difference between the color value of two original image vegetarian refreshments adjacent in acquisition the 3rd edge direction and the 4th edge direction and interpolating pixel point.For two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point color value between the absolute value of difference, for Fig. 9, wherein, between the color value of original image vegetarian refreshments 1 and original image vegetarian refreshments 2, the absolute value of difference is | p1-p2|, between the color value of original image vegetarian refreshments 7 and original image vegetarian refreshments 8, the absolute value of difference is | p7-p8|, between the color value of original image vegetarian refreshments 13 and original image vegetarian refreshments 14, the absolute value of difference is | p13-p14|, between the color value of interpolating pixel point 3 and interpolating pixel point 4, the absolute value of difference is | p3-p4|, between the color value of interpolating pixel point 4 and interpolating pixel point 5, the absolute value of difference is | p4-p5|, between the color value of interpolating pixel point 10 and interpolating pixel point 11, the absolute value of difference is | p10-p11|, between the color value of interpolating pixel point 11 and interpolating pixel point 12, the absolute value of difference is | p11-p12|.
For two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point color value between the absolute value of difference, still for Fig. 9, wherein, between the color value of interpolating pixel point 3 and interpolating pixel point 10, the absolute value of difference is | p3-p10|, between the color value of interpolating pixel point 4 and interpolating pixel point 11, the absolute value of difference is | p4-p11|, between the color value of interpolating pixel point 5 and interpolating pixel point 12, the absolute value of difference is | p5-p12|, between the color value of original image vegetarian refreshments 1 and original image vegetarian refreshments 7, the absolute value of difference is | p1-p7|, between the color value of original image vegetarian refreshments 7 and original image vegetarian refreshments 13, the absolute value of difference is | p7-p13|, between the color value of original image vegetarian refreshments 2 and original image vegetarian refreshments 8, the absolute value of difference is | p2-p8|, between the color value of original image vegetarian refreshments 8 and original image vegetarian refreshments 14, the absolute value of difference is | p8-p14|.
(d), receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point as the intensity level in the 3rd edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point as the intensity level in the 4th edge direction.
Based on two original image vegetarian refreshments adjacent in the 3rd edge direction accessed by above-mentioned steps (c) and interpolating pixel point color value between the absolute value of difference, receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point as the intensity level in the 3rd edge direction.See Fig. 9, receiving end is by by difference value between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point, and the intensity level G3 that can get in the 3rd edge direction is:
t1=|p1-p2|+|p7-p8|+|p13-p14|
t2=|p3-p4|+|p4-p5|
t3=|p10-p11|+|p11-p12|
G3=t1+t2+t3=|p1-p2|+|p7-p8|+|p13-p14|+|p3-p4|+|p4-p5|+|p10-p11|+|p11-p12|
Namely the pending interpolating pixel intensity level o'clock on 0 degree of direction is:
G3=t1+t2+t3=|p1-p2|+|p7-p8|+|p13-p14|+|p3-p4|+|p4-p5|+|p10-p11|+|p11-p12|。
Based on two original image vegetarian refreshments adjacent in the 4th edge direction accessed by above-mentioned steps (c) and interpolating pixel point color value between the absolute value of difference, receiving end using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point as the intensity level in the 4th edge direction.See Fig. 9, receiving end is by by difference value between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point, and the intensity level G4 that can get in the 4th edge direction is:
t4=|p3-p10|+|p4-p11|+|p5-p12|
t5=|p1-p7|+|p7-p13|;
t6=|p2-p8|+|p8-p14|;
G4=t4+t5+t6=|p3-p10|+|p4-p11|+|p5-p12|+|p1-p7|+|p7-p13|+|p2-p8|+|p8-p14|。
Namely the pending interpolating pixel intensity level o'clock on 90 degree of directions is:
G4=t4+t5+t6=|p3-p10|+|p4-p11|+|p5-p12|+|p1-p7|+|p7-p13|+|p2-p8|+|p8-p14|。
40434, receiving end is according to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judges whether pending interpolating pixel point exists the last the second edge direction.
Wherein, the last the second edge direction is the direction that changes in intensity values is less, is generally the principal direction of the 3rd edge direction or the principal direction of the 4th edge direction.Receiving end according to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, when judging whether pending interpolating pixel point exists the last the second edge direction, can adopt following steps (a) ~ (b):
A (), receiving end obtain the ratio of the intensity level in the 3rd edge direction and the 4th edge direction.
In the present embodiment, the ratio of the intensity level in the 3rd edge direction that gets of receiving end and the 4th edge direction is:
R
2=(1+G
3)/(1+G
4);
Wherein, R
2be the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, G
3be the intensity level in the 3rd edge direction, G
4it is the intensity level in the 4th edge direction.
It should be noted that, generally, during intensity level in acquisition the 3rd edge direction and the 4th edge direction, can directly the intensity level in the 3rd edge direction and the 4th edge direction be done to compare, and why this enforcement add 1 on the intensity level of the 3rd edge direction and the 4th edge direction, in order to prevent the intensity level in the 3rd edge direction or the intensity level in the 4th edge direction from being 0 time main, the ratio causing the intensity level in the 3rd accessed edge direction and the 4th edge direction is 0.
B (), receiving end, according to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction.
Receiving end, at the ratio according to the intensity level in the 3rd edge direction and the 4th edge direction, when judging whether pending interpolating pixel point exists the last the second edge direction, includes but not limited to:
If the ratio of intensity level is greater than the second predetermined threshold value in the 3rd edge direction and the 4th edge direction, then determine that pending interpolating pixel point exists the last the second edge direction, and the principal direction of the 4th edge direction is the last the second edge direction;
If the ratio of intensity level is less than the second predetermined threshold value in the 3rd edge direction and the 4th edge direction, then determine that pending interpolating pixel point exists the last the second edge direction, and the principal direction of the 3rd edge direction is the last the second edge direction;
If the ratio of intensity level equals the second predetermined threshold value in the 3rd edge direction and the 4th edge direction, then determine that pending interpolating pixel point does not exist the last the second edge direction.
Wherein, the second predetermined threshold value can be 1,1.5,1.7 etc., and it is 1.15 that the present embodiment sets the second predetermined threshold value.
If 40435 pending interpolating pixel point existence the last the second edge directions, then receiving end is according to multiple pixels, obtain the pixel in the last the second edge direction, interpolation calculation is carried out to the pixel in the last the second edge direction, obtains the actual pixel value of pending interpolating pixel point.
Based on determine the last the second edge direction, receiving end, first from multiple pixel, obtains the pixel value be positioned in the last the second edge direction.During concrete acquisition, if the last the second edge direction exists original image vegetarian refreshments, then receiving end directly can obtain the pixel in the last the second edge direction; If there is not original image vegetarian refreshments in the last the second edge direction, then receiving end obtains the interpolating pixel point in the last the second edge direction, this interpolating pixel point can interpolating pixel point in the multiple pixels selected by receiving end, can also carry out that interpolation calculation obtains for receiving end adopts bilinear interpolation algorithm to select contiguous original image vegetarian refreshments to pending interpolating pixel.
See Fig. 8, receiving end when choosing multiple pixel centered by pending interpolating pixel point, selected multiple pixels are original image vegetarian refreshments, when the last the second edge direction is the 3rd edge direction, due to the last the second edge direction existing, original image vegetarian refreshments is original image vegetarian refreshments 4 to receiving end, original image vegetarian refreshments is 5, original image vegetarian refreshments 6, original image vegetarian refreshments 7, therefore, receiving end can using original image vegetarian refreshments 4, original image vegetarian refreshments 5, original image vegetarian refreshments 6, original image vegetarian refreshments 7 as the pixel in the last the second edge direction, when the last the second edge direction is the 4th edge direction, employing bilinear interpolation algorithm is carried out interpolation calculation to the original image vegetarian refreshments that pending interpolating pixel selects surrounding by receiving end, such as, interpolation calculation can be carried out to original image vegetarian refreshments 1 and original image vegetarian refreshments 2, obtain interpolating pixel point 1`, original image vegetarian refreshments 5 and original image vegetarian refreshments 6 are carried out linear interpolation calculating, obtain interpolating pixel point 2`, original image vegetarian refreshments 9 and original image vegetarian refreshments 10 are carried out interpolation calculation, obtain interpolating pixel point 3`, original image vegetarian refreshments 13 and original image vegetarian refreshments 14 are carried out interpolation calculation, obtain interpolating pixel point 4`, and then by interpolating pixel point 1`, interpolating pixel point 2`, by interpolating pixel point 3`, using interpolating pixel point 4` as the pixel in the last the second edge direction got.
See Fig. 9, receiving end when choosing multiple pixel centered by interpolating pixel point, selected multiple pixels are original image vegetarian refreshments and interpolating pixel point, when the last the second edge direction is the 3rd edge direction, owing to the last the second edge direction existing original image vegetarian refreshments 6, original image vegetarian refreshments 7, original image vegetarian refreshments 8, original image vegetarian refreshments 9, therefore, receiving end can using original image vegetarian refreshments 6, original image vegetarian refreshments 7, original image vegetarian refreshments 8, original image vegetarian refreshments 9 as the pixel in the last the second edge direction; When the last the second edge direction is the 4th edge direction, owing to there is not original image vegetarian refreshments in the 4th edge direction, therefore, receiving end can using interpolating pixel point 0, interpolating pixel point 4, interpolating pixel point 11, interpolating pixel point 15 as the pixel in the last the second edge direction.
See Figure 10, receiving end when choosing multiple pixel centered by interpolating pixel point, selected multiple pixels are original image vegetarian refreshments and interpolating pixel point, when the last the second edge direction is the 3rd edge direction, owing to there is not original image vegetarian refreshments in the last the second edge direction, therefore, receiving end can using interpolating pixel point 6, interpolating pixel point 7, interpolating pixel point 8, interpolating pixel point 9 as the pixel in the last the second edge direction; When the last the second edge direction is the 4th edge direction, owing to the last the second edge direction existing original image vegetarian refreshments 0, original image vegetarian refreshments 4, original image vegetarian refreshments 11, original image vegetarian refreshments 15, therefore, receiving end using original image vegetarian refreshments 0, original image vegetarian refreshments 4, original image vegetarian refreshments 11, original image vegetarian refreshments 15 as the pixel in the last the second edge direction.
Based on the pixel in determined the last the second edge direction, receiving end calculates adopting bi-cubic interpolation function the interpolation coefficient that in the last the second edge direction, original image vegetarian refreshments is corresponding, and then by being weighted the pixel value of the original image vegetarian refreshments in the last the second edge direction or the pixel value of interpolating pixel point and the interpolation coefficient of correspondence, the actual pixel value of pending interpolating pixel point can be obtained.Wherein, the determined interpolation coefficient of bi-cubic interpolation function can represent with above-mentioned formula (1):
Wherein, a is the distance between two adjacent original image vegetarian refreshments or interpolating pixel point, and s is original image vegetarian refreshments or the distance between interpolating pixel point and pending interpolating pixel point.Set two adjacent pixels in the present embodiment or the distance between interpolating pixel point and pending interpolating pixel point is 1/2, that is to say a=1/2, then now the determined interpolation coefficient of bi-cubic interpolation function can represent with following formula (2):
When the last the second edge direction is the principal direction of the 3rd edge direction, see Fig. 9, pixel original image vegetarian refreshments 6 in the principal direction of the 3rd edge direction, original image vegetarian refreshments 7, original image vegetarian refreshments 8, original image vegetarian refreshments 9. are as shown in Figure 8, distance between original image vegetarian refreshments 6 and pending interpolating pixel point is 3/2, distance between original image vegetarian refreshments 7 and pending interpolating pixel point is 1/2, distance between original image vegetarian refreshments 8 and pending interpolating pixel point is 1/2, and the distance between original image vegetarian refreshments 9 and pending interpolating pixel point is 3/2.Because the distance between original image vegetarian refreshments 6 and pending interpolating pixel point is 3/2, should adopt in above-mentioned formula (2)
calculate, now s=3/2 is updated to
in, the interpolation coefficient that can obtain original image vegetarian refreshments 6 correspondence is-1/16; Because original image vegetarian refreshments 7 and the spacing of pending interpolating pixel point are 1/2, should adopt in above-mentioned formula (2)
Calculate, now s=1/2 is updated to formula
in, the interpolation coefficient that can obtain original image vegetarian refreshments 7 correspondence is 9/16; Because original image vegetarian refreshments 8 and the spacing of pending interpolating pixel point are 1/2, should adopt in above-mentioned formula (2)
calculate, now s=1/2 is updated to formula
in, the interpolation coefficient that can obtain original image vegetarian refreshments 8 correspondence is 9/16; Because the distance between original image vegetarian refreshments 9 and pending interpolating pixel point is 3/2, should adopt in above-mentioned formula (2)
calculate, now s=3/2 is updated to formula
in can obtain original image vegetarian refreshments 9 correspondence interpolation coefficient be-1/16.Based on the interpolation coefficient of the original image vegetarian refreshments 6 in determined the last the second edge direction, original image vegetarian refreshments 7, original image vegetarian refreshments 8, original image vegetarian refreshments 9 and correspondence, the actual pixel value that receiving end can get pending interpolating pixel point is value3=-1/16*p6+9/16*p7+9/16*p8-1/16*p9.
When the last the second edge direction is the principal direction of the 4th edge direction, distance between interpolating pixel point 0 and pending interpolating pixel point is 3/2, distance between interpolating pixel point 4 and pending interpolating pixel point is 1/2, distance between interpolating pixel point 11 and pending interpolating pixel point is 1/2, and the distance between interpolating pixel point 15 and pending interpolating pixel point is 3/2.Because the distance between interpolating pixel point 0 and pending interpolating pixel point is 3/2, should adopt in above-mentioned formula (2)
calculate, now s=3/2 is updated to
in, the interpolation coefficient that can obtain interpolating pixel point 0 correspondence is-1/16; Because interpolating pixel point 4 and the spacing of pending interpolating pixel point are 1/2, should adopt in above-mentioned formula (2)
calculate, now s=1/2 is updated to formula
in, the interpolation coefficient that can obtain interpolating pixel point 4 correspondence is 9/16; Because interpolating pixel point 11 and the spacing of pending interpolating pixel point are 1/2, should adopt in above-mentioned formula (2)
calculate, now s=1/2 is updated to formula
in, the interpolation coefficient that can obtain interpolating pixel point 11 correspondence is 9/16; Because the distance between interpolating pixel point 15 and pending interpolating pixel point is 3/2, should adopt in above-mentioned formula (2)
calculate, now s=3/2 is updated to formula
in can obtain interpolating pixel point 15 correspondence interpolation coefficient be-1/16.Based on the coefficient of the interpolating pixel point 0 in determined the last the second edge direction, interpolating pixel point 4, interpolating pixel point 11, interpolating pixel point 15 and correspondence, the actual pixel value that receiving end can get pending interpolating pixel point is value4=-1/16*p0+9/16*p4+9/16*p11-1/16*p15.
When pending interpolating pixel selects the lower left corner being positioned at and specifying original image vegetarian refreshments, receiving end obtain interpolation coefficient corresponding to each pixel in the last the second edge direction mode and when pending interpolating pixel select be positioned at the upper right corner of specifying original image vegetarian refreshments time, the mode that receiving end obtains the coefficient that each pixel is corresponding in the last the second edge direction is identical, repeats no more herein.
40436, if there is not the last the second edge direction in pending interpolating pixel point, then receiving end is according to multiple pixels, obtain the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, respectively interpolation calculation is carried out to the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, obtain the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
About obtaining the pixel be positioned in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, and the pixel in the principal direction of the first edge direction and the principal direction of the second edge direction is carried out to the process of interpolation calculation, see above-mentioned steps 40435, can repeat no more herein.
Based on the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, receiving end is by computing weighted to the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, and the actual pixel value of available pending interpolating pixel point is:
P
2=(w
3*value
3+w
4*value
4)/(w
3+w
4)
Wherein, P
2for the actual pixel value of pending interpolating pixel point, w
3be the 3rd edge direction principal direction on weighted value corresponding to interpolation calculation result, value
3be the 3rd edge direction principal direction on interpolation calculation result, w
4be the 4th edge direction principal direction on weighted value corresponding to interpolation calculation result, value
4be the 4th edge direction principal direction on interpolation calculation result, k is designated parameter, by test obtain, the value setting k is in the present embodiment 5.
It should be noted that, above-mentioned is 45 degree of directions with the first edge direction, second edge direction is 135 degree of directions, 3rd edge direction is 0 degree of direction, 4th edge direction is 90 degree of directions is that example is described, in actual applications, first edge direction, second edge direction, 3rd edge direction, 4th edge direction can also be other directions, if the first edge direction, second edge direction, 3rd edge direction, when 4th edge direction is other directions, receiving end is in acquisition first edge direction, second edge direction, 3rd edge direction, during intensity level in the 4th edge direction, can based on 0 degree of direction accessed in the present embodiment, 45 degree of directions, 90 degree of directions, intensity level in 135 degree of edge directions calculates.
In addition, the method that the present embodiment provides is to amplify 2 times by original image, and an interpolating pixel point is chosen arbitrarily on amplification 2 times of images, the pixel value calculating this interpolating pixel point is that example is described, in actual applications, the method that the present embodiment provides also is applicable to the actual pixel value of arbitrary interpolating pixel point on the enlarged images such as calculating 4 times of enlarged images, 8 times of enlarged images, concrete Computing Principle is identical with to the account form of interpolating pixel point arbitrary on 2 times of enlarged images, and this is in and repeats.
See Figure 12, Figure 12 is that the amplification in Internet video chat strengthens algorithm frame process flow diagram, setting receiving end needs Nonlinear magnify 2 times, then receiving end is after receiving video data, magnification ratio 2.0 is inputted in the operating system of self, and on enlarged image, choose arbitrarily a pending interpolating pixel point (i, j), and then to select according to this pending interpolating pixel with the position relationship of specifying original image vegetarian refreshments, calculate the actual pixel value of this pending interpolating pixel point in different ways.If this pending interpolating pixel selects the upper left corner being positioned at and specifying original image vegetarian refreshments, then around this pending interpolating pixel is selected, choose the original image vegetarian refreshments that the interpolating pixel pending with this selects distance, and select the actual pixel value of pixel value as this pending interpolating pixel point of nearest original image vegetarian refreshments using with this pending interpolating pixel; If this pending interpolating pixel selects the lower right corner being positioned at and specifying original image vegetarian refreshments, then the second account form is adopted to calculate the actual pixel value of this pending interpolating pixel point; If this pending interpolating pixel selects the upper right corner or the lower left corner that are positioned at and specify original image vegetarian refreshments, then the 3rd account form is adopted to calculate the actual pixel value of this pending interpolating pixel point.Finally, by carrying out sharpening enhancement to 2 times of enlarged images, the image after amplifying is shown on the display screen.
See Figure 13, Figure 13 is that the amplification in Internet video chat strengthens algorithm frame process flow diagram, setting receiving end needs Nonlinear magnify 2 times, then receiving end is after receiving video data, magnification ratio 2.0 is inputted in the operating system of self, and on enlarged image, choose arbitrarily a pending interpolating pixel point (i, j), and then to select according to this pending interpolating pixel with the position relationship of specifying original image vegetarian refreshments, calculate the actual pixel value of this pending interpolating pixel point in different ways.If this pending interpolating pixel selects the upper left corner being positioned at and specifying original image vegetarian refreshments, then bilinear interpolation algorithm is adopted to calculate the actual pixel value of this pending interpolating pixel point; If this pending interpolating pixel selects the lower right corner being positioned at and specifying original image vegetarian refreshments, then the second account form is adopted to calculate the actual pixel value of this pending interpolating pixel point; If this pending interpolating pixel selects the upper right corner or the lower left corner that are positioned at and specify original image vegetarian refreshments, then the 3rd account form is adopted to calculate the actual pixel value of this pending interpolating pixel point.Finally, by carrying out sharpening enhancement to 2 times of enlarged images, the image after amplifying is shown on the display screen.
In order to show the difference between the image after the method process that employing the present embodiment provides and the picture quality after prior art process intuitively, will be contrasted by some images below.
Figure 14 is the image after the method process that adopts prior art and the embodiment of the present invention and provide, wherein, left figure in Figure 14 is the image after adopting prior art process, right figure in Figure 14 is the image after the method process adopting the present embodiment to provide, by the right figure in left figure and Figure 14 in contrast Figure 14, can find that the method adopting the present embodiment to provide can significantly improve the quality of image, the image after process is more clear.
Figure 15 display be image after the method process that provides of the present embodiment is provided, Figure 16 is the image after adopting photoZoom to use S-SplineMax algorithm to amplify, and Figure 17 is the image after adopting the bi-cubic interpolation algorithm in the middle of GIMP software to amplify.Can be found out by contrast Figure 15, Figure 16, Figure 17: the sawtooth in Figure 15 and Figure 16 is less, the image effect after that is to say the image after the method process adopting the present embodiment to provide and adopting photoZoom process is close; Sawtooth in Figure 17, obviously more than the sawtooth in Figure 15, illustrates that the picture quality after the amplification process that the present embodiment provides obviously is better than prior art.
Figure 18 is for carrying out amplification former figure, Figure 19 before treatment for adopting the image after the method process that provides of the present embodiment, and Figure 20 is the image after adopting photoZoom process, and Figure 21 is the image after employing bi-cubic interpolation algorithm process.Known by contrast Figure 18, Figure 19, Figure 20, Figure 21, Figure 19 and Figure 20 does not almost have sawtooth, and picture quality is better, and the sawtooth of Figure 21 is comparatively obvious.
Can be found out by above-mentioned contrast, adopt the picture quality after the method process that provides of the present embodiment better, can not only sawtooth on less enlarged image, and the sharpness of image can be improved.
The method that the embodiment of the present invention provides, when calculating the actual pixel value of each interpolating pixel point on enlarged image, consider interpolating pixel and select directivity between original image vegetarian refreshments, the position relationship between original image vegetarian refreshments is selected according to each interpolating pixel, different account forms is adopted to calculate, significantly improve the sharpness of image, make the picture quality after processing better.
See Figure 22, embodiments provide a kind of structural representation of image processing apparatus, this device comprises:
Acquisition module 2201, for obtaining the position coordinates of arbitrary pending interpolating pixel point on enlarged image, pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
Determination module 2202, for according to position coordinates, determines that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments;
Computing module 2203, for selecting according to pending interpolating pixel and specifying the position relationship between original image vegetarian refreshments, adopts the account form corresponding to position relationship, calculates the actual pixel value of pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
In another embodiment of invention, computing module 2203, comprising:
First computing unit, during for selecting the primary importance region being positioned at and specifying original image vegetarian refreshments when pending interpolating pixel, adopts the first account form to calculate the actual pixel value of pending interpolating pixel point;
Second computing unit, during for selecting the second place region being positioned at and specifying original image vegetarian refreshments when pending interpolating pixel, adopts the second account form to calculate the actual pixel value of pending interpolating pixel point;
3rd computing unit, during for selecting the 3rd band of position being positioned at and specifying original image vegetarian refreshments when pending interpolating pixel, adopts the 3rd account form to calculate the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, the first computing unit, for obtaining the pixel value selecting nearest original image vegetarian refreshments with pending interpolating pixel, using the actual pixel value of the pixel value of original image vegetarian refreshments as pending interpolating pixel point; Or;
First computing unit, for obtaining the pixel value selecting two nearest original image vegetarian refreshments with pending interpolating pixel, adopt bilinear interpolation algorithm to carry out interpolation calculation to the pixel value of two original image vegetarian refreshments, obtain the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, the second computing unit, for obtaining the first edge direction and second edge direction of pending interpolating pixel point, centered by pending interpolating pixel point, enlarged image is chosen multiple original image vegetarian refreshments, according to multiple original image vegetarian refreshments, determine the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, according to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction, when there is the last the first edge direction in pending interpolating pixel point, from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the last the first edge direction, interpolation calculation is carried out to the original image vegetarian refreshments in the last the first edge direction, obtains the actual pixel value of pending interpolating pixel point, when there is not the last the first edge direction in pending interpolating pixel point, from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the principal direction of the first edge direction and the principal direction of the second edge direction, respectively interpolation calculation is carried out to the original image vegetarian refreshments in the principal direction of the first edge direction and the principal direction of the second edge direction, obtain the interpolation calculation result in the principal direction of the first edge direction and the second edge direction, interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, the second computing unit, for obtaining the color value of adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction respectively; Difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction; The absolute value of difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction; Using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the first edge direction as the intensity level in the first edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the second edge direction as the intensity level in the second edge direction.
In another embodiment of the present invention, the second computing unit, for obtaining the ratio of the intensity level in the first edge direction and the second edge direction; According to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction.
In another embodiment of the present invention, the ratio of the intensity level in the first edge direction of getting of the second computing unit and the second edge direction is:
R
1=(1+G
1)/(1+G
2);
Wherein, R
1be the ratio of the intensity level in the first edge direction and the second edge direction, G
1be the intensity level in the first edge direction, G
2it is the intensity level in the second edge direction.
In another embodiment of the present invention, the second computing unit, for when the ratio of the intensity level in the first edge direction and the second edge direction is not equal to the first predetermined threshold value, determines that pending interpolating pixel point exists the last the first edge direction; When the ratio of the intensity level in the first edge direction and the second edge direction equals the first predetermined threshold value, determine that pending interpolating pixel point does not exist the last the first edge direction.
In another embodiment of the present invention, the second computing unit computes weighted to the interpolation calculation result in the principal direction of the principal direction of the first edge direction and the second edge direction, and the actual pixel value of the pending interpolating pixel point obtained is:
P
1=(w
1*value
1+w
2*value
2)/(w
1+w
2);
Wherein, P
1for the actual pixel value of pending interpolating pixel point, w
1be the first edge direction principal direction on weighted value corresponding to interpolation calculation result, value
1be the first edge direction principal direction on interpolation calculation result, w2 is weighted value corresponding to interpolation calculation result in the principal direction of the second edge direction, value
2be the second edge direction principal direction on interpolation calculation result, k is designated parameter.
In another embodiment of the present invention, the 3rd computing unit, for obtaining the 3rd edge direction and the 4th edge direction of pending interpolating pixel point, centered by pending interpolating pixel point, enlarged image is chosen multiple pixel, pixel comprises original image vegetarian refreshments and interpolating pixel point, according to multiple pixel, determine the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, according to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction, when there is the last the second edge direction in pending interpolating pixel point, according to multiple pixel, obtain the pixel in the last the second edge direction, interpolation calculation is carried out to the pixel in the last the second edge direction, obtains the actual pixel value of pending interpolating pixel point, when there is not the last the second edge direction in pending interpolating pixel point, according to many pixels, obtain the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, respectively interpolation calculation is carried out to the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, obtain the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
In another embodiment of the present invention, the 3rd computing unit, for obtaining the color value of adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction respectively; Difference between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction; The absolute value of difference between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction; Using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point as the intensity level in the 3rd edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point as the intensity level in the 4th edge direction.
In another embodiment of the present invention, the 3rd computing unit, for obtaining the ratio of the intensity level in the 3rd edge direction and the 4th edge direction; According to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction.
In another embodiment of the present invention, the ratio of the intensity level in the 3rd edge direction that gets of the 3rd computing unit and the 4th edge direction is:
R
2=(1+G
3)/(1+G
4);
Wherein, R
2be the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, G
3be the intensity level in the 3rd edge direction, G
4it is the intensity level in the 4th edge direction.
In another embodiment of the present invention, the 3rd computing unit, for when the ratio of the intensity level in the 3rd edge direction and the 4th edge direction is not equal to the second predetermined threshold value, determines that pending interpolating pixel point exists the last the second edge direction; When the ratio of the intensity level in the 3rd edge direction and the 4th edge direction equals the second predetermined threshold value, determine that pending interpolating pixel point does not exist the last the second edge direction.
In another embodiment of the present invention, the 3rd computing unit, for when multiple pixel exists original image vegetarian refreshments in the last the second edge direction, obtains the original image vegetarian refreshments in the last the second edge direction; When multiple pixel does not exist original image vegetarian refreshments in the last the second edge direction, obtain the interpolating pixel point in the last the second edge direction.
In another embodiment of the present invention, the 3rd computing unit computes weighted to the interpolation calculation result in the principal direction of the principal direction of the 3rd edge direction and the 4th edge direction, and the actual pixel value of the pending interpolating pixel point obtained is:
P
2=(w
3*value
3+w
4*value
4)/(w
3+w
4);
Wherein, P
2for the actual pixel value of pending interpolating pixel point, w
3be the 3rd edge direction principal direction on weighted value corresponding to interpolation calculation result, value
3be the 3rd edge direction principal direction on interpolation calculation result, w
4be the 4th edge direction principal direction on weighted value corresponding to interpolation calculation result, value
4be the 4th edge direction principal direction on interpolation calculation result, k is designated parameter.
In another embodiment of the present invention, primary importance region is the upper left corner of specifying original image vegetarian refreshments, and second place region is the lower right corner of specifying original image vegetarian refreshments, and the 3rd band of position is the upper right corner or the lower left corner of specifying original image vegetarian refreshments.
In another embodiment of the present invention, the first edge direction is 45 degree of directions, and the second edge direction is 135 degree of directions, and the 3rd edge direction is 0 degree of direction, and the 4th edge direction is 90 degree of directions.
In sum, the device that the embodiment of the present invention provides, when calculating the actual pixel value of each interpolating pixel point on enlarged image, consider interpolating pixel and select directivity between original image vegetarian refreshments, the position relationship between original image vegetarian refreshments is selected according to each interpolating pixel, adopt different account forms to calculate, significantly improve the sharpness of image, make the picture quality after processing better.
See Figure 23, it illustrates the structural representation of the image processing terminal involved by the embodiment of the present invention, this terminal may be used for the image processing method implementing to provide in above-described embodiment.Specifically:
Terminal 2300 can comprise RF (RadioFrequency, radio frequency) circuit 110, the storer 120 including one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (WirelessFidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Figure 23, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (LowNoiseAmplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 2300.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 2300 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in fig 23, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal 2300 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal 2300 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 2300 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 2300.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 2300.
WiFi belongs to short range wireless transmission technology, and terminal 2300 can help user to send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Figure 23 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 2300, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal 2300, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal 2300, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Optionally, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 2300 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 2300 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal 2300 is touch-screen displays, and terminal 2300 also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be performed by more than one or one processor.Described more than one or one routine package is containing the instruction for performing following operation:
Obtain the position coordinates of arbitrary pending interpolating pixel point on enlarged image, pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
According to position coordinates, determine that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments;
Select according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopting the account form corresponding to position relationship, calculating the actual pixel value of pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
Suppose that above-mentioned is the first possible embodiment, then, in the embodiment that the second provided based on the embodiment that the first is possible is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Select according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopting the account form corresponding to position relationship, calculating the actual pixel value of pending interpolating pixel point, comprising:
If pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments, then the first account form is adopted to calculate the actual pixel value of pending interpolating pixel point;
If pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments, then the second account form is adopted to calculate the actual pixel value of pending interpolating pixel point;
If pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, then the 3rd account form is adopted to calculate the actual pixel value of pending interpolating pixel point.
Suppose the above-mentioned embodiment possible for the second, then, in the third the possible embodiment provided based on the embodiment that the second is possible, in the storer of terminal, also comprise the instruction for performing following operation:
If pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments, then adopt the first account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the pixel value selecting nearest original image vegetarian refreshments with pending interpolating pixel, using the actual pixel value of the pixel value of original image vegetarian refreshments as pending interpolating pixel point; Or;
Obtain the pixel value selecting two nearest original image vegetarian refreshments with pending interpolating pixel, adopt bilinear interpolation algorithm to carry out interpolation calculation to the pixel value of two original image vegetarian refreshments, obtain the actual pixel value of pending interpolating pixel point.
Suppose that above-mentioned is the third possible embodiment, then, in the 4th kind of possible embodiment provided based on the embodiment that the third is possible, in the storer of terminal, also comprise the instruction for performing following operation:
If pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments, then adopt the second account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the first edge direction and second edge direction of pending interpolating pixel point;
Centered by pending interpolating pixel point, enlarged image is chosen multiple original image vegetarian refreshments;
According to multiple original image vegetarian refreshments, determine the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction;
According to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction;
If there is the last the first edge direction in pending interpolating pixel point, then from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the last the first edge direction, interpolation calculation is carried out to the original image vegetarian refreshments in the last the first edge direction, obtains the actual pixel value of pending interpolating pixel point;
If there is not the last the first edge direction in pending interpolating pixel point, then from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the principal direction of the first edge direction and the principal direction of the second edge direction, respectively interpolation calculation is carried out to the original image vegetarian refreshments in the principal direction of the first edge direction and the principal direction of the second edge direction, obtain the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
Suppose that above-mentioned is the 4th kind of possible embodiment, then, in the 5th kind of possible embodiment provided based on the 4th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to multiple original image vegetarian refreshments, determine the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, comprising:
Obtain the color value of adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction respectively;
Difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction;
The absolute value of difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction;
Using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the first edge direction as the intensity level in the first edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the second edge direction as the intensity level in the second edge direction.
Suppose that above-mentioned is the 5th kind of possible embodiment, then, in the 6th kind of possible embodiment provided based on the 5th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction, comprising:
Obtain the ratio of the intensity level in the first edge direction and the second edge direction;
According to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction.
Suppose that above-mentioned is the 6th kind of possible embodiment, then, in the 7th kind of possible embodiment provided based on the 6th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
The ratio of the intensity level in the first edge direction got and the second edge direction is:
R
1=(1+G
1)/(1+G
2);
Wherein, R
1be the ratio of the intensity level in the first edge direction and the second edge direction, G
1be the intensity level in the first edge direction, G
2it is the intensity level in the second edge direction.
Suppose that above-mentioned is the 7th kind of possible embodiment, then, in the 8th kind of possible embodiment provided based on the 7th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction, comprising:
If the ratio of the intensity level in the first edge direction and the second edge direction is not equal to the first predetermined threshold value, then determine that pending interpolating pixel point exists the last the first edge direction;
If the ratio of the intensity level in the first edge direction and the second edge direction equals the first predetermined threshold value, then determine that pending interpolating pixel point does not exist the last the first edge direction.
Suppose that above-mentioned is the 8th kind of possible embodiment, then, in the 9th kind of possible embodiment provided based on the 8th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Compute weighted to the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, the actual pixel value of the pending interpolating pixel point obtained is:
P
1=(w
1*value
1+w
2*value
2)/(w
1+w
2);
Wherein, P
1for the actual pixel value of pending interpolating pixel point, w
1be the first edge direction principal direction on weighted value corresponding to interpolation calculation result, value
1be the first edge direction principal direction on interpolation calculation result, w2 is weighted value corresponding to interpolation calculation result in the principal direction of the second edge direction, value
2be the second edge direction principal direction on interpolation calculation result, k is designated parameter.
Suppose that above-mentioned is the 9th kind of possible embodiment, then, in the tenth kind of possible embodiment provided based on the 9th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, then adopt the 3rd account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the 3rd edge direction and the 4th edge direction of pending interpolating pixel point;
Centered by pending interpolating pixel point, enlarged image is chosen multiple pixel, pixel comprises original image vegetarian refreshments and interpolating pixel point;
According to multiple pixel, determine the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction;
According to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction;
If there is the last the second edge direction in pending interpolating pixel point, then according to multiple pixel, obtain the pixel in the last the second edge direction, interpolation calculation is carried out to the pixel in the last the second edge direction, obtains the actual pixel value of pending interpolating pixel point;
If there is not the last the second edge direction in pending interpolating pixel point, then according to many pixels, obtain the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, respectively interpolation calculation is carried out to the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, obtain the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
Suppose that above-mentioned is the tenth kind of possible embodiment, then, in the 11 kind of possible embodiment provided based on the tenth kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to multiple pixel, determine the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, comprising:
Obtain the color value of adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction respectively;
Interpolation between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction;
The absolute value of interpolation between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction;
Using the absolute value sum of interpolation between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point as the intensity level in the 3rd edge direction, and using the absolute value sum of interpolation between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point as the intensity level in the 4th edge direction.
Suppose that above-mentioned is the 11 kind of possible embodiment, then, in the 12 kind of possible embodiment provided based on the 11 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction, comprising:
Obtain the ratio of the intensity level in the 3rd edge direction and the 4th edge direction;
According to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction.
Suppose that above-mentioned is the 12 kind of possible embodiment, then, in the 13 kind of possible embodiment provided based on the 12 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
The ratio of the intensity level in the 3rd edge direction got and the 4th edge direction is:
R
2=(1+G
3)/(1+G
4);
Wherein, R
2be the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, G
3be the intensity level in the 3rd edge direction, G
4it is the intensity level in the 4th edge direction.
Suppose that above-mentioned is the 13 kind of possible embodiment, then, in the 14 kind of possible embodiment provided based on the 13 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, determine whether pending interpolating pixel point exists the last the second edge direction, comprising:
If the ratio of the intensity level in the 3rd edge direction and the 4th edge direction is not equal to the second predetermined threshold value, then determine that pending interpolating pixel point exists the last the second edge direction;
If ratio equals the second predetermined threshold value, then determine that pending interpolating pixel point does not exist the last the second edge direction.
Suppose that above-mentioned is the 14 kind of possible embodiment, then, in the 15 kind of possible embodiment provided based on the 14 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to multiple pixel, obtain the pixel in the last the second edge direction, comprising:
If multiple pixel exists original image vegetarian refreshments in the last the second edge direction, then obtain the original image vegetarian refreshments in the last the second edge direction;
If multiple pixel does not exist original image vegetarian refreshments in the last the second edge direction, then obtain the interpolating pixel point in the last the second edge direction.
Suppose that above-mentioned is the 15 kind of possible embodiment, then, in the 16 kind of possible embodiment provided based on the 15 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Compute weighted to the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, the actual pixel value of the pending interpolating pixel point obtained is:
P
2=(w
3*value
3+w
4*value
4)/(w
3+w
4);
Wherein, P
2for the actual pixel value of pending interpolating pixel point, w
3be the 3rd edge direction principal direction on weighted value corresponding to interpolation calculation result, value
3be the 3rd edge direction principal direction on interpolation calculation result, w
4be the 4th edge direction principal direction on weighted value corresponding to interpolation calculation result, value
4be the 4th edge direction principal direction on interpolation calculation result, k is designated parameter.
Suppose that above-mentioned is the 16 kind of possible embodiment, then, in the 17 kind of possible embodiment provided based on the 16 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Primary importance region is the upper left corner of specifying original image vegetarian refreshments, and second place region is the lower right corner of specifying original image vegetarian refreshments, and the 3rd band of position is the upper right corner or the lower left corner of specifying original image vegetarian refreshments.
Suppose that above-mentioned is the 17 kind of possible embodiment, then, in the 18 kind of possible embodiment provided based on the 17 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
First edge direction is 45 degree of directions, and the second edge direction is 135 degree of directions, and the 3rd edge direction is 0 degree of direction, and the 4th edge direction is 90 degree of directions.
The terminal that the embodiment of the present invention provides, when calculating the actual pixel value of each interpolating pixel point on enlarged image, consider interpolating pixel and select directivity between original image vegetarian refreshments, the position relationship between original image vegetarian refreshments is selected according to each interpolating pixel, different account forms is adopted to calculate, significantly improve the sharpness of image, make the picture quality after processing better.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, and this computer-readable recording medium can be the computer-readable recording medium comprised in the storer in above-described embodiment; Also can be individualism, be unkitted the computer-readable recording medium allocated in terminal.This computer-readable recording medium stores more than one or one program, and this more than one or one program is used for performing image processing method by one or more than one processor, and the method comprises:
Obtain the position coordinates of arbitrary pending interpolating pixel point on enlarged image, pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
According to position coordinates, determine that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments;
Select according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopting the account form corresponding to position relationship, calculating the actual pixel value of pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
Suppose that above-mentioned is the first possible embodiment, then, in the embodiment that the second provided based on the embodiment that the first is possible is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Select according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopting the account form corresponding to position relationship, calculating the actual pixel value of pending interpolating pixel point, comprising:
If pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments, then the first account form is adopted to calculate the actual pixel value of pending interpolating pixel point;
If pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments, then the second account form is adopted to calculate the actual pixel value of pending interpolating pixel point;
If pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, then the 3rd account form is adopted to calculate the actual pixel value of pending interpolating pixel point.
Suppose the above-mentioned embodiment possible for the second, then, in the third the possible embodiment provided based on the embodiment that the second is possible, in the storer of terminal, also comprise the instruction for performing following operation:
If pending interpolating pixel selects the primary importance region being positioned at and specifying original image vegetarian refreshments, then adopt the first account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the pixel value selecting nearest original image vegetarian refreshments with pending interpolating pixel, using the actual pixel value of the pixel value of original image vegetarian refreshments as pending interpolating pixel point; Or;
Obtain the pixel value selecting two nearest original image vegetarian refreshments with pending interpolating pixel, adopt bilinear interpolation algorithm to carry out interpolation calculation to the pixel value of two original image vegetarian refreshments, obtain the actual pixel value of pending interpolating pixel point.
Suppose that above-mentioned is the third possible embodiment, then, in the 4th kind of possible embodiment provided based on the embodiment that the third is possible, in the storer of terminal, also comprise the instruction for performing following operation:
If pending interpolating pixel selects the second place region being positioned at and specifying original image vegetarian refreshments, then adopt the second account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the first edge direction and second edge direction of pending interpolating pixel point;
Centered by pending interpolating pixel point, enlarged image is chosen multiple original image vegetarian refreshments;
According to multiple original image vegetarian refreshments, determine the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction;
According to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction;
If there is the last the first edge direction in pending interpolating pixel point, then from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the last the first edge direction, interpolation calculation is carried out to the original image vegetarian refreshments in the last the first edge direction, obtains the actual pixel value of pending interpolating pixel point;
If there is not the last the first edge direction in pending interpolating pixel point, then from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the principal direction of the first edge direction and the principal direction of the second edge direction, respectively interpolation calculation is carried out to the original image vegetarian refreshments in the principal direction of the first edge direction and the principal direction of the second edge direction, obtain the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
Suppose that above-mentioned is the 4th kind of possible embodiment, then, in the 5th kind of possible embodiment provided based on the 4th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to multiple original image vegetarian refreshments, determine the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, comprising:
Obtain the color value of adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction respectively;
Difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction;
The absolute value of difference between the color value obtaining adjacent two original image vegetarian refreshments in the first edge direction and the second edge direction;
Using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the first edge direction as the intensity level in the first edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in the second edge direction as the intensity level in the second edge direction.
Suppose that above-mentioned is the 5th kind of possible embodiment, then, in the 6th kind of possible embodiment provided based on the 5th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the intensity level of pending interpolating pixel o'clock in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction, comprising:
Obtain the ratio of the intensity level in the first edge direction and the second edge direction;
According to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction.
Suppose that above-mentioned is the 6th kind of possible embodiment, then, in the 7th kind of possible embodiment provided based on the 6th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
The ratio of the intensity level in the first edge direction got and the second edge direction is:
R
1=(1+G
1)/(1+G
2);
Wherein, R
1be the ratio of the intensity level in the first edge direction and the second edge direction, G
1be the intensity level in the first edge direction, G
2it is the intensity level in the second edge direction.
Suppose that above-mentioned is the 7th kind of possible embodiment, then, in the 8th kind of possible embodiment provided based on the 7th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the ratio of the intensity level in the first edge direction and the second edge direction, judge whether pending interpolating pixel point exists the last the first edge direction, comprising:
If the ratio of the intensity level in the first edge direction and the second edge direction is not equal to the first predetermined threshold value, then determine that pending interpolating pixel point exists the last the first edge direction;
If the ratio of the intensity level in the first edge direction and the second edge direction equals the first predetermined threshold value, then determine that pending interpolating pixel point does not exist the last the first edge direction.
Suppose that above-mentioned is the 8th kind of possible embodiment, then, in the 9th kind of possible embodiment provided based on the 8th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Compute weighted to the interpolation calculation result in the principal direction of the first edge direction and the principal direction of the second edge direction, the actual pixel value of the pending interpolating pixel point obtained is:
P
1=(w
1*value
1+w
2*value
2)/(w
1+w
2);
Wherein, P
1for the actual pixel value of pending interpolating pixel point, w
1be the first edge direction principal direction on weighted value corresponding to interpolation calculation result, value
1be the first edge direction principal direction on interpolation calculation result, w2 is weighted value corresponding to interpolation calculation result in the principal direction of the second edge direction, value
2be the second edge direction principal direction on interpolation calculation result, k is designated parameter.
Suppose that above-mentioned is the 9th kind of possible embodiment, then, in the tenth kind of possible embodiment provided based on the 9th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Pending interpolating pixel selects the 3rd band of position being positioned at and specifying original image vegetarian refreshments, then adopt the 3rd account form to calculate the actual pixel value of pending interpolating pixel point, comprising:
Obtain the 3rd edge direction and the 4th edge direction of pending interpolating pixel point;
Centered by pending interpolating pixel point, enlarged image is chosen multiple pixel, pixel comprises original image vegetarian refreshments and interpolating pixel point;
According to multiple pixel, determine the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction;
According to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction;
If there is the last the second edge direction in pending interpolating pixel point, then according to multiple pixel, obtain the pixel in the last the second edge direction, interpolation calculation is carried out to the pixel in the last the second edge direction, obtains the actual pixel value of pending interpolating pixel point;
If there is not the last the second edge direction in pending interpolating pixel point, then according to many pixels, obtain the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, respectively interpolation calculation is carried out to the pixel in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, obtain the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction is computed weighted, obtain the actual pixel value of pending interpolating pixel point.
Suppose that above-mentioned is the tenth kind of possible embodiment, then, in the 11 kind of possible embodiment provided based on the tenth kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to multiple pixel, determine the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, comprising:
Obtain the color value of adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction respectively;
Interpolation between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction;
The absolute value of interpolation between the color value obtaining adjacent two original image vegetarian refreshments and interpolating pixel point in the 3rd edge direction and the 4th edge direction;
Using the absolute value sum of interpolation between the color value of two original image vegetarian refreshments adjacent in the 3rd edge direction and interpolating pixel point as the intensity level in the 3rd edge direction, and using the absolute value sum of interpolation between the color value of two original image vegetarian refreshments adjacent in the 4th edge direction and interpolating pixel point as the intensity level in the 4th edge direction.
Suppose that above-mentioned is the 11 kind of possible embodiment, then, in the 12 kind of possible embodiment provided based on the 11 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the intensity level of pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction, comprising:
Obtain the ratio of the intensity level in the 3rd edge direction and the 4th edge direction;
According to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, judge whether pending interpolating pixel point exists the last the second edge direction.
Suppose that above-mentioned is the 12 kind of possible embodiment, then, in the 13 kind of possible embodiment provided based on the 12 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
The ratio of the intensity level in the 3rd edge direction got and the 4th edge direction is:
R
2=(1+G
3)/(1+G
4);
Wherein, R
2be the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, G
3be the intensity level in the 3rd edge direction, G
4it is the intensity level in the 4th edge direction.
Suppose that above-mentioned is the 13 kind of possible embodiment, then, in the 14 kind of possible embodiment provided based on the 13 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to the ratio of the intensity level in the 3rd edge direction and the 4th edge direction, determine whether pending interpolating pixel point exists the last the second edge direction, comprising:
If the ratio of the intensity level in the 3rd edge direction and the 4th edge direction is not equal to the second predetermined threshold value, then determine that pending interpolating pixel point exists the last the second edge direction;
If ratio equals the second predetermined threshold value, then determine that pending interpolating pixel point does not exist the last the second edge direction.
Suppose that above-mentioned is the 14 kind of possible embodiment, then, in the 15 kind of possible embodiment provided based on the 14 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
According to multiple pixel, obtain the pixel in the last the second edge direction, comprising:
If multiple pixel exists original image vegetarian refreshments in the last the second edge direction, then obtain the original image vegetarian refreshments in the last the second edge direction;
If multiple pixel does not exist original image vegetarian refreshments in the last the second edge direction, then obtain the interpolating pixel point in the last the second edge direction.
Suppose that above-mentioned is the 15 kind of possible embodiment, then, in the 16 kind of possible embodiment provided based on the 15 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Compute weighted to the interpolation calculation result in the principal direction of the 3rd edge direction and the principal direction of the 4th edge direction, the actual pixel value of the pending interpolating pixel point obtained is:
P
2=(w
3*value
3+w
4*value
4)/(w
3+w
4);
Wherein, P
2for the actual pixel value of pending interpolating pixel point, w
3be the 3rd edge direction principal direction on weighted value corresponding to interpolation calculation result, value
3be the 3rd edge direction principal direction on interpolation calculation result, w
4be the 4th edge direction principal direction on weighted value corresponding to interpolation calculation result, value
4be the 4th edge direction principal direction on interpolation calculation result, k is designated parameter.
Suppose that above-mentioned is the 16 kind of possible embodiment, then, in the 17 kind of possible embodiment provided based on the 16 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
Primary importance region is the upper left corner of specifying original image vegetarian refreshments, and second place region is the lower right corner of specifying original image vegetarian refreshments, and the 3rd band of position is the upper right corner or the lower left corner of specifying original image vegetarian refreshments.
Suppose that above-mentioned is the 17 kind of possible embodiment, then, in the 18 kind of possible embodiment provided based on the 17 kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation:
First edge direction is 45 degree of directions, and the second edge direction is 135 degree of directions, and the 3rd edge direction is 0 degree of direction, and the 4th edge direction is 90 degree of directions.
The computer-readable recording medium that the embodiment of the present invention provides, when calculating the actual pixel value of each interpolating pixel point on enlarged image, consider interpolating pixel and select directivity between original image vegetarian refreshments, the position relationship between original image vegetarian refreshments is selected according to each interpolating pixel, different account forms is adopted to calculate, significantly improve the sharpness of image, make the picture quality after processing better.
A kind of graphical user interface is provided in the embodiment of the present invention, this graphical user interface is used on image processing terminal, and this execution image processing terminal comprises touch-screen display, storer and one or more than one processor for performing one or more than one program; This graphical user interface comprises:
Obtain the position coordinates of arbitrary pending interpolating pixel point on enlarged image, pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
According to position coordinates, determine that pending interpolating pixel is selected and specifies the position relationship between original image vegetarian refreshments;
Select according to pending interpolating pixel and specify the position relationship between original image vegetarian refreshments, adopting the account form corresponding to position relationship, calculating the actual pixel value of pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
The graphical user interface that the embodiment of the present invention provides, when calculating the actual pixel value of each interpolating pixel point on enlarged image, consider interpolating pixel and select directivity between original image vegetarian refreshments, the position relationship between original image vegetarian refreshments is selected according to each interpolating pixel, different account forms is adopted to calculate, significantly improve the sharpness of image, make the picture quality after processing better.
It should be noted that: the image processing apparatus that above-described embodiment provides is when processing image, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by image processing apparatus is divided into different functional modules, to complete all or part of function described above.In addition, the image processing apparatus that above-described embodiment provides and image processing method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (15)
1. an image processing method, is characterized in that, described method comprises:
Obtain the position coordinates of arbitrary pending interpolating pixel point on enlarged image, described pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
According to described position coordinates, determine that described pending interpolating pixel selects the position relationship between described appointment original image vegetarian refreshments;
Select the position relationship between described appointment original image vegetarian refreshments according to described pending interpolating pixel, adopt the account form corresponding to described position relationship, calculate the actual pixel value of described pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
2. method according to claim 1, it is characterized in that, the described position relationship selected according to described pending interpolating pixel between described appointment original image vegetarian refreshments, adopt the account form corresponding to described position relationship, calculate the actual pixel value of described pending interpolating pixel point, comprising:
If described pending interpolating pixel selects the primary importance region being positioned at described appointment original image vegetarian refreshments, then the first account form is adopted to calculate the actual pixel value of described pending interpolating pixel point;
If described pending interpolating pixel selects the second place region being positioned at described appointment original image vegetarian refreshments, then the second account form is adopted to calculate the actual pixel value of described pending interpolating pixel point;
If described pending interpolating pixel selects the 3rd band of position being positioned at described appointment original image vegetarian refreshments, then the 3rd account form is adopted to calculate the actual pixel value of described pending interpolating pixel point.
3. method according to claim 2, it is characterized in that, if described pending interpolating pixel selects the primary importance region being positioned at described appointment original image vegetarian refreshments, then adopt the first account form to calculate the actual pixel value of described pending interpolating pixel point, comprising:
Obtain the pixel value selecting nearest original image vegetarian refreshments with described pending interpolating pixel, using the actual pixel value of the pixel value of described original image vegetarian refreshments as described pending interpolating pixel point; Or;
Obtain the pixel value selecting two nearest original image vegetarian refreshments with described pending interpolating pixel, adopt the pixel value of bilinear interpolation algorithm to described two original image vegetarian refreshments to carry out interpolation calculation, obtain the actual pixel value of described pending interpolating pixel point.
4. method according to claim 2, it is characterized in that, if described pending interpolating pixel selects the second place region being positioned at described appointment original image vegetarian refreshments, then adopt the second account form to calculate the actual pixel value of described pending interpolating pixel point, comprising:
Obtain the first edge direction and second edge direction of described pending interpolating pixel point;
Centered by described pending interpolating pixel point, described enlarged image is chosen multiple original image vegetarian refreshments;
According to described multiple original image vegetarian refreshments, determine the intensity level of described pending interpolating pixel point in described first edge direction and described second edge direction;
According to the intensity level of described pending interpolating pixel point in described first edge direction and described second edge direction, judge whether described pending interpolating pixel point exists the last the first edge direction;
If there is the last the first edge direction in described pending interpolating pixel point, then from described multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in described the last the first edge direction, interpolation calculation is carried out to the original image vegetarian refreshments in described the last the first edge direction, obtains the actual pixel value of described pending interpolating pixel point;
If there is not the last the first edge direction in described pending interpolating pixel point, then from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the principal direction of described first edge direction and the principal direction of described second edge direction, respectively interpolation calculation is carried out to the original image vegetarian refreshments in the principal direction of described first edge direction and the principal direction of described second edge direction, obtain the interpolation calculation result in the principal direction of described first edge direction and the principal direction of described second edge direction, interpolation calculation result in the principal direction of described first edge direction and the principal direction of described second edge direction is computed weighted, obtain the actual pixel value of described pending interpolating pixel point.
5. method according to claim 4, is characterized in that, described according to described multiple original image vegetarian refreshments, determines the intensity level of described pending interpolating pixel point in described first edge direction and described second edge direction, comprising:
Obtain the color value of adjacent two original image vegetarian refreshments in described first edge direction and described second edge direction respectively;
Difference between the color value obtaining adjacent two original image vegetarian refreshments in described first edge direction and described second edge direction;
The absolute value of difference between the color value obtaining adjacent two original image vegetarian refreshments in described first edge direction and described second edge direction;
Using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in described first edge direction as the intensity level in described first edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in described second edge direction as the intensity level in described second edge direction.
6. method according to claim 2, it is characterized in that, if described pending interpolating pixel selects the 3rd band of position being positioned at described appointment original image vegetarian refreshments, then adopt the 3rd account form to calculate the actual pixel value of described pending interpolating pixel point, comprising:
Obtain the 3rd edge direction and the 4th edge direction of described pending interpolating pixel point;
Centered by described pending interpolating pixel point, described enlarged image chooses multiple pixel, described pixel comprises original image vegetarian refreshments and interpolating pixel point;
According to described multiple pixel, determine the intensity level of described pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction;
According to the intensity level of described pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether described pending interpolating pixel point exists the last the second edge direction;
If there is described the last the second edge direction in described pending interpolating pixel point, then according to described multiple pixel, obtain the pixel in described the last the second edge direction, interpolation calculation is carried out to the pixel in described the last the second edge direction, obtains the actual pixel value of described pending interpolating pixel point;
If there is not described the last the second edge direction in described pending interpolating pixel point, then according to described multiple pixel, obtain the pixel in the principal direction of described 3rd edge direction and the principal direction of the 4th edge direction, respectively interpolation calculation is carried out to the pixel in the principal direction of described 3rd edge direction and the principal direction of described 4th edge direction, obtain the interpolation calculation result in the principal direction of described 3rd edge direction and the principal direction of described 4th edge direction, interpolation calculation result in the principal direction of described 3rd edge direction and the principal direction of the 4th edge direction is computed weighted, obtain the actual pixel value of described pending interpolating pixel point.
7. method according to claim 5, is characterized in that, described according to described multiple pixel, obtains the pixel in described the last the second edge direction, comprising:
If described multiple pixel exists original image vegetarian refreshments in described the last the second edge direction, then obtain the original image vegetarian refreshments in described the last the second edge direction;
If described multiple pixel does not exist original image vegetarian refreshments in described the last the second edge direction, then obtain the interpolating pixel point in described the last the second edge direction.
8. the method according to claim arbitrary in claim 2 to 7, it is characterized in that, described primary importance region is the upper left corner of described appointment original image vegetarian refreshments, described second place region is the lower right corner of described appointment original image vegetarian refreshments, and described 3rd band of position is the upper right corner or the lower left corner of described appointment original image vegetarian refreshments;
Described first edge direction is 45 degree of directions, and described second edge direction is 135 degree of directions, and described 3rd edge direction is 0 degree of direction, and described 4th edge direction is 90 degree of directions.
9. an image processing apparatus, is characterized in that, described device comprises:
Acquisition module, for obtaining the position coordinates of arbitrary pending interpolating pixel point on enlarged image, described pending interpolating pixel selects the pixel for producing when specifying original image vegetarian refreshments to amplify preset multiple;
Determination module, for according to described position coordinates, determines that described pending interpolating pixel selects the position relationship between described appointment original image vegetarian refreshments;
Computing module, for selecting the position relationship between described appointment original image vegetarian refreshments according to described pending interpolating pixel, adopts the account form corresponding to described position relationship, calculates the actual pixel value of described pending interpolating pixel point;
Wherein, diverse location relation corresponds to different account form.
10. device according to claim 9, is characterized in that, described computing module, comprising:
First computing unit, during for selecting the primary importance region being positioned at described appointment original image vegetarian refreshments when described pending interpolating pixel, adopts the first account form to calculate the actual pixel value of described pending interpolating pixel point;
Second computing unit, during for selecting the second place region being positioned at described appointment original image vegetarian refreshments when described pending interpolating pixel, adopts the second account form to calculate the actual pixel value of described pending interpolating pixel point;
3rd computing unit, during for selecting the 3rd band of position being positioned at described appointment original image vegetarian refreshments when described pending interpolating pixel, adopts the 3rd account form to calculate the actual pixel value of described pending interpolating pixel point.
11. devices according to claim 10, it is characterized in that, described first computing unit, for obtaining the pixel value selecting nearest original image vegetarian refreshments with described pending interpolating pixel, using the actual pixel value of the pixel value of described original image vegetarian refreshments as described pending interpolating pixel point; Or;
Described first computing unit, for obtaining the pixel value selecting two nearest original image vegetarian refreshments with described pending interpolating pixel, adopt the pixel value of bilinear interpolation algorithm to described two original image vegetarian refreshments to carry out interpolation calculation, obtain the actual pixel value of described pending interpolating pixel point.
12. devices according to claim 10, is characterized in that, described second computing unit, for obtaining the first edge direction and second edge direction of described pending interpolating pixel point, centered by described pending interpolating pixel point, described enlarged image is chosen multiple original image vegetarian refreshments, according to described multiple original image vegetarian refreshments, determine the intensity level of described pending interpolating pixel point in described first edge direction and described second edge direction, according to the intensity level of described pending interpolating pixel point in described first edge direction and described second edge direction, judge whether described pending interpolating pixel point exists the last the first edge direction, when there is the last the first edge direction in described pending interpolating pixel point, from described multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in described the last the first edge direction, interpolation calculation is carried out to the original image vegetarian refreshments in described the last the first edge direction, obtains the actual pixel value of described pending interpolating pixel point, when there is not the last the first edge direction in described pending interpolating pixel point, from multiple original image vegetarian refreshments, obtain the original image vegetarian refreshments be positioned in the principal direction of described first edge direction and the principal direction of described second edge direction, respectively interpolation calculation is carried out to the original image vegetarian refreshments in the principal direction of described first edge direction and the principal direction of described second edge direction, obtain the interpolation calculation result in the principal direction of described first edge direction and the principal direction of described second edge direction, interpolation calculation result in the principal direction of described first edge direction and the principal direction of described second edge direction is computed weighted, obtain the actual pixel value of described pending interpolating pixel point.
13. devices according to claim 12, is characterized in that, described second computing unit, for obtaining the color value of adjacent two original image vegetarian refreshments in described first edge direction and described second edge direction respectively; Difference between the color value obtaining adjacent two original image vegetarian refreshments in described first edge direction and described second edge direction; The absolute value of difference between the color value obtaining adjacent two original image vegetarian refreshments in described first edge direction and described second edge direction; Using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in described first edge direction as the intensity level in described first edge direction, and using the absolute value sum of difference between the color value of two original image vegetarian refreshments adjacent in described second edge direction as the intensity level in described second edge direction.
14. devices according to claim 10, is characterized in that, described 3rd computing unit, for obtaining the 3rd edge direction and the 4th edge direction of described pending interpolating pixel point, centered by described pending interpolating pixel point, described enlarged image chooses multiple pixel, described pixel comprises original image vegetarian refreshments and interpolating pixel point, according to described multiple pixel, determine the intensity level of described pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, according to the intensity level of described pending interpolating pixel o'clock in the 3rd edge direction and the 4th edge direction, judge whether described pending interpolating pixel point exists the last the second edge direction, when there is described the last the second edge direction in described pending interpolating pixel point, according to described multiple pixel, obtain the pixel in described the last the second edge direction, interpolation calculation is carried out to the pixel in described the last the second edge direction, obtains the actual pixel value of described pending interpolating pixel point, when there is not described the last the second edge direction in described pending interpolating pixel point, according to described multiple pixel, obtain the pixel in the principal direction of described 3rd edge direction and the principal direction of the 4th edge direction, respectively interpolation calculation is carried out to the pixel in the principal direction of described 3rd edge direction and the principal direction of described 4th edge direction, obtain the interpolation calculation result in the principal direction of described 3rd edge direction and the principal direction of described 4th edge direction, interpolation calculation result in the principal direction of described 3rd edge direction and the principal direction of the 4th edge direction is computed weighted, obtain the actual pixel value of described pending interpolating pixel point.
15. devices according to claim 14, is characterized in that, described 3rd computing unit, for when described multiple pixel exists original image vegetarian refreshments in described the last the second edge direction, obtain the original image vegetarian refreshments in described the last the second edge direction; When described multiple pixel does not exist original image vegetarian refreshments in described the last the second edge direction, obtain the interpolating pixel point in described the last the second edge direction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510884587.1A CN105447819B (en) | 2015-12-04 | 2015-12-04 | Image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510884587.1A CN105447819B (en) | 2015-12-04 | 2015-12-04 | Image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105447819A true CN105447819A (en) | 2016-03-30 |
CN105447819B CN105447819B (en) | 2020-01-10 |
Family
ID=55557953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510884587.1A Active CN105447819B (en) | 2015-12-04 | 2015-12-04 | Image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105447819B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204444A (en) * | 2016-06-29 | 2016-12-07 | 青岛海信移动通信技术股份有限公司 | The method and apparatus that a kind of image amplifies |
CN106780383A (en) * | 2016-12-13 | 2017-05-31 | 长春理工大学 | The depth image enhancement method of TOF camera |
CN107610052A (en) * | 2017-09-22 | 2018-01-19 | 维沃移动通信有限公司 | A kind of super resolution ratio reconstruction method and mobile terminal |
WO2018040437A1 (en) * | 2016-08-31 | 2018-03-08 | 广州视睿电子科技有限公司 | Picture processing method and apparatus |
CN108200470A (en) * | 2017-12-20 | 2018-06-22 | 中国联合网络通信集团有限公司 | A kind of video code rate method of adjustment and equipment |
CN108401125A (en) * | 2018-02-28 | 2018-08-14 | 京东方科技集团股份有限公司 | Video data handling procedure, device and storage medium |
CN110363723A (en) * | 2019-07-16 | 2019-10-22 | 安健科技(广东)有限公司 | Improve the image processing method and device of image boundary effect |
CN111105358A (en) * | 2018-10-26 | 2020-05-05 | 阿里巴巴集团控股有限公司 | Image processing method and device |
CN113808012A (en) * | 2020-06-17 | 2021-12-17 | 京东方科技集团股份有限公司 | Image processing method, computer device, and computer-readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272491A (en) * | 2008-04-10 | 2008-09-24 | 西安电子科技大学 | Image interpolation method based on video object and area guidance |
CN102609900A (en) * | 2012-01-16 | 2012-07-25 | 北京环星基业数码科技发展有限公司 | Image interpolation algorithm based on region consistency |
CN102629366A (en) * | 2012-03-05 | 2012-08-08 | 许丹 | Image processing method and apparatus thereof |
CN103646379A (en) * | 2013-11-28 | 2014-03-19 | 青岛海信信芯科技有限公司 | A method and an apparatus for amplifying images |
-
2015
- 2015-12-04 CN CN201510884587.1A patent/CN105447819B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272491A (en) * | 2008-04-10 | 2008-09-24 | 西安电子科技大学 | Image interpolation method based on video object and area guidance |
CN102609900A (en) * | 2012-01-16 | 2012-07-25 | 北京环星基业数码科技发展有限公司 | Image interpolation algorithm based on region consistency |
CN102629366A (en) * | 2012-03-05 | 2012-08-08 | 许丹 | Image processing method and apparatus thereof |
CN103646379A (en) * | 2013-11-28 | 2014-03-19 | 青岛海信信芯科技有限公司 | A method and an apparatus for amplifying images |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204444B (en) * | 2016-06-29 | 2019-06-25 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus of image amplification |
CN106204444A (en) * | 2016-06-29 | 2016-12-07 | 青岛海信移动通信技术股份有限公司 | The method and apparatus that a kind of image amplifies |
WO2018040437A1 (en) * | 2016-08-31 | 2018-03-08 | 广州视睿电子科技有限公司 | Picture processing method and apparatus |
CN106780383A (en) * | 2016-12-13 | 2017-05-31 | 长春理工大学 | The depth image enhancement method of TOF camera |
CN106780383B (en) * | 2016-12-13 | 2019-05-24 | 长春理工大学 | The depth image enhancement method of TOF camera |
CN107610052A (en) * | 2017-09-22 | 2018-01-19 | 维沃移动通信有限公司 | A kind of super resolution ratio reconstruction method and mobile terminal |
CN108200470A (en) * | 2017-12-20 | 2018-06-22 | 中国联合网络通信集团有限公司 | A kind of video code rate method of adjustment and equipment |
US11356634B2 (en) | 2018-02-28 | 2022-06-07 | Boe Technology Group Co., Ltd. | Method of processing video data, apparatus for processing video data, display apparatus, and computer-program product |
CN108401125A (en) * | 2018-02-28 | 2018-08-14 | 京东方科技集团股份有限公司 | Video data handling procedure, device and storage medium |
CN108401125B (en) * | 2018-02-28 | 2020-04-21 | 京东方科技集团股份有限公司 | Video data processing method, device and storage medium |
CN111105358A (en) * | 2018-10-26 | 2020-05-05 | 阿里巴巴集团控股有限公司 | Image processing method and device |
CN111105358B (en) * | 2018-10-26 | 2023-06-09 | 阿里巴巴集团控股有限公司 | Image processing method and device |
CN110363723A (en) * | 2019-07-16 | 2019-10-22 | 安健科技(广东)有限公司 | Improve the image processing method and device of image boundary effect |
CN110363723B (en) * | 2019-07-16 | 2021-06-29 | 安健科技(广东)有限公司 | Image processing method and device for improving image boundary effect |
WO2021254381A1 (en) * | 2020-06-17 | 2021-12-23 | 京东方科技集团股份有限公司 | Image processing method and apparatus, electronic device, and computer-readable storage medium |
CN113808012A (en) * | 2020-06-17 | 2021-12-17 | 京东方科技集团股份有限公司 | Image processing method, computer device, and computer-readable storage medium |
CN113808012B (en) * | 2020-06-17 | 2024-07-12 | 京东方科技集团股份有限公司 | Image processing method, computer device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105447819B (en) | 2020-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105447819A (en) | Picture processing method and apparatus | |
US10497097B2 (en) | Image processing method and device, computer readable storage medium and electronic device | |
KR101859312B1 (en) | Image processing method and apparatus, and computer device | |
CN103871051B (en) | Image processing method, device and electronic equipment | |
US20150363913A1 (en) | Adaptive filter demosaicizing for super resolution | |
TWI546775B (en) | Image processing method and device | |
CN106296617A (en) | The processing method and processing device of facial image | |
CN103325332B (en) | Page furbishing method, device and equipment | |
CN104679466A (en) | Image display method and device and electronic device | |
CN107507160A (en) | A kind of image interfusion method, terminal and computer-readable recording medium | |
CN112703530B (en) | Image processing method, device, computer equipment and storage medium | |
CN104881844B (en) | Picture combination method and device and terminal equipment | |
CN106296634B (en) | A kind of method and apparatus detecting similar image | |
CN104134043B (en) | Content is hidden, separates method, device and the terminal hidden | |
US20240029627A1 (en) | Driving method, driving device, and display terminal of display panel | |
CN107230065B (en) | Two-dimensional code display method and device and computer readable storage medium | |
CN104463105A (en) | Guide board recognizing method and device | |
CN108269220A (en) | Method and device for positioning digital watermark | |
CN106204552A (en) | The detection method of a kind of video source and device | |
CN107734281A (en) | A kind of image magnification method and mobile terminal | |
CN106296640B (en) | A kind of method and apparatus identifying blurred picture | |
CN105898561A (en) | Video image processing method and video image processing device | |
CN104616333A (en) | Game video processing method and device | |
CN103869977A (en) | Image display method, device and electronic equipment | |
CN106127720A (en) | A kind of method and apparatus shooting enlarged drawing picture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |