CN105139392A - Improved fuzzy inference rule edge detection method - Google Patents

Improved fuzzy inference rule edge detection method Download PDF

Info

Publication number
CN105139392A
CN105139392A CN201510508355.6A CN201510508355A CN105139392A CN 105139392 A CN105139392 A CN 105139392A CN 201510508355 A CN201510508355 A CN 201510508355A CN 105139392 A CN105139392 A CN 105139392A
Authority
CN
China
Prior art keywords
value
fuzzy
image
gray
edge
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
CN201510508355.6A
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.)
Kunming University of Science and Technology
Original Assignee
Kunming University of Science and Technology
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 Kunming University of Science and Technology filed Critical Kunming University of Science and Technology
Priority to CN201510508355.6A priority Critical patent/CN105139392A/en
Publication of CN105139392A publication Critical patent/CN105139392A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • G06V10/443Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by matching or filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to an improved fuzzy inference rule edge detection method, belonging to the technical field of digital image processing. The improved fuzzy inference rule edge detection method comprises the steps using a fuzzy filtering method to preprocess an input noisy image to obtain a fuzzy filtering result; taking the fuzzy filtering result as input, and calculating a fuzzy edge image through the defined brightness member function, the defined darkness member function and the fuzzy rule; obtaining a threshold by substituting the fuzzy edge image and the defuzzification result into a formula; and at last obtaining the eventual edge detection result by comparing the fuzzy edge image with the threshold obtained through calculation. The improved fuzzy inference rule edge detection method can preferably suppress the noise interference to detect the edge of the image. The improved fuzzy inference rule edge detection method can effectively detect the edge of the image by improving the fuzzy inference rule edge detection algorithm through fuzzy filtering.

Description

A kind of fuzzy inference rule edge detection method of improvement
Technical field
The present invention relates to a kind of fuzzy inference rule edge detection method of improvement, belong to digital image processing techniques field.
Background technology
Permitted edge detecting technology to be in recent years suggested, wherein more and more become the focus of concern based on the technology of fuzzy entropy.Detection algorithm based on fuzzy edge is proposed by Pal and King etc. at first, makes its rim detection ability stronger because algorithm introduces obscure idea.A lot of scholar has done the research of different directions to Fuzzy Edge-detection Algorithm afterwards, the people such as S.Lu propose a kind of edge detection algorithm based on Fuzzy Neural Network System, fuzzy entropy theory is combined with nerve network system, solves the problem of neural network edge detection algorithm to noise-sensitive; The people such as L.R.Liang propose a kind of fuzzy edge sorter, obtain good rim detection effect.The people such as LimingHu propose the edge detection algorithm based on fuzzy inference rule, and this algorithm has extraordinary Image Edge-Detection ability, and has certain noiseproof feature, and especially to salt-pepper noise, its anti-noise effect clearly.But this algorithm is very sensitive for Gaussian noise, when Gaussian noise is less, desirable rim detection effect can be obtained; When Gaussian noise is larger, this algorithm can not well identify edge and noise, edge can be mistaken for noise and not extract, and causes the effect of rim detection poor.
Summary of the invention
The invention provides a kind of fuzzy inference rule edge detection method of improvement, for the rim detection of strong Gaussian noise pollution image.
The concrete steps of the fuzzy inference rule edge detection method improved that use of the present invention are as follows:
Step1, in Matlab, input piece image I (x, y), calculate difference average and the variance of each point pixel value and central point pixel value in pixel 5 × 5 window, leave three-dimensional array Ω and three-dimensional array σ respectively in 2in;
The difference average of Step2, foundation pixel value and variance, structure meets the membership function of Gaussian distribution, and carry out fuzzy filter, obtain fuzzy filter image, expression formula is as follows;
W = e ( - ( Ω i , j , r , s - Ω i , j ) 2 2 σ i , j 2 ) - - - ( 1 )
Wherein, Ω i,jbe the average of each point pixel value and central point value differences in 5 × 5 windows, be the variance of each point pixel value and central point value differences in 5 × 5 windows, the position coordinates of pixel centered by i, j, r, s ∈ {-2 ,-1,0,1,2};
Step3, Step2 is obtained fuzzy filter image be input in Matlab, calculate this fuzzy filter image each pixel 8 neighborhood gray scale difference, leave in three-dimensional array diff, then calculate POS and the NEG value on each direction;
P O S ( x ) = 0 d i f f &le; 0 d i f f c 0 < d i f f < c 1 d i f f &GreaterEqual; c N E G ( x ) = 1 d i f f &le; - c d i f f - c - c < d i f f < 0 0 d i f f &GreaterEqual; 0 - - - ( 2 )
Wherein, POS represents brightness member function, and NEG represents darkness member function, and parameter c is the gray-scale value of gray level image;
The POS value that Step4, foundation obtain and NEG value, calculate the fuzzy entropy function of this image, this function is as follows:
H ( G , c ) = 1 8 &times; W &times; H &Sigma; k = 1 8 &Sigma; i = 1 W &Sigma; j = 1 H ( S n ( &mu; i j k ) ) - - - ( 3 )
Wherein, μ ijkfor POS value on k direction and NEG value sum, S n() is shannon function, and this expression formula is the function about parameter c, and by asking the maximal value of this function to determine parameter c, W and H is the wide and high of image;
Step5, according to the POS value that obtains and NEG value and 16 fuzzy rules, calculate can reflect central point and adjacent 2 all belong to the degree size at edge be subordinate to angle value μ (Q); μ is the set of μ (Q), and μ is called fuzzy edge image;
Step6, determine the gray threshold of edge extracting according to μ, computing method are as follows:
T=max((0.8×Z *+0.2×μ max),μ local)(4)
Wherein, Z *for the value obtained after adopting center method de-fuzzy to fuzzy edge image, μ maxthe maximal value of fuzzy edge image μ, μ local3 × 3 window local mean value of fuzzy edge image μ;
Step7, to compare with gray threshold T with the gray-scale value of each pixel of fuzzy edge image μ again, when the gray-scale value of the pixel in μ is more than or equal to T, judges that this point is marginal point, the gray-scale value of this point is set to 1; When the gray-scale value of the pixel in μ is less than T, judges that this point is non-marginal point, the gray-scale value of this point is set to 0, the fuzzy inference rule filter result be improved.
The invention has the beneficial effects as follows:
1, in the scope of application, fuzzy inference rule edge detection method is better for salt-pepper noise effect, and after being improved by this method, the method can be applicable to Gaussian noise, and usable range is wider.
2, in rim detection integrality, this method compensate for the fuzzy inference rule edge detection algorithm deficiency that testing result is poor under strong Gaussian noise, has good noise immunity, can not lose marginal information because of noise effect, and the edge clear detected is complete.
Accompanying drawing explanation
Fig. 1 is the process flow diagram in the present invention;
Fig. 2 is the former figure of Lena in the present invention;
Fig. 3 is that in the present invention, variance is the Gaussian noise pollution Lena image of 0.03 (very noisy situation);
Fig. 4 is algorithm Lena result of the present invention in very noisy situation in the present invention.
Embodiment
Embodiment 1: as Figure 1-4, a kind of fuzzy inference rule edge detection method of improvement, the concrete steps of the fuzzy inference rule edge detection method that described use improves are as follows:
Step1, in Matlab, input piece image I (x, y), calculate difference average and the variance of each point pixel value and central point pixel value in pixel 5 × 5 window, leave three-dimensional array Ω and three-dimensional array σ respectively in 2in;
The difference average of Step2, foundation pixel value and variance, structure meets the membership function of Gaussian distribution, and carry out fuzzy filter, obtain fuzzy filter image, expression formula is as follows;
W = e ( - ( &Omega; i , j , r , s - &Omega; i , j ) 2 2 &sigma; i , j 2 ) - - - ( 1 )
Wherein, Ω i,jbe the average of each point pixel value and central point value differences in 5 × 5 windows, be the variance of each point pixel value and central point value differences in 5 × 5 windows, the position coordinates of pixel centered by i, j, r, s ∈ {-2 ,-1,0,1,2};
Step3, Step2 is obtained fuzzy filter image be input in Matlab, calculate this fuzzy filter image each pixel 8 neighborhood gray scale difference, leave in three-dimensional array diff, then calculate POS and the NEG value on each direction;
P O S ( x ) = 0 d i f f &le; 0 d i f f c 0 < d i f f < c 1 d i f f &GreaterEqual; c N E G ( x ) = 1 d i f f &le; - c d i f f - c - c < d i f f < 0 0 d i f f &GreaterEqual; 0 - - - ( 2 )
Wherein, POS represents brightness member function, and NEG represents darkness member function, and parameter c is the gray-scale value of gray level image;
The POS value that Step4, foundation obtain and NEG value, calculate the fuzzy entropy function of this image, this function is as follows:
H ( G , c ) = 1 8 &times; W &times; H &Sigma; k = 1 8 &Sigma; i = 1 W &Sigma; j = 1 H ( S n ( &mu; i j k ) ) - - - ( 3 )
Wherein, μ ijkfor POS value on k direction and NEG value sum, S n() is shannon function, and this expression formula is the function about parameter c, and by asking the maximal value of this function to determine parameter c, W and H is the wide and high of image;
Step5, according to the POS value that obtains and NEG value and 16 fuzzy rules, calculate can reflect central point and adjacent 2 all belong to the degree size at edge be subordinate to angle value μ (Q); μ is the set of μ (Q), and μ is called fuzzy edge image;
Step6, determine the gray threshold of edge extracting according to μ, computing method are as follows:
T=max((0.8×Z *+0.2×μ max),μ local)(4)
Wherein, Z *for the value obtained after adopting center method de-fuzzy to fuzzy edge image, μ maxthe maximal value of fuzzy edge image μ, μ local3 × 3 window local mean value of fuzzy edge image μ;
Step7, to compare with gray threshold T with the gray-scale value of each pixel of fuzzy edge image μ again, when the gray-scale value of the pixel in μ is more than or equal to T, judges that this point is marginal point, the gray-scale value of this point is set to 1; When the gray-scale value of the pixel in μ is less than T, judges that this point is non-marginal point, the gray-scale value of this point is set to 0, the fuzzy inference rule filter result be improved.
Embodiment 2: as Figure 1-4, a kind of fuzzy inference rule edge detection method of improvement, the concrete steps of the fuzzy inference rule edge detection method that described use improves are as follows:
Step1, in Matlab, input piece image I (x, y), calculate difference average and the variance of each point pixel value and central point pixel value in pixel 5 × 5 window, leave three-dimensional array Ω and three-dimensional array σ respectively in 2in;
The difference average of Step2, foundation pixel value and variance, structure meets the membership function of Gaussian distribution, and carry out fuzzy filter, obtain fuzzy filter image, expression formula is as follows;
W = e ( - ( &Omega; i , j , r , s - &Omega; i , j ) 2 2 &sigma; i , j 2 ) - - - ( 1 )
Wherein, Ω i,jbe the average of each point pixel value and central point value differences in 5 × 5 windows, be the variance of each point pixel value and central point value differences in 5 × 5 windows, the position coordinates of pixel centered by i, j, r, s ∈ {-2 ,-1,0,1,2};
Step3, Step2 is obtained fuzzy filter image be input in Matlab, calculate this fuzzy filter image each pixel 8 neighborhood gray scale difference, leave in three-dimensional array diff, then calculate POS and the NEG value on each direction;
P O S ( x ) = 0 d i f f &le; 0 d i f f c 0 < d i f f < c 1 d i f f &GreaterEqual; c N E G ( x ) = 1 d i f f &le; - c d i f f - c - c < d i f f < 0 0 d i f f &GreaterEqual; 0 - - - ( 2 )
Wherein, POS represents brightness member function, and NEG represents darkness member function, and parameter c is the gray-scale value of gray level image;
The POS value that Step4, foundation obtain and NEG value, calculate the fuzzy entropy function of this image, this function is as follows:
H ( G , c ) = 1 8 &times; W &times; H &Sigma; k = 1 8 &Sigma; i = 1 W &Sigma; j = 1 H ( S n ( &mu; i j k ) ) - - - ( 3 )
Wherein, μ ijkfor POS value on k direction and NEG value sum, S n() is shannon function, and this expression formula is the function about parameter c, and by asking the maximal value of this function to determine parameter c, W and H is the wide and high of image;
Step5, according to the POS value that obtains and NEG value and 16 fuzzy rules, calculate can reflect central point and adjacent 2 all belong to the degree size at edge be subordinate to angle value μ (Q); μ is the set of μ (Q), and μ is called fuzzy edge image;
Step6, determine the gray threshold of edge extracting according to μ, computing method are as follows:
T=max((0.8×Z *+0.2×μ max),μ local)(4)
Wherein, Z *for the value obtained after adopting center method de-fuzzy to fuzzy edge image, μ maxthe maximal value of fuzzy edge image μ, μ local3 × 3 window local mean value of fuzzy edge image μ;
Step7, to compare with gray threshold T with the gray-scale value of each pixel of fuzzy edge image μ again, when the gray-scale value of the pixel in μ is more than or equal to T, judges that this point is marginal point, the gray-scale value of this point is set to 1; When the gray-scale value of the pixel in μ is less than T, judges that this point is non-marginal point, the gray-scale value of this point is set to 0, the fuzzy inference rule filter result be improved.
During embody rule, for in very noisy situation, be the former figure of Lena of the present invention for Fig. 2, the Gaussian noise of Fig. 3 to be the variance in the present invention be 0.03 (very noisy situation) pollutes Lena image, use this method, as shown in Figure 4, Fig. 4 illustrates the Lena figure that the present invention is directed in very noisy situation and carries out rim detection the Lena result of method of the present invention, result can find out that its noiseproof feature is strong, almost completely can detect image border.
By reference to the accompanying drawings the specific embodiment of the present invention is explained in detail above, but the present invention is not limited to above-mentioned embodiment, in the ken that those of ordinary skill in the art possess, various change can also be made under the prerequisite not departing from present inventive concept.

Claims (1)

1. the fuzzy inference rule edge detection method improved, is characterized in that: the described concrete steps of the fuzzy inference rule edge detection method improved that use are as follows:
Step1, in Matlab, input piece image I (x, y), calculate difference average and the variance of each point pixel value and central point pixel value in pixel 5 × 5 window, leave three-dimensional array Ω and three-dimensional array σ respectively in 2in;
The difference average of Step2, foundation pixel value and variance, structure meets the membership function of Gaussian distribution, and carry out fuzzy filter, obtain fuzzy filter image, expression formula is as follows;
W = e ( - ( &Omega; i , j , r , s - &Omega; i , j ) 2 2 &sigma; i , j 2 ) - - - ( 1 )
Wherein, Ω i,jbe the average of each point pixel value and central point value differences in 5 × 5 windows, be the variance of each point pixel value and central point value differences in 5 × 5 windows, the position coordinates of pixel centered by i, j, r, s ∈ {-2 ,-1,0,1,2};
Step3, Step2 is obtained fuzzy filter image be input in Matlab, calculate this fuzzy filter image each pixel 8 neighborhood gray scale difference, leave in three-dimensional array diff, then calculate POS and the NEG value on each direction;
P O S ( x ) = 0 d i f f &le; 0 d i f f c 0 < d i f f < c 1 d i f f &GreaterEqual; c N E G ( x ) = 1 d i f f &le; - c d i f f - c - c < d i f f < 0 0 d i f f &GreaterEqual; 0 - - - ( 2 )
Wherein, POS represents brightness member function, and NEG represents darkness member function, and parameter c is the gray-scale value of gray level image;
The POS value that Step4, foundation obtain and NEG value, calculate the fuzzy entropy function of this image, this function is as follows:
H ( G , c ) = 1 8 &times; W &times; H &Sigma; k = 1 8 &Sigma; i = 1 W &Sigma; j = 1 H ( S n ( &mu; i j k ) ) - - - ( 3 )
Wherein, μ ijkfor POS value on k direction and NEG value sum, S n() is shannon function, and this expression formula is the function about parameter c, and by asking the maximal value of this function to determine parameter c, W and H is the wide and high of image;
Step5, according to the POS value that obtains and NEG value and 16 fuzzy rules, calculate can reflect central point and adjacent 2 all belong to the degree size at edge be subordinate to angle value μ (Q); μ is the set of μ (Q), and μ is called fuzzy edge image;
Step6, determine the gray threshold of edge extracting according to μ, computing method are as follows:
T=max((0.8×Z *+0.2×μ max),μ local)(4)
Wherein, Z *for the value obtained after adopting center method de-fuzzy to fuzzy edge image, μ maxthe maximal value of fuzzy edge image μ, μ local3 × 3 window local mean value of fuzzy edge image μ;
Step7, to compare with gray threshold T with the gray-scale value of each pixel of fuzzy edge image μ again, when the gray-scale value of the pixel in μ is more than or equal to T, judges that this point is marginal point, the gray-scale value of this point is set to 1; When the gray-scale value of the pixel in μ is less than T, judges that this point is non-marginal point, the gray-scale value of this point is set to 0, the fuzzy inference rule filter result be improved.
CN201510508355.6A 2015-08-18 2015-08-18 Improved fuzzy inference rule edge detection method Pending CN105139392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510508355.6A CN105139392A (en) 2015-08-18 2015-08-18 Improved fuzzy inference rule edge detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510508355.6A CN105139392A (en) 2015-08-18 2015-08-18 Improved fuzzy inference rule edge detection method

Publications (1)

Publication Number Publication Date
CN105139392A true CN105139392A (en) 2015-12-09

Family

ID=54724724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510508355.6A Pending CN105139392A (en) 2015-08-18 2015-08-18 Improved fuzzy inference rule edge detection method

Country Status (1)

Country Link
CN (1) CN105139392A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763265A (en) * 2021-08-09 2021-12-07 云南北方光电仪器有限公司 Infrared image contrast gain adjusting method, storage medium and infrared detector
CN117152135A (en) * 2023-10-30 2023-12-01 济宁市市政园林养护中心 Road construction crack defect evaluation and detection method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325123A (en) * 2013-07-09 2013-09-25 江南大学 Image edge detection method based on self-adaptive neural fuzzy inference systems
CN103927723A (en) * 2014-04-18 2014-07-16 江南大学 Image filtering method based on neuro-fuzzy system and edge detection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325123A (en) * 2013-07-09 2013-09-25 江南大学 Image edge detection method based on self-adaptive neural fuzzy inference systems
CN103927723A (en) * 2014-04-18 2014-07-16 江南大学 Image filtering method based on neuro-fuzzy system and edge detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIMING HU等: "A high performance edge detector based on fuzzy inference rules", 《INFORMATION SCIENCE》 *
易三莉等: "改进的模糊推理规则图像边缘检测算法", 《HTTP://WWW.CNKI.NET/KCMS/DETAIL/11.2127.TP.20150313.1555.039.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763265A (en) * 2021-08-09 2021-12-07 云南北方光电仪器有限公司 Infrared image contrast gain adjusting method, storage medium and infrared detector
CN117152135A (en) * 2023-10-30 2023-12-01 济宁市市政园林养护中心 Road construction crack defect evaluation and detection method
CN117152135B (en) * 2023-10-30 2024-01-23 济宁市市政园林养护中心 Road construction crack defect evaluation and detection method

Similar Documents

Publication Publication Date Title
CN100474337C (en) Noise-possessing movement fuzzy image restoration method based on radial basis nerve network
Kim et al. Adaptive smoothness constraints for efficient stereo matching using texture and edge information
US8300949B2 (en) Edge detection technique having improved feature visibility
CN108022233A (en) A kind of edge of work extracting method based on modified Canny operators
CN104268872B (en) Consistency-based edge detection method
CN105405142A (en) Edge defect detection method and system for glass panel
CN105913396A (en) Noise estimation-based image edge preservation mixed de-noising method
Er-Sen et al. An adaptive edge-detection method based on the canny operator
Krishnan et al. A survey on different edge detection techniques for image segmentation
CN109961416B (en) Business license information extraction method based on morphological gradient multi-scale fusion
CN108734716A (en) A kind of fire complex environment image detecting method based on improvement Prewitt operators
CN116468641A (en) Infrared blood vessel image enhancement processing method
CN105894474A (en) Non-linear image enhancement method, and edge detection method using the same
CN103310439A (en) Method for detecting maximally stable extremal region of image based on scale space
CN103325123A (en) Image edge detection method based on self-adaptive neural fuzzy inference systems
CN109636822B (en) Improved Canny self-adaptive edge extraction method based on newly-constructed membership function
CN105139392A (en) Improved fuzzy inference rule edge detection method
Chen et al. An improved edge detection in noisy image using fuzzy enhancement
CN108491796A (en) A kind of time domain period point target detecting method
CN108009480A (en) A kind of image human body behavioral value method of feature based identification
CN108470345A (en) A kind of method for detecting image edge of adaptive threshold
CN102521804A (en) Image edge detection method based on window modified multi-level median filtering
Rao et al. Statistical analysis for performance evaluation of image segmentation quality using edge detection algorithms
Cheon et al. Modified gaussian filter based on fuzzy membership function for awgn removal in digital images
Zhang et al. An improved edge detection algorithm based on fuzzy theory

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: 20151209