Improved method for enhancing picture contrast based on histogram
A technology of image comparison and histogram, applied in image enhancement, image data processing, instruments, etc., can solve the problems of compressed grayscale and high probability of overstretching.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] In this embodiment, we adaptively set the value of gamma between [0, 1] for the attributes of the original image.
[0024] First, divide the grayscale of the image into N grayscales, and accumulate the number of pixels of each grayscale stsN[i], where i is the serial number of the grayscale;
[0025] Then, according to the distribution of the histogram, the minimum number n of continuous gray scales accounting for the ratio R of image pixels and the central position p of continuous gray scales are calculated. Such as figure 1 As shown, the length of the rectangular frame is n, the ratio of the number of image pixels in the frame to the entire image pixel is R, and the abscissa of the center of the rectangular frame is p. From figure 1 , we can see that the minimum number of continuous gray levels n reflects the concentration of the image gray level distribution. Calculate the gamma value based on the minimum number n of continuous gray levels and the central position...
Embodiment 2
[0035] In Embodiment 1, the correlation between adjacent images of the video sequence is not considered, so there will be bright and dark dithering. In this embodiment, the similarity of the video image histogram of the same scene can be simply used for scene discrimination, and the adjacent video frames of the same scene can be constrained to prevent light and dark jitter.
[0036] Since adjacent video images of the same scene have a certain correlation in the distribution of luminance components, the absolute value of the difference between the number of each gray level and the ratio sign to the number of pixels in the entire image should be less than a certain value, Generally, it is 20% to 50%, and the optimum is 40%. In this embodiment, sign=40%, the absolute value of the difference between the number of each gray level and the ratio sign of the number of pixels in the entire image is less than 40%, that is, the same scene image.
[0037] If the current image is not the ...
Embodiment 3
[0043] In Embodiment 1, when the fading in and fading out of the scene is not considered, the gray scale of the image is only distributed in a part of the gray scales. At this time, even if the gamma value is small, excessive stretching will occur. For this reason, in this embodiment, a smaller value is added to the number of pixels stsN[i] of each gray scale, and then gamma transformation is performed to obtain the converted number of gray pixels of each gray scale for traditional histogram equalization processing to obtain a contrast-enhanced output image.
[0044] Divide the grayscale of the image into 64 grayscales, that is, when N=64, we set the smaller value to 0.1, then this step is expressed by the formula,
[0045] sts_gamma64[i]=(sts64[i]+0.1) gamma (3)
[0046] In the formula, sts64_gamma64[i] represents the number of grayscale pixels of each level after gamma transformation when the grayscale of the image is divided into 64 grayscales.
[0047...
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