Image edge detection method, system and device based on entropy analysis and edge density

Through the image edge detection method based on entropy analysis and edge density, combined with sliding window and frequency filtering processing, the problem of combining local features and global context of image edge detection in the existing technology is solved, and the accuracy and adaptability of edge detection are improved and applicable for complex and high-resolution images.

CN118379316BActive Publication Date: 2024-09-13CREC RAILWAY ELECTRIFICATION RAILWAY OPERATIONS MANAGEMENT
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410804915.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-13
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively combine local features and global context information of images, and have poor generalization capabilities on images of different types and qualities. Especially when processing complex and high-resolution images, computing resources and processing time are challenging.

Method used

An image edge detection method based on entropy analysis and edge density is adopted, multi-scale entropy analysis and band-pass filtering processing of frequency representation are performed through a sliding window, and the sensitivity adjustment function and weighted fusion technology are combined to dynamically adjust edge detection parameters and weights to improve Edge detection accuracy and adaptability.

Benefits of technology

It improves the accuracy and efficiency of image edge feature recognition, can more accurately capture local characteristics and identify edge density distribution in complex images, automatically optimizes the accuracy and coherence of edge detection results, and adapts to changes in the complexity of image content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379316B
    Figure CN118379316B
Patent Text Reader

Abstract

The present invention belongs to the field of image processing, and specifically relates to an image edge detection method, system and device based on entropy analysis and edge density. It aims to solve the problem that the existing technology cannot effectively combine the local features of the image and the global context information, and the generalization ability on images of different types and qualities is poor. The present invention includes: performing multi-scale local entropy analysis on the image to be detected based on a sliding window to obtain a multi-scale entropy analysis result; obtaining a frequency representation of the image to be detected, and performing bandpass filtering processing at multiple scales based on the frequency representation to obtain an overall edge density analysis result; weightedly fusion of the multi-scale entropy analysis result and the overall edge density analysis result, and using the fusion result as the edge detection result; the present invention can integrate multiple information, automatically optimize the accuracy and consistency of the edge detection result, and improve the overall performance of edge detection and the generalization ability on images of different types and qualities.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In today's digital age, image processing technology plays a vital role in various fields. From medical diagnosis to self-driving cars, from security monitoring to content creation, the analysis and understanding of images has become an expanding research field. In particular, edge detection, as a basic technology in image processing, can help extract important features in images and lay the foundation for further analysis and processing of images. The edge is where the brightness changes significantly in the image, which can effectively reflect the structural information of the image. Therefore, edge detection occupies a core position in applications such as image recognition, visual tracking and image compression.

[0003] However, although edge detection technology has been widely studied and applied, it still faces many challenges. Since images in natural and artificial environments usually have complex backgrounds and diverse noise interference, it is a challenge to efficiently and accurately extract edges from various images. Traditional edge detection methods, such as the Canny edge detector, although they perform well in some cases, they usually rely on predefined thresholds and parameters, which limits their adaptability and flexibility in dealing with highly complex and changing image environments.

[0004] In addition, with the development of technology and the continuous improvement of image resolution, traditional edge detection methods face huge challenges in computing resources and processing time when processing large-scale high-resolution image data. Therefore, researchers have begun to explore the use of artificial intelligence technology, especially deep learning methods, to overcome these limitations. Deep learning algorithms, especially convolutional neural networks (CNNs), have shown excellent performance in image classification, target detection and other fields. However, the application of deep learning in the field of edge detection is still in the exploratory stage, especially how to effectively combine the local features of the image and the global context information, and how to improve the generalization ability of the algorithm on images of different types and qualities, are still urgent problems to be solved.

[0005] Based on this, the present invention proposes an image edge detection method, system and device based on entropy analysis and edge density. Summary of the invention

[0006] In order to solve the above problems in the prior art, namely, the prior art cannot effectively combine the local features of the image and the global context information, and has poor generalization ability on images of different types and qualities, the present invention provides an image edge detection method, system and device based on entropy analysis and edge density.

[0007] In a first aspect of the present invention, a method for detecting image edges based on entropy analysis and edge density is proposed, the method comprising:

[0008] Initializing a sliding window on the image to be detected, and performing multi-scale local entropy analysis on the image to be detected based on the sliding window to obtain a multi-scale entropy analysis result; wherein the size of the sliding window is changed based on different scales;

[0009] Obtaining a frequency representation of the image to be detected, performing bandpass filtering processing at multiple scales based on the frequency representation, and obtaining an overall edge density analysis result; constructing a sensitivity adjustment function by setting an adjustment coefficient and the edge density analysis result, wherein the sensitivity adjustment function is used to adjust edge detection parameters in the bandpass filtering process;

[0010] The multi-scale entropy analysis result and the overall edge density analysis result are weightedly fused, and the fusion result is used as the edge detection result; wherein the weights in the weighted fusion process are updated based on a set method, and the set method includes a gradient ascent method.

[0011] In some preferred embodiments, the multiscale entropy analysis results H , which is calculated as:

[0012] ;

[0013] in, (x, y) is the coordinate position of any pixel point on the image to be detected; is at scale s and position (x, y) The pixel value is i The probability of For the entropy analysis result of each pixel point, the analysis results of all pixels in the smoothing window of multiple scales are integrated and the integrated results are used as the multi-scale entropy analysis result. H .

[0014] In some preferred embodiments, the frequency representation of the image to be detected is obtained by:

[0015] Perform Fourier transform on the image to be detected to obtain a frequency representation of the image to be detected.

[0016] In some preferred embodiments, the overall edge density analysis result D , which is calculated as:

[0017] ;

[0018] in, (u, v) is the coordinate position of any pixel point on the image to be detected; Represents the coordinates (u, v) The pixels of are band-pass filtered at scale s. D s (u, v) The edge density analysis results for each pixel are taken as the overall edge density analysis results. D .

[0019] In some preferred embodiments, the sensitivity adjustment function S(D) , and its construction method is:

[0020] ;

[0021] in, α and β is the preset adjustment factor.

[0022] In some preferred embodiments, the edge detection result E , which is calculated as:

[0023] ;

[0024] in, W H is the weight of the multi-scale entropy analysis result, W D is the weight of the overall edge density analysis result, H is the result of multi-scale entropy analysis, D This is the overall edge density analysis result.

[0025] In some preferred embodiments, the weights in the weighted fusion process are updated based on a set method, which is:

[0026] Initialize a performance indicator function P(E) , update the weights by gradient ascent to maximize P(E) ; Among them, the entropy value of edge detection is used as the performance indicator function;

[0027] ;

[0028] ;

[0029] in, is the preset learning rate, and They are P(E) about W H and W D The partial derivative of represents the direction and magnitude of the gradient of the weight on the performance index function. For the updated W H , Before updateW H , For the updated W D , Before update W D ;

[0030] Update through iteration W H and W D , until the predetermined convergence condition is reached or the specified number of iterations is completed.

[0031] Another aspect of the present invention provides an image edge detection system based on entropy analysis and edge density. The system comprises:

[0032] A multi-scale entropy analysis result acquisition module is configured to initialize a sliding window on the image to be detected, and perform a multi-scale local entropy analysis on the image to be detected based on the sliding window to obtain a multi-scale entropy analysis result; wherein the size of the sliding window is transformed based on different scales;

[0033] An overall edge density analysis result acquisition module is configured to acquire a frequency representation of the image to be detected, perform bandpass filtering processing at multiple scales based on the frequency representation, and obtain an overall edge density analysis result; construct a sensitivity adjustment function by setting an adjustment coefficient and the edge density analysis result, and the sensitivity adjustment function is used to adjust edge detection parameters in the bandpass filtering process;

[0034] The edge detection result acquisition module performs weighted fusion on the multi-scale entropy analysis result and the overall edge density analysis result, and uses the fusion result as the edge detection result; wherein the weight in the weighted fusion process is updated based on a set method, and the set method includes a gradient ascent method.

[0035] According to a third aspect of the present invention, an electronic device is provided, comprising:

[0036] at least one processor; and

[0037] a memory communicatively connected to at least one of the processors; wherein,

[0038] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the above-mentioned image edge detection method based on entropy analysis and edge density.

[0039] In a fourth aspect of the present invention, a computer-readable storage medium is proposed, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to be executed by the computer to implement the above-mentioned image edge detection method based on entropy analysis and edge density.

[0040] Beneficial effects of the present invention:

[0041] This paper comprehensively explores the method of optimizing image edge detection by using sliding multi-scale entropy analysis, edge density evaluation based on frequency statistics, and adaptive weighted fusion technology. Through these three research contents, a comprehensive edge detection framework is proposed that can improve the accuracy of edge feature recognition in complex image data.

[0042] First, we can capture the local characteristics of the image more finely through the sliding multi-scale entropy analysis improved by the adaptive sliding window algorithm. This method uses observation windows of different scales to analyze the image, so that subtle changes in the image can be effectively distinguished and identified in scenes with more noise or rich details. This step provides a sensitive and accurate means of identifying local features for edge detection.

[0043] Furthermore, we use a frequency statistics-based edge density assessment method to apply multi-scale analysis in the frequency domain to accurately assess the density distribution of edges in the image. This method can not only identify edge-dense and non-dense areas, but also automatically adjust the sensitivity of edge detection according to edge density, thereby providing a more accurate parameter adjustment basis for edge detection. This frequency-based analysis further optimizes edge detection performance, enabling it to adapt to changes in the complexity of image content.

[0044] Finally, we used adaptive weighted fusion technology to combine the sliding multi-scale entropy analysis and the edge density evaluation results based on frequency statistics. By dynamically adjusting the weights of each indicator in the edge detection process, this method can integrate multiple edge detection indicators and automatically optimize the accuracy and consistency of edge detection results. The adaptive adjustment of weights is based on the maximization of the performance indicator function, and the weights are optimized by the gradient ascent method, thereby gradually improving the overall performance of edge detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0046] Figure 1 It is a flow chart of an image edge detection method based on entropy analysis and edge density of the present invention;

[0047] Figure 2It is a schematic diagram comparing the recognition results of an image edge detection method based on entropy analysis and edge density of the present invention with the recognition results of other methods;

[0048] Figure 3 It is a structural diagram of a computer system of a server for implementing the method, system, and device embodiments of the present application. DETAILED DESCRIPTION

[0049] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0050] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0051] The first embodiment of the present invention, see Figure 1 , provides an image edge detection method based on entropy analysis and edge density, the method comprising:

[0052] Initializing a sliding window on the image to be detected, and performing multi-scale local entropy analysis on the image to be detected based on the sliding window to obtain a multi-scale entropy analysis result; wherein the size of the sliding window is changed based on different scales;

[0053] Obtaining a frequency representation of the image to be detected, performing bandpass filtering processing at multiple scales based on the frequency representation, and obtaining an overall edge density analysis result; constructing a sensitivity adjustment function by setting an adjustment coefficient and the edge density analysis result, wherein the sensitivity adjustment function is used to adjust edge detection parameters in the bandpass filtering process;

[0054] The multi-scale entropy analysis result and the overall edge density analysis result are weightedly fused, and the fusion result is used as the edge detection result; wherein the weights in the weighted fusion process are updated based on a set method, and the set method includes a gradient ascent method.

[0055] In view of the above problems, the present invention proposes an image edge detection method based on entropy analysis and edge density. The method aims to take advantage of the advantages of artificial intelligence technology, improve the accuracy and efficiency of edge detection in an adaptive manner, and solve the limitations of traditional methods in complex environments. By introducing entropy analysis and edge density statistics, the present invention can not only automatically adapt to the characteristics of different images, but also effectively process high-resolution images, provide more accurate edge information for subsequent image processing tasks, and show a wide range of application prospects and practical value.

[0056] In order to more clearly illustrate the image edge detection method based on entropy analysis and edge density of the present invention, the embodiment of the present invention is described in detail below, and the detailed description is as follows:

[0057] Initializing a sliding window on the image to be detected, and performing multi-scale local entropy analysis on the image to be detected based on the sliding window to obtain a multi-scale entropy analysis result; wherein the size of the sliding window is changed based on different scales;

[0058] Traditional entropy analysis methods may not be able to effectively distinguish subtle changes in images, especially in scenes with more noise or rich details. In order to improve the recognition accuracy of edge features in complex image data, the present invention adopts an adaptive sliding window algorithm to improve local entropy calculation.

[0059] Assume that the sliding window of the local area of ​​the image to be detected is , among which, here (x, y) represents the coordinates of the window center, and the entropy H can be expressed as:

[0060] ;

[0061] in is the probability that the pixel value in the window W is i. By adaptively adjusting the window size, the local characteristics of the image can be captured more finely.

[0062] The image to be detected is analyzed at multiple scales to extract detailed information at different levels. The scale can be understood as the size of the "window" for observing the image to be detected. Different window sizes can capture different features of the image to be detected. In the present invention, the multi-scale entropy analysis results H , which is calculated as:

[0063] ;

[0064] in, (x, y) is the coordinate position of any pixel point on the image to be detected; is at scale s and position (x, y) The pixel value is i This requires that at each scale s, a window of size s×s is applied to the image to be detected and the distribution of all pixel values ​​in the window is calculated. For the entropy analysis result of each pixel point, the entropy analysis results of all pixels in multiple scale smoothing windows are integrated and the integrated entropy analysis results are used as the multi-scale entropy analysis results. H .

[0065] The present invention improves the calculation of local entropy by combining adaptive sliding windows and multi-scale analysis, thereby improving the accuracy of edge feature recognition in complex image data. By adaptively adjusting the size of the observation window, this method can dynamically capture local characteristics according to the complexity of the image content, especially in scenes with more noise or rich details. Multi-scale analysis further enables the method to extract detail information at different levels, thereby more accurately identifying and analyzing local changes and features of the image.

[0066] In order to accurately evaluate the density distribution of edges in the image to be detected, so as to assist more accurate edge detection, a method of evaluating edge density is applied in the frequency domain using multi-scale analysis. The aim is to analyze the image to be detected at different scales (frequency ranges) to identify the edge density at various scales, thereby providing a more accurate parameter adjustment basis for edge detection.

[0067] According to the frequency characteristics of the image to be detected, by analyzing the frequency spectrum of the image to be detected, the edge-dense and non-dense areas are identified and the sensitivity of edge detection is automatically adjusted to evaluate the edge density. Different edge detection strategies are applied to these areas, specifically:

[0068] Performing Fourier transform on the image to be detected to obtain a frequency representation of the image to be detected, performing bandpass filtering processing at multiple scales based on the frequency representation to obtain an overall edge density analysis result; constructing a sensitivity adjustment function by setting an adjustment coefficient and the edge density analysis result, wherein the sensitivity adjustment function is used to adjust edge detection parameters in the bandpass filtering process;

[0069] The edge detection parameters are used to adjust the accuracy of the bandpass filtering process.

[0070] Among them, the overall edge density analysis result D , which is calculated as:

[0071] ;

[0072] in, (u, v) is the coordinate position of any pixel point on the image to be detected; Represents the coordinates (u, v) The pixels of are bandpass filtered at scale s, and It represents the square of the amplitude of the frequency component at this scale, which is used to estimate the edge density. By applying bandpass filtering at different scales s, the edge density evaluation of the image in different frequency ranges can be obtained, and then the edge detection strategy can be adjusted to optimize the performance. D s (u, v)The edge density analysis results for each pixel are taken as the overall edge density analysis results. D .

[0073] Among them, the present invention (u, v) Can correspond to (x, y) ,in other words, u yes x , v yes y In the present invention, x, y and u、v The separate representation is only to distinguish the two methods of entropy calculation and edge calculation.

[0074] set up D s (u, v) is the edge density evaluation function of the image to be detected in the frequency domain, which can be obtained by Given a sensitivity adjustment function For edge density D Automatically adjust edge detection parameters:

[0075] The sensitivity adjustment function S(D) , and its construction method is:

[0076] ;

[0077] in, α and β is a preset adjustment factor used to control the baseline and amplitude of sensitivity adjustment. Used to smooth edge density D to ensure the sensitivity and stability of parameter adjustment.

[0078] By performing Fourier transform on the image to be detected, obtaining the frequency domain representation, and defining the edge density function to evaluate the edge density at different scales, the edge-dense areas and non-dense areas in the image to be detected can be accurately identified. In addition, the introduced sensitivity adjustment function automatically adjusts the edge detection parameters according to the edge density, and the sensitivity and stability of the parameter adjustment are guaranteed by controlling the coefficient and logarithmic function smoothing.

[0079] Combining the multi-scale entropy analysis results and the edge density analysis results, using a deep learning algorithm, dynamically adjust the weights of each indicator in the edge detection process according to the results of entropy analysis and edge density evaluation to achieve the best detection effect. Combining multiple edge detection indicators, automatically optimize the accuracy and consistency of edge detection results. Improve the overall performance of edge detection through adaptive weighted fusion, specifically:

[0080] The multi-scale entropy analysis result and the overall edge density analysis result are weightedly fused, and the fusion result is used as the edge detection result; wherein the weights in the weighted fusion process are updated based on a set method, and the set method includes a gradient ascent method.

[0081] Among them, the edge detection result E , which is calculated as:

[0082] ;

[0083] in, W H is the weight of the multi-scale entropy analysis result, W D is the weight of the overall edge density analysis result, H is the result of multi-scale entropy analysis, D This is the overall edge density analysis result.

[0084] The weights in the weighted fusion process of the present invention are updated based on a set method, which is:

[0085] Initialize a performance indicator function P(E) , update the weights by gradient ascent to maximize P(E) ; Among them, the entropy value of edge detection is used as the performance indicator function;

[0086] ;

[0087] ;

[0088] in, is the preset learning rate, and They are P(E) about W H and W D The partial derivative of represents the direction and magnitude of the gradient of the weight on the performance index function. For the updated W H , Before update W H , For the updated W D , Before update W D ;

[0089] Update through iteration W H andW D , until the predetermined convergence condition is reached or the specified number of iterations is completed.

[0090] Among them, through the weighted fusion of multi-scale entropy analysis and overall edge density analysis, the edge significance information is already included in the result, and the two kinds of information reflect the edge characteristics of the image from different angles, so there is no need to set a threshold for edge judgment.

[0091] The value of each pixel directly represents its significance as an edge, and the fusion result can be directly used as the edge detection result.

[0092] In the image edge detection method, the performance indicator function P(E) is used to evaluate the quality of the edge detection results. There are many options for this performance indicator function, such as F score function, precision function, recall function, Dice function, etc. This function is designed to measure the effect of the current detection algorithm. Therefore, in order to simplify the calculation, we chose the most direct edge entropy value and designed the weight parameter to facilitate model training. The specific expression is as follows:

[0093] ; Represents the probability of the gray value of the i-th pixel in the edge detection result, is the model performance weight.

[0094] like Figure 2 As shown, our method of the present invention is deployed on a hardware device and tested on the public data set BSD300. We selected four different images, extracted the image edges using four different public edge detection algorithms: Prewitt, Sobel, Roberts and Laplacian algorithms, and conducted comparative tests.

[0095] Among them, according to the edge detection of the bird image, it can be seen that in noisy images, using the entropy of the local area to detect the edge can be more robust than the traditional gradient or pixel intensity method. By adjusting the size of the sliding window, you can adaptively focus on areas with richer details or more subtle changes. The change of window size in different parts of the image can capture different levels of edge information, especially in areas with dense edges or complex textures.

[0096] In the frequency domain, edges are usually expressed as high-frequency information. Through multi-scale analysis, we can distinguish between edge-dense and non-dense areas in the image, so that we can adjust the edge detection strategy more intelligently. This is especially obvious in the horse picture.

[0097] In general, the adaptive sliding window can better cope with noise because it can adjust the window size according to the characteristics of the local area and reduce the interference of noise on the edge detection results. Multi-scale analysis allows the extraction of details at different levels, which may be more effective than traditional algorithms for images with rich textures or subtle edges. Edge density evaluation in the frequency domain and adaptive weighted fusion can dynamically adjust the detection strategy according to the image content, which can provide better detection accuracy and consistency.

[0098] Although the various steps in the above embodiment are described in the above-mentioned order, those skilled in the art can understand that in order to achieve the effect of this embodiment, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in a reverse order. These simple changes are within the scope of protection of the present invention.

[0099] The second embodiment of the present invention proposes an image edge detection system based on entropy analysis and edge density, which is based on the image edge detection method based on entropy analysis and edge density of the first embodiment. The system includes:

[0100] A multi-scale entropy analysis result acquisition module is configured to initialize a sliding window on the image to be detected, and perform a multi-scale local entropy analysis on the image to be detected based on the sliding window to obtain a multi-scale entropy analysis result; wherein the size of the sliding window is transformed based on different scales;

[0101] An overall edge density analysis result acquisition module is configured to acquire a frequency representation of the image to be detected, perform bandpass filtering processing at multiple scales based on the frequency representation, and obtain an overall edge density analysis result; construct a sensitivity adjustment function by setting an adjustment coefficient and the edge density analysis result, and the sensitivity adjustment function is used to adjust edge detection parameters in the bandpass filtering process;

[0102] The edge detection result acquisition module performs weighted fusion on the multi-scale entropy analysis result and the overall edge density analysis result, and uses the fusion result as the edge detection result; wherein the weight in the weighted fusion process is updated based on a set method, and the set method includes a gradient ascent method.

[0103] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0104] It should be noted that the image edge detection system based on entropy analysis and edge density provided in the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined. For example, the modules in the above embodiment can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not regarded as improper limitations of the present invention.

[0105] An electronic device according to a third embodiment of the present invention includes:

[0106] at least one processor; and

[0107] a memory communicatively connected to at least one of the processors; wherein,

[0108] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the above-mentioned image edge detection method based on entropy analysis and edge density.

[0109] A computer-readable storage medium according to a fourth embodiment of the present invention stores computer instructions, and the computer instructions are used to be executed by the computer to implement the above-mentioned image edge detection method based on entropy analysis and edge density.

[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the storage device and processing device described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0111] Those skilled in the art should be able to appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two, and the programs corresponding to the software modules and method steps can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0112] Reference below Figure 3 , which shows a schematic diagram of the structure of a computer system of a server for implementing the method, system, and device embodiments of the present application. Figure 3 The server shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0113] like Figure 3 As shown, the computer system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303. Various programs and data required for system operation are also stored in the RAM 303. The CPU 301, ROM 302 and RAM 303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0114] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0115] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 309, and / or installed from the removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, the above-mentioned functions defined in the method of the present application are executed. It should be noted that the above-mentioned computer-readable medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus or a device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus or a device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0116] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0117] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The terms "first", "second", etc. are used to distinguish similar objects rather than to describe or indicate a particular order or sequence.

[0119] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.

[0120] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. An image edge detection method based on entropy analysis and edge density, characterized in that: The method includes: Initializing a sliding window on the image to be detected, and performing multi-scale local entropy analysis on the image to be detected based on the sliding window to obtain a multi-scale entropy analysis result; wherein the size of the sliding window is changed based on different scales; Obtaining a frequency representation of the image to be detected, performing bandpass filtering processing at multiple scales based on the frequency representation, and obtaining an overall edge density analysis result; constructing a sensitivity adjustment function by setting an adjustment coefficient and the edge density analysis result, wherein the sensitivity adjustment function is used to adjust edge detection parameters in the bandpass filtering process; Performing weighted fusion on the multi-scale entropy analysis result and the overall edge density analysis result, and using the fusion result as the edge detection result; wherein the weights in the weighted fusion process are updated based on a set method, and the set method includes a gradient ascent method; The overall edge density analysis results D , which is calculated as: ; in, (u, v) is the coordinate position of any pixel point on the image to be detected; Represents the coordinates (u, v) The pixels of are bandpass filtered at scale s. D s (u, v) The edge density analysis results for each pixel are taken as the overall edge density analysis results. D ; The sensitivity adjustment function S(D) , and its construction method is: ; in, α and β is the preset adjustment factor.

2. The image edge detection method based on entropy analysis and edge density according to claim 1, characterized in that: The multiscale entropy analysis results H , which is calculated as: ; in, (x, y) is the coordinate position of any pixel point on the image to be detected; is at scale s and position (x, y) The pixel value is i The probability of For the entropy analysis result of each pixel point, the analysis results of all pixels in the smoothing window of multiple scales are integrated and the integrated results are used as the multi-scale entropy analysis result. H .

3. The image edge detection method based on entropy analysis and edge density according to claim 1, characterized in that: The frequency representation of the image to be detected is obtained by: Perform Fourier transform on the image to be detected to obtain a frequency representation of the image to be detected.

4. The image edge detection method based on entropy analysis and edge density according to claim 1, characterized in that: The edge detection result E , which is calculated as: ; in, W H is the weight of the multi-scale entropy analysis result, W D is the weight of the overall edge density analysis result, H is the result of multi-scale entropy analysis, D This is the overall edge density analysis result.

5. The image edge detection method based on entropy analysis and edge density according to claim 4, characterized in that: The weights in the weighted fusion process are updated based on the set method, which is: Initialize a performance indicator function P(E) , update the weights by gradient ascent to maximize P(E) ; Among them, the entropy value of edge detection is used as the performance indicator function; ; ; in, is the preset learning rate, and They are P(E) about W H and W D The partial derivative of represents the direction and magnitude of the gradient of the weight on the performance index function. For the updated W H , Before update W H , For the updated W D , Before update W D ; Update through iteration W H and W D , until the predetermined convergence condition is reached or the specified number of iterations is completed.

6. An image edge detection system based on entropy analysis and edge density, based on the image edge detection method based on entropy analysis and edge density according to any one of claims 1 to 5, characterized in that: The system includes: A multi-scale entropy analysis result acquisition module is configured to initialize a sliding window on the image to be detected, and perform a multi-scale local entropy analysis on the image to be detected based on the sliding window to obtain a multi-scale entropy analysis result; wherein the size of the sliding window is transformed based on different scales; An overall edge density analysis result acquisition module is configured to acquire a frequency representation of the image to be detected, perform bandpass filtering processing at multiple scales based on the frequency representation, and obtain an overall edge density analysis result; construct a sensitivity adjustment function by setting an adjustment coefficient and the edge density analysis result, and the sensitivity adjustment function is used to adjust edge detection parameters in the bandpass filtering process; The overall edge density analysis results D , which is calculated as: ; in, (u, v) is the coordinate position of any pixel point on the image to be detected; Represents the coordinates (u, v) The pixels of are band-pass filtered at scale s. D s (u, v) The edge density analysis results for each pixel are taken as the overall edge density analysis results. D ; The sensitivity adjustment function S(D) , and its construction method is: ; in, α and β is the preset adjustment factor; The edge detection result acquisition module performs weighted fusion on the multi-scale entropy analysis result and the overall edge density analysis result, and uses the fusion result as the edge detection result; wherein the weight in the weighted fusion process is updated based on a set method, and the set method includes a gradient ascent method.

7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by the processor, and the instructions are used to be executed by the processor to implement the image edge detection method based on entropy analysis and edge density as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to be executed by the computer to implement the image edge detection method based on entropy analysis and edge density as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Video defogging method in computer

    CN106846260A

  • Image fusion method based on interval type-2 fuzzy set and CHMM model

    CN113379666A

  • Lunar rover autonomous positioning method based on adaptive threshold edge registration visual odometer

    CN117372460A

  • Brand image detection

    US20090169115A1