CN109698892B - Video image sharpening method and image processing equipment - Google Patents

Video image sharpening method and image processing equipment Download PDF

Info

Publication number
CN109698892B
CN109698892B CN201811639745.7A CN201811639745A CN109698892B CN 109698892 B CN109698892 B CN 109698892B CN 201811639745 A CN201811639745 A CN 201811639745A CN 109698892 B CN109698892 B CN 109698892B
Authority
CN
China
Prior art keywords
value
pixel point
sharpness
sharpening
abs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811639745.7A
Other languages
Chinese (zh)
Other versions
CN109698892A (en
Inventor
严卫健
刘俊秀
邹咪
袁扬智
石岭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaiyang Electronics Co ltd
Original Assignee
Shenzhen Kaiyang Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaiyang Electronics Co ltd filed Critical Shenzhen Kaiyang Electronics Co ltd
Priority to CN201811639745.7A priority Critical patent/CN109698892B/en
Publication of CN109698892A publication Critical patent/CN109698892A/en
Application granted granted Critical
Publication of CN109698892B publication Critical patent/CN109698892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/20Circuitry for controlling amplitude response
    • H04N5/205Circuitry for controlling amplitude response for correcting amplitude versus frequency characteristic
    • H04N5/208Circuitry for controlling amplitude response for correcting amplitude versus frequency characteristic for compensating for attenuation of high frequency components, e.g. crispening, aperture distortion correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise

Abstract

The invention is applicable to the field of image processing, and provides a video image sharpening method and image processing equipment. The method comprises the following steps: performing line cache on the input pixel point information to obtain pixel points in an N ﹡ N area; multiplying each pixel point by the corresponding coefficient respectively, and accumulating to obtain an accumulated value; calculating the acutance of the central pixel point in a plurality of directions respectively; taking an absolute value of the accumulated value to obtain different gain coefficients at different boundaries, multiplying the gain coefficient by a gain adjustment value to obtain a new gain coefficient, multiplying the accumulated value by the new gain coefficient, and adding the multiplied value to the original central pixel point to obtain a primary sharpening value; comparing the acutances of the central pixel points in multiple directions, and taking the maximum value and multiplying the maximum value by a secondary sharpening gain to serve as a secondary sharpening value; and adding the primary sharpening value and the secondary sharpening value to the original central pixel point to obtain a sharpening result of the central pixel point. The invention has better sharpening effect, can sharpen weak boundaries strongly, can press the sharpening gain to the minimum for noise, and avoids the noise of over-amplified images.

Description

Video image sharpening method and image processing equipment
Technical Field
The invention belongs to the field of image processing, and particularly relates to a video image sharpening method and image processing equipment.
Background
The image information collected by the video camera may include noise information due to physical limitations of the image sensor itself, the operating environment, the temperature influence of the image sensor, and other factors. In the transmission and processing process of the video image, the video image is often subjected to processing such as smoothing filtering, although noise can be suppressed, the contour and details of the video image are inevitably blurred, and the contour and details of the video image are unclear. The outline of the image can be compensated through image sharpening, the edge, the detail and the gray level jump part of the image are enhanced, and the image becomes clearer.
The video image sharpening method in the prior art is mainly characterized in that edge information is well preserved by overlapping fuzzy algorithms, and although the algorithms have good preservation effect on strong edges in an image, the algorithms are not obvious on weak edges in the image. In addition, image sharpening enhances the edges and details of a video image, and simultaneously, noise of the video image is excessively amplified, thereby affecting the quality of the video image.
Disclosure of Invention
The invention aims to provide a video image sharpening method, a computer readable storage medium and an image processing device, and aims to solve the problems that the video image sharpening method in the prior art is not obvious to weak edges in an image, and noise of the video image is excessively amplified while the edges and details of the video image are enhanced, so that the quality of the video image is influenced.
In a first aspect, the present invention provides a method for sharpening a video image, the method comprising:
performing line cache on input pixel point information to obtain pixel points in an N ﹡ N area, wherein N is an integer greater than 1;
multiplying each pixel point in the N ﹡ N region by a corresponding coefficient respectively, and accumulating all pixel points in the N ﹡ N region multiplied by the corresponding coefficient to obtain an accumulated value, wherein the accumulated value represents the boundary information of the central pixel point; meanwhile, calculating the acutance of the central pixel point of the N ﹡ N area in multiple directions respectively;
taking an absolute value of the accumulated value, obtaining different gain coefficients at different boundaries according to the absolute value of the accumulated value, multiplying the gain coefficients by a gain adjustment value to obtain new gain coefficients, multiplying the accumulated value by the new gain coefficients, and adding the multiplied values to original central pixel points of the N x N area to obtain a primary sharpening value; comparing the acutances of the central pixel points of the N-by-N area in multiple directions, and multiplying the maximum value by a secondary sharpening gain to serve as a secondary sharpening value;
and adding the primary sharpening value and the secondary sharpening value to the original central pixel point of the N ﹡ N area to obtain a sharpening result of the central pixel point of the N ﹡ N area.
In a second aspect, the invention provides a computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the video image sharpening method as described above.
In a third aspect, the present invention provides an image processing apparatus comprising:
one or more processors;
a memory; and
one or more computer programs, the processor and the memory being connected by a bus, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, which when executed perform the steps of the method of video image sharpening as described above.
In the invention, because the pixels are sharpened in two stages, the sharpening effect is better; and as the accumulated value of the boundary information representing the central pixel point is taken as an absolute value, and different gain coefficients at different boundaries are obtained according to the absolute value of the accumulated value to obtain a primary sharpening value, the weak boundary can be sharpened, the sharpening gain can be reduced to the minimum for noise, and the noise of an image amplified excessively is avoided.
Drawings
Fig. 1 is a flowchart of a video image sharpening method according to an embodiment of the present invention.
FIG. 2 is a graph illustrating a fixed sharpening response.
FIG. 3 is a graphical illustration of an adjustable sharpening response curve.
Fig. 4 is a block diagram of a specific structure of an image processing apparatus according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The first embodiment is as follows:
referring to fig. 1, a video image sharpening method according to an embodiment of the present invention includes the following steps: it should be noted that, if the result is substantially the same, the video image sharpening method of the present invention is not limited to the flow sequence shown in fig. 1.
S101, line caching is carried out on input pixel point information to obtain pixel points in an N ﹡ N area, wherein N is an integer larger than 1.
The pixel information may be a pixel luminance signal or a pixel chrominance signal.
In the first embodiment of the present invention, N is usually 3, 5, or 7, but may be another integer. Overall effect, hardware consumption, etc., N is preferably 5.
Assuming that N is 5, in the pixels in the 5 ﹡ 5 area, D11, D12, D13, D14 and D15 respectively represent the pixels in the first row, D21, D22, D23, D24 and D25 represent the pixels in the second row, D31, D32, D33, D34 and D35 represent the pixels in the third row, D41, D42, D43, D44 and D45 represent the pixels in the fourth row, and D51, D52, D53, D54 and D55 represent the pixels in the fifth row.
S102, multiplying each pixel point in the N ﹡ N area by a corresponding coefficient, and accumulating all pixel points in the N ﹡ N area multiplied by the corresponding coefficient to obtain an accumulated value, wherein the accumulated value represents the boundary information of the central pixel point; meanwhile, the acutances of the central pixel points of the N ﹡ N area in multiple directions are calculated respectively.
In the first embodiment of the present invention, the calculating the sharpness of the center pixel point of the N ﹡ N region in multiple directions respectively may specifically be:
the sharpness of the center pixel point of the N ﹡ N region in 2 directions or 4 directions is calculated respectively, for example, the sharpness of 4 directions includes the sharpness of 0 degree direction, the sharpness of 45 degree direction, the sharpness of 90 degree direction and the sharpness of 135 degree direction. Of course other 4 orientations are possible. The sharpness in 2 directions includes sharpness in a 0-degree direction and sharpness in a 90-degree direction, or sharpness in a 45-degree direction and sharpness in a 135-degree direction.
The calculating of the sharpness of the center pixel point of the N ﹡ N area in one direction specifically comprises the following steps:
filtering a central pixel point of an N ﹡ N area and two pixel points adjacent to the central pixel point in the beta angle direction, wherein the filter coefficients corresponding to the central pixel point, the adjacent first pixel point and the second pixel point are f0, f1 and f2 respectively;
calculating to obtain a new central point pixel value, which is f0, a central pixel point value, which is + f1, a first pixel point value, which is + f2, and a second pixel point value;
and calculating the difference value between the new central point pixel value and all other pixel points in the beta angle direction by combining the sharpness coefficients of each pixel point in the beta angle direction, and taking the difference value as the sharpness of the central pixel point of the N ﹡ N area in the beta angle direction, wherein the difference of the sharpness coefficients of each pixel point in the beta angle direction is preferably 0.
Calculating the sharpness of the center pixel point of the N ﹡ N region in one direction may also specifically include the following steps:
and calculating the difference value between the pixel value of the central point and all other pixel points in the beta angle direction by combining the sharpness coefficients of each pixel point in the beta angle direction, and taking the difference value as the sharpness of the central pixel point of the N ﹡ N area in the beta angle direction, wherein the difference of the sharpness coefficients of all the pixel points in the beta angle direction is preferably 0.
In the first embodiment of the present invention, the coefficients corresponding to the pixel points in the N ﹡ N region need to satisfy the following conditions: the coefficients of the central pixel point and the pixel points adjacent to the central pixel point are positive, the coefficient corresponding to the central pixel point is the largest, and the farther the pixel point is away from the central pixel point, the smaller the corresponding coefficient is. Different algorithms have different coefficients, and for the pixel points in the 5 ﹡ 5 area, the sum of the coefficients corresponding to all the pixel points in the 5 × 5 area is equal to 0.
For example, for the pixel points in the 5 ﹡ 5 area, D33 is a center pixel point, the coefficients corresponding to the pixel points in the first row are-2, -4, -2, the coefficients corresponding to the pixel points in the second row are-4, 0, 8, 0, -4, the coefficients corresponding to the pixel points in the third row are-4, 8, 24, 8, -4, the coefficients corresponding to the pixel points in the fourth row are-4, 0, 8, 0, -4, and the coefficients corresponding to the pixel points in the fifth row are-2, -4, -2.
In the first embodiment of the present invention, for example, when calculating the sharpness of the center pixel point in the 0 degree direction in the 5 ﹡ 5 area, five pixel points D31, D32, D33, D34, and D35 are filtered, and D32, D33, and D34 are first filtered, so that the information of D32 and D34 near D33 can be retained, the filter coefficients corresponding to D33, D32, and D34 are f0, f1, and f2, for example, f0, f1, and f2 are 16, 8, and 8, respectively, or other values, so as to calculate a new center pixel value D33' _0 ═ f0 ═ D33+ f1 ═ D32+ f2 × D34. Then, calculating the difference between the new pixel value D33 ' of the center point and other horizontal pixels, where the sharpness coefficient of D33 ' is coef0, the sharpness coefficients of D31 and D35 are coef1, and the sharpness coefficients of D32 and D34 are coef2, then the 0-degree direction sharpness may be expressed as df0 ═ coef0 × D33 ' -coef1 ═ D31-coef 2 × D32-coef 2 × D34-coef 1 × D35, where the difference of the sharpness coefficients of the pixels in the 0-degree direction is preferably 0; alternatively, the first and second electrodes may be,
when calculating the sharpness of the central pixel point of the 5 ﹡ 5 area in the 0 degree direction, five pixel points of D31, D32, D33, D34 and D35, taking D33 as the central pixel point, and then calculating the difference between the central pixel point and other horizontal pixel points, the sharpness coefficient of D33 is coef0, the sharpness coefficients of D31 and D35 are coef1, and the sharpness coefficients of D32 and D34 are coef2, then the sharpness in the 0 degree direction can be expressed as df0 ═ coef0 ═ D33-coef1 × D31-coef 2 ═ D32-coef 2 × D34-coef 1 × 35, wherein the difference of the sharpness coefficients of the respective pixel points in the 0 degree direction is preferably 0.
When calculating the sharpness of the central pixel point of the 5 ﹡ 5 region in the 45-degree direction, five pixel points D51, D42, D33, D24 and D15 are filtered first by D42, D33 and D24, information of D42 and D24 near D33 can be retained, filter coefficients corresponding to D33, D42 and D24 are f0, f1 and f2, for example, f0, f1 and f2 are respectively 16, 8 and 8, or other values, and a new central-point pixel value D33' _45 ═ f0 ═ D33+ f1 × D42+ f2 × D24 is calculated. Then, calculating the difference between the new center point pixel value D33 ' _45 and other pixels in the 45-degree direction, wherein the sharpness coefficient of D33 ' _45 is coef0, the sharpness coefficients of D51 and D15 are coef1, and the sharpness coefficients of D42 and D24 are coef2, then the 45-degree direction sharpness may be represented as df45 ═ coef0 ═ D33 ' _45-coef1 ═ D51-coef 1 × D15-coef 2 × D42-coef 2 × D24, wherein the difference between the sharpness coefficients of the pixels in the 45-degree direction is preferably 0; alternatively, the first and second electrodes may be,
when calculating the sharpness of the central pixel point of the 5 ﹡ 5 region in the 45 degree direction, five pixel points D51, D42, D33, D24 and D15 are calculated, D33 is taken as the central pixel point, then the difference between the central pixel point and other pixel points in the 45 degree direction is calculated, the sharpness coefficient of D33 is coef0, the sharpness coefficients of D51 and D15 are coef1, the sharpness coefficients of D42 and D24 are coef2, the sharpness in the 45 degree direction can be expressed as df45 ═ coef0 ═ D33-coef1 ═ D51-coef 1 ═ D15-coef 2 × D42-coef 2 × D24, wherein the difference between the sharpness coefficients of the respective pixel points in the 45 degree direction is preferably 0.
When calculating the sharpness of the central pixel point of the 5 ﹡ 5 region in the 90-degree direction, five pixel points D13, D23, D33, D43 and D53 are filtered first by D23, D33 and D43, information of D23 and D43 near D33 can be retained, filter coefficients corresponding to D33, D23 and D43 are f0, f1 and f2, for example, f0, f1 and f2 are respectively 2, 1 and 1, or other values, and a new central-point pixel value D33' _90 ═ f0 ═ D33+ f1 × D23+ f2 × D43 is calculated. Then, calculating the difference between the new center point pixel value D33 ' _90 and other vertical pixels, wherein the sharpness coefficients of D33 ' _90 are coef0, the sharpness coefficients coef1 of D13 and D53, and the sharpness coefficients coef2 of D23 and D43, then the 90-degree sharpness may be expressed as df90 ═ coef0 ═ D33 ' _90-coef1 ═ D13-coef 1 × D53-coef 2 × D23-coef 2 × D43, wherein the difference between the sharpness coefficients of the pixels in the 90-degree direction is preferably 0; alternatively, the first and second electrodes may be,
when calculating the sharpness of the central pixel point of the 5 ﹡ 5 area in the 90-degree direction, five pixel points D13, D23, D33, D43 and D53, taking D33 as the central pixel point, and then calculating the difference between the central pixel point and other pixel points in the 90-degree direction, the sharpness coefficients of D33 are coef0, D13 and the sharpness coefficients coef1 of D53, and the sharpness coefficients coef2 of D23 and D43, then the sharpness in the 90-degree direction can be expressed as df90 ═ coef0 ═ D33-coef1 × D13-coef 1 ═ D53-coef 2 × 23-coef 2 × 43, wherein the difference of the sharpness coefficients of the respective pixel points in the 90-degree direction is preferably 0.
When calculating the sharpness of the central pixel point of the 5 ﹡ 5 region in the 135-degree direction, five pixel points D11, D22, D33, D44 and D55 are filtered first by D22, D33 and D44, information of D22 and D44 near D33 can be retained, filter coefficients corresponding to D33, D22 and D44 are f0, f1 and f2, for example, f0, f1 and f2 are respectively 1, 2 and 1, or other values, and a new central-point pixel value D33' _135 ═ f0 ═ D33+ f1 × D22+ f2 × D44 is calculated. Then, the difference between the new pixel value D33 ' _135 of the center point and other pixels in 135 degree direction is calculated, the sharpness coefficient of D33 ' _135 is coef0, the sharpness coefficients coef1 of D11 and D55, and the sharpness coefficients coef2 of D22 and D33, then the 135 degree direction sharpness can be expressed as df135 ═ coef0 ═ D33 ' _135-coef1 × D11-coef 1 × D55-coef 2 × D22-coef 2 × D33, wherein the difference between the coefficients of the pixels in 135 degree direction is preferably 0, or,
when calculating the sharpness of the center pixel point of the 5 ﹡ 5 area in the 135-degree direction, five pixel points D11, D22, D33, D44 and D55, taking D33 as the center pixel point, and then calculating the difference between the center pixel point and other pixel points in the 135-degree direction, wherein the sharpness coefficients of D33 are coef0, sharpness coefficients coef1 of D11 and D55, and sharpness coefficients coef2 of D22 and D33, the sharpness in the 135-degree direction can be expressed as df135 ═ coef0 ═ D33-coef1 ═ D11-coef 1 ═ D55-coef 2 × D22-coef 2 × D33, and the difference of the sharpness coefficients of the respective pixel points in the 135-degree direction is preferably 0.
S103, taking an absolute value of the accumulated value, obtaining different gain coefficients at different boundaries according to the absolute value of the accumulated value, multiplying the gain coefficients by a gain adjustment value to obtain new gain coefficients, multiplying the accumulated value by the new gain coefficients, and adding the multiplied values to original central pixel points in an N ﹡ N area to obtain a primary sharpening value; and (4) comparing the acutances of the central pixel points of the N ﹡ N area in multiple directions, taking the maximum value and multiplying the maximum value by a secondary sharpening gain to serve as a secondary sharpening value.
The different gain coefficients obtained at different boundaries according to the absolute value of the accumulated value may specifically be:
the table look-up process is performed on the absolute value of the accumulated value, the table is a corresponding relation table of the absolute value of the accumulated value and the gain coefficient, and the response curves of the table are shown in fig. 2 and fig. 3. The response curve represents that the sharpening processing of different intensities is carried out on the boundary and the contour of different intensities. The corresponding relation table can be adjusted according to practical application, different sharpening degrees can be adjusted, strong sharpening can be carried out on weak boundaries, and sharpening gain is pressed to be minimum for strong noise. It can be seen from the figure that when there is no boundary or the boundary information itself is strong, the sharpening coefficient is small, and when the boundary information is weak or not strong, the sharpening coefficient is large, and the boundary information can be improved. Furthermore, the response curve may be adjusted to adjust the sharpening of that portion of the boundary information. In addition, because noise generally exists in dark noise of a scene with dark brightness or white noise with a very obvious boundary, the sharpening coefficient of the two kinds of noise is small, and the noise cannot be amplified excessively.
In the first embodiment of the present invention, when the new gain coefficient is greater than the preset maximum value, the value of the new gain coefficient is adjusted to be smaller than the preset maximum value.
The comparison of the sharpness of the center pixel point of the N ﹡ N region in multiple directions, taking the maximum value and then multiplying the maximum value by the secondary sharpening gain as the secondary sharpening value may specifically be: and (3) comparing the sharpness of the central pixel point of the N ﹡ N area in 4 directions, taking the maximum value and multiplying the maximum value by a secondary sharpening gain to serve as a secondary sharpening value.
The comparison of the sharpness of the center pixel point in the N ﹡ N region in 4 directions, taking the maximum value and then multiplying the maximum value by the secondary sharpening gain as the secondary sharpening value may specifically be:
after obtaining 0-degree direction sharpness df0, 45-degree direction sharpness df45, 90-degree direction sharpness df90 and 135-degree direction sharpness df135, respectively taking values of absolute values as abs _ df0, abs _ df45, abs _ df90 and abs _ df135, respectively, obtaining abs _ df 0-abs _ df90 and abs _ df 45-abs _ df135, respectively, taking the absolute values as abs _ dlt1 and abs _ dlt2, respectively, comparing the sizes of abs _ dlt1 and abs _ dlt2, if abs _ dlt1 is large, continuing to compare the sizes of abs _ df0 and abs _ df90, if abs _ df0 is large, further multiplying df0 by a secondary sharpening gain as a secondary sharpening value, and if abs _ df90 is large, further multiplying the secondary sharpening gain as a secondary sharpening gain 90; if abs _ dll 2 is large, continue to compare the sizes of abs _ df45 and abs _ df135, if abs _ df90 is large, take df90 and multiply by the secondary sharpening gain as the secondary sharpening value, and if abs _ df135 is large, take df135 and multiply by the secondary sharpening gain as the secondary sharpening value.
And S104, adding the primary sharpening value and the secondary sharpening value to the original central pixel point of the N ﹡ N area to obtain a sharpening result of the central pixel point of the N ﹡ N area.
Example two:
the second embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the video image sharpening method according to the first embodiment of the present invention are implemented.
Example three:
fig. 4 is a block diagram showing a specific structure of an image processing apparatus according to a third embodiment of the present invention, and an image processing apparatus 100 includes: one or more processors 101, a memory 102, and one or more computer programs, wherein the processors 101 and the memory 102 are connected by a bus, the one or more computer programs are stored in the memory 102 and configured to be executed by the one or more processors 101, and the processor 101 implements the steps of the video image sharpening method as provided in the first embodiment of the present invention when executing the computer programs.
The image processing device provided by the third embodiment of the invention can be a video camera and the like.
In the invention, because the pixels are sharpened in two stages, the sharpening effect is better; and as the accumulated value of the boundary information representing the central pixel point is taken as an absolute value, and different gain coefficients at different boundaries are obtained according to the absolute value of the accumulated value to obtain a primary sharpening value, the weak boundary can be sharpened, the sharpening gain can be reduced to the minimum for noise, and the noise of an image amplified excessively is avoided.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A method for sharpening a video image, the method comprising:
performing line cache on input pixel point information to obtain pixel points in an N ﹡ N area, wherein N is an integer greater than 1;
multiplying each pixel point in the N ﹡ N region by a corresponding coefficient respectively, and accumulating all pixel points in the N ﹡ N region multiplied by the corresponding coefficient to obtain an accumulated value, wherein the accumulated value represents the boundary information of the central pixel point; meanwhile, calculating the acutance of the central pixel point of the N ﹡ N area in multiple directions respectively;
taking an absolute value of the accumulated value, performing table look-up processing on the absolute value of the accumulated value to obtain a gain coefficient, wherein the table is a corresponding relation table of the absolute value of the accumulated value and the gain coefficient, multiplying the gain coefficient by a gain adjustment value to obtain a new gain coefficient, multiplying the accumulated value by the new gain coefficient, and adding the multiplied value to the original central pixel point of the N x N area to obtain a primary sharpening value; comparing the acutances of the central pixel points of the N-by-N area in multiple directions, and multiplying the maximum value by a secondary sharpening gain to serve as a secondary sharpening value;
adding a primary sharpening value and a secondary sharpening value to the original central pixel point of the N ﹡ N area to obtain a sharpening result of the central pixel point of the N ﹡ N area;
calculating the sharpness of the center pixel point of the N ﹡ N region in one direction specifically includes:
filtering a central pixel point of an N ﹡ N area and two pixel points adjacent to the central pixel point in the beta angle direction, wherein the filter coefficients corresponding to the central pixel point, the adjacent first pixel point and the second pixel point are f0, f1 and f2 respectively;
calculating to obtain a new central point pixel value, which is f0, a central pixel point value, which is + f1, a first pixel point value, which is + f2, and a second pixel point value;
calculating the difference between the new central point pixel value and all other pixel points in the beta angle direction by combining the sharpness coefficients of each pixel point in the beta angle direction, and taking the difference as the sharpness of the central pixel point of the N ﹡ N area in the beta angle direction, wherein the sum of the sharpness coefficients of each pixel point in the beta angle direction is 0;
alternatively, the first and second electrodes may be,
calculating the sharpness of the center pixel point of the N ﹡ N region in one direction specifically includes:
and calculating the difference value between the pixel value of the central point and all other pixel points in the beta angle direction by combining the sharpness coefficient of each pixel point in the beta angle direction, and taking the difference value as the sharpness of the central pixel point in the N ﹡ N region in the beta angle direction.
2. The method of claim 1, wherein the pixel information is a pixel luminance signal or a pixel chrominance signal; n is 3, 5 or 7.
3. The method of claim 1, wherein the calculating the sharpness of the center pixel of the N ﹡ N regions in multiple directions is specifically:
calculating the acutances of the central pixel points of the N ﹡ N area in 2 directions or 4 directions respectively;
the step of comparing the sharpness of the central pixel point of the N ﹡ N area in multiple directions, and taking the maximum value and multiplying the maximum value by the secondary sharpening gain as a secondary sharpening value specifically comprises the following steps: and comparing the acutances of the central pixel points of the N ﹡ N area in 2 directions or 4 directions, taking the maximum value and multiplying the maximum value by a secondary sharpening gain to obtain a secondary sharpening value.
4. The method of claim 3, wherein the 4 directions of sharpness comprise a 0 degree direction of sharpness, a 45 degree direction of sharpness, a 90 degree direction of sharpness, and a 135 degree direction of sharpness; the 2-direction sharpness includes sharpness in a 0-degree direction and sharpness in a 90-degree direction, or sharpness in a 45-degree direction and sharpness in a 135-degree direction.
5. The method as claimed in claim 1, wherein the coefficients corresponding to the pixel points in the N ﹡ N region satisfy the following condition: the coefficients of the central pixel point and the pixel points adjacent to the central pixel point are positive, the coefficient corresponding to the central pixel point is the largest, and the farther the pixel point is away from the central pixel point, the smaller the corresponding coefficient is.
6. The method as claimed in claim 4, wherein the comparing the sharpness of the center pixel point of the N ﹡ N region in 4 directions, taking the maximum value and multiplying the maximum value by the secondary sharpening gain as the secondary sharpening value is specifically:
after obtaining 0-degree direction sharpness df0, 45-degree direction sharpness df45, 90-degree direction sharpness df90 and 135-degree direction sharpness df135, respectively taking values of absolute values as abs _ df0, abs _ df45, abs _ df90 and abs _ df135, respectively, obtaining abs _ df 0-abs _ df90 and abs _ df 45-abs _ df135, respectively, taking the absolute values as abs _ dlt1 and abs _ dlt2, respectively, comparing the sizes of abs _ dlt1 and abs _ dlt2, if abs _ dlt1 is large, continuing to compare the sizes of abs _ df0 and abs _ df90, if abs _ df0 is large, further multiplying df0 by a secondary sharpening gain as a secondary sharpening value, and if abs _ df90 is large, further multiplying the secondary sharpening gain as a secondary sharpening gain 90; if abs _ dll 2 is large, continue to compare the sizes of abs _ df45 and abs _ df135, if abs _ df90 is large, take df90 and multiply by the secondary sharpening gain as the secondary sharpening value, and if abs _ df135 is large, take df135 and multiply by the secondary sharpening gain as the secondary sharpening value.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for sharpening video images according to any one of claims 1 to 6.
8. An image processing apparatus comprising:
one or more processors;
a memory; and
one or more computer programs, the processor and the memory being connected by a bus, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, characterized in that the processor, when executing the computer programs, implements the steps of the video image sharpening method according to any of claims 1 to 6.
CN201811639745.7A 2018-12-29 2018-12-29 Video image sharpening method and image processing equipment Active CN109698892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811639745.7A CN109698892B (en) 2018-12-29 2018-12-29 Video image sharpening method and image processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811639745.7A CN109698892B (en) 2018-12-29 2018-12-29 Video image sharpening method and image processing equipment

Publications (2)

Publication Number Publication Date
CN109698892A CN109698892A (en) 2019-04-30
CN109698892B true CN109698892B (en) 2021-06-11

Family

ID=66232656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811639745.7A Active CN109698892B (en) 2018-12-29 2018-12-29 Video image sharpening method and image processing equipment

Country Status (1)

Country Link
CN (1) CN109698892B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110942440B (en) * 2019-12-12 2023-04-18 上海富瀚微电子股份有限公司 Image sharpening method and device
CN113610727B (en) * 2021-08-05 2022-06-21 上海交通大学 Boundary reconstruction sharpening method for two-phase volume fraction image

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050111055A1 (en) * 2003-11-21 2005-05-26 Seung-Joon Yang Apparatus and method of image sharpness enhancement
CN102137221A (en) * 2010-01-22 2011-07-27 富士通微电子(上海)有限公司 Method and system for sharpening digital video image
CN105046655A (en) * 2015-06-24 2015-11-11 武汉烽火众智数字技术有限责任公司 Method and device for automatically sharpening video image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050111055A1 (en) * 2003-11-21 2005-05-26 Seung-Joon Yang Apparatus and method of image sharpness enhancement
CN102137221A (en) * 2010-01-22 2011-07-27 富士通微电子(上海)有限公司 Method and system for sharpening digital video image
CN105046655A (en) * 2015-06-24 2015-11-11 武汉烽火众智数字技术有限责任公司 Method and device for automatically sharpening video image

Also Published As

Publication number Publication date
CN109698892A (en) 2019-04-30

Similar Documents

Publication Publication Date Title
US9082171B2 (en) Image processing device for reducing image noise and the method thereof
US8131104B2 (en) Method and apparatus for adjusting the contrast of an input image
WO2016206087A1 (en) Low-illumination image processing method and device
CN111986120A (en) Low-illumination image enhancement optimization method based on frame accumulation and multi-scale Retinex
US20110285871A1 (en) Image processing apparatus, image processing method, and computer-readable medium
WO2017100971A1 (en) Deblurring method and device for out-of-focus blurred image
Hossain et al. Medical image enhancement based on nonlinear technique and logarithmic transform coefficient histogram matching
CN109698892B (en) Video image sharpening method and image processing equipment
CN115660976A (en) Image processing method, device, equipment and computer readable storage medium
US11222412B2 (en) Image processing device and method
WO2009153717A2 (en) Digital image restoration
JP5652272B2 (en) Image processing apparatus, image processing program, and image processing method
Lee et al. Motion deblurring using edge map with blurred/noisy image pairs
CN113011433B (en) Filtering parameter adjusting method and device
WO2021128498A1 (en) Image adaptive noise reduction method and apparatus
CN110136085B (en) Image noise reduction method and device
KR101101434B1 (en) Apparatus for improving sharpness of image
CN111325680A (en) Image brightening method capable of inhibiting local overexposure
CN115829967A (en) Industrial metal surface defect image denoising and enhancing method
CN115689906A (en) Image processing method and device
CN114519675A (en) Image processing method and device, electronic equipment and readable storage medium
CN112465719A (en) Transform domain image denoising method and system
Han et al. An improved adaptive correction algorithm for non-uniform illumination panoramic image
CN116681629B (en) Visible light image self-adaptive contrast enhancement method and system for main transformer of transformer substation
CN104243767A (en) Method for removing image noise

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant