A method for identifying granulomas in inflammatory bowel disease
By extracting and analyzing the texture and color characteristics of the cell membrane in the expanded area where the nucleus is the seed point, combined with the convexity and color weight of the chain code segment, the problem of poor cell recognition effect of granuloma of inflammatory bowel disease in the prior art is solved. , achieving higher recognition accuracy and accuracy.
Patent Information
- Application Number
- CN202411226180.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-09-03
AI Technical Summary
The existing cell segmentation method has poor recognition effect when identifying granuloma cells of inflammatory bowel disease and cannot fully identify granuloma cells.
By acquiring the nucleus in the pathological image, the cell membrane texture characteristics of the expansion area are extracted and chain code analysis is performed, the convexity of the chain code segment is calculated, and the color characteristic value and convexity of the chain code segment are combined as identification Based on, dynamically adjust the color weight to improve recognition accuracy.
Accurate identification of granuloma cells is achieved, recognition accuracy and accuracy are improved, dependence on a single factor is reduced, and recognition effect is enhanced.
Smart Images

Figure CN118736569B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of granuloma identification, and in particular to a method for identifying inflammatory bowel disease granuloma. Background Art
[0002] The essence of granuloma is inflammation caused by delayed hypersensitivity reaction, and the main players in the immune response are macrophages and epithelial cells. Granuloma can be defined as the aggregation of macrophages and their derivative cells, with or without the presence of other inflammatory cells. In the process of identifying the disease, pathological image-assisted judgment is a key step, and cell detection and segmentation are generally considered to be the basis and key prerequisite for computer-assisted pathological images. In conventional recognition methods, the detection of granuloma cells can be achieved through edge detection, and the edge of the cell is extracted using edge detection technology. Then, the granuloma cells are obtained by threshold segmentation.
[0003] The Chinese patent application document with publication number CN116630970A discloses a fast and high-precision cell recognition and segmentation method, including performing affine and magnification transformations on cell images and corresponding masks, calculating the center mask, constructing a multi-encoder-autoencoder model, training the network model, using the network model to perform cell recognition and segmentation, and using the watershed algorithm to segment the cell image to obtain a separate cell image and mask.
[0004] The above scheme uses relevant algorithms to segment cell images to obtain separate cell images. However, for inflammatory bowel disease granuloma cells, the colors of various regions of granuloma cells are significantly different from those of normal cells, and the colors of different cell regions are also significantly different. Therefore, the existing cell segmentation method has poor recognition effect when identifying granuloma cells and cannot fully identify granuloma cells. Summary of the invention
[0005] In order to solve the problem that the existing cell segmentation method leads to poor recognition effect when identifying granuloma cells, the present invention provides a method for identifying inflammatory bowel disease granulomas.
[0006] A method for identifying inflammatory bowel disease granulomas, comprising the steps of:
[0007] Obtain the cell nucleus of the cell in the pathological image, and expand outward with any point in the cell nucleus as the seed point to obtain the expansion area;
[0008] Extract the cell membrane texture features in the expansion area, perform chain code analysis on them, obtain multiple chain code segments, and calculate the convexity of the chain code segments. The convexity represents the smoothness of the cell membrane texture features.
[0009] The product of the mean value of the color feature value of the pixel points in the expansion area, the color weight and the convexity of the chain code segment is used as the expansion value, wherein the color feature value is calculated by the hue value, saturation value and brightness value of the pixel points;
[0010] In response to the expansion value being greater than a preset threshold, the expansion continues, otherwise the expansion stops, and the corresponding expansion area when the expansion stops is the area where the granuloma cells are located;
[0011] The calculation formula of the color weight of the pixel points in the expansion area is:
[0012]
[0013] Where: Represents the color weight of the pixels in the expanded area, Represents the average value of the color feature value of the pixels in the expansion area, Indicates the maximum value of the color feature value of the pixel in the expansion area, is the preset threshold, Indicates a preset fixed weight.
[0014] The effect is that the expansion area is obtained by expanding outward from the seed point, and the expansion area is identified in two dimensions according to the color characteristics and texture characteristics of the granuloma cells, which reduces the reliance on a single factor in the identification process. At the same time, by setting color weights, the recognition accuracy of granuloma cells is further improved.
[0015] In one embodiment, the convexity of the chain code segment is calculated as follows:
[0016] The chain code segment is transformed to obtain a new chain code segment, and the transformation method is as follows: if the absolute value of the difference between the chain code values of two pixels is greater than or equal to the first threshold and less than or equal to the second threshold, the chain code value is marked as 1; if the absolute value of the difference between the chain code values of two pixels is greater than or equal to the third threshold and less than or equal to the fourth threshold, the chain code value is marked as 0, wherein the first threshold, the fourth threshold, the third threshold, and the second threshold decrease in sequence;
[0017] The ratio of the number of chain code values 1 to the total number of chain code values is taken as the probability of convex property;
[0018] The ratio of the convex property probability to the variance of the new chain code segment is taken as the convexity degree.
[0019] In one embodiment, the convexity of the chain code segment is calculated as follows:
[0020]
[0021] In the formula, is the convexity of the chain code segment, n is the number of chain code values in the preset interval, and m is the length of the chain code.
[0022] The effect is that by calculating the convexity, it is possible to determine whether the expansion area is a cell area.
[0023] It is also convenient to calculate the probability that the expansion area is a granuloma cell area.
[0024] In one embodiment, the color feature value calculation method is:
[0025] Perform HSV color space conversion on the acquired pathological image to obtain the hue value, saturation value and brightness value of the HSV color model, and perform normalization on the hue value, saturation value and brightness value;
[0026] The color feature value of the pixel is calculated based on the hue value, saturation value and brightness value. The calculation formula is:
[0027]
[0028] Where: Represents the color feature value of the pixel, Indicates the hue value of the pixel. is the standard hue value, Indicates the saturation value of the pixel. Indicates the brightness value of a pixel.
[0029] The effect is that, by utilizing the color difference between granuloma cells and ordinary cells, the three components of the HSV color model are comprehensively analyzed to calculate the color feature value, which can accurately calculate the color feature value of the pixel point, facilitate the identification of granuloma cells, and improve the calculation accuracy of the color feature value.
[0030] In one embodiment, the maximum value of the color characteristic value of the pixel points in the expansion area is obtained by:
[0031] Obtain a standard image of granuloma cells, perform HSV color space conversion on the standard image, and obtain HSV images of cell nuclei, cytoplasm, and intercellular spaces;
[0032] The color feature values of the cell nucleus, cytoplasm and intercellular space are calculated respectively, and the variance and mean of the color feature values of the cell nucleus, cytoplasm and intercellular space are calculated respectively to construct a Gaussian function, and the standard Gaussian functions of the cell nucleus, cytoplasm and intercellular space are obtained respectively;
[0033] Calculate the color feature values of the pixels in the expanded area, calculate the average value of the color feature values based on the color feature values, and substitute the average value of the color feature values into three Gaussian functions respectively to obtain three probability values;
[0034] The maximum value of the Gaussian function corresponding to the maximum probability value is taken as the maximum value of the color feature value.
[0035] The effect is that by constructing a Gaussian function, the probability of a cell region to which a pixel belongs can be calculated using the Gaussian function, thereby facilitating cell identification.
[0036] In one embodiment, the length of the chain code segment is determined by:
[0037]
[0038] In the formula is the length of the chain code segment, For the The pre-set length of the segment; Represents the average value of the color feature value of the pixels in the expansion area, Indicates the maximum value of color feature, is a preset threshold.
[0039] The effect is that when the color feature is not obvious enough, the length of the chain code segment is extended to strengthen the analysis result of the chain code segment. By adjusting the length of the chain code segment, the result of the chain code analysis is improved and the accuracy of the chain code analysis is improved.
[0040] In one embodiment, the seed point is determined by:
[0041] Acquire a pathological image and convert the pathological image into a grayscale image;
[0042] The Sobel operator is used for edge detection to extract the edge of the cell nucleus;
[0043] Thresholding the area surrounded by the edge is performed to obtain a binary image;
[0044] Multiply the binary image with the grayscale image to obtain the grayscale data in the cell nucleus area;
[0045] Calculate the average gray value of adjacent pixels in the cell nucleus area, and use the area corresponding to the minimum average gray value as the seed point.
[0046] In one embodiment, the cell membrane texture features include cell membrane edge features and cell membrane surface wrinkle features.
[0047] The present invention has the following technical effects:
[0048] A comprehensive judgment and identification is made based on the color feature values and texture features of granuloma cells, the cells are expanded and judged in multiple stages, weights are assigned to the texture and color features according to the characteristics of the expanded area, and dynamic transformation of color weights is achieved. The chain code length is used as a dynamic identification factor of the texture feature to achieve dynamic identification based on regional characteristics to improve the accuracy of granuloma identification and the recognition effect of granuloma cells. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0050] Figure 1 This is a flow chart of a method for identifying inflammatory bowel disease granulomas according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0052] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0053] The colors of various areas of granuloma cells are quite different from those of the corresponding areas of normal cells, and the nuclei of granuloma cells are darker than the cytoplasm and intercellular spaces. This scheme is developed based on this background.
[0054] The present invention discloses a method for identifying inflammatory bowel disease granulomas, referring to Figure 1 As shown, it includes steps S1 to S5:
[0055] S1. Obtain the cell nucleus of the cell in the pathological image, and expand outward with any point in the cell nucleus as a seed point to obtain an expanded area.
[0056] In one embodiment, the pathological image is converted into a grayscale image, and the grayscale image is filtered by Gaussian filtering to reduce the noise image; the Sobel operator is used for edge detection to extract the edge of the cell nucleus; the area surrounded by the edge is thresholded to obtain a binary image; the binary image is multiplied with the grayscale image to obtain the grayscale data in the cell nucleus area; the average grayscale value of adjacent pixels in the cell nucleus area is calculated, and the number of pixels is n×n; the area corresponding to the minimum average grayscale value is used as a seed point. With the seed point as the center, the circular structure expands outward in sequence.
[0057] S2. Calculate the color feature values of the pixels in the expanded area.
[0058] In one embodiment, the acquired pathological image is converted into an HSV color space to obtain the hue value, saturation value and brightness value of the HSV color model, and the hue value, saturation value and brightness value are normalized.
[0059] The color characteristic value is calculated according to the normalized hue value, saturation value and brightness. The calculation formula is:
[0060]
[0061] Where: Represents the color feature value of the pixel, Indicates the hue value of the pixel. is the standard hue value, Indicates the saturation value of the pixel. Indicates the brightness value of a pixel.
[0062] In this embodiment The value of is set artificially according to actual experience. In other embodiments, The value is the average hue of granuloma cells.
[0063] In other embodiments,
[0064] In the formula, Represents the color feature value of the pixel, Indicates the saturation value of the pixel, H indicates the hue value of the pixel, Indicates the brightness value of a pixel.
[0065] S3. Extract the cell membrane texture features in the expansion area, perform chain code analysis on the cell membrane texture features, obtain multiple chain code segments, and calculate the convexity of the chain code segments.
[0066] The cell membrane of granulomas has more folds than normal cells, which can affect the cell membrane during expansion.
[0067] Chain code analysis was performed on the wrinkles on the cell membrane surface and the edges of the cell membrane.
[0068] In one embodiment, the convexity of the chain code segment is calculated as follows:
[0069] S31. Use the Sobel operator to perform edge detection in the expansion area to obtain the cell membrane texture features, which include the wrinkles on the cell membrane surface and the cell membrane edge; determine the chain code movement direction according to the gradient direction to obtain the chain code segment, and the chain code uses an 8-connected chain code; transform the chain code segment to obtain a new chain code segment.
[0070] The chain code segment is transformed to obtain a new chain code segment, and the transformation method is as follows: if the absolute value of the difference between the chain code values of two pixels is greater than or equal to the first threshold and less than or equal to the second threshold, the chain code value is marked as 1; if the absolute value of the difference between the chain code values of two pixels is greater than or equal to the third threshold and less than or equal to the fourth threshold, the chain code value is marked as 0, wherein the first threshold, the fourth threshold, the third threshold, and the second threshold decrease in sequence; the ratio of the number of chain code values 1 to the total number of chain code values is taken as the probability of convex properties; the ratio of the convex property probability to the variance of the new chain code segment is taken as the degree of convexity.
[0071] For example: the first threshold is 6, the second threshold is 2, the third threshold is 3, and the fourth threshold is 5. If the absolute value of the difference between the chain code values of two pixels is greater than or equal to 6 or less than or equal to 2, it means that the direction of the chain code presents a similar transformation, and its chain code value is marked as 1; if the absolute value of the difference between the chain code values of two pixels is greater than or equal to 3 and less than or equal to 5, it means that the direction of the chain code presents a large jump, and its chain code value is marked as 0.
[0072] The probability expression of convex property is: ,in is the number of new chain code values that are 1, is the length of the new chain code value, is the convex property probability, when When it is greater than the set threshold, the edge corresponding to the chain code segment approaches a smooth straight line, indicating that the expanded area is the intercellular area. When it is less than the set threshold, the edge corresponding to the chain code segment is a wrinkle feature, indicating that the expanded area is the cytoplasm area. The ratio of the convex property probability to the variance of the new chain code segment is taken as the convexity, and the expression is:
[0073]
[0074] In the formula is the convex property probability, is the variance of the new chain code segment, is the convexity, The larger the value is, the greater the probability that the area corresponding to the chain code segment is a wrinkle or edge, and the greater the probability that the corresponding expansion area is a granuloma cell area.
[0075] In other embodiments, the convexity of the chain code segment is calculated as follows:
[0076] S32, performing edge detection in the expansion area to obtain cell membrane texture features;
[0077] The chain code segment is obtained by determining the chain code moving direction according to the gradient direction, and the convexity is calculated according to the number of chain code values. The calculation formula is:
[0078]
[0079] In the formula, is the convexity of the chain code segment, n is the number of chain code values in the preset interval, and m is the length of the chain code.
[0080] For example, the preset interval is [2, 6], the number of chain code values 2, 3, 4, 5, 6 is 16, and the length of the chain code is 20. Then the convexity of the chain code segment is .
[0081] The cell membrane of granuloma cells has many wrinkles. Therefore, when extracting the cell membrane texture features in the expansion area, there are multiple cell membrane texture features in the expansion area, and correspondingly there are also multiple chain code segments.
[0082] The length of the chain code segment is determined by:
[0083]
[0084] In the formula is the length of the chain code segment, is the predetermined length of segment f; Represents the average value of the color feature value of the pixels in the expansion area, Indicates the maximum value of color feature, is a preset threshold. Since the color feature values of the pixels on both sides of the cell folds and the cell membrane are slightly different, the length of the chain code is adjusted according to the color feature values of the pixels in the expansion area, which increases the accuracy of the convex property probability.
[0085] In one embodiment, the color feature value of each pixel in the expansion area is calculated according to a color feature value calculation formula, and then the maximum color feature value is obtained.
[0086] In other embodiments, the maximum value of the color feature is calculated as follows:
[0087] S33. Obtain a standard image of granuloma cells and construct a Gaussian function; perform HSV color space conversion on the standard image of granuloma to obtain HSV images of the cell nucleus, cytoplasm and intercellular space; calculate the color feature values of the cell nucleus, cytoplasm and intercellular space, and calculate their variance and mean to construct their respective Gaussian functions, and obtain standard Gaussian functions of the cell nucleus, cytoplasm and intercellular space; input the color feature values of the pixels in the expansion area into the three Gaussian functions respectively to obtain the corresponding probability values; take the maximum value of the Gaussian function corresponding to the maximum probability value as the maximum value of the color feature of the Gaussian function.
[0088] The average value of the color feature value is input into three Gaussian functions to obtain three probability values. The maximum value of the Gaussian function corresponding to the maximum value of the maximum probability value is In other words, is the Gaussian function abscissa The corresponding function value.
[0089] S4. The product of the mean of the color feature values of the pixels in the expansion area, the color weight and the convexity of the chain code segment is used as the expansion value; in response to the expansion value being greater than a preset threshold, the expansion continues, otherwise the expansion stops, and the corresponding expansion area when the expansion stops is the area where the granuloma cells are located.
[0090] The calculation formula for the color weight of the pixels in the expanded area is:
[0091]
[0092] Where: Represents the color weight of the pixels in the expanded area, Represents the average value of the color feature value of the pixels in the expansion area, Indicates the maximum value of color feature, is the preset threshold, represents a preset fixed weight, and The value of is set artificially based on experience.
[0093] According to the color weight function, when , indicating that the color characteristics are more obvious. This situation often occurs in the cell nucleus and nearby areas of granuloma cells. At this time, the color weight accounts for a large proportion. , indicating that the color features are not obvious enough. At this time, the color weight accounts for a small proportion, and this situation often occurs in the cytoplasm and intercellular spaces.
[0094] The expansion value is calculated as follows:
[0095]
[0096] In the formula, represents the dilation value of the dilation area, represents the convexity of the chain code segment, Represents the color weight of the pixels in the expanded area, It represents the mean color feature value of the pixels in the expanded area. When the color feature value of the pixels in the expanded area is not obvious, the weight of the color feature value is weakened and the weight of the chain code analysis is increased, so that the final recognition result is more accurate.
[0097] When the expansion value When it is greater than the preset threshold, it means that the color characteristics and cell membrane texture characteristics of the pixels in the expansion area are relatively obvious, which is consistent with the characteristics of granuloma cells, further indicating that the expansion area is the area where the granuloma cells are located, and then continue to expand to continue to identify the area where the granuloma cells are located. Otherwise, it means that the color characteristics and cell texture characteristics of the expansion area are not obvious, and the expansion area is not the granuloma cell area, then stop expanding, and take the expanded expansion area as the area where the granuloma cells are located. The threshold is set manually according to the actual situation, and for example, the threshold is 0.6.
[0098] S5. After completing the growth of one cell, reselect the seed point for expansion to identify the remaining granuloma cells.
[0099] After completing the expansion of one cell, the position of the next cell nucleus is re-determined, and the corresponding seed point is determined, and then the expansion is continued to identify the granuloma cells.
[0100] It should be noted that after the first expansion, if the expansion value of the expanded area is less than the preset threshold, it indicates that the color characteristics of the pixels and the cell membrane texture characteristics in the expanded area are not obvious, and do not have the characteristics of granuloma cells. Therefore, the expanded area is not the area of granuloma cells, which further illustrates that the cell corresponding to the cell nucleus is not a granuloma cell, so the expansion is stopped and the cell nucleus is marked.
[0101] Perform a uniform color transformation on the identified areas to prevent repeated image segmentation when selecting new seed points.
[0102] The granuloma cells in the image are continuously identified, and the granuloma cell area is extracted into a new image, the new image is converted into a binary image, the mask of the granuloma cells is obtained, and the granuloma mask and the original image are superimposed to obtain a granuloma identification image.
[0103] In other embodiments, the inflammatory granuloma cells are non-caseating granulomas, and the cells have nuclei; while the granuloma cells in intestinal tuberculosis are caseating granulomas, and some of the granuloma cells do not have nuclei. In order to identify the non-nucleated granuloma cells in intestinal tuberculosis, the present invention also provides the following scheme:
[0104] The Euclidean distance between any two cell nucleus seed points is calculated. In response to the Euclidean distance being greater than a preset threshold, the midpoint of the two cell nucleus seed points is used as the seed point for expansion to obtain an expansion area, and the expansion area is identified; the cell membrane texture features of the expansion area are extracted, and chain code analysis is performed on them to obtain multiple chain code segments, and the convexity of the chain code segments is calculated, and the convexity represents the smoothness of the cell membrane texture features; the mean value of the color feature value of the pixel points in the expansion area, the color weight and the product of the convexity of the chain code segment are used as the expansion value, wherein the color feature value is calculated by the hue value, saturation value and brightness value of the pixel points; in response to the expansion value being greater than a preset threshold, the expansion continues, otherwise the expansion stops, and the corresponding expansion area when the expansion stops is the area where the granuloma cells are located.
[0105] The Euclidean distance between the two cell nucleus seed points is greater than the preset threshold, indicating that the distance between the two cells is far, and the granuloma cell between the two cells is likely to be a caseous granuloma, that is, it does not have a cell nucleus. Then, the midpoint of the two cell nucleus seed points is used as the seed point for expansion and identification, and finally the intestinal tuberculosis granuloma cell is identified. It should be noted that the threshold here is set according to actual experience.
[0106] Although several embodiments of the present invention have been shown and described herein,
[0107] It will be apparent to the skilled person that such embodiments are provided by way of example only. Those skilled in the art will appreciate many modifications, changes and alternatives without departing from the thought and spirit of the present invention. It should be understood that in the process of practicing the present invention, various alternatives to the embodiments of the present invention described herein may be adopted.
[0108] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying granulomas in inflammatory bowel disease, It is characterized in that Includes steps: Obtain the cell nucleus of the cell in the pathological image, and expand outward with any point in the cell nucleus as the seed point to obtain the expansion area; Extract the cell membrane texture features in the expansion area, perform chain code analysis on them, obtain multiple chain code segments, and calculate the convexity of the chain code segments. The convexity represents the smoothness of the cell membrane texture features. The product of the mean value of the color feature value of the pixel points in the expansion area, the color weight and the convexity of the chain code segment is used as the expansion value, wherein the color feature value is calculated by the hue value, saturation value and brightness value of the pixel points; In response to the expansion value being greater than a preset threshold, the expansion continues, otherwise the expansion stops, and the corresponding expansion area when the expansion stops is the area where the granuloma cells are located; The calculation formula of the color weight of the pixel points in the expansion area is: ; Where: Represents the color weight of the pixels in the expanded area, Represents the average value of the color feature value of the pixels in the expansion area, Indicates the maximum value of the color feature value of the pixel in the expansion area, is the preset threshold, Indicates a preset fixed weight.
2. A method for identifying inflammatory bowel disease granulomas according to claim 1, It is characterized in that The calculation method of the convexity of the chain code segment is: The chain code segment is transformed to obtain a new chain code segment, and the transformation method is as follows: if the absolute value of the difference between the chain code values of two pixels is greater than or equal to the first threshold and less than or equal to the second threshold, the chain code value is marked as 1; if the absolute value of the difference between the chain code values of two pixels is greater than or equal to the third threshold and less than or equal to the fourth threshold, the chain code value is marked as 0, wherein the first threshold, the fourth threshold, the third threshold, and the second threshold decrease in sequence; The ratio of the number of chain code values 1 to the total number of chain code values is taken as the probability of convex property; The ratio of the convex property probability to the variance of the new chain code segment is taken as the convexity degree.
3. A method for identifying inflammatory bowel disease granulomas according to claim 1, It is characterized in that The calculation method of the convexity of the chain code segment is: ; In the formula, is the convexity of the chain code segment, n is the number of chain code values in the preset interval, and m is the length of the chain code.
4. A method for identifying inflammatory bowel disease granulomas according to claim 1, Its characteristics In, The calculation method of the color characteristic value is: Perform HSV color space conversion on the acquired pathological image to obtain the hue value, saturation value and brightness value of the HSV color model, and perform normalization on the hue value, saturation value and brightness value; The color feature value of the pixel is calculated based on the hue value, saturation value and brightness value. The calculation formula is: ; Where: Represents the color feature value of the pixel, Indicates the hue value of the pixel. is the standard hue value, Indicates the saturation value of the pixel. Represents the brightness value of the pixel. is an exponential function with base e.
5. A method for identifying inflammatory bowel disease granulomas according to claim 4, It is characterized in that The method for obtaining the maximum value of the color characteristic value of the pixel points in the expansion area is: Obtain a standard image of granuloma cells, perform HSV color space conversion on the standard image, and obtain HSV images of cell nuclei, cytoplasm, and intercellular spaces; The color feature values of the cell nucleus, cytoplasm and intercellular space are calculated respectively, and the variance and mean of the color feature values of the cell nucleus, cytoplasm and intercellular space are calculated respectively to construct a Gaussian function, and obtain standard Gaussian functions of the cell nucleus, cytoplasm and intercellular space respectively; Calculate the color feature values of the pixels in the expanded area, calculate the average value of the color feature values based on the color feature values, substitute the average values of the color feature values into three Gaussian functions respectively, obtain three probability values, and take the maximum value of the Gaussian function corresponding to the maximum probability value as the maximum value of the color feature value.
6. A method for identifying inflammatory bowel disease granulomas according to claim 1, It is characterized in that The length of the chain code segment is determined by: ; In the formula is the length of the chain code segment, For the The pre-set length of the segment; Represents the average value of the color feature value of the pixels in the expansion area, Indicates the maximum value of color feature, is a preset threshold.
7. A method for identifying inflammatory bowel disease granulomas according to claim 1, It is characterized in that The method for determining the seed point is: Acquire a pathological image and convert the pathological image into a grayscale image; Perform edge detection on the grayscale image and extract the edge of the cell nucleus; Thresholding the area surrounded by the edge is performed to obtain a binary image; Multiply the binary image with the grayscale image to obtain the grayscale data in the cell nucleus area; Calculate the average gray value of adjacent pixels in the cell nucleus area, and use the area corresponding to the minimum average gray value as the seed point.
8. A method for identifying inflammatory bowel disease granulomas according to claim 1, It is characterized in that The cell membrane texture features include cell membrane edge features and cell membrane surface wrinkle features.
