Method and device for weakening image
An image and current image technology, applied in the field of image processing, can solve the problems of difficult to accurately locate strong light sources, the driver cannot see the front and surrounding environment clearly, and the original image cannot be weakened, so as to reduce traffic accidents and avoid excessive enhancement. , the effect of improving the safety factor
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] This embodiment provides an image weakening method, including the following steps:
[0033] S101, randomly select a pixel point A with a grayscale value of X in the current image, where X is the maximum grayscale value allowed by the image, and for an n-bit image system, its value is 2 n -1; the value is 255 for an 8-bit image system, and 2 for a 16-bit image system 16 -1, of course, you can also choose other digital image systems; on the first straight line passing through point A, use point A as the reference and then search to both ends respectively, and find the first pixel whose gray value is not X B and C, the midpoint of B and C is D; on the second straight line that passes through point D and is perpendicular to the first straight line, search for the two ends with D as the reference, and find the first gray value that is not The pixel points E and F of X, the midpoint of E and F is O, and the distance between point B and point O is d 1 , the distance between ...
Embodiment 2
[0039] The present embodiment provides a kind of image weakening method, and this image weakening method is preferably used in infrared image, especially vehicle-mounted night vision infrared image (the present embodiment takes 8-bit image system as an example), comprising the following steps:
[0040] S201, extract the gray value of each pixel in the current image; wherein the maximum gray value allowed by the image is X, and for an n-bit image system, its value is 2 n -1; the value is 255 for an 8-bit image system, and 2 for a 16-bit image system 16 -1, of course other digital image systems can also be selected. The point with a gray value of 255 is the brightest point in the 8-bit image system. Extracting all the brightest points in the current image system is to select the center of the strong light source of the image.
[0041] S202, counting the number of pixels with a grayscale value of 255 in the current image as Y, and if the Y value is smaller than a set value (the ...
Embodiment 3
[0058] Such as figure 1 As shown, the present embodiment provides an image weakening method, which is preferably used for infrared images, especially for vehicle-mounted night vision infrared images (this embodiment takes an 8-bit image system as an example), including the following steps:
[0059] S301, extract the gray value of each pixel in the current image; wherein the maximum gray value allowed by the image is X, and for an n-bit image system, its value is 2 n -1; the value is 255 for an 8-bit image system, and 2 for a 16-bit image system 16 -1, of course other digital image systems can also be selected. The point with a gray value of 255 is the brightest point in the 8-bit image system. Extracting all the brightest points in the current image system is to select the center of the strong light source of the image.
[0060] S302, counting the number of pixels with a grayscale value of 255 in the current image as Y, if the Y value is less than the set value (the set valu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com