CN116228573A - Image edge sharpness method - Google Patents

Image edge sharpness method Download PDF

Info

Publication number
CN116228573A
CN116228573A CN202310088406.9A CN202310088406A CN116228573A CN 116228573 A CN116228573 A CN 116228573A CN 202310088406 A CN202310088406 A CN 202310088406A CN 116228573 A CN116228573 A CN 116228573A
Authority
CN
China
Prior art keywords
image
value
point
steps
image signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310088406.9A
Other languages
Chinese (zh)
Inventor
李福文
余佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shenghua Electronics Co ltd
Original Assignee
Shenzhen Shenghua 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 Shenghua Electronics Co ltd filed Critical Shenzhen Shenghua Electronics Co ltd
Priority to CN202310088406.9A priority Critical patent/CN116228573A/en
Publication of CN116228573A publication Critical patent/CN116228573A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an image edge sharpness method, which comprises the steps of 1, capturing at least two images by using an image capturing module, 2, inputting a high-pass filtering mask, and performing convolution operation according to an original image signal and the high-pass filtering mask to output boundary strength; step 3, selecting weights according to the boundary strength, and inputting a low-pass filtering mask; step 4, outputting the processed image signal according to the original image signal and the first sharp intensity signal; in step 5, taking R of three primary colors of the image signal RGB as an example, selecting 3x3 pixel points in the current frame to scan a window, when the last point image of the last pixel is scanned to finish the image removal, the image edge sharpness method can strengthen the boundary of the image, so that the outline in the image is more obvious, and the image is corrected by adopting a table look-up mode to achieve the actual image quality improvement effect.

Description

Image edge sharpness method
Technical Field
The invention relates to the field of image processing related products, in particular to an image edge sharpness method.
Background
Sharpness, sometimes referred to as "sharpness", is an indicator that reflects the sharpness of an image plane and the sharpness of an image edge. If the sharpness is turned up, the contrast of the detail on the image plane is also higher and appears clearer. For example, in the case of high sharpness, not only wrinkles and spots of a face on a screen are clearer, but also swelling or sagging of facial muscles can be vivid. In another case, namely dark or black lines in the vertical direction or where black and white images are suddenly changed, the edges of the intersections where the lines or black and white images are suddenly changed are sharper and the whole picture is clearer. Thus, improving sharpness, in fact, definition, is a desirable, good aspect;
the current image edge sharpening method is to sharpen the image contrast, which can lead to poor image quality, low efficiency and defect.
Disclosure of Invention
The present invention is directed to an image edge sharpness method, which solves the above-mentioned problems of the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions: a method for sharpening image edges includes the following steps,
step 1, capturing at least two images by using an image capturing module,
step 2, inputting a high-pass filter mask, and performing convolution operation according to the original image signal and the high-pass filter mask to output boundary strength;
step 3, selecting weights according to the boundary strength, and inputting a low-pass filtering mask;
step 4, outputting the processed image signal according to the original image signal and the first sharp intensity signal;
step 5, taking R of three primary colors of the image signal RGB as an example, selecting a 3x3 pixel point to scan a window in the current frame as an example, and finishing the image removal process when the last point of the last pixel is scanned;
step 6, taking R as an example and taking a 3x3 pixel point scanning window as an example, respectively marking each pixel point in the scanning window as a, b, c, d, e, f, g, h and i, wherein a central point e is an evaluation point, and the pixel value of each point takes 8 bits as an example and has a value between 0 and 255;
step 7, dividing the respective values of each pixel point in the scanning window into 16 steps and representing the values by 16 carry, wherein the 0 th step is the table brightness between 0 and 15, the 1 st step is the table brightness between 16 and 31, the … F step is the table brightness between 240 and 255, the value of each pixel point falls within a certain step of the 16 steps, a certain scanning window value is (a, b, c, d, e, F, g, h, i) = (79,200,215,40,80,200,210,190,210), and then (a, b, c, d, e, F, g, h, i) = (79,200,215,40,80,200,210,190,210) = (4, c, d,2,5, c, d, b, d) steps are assumed, and a 3x3 pixel point scanning window is divided into 16 steps, so that 16 images are obtained;
step 8, when a certain order image is satisfied, its evaluation value will be replaced. Finally, taking the image meeting the higher order as a final value;
and 9, the final correction result e point is B-order, and the range of B-order is 176-191, so that the value in the range is selected finally.
Preferably, in the step 2, 0 is dark, and 255 is light.
Preferably, in the step 6, the current frame and the next frame are different in time but the processing positions are the same.
Preferably, the image of each step in the step 3 may be defined by itself.
Compared with the prior art, the invention has the beneficial effects that:
the image edge sharpness method can strengthen the boundary of the image, so that the outline in the image is more obvious, and the correction is carried out by adopting a table look-up mode to do the actual image quality improvement effect.
Drawings
FIG. 1 is a diagram of a pixel frame according to the present invention;
FIG. 2 is a color value diagram of the present invention;
FIG. 3 is a schematic diagram of the estimated coordinates of the present invention;
FIG. 4 is a schematic diagram of evaluation points according to the present invention;
FIG. 5 is a schematic diagram of a correction flow chart according to the present invention;
FIG. 6 is a graph showing the correction results according to the present invention;
FIG. 7 is a schematic diagram of the correction range of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
Referring to fig. 1-7, an embodiment of the present invention is provided: a method for sharpening image edges includes the following steps,
step 1, capturing at least two images by using an image capturing module,
step 2, inputting a high-pass filter mask, and performing convolution operation according to the original image signal and the high-pass filter mask to output boundary strength;
step 3, selecting weights according to the boundary strength, and inputting a low-pass filtering mask;
step 4, outputting the processed image signal according to the original image signal and the first sharp intensity signal;
step 5, taking R of three primary colors of the image signal RGB as an example, selecting a 3x3 pixel point to scan a window in the current frame as an example, and finishing the image removal process when the last point of the last pixel is scanned;
step 6, taking R as an example and taking a 3x3 pixel point scanning window as an example, respectively marking each pixel point in the scanning window as a, b, c, d, e, f, g, h and i, wherein a central point e is an evaluation point, and the pixel value of each point takes 8 bits as an example and has a value between 0 and 255;
step 7, dividing the respective values of each pixel point in the scanning window into 16 steps and representing the values by 16 carry, wherein the 0 th step is the table brightness between 0 and 15, the 1 st step is the table brightness between 16 and 31, the … F step is the table brightness between 240 and 255, the value of each pixel point falls within a certain step of the 16 steps, a certain scanning window value is (a, b, c, d, e, F, g, h, i) = (79,200,215,40,80,200,210,190,210), and then (a, b, c, d, e, F, g, h, i) = (79,200,215,40,80,200,210,190,210) = (4, c, d,2,5, c, d, b, d) steps are assumed, and a 3x3 pixel point scanning window is divided into 16 steps, so that 16 images are obtained;
step 8, when a certain order image is satisfied, its evaluation value will be replaced. Finally, taking the image meeting the higher order as a final value;
and 9, the final correction result e point is B-order, and the range of B-order is 176-191, so that the value in the range is selected finally.
In this embodiment, in step 2, 0 is dark, and 255 is light; in the step 6, the current frame and the next frame are only different in time but identical in processing position; the image of each step in step 3 can be defined by itself.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (4)

1. An image edge sharpness method, characterized in that: comprises the steps of,
step 1, capturing at least two images by using an image capturing module,
step 2, inputting a high-pass filter mask, and performing convolution operation according to the original image signal and the high-pass filter mask to output boundary strength;
step 3, selecting weights according to the boundary strength, and inputting a low-pass filtering mask;
step 4, outputting the processed image signal according to the original image signal and the first sharp intensity signal;
step 5, taking R of three primary colors of the image signal RGB as an example, selecting a 3x3 pixel point to scan a window in the current frame as an example, and finishing the image removal process when the last point of the last pixel is scanned;
step 6, taking R as an example and taking a 3x3 pixel point scanning window as an example, respectively marking each pixel point in the scanning window as a, b, c, d, e, f, g, h and i, wherein a central point e is an evaluation point, and the pixel value of each point takes 8 bits as an example and has a value between 0 and 255;
step 7, dividing the respective values of each pixel point in the scanning window into 16 steps and representing the values by 16 carry, wherein the 0 th step is the table brightness between 0 and 15, the 1 st step is the table brightness between 16 and 31, the … F step is the table brightness between 240 and 255, the value of each pixel point falls within a certain step of the 16 steps, a certain scanning window value is (a, b, c, d, e, F, g, h, i) = (79,200,215,40,80,200,210,190,210), and then (a, b, c, d, e, F, g, h, i) = (79,200,215,40,80,200,210,190,210) = (4, c, d,2,5, c, d, b, d) steps are assumed, and a 3x3 pixel point scanning window is divided into 16 steps, so that 16 images are obtained;
step 8, when a certain order image is satisfied, its evaluation value will be replaced. Finally, taking the image meeting the higher order as a final value;
and 9, the final correction result e point is B-order, and the range of B-order is 176-191, so that the value in the range is selected finally.
2. The method of claim 1, wherein: in the step 2, 0 is dark, and 255 is light.
3. The method of claim 1, wherein: the current frame and the next frame in the step 6 are only different in time but identical in processing position.
4. The method of claim 1, wherein: the image of each step in the step 3 can be defined by itself.
CN202310088406.9A 2023-02-09 2023-02-09 Image edge sharpness method Pending CN116228573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310088406.9A CN116228573A (en) 2023-02-09 2023-02-09 Image edge sharpness method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310088406.9A CN116228573A (en) 2023-02-09 2023-02-09 Image edge sharpness method

Publications (1)

Publication Number Publication Date
CN116228573A true CN116228573A (en) 2023-06-06

Family

ID=86586639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310088406.9A Pending CN116228573A (en) 2023-02-09 2023-02-09 Image edge sharpness method

Country Status (1)

Country Link
CN (1) CN116228573A (en)

Similar Documents

Publication Publication Date Title
US7227990B2 (en) Color image processing device and color image processing method
JP4423298B2 (en) Text-like edge enhancement in digital images
CN111583157A (en) Image processing method, system and computer readable storage medium
Peng et al. Image haze removal using airlight white correction, local light filter, and aerial perspective prior
US20020172431A1 (en) Digital image appearance enhancement and compressibility improvement method and system
JPH0372778A (en) Area identification system for picture processing unit
US6614944B1 (en) Image enhancement filter with adaptive threshold
JPH1127517A (en) Image-processing apparatus
JP6781406B2 (en) Image processing equipment and computer programs
US7408559B2 (en) Upscaling of anti-aliased graphical elements
CN107862672B (en) Image defogging method and device
JP2004166007A (en) Device, method and program for image processing, and storage medium
CN107256539B (en) Image sharpening method based on local contrast
US6301395B1 (en) Image processing apparatus that can appropriately enhance contour of an image
CN116703789A (en) Image enhancement method and system
JPH08235350A (en) Method for adjustment of color of image at inside of document processor
CN115018738B (en) Color image generation method, device, equipment and readable storage medium
CN116228573A (en) Image edge sharpness method
JP4369030B2 (en) Image correction method and apparatus, and computer-readable recording medium storing image correction program
JP2777202B2 (en) Image processing device
JP2000357226A (en) Method for binarizing light and shade image and recording medium where binarizing program is recorded
JP2005063022A (en) Noise pixel map producing method, device performing the same, program, and photograph printing device
JP2018147199A (en) Image processing device, and computer program
KR20160069452A (en) Image processing device, image processing method and program
CN115689937A (en) Method for sharpening image edge in film

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