CN109448014B - Image information thinning method based on subgraph - Google Patents
Image information thinning method based on subgraph Download PDFInfo
- Publication number
- CN109448014B CN109448014B CN201811223265.2A CN201811223265A CN109448014B CN 109448014 B CN109448014 B CN 109448014B CN 201811223265 A CN201811223265 A CN 201811223265A CN 109448014 B CN109448014 B CN 109448014B
- Authority
- CN
- China
- Prior art keywords
- gray
- image
- subgraph
- histogram
- sub
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
Abstract
The invention relates to an image information thinning method based on a subgraph. The method comprises the following steps: step 1, inputting a gray level image; step 2, calculating a gray level histogram; step 3, calculating a global gray ratio; step 4, calculating a subgraph segmentation threshold; step 5, trimming the gray level histogram; step 6, subgraph segmentation; step 7, calculating a density function; step 8, calculating a distribution function; step 9, constructing a histogram transmission function; step 10, equalization processing; and step 11, fusing subgraphs and outputting. The method can refine local information of the image, and can be applied to the fields of fuzzy digital image enhancement processing and the like.
Description
Technical Field
The invention relates to the field of digital image processing, in particular to an image information thinning method based on subgraphs.
Background
Many of the visual effects of image capture are not good due to the influence of scene conditions, which requires image thinning techniques to improve human visual effects, such as highlighting certain features of target objects in the images, extracting characteristic parameters of the target objects from the digital images, and the like, which are all beneficial to the recognition, tracking and understanding of the targets in the images. The main content of the image thinning processing is to highlight interested parts in the image and weaken or remove unnecessary information. This enhances the useful information to obtain a more practical image or to convert it to an image more suitable for human or machine analysis. Currently, commonly used correlation methods include gray level correction, gray level transformation, histogram modification, image smoothing and sharpening, however, the algorithm complexity and the refinement effect still need to be improved.
Disclosure of Invention
The invention provides an image information thinning method based on subgraphs, which adopts the principle of segmenting the subgraphs and adopts methods such as a histogram, a density function, a distribution function and the like respectively, so that the calculation amount is small, and the image thinning effect is good.
The technical scheme adopted for realizing the aim of the invention is as follows: the method comprises the following steps:
step 1: inputting a gray level image I;
step 2: calculating a gray histogram H of the gray image I;
and step 3: calculating the global gray ratio Lg of the gray image;
and 4, step 4: calculating a subgraph segmentation threshold Tseg, wherein Tseg is G (1-Lg);
and 5: in order to prevent the information of the grayscale image I from being lost due to excessive information refinement, the grayscale histogram H needs to be clipped, and when H (I) is greater than the clipping threshold Tc, H (I) ═ Tc, the clipped grayscale histogram is denoted as Hc;
Step 6: segmenting the grayscale image I into I by using a sub-graph segmentation threshold TsegLAnd IHTwo subgraphs, wherein subgraph ILHas a gray scale value range of [0, Tseg]Scheme IHThe gray scale value range of (1) is [ Tseg +1, G-1 ]];
And 7: separately compute subgraph ILAnd scheme IHDensity function P ofLAnd PHWherein P isL=Hc/ML,PH=Hc/MH,MLAnd MHAre respectively sub-diagram ILAnd scheme IHThe number of pixels of (1);
and 8: separately compute subgraph ILAnd scheme IHCumulative distribution function C ofLAnd CH;
And step 9: respectively using the cumulative distribution function C in step 8LAnd CHStructural drawing ILAnd scheme IHHas a histogram transfer function TFLAnd TFH;
Step 10: for the histogram transfer function TF in step 9 respectivelyLAnd TFHCarrying out equalization processing to respectively obtain equalized subgraphs ILQAnd IHQ;
Step 11: merging equalized subgraph I in step 10LQAnd IHQObtaining an information refined image IQAnd output.
The global gray scale ratio Lg in the step 3 is realized by the following formula (1):
in the formula (1), h (I) is the number of pixels with a gray scale value I in the gray scale image I, and G is the gray scale level of the gray scale image I.
The pruning threshold Tc in the step 5 is calculated by the formula (2);
separately computing sub-graph I as described in step 8LAnd scheme IHCumulative distribution function C ofLAnd CHCalculating by the formula (3);
cumulative distribution function C described in step 9LAnd CHCumulative distribution function CLAnd CHRespectively calculated by the formula (4),
the invention has the beneficial effects that: the method can refine local information of the image, and can be applied to the fields of fuzzy digital image enhancement processing and the like.
Drawings
FIG. 1 is an overall process flow diagram of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings.
In fig. 1, 101 is a grayscale image input step, 102 is a grayscale histogram calculation step, 103 is a global grayscale ratio calculation step, 104 is a subgraph segmentation threshold calculation step, 105 is a gray top histogram trimming step, 106 is a subgraph segmentation step, 107 is a density function calculation step, 108 is a distribution function calculation step, 109 is a histogram transfer function construction step, 110 is an equalization processing step, and 111 is a subgraph fusion output step.
The specific embodiment process is as follows:
step 101: inputting a gray level image I;
step 102: calculating a gray histogram H of the gray image I;
step 103: calculating the global gray ratio Lg of the image:
in the formula, h (I) is the number of pixels with a gray value I in the gray image I, and G is the gray level of the gray image I;
step 104: calculating a subgraph segmentation threshold Tseg, wherein Tseg is G (1-Lg);
step 105: in order to prevent the information of the grayscale image I from being lost due to excessive information refinement, the grayscale histogram H needs to be clipped, and when H (I) is greater than the clipping threshold Tc, H (I) ═ Tc, the clipped grayscale histogram is denoted as HcWherein the pruning threshold Tc is calculated by the following formula;
step 106: segmenting the grayscale image I into I by using a sub-graph segmentation threshold TsegLAnd IHTwo subgraphs, wherein subgraph ILHas a gray scale value range of [0, Tseg]Scheme IHThe gray scale value range of (1) is [ Tseg +1, G-1 ]];
Step 107: separately compute subgraph ILAnd scheme IHDensity function ofPLAnd PHWherein P isL=Hc/ML,PH=Hc/MH,MLAnd MHAre respectively sub-diagram ILAnd scheme IHThe number of pixels of (1);
step 108: separately compute subgraph ILAnd scheme IHDistribution function C ofLAnd CH;
Step 109: respectively using the distribution function C in step 108LAnd CHStructural drawing ILAnd scheme IHHas a histogram transfer function TFLAnd TFH;
TFL=Tseg×CL
TFH=(Tseg+1)+(G-Tseg+1)×CH
Step 110: respectively for the histogram transfer function TF in step 109LAnd TFHCarrying out equalization processing to respectively obtain equalized subgraphs ILQAnd IHQ;
Step 111: equalized subgraph I in the fusion step 110LQAnd IHQObtaining an information refined image IQAnd output.
Claims (6)
1. A method for refining image information based on subgraph is characterized by comprising the following steps:
step 1: inputting a gray level image I;
step 2: calculating a gray histogram H of the gray image I;
and step 3: calculating the global gray ratio Lg of the gray image;
and 4, step 4: calculating a subgraph segmentation threshold Tseg, wherein Tseg is G (1-Lg);
and 5: clipping the gray histogram H, and when H (i) is greater than a clipping threshold Tc, H (i) ═ Tc, wherein H (i) is the height of the histogram with the gray value i, and the clipped gray histogram is recorded as Hc;
Step 6: segmenting the grayscale image I into I by using a sub-graph segmentation threshold TsegLAnd IHTwo subgraphs, wherein subgraph ILHas a gray scale value range of [0, Tseg]Scheme IHThe gray scale value range of (1) is [ Tseg +1, G-1 ]];
And 7: separately compute subgraph ILAnd scheme IHDensity function P ofLAnd PH;
And 8: separately compute subgraph ILAnd scheme IHDistribution function C ofLAnd CH;
And step 9: respectively using the distribution function C in step 8LAnd CHStructural drawing ILAnd scheme IHHas a histogram transfer function TFLAnd TFH;
Step 10: for the histogram transfer function TF in step 9 respectivelyLAnd TFHCarrying out equalization processing to respectively obtain equalized subgraphs ILQAnd IHQ;
Step 11: merging equalized subgraph I in step 10LQAnd IHQObtaining an information refined image IQAnd output.
2. A sub-picture based image information refining method as claimed in claim 1, wherein said global gray scale value Lg of step 3 is calculated by equation (1):
in the formula (1), h (I) is the number of pixels with a gray scale value I in the gray scale image I, and G is the gray scale level of the gray scale image I.
4. a sub-picture based image information refinement method according to claim 1, characterized in that the density function P of step 7LAnd PH,PL=Hc/ML,PH=Hc/MH,MLAnd MHAre respectively sub-diagram ILAnd scheme IHThe number of pixels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223265.2A CN109448014B (en) | 2018-10-19 | 2018-10-19 | Image information thinning method based on subgraph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223265.2A CN109448014B (en) | 2018-10-19 | 2018-10-19 | Image information thinning method based on subgraph |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109448014A CN109448014A (en) | 2019-03-08 |
CN109448014B true CN109448014B (en) | 2021-04-30 |
Family
ID=65547548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811223265.2A Active CN109448014B (en) | 2018-10-19 | 2018-10-19 | Image information thinning method based on subgraph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109448014B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916371A (en) * | 2010-09-01 | 2010-12-15 | 北京工业大学 | Method for illuminating/normalizing image and method for identifying image by using same |
CN103440635A (en) * | 2013-09-17 | 2013-12-11 | 厦门美图网科技有限公司 | Learning-based contrast limited adaptive histogram equalization method |
CN103606137A (en) * | 2013-11-13 | 2014-02-26 | 天津大学 | Histogram equalization method for maintaining background and detail information |
CN105320946A (en) * | 2015-11-03 | 2016-02-10 | 盐城工学院 | MATLAB based fingerprint identification method |
CN106127791A (en) * | 2016-07-06 | 2016-11-16 | 武汉大学 | A kind of contour of building line drawing method of aviation remote sensing image |
-
2018
- 2018-10-19 CN CN201811223265.2A patent/CN109448014B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916371A (en) * | 2010-09-01 | 2010-12-15 | 北京工业大学 | Method for illuminating/normalizing image and method for identifying image by using same |
CN103440635A (en) * | 2013-09-17 | 2013-12-11 | 厦门美图网科技有限公司 | Learning-based contrast limited adaptive histogram equalization method |
CN103606137A (en) * | 2013-11-13 | 2014-02-26 | 天津大学 | Histogram equalization method for maintaining background and detail information |
CN105320946A (en) * | 2015-11-03 | 2016-02-10 | 盐城工学院 | MATLAB based fingerprint identification method |
CN106127791A (en) * | 2016-07-06 | 2016-11-16 | 武汉大学 | A kind of contour of building line drawing method of aviation remote sensing image |
Non-Patent Citations (1)
Title |
---|
"基于直方图分割的彩色图像增强算法";胡琼;《中国图象图形学报》;20091231(第9期);第1776-1781页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109448014A (en) | 2019-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108230264B (en) | Single image defogging method based on ResNet neural network | |
Zheng et al. | Single-image-based rain and snow removal using multi-guided filter | |
Liu et al. | Single image dehazing via large sky region segmentation and multiscale opening dark channel model | |
CN111583173B (en) | RGB-D image saliency target detection method | |
US9542735B2 (en) | Method and device to compose an image by eliminating one or more moving objects | |
Zhu et al. | An single image dehazing algorithm using sky detection and segmentation | |
Yan et al. | Method to Enhance Degraded Image in Dust Environment. | |
CN111739064B (en) | Method for tracking target in video, storage device and control device | |
CN111462027B (en) | Multi-focus image fusion method based on multi-scale gradient and matting | |
Wang et al. | Deep single image deraining via modeling haze-like effect | |
Min et al. | Histogram based ghost removal in high dynamic range images | |
Zhu et al. | Automatic object detection and segmentation from underwater images via saliency-based region merging | |
CN108009549B (en) | Iterative collaborative significance detection method | |
CN114022823A (en) | Shielding-driven pedestrian re-identification method and system and storable medium | |
CN109377464A (en) | A kind of Double plateaus histogram equalization method and its application system of infrared image | |
Wang et al. | An efficient method for image dehazing | |
CN104036481A (en) | Multi-focus image fusion method based on depth information extraction | |
CN103136530A (en) | Method for automatically recognizing target images in video images under complex industrial environment | |
CN109448014B (en) | Image information thinning method based on subgraph | |
Feng et al. | Low-light image enhancement by refining illumination map with self-guided filtering | |
CN108122220B (en) | Infrared image and low-light image fusion system and method | |
Cui et al. | Single image haze removal based on luminance weight prior | |
CN113723183A (en) | Robust low-rank sparse decomposition moving target detection method | |
Ma et al. | Video image clarity algorithm research of USV visual system under the sea fog | |
CN111862152A (en) | Moving target detection method based on interframe difference and super-pixel segmentation |
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 |