CN106056618A - Image threshold segmentation method based on Renyi cross entropy and Gaussian distribution - Google Patents

Image threshold segmentation method based on Renyi cross entropy and Gaussian distribution Download PDF

Info

Publication number
CN106056618A
CN106056618A CN201610401927.5A CN201610401927A CN106056618A CN 106056618 A CN106056618 A CN 106056618A CN 201610401927 A CN201610401927 A CN 201610401927A CN 106056618 A CN106056618 A CN 106056618A
Authority
CN
China
Prior art keywords
image
formula
segmentation
renyi
gray level
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
CN201610401927.5A
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.)
Hunan University of Arts and Science
Original Assignee
Hunan University of Arts and Science
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 Hunan University of Arts and Science filed Critical Hunan University of Arts and Science
Priority to CN201610401927.5A priority Critical patent/CN106056618A/en
Publication of CN106056618A publication Critical patent/CN106056618A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

Provided is an image gray histogram threshold segmentation method based on Renyi cross entropy and Gaussian distribution. The method comprises the following steps: 1) initializing Renyi cross entropy index alpha; 2) reading a grayscale image to be segmented and storing the image to a two-dimensional image array I; 3) traversing the image array I and calculating the maximum image gray level L and a gray level set G={0,1,...,L}; 4) supposing t is segmentation threshold value, and based on the t, dividing image pixels into two different kinds of gray level sets C0 and C1; 5) calculating prior probability P0 and P1, gray level mean values M0 and M1 and class variance S0 and S1 with respect to the C0 and C1 through formulas, and class probability P0<i> and P1<i> of each gray level i of the image with respect to the C0 and C1, and normalized posterior probability of each image gray level i obtained through Gaussian fitting; defining a symmetrical information amount formula of the image with respect to Renyi cross entropy; obtaining optimal segmentation threshold value; and finally, outputting an image obtained after segmentation.

Description

Carrying out image threshold segmentation method based on Renyi cross entropy Yu Gauss distribution
Technical field
The invention belongs to technical field of image processing, further relate to the one of technical field of image segmentation based on Renyi cross entropy and the carrying out image threshold segmentation method of Gauss distribution.
Background technology
Image segmentation is a key link in image processing tasks based on machine vision, and it is to realize image object Feature extraction, identify, detect and the basis of graphical analysis and understanding.In numerous image partition methods, due to Threshold segmentation Method succinct effectively and the cutting techniques that is widely adopted in scientific research and application practice of being easily achieved property and becoming.
Threshold sementation can be divided into parametric method and non parametric method.Owing to non parametric method only needs to set when carrying out image segmentation Count a criterion function and the estimating thus bring the minimizing of calculating time of rare quantity of parameters, and effectiveness is from theory and practice Aspect can preferably be verified, research and the application of the most this kind of method are the most active.Famous nonparametric Method is just like maximum variance between clusters (also referred to as Otsu method), maximum entropy (ME) method, minimum cross entropy (MCE) method, Renyi entropy method Deng.
Image is a complicated physical system, does not the most also have a kind of pervasive dividing method to be applicable to own Image segmentation task, so in the face of different segmentation task (segmentation as to NDT image), studying and propose effective Dividing method is presently remaining the work of a great challenge.
Summary of the invention
It is an object of the invention to propose one based on Renyi cross entropy with high for the image that reply is complicated splits task The carrying out image threshold segmentation method of this distribution.
The present invention is achieved through the following technical solutions above-mentioned purpose:
Carrying out image threshold segmentation method based on Renyi cross entropy Yu Gauss distribution, comprises the steps:
(1) Renyi cross entropy index α (α > 0 and α ≠ 1) is initialized;
(2) read gray level image to be split, and be deposited in two dimensional image array I;
(3) traversing graph is as array I, is calculated image maximum gray scale number L and gray level set G={0, and 1 ..., L}, meter Calculate normalized grey level histogram H(H={h0, h1, …, hL);
(4) supposing that t is segmentation threshold, image pixel is divided into and belongs to two inhomogeneous gray level set C by t0With C1, C0= 0,1,2 ..., t}, C0={t+1, t+2, …, L};
(5) with H as the PDF estimation of image gray levels, then can calculate about C by below equation0With C1's Prior probability P0And P1, gray level average M0With M1
Formula one:
Formula two:
Formula three:
Formula four:
(6) in order to by Gauss Distribution Fitting image gray levels probability distribution, calculate about C by below equation0With C1Class variance S0 With S1
Formula five:
Formula six:
(7) each gray level of image is calculated by below equationiAbout C0With C1Class probabilityWith
Formula seven:
Formula eight:
(8) image gray levels is calculated with formula nineiThe normalization posterior probability obtained by Gauss curve fitting;
Formula nine:
(9) based on assumed above, definition image has symmetric quantity of information formula D about Renyi cross entropy;
Formula ten:
(10) at G={0,1 ..., in the range of L}, search makes following formula obtain gray level t of minima*, t*I.e. optimum segmentation threshold Value;
Formula 11:
(11) setf (x,y) expression image I coordinate (x,y) grey scale pixel value at place, then can use following formula that image I is implemented segmentation;
Formula 12:
(12) image after output segmentation.
Beneficial effects of the present invention: the present invention uses has the Renyi cross entropy of solid physics's background as image threshold The criterion function of value segmentation, makes the present invention have physics meaning definitely compared with other method;The present invention uses extensively The probability distribution of the general Gauss Distribution Fitting image gray levels pixel for simulating nature event occurrence rate, makes the present invention have There is more preferable universality;The present invention use the symmetrical Renyi cross entropy of, superior performance relatively strong through a large amount of test universalities as The criterion function of carrying out image threshold segmentation, further increases the segmentation quality of gray level image;When image is carried out Threshold segmentation, The present invention can obtain different segmentation thresholds by adjusting Renyi cross entropy parameter alpha value, and this makes the present invention have more preferable answering Potential to different images segmentation task.
The present invention is a kind of based on the histogrammic cutting techniques of image gray levels.Due to the complexity of natural image, to figure It is a highly difficult job as implementing effective segmentation.Fitted figure is carried out as the probability distribution of gray level histogram by Gauss distribution It is that one is more reasonably estimated, then uses and there is the symmetrical Renyi cross entropy of adjustable entropy parameter to build carrying out image threshold segmentation Criterion function, the core concept of this present invention the most just.
Experiment shows, for having several test images of 8 256 grades of gray scales, is Intel (R) Core at a CPU (TM) 2 Duo CPU T8100@2.10GHz, operating system is Window XP, and programmed environment is the bar of MATLAB R2007b Corresponding image segmentation task is performed under part, the application segmentation image-region inner homogeneous that obtains of the present invention, profile boundary accurate, Segmentation result is better than the traditional methods such as Otsu method, maximum entropy (ME) method, minimum cross entropy (MCE) method, Renyi entropy method;Additionally Also the present invention is made to have more preferable universality by regulation entropy parameter α value.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of the present invention.
Fig. 2 is three width NDT image and expert's segmentation results thereof.
Fig. 3 is the 5 kinds of methods the compared segmentation results to NDT image img1.
Fig. 4 is the 5 kinds of methods the compared segmentation results to NDT image img2.
Fig. 5 is the 5 kinds of methods the compared segmentation results to NDT image img3.
Fig. 6 is an an infrared image img4 to be split and width blood cell image img5.
Fig. 7 is the 5 kinds of methods the compared segmentation results to infrared image img4.
Fig. 8 is the 5 kinds of methods the compared segmentation results to blood cell image img5.
Detailed description of the invention
The invention will be further described below in conjunction with the accompanying drawings.
Step 1. sets Renyi cross entropy index α (α > 0 and α ≠ 1) value, initialisation image minimum Renyi cross entropy MinRE is infinitely great.
Step 2. reads image to be split as shown in Figure 2, and is deposited in two dimensional image array I.
Step 3. traversing graph, as I, obtains image maximum gray scale number L, gray level set G, is calculated normalized ash Degree level rectangular histogram H.
Step 4. supposes that t is a grey level histogram segmentation threshold about image I, and this threshold value is divided into C G0With C1Two Part.
Step 5. calculates about C0With C1Prior probability P0With P1, gray level average M0With M1, class variance S0With S1
Step 6. calculates image gray levels according to Gauss distribution principleiAbout C0With C1Class probabilityWithAnd normalizing Posterior probability p changedi
Step 7. calculates image gray levels rectangular histogram probability vector and Gauss curve fitting probability according to Renyi cross entropy principle The Renyi cross entropy quantity of information D of vector.
Step 8. asks for optimal segmenting threshold t according to minimum Renyi cross entropy principle*
Step 9. t*Image I is implemented Threshold segmentation and exports segmentation image.
Effect of the present invention can be further illustrated by following experiment:
1) experiment condition
Experiment simulation environment is: a CPU is Intel (R) Core (TM) 2 Duo CPU T8100@2.10GHz, operation system System is Window XP, and programmed environment is the PC of MATLAB R2007b;Experimental image is: three width maximum gray scales are 255 NDT image img1, img2, img3 and an a width infrared image img4 and width blood cell image img5.
2) experiment content
2.1) by Otsu method, maximum entropy (ME) method, minimum cross entropy (MCE) method, Renyi entropy method and five kinds of methods of the present invention to three Width NDT image img1, img2, img3 test, and in this experiment, the Renyi cross entropy index in the inventive method is set as 0.8, five kinds of dividing method experimental results are as in Figure 3-5.What Fig. 2 listed is three width NDT original images to be split and specially Family's segmentation result, wherein Fig. 2 (a) be img1 original image, Fig. 2 (b) be img2 original image, Fig. 2 (c) be img3 original image, Fig. 2 (d) be expert's segmentation result of img1 image, Fig. 2 (e) be expert's segmentation result of img2 image, Fig. 2 (f) be img3 image Expert's segmentation result.Fig. 3 is five kinds of methods segmentation results to img1 image, and wherein Fig. 3 (a) is Otsu method result, Fig. 3 (b) Being ME method result, Fig. 3 (c) is MCE method result, and Fig. 3 (d) is Renyi entropy method result, and Fig. 3 (e) is segmentation result of the present invention;Fig. 4 Being five kinds of methods segmentation results to img2 image, wherein Fig. 4 (a) is Otsu method result, and Fig. 4 (b) is ME method result, Fig. 4 (c) Being MCE method result, Fig. 4 (d) is Renyi entropy method result, and Fig. 4 (e) is segmentation result of the present invention;Fig. 5 is that five kinds of methods are to img3 The segmentation result of image, wherein Fig. 5 (a) is Otsu method result, and Fig. 5 (b) is ME method result, and Fig. 5 (c) is MCE method result, Fig. 5 D () is Renyi entropy method result, Fig. 5 (e) is segmentation result of the present invention.
2.2) with Otsu method, ME method, MCE method, Renyi entropy method and five kinds of methods of the present invention to a width infrared image img4 and One width blood cell image img5 carries out split-run test, in this experiment, Renyi cross entropy index of the present invention when splitting for img4 Being set as 0.8, when splitting img5, Renyi cross entropy index of the present invention is set as 1.5, five kinds of dividing method experimental results such as figure Shown in 7-8.That Fig. 6 lists is an infrared img4 and a width blood cell image img5 of experiment, and wherein Fig. 6 (a) is img4 Artwork, Fig. 6 (b) is img5 artwork.Fig. 7 is five kinds of methods segmentation results to img4, and wherein Fig. 7 (a) is Otsu method result, figure 7 (b) is ME method result, and Fig. 7 (c) is MCE method result, and Fig. 7 (d) is Renyi entropy method result, and Fig. 7 (e) is that the present invention splits knot Really;Fig. 8 is five kinds of methods segmentation results to img5, and wherein Fig. 8 (a) is Otsu method result, and Fig. 8 (b) is ME method result, Fig. 8 C () is MCE method result, Fig. 8 (d) is Renyi entropy method result, and Fig. 8 (e) is segmentation result of the present invention.
3) interpretation
From the segmentation result of Fig. 3-5 and Fig. 7-8 it can be seen that either Otsu method, ME method, MCE method, or Renyi entropy method, All can not well Target Segmentation to be paid close attention to out also remain more in segmentation result figure in experimental image segmentation Noise spot information, segmentation area concordance is poor, and these phenomenons show particularly evident in the segmentation to NDT image, this Invention performance in this respect is better than control methods.
Table 1 has been born distinct methods and has been compared img1, img2, img3 segmentation result.In table 1, data represent mistake classification picture The percentage ratio that vegetarian refreshments number is total with image slices vegetarian refreshments, i.e. mistake classified pixels point number/total number of image pixels × 100%.At this In using the expert's segmentation result in Fig. 2 as the correct segmentation result of original image, mistake classified pixels point number is by respectively The segmentation result of method and expert's segmentation result compare and obtain.As it can be seen from table 1 the segmentation result that the present invention obtains Point rate is minimum by mistake, closest to expert by splitting the result obtained by hand.
A table 1. NDT image point rate by mistake compares

Claims (1)

1. image grey level histogram threshold segmentation method based on Renyi cross entropy Yu Gauss distribution, it is characterised in that include as Lower step:
(1) Renyi cross entropy index α (α > 0 and α ≠ 1) is initialized;
(2) read gray level image to be split, and be deposited in two dimensional image array I;
(3) traversing graph is as array I, is calculated image maximum gray scale number L and gray level set G={0, and 1 ..., L}, meter Calculate normalized grey level histogram H(H={h0, h1, …, hL);
(4) supposing that t is segmentation threshold, image pixel is divided into and belongs to two inhomogeneous gray level set C by t0With C1, C0= 0,1,2 ..., t}, C0={t+1, t+2, …, L};
(5) with H as the PDF estimation of image gray levels, then can calculate about C by below equation0With C1's Prior probability P0And P1, gray level average M0With M1
Formula one:
Formula two:
Formula three:
Formula four:
(6) in order to by Gauss Distribution Fitting image gray levels probability distribution, calculate about C by below equation0With C1Class variance S0 With S1
Formula five:
Formula six:
(7) each gray level of image is calculated by below equationiAbout C0With C1Class probabilityWith
Formula seven:
Formula eight:
(8) image gray levels is calculated with formula nineiThe normalization posterior probability obtained by Gauss curve fitting;
Formula nine:
(9) based on assumed above, definition image has symmetric quantity of information formula D about Renyi cross entropy;
Formula ten:
(10) at G={0,1 ..., in the range of L}, search makes following formula obtain gray level t of minima*, t*I.e. optimum segmentation threshold Value;
Formula 11:
(11) setf (x ,y) expression image I coordinate (x,y) grey scale pixel value at place, then can use following formula that image I is implemented segmentation;
Formula 12:
(12) image after output segmentation.
CN201610401927.5A 2016-06-08 2016-06-08 Image threshold segmentation method based on Renyi cross entropy and Gaussian distribution Pending CN106056618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610401927.5A CN106056618A (en) 2016-06-08 2016-06-08 Image threshold segmentation method based on Renyi cross entropy and Gaussian distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610401927.5A CN106056618A (en) 2016-06-08 2016-06-08 Image threshold segmentation method based on Renyi cross entropy and Gaussian distribution

Publications (1)

Publication Number Publication Date
CN106056618A true CN106056618A (en) 2016-10-26

Family

ID=57170888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610401927.5A Pending CN106056618A (en) 2016-06-08 2016-06-08 Image threshold segmentation method based on Renyi cross entropy and Gaussian distribution

Country Status (1)

Country Link
CN (1) CN106056618A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180442A (en) * 2017-04-13 2017-09-19 太原理工大学 A kind of photoacoustic image based on Renyi entropys rebuilds prefilter
CN109116733A (en) * 2018-08-15 2019-01-01 上海理工大学 A kind of evaluation method of the parallel cascade control systems system based on minimal information entropy

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831604A (en) * 2012-07-30 2012-12-19 常州大学 Two-dimensional Renyi entropic threshold segmentation method for grayscale images
CN103810716A (en) * 2014-03-13 2014-05-21 北京工商大学 Image segmentation method based on grey scale flitting and Renyi entropy
US20150234863A1 (en) * 2014-02-18 2015-08-20 Environmental Systems Research Institute (ESRI) Automated feature extraction from imagery

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831604A (en) * 2012-07-30 2012-12-19 常州大学 Two-dimensional Renyi entropic threshold segmentation method for grayscale images
US20150234863A1 (en) * 2014-02-18 2015-08-20 Environmental Systems Research Institute (ESRI) Automated feature extraction from imagery
CN103810716A (en) * 2014-03-13 2014-05-21 北京工商大学 Image segmentation method based on grey scale flitting and Renyi entropy

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
聂方彦 等: "基于高斯混合及相对熵测度的图像分割", 《激光与红外》 *
胡谋法 等: "基于Renyi相对熵的图像阈值化方法", 《信号处理》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180442A (en) * 2017-04-13 2017-09-19 太原理工大学 A kind of photoacoustic image based on Renyi entropys rebuilds prefilter
CN109116733A (en) * 2018-08-15 2019-01-01 上海理工大学 A kind of evaluation method of the parallel cascade control systems system based on minimal information entropy

Similar Documents

Publication Publication Date Title
Huang et al. Automatic multilevel thresholding based on two-stage Otsu’s method with cluster determination by valley estimation
US8358846B2 (en) Scanning images for pornography
CN106991686B (en) A kind of level set contour tracing method based on super-pixel optical flow field
CN106709928A (en) Fast noise-containing image two-dimensional maximum between-class variance threshold value method
CN104867130B (en) A kind of self-adapting division method based on crack image sub-district gray average
Abubakar Study of image segmentation using thresholding technique on a noisy image
CN114724218A (en) Video detection method, device, equipment and medium
Luo et al. An improved binarization algorithm of wood image defect segmentation based on non-uniform background
Gong et al. Detecting changes of the Yellow River Estuary via SAR images based on a local fit-search model and kernel-induced graph cuts
CN106056618A (en) Image threshold segmentation method based on Renyi cross entropy and Gaussian distribution
El-Sayed et al. A multi-level threshold method for edge detection and segmentation based on entropy
Zhang et al. Research on the image segmentation based on improved threshold extractions
Jyothirmayi et al. Image segmentation based on doubly truncated generalized laplace mixture model and k means clustering
Sultana et al. Design and development of fpga based adaptive thresholder for image processing applications
Lim et al. Learning Gaussian mixture model with a maximization-maximization algorithm for image classification
CN110276260B (en) Commodity detection method based on depth camera
CN108665479B (en) Infrared target tracking method based on compressed domain multi-scale feature TLD
Zhang et al. Ore image thresholding segmentation using double windows with fisher discrimination
Xiao et al. Automatic image segmentation algorithm based on PCNN and fuzzy mutual information
Chen et al. Research on image technology with algorithm of image threshold segmentation based on gray level characteristics
CN106296704B (en) Universal image partition method
Li et al. A novel level set method with improved fuzzy c-means based on genetic algorithm for image segmentation
CN106228555A (en) Thresholding Method for Grey Image Segmentation based on Masi entropy measure
Song et al. Improved pixel relevance based on Mahalanobis distance for image segmentation
Ye et al. Research on Intelligent Learning Graphics Diagnosis Technology Based on Computer Deep Learning Algorithm

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161026