A method for segmenting hepatobiliary and bile duct stones images
By calculating the degree of confusion and credibility of pixels in B-ultrasound images, combined with Gaussian filtering, and dynamically adjusting the filter window size, the problem of edge blur and inaccurate segmentation when denoising B-ultrasound images is solved, and the problem of hepatobiliary and bile duct stones is improved. image segmentation accuracy.
Patent Information
- Application Number
- CN202410772853.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Existing B-ultrasound image denoising methods can easily lead to blurred edges of hepatobiliary stones when removing noise, and the denoising effect is not ideal, affecting the accuracy of stone segmentation.
By establishing a filter window, the degree of confusion and confusion credibility of each pixel are calculated, combined with Gaussian filtering, the size of the filter window is dynamically adjusted to obtain the best window evaluation value, and image filtering is performed to improve segmentation accuracy.
It improves the denoising effect and segmentation accuracy of hepatobiliary B-ultrasound images, ensuring the clear display and identification of hepatobiliary ducts and biliary stones.
Smart Images

Figure CN118365534B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image data processing, and in particular to a method for segmenting images of hepatobiliary duct and bile duct stones. Background Art
[0002] Hepatobiliary stones refer to hard stones formed in the hepatobiliary system. Hard stones can block the normal flow of bile, leading to bile stasis and a series of symptoms and complications. Currently, B-ultrasound is often used to detect hepatobiliary stones. However, due to the relatively low resolution of ultrasound used in B-ultrasound, it may be limited in the detection of deep tissues or small stones. Small or closely arranged stones may be difficult to display clearly, making B-ultrasound images more susceptible to noise, which is not conducive to the segmentation of stone areas. Therefore, it is necessary to denoise the B-ultrasound images.
[0003] At present, the Gaussian filter method is commonly used to denoise the B-ultrasound image, thereby removing noise and facilitating the subsequent segmentation of hepatobiliary stones. However, when using Gaussian filtering to denoise the B-ultrasound image, the larger the filter window of the Gaussian filter, the better the denoising effect, but it may cause the edges of the hepatobiliary stones in the image to become blurred; the smaller the filter window of the Gaussian filter, the more complete the structure of the hepatobiliary stones in the B-ultrasound image, but the denoising effect is poor. When the size of the filter window of the Gaussian filter is not selected appropriately, the noise reduction effect of the B-ultrasound image will be unsatisfactory, reducing the accuracy of the segmentation of hepatobiliary stones. Summary of the invention
[0004] The present invention provides a method for segmenting hepatobiliary and bile duct stone images to solve the existing problems.
[0005] The present invention provides a method for segmenting hepatobiliary and bile duct stones images using the following technical solutions:
[0006] An embodiment of the present invention provides a method for segmenting hepatobiliary and bile duct stones images, the method comprising the following steps:
[0007] Obtain several B-ultrasound images of the hepatobiliary duct;
[0008] In any hepatobiliary B-ultrasound image, a filtering window is established with any pixel point as the center; several reference pixel sets of the pixel point are obtained according to the filtering window; and the disorder degree of each pixel point is obtained according to all the reference pixel sets of each pixel point;
[0009] According to the gray value and disorder degree of each pixel point in each hepatobiliary B-ultrasound image and the pixel points in the same position of other hepatobiliary B-ultrasound images, the disorder credibility of each pixel point in each hepatobiliary B-ultrasound image is obtained;
[0010] For any hepatobiliary B-ultrasound image, filtering is performed on the hepatobiliary B-ultrasound image based on the filtering window to obtain an initial filtering image; according to the gray value, chaos degree and chaos credibility of each pixel in the hepatobiliary B-ultrasound image and the gray value of each pixel in the initial filtering image, a window evaluation value of the filtering window is obtained;
[0011] In any hepatobiliary B-ultrasound image, a final filtered image is obtained according to the window evaluation value of the filtering window; and the hepatobiliary region and the biliary stone region in the hepatobiliary B-ultrasound image are obtained according to the final filtered image.
[0012] Furthermore, the step of obtaining a plurality of reference pixel sets of pixel points according to the filtering window includes the following specific steps:
[0013] For a filtering window of any pixel point, all inner edge pixels of the filtering window are obtained, and all pixels passed by the line connecting every two inner edge pixels symmetrically about the pixel point at the center of the filtering window constitute a reference pixel set for the pixel point.
[0014] Furthermore, the step of obtaining the disorder degree of each pixel point according to all reference pixel sets of each pixel point includes the following specific steps:
[0015] According to the grayscale value and grayscale change of each pixel in each reference pixel set, the degree of disorder of each pixel in each reference pixel set is obtained;
[0016] The average value of the disorder degree of any pixel in all reference pixel sets is recorded as the disorder degree of the pixel.
[0017] Furthermore, the degree of disorder of each pixel in each reference pixel set is obtained according to the grayscale value and grayscale change of each pixel in each reference pixel set, and the specific calculation method includes the following:
[0018] ;
[0019] In the formula, Indicates The pixel at The degree of clutter in the reference pixel set; Indicates The pixel The number of different grayscale values of all pixels in the reference pixel set; Indicates The pixel The number of pixels in the reference pixel set; Indicates The pixel The average gray value of all pixels in the reference pixel set; and Respectively represent The pixel The grayscale values of the i-th pixel and the i+1-th pixel in the reference pixel set; is the absolute value function.
[0020] Furthermore, the method of obtaining the chaos credibility of each pixel in each hepatobiliary B-ultrasound image according to the gray value and chaos degree of each pixel in each hepatobiliary B-ultrasound image and the pixel at the same position in other hepatobiliary B-ultrasound images includes the following specific steps:
[0021] For any hepatobiliary B-ultrasound image, obtain the Pictures to the next All images within the interval of the image are recorded as reference images of the hepatobiliary B-ultrasound image;
[0022] The chaos credibility of each pixel in the hepatobiliary B-ultrasound image is obtained based on the differences in grayscale values and confusion levels of pixels at the same position in every two consecutive reference images in all reference images, and the confusion levels of all pixels in a filtering window centered on each pixel in the hepatobiliary B-ultrasound image.
[0023] Furthermore, the confusion credibility of each pixel in the hepatobiliary B-ultrasound image is obtained based on the difference in grayscale value and confusion degree of the pixel at the same position in each of two consecutive reference images in all reference images, and the confusion degree of all pixels in the filtering window centered on each pixel in the hepatobiliary B-ultrasound image, including the specific calculation method as follows:
[0024] ;
[0025] In the formula, Indicates The confusion credibility of each pixel; Indicates the number of reference images; and Respectively represent reference image and the k+1th reference image The gray value of each pixel; and Respectively represent The kth reference image and the k+1th reference image The degree of confusion of each pixel; Indicates the side length of the filter window; Indicates the The pixel point is the center of the filter window. The degree of confusion of each pixel; Represents an exponential function with a natural constant as its base.
[0026] In any hepatobiliary B-ultrasound image, an initial filtered image of the hepatobiliary B-ultrasound image is obtained by Gaussian filtering according to the filtering window of each pixel in the hepatobiliary B-ultrasound image and the grayscale values of other pixels in the filtering window.
[0027] Furthermore, the filtering process of the hepatobiliary B-ultrasound image based on the filtering window to obtain an initial filtered image includes the following specific steps:
[0028] In any hepatobiliary B-ultrasound image, an initial filtered image of the hepatobiliary B-ultrasound image is obtained by Gaussian filtering according to the filtering window of each pixel in the hepatobiliary B-ultrasound image and the grayscale values of other pixels in the filtering window.
[0029] Furthermore, the window evaluation value of the filtering window is obtained according to the gray value, chaos degree and chaos credibility of each pixel in the hepatobiliary B-ultrasound image and the gray value of each pixel in the initial filtered image, and the specific steps include the following:
[0030] In any hepatobiliary B-ultrasound image, the window evaluation value of the filtering window is obtained according to the chaos credibility and chaos degree of each pixel in the hepatobiliary B-ultrasound image, and the difference in grayscale value of each pixel in the hepatobiliary B-ultrasound image and its initial filtered image.
[0031] Furthermore, the window evaluation value of the filtering window is obtained according to the confusion credibility and degree of confusion of each pixel in the hepatobiliary B-ultrasound image and the difference in the grayscale value of each pixel in the hepatobiliary B-ultrasound image and its initial filtered image, and the specific steps include the following:
[0032] ;
[0033] In the formula, Indicates that the side length is The window evaluation value of the filter window; represents the number of pixels in the hepatobiliary B-ultrasound image; Indicates the first The gray value of each pixel; represents the first The gray value of each pixel; Indicates the first The confusion credibility of each pixel; Indicates the first The degree of confusion of each pixel; is the absolute value function.
[0034] Furthermore, the step of obtaining the final filtered image according to the window evaluation value of the filtering window includes the following specific steps:
[0035] In any B-ultrasound image of the hepatobiliary duct, the side length D of the filter window is set within the preset size range. The first value in is traversed one by one to obtain the window evaluation value of each size of the filter window; the filter window with the largest window evaluation value corresponding to the side length is recorded as the optimal filter window of the hepatobiliary B-ultrasound image; based on the optimal filter window, the hepatobiliary B-ultrasound image is filtered by using Gaussian filtering to obtain the final filtered image of the hepatobiliary B-ultrasound image.
[0036] The beneficial effects of the technical solution of the present invention are as follows: the present invention obtains the degree of confusion of each pixel point according to all reference pixel sets of each pixel point, preliminarily judges the possibility that each pixel point belongs to the hepatobiliary calculus area, and provides an initial basis for the enhancement of the hepatobiliary B-ultrasound image; according to the gray value and degree of confusion of each pixel point in each hepatobiliary B-ultrasound image and the pixel point at the same position in other hepatobiliary B-ultrasound images, the confusion credibility of each pixel point in each hepatobiliary B-ultrasound image is obtained, and the enhancement effect of the hepatobiliary B-ultrasound image is improved; according to the gray value, degree of confusion and confusion credibility of each pixel point in the hepatobiliary B-ultrasound image, and the gray value of each pixel point in the initial filtered image, the window evaluation value of the filter window is obtained, and an accurate filter window size parameter is provided for image filtering, and the enhancement effect of the hepatobiliary B-ultrasound image is further improved. So far, the present invention selects the filter window size through an accurate and reliable window evaluation value, enhances the hepatobiliary B-ultrasound image, and increases the accuracy of the hepatobiliary and biliary calculus image segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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 work.
[0038] Figure 1 The present invention is a flowchart of the steps of a method for segmenting images of the hepatobiliary duct and bile duct stones. DETAILED DESCRIPTION
[0039] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a method for segmenting the image of the hepatobiliary duct and bile duct stones proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0040] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0041] The following is a detailed description of a method for segmenting hepatobiliary and bile duct stones images provided by the present invention in conjunction with the accompanying drawings.
[0042] See also Figure 1 , which shows a flowchart of a method for segmenting hepatobiliary and bile duct stones images provided by an embodiment of the present invention, the method comprising the following steps:
[0043] Step S001: Acquire several hepatobiliary B-ultrasound images.
[0044] Specifically, a plurality of consecutive hepatobiliary B-ultrasound scans are performed on any patient, and the preset acquisition interval between every two scans is s seconds, so as to obtain a plurality of consecutive hepatobiliary B-ultrasound images; the preset acquisition interval s=1, and this embodiment is described by taking this as an example.
[0045] Step S002: In any hepatobiliary B-ultrasound image, a filtering window is established with any pixel point as the center; several reference pixel sets of the pixel point are obtained according to the filtering window; and the disorder degree of each pixel point is obtained according to all reference pixel sets of each pixel point.
[0046] It should be noted that due to the low resolution of the hepatobiliary B-ultrasound image and the complex distribution of human internal tissues, there are more noises in the hepatobiliary B-ultrasound image, which are manifested as a large difference between the grayscale values of a single or multiple pixels and the grayscale values of the surrounding pixels; and the grayscale values of the hepatobiliary stone pixels in the hepatobiliary B-ultrasound image are larger, while the grayscale values of the hepatobiliary duct in the hepatobiliary B-ultrasound image are smaller. Therefore, in the hepatobiliary B-ultrasound image, the hepatobiliary stone appears as a white bright spot, and the grayscale values of the pixels in the hepatobiliary stone area are relatively similar and the grayscale transition is relatively uniform. Therefore, the grayscale value distribution of the pixels in the local window of the hepatobiliary stone area is relatively similar and changes evenly. Therefore, a window is established according to each pixel point, and the degree of distribution disorder of each pixel point is calculated.
[0047] Specifically, in the hepatobiliary B-ultrasound image, take any pixel as the center and establish The filter window is a filter window with D being the side length of the filter window. The initial value is calculated using D=3. It should be noted that if the filter window exceeds the boundary of the hepatobiliary B-ultrasound image, it is impossible to obtain a complete filter window. The filter window is constructed with actual existing pixels. For any pixel in the filter window, all inner edge pixels of the filter window are obtained. The pixel points about the center of the filter window, that is, all the pixels passed by the line connecting every two inner edge pixels symmetrical to the pixel point, constitute a reference pixel set for the pixel point. In the hepatobiliary B-ultrasound image, The pixel at The degree of confusion in a reference pixel set is calculated as:
[0048] ;
[0049] In the formula, Indicates The pixel at The degree of clutter in the reference pixel set; Indicates The pixel The number of different grayscale values of all pixels in the reference pixel set; Indicates The pixel The number of pixels in the reference pixel set; Indicates The pixel The average gray value of all pixels in the reference pixel set; and Respectively represent The pixel The grayscale values of the i-th pixel and the i+1-th pixel in the reference pixel set; is the absolute value function.
[0050] It should be noted that Indicates The pixel The grayscale difference between adjacent pixels in a reference pixel set is larger, indicating that the continuous fluctuation of the grayscale value of the pixel in the reference pixel set is larger. Indicates The pixel The uniformity of the grayscale value change of the pixel points in the reference pixel set. The larger the value, the more uniform the change of the grayscale value of the pixel points in the reference pixel set. Indicates The pixel The distribution range of the gray levels of the pixels in the reference pixel set is larger, The pixel The more chaotic the gray values of the pixels in the reference pixel set are.
[0051] Furthermore, The average value of the degree of confusion of the pixel in all reference pixel sets is recorded as According to the above method, the degree of disorder of each pixel in the hepatobiliary B-ultrasound image is obtained.
[0052] Step S003: Obtain the chaos credibility of each pixel in each hepatobiliary B-ultrasound image according to the grayscale value and chaos degree of each pixel in each hepatobiliary B-ultrasound image and the pixel at the same position in other hepatobiliary B-ultrasound images.
[0053] It should be noted that if only a single hepatobiliary B-ultrasound image is subjected to separate denoising, it is easy to misjudge the stone area or normal tissue area as noise and remove it, resulting in inaccurate recognition results of the stone area. Therefore, the correlation between multiple hepatobiliary B-ultrasound images is combined to improve the accuracy of denoising. When the hepatobiliary of a patient is continuously scanned using B-ultrasound technology, the position and morphology of the hepatobiliary and bile duct stones in the obtained hepatobiliary B-ultrasound images are relatively similar, but the position and grayscale value of the noise points in different images change relatively greatly. Therefore, multiple hepatobiliary B-ultrasound images are combined, and the grayscale difference of the pixels at the same position in different hepatobiliary B-ultrasound images is used to more accurately judge the noise pixels, thereby improving the denoising effect of the hepatobiliary B-ultrasound images.
[0054] Specifically, for any hepatobiliary B-ultrasound image, obtain the previous Pictures to the next All images within the interval of the image are recorded as the reference images of the hepatobiliary B-ultrasound image, where is the preset reference interval radius, , this is used as an example for description, and other values may be set in other implementation modes, and this embodiment does not limit this.
[0055] Furthermore, in any B-ultrasound image of the hepatobiliary duct, The calculation method of the confusion credibility of a pixel is:
[0056] ;
[0057] In the formula, Indicates The confusion credibility of each pixel; Indicates the number of reference images; and Respectively represent The kth reference image and the k+1th reference image The gray value of each pixel; and Respectively represent The kth reference image and the k+1th reference image The degree of confusion of each pixel; Indicates the side length of the filter window; Indicates the The pixel point is the center of the filter window. The degree of confusion of each pixel; Represents an exponential function with a natural constant as the base. This embodiment adopts the exp(-x) model to present the inverse proportional relationship and normalization processing. x is the input of the model. The implementer can set the inverse proportional function and normalization function according to the actual situation.
[0058] It should be noted that It indicates the gray value difference of the pixel at the same position between two consecutive reference images in all reference images. The smaller the value, the smaller the difference of the gray value at the same position of the two images. The greater the possibility that a pixel is a non-noise pixel; It indicates the difference in the degree of disorder of pixels at the same position in two consecutive images of all reference images. The smaller the value, the better. The degree of confusion caused by noise at the pixel point changes slightly. The greater the possibility that a pixel is a non-noise pixel; Indicates the The overall chaos degree of all pixels in the filter window centered at the pixel point is smaller, The greater the probability that a pixel is a non-noise pixel.
[0059] Step S004: For any hepatobiliary B-ultrasound image, filter the hepatobiliary B-ultrasound image based on the filtering window to obtain an initial filtered image; obtain the window evaluation value of the filtering window according to the grayscale value, chaos degree and chaos credibility of each pixel in the hepatobiliary B-ultrasound image and the grayscale value of each pixel in the initial filtered image.
[0060] It should be noted that, since there is a lot of noise in the hepatobiliary B-ultrasound images, and most of the hepatobiliary B-ultrasound images are normal tissue areas with low grayscale values, the selection of the size of the filter window affects the enhancement effect of the hepatobiliary B-ultrasound images. The larger the filter window, the better the denoising effect. The calculation of the degree of confusion is affected by the size of the filter window. The larger the window, the more reference pixel sets, and the greater the degree of confusion may be. Since the pixel points inside each tissue of the human body are relatively evenly distributed, when there is more noise, the grayscale value difference of the internal pixel points of each tissue is large. Therefore, the greater the difference in grayscale value before and after denoising, the better the filtering effect of the image.
[0061] Specifically, in any one of the hepatobiliary B-ultrasound images, the hepatobiliary B-ultrasound image is filtered using a Gaussian filtering algorithm based on a filtering window with a side length of D to obtain an initial filtered image. Gaussian filtering is a prior art and will not be described in detail in this embodiment. The calculation method of the window evaluation value of the filtering window with a side length of D is:
[0062] ;
[0063] In the formula, Indicates that the side length is The window evaluation value of the filter window; Indicates the number of pixels in the hepatobiliary B-ultrasound image; Indicates the first The gray value of each pixel; Indicates the first The gray value of each pixel; Indicates the first The confusion credibility of each pixel; Indicates the first The degree of confusion of each pixel; is the absolute value function.
[0064] In the formula, Indicates the first The greater the penalty value of each pixel, the greater the penalty of the first pixel in the initial filtered image. The greater the degree of confusion of each pixel; Indicates the first The difference in grayscale value before and after denoising of each pixel. The larger the value, the better the filtering effect of the image.
[0065] Step S005: in any one of the hepatobiliary B-ultrasound images, a final filtered image is obtained according to the window evaluation value of the filtering window; and the hepatobiliary region and the biliary stone region in the hepatobiliary B-ultrasound image are obtained according to the final filtered image.
[0066] Furthermore, in any hepatobiliary B-ultrasound image, the side length D of the filter window is set within a preset size range. Start traversing one by one from the first value in , the maximum value , this embodiment is described using this as an example. According to the above method, the window evaluation value of each size of the filter window is obtained; the filter window with the side length corresponding to the largest window evaluation value is recorded as the optimal filter window of the hepatobiliary B-ultrasound image; the hepatobiliary B-ultrasound image is filtered using Gaussian filtering based on the optimal filter window to obtain the final filtered image of the hepatobiliary B-ultrasound image; the final filtered image is subjected to dynamic threshold segmentation to obtain the hepatobiliary region and biliary stone region in each hepatobiliary B-ultrasound image. It should be noted that Gaussian filtering and dynamic threshold segmentation are well-known technologies, and the specific methods are not introduced here.
[0067] At this point, this embodiment is completed.
[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for segmenting hepatobiliary and bile duct stones images. It is characterized in that The method comprises the following steps: Obtain several B-ultrasound images of the hepatobiliary duct; In any hepatobiliary B-ultrasound image, a filtering window is established with any pixel point as the center; several reference pixel sets of the pixel point are obtained according to the filtering window; and the disorder degree of each pixel point is obtained according to all the reference pixel sets of each pixel point; According to the gray value and disorder degree of each pixel point in each hepatobiliary B-ultrasound image and the pixel points in the same position of other hepatobiliary B-ultrasound images, the disorder credibility of each pixel point in each hepatobiliary B-ultrasound image is obtained; For any hepatobiliary B-ultrasound image, filtering is performed on the hepatobiliary B-ultrasound image based on the filtering window to obtain an initial filtering image; according to the gray value, chaos degree and chaos credibility of each pixel in the hepatobiliary B-ultrasound image and the gray value of each pixel in the initial filtering image, a window evaluation value of the filtering window is obtained; In any hepatobiliary B-ultrasound image, a final filtered image is obtained according to the window evaluation value of the filtering window; and the hepatobiliary region and the biliary stone region in the hepatobiliary B-ultrasound image are obtained according to the final filtered image.
2. According to claim 1, a method for segmenting hepatobiliary and bile duct stones images, It is characterized in that The specific steps of obtaining a plurality of reference pixel sets of pixel points according to the filtering window are as follows: For a filtering window of any pixel point, all inner edge pixels of the filtering window are obtained, and all pixels passed by the line connecting every two inner edge pixels symmetrically about the pixel point at the center of the filtering window constitute a reference pixel set for the pixel point.
3. According to the method for segmenting hepatobiliary and bile duct stones images as described in claim 1, It is characterized in that The step of obtaining the disorder degree of each pixel point according to all reference pixel sets of each pixel point includes the following specific steps: According to the grayscale value and grayscale change of each pixel in each reference pixel set, the degree of disorder of each pixel in each reference pixel set is obtained; The average value of the disorder degree of any pixel in all reference pixel sets is recorded as the disorder degree of the pixel.
4. According to claim 3, a method for segmenting hepatobiliary and bile duct stones images, It is characterized in that The degree of disorder of each pixel in each reference pixel set is obtained according to the grayscale value and grayscale change of each pixel in each reference pixel set, and the specific calculation method is as follows: ; In the formula, Indicates The pixel at The degree of clutter in the reference pixel set; Indicates The pixel The number of different grayscale values of all pixels in the reference pixel set; Indicates The pixel The number of pixels in the reference pixel set; Indicates The pixel The average gray value of all pixels in the reference pixel set; and Respectively represent The pixel The grayscale values of the i-th pixel and the i+1-th pixel in the reference pixel set; is the absolute value function.
5. According to claim 1, a method for segmenting hepatobiliary and bile duct stones images, It is characterized in that The method of obtaining the chaos credibility of each pixel in each hepatobiliary B-ultrasound image according to the grayscale value and chaos degree of each pixel in each hepatobiliary B-ultrasound image and the pixel at the same position in other hepatobiliary B-ultrasound images includes the following specific steps: For any hepatobiliary B-ultrasound image, obtain the Pictures to the next All images within the interval of the image are recorded as reference images of the hepatobiliary B-ultrasound image; The chaos credibility of each pixel in the hepatobiliary B-ultrasound image is obtained based on the differences in grayscale values and confusion levels of pixels at the same position in every two consecutive reference images in all reference images, and the confusion levels of all pixels in a filtering window centered on each pixel in the hepatobiliary B-ultrasound image.
6. A method for segmenting hepatobiliary and bile duct stones images according to claim 5, It is characterized in that The chaos credibility of each pixel in the hepatobiliary B-ultrasound image is obtained according to the difference in grayscale value and chaos degree of the pixel at the same position of each two consecutive reference images in all reference images, and the chaos degree of all pixels in the filtering window centered on each pixel in the hepatobiliary B-ultrasound image, including the specific calculation method as follows: ; In the formula, Indicates The confusion credibility of each pixel; Indicates the number of reference images; and Respectively represent The kth reference image and the k+1th reference image The gray value of each pixel; and Respectively represent The kth reference image and the k+1th reference image The degree of confusion of each pixel; Indicates the side length of the filter window; Indicates the The pixel point is the center of the filter window. The degree of confusion of each pixel; Represents an exponential function with a natural constant as its base.
7. According to claim 1, a method for segmenting hepatobiliary and bile duct stones images, It is characterized in that The filtering process of the hepatobiliary B-ultrasound image based on the filtering window to obtain an initial filtered image includes the following specific steps: In any hepatobiliary B-ultrasound image, an initial filtered image of the hepatobiliary B-ultrasound image is obtained by Gaussian filtering according to the filtering window of each pixel in the hepatobiliary B-ultrasound image and the grayscale values of other pixels in the filtering window.
8. According to claim 1, a method for segmenting hepatobiliary and bile duct stones images, It is characterized in that The specific steps of obtaining the window evaluation value of the filtering window according to the gray value, chaos degree and chaos credibility of each pixel in the hepatobiliary B-ultrasound image and the gray value of each pixel in the initial filtered image are as follows: In any hepatobiliary B-ultrasound image, the window evaluation value of the filtering window is obtained according to the chaos credibility and chaos degree of each pixel in the hepatobiliary B-ultrasound image, and the difference in grayscale value of each pixel in the hepatobiliary B-ultrasound image and its initial filtered image.
9. A method for segmenting hepatobiliary and bile duct stones images according to claim 8, It is characterized in that The step of obtaining the window evaluation value of the filtering window according to the confusion credibility and confusion degree of each pixel in the hepatobiliary B-ultrasound image and the difference in the grayscale value of each pixel in the hepatobiliary B-ultrasound image and its initial filtered image comprises the following specific steps: ; In the formula, Indicates that the side length is The window evaluation value of the filter window; represents the number of pixels in the hepatobiliary B-ultrasound image; Indicates the first The gray value of each pixel; represents the first The gray value of each pixel; Indicates the first The confusion credibility of each pixel; Indicates the first The degree of confusion of each pixel; is the absolute value function.
10. A method for segmenting hepatobiliary and bile duct stones images according to claim 1, It is characterized in that The method of obtaining the final filtered image according to the window evaluation value of the filtering window includes the following specific steps: In any B-ultrasound image of the hepatobiliary duct, the side length D of the filter window is set within the preset size range. Start traversing one by one from the first value in, and obtain the window evaluation value of each size of the filter window; record the filter window with the largest side length corresponding to the maximum window evaluation value as the optimal filter window of the hepatobiliary B-ultrasound image; The hepatobiliary B-ultrasound image is filtered using Gaussian filtering based on an optimal filtering window to obtain a final filtered image of the hepatobiliary B-ultrasound image.
Citation Information
Patent Citations
Intelligent patient wound identification system for surgical nursing
CN117523235A
Pulmonary tuberculosis CT image segmentation method based on feature extraction
CN117745751A
Cited By
Segmentation method based on hepatic duct image
CN119942121A
A segmentation method based on hepatobiliary images
CN119942121B
