A tongue image segmentation method

By converting tongue body images from RGB color space to LAB and HSI color space, combining LBP and superpixel segmentation algorithms, combined with LazySnapping algorithm to perform tongue body segmentation, and performing edge smoothing processing, it solves the problem of accurate tongue body image segmentation in the existing technology. It solves the problem of low degree and achieves more efficient and accurate tongue segmentation.

CN113643281BActive Publication Date: 2024-08-20HENAN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111012697.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-08-20
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

Tongue image segmentation methods in the existing technology have problems such as low accuracy, blurred segmentation edges, over-segmentation, long iteration time, slow speed, and insufficient samples, making it difficult to accurately segment tongue images.

Method used

Coarse segmentation, precise segmentation and post-processing methods are adopted, including converting tongue body images from RGB color space to LAB and HSI color space, using LBP algorithm for texture analysis, combining superpixel segmentation and LazySnapping algorithm for tongue body segmentation, and through Filter performs edge smoothing.

Benefits of technology

It improves the accuracy and speed of tongue image segmentation, shortens the processing time, and provides effective technical support for the next step of tongue feature extraction and recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113643281B_ABST
    Figure CN113643281B_ABST
Patent Text Reader

Abstract

A tongue image segmentation method relates to the technical field of tongue segmentation in traditional Chinese medicine. The method uses image preprocessing to locate the tongue position, then uses superpixel segmentation on the located image, and finally uses an improved LazySnapping algorithm to segment and merge the superpixel segmented image, and obtains a tongue image after smoothing the image. The invention has the beneficial effects of shortening the image processing time and improving the segmentation accuracy while ensuring the complete segmentation of the tongue image, thereby providing effective technical support for the next step of tongue feature extraction and recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of tongue segmentation in traditional Chinese medicine, and particularly relates to a tongue image segmentation method. Background Art

[0002] Traditional Chinese medicine has been around since the Spring and Autumn Period and the Warring States Period. It has gradually formed and developed into a medical theory system through long-term medical practice. In the diagnosis process, traditional Chinese medicine mainly uses four methods: observation, auscultation, olfaction, questioning and palpation. Observation mainly involves observing the patient's eyes, tongue, mouth, nose and ears, and most importantly, observing the tongue's coating, tooth marks, punctures, cracks and other information to learn about the pathological changes of the internal organs. However, the doctor's results of observation are often based on his own experience, and different doctors may have different diagnoses for the same tongue.

[0003] With the continuous development of information technology, more and more computer technologies have provided methods for rapid diagnosis of traditional Chinese medicine. Tongue diagnosis is an important diagnostic and treatment method of traditional Chinese medicine. No matter what method is used to judge the tongue, its primary goal is to segment the tongue from the image. At present, the main methods for tongue image segmentation include threshold segmentation algorithm, watershed algorithm, Snake algorithm, neural network, etc. The threshold segmentation algorithm causes the edge of the segmented tongue to be blurred due to the similar color of the lips and the tongue; the watershed algorithm will cause over-segmentation; the Snake algorithm requires a range that fully encloses the tongue, and then iterates the energy function of the range; the fully enclosed tongue generally includes the lips and skin color, which has a great impact on the final effect of the energy function, and the iteration time is also long; the neural network has problems such as long time, slow speed, and insufficient samples. Therefore, a more accurate and effective tongue segmentation method is needed. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a tongue image segmentation method to solve the problem of accuracy of tongue segmentation in the prior art.

[0005] The technical solution adopted by the present invention to solve the above technical problems is: a tongue image segmentation method, comprising the following steps:

[0006] Step 1: Rough segmentation: Roughly segment the captured tongue image to determine the approximate position of the tongue;

[0007] Step 2: Accurately segment the tongue: Use superpixel segmentation and LazySnapping algorithm to accurately segment the tongue image processed in step 1;

[0008] Step 3: Post-processing: Since the edges of binary images are not smooth, a filter is used to smooth the edges of binary images.

[0009] The specific method of coarse segmentation in step 1 of the present invention is:

[0010] (1) Convert the image in the tongue picture from RGB color space to LAB color space;

[0011] (2) Convert the image in the tongue picture from RGB color space to HSI color space;

[0012] (3) Use the LBP algorithm to perform texture analysis on the image to find the texture feature values ​​within the tongue. Then, threshold segmentation is achieved based on the different texture feature values ​​of the tongue surface and other parts, thereby obtaining the tongue pre-segmentation result.

[0013]

[0014] Where (x c ,y c ) is the center pixel, i c is the gray value, i p is the gray value of adjacent pixels, and s is a sign function:

[0015]

[0016] (4) extracting the values ​​of the A vector space and the H vector space from the converted LAB color space and HSI color space respectively, converting the A vector space, the H vector space and the LBP texture features into binary images by setting different thresholds, and performing an intersection operation on the binary images of the A, H vectors and the LBP texture feature map to determine the core area position of the tongue;

[0017] (5) The largest connected domain is obtained through morphological operation as the core area of ​​the tongue, and other connected domains are set as the background color. The core area of ​​the tongue is filled with morphological holes to prevent some punctures, cracks, and bruises on the tongue from not being recorded as the tongue;

[0018] (6) Image cropping: First, determine the location of the largest connected domain in the binary image and mark it as the core area of ​​the tongue. Second, calculate the length and width of the core area of ​​the tongue. To prevent the tongue from being missing, expand the length and width outward to include the entire tongue area and part of the background area. Finally, crop the original image based on the obtained area.

[0019] The method for converting the A vector space and the H vector space into binary images by setting different thresholds in step (4) of the present invention is as follows: by comparing the A vector value of each coordinate with the threshold value 10, converting it to 1 if it is greater than the threshold value and setting it to 0 if it is less than the threshold value, thereby obtaining a binary image of the A vector; similarly, comparing the H vector value of each coordinate value with the threshold value 0.6, setting it to 1 if it is greater than 0.6 and setting it to 0 if it is less than 0.6, thereby obtaining a binary image of the H vector.

[0020] The accurate segmentation of the tongue in step 2 of the present invention specifically includes:

[0021] (1) Use superpixel segmentation to segment the cropped image into multiple small regions;

[0022] (2) Calculate foreground points and background points;

[0023] (3) The image processed by superpixel segmentation is input, and the foreground points and background points are used as limiting conditions. The tongue image is segmented using the LazySnapping algorithm.

[0024] The method of using superpixel segmentation to divide the cropped image into multiple small areas in step (1) of the present invention is as follows: using superpixel segmentation on the A component in the LAB color space of the cropped image, first uniformly initializing 1500 seed points on the entire image, and then resetting the initial seed points to the position with the minimum gradient in the neighborhood within a 3*3 neighborhood to prevent the seed points from falling on the contour boundary; using color and spatial distances for the pixels in the area around the seed points to determine which seed point the pixel points belong to, and using the K-means clustering algorithm to classify the pixels using the transformed Euclidean distance formula, d c is the color difference between pixels, a i , a j is the value of the vector A in LAB space, d s is the spatial distance between pixels, x i , x j is the coordinate point of the picture, through two parameters N c and N s Coordinate the proportion of the two distances, parameter N s That is, the length of each pixel block, and the parameter N c is the possible maximum distance of the LAB space, and finally the pixel-level image is divided into region-level images;

[0025]

[0026]

[0027]

[0028] The method for calculating the foreground points and background points in step (2) of the present invention is as follows: the foreground points are uniformly selected in the core area of ​​the tongue, and the background points are selected from the corners and surroundings of the cropped image. For the selection of background points of skin color, teeth and oral cavity, pixel values ​​are first taken from the boundary of the core area of ​​the tongue outward in sequence and put into a set, and then the pixel values ​​in the set are compared with the determined foreground points and background points to determine whether they are background points.

[0029] The specific method of obtaining the tongue image by segmentation through the LazySnapping algorithm in step (3) of the present invention is: using an energy function to calculate whether each area in the image is a foreground part, and the calculation formula is:

[0030] E(X)=∑ i∈v E1(x i )+∑ (i,j)∈s E2(x i +x j );

[0031] Where E1 is the calculation of x i The cost of assigning it as foreground or background, E2 is the cost of assigning different labels to two adjacent vertices; set For the future, For background, is a point in other areas; C(i) is the value of the point in the RGB domain; the final allocation result is obtained by calculating the distance between a point and different foregrounds and backgrounds; the detailed calculation process of E1 is:

[0032]

[0033]

[0034] Set i and j as points in adjacent areas; the larger E2 is, the greater the similarity of adjacent points is, and the smaller the possibility of being the target boundary is; the detailed calculation process of E2 is:

[0035] E2(x i , x j )=|x i -x j |*g(C ij )

[0036] C ij =||C(i)-C(j)|| 2

[0037] After calculating the energy function, the tongue image is segmented using the S / T segmentation algorithm.

[0038] The beneficial effects of the present invention are: the present invention pre-processes the original image to speed up the running speed and enhance the segmentation effect, combines superpixel segmentation with the improved LazySnapping algorithm to perform tongue segmentation, shortens the image processing time and improves the segmentation accuracy while ensuring the complete segmentation of the tongue image, and provides effective technical support for the next step of tongue feature extraction and recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1It is a schematic diagram of the overall process of tongue image segmentation of the present invention;

[0040] Figure 2 It is a schematic diagram of finding the maximum connected domain by using 8 adjacent connected domains in the present invention;

[0041] Figure 3 A schematic diagram of a cropped image according to an embodiment of the present invention;

[0042] Figure 4 A schematic diagram of a binary image of an H component of a HIS according to an embodiment of the present invention;

[0043] Figure 5 A schematic diagram of a binary image of the A component of LAB according to an embodiment of the present invention;

[0044] Figure 6 A schematic diagram of a binary image of feature union according to an embodiment of the present invention;

[0045] Figure 7 A schematic diagram of a binary image with the largest connected domain after morphological correction according to an embodiment of the present invention;

[0046] Figure 8 FIG. 4 is a schematic diagram of tongue segmentation results according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In the present invention, a method for locating the tongue in a tongue image and accurately segmenting the tongue under a standard environment is proposed. The standard environment is defined as a collection box containing an LED array light source and an ultraviolet disinfection lamp. The light source in the collection box adopts an LED array light source, which has stable performance and no flicker; the illumination is uniform, without reflection and shadow. When collecting tongue images, the collection environment is light-tight to avoid interference from external light. This method mainly uses image preprocessing to locate the tongue position, and then uses superpixel segmentation for the positioning image. Finally, the superpixel segmented image is segmented and merged using an improved LazySnapping algorithm, and the image is smoothed to obtain a tongue image. The main process of this method is described in detail below.

[0048] The present invention is mainly divided into two parts. The first part is to roughly segment the image to determine the approximate position of the tongue, which is convenient for the next step of processing and reduces the amount of data; the second part is to accurately segment the tongue by combining superpixel segmentation and LazySnapping algorithm on the cropped image.

[0049] (I) Coarse segmentation

[0050] The present invention mainly segments the tongue image taken under standard environment. As the data volume of the images taken by digital cameras is increasing, the tongue image is segmented conveniently and quickly. The first part of the present invention mainly determines the specific position of the tongue, greatly reduces the data volume, and facilitates the accurate segmentation of the tongue.

[0051] 1. Convert RGB to LAB color space

[0052] First, convert the image from RGB color space to LAB color space. Because LAB color space is a color space based on physiological characteristics, it is easier to describe the difference between the tongue and human skin color. The colors included in the A vector range from dark green (low brightness value) to gray (medium brightness value) to bright pink (high brightness value), and the color of the tongue is within the bright pink range. To convert RGB color space to LAB color space, you need to convert it to XYZ space first, and then convert it from XYZ space to LAB space.

[0053] The conversion of RGB color space to XYZ space requires that the R, G, and B values ​​of each pixel in the RGB space be converted into XYZ space using the following formula.

[0054]

[0055] The obtained XYZ space is converted to LAB color space by the following formula. n =95.047, Y n =100, Z n =108.883; L * , A * , B * It is the value of the three channels of the final LAB color space.

[0056]

[0057]

[0058] 2. Convert RGB to HSI color space

[0059] Converting RGB images to HSI color space mainly utilizes the higher utilization rate of color information in HSI color space. RGB color space can be directly converted to HSI color space. The correlation between the three color channels of HSI color space is very small, and the characteristics of the tongue area and the background area can be fully expressed. The results of segmenting the H channel, S channel or I channel separately are sometimes better than the segmentation effect of RGB color space, so HSI color space is widely used in color tongue image processing and is a relatively stable color model. The present invention uses the significant characteristics of the H channel hue value of the tongue surface area to segment the target tongue surface area. The advantage of the H channel is that the background such as lips and face contained in the tongue image is deleted, and the pre-segmentation result of the tongue is obtained after channel segmentation. RGB color space can be directly converted to HSI color space. Use the following formula:

[0060]

[0061]

[0062] 3. LBP feature extraction

[0063] LBP feature is an operator used to describe the local texture features of an image. It has significant advantages such as rotation invariance and grayscale invariance. The image is texture analyzed using the LBP algorithm to find the texture feature values ​​within the tongue. Then, threshold segmentation is achieved based on the different texture feature values ​​of the tongue surface and other parts, and the tongue pre-segmentation result is obtained.

[0064]

[0065] Where (x c ,y c ) is the center pixel, i c is the gray value, i n is the gray value of adjacent pixels, and s is a sign function:

[0066]

[0067] 4. Feature joint binary image

[0068] The values ​​of the A vector space and the H vector space are extracted from the converted LAB color space and HSI color space respectively, and then the A vector space, the H vector space and the LBP texture features are all converted into binary images by setting different thresholds. Here, by comparing the A vector value of each coordinate with the threshold value 10, those greater than the threshold value are converted to 1, and those less than the threshold value are set to 0, thereby obtaining a binary image of the A vector. Similarly, we use a similar method for the H vector of each coordinate, comparing the H vector value of each coordinate value with the threshold value 0.6, setting those greater than 0.6 to 1, and those less than 0.6 to 0, thereby obtaining a binary image of the H vector. The thresholds mentioned above are all obtained experimentally. The intersection operation of the binary images of the A, H vectors and the LBP texture feature map is used to determine the core area position of the tongue.

[0069] 5. Morphological processing

[0070] The largest connected domain is obtained through morphological operation as the core area of ​​the tongue. The other connected domains are set as the background color, and the core area of ​​the tongue is filled with morphological holes to prevent some punctures, cracks, ecchymoses, etc. on the tongue from not being recorded as the tongue.

[0071] The closing operation in morphology is a dilation operation followed by an erosion operation. It is used to fill small holes in a binary image and close small gaps, while the overall position and shape remain unchanged.

[0072]

[0073] in and They represent corrosion and expansion respectively.

[0074] There are two methods to define connected areas: the 8-point method and the 4-point method. The difference lies in the different positions of the adjacent pixels that constitute the pixel connectivity relationship. In an image, the smallest unit is a pixel. Each pixel has 8 adjacent pixels around it. There are two common adjacency relationships: 4-adjacency and 8-adjacency. 4-adjacency has a total of 4 points, namely up, down, left, and right. 8-adjacency has a total of 8 points, including the points in the diagonal position. This article uses 8-adjacency, such as Figure 2 shown.

[0075] By using the find() function in Matlab, we can find the largest connected region and set other regions to 0.

[0076] 6. Crop the image

[0077] First, determine the location of the largest connected domain in the binary image and mark it as the core area of ​​the tongue. Then calculate the length and width of the core area of ​​the tongue. To prevent the tongue from being missing, expand the length and width outward to include the entire area of ​​the tongue and some background areas such as teeth and black areas of the mouth. Finally, crop the original image based on the obtained area.

[0078] (II) Accurately segment the tongue

[0079] The amount of data is greatly reduced through image preprocessing, which facilitates accurate segmentation of the tongue. To segment the tongue, the cropped image is first segmented into multiple small areas using superpixel segmentation. Next, the foreground and background points are determined. In tongue segmentation, the foreground points are the points on the tongue, and the background points are the skin color, teeth, and black areas of the mouth. The image processed by superpixel segmentation and the foreground and background points are input into the LazySnapping segmentation algorithm to complete accurate segmentation of the tongue.

[0080] 1. Superpixel segmentation

[0081] Superpixel segmentation is used for the A component in the LAB color space of the cropped image. First, 1500 seed points are uniformly initialized on the entire image, and then the initial seed points are reset to the position with the minimum gradient in the 3*3 neighborhood to prevent the seed points from falling on the contour boundary. The color and spatial distance of the pixels in the area around the seed points are used to determine which seed point the pixel belongs to. With the help of the K-means clustering algorithm, the pixels are classified by the transformed Euclidean distance formula, d c is the color difference between pixels, a i , a j is the value of the vector A in LAB space. sis the spatial distance between pixels, x i , x j is the coordinate point of the image. Through two parameters N c and N s To coordinate the proportion of the two distances. Parameter N s That is, the length of each pixel block, and the parameter N c is the possible maximum distance of the LAB space. Finally, the pixel-level image is divided into region-level images.

[0082]

[0083]

[0084]

[0085] 2. Calculate foreground and background points

[0086] Foreground points are mainly selected evenly in the core area of ​​the tongue. Background points are mainly selected from the corners and surroundings of the cropped image. For the selection of background points of skin color, teeth and oral cavity, pixel values ​​are first taken from the boundary of the core area of ​​the tongue and put into a set. Then the pixel values ​​in the set are compared with the determined foreground points and background points to determine whether they are background points.

[0087] The specific method for selecting foreground points and background points is: mark the four corners of the cropped area, the four corners of the area expanded 15% outward from the cropped area, and the top middle of the area as background points. Mark five points at the center of gravity of the cropped image as foreground points.

[0088] Convert the LAB space vector value to the [0-1] interval for easy calculation. The conversion formula is as follows:

[0089]

[0090] 3. LazySnapping segmentation

[0091] The image processed by superpixel segmentation is used as the input value of the LazySnapping algorithm, and the foreground and background points are used as limiting conditions. The LazySnapping algorithm marks the foreground and background points through user interaction. The method proposed in this patent automatically marks the foreground and background of the image, as shown above. Figure 2 As shown. The energy function is used to calculate whether each area in the image is a foreground part; the calculation formula is:

[0092] E(X)=∑ i∈v E1(x i )+∑ (i,j)∈s E2(x i +xj ) (13);

[0093] Where E1 is the calculation of x i E2 is the cost when two adjacent vertices are assigned different labels.

[0094] set up For the future, For background, is a point in other areas; C(i) is the value of the point in the RGB domain; the final allocation result is obtained by calculating the distance between a point and different foregrounds and backgrounds. The detailed calculation process of E1 is:

[0095]

[0096]

[0097] Set i and j as points in adjacent areas; the larger E2 is, the greater the similarity of adjacent points is, and the smaller the possibility of being the target boundary is. The detailed calculation process of E2 is:

[0098] E2(x i , x j )=|x i -x j |*g(C ij ) (16);

[0099]

[0100] After calculating the energy function, the tongue image is segmented using the S / T segmentation algorithm.

[0101] (III) Post-processing

[0102] Since the binary image has an uneven edge, a filter should be used to smooth the binary image edge. The commonly used filter is the median filter, and the filter size is set to 0.1% of the image width according to the image size. The segmented binary image is median filtered to smooth the tongue image, and finally the RGB color image is displayed using a mask.

Claims

1. A tongue image segmentation method, characterized in that: The following steps are involved: Step 1: Rough segmentation: Roughly segment the captured tongue image to determine the approximate position of the tongue; Step 2: Accurately segment the tongue: Use superpixel segmentation and LazySnapping algorithm to accurately segment the tongue image processed in step 1; Step 3: Post-processing: Since the edges of binary images are not smooth, use a filter to smooth the edges of binary images; The specific method of coarse segmentation in step 1 is: (1) Convert the image in the tongue picture from RGB color space to LAB color space; (2) Convert the image in the tongue picture from RGB color space to HSI color space; (3) Use the LBP algorithm to perform texture analysis on the image to find the texture feature values ​​within the tongue. Then, threshold segmentation is achieved based on the different texture feature values ​​of the tongue surface and other parts, thereby obtaining the tongue pre-segmentation result. Where (x c ,y c ) is the center pixel, i c is the gray value, i p is the gray value of adjacent pixels, and s is a sign function: (4) extracting the values ​​of the A vector space and the H vector space from the converted LAB color space and HSI color space respectively, converting the A vector space, the H vector space and the LBP texture features into binary images by setting different thresholds, and performing an intersection operation on the binary images of the A, H vectors and the LBP texture feature map to determine the core area position of the tongue; (5) The largest connected domain is obtained through morphological operation as the core area of ​​the tongue, and other connected domains are set as the background color. The core area of ​​the tongue is filled with morphological holes to prevent some punctures, cracks, and bruises on the tongue from not being recorded as the tongue; (6) Image cropping: First, determine the location of the largest connected domain in the binary image and mark it as the core area of ​​the tongue. Second, calculate the length and width of the core area of ​​the tongue. To prevent the tongue from being missing, expand the length and width outward to include the entire tongue area and part of the background area. According to the obtained area, the original image is finally cropped; The accurate segmentation of the tongue in step 2 specifically includes: (1) Use superpixel segmentation to segment the cropped image into multiple small regions; (2) Calculate foreground points and background points; (3) The image processed by superpixel segmentation is used as the input value, and the foreground points and background points are used as limiting conditions. The tongue image is segmented by LazySnapping algorithm; The specific method of obtaining the tongue body image by segmentation through the LazySnapping algorithm in step (3) is: using an energy function to calculate whether each area in the image is a foreground part, and the calculation formula is: E(X)=∑ i∈v E1(x i )+∑ (i,j)∈s E2(x i +x j ); Where E1 is the calculation of x i The cost of assigning it as foreground or background, E2 is the cost of assigning different labels to two adjacent vertices; set For the future, For background, is a point in other areas; C(i) is the value of the point in the RGB domain; the final allocation result is obtained by calculating the distance between a point and different foregrounds and backgrounds; the detailed calculation process of E1 is: Set i and j as points in adjacent areas; the larger E2 is, the greater the similarity of adjacent points is, and the smaller the possibility of being the target boundary is; the detailed calculation process of E2 is: E2(x i ,x j )=|x i -x j |*g(C ij ) After calculating the energy function, the tongue image is segmented using the S / T segmentation algorithm.

2. The tongue image segmentation method according to claim 1, characterized in that: The method for converting the A vector space and the H vector space into binary images by setting different thresholds in step (4) is as follows: by comparing the A vector value of each coordinate with the threshold value 10, converting it to 1 if it is greater than the threshold value, and setting it to 0 if it is less than the threshold value, thereby obtaining a binary image of the A vector; similarly, comparing the H vector value of each coordinate value with the threshold value 0.6, setting it to 1 if it is greater than 0.6, and setting it to 0 if it is less than 0.6, thereby obtaining a binary image of the H vector.

3. The tongue image segmentation method according to claim 1, characterized in that: The method of using superpixel segmentation to divide the cropped image into multiple small areas in step (1) is as follows: using superpixel segmentation on the A component in the LAB color space of the cropped image, first uniformly initializing 1500 seed points on the entire image, and then resetting the initial seed points to the position with the smallest gradient in the neighborhood within a 3*3 neighborhood to prevent the seed points from falling on the contour boundary; using color and spatial distances for the pixels in the area around the seed points to determine which seed point the pixel points belong to, and using the K-means clustering algorithm to classify the pixels using the transformed Euclidean distance formula, d c is the color difference between pixels, a i , a j is the value of the vector A in LAB space, d s is the spatial distance between pixels, x i , x j is the coordinate point of the picture, through two parameters N c and N s Coordinate the proportion of the two distances, parameter N s That is, the length of each pixel block, and the parameter N c is the possible maximum distance of the LAB space, and finally the pixel-level image is divided into region-level images; 4. The tongue image segmentation method according to claim 1, characterized in that: The method for calculating the foreground points and background points in step (2) is as follows: the foreground points are uniformly selected in the core area of ​​the tongue, and the background points are selected from the corners and surrounding areas of the cropped image. For the selection of background points of skin color, teeth and oral cavity, pixel values ​​are first taken from the boundary of the core area of ​​the tongue in sequence and put into a set, and then the pixel values ​​in the set are compared with the determined foreground points and background points to determine whether they are background points.