A contour detection method based on interactive perception of dual-viewing pathways

By constructing a binocular pathway calculation model, simulating retinal photoelectric conversion and superficial response of the superior colliculus, combined with the external genu body contrast adaptive mechanism and primary visual cortex neural coding, the problem of low efficiency of contour extraction in the existing technology is solved and a better Efficient and accurate contour detection.

CN113139425BInactive Publication Date: 2024-09-20HANGZHOU DIANZI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110257718.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-09
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing contour extraction methods based on visual neural computing models mainly rely on the superior visual cortex pathway and ignore the inferior visual pathway and the interactive perception between the two pathways, resulting in low efficiency of contour extraction and cross-redundancy.

Method used

Construct a binocular pathway computational model to simulate retinal photoelectric conversion, superficial superior colliculus classical receptive field response, external genu body contrast adaptive mechanism and primary visual cortex neural coding, through multi-scale contour enhancement, salient feature extraction and pulse coding, to achieve Interactive perception for contour detection.

Benefits of technology

It improves the efficiency and robustness of contour detection, enhances the deep perception of visual stimuli, reduces texture noise and cross redundancy, and improves the accuracy of contour extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113139425B
    Figure CN113139425B
Patent Text Reader

Abstract

The present invention discloses a contour detection method based on interactive perception of dual visual pathways; the present invention constructs a dual visual pathway computational model, and realizes contour detection by simulating the shunting transmission and interactive perception of information flows in the dual visual pathways. First, the photoelectric conversion characteristics of the retinal link are simulated to obtain brightness characteristics; in the superficial layer of the superior colliculus, the orientation response characteristics of the classic receptive field are simulated, and a contour information fusion strategy of multi-scale contour enhancement is introduced to obtain primary contour response; the contrast adaptation mechanism and directional sensitivity characteristics when visual information is transmitted to the lateral geniculate body are simulated, and a method for extracting significant features is proposed; then, with reference to the information projection of the superficial layer of the superior colliculus in the primary visual cortex, an improved pulse coding model is constructed to extract significant contours. Finally, the contour response results in the dual visual pathway are corrected and fused to obtain the final contour response. The present invention can effectively highlight the contour of the subject and suppress the texture background.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of visual mechanism and image processing, and in particular to a contour detection method based on double-viewing pathway interactive perception. Background Art

[0002] The boundaries of objects outlined by contours are important clues for visual perception, providing key information for advanced visual behaviors such as scene understanding and object recognition. Since the pixel brightness mutations of texture edges and contours are similar in mathematical properties, traditional contour detection methods weaken the perception mechanism of biological vision and are usually difficult to effectively identify contours.

[0003] At present, with the continuous in-depth study of visual mechanisms, the research on contour perception based on biological visual mechanisms has received widespread attention. For example, there are studies on the role of non-classical receptive field (NCRF) in texture suppression, and the Difference of Gaussian (DOG) operator is constructed to describe its central-peripheral receptive field morphology, which effectively suppresses image texture; there are also studies on the multi-feature surround suppression model of non-classical receptive field by fusing three features of modulation direction, brightness, and contrast. There are also studies on the texture suppression model of the primary visual cortex (primary vision) area, and the push-pull suppression model and the surround suppression model are constructed respectively. The two suppression models modulate each other to improve the texture suppression effect. In addition, there are studies that simulate the synergistic effects of multiple encoding methods at different levels of the visual pathway, and use the cross-visual modulation effect of the previous node on the visual cortex area to obtain the final contour response, which enhances the noise resistance and robustness of the algorithm. However, it must be pointed out that the above-mentioned contour extraction methods based on visual neural computational models usually only consider the classical visual cortical pathway located on the upper side of the cortex (hereinafter referred to as the upper pathway), ignoring the existence of the subcortical visual pathway (hereinafter referred to as the lower pathway) in the real visual pathway, as well as the information flow diversion processing and interactive perception between the two visual pathways. Therefore, the above-mentioned methods have problems such as cross-redundancy in extracting overall contours and significant features, and low execution efficiency of visual stimulus encoding. In addition, most of their methods only rely on the information input from the previous neural structure for encoding and processing, ignoring the signal projection of the same-level nodes, which is not conducive to reflecting the efficiency of real neural network encoding and deeper perception of visual stimuli. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention proposes a contour detection method based on interactive perception of dual-view pathways.

[0005] The present invention constructs a dual visual pathway computational model, and realizes contour detection by simulating the shunting transmission and interactive perception of information flow in the dual visual pathway. First, the photoelectric conversion characteristics of the retinal link are simulated to obtain the brightness characteristics; in the superficial layer of the superior colliculus, the orientation response characteristics of the classic receptive field are simulated, and a contour information fusion strategy of multi-scale contour enhancement is introduced to obtain the primary contour response; the contrast adaptation mechanism and directional sensitivity characteristics when the visual information is transmitted to the lateral geniculate body are simulated, and a method for extracting significant features is proposed; then, referring to the information projection of the superficial layer of the superior colliculus in the primary visual cortex, an improved pulse coding model is constructed to extract significant contours. Finally, the contour response results in the dual visual pathway are corrected and fused to obtain the final contour response.

[0006] The present invention proposes a contour detection method based on a dual-view path calculation model, comprising the following steps:

[0007] Step (1) Assume that the input image I(x,y) has a width and height of m and n respectively, and (x,y) represents the two-dimensional coordinates of the image. Simulate the classical receptive field orientation response characteristics in the superficial layer of the superior colliculus to process I(x,y) and obtain the maximum orientation response E j (x,y), the specific implementation process is as follows:

[0008] First, considering the photoelectric conversion characteristics of the retina to visual stimulation, the present invention uses cosine weighted calculation to obtain the brightness feature L(x, y), as shown in formula (1).

[0009]

[0010] In the formula, S x,y It represents a square local window with (x, y) as the center point and a window length of d in I(x, y); r = (d-1) / 2 is S x,y The half window length is set to d = 9 by default; (x i ,y i ) represents the i-th pixel coordinate in the local window arranged from left to right and from top to bottom, i∈[1,d 2 ];ω(x i ,y i ) is the cosine weighting function; μ represents the local window S x,y In the range ω(x i ,y i ) is the cumulative sum of .

[0011] The brightness feature L(x,y) is used as the input of the two-dimensional Gaussian derivative function to simulate the boundary response characteristics of the classic receptive field. The orientation parameter of the two-dimensional Gaussian derivative function is set to The scale parameter is set to σ j=2j-1,j=1,2,···,k, where k is an odd number and is 5 by default. For a certain scale parameter σ j , traverse all orientation parameters θ ori , select the maximum value of the two-dimensional Gaussian derivative function response and get the maximum orientation response E j (x, y), the subscript j indicates that the scale corresponding to the maximum orientation response is σ j .

[0012] Step (2) is the maximum orientation response E obtained in step (1) j (x, y) performs contour enhancement on multi-scale information to obtain the primary contour response R 1 (x,y), as the contour response result of the lower path.

[0013] First, considering the need for completeness of object features or morphological observation, it is usually necessary to fuse observation information at multiple spatial scales. Therefore, this paper proposes a contour information fusion strategy based on the classic receptive field scale. In order to obtain the contribution of the maximum orientation response to contour enhancement at different scales, the maximum orientation response at each scale σ is calculated. j The maximum orientation response E j (x,y) and the scale median σ c (i.e. c = (k + 1) / 2) under the maximum orientation response E c The difference between (x, y) is recorded as ΔE j (x,y), as shown in formula (2).

[0014]

[0015] Generally speaking, the E corresponding to the small scale j (x, y) has more detailed contours, but there is more texture background; on the contrary, the E corresponding to the large scale j (x, y) often contains the main contour, but misses some edge details. Therefore, the difference ΔE j The positive component of (x, y) reflects more of the meaningless texture area of ​​the image, while the negative component reflects the grayscale difference near the image contour. In order to enhance the contour while avoiding grayscale saturation, the positive and negative components of the difference are scaled to obtain the contour enhancement component D j (x,y), as shown in formula (3).

[0016]

[0017] In the formula, w j is the scaling adjustment coefficient, set to normal distribution N(σ c ,1) in σ j The corresponding value above; is a piecewise function.

[0018] Then, the median value σ c The corresponding maximum orientation response E c (x, y) is the reference and the contour enhancement component D j The accumulated value of (x, y) is added to obtain the response result E(x, y), as shown in formula (4), where w c For normal distribution N(σ c ,1)’s maximum value.

[0019]

[0020] Finally, the response result E(x,y) is normalized to obtain the primary contour response, denoted as R 1 (x,y).

[0021] Step (3) For the brightness feature L(x, y) obtained in step (1), the present invention simulates the contrast adaptive adjustment mechanism and direction sensitive mechanism of the lateral geniculate body link to extract the contrast features C fit (x, y) and directional features Θ(x, y), and fuse the two features to obtain the image's salient features P(x, y). The specific implementation process is as follows:

[0022] First, a brightness contrast calculation model is constructed to obtain the brightness contrast C(x, y), as shown in formula (5).

[0023]

[0024] Then, the contrast response function is constructed according to the contrast adaptive adjustment mechanism to dynamically adjust the response characteristics of the brightness contrast and obtain the contrast feature C fit (x,y), as shown in formula (6).

[0025]

[0026] Where ι is the expansion index, which determines the slope of the contrast adaptation curve; η is the proportional adjustment coefficient, and the default setting is η=0.2; T x,y represents a square local window in C(x,y) with (x,y) as the center origin and a window length of 3; δ(x i ,y i ) is the local window T x,y The median coordinate (x i ,y i ) and the absolute value of the contrast difference between the corresponding pixels at (x, y); C δ (x i ,y i ) is the local window T x,y In δ(x i ,y i)’s distribution frequency.

[0027] Then, due to the direction selection characteristic of the two-dimensional Gaussian derivative function, the present invention converts the scale median σ c The corresponding maximum orientation response E c (x,y) is used as the directional feature Θ(x,y).

[0028] Finally, the contrast feature C fit (x, y) and the directional feature Θ(x, y) are normalized and fused by dot multiplication to obtain the salient feature P(x, y).

[0029] P(x,y)=C fit ′(x,y)·Θ′(x,y) (7)

[0030] In the formula, C fit ′(x,y) is the normalized contrast feature C fit (x, y), Θ′(x, y) is the normalized directional feature Θ(x, y).

[0031] Step (4) simulates the neural coding mechanism in the primary visual cortex, performs pulse coding on the salient feature P(x, y) obtained in step (2), and obtains the salient contour R 2 (x, y), as the contour response result of the upper path, the specific implementation process is as follows:

[0032] First, the improved leakage discharge integral model is used as the neuron model of pulse coding. There is a one-to-one correspondence between P(x, y) and the neuron model, x = 1, 2…, m; y = 1, 2,…n; the specific form of the neuron model is shown in formula (8).

[0033]

[0034] Where v(x,y) is the membrane potential of the neuron model corresponding to P(x,y), c τ is the membrane capacitance; I x,y is the excitation current, which is numerically equal to P(x,y); v th is the pulse firing threshold potential, the default setting is -50. s (x, y) is the leakage conductance; when the excitation current I x,y Under the action of p (x, y), there is an upward process, when the membrane potential v(x, y) ≥ v th When the neuron fires, the membrane voltage quickly drops back to the resting potential v p (x,y).

[0035] where v p(x, y), the present invention takes into account the characteristics of primary visual cortical neurons that preferentially encode significant visual information, and thus uses the primary contour response R 1 (x,y) to correct the resting potential v of the leakage discharge integral model reset , and obtain the resting potential v of the neuron model p (x,y).

[0036]

[0037] Where thre is the contour selection threshold, v reset The default setting is -80.

[0038] For g s (x, y), the present invention considers from the perspective of information sparsity that the contour area often has higher sparsity, while the irrelevant texture area usually has dense multi-directional lines, so its sparsity is lower. Therefore, the sparse coding method is used to obtain the sparse image s(x, y); and the sparse measurement method is used to obtain the sparsity s′(x, y), as shown in formula (10).

[0039]

[0040] In the formula, mean is the mean operation function; U x,y represents a square local window in s(x,y) with (x,y) as the center origin and a window length of step. The default setting of step is 5; w and h represent the local window U x,y The horizontal and vertical coordinates of the inner pixel.

[0041] Then, the bilinear interpolation method is used to enlarge the sparsity s′(x,y) to the value of R 1 (x, y) have the same size, and we get s″(x, y). We use s″(x, y) to correct the leakage conductance g of the leakage discharge integral model. 1 , we get the leakage conductance g of the neuron model s (x, y), as shown in formula (11).

[0042]

[0043] In the formula, resize represents the bilinear interpolation magnification operation, g 1 The default setting is 0.02.

[0044] Finally, the significant feature P(x, y) is input into the corresponding neuron model, and the number of neuron pulses emitted within 1 second is counted as the output of the pulse coding and normalized to obtain the significant contour R 2 (x,y).

[0045] Step (5) Fusion of the contour response results R in the dual-view pathway 1 (x,y) and R 2 (x, y), and get the final contour response R(x, y). The specific implementation process is as follows:

[0046] The present invention simulates the transmission of visual information in the dual vision pathway through multiple neural structures, such as the attached Figure 1 As shown. Considering the primary contour response R 1 There are fewer textures in (x, y), but some contours may be lost; while the salient contour response R 2 The contour in (x, y) is highly significant, but there is some texture noise. Therefore, the mean square error of the two contour responses is calculated as the difference between the two, and pixel-level fusion is performed based on the difference to obtain the final contour response R(x, y).

[0047] Calculate the overall mean square error (MSE) and local mean square error (mse′(x,y)) of the two-way contour responses.

[0048]

[0049] In the formula, F x,y Represents a square local window with (x, y) as the center origin and a window length of ε. The default setting is ε=5.

[0050] If the local mean square error mse′(x, y) is greater than the global mean square error MSE, it is considered that the area may be texture redundancy, and the minimum value of the two responses is selected; otherwise, it is considered that the area may be a contour or background, and the maximum value of the two responses is selected.

[0051] The final contour response R(x,y) is calculated.

[0052]

[0053] The present invention has the following beneficial effects:

[0054] 1. An improved model of classic receptive field contour perception based on multi-scale contour enhancement is proposed. Considering the observation requirements of multiple spatial scales in object observation, this paper uses the differences in contour perception at different scales to establish a multi-scale classic receptive field response weight fusion strategy to achieve contour enhancement of the response results.

[0055] 2. A method for extracting salient features is proposed. Based on the fine processing properties of the upper pathway for visual information, the present invention establishes a salient feature extraction model, which utilizes the contrast adaptive adjustment mechanism and direction-sensitive characteristics in the lateral geniculate body to obtain contrast features and direction features respectively, and then fuses the two features to obtain salient visual characteristics.

[0056] 3. An improved pulse coding model was constructed. Taking into account the interactive perception characteristics of the dual visual pathways, the information of the superficial layer of the superior colliculus was projected into the primary visual cortex, and a neuron model was constructed using the projected information. The model was used to pulse code the salient features to obtain the salient contour and strengthen the contour information.

[0057] 4. A new image contour detection method based on the interactive perception model of the dual visual pathway is proposed. First, the classical receptive field of the shallow layer of the superior colliculus is simulated, and the strategy of multi-scale weight fusion is used to obtain the response result of contour enhancement; then the contrast response function of the lateral geniculate body is used to simulate the contrast adaptive adjustment mechanism and extract significant features; then in the primary visual cortex area, the contour pixels and visual sparsity of the primary contour response are used to construct an improved neuron leakage integral model, pulse encode the significant features, and obtain the significant contour. Finally, the contour response results in the dual visual pathway are corrected and fused to obtain the final contour response. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 The flowchart of the contour detection method based on interactive perception of dual-viewing pathways. DETAILED DESCRIPTION

[0059] The following is combined with Figure 1 To illustrate the specific implementation process of the present invention:

[0060] Step (1) Assume that the input image I(x,y) has a width and height of m and n respectively, and (x,y) represents the two-dimensional coordinates of the image. Simulate the classical receptive field orientation response characteristics in the superficial layer of the superior colliculus to process I(x,y) and obtain the maximum orientation response E j (x,y), the specific implementation process is as follows:

[0061] First, considering the photoelectric conversion characteristics of the retina to visual stimulation, the present invention uses cosine weighted calculation to obtain the brightness feature L(x, y), as shown in formula (1).

[0062]

[0063] In the formula, S x,y It represents a square local window with (x, y) as the center point and a window length of d in I(x, y); r = (d-1) / 2 is S x,y The default setting of half window length is d=9; (x i ,y i ) represents the i-th pixel coordinate in the local window arranged from left to right and from top to bottom, i∈[1,d 2 ];ω(x i ,y i ) is the cosine weighting function; μ represents the local window S x,y In the range ω(xi ,y i ) is the cumulative sum of .

[0064] The brightness feature L(x,y) is used as the input of the two-dimensional Gaussian derivative function to simulate the boundary response characteristics of the classic receptive field. The orientation parameter of the two-dimensional Gaussian derivative function is set to The scale parameter is set to σ j =2j-1,j=1,2,···,k, where k is an odd number and is 5 by default. For a certain scale parameter σ j , traverse all orientation parameters θ ori , select the maximum value of the two-dimensional Gaussian derivative function response and get the maximum orientation response E j (x, y), the subscript j indicates that the scale corresponding to the maximum orientation response is σ j .

[0065] Step (2) is the maximum orientation response E obtained in step (1) j (x, y) performs contour enhancement on multi-scale information to obtain the primary contour response R 1 (x,y), as the contour response result of the lower path.

[0066] First, considering the need for completeness of object features or morphological observation, it is usually necessary to fuse observation information at multiple spatial scales. Therefore, this paper proposes a contour information fusion strategy based on the classic receptive field scale. In order to obtain the contribution of the maximum orientation response to contour enhancement at different scales, the maximum orientation response at each scale σ is calculated. j The maximum orientation response E j (x,y) and the scale median σ c (i.e. c = (k + 1) / 2) under the maximum orientation response E c The difference between (x, y) is recorded as ΔE j (x,y), as shown in formula (2).

[0067]

[0068] Generally speaking, the E corresponding to the small scale j (x, y) has more detailed contours, but there is more texture background; on the contrary, the E corresponding to the large scale j (x, y) often contains the main contour, but misses some edge details. Therefore, the difference ΔE j The positive component of (x, y) reflects more of the meaningless texture area of ​​the image, while the negative component reflects the grayscale difference near the image contour. In order to enhance the contour while avoiding grayscale saturation, the positive and negative components of the difference are scaled to obtain the contour enhancement component D j (x,y), as shown in formula (3).

[0069]

[0070] In the formula, w j is the scaling adjustment coefficient, set to normal distribution N(σ c ,1) in σ j The corresponding value above; is a piecewise function.

[0071] Then, the median value σ c The corresponding maximum orientation response E c (x, y) is the reference and the contour enhancement component D j The accumulated value of (x, y) is added to obtain the response result E(x, y), as shown in formula (4), where w c For normal distribution N(σ c ,1)’s maximum value.

[0072]

[0073] Finally, the response result E(x,y) is normalized to obtain the primary contour response, denoted as R 1 (x,y).

[0074] Step (3) For the brightness feature L(x, y) obtained in step (1), the present invention simulates the contrast adaptive adjustment mechanism and direction sensitive mechanism of the lateral geniculate body link to extract the contrast features C fit (x, y) and directional features Θ(x, y), and fuse the two features to obtain the image's salient features P(x, y). The specific implementation process is as follows:

[0075] First, a brightness contrast calculation model is constructed to obtain the brightness contrast C(x, y), as shown in formula (5).

[0076]

[0077] Then, the contrast response function is constructed according to the contrast adaptive adjustment mechanism to dynamically adjust the response characteristics of the brightness contrast and obtain the contrast feature C fit (x,y), as shown in formula (6).

[0078]

[0079] Where ι is the expansion index, which determines the slope of the contrast adaptation curve; η is the proportional adjustment coefficient, and the default setting is η=0.2; T x,y represents a square local window in C(x,y) with (x,y) as the center origin and a window length of 3; δ(x i ,y i ) is the local window T x,y The median coordinate (xi ,y i ) and the absolute value of the contrast difference between the corresponding pixels at (x, y); C δ (x i ,y i ) is the local window T x,y In δ(x i ,y i )’s distribution frequency.

[0080] Then, due to the direction selection characteristic of the two-dimensional Gaussian derivative function, the present invention converts the scale median σ c The corresponding maximum orientation response E c (x,y) is used as the directional feature Θ(x,y).

[0081] Finally, the contrast feature C fit (x, y) and the directional feature Θ(x, y) are normalized and fused by dot multiplication to obtain the salient feature P(x, y).

[0082] P(x,y)=C fit ′(x,y)·Θ′(x,y) (7)

[0083] In the formula, C fit ′(x,y) is the normalized contrast feature C fit (x, y), Θ′(x, y) is the normalized directional feature Θ(x, y).

[0084] Step (4) simulates the neural coding mechanism in the primary visual cortex, performs pulse coding on the salient feature P(x, y) obtained in step (2), and obtains the salient contour R 2 (x, y), as the contour response result of the upper path, the specific implementation process is as follows:

[0085] First, the improved leakage discharge integral model is used as the neuron model of pulse coding. There is a one-to-one correspondence between P(x, y) and the neuron model, x = 1, 2…, m; y = 1, 2,…n; the specific form of the neuron model is shown in formula (8).

[0086]

[0087] Where v(x,y) is the membrane potential of the neuron model corresponding to P(x,y), c τ is the membrane capacitance; I x,y is the excitation current, which is numerically equal to P(x,y); v th is the pulse firing threshold potential, the default setting is -50. s (x, y) is the leakage conductance; when the excitation current I x,y Under the action ofp (x, y), there is an upward process, when the membrane potential v(x, y) ≥ v th When the neuron fires, the membrane voltage quickly drops back to the resting potential v p (x,y).

[0088] where v p (x, y), the present invention takes into account the characteristics of primary visual cortical neurons that preferentially encode significant visual information, and thus uses the primary contour response R 1 (x,y) to correct the resting potential v of the leakage discharge integral model reset , and obtain the resting potential v of the neuron model p (x,y).

[0089]

[0090] Where thre is the contour selection threshold, v reset The default setting is -80.

[0091] For g s (x, y), the present invention considers from the perspective of information sparsity that the contour area often has higher sparsity, while the irrelevant texture area usually has dense multi-directional lines, so its sparsity is lower. Therefore, the sparse coding method is used to obtain the sparse image s(x, y); and the sparse measurement method is used to obtain the sparsity s′(x, y), as shown in formula (10).

[0092]

[0093] In the formula, mean is the mean operation function; U x,y represents a square local window in s(x,y) with (x,y) as the center origin and a window length of step. The default setting of step is 5; w and h represent the local window U x,y The horizontal and vertical coordinates of the inner pixel.

[0094] Then, the bilinear interpolation method is used to enlarge the sparsity s′(x,y) to the value of R 1 (x, y) have the same size, and we get s″(x, y). We use s″(x, y) to correct the leakage conductance g of the leakage discharge integral model. 1 , we get the leakage conductance g of the neuron model s (x, y), as shown in formula (11).

[0095]

[0096] In the formula, resize represents the bilinear interpolation magnification operation, g 1 The default setting is 0.02.

[0097] Finally, the significant feature P(x, y) is input into the corresponding neuron model, and the number of neuron pulses emitted within 1 second is counted as the output of the pulse coding and normalized to obtain the significant contour R 2 (x,y).

[0098] Step (5) Fusion of the contour response results R in the dual-view pathway 1 (x,y) and R 2 (x, y), and get the final contour response R(x, y). The specific implementation process is as follows:

[0099] The present invention simulates the transmission of visual information in the dual vision pathway through multiple neural structures, such as the attached Figure 1 As shown. Considering the primary contour response R 1 There are fewer textures in (x, y), but some contours may be lost; while the salient contour response R 2 The contour in (x, y) is highly significant, but there is some texture noise. Therefore, the mean square error of the two contour responses is calculated as the difference between the two, and pixel-level fusion is performed based on the difference to obtain the final contour response R(x, y).

[0100] Calculate the overall mean square error (MSE) and local mean square error (mse′(x,y)) of the two-way contour responses.

[0101]

[0102] In the formula, F x,y Represents a square local window with (x, y) as the center origin and a window length of ε. The default setting is ε=5.

[0103] If the local mean square error mse′(x, y) is greater than the global mean square error MSE, it is considered that the area may be texture redundancy, and the minimum value of the two responses is selected; otherwise, it is considered that the area may be a contour or background, and the maximum value of the two responses is selected.

[0104] The final contour response R(x,y) is calculated.

[0105]

Claims

1. A contour detection method based on interactive perception of dual-viewing pathways, It is characterized in that The method specifically comprises the following steps: Step (1) Assume that the input image I(x,y) has a width and height of m and n respectively, and (x,y) represents the two-dimensional coordinates of the image; simulate the classical receptive field orientation response characteristics in the superficial layer of the superior colliculus to process I(x,y) and obtain the brightness feature L(x,y) and the maximum orientation response E j (x,y); Step (2) is the maximum orientation response E obtained in step (1) j (x, y) performs contour enhancement on multi-scale information to obtain the primary contour response R 1 (x,y), as the contour response result of the lower pathway; Step (3) extracts the contrast features C from the brightness features L(x, y) obtained in step (1) by simulating the contrast adaptive adjustment mechanism and direction sensitive mechanism of the lateral geniculate body. fit (x, y) and directional features Θ(x, y), and fuse the two features to obtain the salient features P(x, y) of the image; the specific implementation process is as follows: First, a brightness contrast calculation model is constructed to obtain the brightness contrast C(x,y), as shown in formula (1); S x,y It represents a square local window with (x, y) as the center point and a window length of d in I(x, y); r = (d-1) / 2 is S x,y The default setting of half window length is d=9; (x i ,y i ) represents the i-th pixel coordinate in the local window arranged from left to right and from top to bottom, i∈[1,d 2 ];ω(x i ,y i ) is the cosine weighting function; μ represents the local window S x,y In the range ω(x i ,y i ) is the cumulative sum; Then, the contrast response function is constructed according to the contrast adaptive adjustment mechanism to dynamically adjust the response characteristics of the brightness contrast and obtain the contrast feature C fit (x, y), as shown in formula (2); δ(x i ,y i )=|C(x i ,y i )-C(x',y')| Where ι is the expansion index, which determines the slope of the contrast adaptation curve; η is the proportional adjustment coefficient, and the default setting is η=0.2; T x,y represents a square local window in C(x,y) with (x,y) as the center origin and a window length of 3; δ(x i ,y i ) is the local window T x,y The median coordinate (x i ,y i ) and the absolute value of the contrast difference between the corresponding pixels at (x, y); C δ (x i ,y i ) is the local window T x,y In δ(x i ,y i ), C(x',y') represents the brightness contrast of the origin at the center of the local window; Due to the direction-selective property of the two-dimensional Gaussian derivative function, the median scale σ c The corresponding maximum orientation response E c (x,y) as the directional feature Θ(x,y); Finally, the contrast feature C fit (x, y) and the directional feature Θ(x, y) are normalized and fused by dot multiplication to obtain the salient feature P(x, y); P(x,y)=C fit ′(x,y)·Θ′(x,y) (3) In the formula, C fit ′(x,y) is the normalized contrast feature C fit (x, y), Θ′(x, y) is the normalized directional feature Θ(x, y); Step (4) simulates the neural coding mechanism in the primary visual cortex, performs pulse coding on the salient feature P(x, y) obtained in step (3), and obtains the salient contour R 2 (x, y), as the contour response result of the upper path, the specific implementation process is as follows: First, the improved leakage discharge integral model is used as the neuron model of pulse coding. There is a one-to-one correspondence between P(x, y) and the neuron model, x = 1, 2…, m; y = 1, 2,…n; the specific form of the neuron model is shown in formula (4); Where v(x,y) is the membrane potential of the neuron model corresponding to P(x,y), c τ is the membrane capacitance; I x,y is the excitation current, which is numerically equal to P(x,y); v th is the pulse firing threshold potential, the default setting is -50; g s (x, y) is the leakage conductance; when the excitation current I x,y Under the action of p (x, y), there is an upward process, when the membrane potential v(x, y) ≥ v th When the neuron fires, the membrane voltage quickly drops back to the resting potential v p (x,y); Using the primary contour response R 1 (x,y) to correct the resting potential v of the leakage discharge integral model reset , and obtain the resting potential v of the neuron model p (x,y); v p (x,y)=v reset ×F(x,y)+v reset Where thre is the contour selection threshold, v reset The default setting is -80; For g s (x, y) is set, and the sparse coding method is used to obtain the sparse image s(x, y); and the sparse measurement method is used to obtain the sparsity s′(x, y), as shown in formula (6); In the formula, mean is the mean operation function; U x,y represents a square local window in s(x,y) with (x,y) as the center origin and a window length of step. The default setting of step is 5; w and h represent the local window U x,y The horizontal and vertical coordinates of the inner pixel; Then, the bilinear interpolation method is used to enlarge the sparsity s′(x,y) to the value of R 1 (x, y) have the same size, and we get s″(x, y); use s″(x, y) to correct the leakage conductance g of the leakage discharge integral model 1 , we get the leakage conductance g of the neuron model s (x, y), as shown in formula (7); In the formula, resize represents the bilinear interpolation magnification operation, g 1 The default setting is 0.02; Finally, the significant feature P(x, y) is input into the corresponding neuron model, and the number of neuron pulses emitted within 1 second is counted as the output of the pulse coding and normalized to obtain the significant contour R 2 (x,y); Step (5) Fusion of the contour response results R in the dual-view pathway 1 (x,y) and R 2 (x, y), and get the final contour response R(x, y); the specific implementation process is as follows: The visual information in the simulated dual-view pathway is transmitted through multiple neural structures, taking into account the primary contour response R 1 There are fewer textures in (x, y), but some contours may be lost; while the salient contour response R 2 The contour in (x, y) is highly significant, but there is some texture noise; therefore, the mean square error of the two contour responses is calculated as the difference between the two, and pixel-level fusion is performed based on the difference to obtain the final contour response R(x, y); Calculate the overall mean square error MSE and local mean square error mse′(x,y) of the two-way contour response; In the formula, F x,y Represents a square local window with (x, y) as the center origin and a window length of ε. The default setting is ε=5; If the local mean square error mse′(x, y) is greater than the overall mean square error MSE, it is considered to be texture redundancy and the minimum value of the two responses is selected; otherwise, it is considered to be contour or background and the maximum value of the two responses is selected; the final contour response R(x, y) is calculated; 2. According to claim 1, a contour detection method based on dual-viewing pathway interactive perception, Features: The classical receptive field orientation response characteristics in the simulated superficial layer of the superior colliculus described in step (1) are processed to obtain the maximum orientation response E j (x,y), the specific implementation process is as follows: First, considering the photoelectric conversion characteristics of the retina to visual stimuli, the brightness feature L(x,y) is obtained by cosine weighted calculation, as shown in formula (10); In the formula, S x,y It represents a square local window with (x, y) as the center point and a window length of d in I(x, y); r = (d-1) / 2 is S x,y The default setting of half window length is d=9; (x i ,y i ) represents the i-th pixel coordinate in the local window arranged from left to right and from top to bottom, i∈[1,d 2 ];ω(x i ,y i ) is the cosine weighting function; μ represents the local window S x,y In the range ω(x i ,y i ) is the cumulative sum; The brightness feature L(x,y) is used as the input of the two-dimensional Gaussian derivative function to simulate the boundary response characteristics of the classic receptive field; the orientation parameter of the two-dimensional Gaussian derivative function is set to ori=1,2,…,8; scale parameter is set to σ j =2j-1,j=1,2,…,k, where k is an odd number and is 5 by default; for a certain scale parameter σ j , traverse all orientation parameters θ ori , select the maximum value of the two-dimensional Gaussian derivative function response and get the maximum orientation response E j (x, y), the subscript j indicates that the scale corresponding to the maximum orientation response is σ j .

3. According to claim 1, a contour detection method based on dual-viewing pathway interactive perception, Features: The maximum orientation response E obtained in step (1) in step (2) j (x, y) performs contour enhancement on multi-scale information to obtain the primary contour response R 1 (x, y), as the contour response result of the lower path; the specific steps are as follows: To obtain the contribution of the maximum orientation response to contour enhancement at different scales, calculate each scale σ j The maximum orientation response E j (x,y) and the scale median σ c The maximum orientation response E c The difference between (x, y), where c = (k + 1) / 2, where k is the scale parameter, is recorded as △E j (x, y), as shown in formula (11); The subscript j indicates that the scale corresponding to the maximum orientation response is σ j ; Difference △E j The positive component of (x, y) reflects more of the meaningless texture area of ​​the image, while the negative component reflects the grayscale difference near the image contour. In order to enhance the contour and avoid grayscale saturation, the positive and negative components of the difference are scaled to obtain the contour enhancement component D j (x, y), as shown in formula (12); In the formula, w j is the scaling adjustment coefficient, set to normal distribution N(σ c ,1) in σ j The corresponding value above; is a piecewise function, and t represents the input parameter of the piecewise function; Then, the median value σ c The corresponding maximum orientation response E c (x, y) is the reference and the contour enhancement component D j The accumulated value of (x, y) is added to obtain the response result E(x, y), as shown in formula (13), where w c For normal distribution N(σ c ,1) the maximum value; Finally, the response result E(x,y) is normalized to obtain the primary contour response, denoted as R 1 (x,y).