A method for enhancing the features of colonoscopy polyps
By using edge detection and skeleton extraction algorithms in colonoscopy images to construct significant coefficients of polyp features, and adaptive filtering side length enhancement, the problem of dim and blurred polyp areas in colonoscopy images is solved, image clarity is improved, and missed detections are reduced. Risk of false detection.
Patent Information
- Application Number
- CN202411133334.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-19
AI Technical Summary
The polyp area in existing colonoscopy images is dim and blurred, making it difficult to judge the inspection results and prone to missed detection and misdetection.
Colonoscopy images are obtained through electronic colonoscopy, preprocessed and grayscaled, and edge detection, threshold segmentation, skeleton extraction and corner detection algorithms are used to construct polyp feature significant coefficients, and adaptive filtering side length is used for image enhancement.
It improves the clarity of polyps in colonoscopy images, reduces the probability of missed detections, provides clearer enhanced images, and improves diagnostic results.
Smart Images

Figure CN118657683B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method for enhancing the features of colonoscopic polyps. Background Art
[0002] Intestinal polyps are abnormal protruding tissues that grow on the surface of the intestinal mucosa and have the risk of becoming cancerous. After many clinical studies, it was found that polyps are prone to malignant transformation under certain specific conditions and are the main cause of rectal cancer. For intestinal polyps, the most effective way to detect and remove them is through colonoscopy screening. Colonoscopy screening usually relies on the clinical experience of doctors. Due to uncontrollable factors such as human subjectivity and unclear images, there is still a certain probability of missing polyps during colonoscopy. With the development of science and technology, the use of computer intelligent assisted analysis can effectively reduce the missed detection rate of polyps. However, due to insufficient light or equipment problems, intestinal polyps are usually dim and blurred in colonoscopy images. The existing image enhancement algorithm cannot perform local enhancement on the polyp area in the image, which is not conducive to subsequent diagnosis and treatment. Summary of the invention
[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a method for enhancing the features of colonoscopic polyps, so as to solve the problem that the examination results are difficult to judge and missed detection and false detection are prone to occur due to the dim and unclear polyp areas in the colonoscopic images. The technical solutions adopted are as follows:
[0004] An embodiment of the present invention provides a method for enhancing the characteristics of colonoscopic polyps, the method comprising the following steps:
[0005] Acquire a colonoscopic image through an electronic colonoscope, and preprocess the image to obtain a first image and a grayscale image;
[0006] Selecting an initial filter edge length of the image enhancement algorithm according to the brightness of the first image;
[0007] Using an edge detection algorithm on the first image to obtain an edge in the first image, and obtaining a skeleton roughness index according to the curvature of a pixel point on the edge in the first image;
[0008] The grayscale image is processed using a threshold segmentation algorithm to obtain the region of interest;
[0009] Processing the region of interest using a skeleton extraction algorithm to obtain a skeleton of the region of interest, and processing the skeleton using corner point detection to obtain a first corner point and a minimum side length of the skeleton;
[0010] Obtain a first circle according to the first corner point and the minimum side length of the skeleton, and obtain the number of intersection points between the first circle and the skeleton;
[0011] Acquire a second line segment according to the corner point on the skeleton, acquire an angle between the second line segment and the horizontal direction, and acquire an angle change histogram according to the angle;
[0012] Obtain the polyp feature significance coefficient according to the skeleton unsmoothness index, the number of intersections between the first circle and the skeleton, the corner points on the skeleton, and the variance of the angle change histogram;
[0013] The adaptive filtering edge length is determined according to the polyp feature significance coefficient and the initial filtering edge length, and the colonoscopy polyp image is enhanced according to the adaptive filtering edge length.
[0014] Furthermore, the method of obtaining a colonoscopic image by an electronic colonoscope and preprocessing the image to obtain a first image and a grayscale image includes the following specific methods:
[0015] Acquire an RGB spatial image of the colonoscope through an electronic colonoscope, eliminate noise of the RGB spatial image of the colonoscope by filtering, convert the denoised RGB spatial image into a LAB spatial image, and record the LAB spatial image as a first image;
[0016] The RGB spatial image is gray-scaled to obtain a gray-scale image of the colonoscopic polyp.
[0017] Furthermore, the method of selecting the initial filter edge length of the image enhancement algorithm according to the brightness of the first image includes the following specific methods:
[0018] The mean of the pixel values of all pixels in the first image in the L channel is recorded as the first channel mean;
[0019] The average of the upper limit of the initial value range and the lower limit of the initial value range is recorded as the first side length average;
[0020] Recording a difference between the first preset threshold and the first channel mean as a first difference, and recording a ratio of the first difference to the first preset threshold as a first ratio;
[0021] Recording the sum of the first ratio and the second preset threshold as a first sum;
[0022] The odd number closest to the product of the first side length mean and the first sum is recorded as the initial filtering side length.
[0023] Furthermore, the edge detection algorithm is used on the first image to obtain the edge in the first image, and the skeleton roughness index is obtained according to the curvature of the pixel points on the edge in the first image, including the specific method of:
[0024] Obtaining the curvature of each pixel on the edge;
[0025] Each pixel on the edge is taken as a pixel to be analyzed;
[0026] Take the eight neighborhoods of the pixel to be analyzed, and take the first pixel on the edge in the eight neighborhoods in order from top to bottom and from left to right, record the first pixel as the next adjacent pixel of the pixel to be analyzed, and obtain the next adjacent pixel of each pixel on the edge;
[0027] The absolute value of the difference between the curvature of the pixel to be analyzed and the next adjacent pixel to be analyzed is recorded as the first absolute value of the pixel to be analyzed;
[0028] The mean of the first absolute values of all pixels on the edge is recorded as the first mean;
[0029] A calculation result of a power with a natural constant as a base and a first mean as an exponent is recorded as a skeleton roughness index of the edge.
[0030] Furthermore, the grayscale image is processed using a threshold segmentation algorithm to obtain a region of interest, including the following specific methods:
[0031] The grayscale image is processed using a threshold segmentation algorithm to obtain the optimal segmentation threshold, and the area consisting of pixels whose grayscale values are greater than the optimal segmentation threshold is recorded as the region of interest.
[0032] Further, the method of using a skeleton extraction algorithm to process the region of interest to obtain a skeleton of the region of interest, and using corner point detection to process the skeleton to obtain a first corner point and a minimum side length of the skeleton includes the following specific methods:
[0033] Use the skeleton extraction algorithm to obtain the skeleton of the region of interest, and use the corner detection algorithm to obtain the corner points on the skeleton;
[0034] The number of non-repeated skeletons where the corner point is located is recorded as the first skeleton line number of the corner point, and the corner point with the largest first skeleton line number is recorded as the first corner point;
[0035] The first corner point is connected to each corner point on the skeleton except the first corner point respectively, each line segment obtained by the connection is recorded as the first line segment, and the minimum Euclidean distance between the two endpoints of all first line segments is recorded as the minimum side length of the skeleton.
[0036] Further, the method of obtaining the first circle according to the first corner point and the minimum side length of the skeleton and obtaining the number of intersection points between the first circle and the skeleton includes the following specific methods:
[0037] A circle with the minimum side length of the skeleton as the side length and the first corner point as the center is recorded as a first circle, and the number of intersection points on the edge of the first circle that intersect with the skeleton is obtained.
[0038] Further, the method of obtaining a second line segment according to a corner point on the skeleton, obtaining an angle between the second line segment and the horizontal direction, and obtaining an angle change histogram according to the angle includes the following specific methods:
[0039] Get the next adjacent corner point of each corner point on the skeleton. The next adjacent corner point is the second corner point on the skeleton taken from each corner point in the order from top to bottom and from left to right.
[0040] The line segment connecting each corner point and the next adjacent corner point of each corner point is recorded as the second line segment;
[0041] The angle between the second line segment and the horizontal direction is taken as the horizontal axis, and the frequency of occurrence of the angle is taken as the vertical axis to obtain an angle change histogram.
[0042] Furthermore, the specific method for obtaining the polyp characteristic significance coefficient is: ;in, represents the significant coefficient of polyp characteristics, Represents the number of intersections between the first circle and the skeleton in the grayscale image. Represents the number of corner points on the skeleton, Indicates the skeleton smoothness index on the skeleton line. Indicates the first The frequency of the interval, Represents the mean of all frequencies in the angle change histogram corresponding to the skeleton, Represents the tuning factor.
[0043] Furthermore, the specific method of determining the adaptive filter edge length according to the polyp feature significance coefficient and the initial filter edge length includes:
[0044] The normalized value of the polyp characteristic significance coefficient of the skeleton is recorded as the first normalized coefficient;
[0045] Recording the sum of the first normalization coefficient and the second preset threshold as a second sum value;
[0046] The product of the second sum and the initial filtering side length is recorded as the first filtering side length;
[0047] The region where the skeleton where the polyp characteristic significance coefficient is greater than the third preset threshold is recorded as the first region;
[0048] Setting the adaptive filtering side length of the first area to the first filtering side length;
[0049] The adaptive filtering side lengths of all regions except the first region are set as the initial filtering side lengths.
[0050] The beneficial effects of the present invention are as follows: based on the characteristics of the polyp surface, that is, the polyp surface usually has the characteristics of a white tree branch-shaped texture, the skeleton in the region of interest and the directionality of the skeleton are analyzed to construct a polyp feature significance coefficient, and the region with relatively rough edges and relatively messy directions is used as a polyp feature significant region, and the filter side length range of the polyp feature significant region is increased, so that more information on polyp characteristics is obtained in the process of enhancing the colonoscopy image, so that the polyp part in the colonoscopy image becomes clearer than other areas, avoiding the problem of missed detection or false detection by doctors during diagnosis due to the dim and blurred image of the polyp part in the colonoscopy image, improving the enhancement effect of polyps in colonoscopy images, obtaining clearer enhanced images, and providing convenience for subsequent work. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0052] Figure 1 A schematic flow chart of a method for enhancing the characteristics of colonoscopic polyps provided by one embodiment of the present invention;
[0053] Figure 2 is a first circular schematic diagram;
[0054] Figure 3 is the angle variation histogram. DETAILED DESCRIPTION
[0055] 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 only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] See also Figure 1 , which shows a schematic flow chart of a method for enhancing the characteristics of colonoscopic polyps provided by an embodiment of the present invention, the method comprising the following steps:
[0057] Step S001: Obtain a colonoscopic image through an electronic colonoscope, and pre-process the image to obtain image F and image GF.
[0058] The colonoscope image is obtained by electronic colonoscope, and the obtained RGB space image is processed. In order to eliminate noise and environmental interference, the obtained RGB space image is denoised using bilateral filtering. Let the denoised RGB space image be image F, grayscale image F is processed, and the obtained grayscale image is image GF.
[0059] At this point, image F and image GF are acquired.
[0060] Step S002: Select the initial filtering edge length of the SSR single-scale retinal algorithm according to the brightness in the image F.
[0061] It should be noted that the input of the SSR single-scale retinal algorithm is the original image and the filtered side length. If the filtered side length is too large, the image processing time will be too long; if the filtered side length is too small, less key information will be obtained in the image, resulting in poor image processing effect.
[0062] Specifically, the image F is analyzed and a suitable filter side length is selected.
[0063] Convert the image F from RGB space to LAB space for analysis. Suppose the image in LAB space is the pixel point in the first image. The mean of the channel is , The value of the channel reflects the brightness of the first image. If the first image is darker, the side length range of the filter in the SSR algorithm should be expanded; if the first image is brighter, the side length range of the corresponding filter should be appropriately reduced to ensure that the information in the image is obtained while reducing the amount of calculation.
[0064] Assume that the initial range of the edge length of the filter in the SSR algorithm is usually ,in, is the lower limit of the initial filtering edge length range, is the upper limit of the initial filter side length range. For medium-sized target objects, The value of is 5, The value is 11. The corresponding relationship of the side length change is set according to the brightness in the image. The formula is:
[0065]
[0066]
[0067] In the formula, is the mean of the upper and lower limits of the initial range, is the lower limit of the initial filtering edge length range, is the upper limit of the initial filtering edge length range, is the mean value of the pixels in the L channel of the image.
[0068] Furthermore, the brighter the image, the longer the filter edge. The closer to the initial side length ; The darker the image, the longer the filter edge The bigger.
[0069] In order to prevent the filter edge length from being too large, which will increase the amount of calculation, The value is greater than the upper limit of the filter edge length When The value of .
[0070] The filter side length must be an odd number to ensure that the filter has a center. The nearest odd number is .
[0071] At this point, get the initial filter edge length .
[0072] Step S003, use the Otsu threshold segmentation algorithm to process the image GF to obtain the region of interest; use the K3M skeleton extraction algorithm to process the region of interest to obtain the skeleton of the region of interest; obtain the skeleton non-smoothness index according to the skeleton of the region of interest, and obtain the polyp feature significance coefficient.
[0073] Hyperplastic polyps are the most common type of polyps. They are more common in the distal large intestine and are small in size, with a diameter of almost no more than 1 cm. They are drop-shaped protrusions on the intestinal mucosa and are usually smooth. The surface of the polyp usually contains a more obvious whitish dendritic texture, while the intestinal wall is usually smoother, and the red capillaries on the surface are lighter in color and not visually obvious.
[0074] In image GF, the OTSU threshold segmentation algorithm is used to process image GF, and the area composed of pixels greater than the optimal segmentation threshold is taken as the ROI area. The ROI area is the area composed of pixels whose grayscale value is greater than the optimal segmentation threshold, that is, the area with higher brightness in image GF. The ROI area is analyzed, and the K3M skeleton extraction algorithm is used to process the ROI area in image F to obtain the skeleton of the ROI area.
[0075] Due to the influence of the intestinal mucosa, the brighter areas include the white dendritic areas on the polyps and the reflective areas on the intestinal mucosa. The dendritic white areas on the polyps are scattered outward, while the reflective areas on the intestinal mucosa are usually complete block areas.
[0076] It should be noted that if the ROI area is a dendritic area on the polyp, the corresponding skeleton is divergent; if the ROI area is a reflective area, the obtained skeleton is a long strip.
[0077] Specifically, since the inner wall of the intestine is relatively smooth, the edge of the inner side of the intestine detected is a smooth curve, while the white dendritic distribution on the polyp is relatively messy, and the edge of the connection between the polyp and the intestinal mucosa is relatively tortuous. Let the i-th skeleton line in image F be the skeleton line , for the skeleton line Analyze the pixels on the Previous The curvature corresponding to the pixel point is recorded as If the skeleton line For a smooth edge line, the curvature of each pixel changes relatively slowly.
[0078] Get the skeleton roughness index , the formula is: ; In the formula, is the skeleton unsmoothness index; e is a natural constant; For the skeleton line The curvature corresponding to the j+1th pixel point, For the skeleton line The curvature corresponding to the jth pixel point on the graph, n is the skeleton line The number of pixels on the image.
[0079] It should be noted that the skeleton line The higher the degree of unsmoothness, the greater the curvature change of the pixel points on the skeleton line, and the greater the skeleton unsmoothness index. .
[0080] Furthermore, Harris corner detection is used to detect the extracted skeleton and analyze the corner points on the skeleton. is the first Strip skeleton, corner point For the skeleton The qth corner point on the As the center of the circle, Draw a circle with radius The value of is 5, and The value of should be smaller than the length of the smallest side of the skeleton, and the resulting circle is recorded as the first circle. Figure 2 As shown in the figure, the definition of the minimum side of the skeleton is: Let the corner point with the most skeleton line endpoints be , connect the corner points And the skeleton line except the corner point Other corner points outside With corner points The minimum Euclidean distance between other corner points outside is recorded as the minimum side length of the skeleton.
[0081] Specifically, the first circle is recorded as circle , set circle With skeleton The number of intersection points is If the skeleton is the skeleton of the white dendritic area on the polyp, then the circle and the skeleton The number of intersections is large; if the skeleton The skeleton is the reflective area on the intestinal mucosa. is a curve, then the circle and the skeleton At the same time, the white dendritic area on the polyp has more corner points on the skeleton, while the reflective area has fewer corner points on the skeleton.
[0082] It should be noted that if the ROI area is the white dendritic area on the polyp, due to the directional characteristics of the white dendritic area, the ROI area has more extension directions, and the extension directions are relatively messy and irregular; if the ROI area is the reflective area on the inner wall of the polyp, the direction of the corresponding skeleton is single.
[0083] Analyze the corner points of the skeleton in the ROI area. Corner point on For example, the corner point For the skeleton The qth corner point on For the skeleton The q+1th corner point on the With corner point , get the line segment as , remember the line segment The angle with the horizontal direction is Similarly, get the skeleton The angle between the line segments between all adjacent corner points and the horizontal direction.
[0084] like Figure 3 As shown in FIG. 1 , an angle change histogram is constructed based on the acquired angles, with the angles of the angles between the line segments of all adjacent corner points on the skeleton and the horizontal direction as the horizontal coordinate, and the frequency of the angles of the angles between the line segments of all adjacent corner points on the skeleton and the horizontal direction as the vertical coordinate. If the angle changes more and is more discrete, the corresponding image will be relatively smooth; if the angle changes less, the distribution in the histogram will be more concentrated.
[0085] Furthermore, in the angle change histogram corresponding to the skeleton, assuming that every 30 degrees is an interval, there are 12 intervals in the angle change histogram, and the frequency corresponding to each interval is obtained. If the difference in the frequencies corresponding to each interval is larger, the skeleton is more likely to be the skeleton of the reflective area; the smaller the difference in the frequencies corresponding to each interval, that is, the more uniform the distribution, the more likely the skeleton is the skeleton of the white dendritic area on the polyp.
[0086] The frequency of the first interval is recorded as , the frequency of the second interval is recorded as , the frequency of the third interval is recorded as , the frequency of the fourth interval is recorded as , the frequency of the fifth interval is recorded as , the frequency of the sixth interval is recorded as , the frequency of the seventh interval is recorded as , the frequency of the eighth interval is recorded as , the frequency of the ninth interval is recorded as , the frequency of the tenth interval is recorded as , the frequency of the eleventh interval is recorded as , the frequency of the twelfth interval is recorded as .
[0087] Constructing polyp feature significance coefficients , the formula is: ; In the formula, is the number of intersections between the first circle on a skeleton and the skeleton, is the number of corner points on the skeleton, is the skeleton roughness index of the corresponding skeleton line of the corresponding region of the skeleton, is the angle change histogram corresponding to the skeleton The frequency corresponding to the interval, is the mean value of the frequency of angles in the angle variation histogram corresponding to the skeleton, It is a parameter adjustment factor, which is used to prevent the denominator from being zero, and its value is 1.
[0088] Furthermore, the white dendritic areas on the polyps were randomly distributed and irregular in shape. The larger the value is, the more intersections there are between the circle corresponding to the corner point and its skeleton, that is, the more chaotic the corresponding skeleton is, the higher the polyp feature significance coefficient is. The larger the value, the more likely the area corresponding to the skeleton is the white dendritic area on the polyp; the more corner points on the skeleton, the more irregular the skeleton, and the more significant the polyp feature coefficient is. The larger the value of , the more likely the corresponding area is the white dendritic area on the polyp; the variance of the frequency in the angle change histogram reflects the disorder of the skeleton direction. Since the direction of the white dendritic area on the polyp is relatively disordered, that is, the more disordered the skeleton direction is, the more it conforms to the characteristics of the white dendritic area on the polyp, the smaller the variance of the frequency in the angle change histogram, and the polyp feature significance coefficient is The larger the value, the more likely the area corresponding to the skeleton is the white dendritic area on the polyp; the edges of the white dendritic area on the polyp are jagged and relatively rough. If the skeleton corresponding to the skeleton is not smooth, The larger the value is, the less smooth the edge of the bone corresponding area is, and the polyp feature significance coefficient is The larger the value, the more likely it is that the area is the white dendritic area on the polyp.
[0089] So far, the polyp characteristic significance coefficient is obtained .
[0090] Step S004: Select an adaptive filter edge length according to the polyp feature significance coefficient to enhance the polyp features in the colonoscopy image.
[0091] It should be noted that, according to step S002, the polyp characteristic significance coefficient is calculated. The larger the polyp feature significance coefficient is, the more likely it is a polyp area. The corresponding filter edge length range should be appropriately increased to obtain more image information of polyp features.
[0092] The significant coefficient of the obtained polyp characteristics Perform normalization and set threshold , the value is 0.6, for the polyp characteristic significant coefficient Greater than threshold In the area where the skeleton is located, the relationship is: ; In the formula, is the length of the filtered edge after processing; is the polyp characteristic significance coefficient of the skeleton; is the initial filter edge length.
[0093] Specifically, the more obvious the polyp feature is in the region where the skeleton is located, the greater the polyp feature significance coefficient of the skeleton is, and the greater the filtering edge length of the corresponding skeleton is.
[0094] The filter edge length The nearest odd number is .
[0095] At this point, the adaptive filter edge length of the polyp feature salient area is obtained .
[0096] Furthermore, the SSR algorithm is used to enhance the area in image F and the polyp feature significance coefficient Greater than threshold The area is recorded as the first area, and the corresponding adaptive filtering side length is ; The adaptive filtering side length of other regions in the image F except the first region is the initial filtering side length .
[0097] If the polyp feature significant coefficient does not appear in image F Greater than threshold area, then The filtered edge length of image F is used as the input of the SSR algorithm.
[0098] Specifically, the first region in the image F and the corresponding adaptive filter side length and other regions except the first region and the corresponding adaptive filter side length are used as inputs of the SSR algorithm to enhance the colonoscopy polyp image. The subsequent steps of the SSR algorithm are well-known technologies and will not be described in detail here.
[0099] At this point, the enhancement of polyp features in colonoscopy images is completed.
[0100] It should be noted that the above-mentioned sequence of the embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. In some cases, the actions or steps recorded in the embodiments of the present invention can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0101] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for enhancing the characteristics of colonoscopic polyps, characterized in that: The method comprises the following steps: Acquire a colonoscopic image through an electronic colonoscope, and preprocess the image to obtain a first image and a grayscale image; Selecting an initial filter edge length of the image enhancement algorithm according to the brightness of the first image; Using an edge detection algorithm on the first image to obtain an edge in the first image, and obtaining a skeleton roughness index according to the curvature of a pixel point on the edge in the first image; The grayscale image is processed using a threshold segmentation algorithm to obtain the region of interest; Processing the region of interest using a skeleton extraction algorithm to obtain a skeleton of the region of interest, and processing the skeleton using corner point detection to obtain a first corner point and a minimum side length of the skeleton; Obtain a first circle according to the first corner point and the minimum side length of the skeleton, and obtain the number of intersection points between the first circle and the skeleton; Acquire a second line segment according to the corner point on the skeleton, acquire an angle between the second line segment and the horizontal direction, and acquire an angle change histogram according to the angle; Obtain the polyp feature significance coefficient according to the skeleton unsmoothness index, the number of intersections between the first circle and the skeleton, the corner points on the skeleton, and the variance of the angle change histogram; The adaptive filtering edge length is determined according to the polyp feature significance coefficient and the initial filtering edge length, and the colonoscopy polyp image is enhanced according to the adaptive filtering edge length.
2. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The method of obtaining a colonoscopic image by an electronic colonoscope and preprocessing the image to obtain a first image and a grayscale image includes the following specific methods: Acquire an RGB spatial image of the colonoscope through an electronic colonoscope, eliminate noise of the RGB spatial image of the colonoscope by filtering, convert the denoised RGB spatial image into a LAB spatial image, and record the LAB spatial image as a first image; The RGB spatial image is gray-scaled to obtain a gray-scale image of the colonoscopic polyp.
3. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The specific method of selecting the initial filter side length of the image enhancement algorithm according to the brightness of the first image includes: The mean of the pixel values of all pixels in the first image in the L channel is recorded as the first channel mean; The average of the upper limit of the initial value range and the lower limit of the initial value range is recorded as the first side length average; Recording a difference between the first preset threshold and the first channel mean as a first difference, and recording a ratio of the first difference to the first preset threshold as a first ratio; Recording the sum of the first ratio and the second preset threshold as a first sum; The odd number closest to the product of the first side length mean and the first sum is recorded as the initial filtering side length.
4. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The method of using an edge detection algorithm on the first image to obtain an edge in the first image and obtaining a skeleton roughness index according to the curvature of a pixel point on the edge in the first image includes the following specific methods: Obtaining the curvature of each pixel on the edge; Each pixel on the edge is taken as a pixel to be analyzed; Take the eight neighborhoods of the pixel to be analyzed, and take the first pixel on the edge in the eight neighborhoods in order from top to bottom and from left to right, record the first pixel as the next adjacent pixel of the pixel to be analyzed, and obtain the next adjacent pixel of each pixel on the edge; The absolute value of the difference between the curvature of the pixel to be analyzed and the next adjacent pixel to be analyzed is recorded as the first absolute value of the pixel to be analyzed; The mean of the first absolute values of all pixels on the edge is recorded as the first mean; A calculation result of a power with a natural constant as a base and a first mean as an exponent is recorded as a skeleton roughness index of the edge.
5. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The grayscale image is processed using a threshold segmentation algorithm to obtain a region of interest, including the following specific methods: The grayscale image is processed using a threshold segmentation algorithm to obtain the optimal segmentation threshold, and the area consisting of pixels whose grayscale values are greater than the optimal segmentation threshold is recorded as the region of interest.
6. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The method of using a skeleton extraction algorithm to process the region of interest to obtain a skeleton of the region of interest, and using corner point detection to process the skeleton to obtain a first corner point and a minimum side length of the skeleton includes: Use the skeleton extraction algorithm to obtain the skeleton of the region of interest, and use the corner detection algorithm to obtain the corner points on the skeleton; The number of non-repeated skeletons where the corner point is located is recorded as the first skeleton line number of the corner point, and the corner point with the largest first skeleton line number is recorded as the first corner point; The first corner point is connected to each corner point on the skeleton except the first corner point respectively, each line segment obtained by the connection is recorded as the first line segment, and the minimum Euclidean distance between the two endpoints of all first line segments is recorded as the minimum side length of the skeleton.
7. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The specific method of obtaining the first circle according to the first corner point and the minimum side length of the skeleton and obtaining the number of intersection points between the first circle and the skeleton is as follows: A circle with the minimum side length of the skeleton as the side length and the first corner point as the center is recorded as a first circle, and the number of intersection points on the edge of the first circle that intersect with the skeleton is obtained.
8. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The method of obtaining the second line segment according to the corner point on the skeleton, obtaining the angle between the second line segment and the horizontal direction, and obtaining the angle change histogram according to the angle includes the following specific methods: Get the next adjacent corner point of each corner point on the skeleton. The next adjacent corner point is the second corner point on the skeleton taken from each corner point in the order from top to bottom and from left to right. The line segment connecting each corner point and the next adjacent corner point of each corner point is recorded as the second line segment; The angle between the second line segment and the horizontal direction is taken as the horizontal axis, and the frequency of occurrence of the angle is taken as the vertical axis to obtain an angle change histogram.
9. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The specific method for obtaining the polyp characteristic significant coefficient is: ;in, represents the significant coefficient of polyp characteristics, Represents the number of intersections between the first circle and the skeleton in the grayscale image. Indicates the number of corner points on the skeleton, Indicates the skeleton smoothness index on the skeleton line. Indicates the first The frequency of the interval, Represents the mean of all frequencies in the angle change histogram corresponding to the skeleton, Represents the tuning factor.
10. A colonoscopy polyp feature enhancement method according to claim 1, characterized in that: The specific method of determining the adaptive filtering edge length according to the polyp feature significance coefficient and the initial filtering edge length includes: The normalized value of the polyp characteristic significance coefficient of the skeleton is recorded as the first normalized coefficient; Recording the sum of the first normalization coefficient and the second preset threshold as a second sum value; The product of the second sum and the initial filtering side length is recorded as the first filtering side length; The region where the skeleton where the polyp characteristic significance coefficient is greater than the third preset threshold is recorded as the first region; Setting the adaptive filtering side length of the first area to the first filtering side length; The adaptive filtering side lengths of all regions except the first region are set as the initial filtering side lengths.
Citation Information
Patent Citations
Image Correction Apparatus And Image Correction Method
CN104735293A
Method for detecting cracks in bridge image
CN110390669A
