A method and device for superpixel segmentation of natural images

Through multi-feature extraction and single-core affinity graph learning models, combined with the alternating direction multiplier method and spectral clustering algorithm, the problem of insufficient information utilization and low efficiency in natural image segmentation is solved, and more efficient superpixel segmentation effects and Border fit.

CN117292133BActive Publication Date: 2024-10-15ZHEJIANG XINMAI SILICON CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202311423487.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2024-10-15
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

Existing natural image segmentation methods have limited utilization of original image information, lack of differential feature fusion, low computational efficiency, and affected multi-target segmentation effects.

Method used

A multi-feature extraction method is used to integrate color, texture and contour features to construct a multi-dimensional feature data matrix, and a representation coefficient matrix is ​​obtained through a single-core affinity graph learning model and the alternating direction multiplier method, a target affinity graph matrix is ​​constructed, and the spectral clustering is input Class algorithm for superpixel segmentation.

Benefits of technology

It improves the super-pixel segmentation effect of natural images, especially at texture changes and contour boundaries, enhances the ability to distinguish multi-target objects, and improves segmentation efficiency and boundary fit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117292133B_ABST
    Figure CN117292133B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for superpixel segmentation of natural images, which relates to the field of computer vision technology and includes the following steps: extracting multiple features from natural images to obtain several types of feature data, and integrating the several types of feature data into a multi-dimensional feature data matrix; inputting the multi-dimensional feature data matrix into a pre-constructed single-core affinity graph learning model, and using the alternating direction multiplier method to solve the input model to obtain several representation coefficient matrices; constructing a target affinity graph matrix based on several representation coefficient matrices, and inputting the target affinity graph matrix into a spectral clustering algorithm to obtain a segmented superpixel image. The present application utilizes feature information of different dimensions of the image, which can effectively improve the superpixel segmentation effect of natural images, making the superpixel block more conducive to distinguishing multiple target objects in the image, especially at texture changes and contour boundaries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a method and device for superpixel segmentation of natural images. Background Art

[0002] In the image segmentation task of computer vision, traditional methods use a single pixel in the image as the basic processing unit, which also leads to an increase in computational time and internal resource consumption. The concept of superpixel segmentation has made up for this drawback to a certain extent. Superpixel segmentation technology takes into account the similarity between a single pixel in the original image and the surrounding pixels, merges multiple pixels in a small area into a superpixel block, and uses the superpixel block as the basic processing unit in the subsequent segmentation process. At present, most superpixel segmentation methods are basically divided into two categories, one is based on gradient changes, and the other is based on graph theory. Among them, the former starts from the perspective of clustering, iteratively converges single pixels in the local area in the direction of the most drastic change in gradient value, calculates the cluster center while judging the attributes of each current pixel, and then continuously updates the cluster center and the attributes until the maximum number of iterations or convergence value is reached. The main representative methods are Simple Linear Iterative Clustering (SLIC) and Mean Shift (MSP) methods. Shift), level set method and watershed method; the latter mainly constructs a hetero-weighted undirected graph, which consists of a vertex set and an edge set. The pixels in the image are compared to the connection points in the hetero-weighted undirected graph. The connection line between two points in the neighborhood is called an edge, and the hetero-weight on the edge represents the difference between the two points. The graph is then cut according to different cutting criteria. The more commonly used methods include normalized cut set method, boundary evolution method and superpixel network grid method.

[0003] However, these methods also have shortcomings, which roughly include limited use of information in original natural images and lack of fusion and utilization of differential features; insufficient attributes of target boundaries in natural images; the computational efficiency of the preprocessing stage needs to be improved; and the large pixel differences among multiple targets, blurred differences between multiple targets, and internal and external deviations can easily affect the segmentation effect. Summary of the invention

[0004] The present application provides a superpixel segmentation method for natural images, which aims to solve the problems of single feature information and low segmentation efficiency in the prior art when segmenting natural images.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] The present invention provides a superpixel segmentation method for natural images, comprising the following steps:

[0007] Performing multi-feature extraction on natural images to obtain several types of feature data, and integrating the several types of feature data into a multi-dimensional feature data matrix;

[0008] Inputting the multi-dimensional feature data matrix into a pre-constructed single-core affinity graph learning model, and using an alternating direction multiplication method to solve the inputted model to obtain a plurality of representation coefficient matrices;

[0009] A target affinity graph matrix is ​​constructed according to the plurality of representation coefficient matrices, and the target affinity graph matrix is ​​input into a spectral clustering algorithm to obtain a segmented superpixel image.

[0010] Preferably, the multi-feature extraction of the natural image is performed to obtain several types of feature data, including:

[0011] Color feature extraction, texture feature extraction and contour feature extraction are performed on natural images respectively.

[0012] Preferably, the color feature extraction comprises:

[0013] Acquire RGB three-component values ​​of the natural image, and construct a color histogram of the natural image according to the three-component values;

[0014] Converting the natural image into a grayscale image, and acquiring all grayscale information in the grayscale image to form a grayscale histogram;

[0015] The color histogram and the grayscale histogram are unified as the target color feature of the natural image.

[0016] Preferably, the texture feature extraction comprises:

[0017] The texture features of the natural image are extracted using a local binary pattern and a gray level co-occurrence matrix to obtain a first texture feature and a second texture feature, and the first texture feature and the second texture feature are used together as target texture features of the natural image.

[0018] Preferably, the contour feature extraction comprises:

[0019] The Robert operator, the Prewitt operator and the Sobel operator are used to extract contour features of the natural image respectively to obtain a first contour feature, a second contour feature and a third contour feature, and the first contour feature, the second contour feature and the third contour feature are used together as target contour features of the natural image.

[0020] Preferably, the single-core affinity graph learning model is:

[0021]

[0022] stF(Y)=F(Y)C+E,J=C,Diag(C)=0n,R=JM,Kij= <F(yi),F(yj)

[0023] Among them, E is the noise matrix, R is the representation coefficient matrix of local feature constraints, J and C are representation coefficient matrices, K is the kernel matrix, Y is the multi-dimensional feature data matrix, and M is the weight matrix.

[0024] Preferably, constructing a target affinity graph matrix according to the plurality of representation coefficient matrices comprises:

[0025] Calculating the transpose of each of the plurality of representation coefficient matrices;

[0026] Calculate the mean of each representation coefficient matrix and its transpose to obtain the original affinity graph matrix corresponding to each type of feature;

[0027] The weighted average of all the original affinity graph matrices is calculated to obtain a target affinity graph matrix.

[0028] Preferably, the spectral clustering algorithm is a point cloud segmentation algorithm.

[0029] A superpixel segmentation device for natural images, comprising:

[0030] An extraction module, used for performing multi-feature extraction on natural images to obtain several types of feature data, and integrating the several types of feature data into a multi-dimensional feature data matrix;

[0031] A solution module, used for inputting the multi-dimensional feature data matrix into a pre-built single-core affinity graph learning model, and using an alternating direction multiplication method to solve the inputted model to obtain a plurality of representation coefficient matrices;

[0032] A segmentation module is used to construct a target affinity graph matrix according to the plurality of representation coefficient matrices, and input the target affinity graph matrix into a spectral clustering algorithm to obtain a segmented superpixel image.

[0033] A computer-readable storage medium storing a computer program, wherein the computer program enables a computer to implement a superpixel segmentation method for a natural image as described in any one of the above when executed.

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

[0035] This application utilizes the feature information of different dimensions of the image, which can effectively improve the superpixel segmentation effect of natural images, making the superpixel blocks more conducive to distinguishing multiple target objects in the image, especially at the texture changes and contour boundaries. At the same time, a new affinity graph learning model is designed, a single core is introduced to process the nonlinear structure of the feature data, BDR is used to improve the blocking performance of the coefficient matrix, and the spatial correlation between pixels is taken into account. The local characteristics are utilized, which is conducive to segmenting similar pixels into superpixel blocks, making the boundaries more close to the original target objects, and improving the superpixel segmentation effect of natural images to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0037] Figure 1 This is a first flow chart of a superpixel segmentation method for a natural image implemented in Embodiment 1 of the present application;

[0038] Figure 2 This is a second flow chart of a superpixel segmentation method for a natural image implemented in Embodiment 2 of the present application;

[0039] Figure 3 Schematic diagram of a superpixel segmentation device for a natural image implemented in Embodiment 3 of the present application;

[0040] Figure 4 It is a schematic diagram of an electronic device for implementing a superpixel segmentation method for natural images according to Example 4 of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0042] The terms "first", "second", etc. in the claims and specification of the present application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances. This is merely a way of distinguishing objects with the same properties in the embodiments of the present application. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, so that a process, method, system, product or apparatus that includes a series of units is not necessarily limited to those units, but may include other units not expressly listed or inherent to these processes, methods, products or apparatuses.

[0043] Example 1

[0044] like Figure 1 As shown, a superpixel segmentation method for a natural image comprises the following steps:

[0045] S110, performing multi-feature extraction on the natural image to obtain several types of feature data, and integrating the several types of feature data into a multi-dimensional feature data matrix;

[0046] S120, inputting the multi-dimensional feature data matrix into a pre-constructed single-core affinity graph learning model, and using an alternating direction multiplication method to solve the inputted model to obtain a plurality of representation coefficient matrices;

[0047] S130 , constructing a target affinity graph matrix according to the plurality of representation coefficient matrices, and inputting the target affinity graph matrix into a spectral clustering algorithm to obtain a segmented superpixel image.

[0048] In view of the fact that the existing superpixel segmentation is limited to the color features and positional relationships of natural images, and ignores other key information such as feature data and global target objects, in this embodiment, multi-feature extraction is first performed on the natural image, where the multi-features include the color features, texture features, and contour features of the natural image, thereby obtaining several types of feature data, and then integrating these several types of feature data into a multi-dimensional feature data matrix, which is input into a pre-constructed single-core affinity graph learning model. The model not only introduces a single core to process nonlinear structure data, but also utilizes block diagonalization to make the matrix have a better block structure. A regularizer (BDR) is used to constrain the representation matrix, and local characteristics are introduced to characterize the spatial correlation between image pixels. The model with a multi-dimensional feature data matrix as input is solved using the alternating direction multiplier method, namely the ADMM algorithm, to obtain the representation coefficient matrix corresponding to each feature. Then, a target affinity graph matrix is ​​constructed according to these representation coefficient matrices, and the target affinity graph matrix is ​​input into a spectral clustering algorithm. Preferably, the spectral clustering algorithm is a point cloud segmentation algorithm, namely the Ncut algorithm, and the sheared data points are mapped back to the natural image. Several individual pixel points are merged into a quadrilateral-like superpixel block. The similarity between the pixels in the block is extremely high, and the similarity between the block boundaries is extremely low, thereby obtaining a superpixel image that fits the boundary of the target object as a whole.

[0049] The image superpixel segmentation process of this embodiment can be used as a preprocessing part in the image segmentation task. Since a single pixel point is no longer used as the basic processing unit in the subsequent segmentation task, but a superpixel block is used as the basic processing unit, the segmentation efficiency can be effectively improved and resource consumption can be reduced. In addition, the color features, texture features and contour features of the image are also used for information complementation, and are no longer limited to a single color feature. The superpixel segmentation effect of natural images can be effectively improved, so that the superpixel block is more conducive to distinguishing multiple target objects in the image, especially at texture changes and contour boundaries. At the same time, a new affinity graph learning model is designed in this embodiment, a single core is introduced to process the nonlinear structure of feature data, and BDR is used to improve the blocking performance of the coefficient matrix. At the same time, the spatial correlation between pixels is taken into account, and the local characteristics are also used, which is conducive to segmenting similar pixels into superpixel blocks and making the boundaries more close to the original target object, thereby improving the superpixel segmentation effect of natural images to a certain extent.

[0050] Example 2

[0051] like Figure 2 As shown, a superpixel segmentation method for a natural image includes:

[0052] S210, performing color feature extraction, texture feature extraction and contour feature extraction on the natural image respectively to obtain several types of feature data, and integrating the several types of feature data into a multi-dimensional feature data matrix;

[0053] S220, inputting the multi-dimensional feature data matrix into a pre-constructed single-core affinity graph learning model, and using an alternating direction multiplication method to solve the inputted model to obtain a plurality of representation coefficient matrices;

[0054] S230, calculating the transpose of each of the plurality of representation coefficient matrices;

[0055] S240, performing mean calculation on each representation coefficient matrix and its transpose to obtain an original affinity graph matrix corresponding to each type of feature;

[0056] S250, calculating the weighted average of all the original affinity graph matrices to obtain a target affinity graph matrix;

[0057] S260: Input the target affinity graph matrix into a spectral clustering algorithm to obtain a segmented superpixel image.

[0058] In this embodiment, the natural image is first divided into three channels of RGB, and the three component values ​​of each pixel block are counted respectively to construct the color histogram of the natural image. Then, the natural image is converted into a grayscale image, and its grayscale information is counted to form a grayscale histogram. The grayscale histogram and the color histogram are used together as the target color feature of the natural image. Then, the local binary pattern (LBP) is used to extract the first texture feature of the natural image. LBP can express the characteristics and properties of the texture part in the image, and has grayscale stability and rotation stability. When extracting, the grayscale value of the central pixel point is used as the threshold line, and then compared with the surrounding pixels in the local area one by one. If the grayscale value of the pixel point is less than the threshold line, its grayscale value is changed to 0, otherwise it is changed to 1. Finally, the sequential binary number in the local area is converted into a decimal number, which is the LBP value of the point. At the same time, the gray level co-occurrence matrix (GLACM) is also used to extract the first texture feature of the natural image. The second texture feature of the natural image is extracted by using a grayscale co-occurrence matrix (GLCM). The probability of two pixels with the same grayscale value at known directions and distances is calculated to form a grayscale joint probability matrix. Then, multiple texture feature vectors can be obtained according to different representation parameters, that is, the final grayscale co-occurrence matrix is ​​obtained. The first texture feature LBP and the second texture feature GLCM are used together as the target texture feature of the natural image. Then, three different edge detection operators are used to extract contour features. Preferably, the three edge detection operators are Roberts operator, Prewitt operator and Sobel operator. The boundaries of objects in the image are detected by calculation. Templates of different operators have different calculation parameters. Different line information can be extracted in the vertical, horizontal and diagonal directions for complementarity. Finally, the various feature data obtained are integrated into a multi-dimensional feature data matrix.

[0059] The multi-dimensional feature data matrix is ​​input into the pre-built single kernel affinity graph learning model (SKAGL). The construction process of the model includes:

[0060] The superpixel segmentation problem is expressed as Model 1:

[0061]

[0062] stY=YC+E,Diag(C)=0 n

[0063] Among them, Y is the multi-dimensional feature data matrix, E is the error term, and C is the representation coefficient matrix.

[0064] Model 1 does not handle nonlinear structure data well enough, so a single kernel is introduced to map the original nonlinear data to a high-dimensional feature space for linear analysis, thus obtaining Model 2:

[0065]

[0066] stF(Y)=F(Y)C+E, Diag(C)=0n, Kij= <F(yi),F(yj)

[0067] Where K is the Gram matrix.

[0068] In order to make the representation coefficient matrix have a better block structure, block diagonal regularizer (BDR) is introduced on the basis of model 2 to constrain the representation coefficient matrix. At the same time, unlike some conventional sample data clustering, there is a certain spatial correlation between image pixels. Therefore, local characteristics are also introduced in this embodiment to characterize the spatial correlation. The final single-core affinity graph learning model is:

[0069]

[0070] stF(Y)=F(Y)C+E,J=C,Diag(C)=0n,R=JM,Kij= <F(yi),F(yj)

[0071] Among them, E is the noise matrix, R is the representation coefficient matrix of local feature constraints, J and C are representation coefficient matrices, K is the kernel matrix, Y is the multi-dimensional feature data matrix, and M is the weight matrix.

[0072] Then use the ADMM algorithm to solve the model after input to obtain the representation coefficient matrix corresponding to each type of feature, and calculate the transpose of each representation coefficient matrix at the same time. Perform mean calculation on each representation coefficient matrix and its transpose to obtain the original affinity graph matrix of each type of feature. Then perform weighted average calculation on all the original affinity graph matrices to obtain the target affinity graph matrix, which can be expressed as follows:

[0073]

[0074] Among them, C i is the representation coefficient matrix of feature i, S i is the original affinity graph matrix of feature i, W i is the weight of feature i, and A is the target affinity graph matrix.

[0075] Finally, the target affinity graph matrix is ​​input into the Ncut algorithm to cluster and segment the feature data points, and then the cut data points are mapped back to the natural image to form multiple square pixel blocks, thereby obtaining a segmented superpixel image.

[0076] In the superpixel segmentation method based on affinity graph learning in this embodiment, various types of features of natural images are fused, and the original affinity graph matrix is ​​calculated category by category, thereby achieving effective utilization of various types of feature information of the image. At the same time, for the three types of original affinity graph matrices obtained, difference weights are used to uniformly construct a single target affinity graph matrix, which can also effectively improve the subsequent segmentation effect.

[0077] Example 3

[0078] like Figure 3 As shown, a superpixel segmentation device for a natural image comprises:

[0079] An extraction module 10 is used to perform multi-feature extraction on natural images to obtain several types of feature data, and integrate the several types of feature data into a multi-dimensional feature data matrix;

[0080] A solution module 20 is used to input the multi-dimensional feature data matrix into a pre-built single-core affinity graph learning model, and use an alternating direction multiplication method to solve the input model to obtain a plurality of representation coefficient matrices;

[0081] The segmentation module 30 is used to construct a target affinity graph matrix according to the plurality of representation coefficient matrices, and input the target affinity graph matrix into a spectral clustering algorithm to obtain a segmented superpixel image.

[0082] One implementation of the above-mentioned device can be: the extraction module 10 performs multi-feature extraction on the natural image to obtain several types of feature data, and integrates the several types of feature data into a multi-dimensional feature data matrix; the solution module 20 inputs the multi-dimensional feature data matrix obtained by the extraction module 10 into a pre-constructed single-core affinity graph learning model, and uses the alternating direction multiplication method to solve the input model to obtain several representation coefficient matrices; the segmentation module 30 constructs a target affinity graph matrix based on the several representation coefficient matrices obtained by the solution module 20, and inputs the target affinity graph matrix into the spectral clustering algorithm to obtain a segmented superpixel image.

[0083] Example 4

[0084] like Figure 4 As shown, an electronic device includes a memory 401 and a processor 402, wherein the memory 401 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 402 to implement the above-mentioned superpixel segmentation method of a natural image.

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

[0086] A computer-readable storage medium storing a computer program, wherein the computer program enables a computer to implement the above-mentioned superpixel segmentation method for a natural image when executed.

[0087] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 401 and executed by the processor 402, and the I / O interface transmission of data is completed by the input interface 405 and the output interface 406 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device.

[0088] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may include, but is not limited to, a memory 401 and a processor 402. Those skilled in the art may understand that this embodiment is only an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components, or a combination of certain components, or different components. For example, the computer device may also include an input device 407, a network access device, a bus, etc.

[0089] The processor 402 may be a central processing unit (CPU), or other general-purpose processors 402, digital signal processors 402 (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor 402 may be a microprocessor 402 or the processor 402 may also be any conventional processor 402, etc.

[0090] The memory 401 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. The memory 401 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Furthermore, the memory 401 may include both an internal storage unit of the computer device and an external storage device. The memory 401 is used to store computer programs and other programs and data required by the computer device. The memory 401 may also be used to temporarily store in the output device 408. The aforementioned storage media include various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory ROM403, a random access memory RAM404, a disk or an optical disk.

[0091] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A superpixel segmentation method for natural images, It is characterized in that The following steps are involved: Performing multi-feature extraction on natural images to obtain several types of feature data, and integrating the several types of feature data into a multi-dimensional feature data matrix; The multi-dimensional feature data matrix is ​​input into a pre-built single-core affinity graph learning model, and the model after input is solved by the alternating direction multiplication method to obtain several representation coefficient matrices. The single-core affinity graph learning model is: stΦ(Y)=Φ(Y)C+E, J=C, Diag(C)=0 n , R = JM, K ij =<Φ(y i ), Φ(y j )>, where E is the noise matrix, R is the representation coefficient matrix of the local feature constraint, J and C are the representation coefficient matrices, K is the kernel matrix, Y is the multi-dimensional feature data matrix, and M is the weight matrix; constructing a target affinity graph matrix according to the plurality of representation coefficient matrices, and inputting the target affinity graph matrix into a spectral clustering algorithm to obtain a segmented superpixel image; The step of constructing a target affinity graph matrix according to the plurality of representation coefficient matrices comprises: Calculating the transpose of each of the plurality of representation coefficient matrices; Calculate the mean of each representation coefficient matrix and its transpose to obtain the original affinity graph matrix corresponding to each type of feature; The weighted average of all the original affinity graph matrices is calculated to obtain a target affinity graph matrix.

2. The superpixel segmentation method for natural images according to claim 1, It is characterized in that The multi-feature extraction of natural images obtains several types of feature data, including: Color feature extraction, texture feature extraction and contour feature extraction are performed on natural images respectively.

3. The superpixel segmentation method for natural images according to claim 2, It is characterized in that The color feature extraction comprises: Acquire RGB three-component values ​​of the natural image, and construct a color histogram of the natural image according to the three-component values; Converting the natural image into a grayscale image, and acquiring all grayscale information in the grayscale image to form a grayscale histogram; The color histogram and the grayscale histogram are unified as the target color feature of the natural image.

4. The superpixel segmentation method for natural images according to claim 2, It is characterized in that The texture feature extraction comprises: The texture features of the natural image are extracted using a local binary pattern and a gray level co-occurrence matrix to obtain a first texture feature and a second texture feature, and the first texture feature and the second texture feature are used together as target texture features of the natural image.

5. The superpixel segmentation method for natural images according to claim 2, It is characterized in that The contour feature extraction comprises: The Robert operator, the Prewitt operator and the Sobel operator are used to extract contour features of the natural image respectively to obtain a first contour feature, a second contour feature and a third contour feature, and the first contour feature, the second contour feature and the third contour feature are used together as target contour features of the natural image.

6. The superpixel segmentation method for natural images according to claim 1, It is characterized in that The spectral clustering algorithm is a point cloud segmentation algorithm.

7. A superpixel segmentation device for natural images, It is characterized in that A superpixel segmentation method for a natural image as claimed in claim 1, comprising: An extraction module, used for performing multi-feature extraction on natural images to obtain several types of feature data, and integrating the several types of feature data into a multi-dimensional feature data matrix; A solution module, used for inputting the multi-dimensional feature data matrix into a pre-built single-core affinity graph learning model, and using an alternating direction multiplication method to solve the inputted model to obtain a plurality of representation coefficient matrices; A segmentation module is used to construct a target affinity graph matrix according to the plurality of representation coefficient matrices, and input the target affinity graph matrix into a spectral clustering algorithm to obtain a segmented superpixel image.

8. A computer-readable storage medium storing a computer program, It is characterized in that The computer program enables a computer to implement a superpixel segmentation method for a natural image as claimed in any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Image significance detection method based on region label fusion

    CN109522908A

  • Visual tracking method based on super-pixel space-time significance segmentation

    CN110111338A

  • Superpixel-based heart MRI image segmentation method and MRI equipment applied to medical treatment

    CN111598898A

  • Forest region image segmentation algorithm based on superpixels and overmetric contour map

    CN112037230A

  • Image segmentation method based on bounding box and co-occurrence feature prediction

    CN113592894A