A preoperative vascular assessment method for free flap surgery
By constructing search windows and sliding windows in blood vessel image processing, calculating the direction and grayscale weight of pixels, and performing filtering and denoising combined with the mean square error, the problem of loss of detailed features in traditional methods is solved and the high quality of blood vessel images is achieved. Denoising and accurate assessment reduce surgical risks.
Patent Information
- Application Number
- CN202410749167.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-12
AI Technical Summary
When the traditional non-local mean filtering algorithm denoises blood vessel images, the detailed features in the blood vessel images will be lost.
A method is adopted to obtain the direction weight and grayscale weight of pixels by constructing a search window and a sliding window. Combined with the mean square error between sliding windows, the filtering weight of the pixel is calculated, filtering and denoising are performed, and the vascular image is retained. Detailed features.
It achieves denoising blood vessel images while retaining detailed features, improves the quality of blood vessel images, ensures accurate assessment of blood vessels, reduces surgical risks, and improves surgical success rate.
Smart Images

Figure CN118333893B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a preoperative blood vessel assessment method for free flap surgery. Background Art
[0002] Free flap surgery is a common surgical technique in the fields of plastic surgery and trauma surgery. Evaluating blood vessels before free flap surgery can help doctors evaluate the blood supply to the donor area and select a suitable flap donor area. In the process of using a magnetic resonance imager to acquire vascular images, the pulse noise generated by the magnetic resonance imager itself will result in poor quality of the vascular image. Therefore, the vascular image needs to be denoised to improve its quality. However, when denoising vascular images through the traditional non-local mean filtering algorithm, filtering and denoising are only performed through the similarity between pixel points, which will cause the loss of detailed features in the vascular image. Summary of the invention
[0003] The present invention provides a preoperative blood vessel evaluation method for free flap surgery to solve the existing problem that the traditional denoising of blood vessel images through non-local mean filtering algorithms will lead to the loss of detail features in the blood vessel images.
[0004] A preoperative vascular assessment method for free flap surgery of the present invention adopts the following technical solution:
[0005] The following steps are involved:
[0006] Acquiring vascular images;
[0007] Constructing a search window and a sliding window in the search window according to the vascular image; obtaining a pixel point sequence according to the position of the pixel point in the search window; obtaining a direction weight of the pixel point according to the difference between adjacent pixel points in the pixel point sequence;
[0008] The pixels in the vascular image are classified according to the grayscale values of the pixels in the vascular image; the important factors of the pixels in different categories are obtained according to the number of pixels in different categories; the pixels are classified according to the grayscale values of the pixels in the sliding window, and the grayscale weights of the pixels are obtained according to the important factors corresponding to each pixel and the number of each pixel;
[0009] The mean square error between sliding windows is calculated according to the grayscale values of the pixels in the sliding windows. The filtering weight of the pixels is obtained by combining the direction weight of the pixels and the grayscale weight of the pixels. The pixels are filtered and denoised according to the filtering weights of the pixels to obtain a denoised vascular image, and the blood vessels are evaluated based on the denoised vascular image.
[0010] Preferably, the specific method of constructing the search window and the sliding window in the search window according to the blood vessel image includes:
[0011] Preset a search window side length , the build size is The search window is set to 1, and the sliding step of the search window is set to 1, and the blood vessel image is traversed to obtain several search windows;
[0012] Then, preset a sliding window side length , the build size is The sliding window is set to 1; for the first Search windows, traverse the first Search window, get All sliding windows in the search window.
[0013] Preferably, the specific method of obtaining the pixel point sequence according to the positions of the pixel points in the search window includes:
[0014] For Search window, for The search window is used for edge detection, and the All edge pixels in the search window;
[0015] For In the search window pixels, first The pixel at the center of the search window is recorded as the reference pixel. In the search window Draw a straight line between the pixel point and the reference pixel point and record it as the Direction straight line;
[0016] Will be located in Direction straight line, and from the The pixels pointing to the reference pixel are arranged into a sequence, denoted as Pixel sequence; for the The pixel sequence pixels, will be The pixel sequence The sliding window with pixels as the center pixel is recorded as The first pixel in the sequence Sliding window, get the Several sliding windows on a sequence of pixels.
[0017] Preferably, the specific method of obtaining the direction weight of the pixel point according to the difference between adjacent pixel points in the pixel point sequence includes:
[0018] According to The number of edge pixels in the sliding window on the pixel sequence, The grayscale value of the pixel in the pixel sequence, the number of edge pixels in the sliding window centered on the reference pixel, and the grayscale value of the reference pixel are calculated. The specific calculation formula for the direction weight of a pixel is:
[0019] ;
[0020] In the formula, Indicates The direction weight of each pixel; Indicates The number of pixels in the pixel sequence; Indicates the gray value of the reference pixel; Indicates The pixel sequence The gray value of each pixel; Represents the number of edge pixels in the sliding window centered on the reference pixel; Indicates The first pixel in the sequence The number of edge pixels in a sliding window; represents an exponential function with a natural constant as base; Represents absolute value operation.
[0021] Preferably, the pixel points in the blood vessel image are classified according to the grayscale values of the pixel points in the blood vessel image; and the important factors of the pixel points in different categories are obtained according to the number of pixel points in different categories, including the specific method of:
[0022] First, the number of pixels in the vascular image is obtained, and the pixels with the same grayscale value in the vascular image are classified into the same type of pixels. Class pixel, first get the The centroid of the region composed of the pixels of the class is recorded as The centroid of the class is then calculated All pixels in the class pixel to the Euclidean distance between class centroids;
[0023] The first The ratio of the number of class pixels to the number of pixels in the blood vessel image is recorded as the first value; All pixels in the class pixel to the The mean of the Euclidean distances between the centroids of the classes is recorded as the second value; the ratio of the first value to the second value is recorded as the third value, and the third value is normalized to obtain the first Important factors for class pixels.
[0024] Preferably, the pixel points are classified according to the grayscale values of the pixel points in the sliding window, and the grayscale weights of the pixel points are obtained according to the important factors corresponding to each pixel point and the number of each pixel point, including the specific method of:
[0025] For In the search window pixels, will be The sliding window with the pixel as the center pixel is recorded as Sliding window, get the The number of pixels in the sliding window, and the The pixels with the same grayscale value in the sliding window are classified as the same type of pixels, the number of each type of pixels is counted, and the important factors corresponding to each type of pixels are obtained. The number of pixels in the sliding window is obtained. The grayscale weight of each pixel.
[0026] Preferably, the obtaining The grayscale weight of each pixel includes the following specific methods:
[0027] For In the sliding window Pixel point, the In the sliding window The number of pixels is the same as the The ratio of the number of pixels in the sliding window is recorded as the fourth value, and the fourth value is added to the In the sliding window The product of the important factors corresponding to the pixels is taken as the In the sliding window The characteristic value of the pixel point;
[0028] Get The feature values of all pixels in the sliding window are The sum of the eigenvalues of all pixels in the sliding window is taken as the The grayscale weight of each pixel.
[0029] Preferably, the method of calculating the mean square error between sliding windows according to the grayscale values of the pixels in the sliding windows includes:
[0030] For in the search window pixels, first The sliding window with the pixel as the center pixel is recorded as A sliding window will be The sliding window centered on the pixel point at the center of the search window is recorded as the reference window; according to the gray value of the pixel point in the reference window and the The gray value of the pixel in the sliding window is calculated The mean square error between the sliding window and the reference window.
[0031] Preferably, the filtering weight of the pixel is obtained according to the mean square error between the sliding windows, combining the direction weight of the pixel and the gray weight of the pixel, and the specific method includes:
[0032] For in the search window pixels; The inverse normalized value of the mean square error between the sliding window and the reference window, The direction weight of the pixel and the The product of the grayscale weights of pixels is taken as the The filter weight of each pixel.
[0033] Preferably, filtering and denoising the pixels according to the filtering weights of the pixels includes the following specific methods:
[0034] For Search window, get the The filter weight of each pixel in the search window is The product of the filter weight of each pixel in the search window and the gray value of each pixel is recorded as the gray factor of each pixel. The grayscale factors of all pixels in the search window are The sum of the grayscale factors of all pixels in the search window is taken as the grayscale factor of the pixel in the The grayscale value of the pixel at the center of the search window is completed. Denoising of pixels at the center of the search window.
[0035] The beneficial effects of the technical solution of the present invention are as follows: the present invention acquires a vascular image; obtains a direction weight of a pixel point according to the position of a pixel point in the vascular image, and uses the direction weight of the pixel point as a factor for obtaining a filtering weight of the pixel point; obtains a grayscale weight of the pixel point according to the number of grayscale levels of the pixel point in the vascular image, and uses the grayscale weight of the pixel point as a factor for obtaining a filtering weight of the pixel point; calculates a mean square error between sliding windows according to the grayscale value of the pixel point in the sliding window, and uses the mean square error as a factor for obtaining a filtering weight of the pixel point; calculates the mean square error between sliding windows, the direction weight of the pixel point and the grayscale weight of the pixel point according to the grayscale value of the pixel point in the sliding window, and obtains the filtering weight of the pixel point. The filtering weight of the point, because single-dimensional data may not be able to describe the complexity of the phenomenon well, and multi-dimensional data can provide more accurate model fitting, and the filtering weight of the present invention is obtained by comprehensively analyzing the distribution position, grayscale value and similarity of the pixel points on the vascular image, while the traditional non-local mean filtering only considers the similarity between the pixel points. Therefore, the denoised vascular image obtained by the filtering weight of the pixel points can better retain the detail features, and achieve the purpose of denoising the vascular image while retaining the details of the vascular image, that is, the blood vessel can be evaluated based on the denoised vascular image, thereby achieving accurate evaluation of the blood vessel, and achieving the purpose of reducing surgical risks and improving surgical success rates. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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.
[0037] Figure 1 A flowchart of the steps of a preoperative vascular assessment method for free flap surgery according to the present invention;
[0038] Figure 2 The flowchart of the present invention for denoising a blood vessel image. 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, structure, features and effects of a preoperative vascular assessment method for free flap surgery 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 specific scheme of a preoperative vascular assessment method for free flap surgery provided by the present invention in conjunction with the accompanying drawings.
[0042] See also Figure 1 , which shows a flowchart of a preoperative vascular assessment method for free flap surgery provided by an embodiment of the present invention, the method comprising the following steps:
[0043] Step S001: Acquire blood vessel images.
[0044] It should be noted that free flap surgery is a common surgical technique in the fields of plastic surgery and trauma surgery, which is used to repair tissue defects or improve blood supply. Evaluating the blood vessels before free flap surgery can help doctors evaluate the blood supply to the donor area, select a suitable flap donor area, and understand possible vascular abnormalities in advance to reduce surgical risks and increase the success rate of the operation. Therefore, vascular images need to be collected first.
[0045] Specifically, the magnetic resonance imager collects the blood vessel image. Since the specific process of collecting the blood vessel image using the magnetic resonance imager is a well-known prior art, it will not be described in detail in this embodiment.
[0046] At this point, a blood vessel image is obtained.
[0047] Step S002: construct a search window and a sliding window in the search window according to the blood vessel image; obtain a pixel point sequence according to the position of the pixel points in the search window; and obtain a direction weight of the pixel points according to the difference between adjacent pixel points in the pixel point sequence.
[0048] It should be noted that, in the process of acquiring vascular images using a magnetic resonance imager, the quality of the vascular images will be low due to the pulse noise generated by the magnetic resonance imager itself. Therefore, it is necessary to perform denoising on the vascular images to improve the quality of the vascular images. However, when the vascular images are denoised using a traditional non-local mean filtering algorithm, filtering and denoising is performed only through the similarity between pixel points, which will cause the loss of detailed features in the vascular images. Therefore, this embodiment proposes a denoising method for vascular images.
[0049] Specifically, preset a search window side length , The specific value of can be set according to the actual situation. This embodiment does not make a hard requirement. To describe, build size The search window is set to 1, and the sliding step of the search window is set to 1, and the blood vessel image is traversed to obtain several search windows;
[0050] Then, preset a sliding window side length , The specific value of can be set according to the actual situation. This embodiment does not make a hard requirement. To describe, build size The sliding window is set to 1; for the first Search windows, traverse the first Search window, get All sliding windows in the search window; it should be noted that the sliding window will not exceed the boundary of the search window.
[0051] It should be further explained that, since the distribution of the blood vessels has certain linear characteristics, the directional weights of the pixels in the search window can be obtained according to the directional characteristics of the pixel distribution in the blood vessel image.
[0052] Specifically, for search window, and use the Sobel operator to The search window is used for edge detection, and the All edge pixels in a search window. Since the specific process of obtaining edge pixels by using the Sobel operator is a well-known prior art, it will not be described in detail in this embodiment.
[0053] For In the search window pixels, first The pixel at the center of the search window is recorded as the reference pixel. In the search window Draw a straight line between the pixel point and the reference pixel point and record it as the Direction straight line;
[0054] Will be located in Direction straight line, and from the The pixels pointing to the reference pixel are arranged into a sequence, denoted as Pixel sequence; for the The pixel sequence pixels, will be The pixel sequence The sliding window with pixels as the center pixel is recorded as The first pixel in the sequence Sliding window, get the Several sliding windows on a sequence of pixels.
[0055] According to The number of edge pixels in the sliding window on the pixel sequence, The grayscale value of the pixel in the pixel sequence, the number of edge pixels in the sliding window centered on the reference pixel, and the grayscale value of the reference pixel are calculated. The specific calculation formula for the direction weight of a pixel is:
[0056] ;
[0057] In the formula, Indicates The direction weight of each pixel; Indicates The number of pixels in the pixel sequence; Indicates the gray value of the reference pixel; Indicates The pixel sequence The gray value of each pixel; Represents the number of edge pixels in the sliding window centered on the reference pixel; Indicates The first pixel in the sequence The number of edge pixels in a sliding window; represents an exponential function with a natural constant as base; Indicates absolute value operation; this embodiment adopts Model to present inverse proportional relationship and normalization, As 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 means the The difference between the grayscale value of all pixels in the pixel sequence and the grayscale value of the reference pixel, that is, The larger the value, the The greater the difference between the grayscale values of all pixels in the direction and the grayscale value of the reference pixel; It means the The difference between the number of edge pixels in all sliding windows on the pixel sequence and the number of edge pixels in the sliding window centered on the reference pixel, The larger the value, the The greater the difference between the texture of the pixel and the texture of the reference pixel; The larger the value of The more chaotic the pixels are, the more chaotic the The larger the value of The weight of the pixel in the direction should be smaller for the reference pixel.
[0059] At this point, the direction weight of each pixel in the search window is obtained.
[0060] Step S003: classify the pixels in the vascular image according to the grayscale values of the pixels in the vascular image; obtain the important factors of the pixels in different categories according to the number of pixels in different categories; classify the pixels according to the grayscale values of the pixels in the sliding window, and obtain the grayscale weight of the pixels according to the important factors corresponding to each pixel and the number of each pixel.
[0061] It should be noted that the directional weight of each pixel in the search window obtained by step S002 is only the weight of the pixel in the direction of filtering the pixel located at the center of the search window. In order to further denoise the vascular image, the weight calculation needs to be further performed. Since the number of noise pixels in the vascular image is much smaller than that of normal pixels, and the grayscale value of the noise pixels in the vascular image is random, that is, the proportion of noise pixels in the vascular image is low; at the same time, the noise pixels in the vascular image are randomly distributed in the vascular image, that is, the noise pixels in the vascular image are distributed discretely; therefore, the important factors of each grayscale pixel can be obtained based on this.
[0062] Specifically, firstly, the number of pixels in the blood vessel image is obtained, and the pixels with the same grayscale value in the blood vessel image are classified into the same type of pixels. Class pixel, first get the The centroid of the region composed of the pixels of the class is recorded as The centroid of the class is then calculated All pixels in the class pixel to the The Euclidean distance between the centroids of the classes is All pixels in the class pixel to the The Euclidean distance between the centroids of the classes, the number of pixels in the vascular image, and the The number of pixels of the class, get the The important factor of the class pixel point, its specific calculation formula is:
[0063] ;
[0064] In the formula, Indicates Important factors of class pixels; Indicates The number of class pixels; Represents the number of pixels in the blood vessel image; Indicates The pixel of the class Pixels to Euclidean distance between class centroids; represents the hyperbolic tangent function, which is used for normalization in this embodiment.
[0065] It should be noted that The value of is recorded as the first value, The value of is recorded as the second value, The value of is recorded as the third value; The calculation is The ratio of the number of class pixels to the number of pixels in the blood vessel image, The smaller the value, the The lower the proportion of class pixels, the The more likely a pixel is a noise pixel, It means all Class pixel to The mean Euclidean distance between class centroids, so The larger the value, the The more discrete the distribution of class pixels is, the The more likely the pixel is a noise pixel; The more likely a pixel is a noise pixel, the The less important the class pixels are, the The smaller the value of The smaller the pixel, the less important it is.
[0066] It should be further explained that after obtaining the important factors of each type of pixel points, the grayscale weights of the pixels in the search window can be obtained according to the important factors of each type of pixel points.
[0067] Specifically, for In the search window pixels, will be The sliding window with the pixel as the center pixel is recorded as Sliding window, get the The number of pixels in the sliding window, and the The pixels with the same grayscale value in the sliding window are classified as the same type of pixels, the number of each type of pixels is counted, and the important factors corresponding to each type of pixels are obtained. The number of pixels in the sliding window is obtained. The grayscale weight of each pixel is calculated as follows:
[0068] ;
[0069] In the formula, Indicates Grayscale weight of each pixel; Indicates In the sliding window The number of pixels; Indicates the preset sliding window side length; Indicates In the sliding window The important factors corresponding to the pixels; Indicates The number of pixel types in a sliding window.
[0070] It should be noted that The value of is recorded as the fourth value, It means the In the sliding window The pixel point is The proportion of sliding windows, so The larger the value of In the sliding window The more important the pixel, the The larger the value of The more important the pixels in the sliding window are, the more important they are. The larger the value of The weight of each pixel is high.
[0071] At this point, the grayscale weight of each pixel in the search window is obtained.
[0072] Step S004: Calculate the mean square error between the sliding windows according to the grayscale values of the pixels in the sliding windows, obtain the filtering weight of the pixels according to the mean square error between the sliding windows, combined with the direction weight of the pixels and the grayscale weight of the pixels; filter and denoise the pixels according to the filtering weight of the pixels to obtain a denoised blood vessel image, and evaluate the blood vessels according to the denoised blood vessel image.
[0073] It should be noted that this embodiment, as a preoperative vascular assessment method for free flap surgery, mainly performs denoising on the vascular image to improve the quality of the vascular image, and then performs preoperative vascular assessment based on the denoised vascular image, so as to achieve accurate assessment of the blood vessels, reduce surgical risks and improve the success rate of surgery. After obtaining the direction weight of each pixel in the search window in step S002 and the grayscale weight of each pixel in the search window in step S003, the directional weight and grayscale weight of each pixel in the search window can be combined with the similarity between pixels in the traditional non-local mean filtering to achieve the purpose of denoising the vascular image while retaining the details of the vascular image.
[0074] Specifically, for in the search window pixels, first The sliding window with the pixel as the center pixel is recorded as A sliding window will be The sliding window centered on the pixel point at the center of the search window is recorded as the reference window; according to the gray value of the pixel point in the reference window and the The gray value of the pixel in the sliding window is calculated The mean square error between the sliding window and the reference window. Since the specific calculation process of the mean square error is a well-known prior art, it will not be described in detail in this embodiment;
[0075] For in the search window pixels; get the The direction weight of the pixel, The grayscale weight of the pixel and the The mean square error between the sliding window and the reference window; The direction weight of the pixel, The grayscale weight of the pixel and the The mean square error between the sliding window and the reference window is obtained. The filter weight of each pixel is calculated as follows:
[0076] ;
[0077] In the formula, Indicates The filter weight of each pixel; Indicates The direction weight of each pixel; Indicates Grayscale weight of each pixel; Indicates The mean square error between the sliding window and the reference window; Represents an exponential function with a natural constant as the base; this embodiment adopts Model to present inverse proportional relationship and normalization, As the input of the model, the implementer can set the inverse proportional function and normalization function according to the actual situation.
[0078] It should be noted that the smaller the mean square error, the more similar the sliding window is to the reference window, that is, The smaller the The larger the filter weight of a pixel is, the larger the direction weight of the pixel and the grayscale weight of the pixel are, the larger the filter weight of the pixel should be, and the filter weight of each pixel in the search window can be obtained.
[0079] It should be further explained that after the filtering weight of each pixel point in the search window is obtained, the pixel point located at the center of the search window can be filtered according to the filtering weight of each pixel point in the search window.
[0080] Specifically, for Search window, get the The filter weight of each pixel in the search window is The product of the filter weight of each pixel in the search window and the gray value of each pixel is recorded as the gray factor of each pixel. The grayscale factors of all pixels in the search window are The sum of the grayscale factors of all pixels in the search window is taken as the grayscale factor of the pixel in the The grayscale value of the pixel at the center of the search window is completed. Denoising of pixels at the center of the search window.
[0081] Similarly, all pixels in the blood vessel image are denoised to obtain a denoised blood vessel image, and blood vessel evaluation is performed on the denoised blood vessel image to accurately obtain a blood vessel evaluation result.
[0082] It should be noted that since the denoised vascular image combines the direction, grayscale value and similarity to denoise the vascular image, it is possible to denoise the vascular image while retaining the detail features, thereby achieving accurate assessment of the blood vessels and achieving the purpose of reducing surgical risks and improving surgical success rates.
[0083] The flowchart of this embodiment for denoising a blood vessel image is as follows: Figure 2 shown.
[0084] At this point, this embodiment is completed.
[0085] 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 preoperative vascular assessment method for free flap surgery, It is characterized in that The method comprises the following steps: Acquiring vascular images; Constructing a search window and a sliding window in the search window according to the vascular image; obtaining a pixel point sequence according to the position of the pixel point in the search window; obtaining a direction weight of the pixel point according to the difference between adjacent pixel points in the pixel point sequence; The pixels in the vascular image are classified according to the grayscale values of the pixels in the vascular image; the important factors of the pixels in different categories are obtained according to the number of pixels in different categories; the pixels are classified according to the grayscale values of the pixels in the sliding window, and the grayscale weights of the pixels are obtained according to the important factors corresponding to each pixel and the number of each pixel; The mean square error between the sliding windows is calculated according to the gray value of the pixel point in the sliding window, and the filtering weight of the pixel point is obtained according to the mean square error between the sliding windows and the direction weight of the pixel point and the gray weight of the pixel point; the pixel point is filtered and denoised according to the filtering weight of the pixel point to obtain a denoised blood vessel image, and the blood vessel is evaluated according to the denoised blood vessel image; The specific method of constructing a search window and a sliding window in the search window according to the blood vessel image includes: Preset a search window side length , the build size is The search window is set to 1, and the sliding step of the search window is set to 1, and the blood vessel image is traversed to obtain several search windows; Then, preset a sliding window length , the build size is The sliding window is set to 1; for the first Search windows, traverse the first Search window, get All sliding windows in the search window; The specific method of obtaining a pixel sequence according to the position of the pixel in the search window includes: For Search window, for The search window is used for edge detection, and the All edge pixels in the search window; For In the search window pixels, first The pixel at the center of the search window is recorded as the reference pixel. In the search window Draw a straight line between the pixel point and the reference pixel point and record it as the Direction straight line; Will be located in Direction straight line, and from the The pixels pointing to the reference pixel are arranged into a sequence, denoted as Pixel sequence; for the The pixel sequence pixels, will be The pixel sequence The sliding window with pixels as the center pixel is recorded as The first pixel in the sequence Sliding window, get the Several sliding windows on the pixel sequence; The specific method of obtaining the direction weight of the pixel point according to the difference between adjacent pixel points in the pixel point sequence includes: According to The number of edge pixels in the sliding window on the pixel sequence, The grayscale value of the pixel in the pixel sequence, the number of edge pixels in the sliding window centered on the reference pixel, and the grayscale value of the reference pixel are calculated. The specific calculation formula for the direction weight of a pixel is: ; In the formula, Indicates The direction weight of each pixel; Indicates The number of pixels in the pixel sequence; Indicates the gray value of the reference pixel; Indicates The pixel sequence The gray value of each pixel; Represents the number of edge pixels in the sliding window centered on the reference pixel; Indicates The first pixel in the sequence The number of edge pixels in a sliding window; represents an exponential function with a natural constant as base; Represents absolute value operation.
2. A preoperative vascular assessment method for free flap surgery according to claim 1, It is characterized in that The method of classifying the pixels in the blood vessel image according to the grayscale values of the pixels in the blood vessel image and obtaining the important factors of the pixels in different categories according to the number of pixels in different categories includes: First, the number of pixels in the vascular image is obtained, and the pixels with the same grayscale value in the vascular image are classified into the same type of pixels. Class pixel, first get the The centroid of the area composed of the pixels of the class is recorded as The centroid of the class is then calculated All pixels in the class pixel to the Euclidean distance between class centroids; The first The ratio of the number of class pixels to the number of pixels in the blood vessel image is recorded as the first value; All pixels in the class pixel to the The mean of the Euclidean distances between the centroids of the classes is recorded as the second value; the ratio of the first value to the second value is recorded as the third value, and the third value is normalized to obtain the first Important factors for class pixels.
3. A preoperative vascular assessment method for free flap surgery according to claim 1, It is characterized in that The method of classifying the pixel points according to the grayscale values of the pixel points in the sliding window and obtaining the grayscale weight of the pixel points according to the important factors corresponding to each pixel point and the number of each pixel point includes the following specific methods: For In the search window pixels, will be The sliding window with the pixel as the center pixel is recorded as Sliding window, get the The number of pixels in the sliding window, and the The pixels with the same grayscale value in the sliding window are classified as the same type of pixels, the number of each type of pixels is counted, and the important factors corresponding to each type of pixels are obtained. The number of pixels in the sliding window is obtained. The grayscale weight of each pixel.
4. A preoperative vascular assessment method for free flap surgery according to claim 3, It is characterized in that The acquisition The grayscale weight of each pixel includes the following specific methods: For In the sliding window Pixel point, the first In the sliding window The number of pixels is the same as the The ratio of the number of pixels in the sliding window is recorded as the fourth value, and the fourth value is added to the In the sliding window The product of the important factors corresponding to the pixels is taken as the In the sliding window The characteristic value of the pixel point; Get The feature values of all pixels in the sliding window are The sum of the eigenvalues of all pixels in the sliding window is taken as the The grayscale weight of each pixel.
5. A preoperative vascular assessment method for free flap surgery according to claim 1, It is characterized in that The specific method of calculating the mean square error between sliding windows according to the grayscale values of the pixels in the sliding windows is as follows: For in the search window pixels, first The sliding window with the pixel as the center pixel is recorded as A sliding window will be The sliding window centered on the pixel point at the center of the search window is recorded as the reference window; according to the gray value of the pixel point in the reference window and the The gray value of the pixel in the sliding window is calculated The mean square error between the sliding window and the reference window.
6. A preoperative vascular assessment method for free flap surgery according to claim 1, It is characterized in that The specific method of obtaining the filtering weight of the pixel point based on the mean square error between the sliding windows and combining the direction weight of the pixel point and the grayscale weight of the pixel point is as follows: For in the search window pixels; The inverse normalized value of the mean square error between the sliding window and the reference window, The direction weight of the pixel and the The product of the grayscale weights of pixels is taken as the The filter weight of each pixel.
7. A preoperative vascular assessment method for free flap surgery according to claim 1, It is characterized in that The specific method of filtering and denoising the pixel points according to the filtering weights of the pixel points includes: For Search window, get the The filter weight of each pixel in the search window is The product of the filter weight of each pixel in the search window and the gray value of each pixel is recorded as the gray factor of each pixel. The grayscale factors of all pixels in the search window are The sum of the grayscale factors of all pixels in the search window is taken as the grayscale factor of the pixel in the The grayscale value of the pixel at the center of the search window is completed. Denoising of pixels at the center of the search window.
Citation Information
Patent Citations
Electronic device with touch function and input method thereof
CN101719030A
Sensor methods and systems for position detection
CN102741781A
Textile tightness degree evaluation method based on image enhancement
CN115345882A
Photovoltaic panel grid line detection method based on machine vision
CN116977329A
Visual positioning method for edge finder wafer positioning
CN117649451A
