A method for optimizing imaging based on nuclear magnetic resonance

By performing fitting circle processing and grayscale value enhancement on edge pixels of MRI images, the problem of low accuracy in identifying benign tumor areas in MRI is solved and the accuracy of diagnosis is improved.

CN118379386BActive Publication Date: 2024-09-06济南科汛智能科技有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410805534.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-06
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The identification of benign tumor areas in MRI is less accurate, resulting in reduced diagnostic accuracy.

Method used

By fitting circle processing on the edge pixels of the MRI image, confirm the fitting circle area, calculate the edge possibility of benign tumors, adjust the weight according to the gray value of the surrounding edge pixels, and perform gray value enhancement to improve benignity Visibility of tumor margins.

Benefits of technology

It improves the recognition accuracy of benign tumor areas in MRI images and enhances the gray value of benign tumor edges, making benign tumor areas easier to identify in images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379386B
    Figure CN118379386B
Patent Text Reader

Abstract

The present application relates to the field of image data processing, and specifically to an imaging optimization method based on nuclear magnetic resonance, including: firstly fitting circle processing of edge pixels of nuclear magnetic resonance images, confirming a number of fitting circle areas, and then calculating the edge possibility of benign tumors according to the fitting degree of the fitting circle area where the target edge pixel is located, the difference in surrounding grayscale values, and the area parameter, and then confirming the adjustment weight of the edge possibility of benign tumors corresponding to the target edge pixel based on the edge possibility and grayscale value of the preset number of surrounding edge pixels corresponding to the target edge pixel, and finally confirming the grayscale value pull-up coefficient of the target edge pixel according to the edge possibility and adjustment weight corresponding to the target edge pixel, so as to enhance the grayscale value of the nuclear magnetic resonance image. The grayscale value of the edge of benign tumors in the nuclear magnetic resonance image is improved to increase the recognition accuracy of the benign tumor area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image data processing, and in particular to an imaging optimization method based on nuclear magnetic resonance. Background Art

[0002] Nuclear Magnetic Resonance Imaging (NMR) is a commonly used medical imaging technology used to diagnose various diseases. It uses the magnetic field and radio frequency pulses in the human body to generate high-resolution three-dimensional images to show the structure and function of the internal tissues and organs of the human body. The basic principle of nuclear magnetic resonance imaging technology is to use the nuclear magnetic resonance phenomenon. When radio frequency pulses act on tissues containing hydrogen atoms in the human body, signals are generated. These signals can be amplified and detected to form images. In nuclear magnetic resonance imaging, hydrogen atoms are filled into a certain area in the human body, and then radio frequency pulses are used to cause nuclear magnetic resonance. Then, by detecting and processing the signal, a tissue image of a certain point in the body can be obtained, which is also a nuclear magnetic resonance image.

[0003] Magnetic resonance imaging technology is non-invasive, safe, has high soft tissue contrast, and has a large amount of information. Therefore, it is widely used to examine various parts of the human body, such as tumors, strokes, spinal diseases, etc. However, in the process of using MRI to detect benign tumors, benign tumor areas are difficult to distinguish from other areas, and ordinary people cannot accurately identify the location, size, and boundaries of the tumor. In other words, the recognition accuracy of benign tumor areas in MRI images is low, which reduces the accuracy of subsequent doctor diagnosis. Summary of the invention

[0004] In view of the above, it is necessary to provide an imaging optimization method based on nuclear magnetic resonance, which improves the recognition accuracy of benign tumor areas in nuclear magnetic resonance images compared to nuclear magnetic resonance images obtained by nuclear magnetic resonance imaging.

[0005] The first aspect of the present application provides an imaging optimization method based on nuclear magnetic resonance, which is applied to the field of nuclear magnetic resonance image enhancement. The method includes: fitting circle processing on edge pixel points of the nuclear magnetic resonance image, and confirming a number of fitting circle areas, wherein the fitting circle areas include elliptical fitting circle areas and circular fitting circle areas; calculating the edge possibility of a benign tumor corresponding to the target edge pixel point according to the fitting degree of the fitting circle area where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter; confirming the adjustment weight of the edge possibility of a benign tumor corresponding to the target edge pixel point based on the edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixels refer to edge pixels located on one side of the target edge pixel point and in the same fitting circle area; confirming the grayscale value pull-up coefficient of the target edge pixel point according to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point, so as to enhance the grayscale value of the nuclear magnetic resonance image.

[0006] In one of the embodiments, performing circle fitting processing on the edge pixel points of the magnetic resonance image to confirm a number of fitted circle areas specifically includes: performing edge detection on the magnetic resonance image to obtain a number of edge pixel points; and confirming a number of fitted circle areas by performing circle fitting processing on the number of edge pixel points.

[0007] In one of the embodiments, the method of calculating the possibility of a benign tumor edge corresponding to a target edge pixel point based on the degree of fitting of the fitting circular area where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter specifically includes: calculating the degree of fitting of the fitting circular area where the target edge pixel point is located based on the distance between the intersection of the normals of the target edge pixel point and a preset number of surrounding edge pixels and the fitting circular area where the target edge pixel point is located; selecting a number of regional pixels inside and outside the fitting circular area on the normal corresponding to the target edge pixel point, respectively, and calculating the difference in surrounding grayscale values ​​corresponding to the target edge pixel point; confirming the area parameter corresponding to the target edge pixel point based on the long side and the short side corresponding to the fitting circular area where the target edge pixel point is located; and performing multiplication calculation on the degree of fitting of the fitting circular area where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter to confirm the possibility of a benign tumor edge corresponding to the target edge pixel point.

[0008] In one embodiment, the step of calculating the fitting degree of the fitting circle area where the target edge pixel point is located according to the distance between the normal intersection of the target edge pixel point and a preset number of surrounding edge pixel points and the fitting circle area where the target edge pixel point is located specifically includes:

[0009]

[0010] in, The target edge pixel The fitting degree of the fitting circle area For a constant The exponential function with base , The target edge pixel The pixel points around the edge intersection points, The target edge pixel The total number of edge pixels around the preset number.

[0011] In one embodiment, the step of selecting a plurality of pixel points in the inner and outer regions of the fitted circle on the normal line corresponding to the target edge pixel point and calculating the gray value difference of the surrounding regions corresponding to the target edge pixel point specifically includes:

[0012]

[0013] in, The target edge pixel The corresponding surrounding gray value difference, is the normal line corresponding to the target edge pixel point inside the fitting circle area. Area pixels, The normal corresponding to the target edge pixel is outside the fitting circle area. Area pixels, The total number of pixels in the area inside or outside the fitting circle area whose normals correspond to the target edge pixels.

[0014] In one embodiment, the area parameter corresponding to the target edge pixel point is confirmed based on the long side and the short side corresponding to the fitting circle area where the target edge pixel point is located, specifically including: when the cluster type where the short side of the fitting circle area where the target edge pixel point is located is the first cluster type, the area parameter corresponding to the target edge pixel point is 0; when the cluster type where the short side of the fitting circle area where the target edge pixel point is located is the second cluster type, the long side and the short side corresponding to the fitting circle area where the target edge pixel point is located are input into the area parameter calculation formula to calculate the area parameter corresponding to the target edge pixel point; correspondingly, the area parameter calculation formula is specifically:

[0015]

[0016] in, The target edge pixel The corresponding area parameter, The target edge pixel The length of the short side of the fitted circle area, The target edge pixel The length of the long side of the fitted circle area, Pi is calculated for area.

[0017] In one of the embodiments, the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point is confirmed based on the benign tumor edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixel point refers to the edge pixel points located on one side of the target edge pixel point and in the same fitting circle area, specifically comprising: calculating the mean of the surrounding possibility corresponding to the target edge pixel point according to the benign tumor edge possibility of a preset number of surrounding edge pixels corresponding to the target edge pixel point; calculating the average of the surrounding grayscale value difference corresponding to the target edge pixel point according to the grayscale value difference between the target edge pixel point and the preset number of surrounding edge pixels; and calculating the sum of the surrounding possibility mean corresponding to the target edge pixel point and the reciprocal of the average of the surrounding grayscale value difference to confirm the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point.

[0018] In one embodiment, the calculating of the mean value of the surrounding possibilities corresponding to the target edge pixel point according to the benign tumor edge possibilities of a preset number of surrounding edge pixels corresponding to the target edge pixel point specifically includes:

[0019]

[0020] in, The target edge pixel The corresponding surrounding likelihood mean, is the total number of the preset number of surrounding edge pixels corresponding to the target edge pixel, The target edge pixel The corresponding surrounding edge pixels, where The method for obtaining is the same as the method for obtaining the possibility of the benign tumor edge corresponding to the target edge pixel point.

[0021] In one embodiment, the step of calculating the average value of the grayscale value differences of the surrounding pixels corresponding to the target edge pixel according to the grayscale value differences between the target edge pixel and a preset number of surrounding pixels includes:

[0022]

[0023] in, The average value of the gray value difference of the surrounding pixels corresponding to the target edge is the total number of the preset number of surrounding edge pixels corresponding to the target edge pixel, is the gray value corresponding to the target edge pixel, is the first pixel corresponding to the target edge point The grayscale value of the surrounding edge pixels.

[0024] In one of the embodiments, the grayscale value stretching coefficient of the target edge pixel is confirmed based on the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel to enhance the grayscale value of the magnetic resonance image, specifically including: multiplying the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel to confirm the final benign tumor edge possibility corresponding to the target edge pixel; inputting the final benign tumor edge possibility into the calculation formula of the preset stretching coefficient to calculate the grayscale value stretching coefficient corresponding to the target edge pixel; enhancing the grayscale value of the target edge pixel by the grayscale value stretching coefficient corresponding to the target edge pixel to achieve grayscale value enhancement of the magnetic resonance image.

[0025] The embodiment of the present application provides an imaging optimization method based on nuclear magnetic resonance, which is applied to the field of nuclear magnetic resonance image enhancement. The method includes: firstly fitting circle processing the edge pixel points of the nuclear magnetic resonance image, confirming a number of fitting circle areas, wherein the fitting circle areas include elliptical fitting circle areas and circular fitting circle areas, then calculating the possibility of the benign tumor edge corresponding to the target edge pixel point according to the fitting degree of the fitting circle area where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter, and then confirming the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point based on the benign tumor edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixel point refers to the edge pixel point located on one side of the target edge pixel point and in the same fitting circle area, and finally confirming the grayscale value pull-up coefficient of the target edge pixel point according to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point, so as to enhance the grayscale value of the nuclear magnetic resonance image. By configuring the grayscale value pull-up coefficient of each edge pixel point according to the possibility that the edge pixel point of the nuclear magnetic resonance image is the edge of a benign tumor, the grayscale value enhancement of the nuclear magnetic resonance image is performed. The gray value of the edge of benign tumors in MRI images is improved to increase the accuracy of identifying benign tumor areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flow chart of a nuclear magnetic resonance-based imaging optimization method according to an embodiment of the present application.

[0027] Figure 2 It is a schematic diagram of the first sub-process of a nuclear magnetic resonance-based imaging optimization method according to an embodiment of the present application.

[0028] Figure 3It is a schematic diagram of the second sub-process of a nuclear magnetic resonance-based imaging optimization method in an embodiment of the present application.

[0029] Figure 4 This is a schematic diagram of the third sub-process of a nuclear magnetic resonance-based imaging optimization method according to an embodiment of the present application.

[0030] Figure 5 This is a schematic diagram of the fourth sub-process of a nuclear magnetic resonance-based imaging optimization method according to an embodiment of the present application.

[0031] Figure 6 This is a schematic diagram of the fifth sub-process of a nuclear magnetic resonance-based imaging optimization method according to an embodiment of the present application.

[0032] Figure 7 It is a schematic diagram of a nuclear magnetic resonance image according to an embodiment of the present application.

[0033] Figure 8 This is one of the embodiments of the present application Figure 7 The edge detection result diagram.

[0034] Fig. 9 This is a schematic diagram of a benign tumor edge area after grayscale enhancement in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" and the like are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" and the like is intended to present related concepts in a concrete manner.

[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.

[0037] It should also be noted that the terms "first" and "second" in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. The method disclosed in the embodiments of this application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged with each other, and some steps can also be deleted.

[0038] The present application embodiment first proposes an imaging optimization method based on nuclear magnetic resonance. In the field of nuclear magnetic resonance image enhancement, refer to the attached Figure 1 , the method comprises the following steps:

[0039] S101, performing circle fitting processing on edge pixel points of the nuclear magnetic resonance image, and determining a number of fitted circle regions, wherein the fitted circle regions include elliptical fitted circle regions and circular fitted circle regions.

[0040] It should be noted that the basic principle of nuclear magnetic resonance imaging technology is to use the nuclear magnetic resonance phenomenon. When radio frequency pulses act on tissues containing hydrogen atoms in the human body, signals will be generated. These signals can form images after amplification and detection. This image is the nuclear magnetic resonance image. Figure 7 , which shows a schematic diagram of a nuclear magnetic resonance image of an embodiment of the present application. In the nuclear magnetic resonance image, benign tumors usually present a clear boundary and regular shape, which may be round or elliptical, and at the same time present a relatively uniform structure in the imaging examination. In addition, the boundaries of benign tumors are usually clear, with a clear boundary line from the surrounding tissues, such as Figure 7 The brain region in the image shows a significantly darker brightness feature, that is, the brightness value of the benign tumor area is different from that of other surrounding tissue areas, which makes them relatively easy to distinguish from the surrounding normal tissues. Furthermore, only when the benign tumor grows to a large enough extent, causing symptoms or compressing the surrounding area, will it be clearly visualized in the MRI image, so the benign tumor area to be detected is relatively large. Based on the above three points, this method optimizes and enhances the edge of the benign tumor in the MRI image to increase the visibility of the edge of the benign tumor in the MRI image.

[0041] After the MRI image is acquired, the MRI image is subjected to denoising and preliminary optimization processing, specifically: first, a median filter is used to remove salt and pepper noise to protect details and edge information. Then, histogram equalization is used to enhance image contrast and improve image quality, making the image look clearer and fuller. After preprocessing, edge detection is performed to obtain a certain number of edge pixels. Please refer to Figure 8 , which shows an embodiment of the present application Figure 7The edge detection result diagram is shown. Then the plurality of edge pixel points are subjected to a circle fitting process to obtain a plurality of fitted circle regions, wherein the fitted circle regions include elliptical fitted circle regions and circular fitted circle regions. The circle fitting process refers to fitting all edge pixel points in the nuclear magnetic resonance image to a circle or an ellipse, so as to combine the edge pixel points that can form a circle or an ellipse to form a fitted circle region.

[0042] For details, please refer to the attached Figure 2 , performing circle fitting processing on edge pixels of the nuclear magnetic resonance image and determining a number of fitted circle areas specifically include:

[0043] S201, performing edge detection on the nuclear magnetic resonance image to obtain a number of edge pixel points.

[0044] Among them, the edge detection is one of the basic technologies in image processing, and its purpose is to identify the edge of an object in an image. The principle of edge detection is based on the local structural features of objects in an image, including information such as color, grayscale, and gradient. In the process of edge detection, a common method is to use the amplitude and direction of the gradient to determine the position and direction of the edge. Specifically, the principle of edge detection can be summarized as the following steps: 1) Calculate the gradient of the image: In an image, pixels near the edge of an object usually have a large change, so the gradient amplitude and direction of the current pixel can be estimated by using the pixels around it. The gradient amplitude represents the amount of change in the pixel value at the edge of the object, and the direction represents the direction of the edge. 2) Determine the edge position: By comparing the gradient amplitude and direction between adjacent pixels, the position of the edge of the object can be determined. Generally, the determination of the edge position requires multiple iterations until a local maximum is found or a certain stop condition is reached. 3) Map the edge position to the original image: Once the edge position is determined, it can be mapped back to the original image to obtain an edge image. The value of each pixel in the edge image represents the position and direction of the edge where the pixel is located. In this embodiment, the specific edge detection process is not limited, and specific reference is made to the above implementation steps. After edge detection is performed on the nuclear magnetic resonance image, a number of edge pixel points are obtained, and the edge pixel points refer to the pixel points corresponding to the edge of the tissue in the nuclear magnetic resonance image.

[0045] S202, confirming a number of fitting circle regions by performing circle fitting processing on the number of edge pixel points, wherein the fitting circle regions include elliptical fitting circle regions and circular fitting circle regions.

[0046] Among them, after obtaining the several number of edge pixel points, the several number of edge pixel points are subjected to fitting circle processing, and the fitting circle processing is a mathematical method used to solve the minimization problem of a series of geometric problems. The basic idea of ​​fitting circle processing is to transform the problem to be solved into an optimization problem, and then solve the optimal solution through a numerical optimization algorithm. The application range of fitting circle processing is wide. In the field of image processing, fitting circle processing is also often used to deal with edge detection and other problems. In other words, fitting circle processing refers to combining a number of edge pixel points in a circular or elliptical shape, and a number of edge pixel points that can form a circle or an ellipse are confirmed as a fitting circle area.

[0047] S102, calculating the possibility of a benign tumor edge corresponding to the target edge pixel point according to the fitting degree of the fitting circle area where the target edge pixel point is located, the surrounding gray value difference and the area parameter.

[0048] Among them, the probability of the edge of a benign tumor corresponding to the target edge pixel refers to the probability value of the pixel of the edge of a benign tumor in the nuclear magnetic resonance image. That is, when the probability of the edge of a benign tumor corresponding to the target edge pixel is greater, the target edge pixel is more likely to be a pixel of the edge of a benign tumor in the nuclear magnetic resonance image. The probability of the edge of a benign tumor corresponding to the target edge pixel can be calculated by the three characteristics of the benign tumor area mentioned above. First, the benign tumor area is usually circular or elliptical, which corresponds to the degree of fitting of the fitting circle area where the target edge pixel is located. Secondly, the brightness value in the benign tumor area is different from the brightness value of other tissues, which corresponds to the grayscale value difference around the fitting circle area where the target edge pixel is located. Finally, the benign tumor area is usually larger than other tissue areas, which corresponds to the area parameter of the fitting circle area where the target edge pixel is located. The performance characteristics of the benign tumor area in the nuclear magnetic resonance image are converted into three calculation parameters of the fitting circle area where the target edge pixel is located, and the probability of the target edge pixel being the edge of a benign tumor is further calculated, that is, the probability of the benign tumor edge corresponding to the target edge pixel.

[0049] S103, confirming the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point based on the benign tumor edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixels refer to edge pixels located on one side of the target edge pixel point and in the same fitting circle area.

[0050] Among them, if the strength of subsequent gray value enhancement optimization is calculated only by the target edge pixel itself, it is easy to cause poor subsequent enhancement optimization effect due to factors such as errors or calculation errors. It is necessary to increase the information corresponding to the surrounding edge pixels, and further weight the benign tumor edge possibility corresponding to the target edge pixel to increase the accuracy of subsequent optimization enhancement. The adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel refers to the magnitude of the adjustment strength of the benign tumor edge possibility corresponding to the target edge pixel. When the target edge pixel corresponds to the edge of different regions, the corresponding optimization enhancement strength is different, and the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel is a part of the optimization enhancement strength. For example, when the target edge pixel is an edge pixel of normal tissue, its optimization enhancement strength is small, and when the target edge pixel is an edge pixel of a benign tumor area, its optimization enhancement strength is large. The preset number of surrounding edge pixel points corresponding to the target edge pixel point are in the same edge as the target edge pixel point, that is, they are in the same fitting circle area as the target edge pixel point, and the preset number of surrounding edge pixel points are all located on one side of the target edge pixel point.

[0051] S104, determining the gray value lifting coefficient of the target edge pixel point according to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point, so as to enhance the gray value of the nuclear magnetic resonance image.

[0052] Among them, the grayscale value lifting coefficient of the target edge pixel point refers to the intensity coefficient of the subsequent grayscale value lifting (enhancement optimization) of the grayscale value of the target edge pixel point. The grayscale value lifting is an image enhancement technology used to change the brightness distribution of an image to make the image more uniform in brightness. In the grayscale value lifting process, the grayscale value of each pixel is multiplied by a grayscale value lifting coefficient, which determines the change in the grayscale value of each pixel. If the grayscale value lifting coefficient is large, the overall grayscale value of the image will increase, making the image look brighter; if the grayscale value lifting coefficient is small, the overall grayscale value of the image will decrease, making the image look darker.

[0053] It should be noted that the specific value of the grayscale value pull-up coefficient depends on the specific application scenario and requirements. Generally speaking, the value range of the pull-up coefficient is between 0.5 and 2. If the pull-up coefficient is too large, it may cause image details to be lost and over-enhancement to occur. If the pull-up coefficient is too small, the overall brightness of the image may not be obvious enough.

[0054] See also Fig. 9, which shows a schematic diagram of a benign tumor edge area after grayscale enhancement in an embodiment of the present application, that is, after grayscale enhancement, the benign tumor area presents obvious highlight features, its image information is more prominent, and it is easier to segment the benign tumor area.

[0055] The embodiment of the present application provides an imaging optimization method based on nuclear magnetic resonance, which is applied to the field of nuclear magnetic resonance image enhancement. The method includes: firstly fitting circle processing the edge pixel points of the nuclear magnetic resonance image, confirming a number of fitting circle areas, wherein the fitting circle areas include elliptical fitting circle areas and circular fitting circle areas, then calculating the possibility of the benign tumor edge corresponding to the target edge pixel point according to the fitting degree of the fitting circle area where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter, and then confirming the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point based on the benign tumor edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixel point refers to the edge pixel point located on one side of the target edge pixel point and in the same fitting circle area, and finally confirming the grayscale value pull-up coefficient of the target edge pixel point according to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point, so as to enhance the grayscale value of the nuclear magnetic resonance image. By configuring the grayscale value pull-up coefficient of each edge pixel point according to the possibility that the edge pixel point of the nuclear magnetic resonance image is the edge of a benign tumor, the grayscale value enhancement of the nuclear magnetic resonance image is performed. The gray value of the edge of benign tumors in MRI images is improved to increase the accuracy of identifying benign tumor areas.

[0056] In one embodiment of the present application, see Figure 3 The step S102: calculating the possibility of a benign tumor edge corresponding to the target edge pixel point according to the fitting degree of the fitting circle area where the target edge pixel point is located, the surrounding gray value difference and the area parameter, specifically includes:

[0057] S301, calculating the fitting degree of the fitting circle region where the target edge pixel is located according to the distance between the normal intersection point of the target edge pixel and a preset number of surrounding edge pixels and the center of the fitting circle region where the target edge pixel is located.

[0058] The surrounding edge pixel points refer to edge pixel points located on one side of the target edge pixel point and in the same fitting circle area, and the normals of the target edge pixel point and the preset number of surrounding edge pixel points refer to the perpendicular lines of the tangents of the target edge pixel point and the preset number of surrounding edge pixel points on the edges where they are located. It should be noted that the fitting circle areas here are all circular fitting circle areas. Since the elliptical fitting circle area has no corresponding center, the elliptical fitting circle area needs to be further circularly fitted to further obtain the corresponding circular fitting circle area.

[0059] It should be noted that, under ideal conditions, the intersection of the normals of the target edge pixel point and the preset number of surrounding edge pixel points should be the same intersection, that is, they should all intersect at the center of the fitting circle area where the target edge pixel point and the preset number of surrounding edge pixel points are located. Because the fitting circle area is not a standard circle, there is a certain distance between the intersection of the normals of the target edge pixel point and the preset number of surrounding edge pixel points and the center of the fitting circle. Therefore, the degree of fitting of the circle of the fitting circle area where the target edge pixel point is located can be characterized by the distance between the intersection of the normals of the target edge pixel point and the preset number of surrounding edge pixel points and the center of the fitting circle area where the target edge pixel point is located.

[0060] Further, when the average distance between the intersection of the normals of the target edge pixel point and a preset number of surrounding edge pixels and the center of the fitting circle region where the target edge pixel point is located is smaller, the better the fitting degree of the fitting circle region where the target edge pixel point is located is, and the target edge pixel point is more likely to be an edge pixel point of a benign tumor region. When the average distance between the intersection of the normals of the target edge pixel point and a preset number of surrounding edge pixels and the center of the fitting circle region where the target edge pixel point is located is larger, the better the fitting degree of the fitting circle region where the target edge pixel point is located is, and the target edge pixel point is more likely to be an edge pixel point of a benign tumor region.

[0061] Specifically, the step of calculating the fitting degree of the fitting circle region where the target edge pixel point is located according to the distance between the normal intersection point of the target edge pixel point and a preset number of surrounding edge pixel points and the fitting circle region where the target edge pixel point is located specifically includes:

[0062]

[0063] in, The target edge pixel The degree of fitting of the fitting circle area For a constant The exponential function with base , The target edge pixel The pixel points around the edge The distance between the intersection point and the center of the fitted circle area, The target edge pixel The total number of edge pixels around the preset number.

[0064] Furthermore, The average value of the distance between the normal intersection of the target edge pixel and all the preset number of surrounding edge pixels and the fitting circle area where the target edge pixel is located. The smaller the average value, the closer the target edge pixel is. The fitting degree of the fitting circle area The larger the target edge pixel The more likely it is to be an edge pixel of a benign tumor area. When the average value is larger, the target edge pixel The fitting degree of the fitting circle area The smaller the target edge pixel The less likely it is to be an edge pixel of a benign tumor area.

[0065] S302, on the normal line corresponding to the target edge pixel point, select a number of regional pixel points inside and outside the fitting circle area respectively, and calculate the surrounding gray value difference corresponding to the target edge pixel point.

[0066] Among them, the regional pixel points inside the fitting circle area corresponding to the target edge pixel point refer to the pixel points that are on the normal line corresponding to the target edge pixel point and are located inside the fitting circle area where the target edge pixel point is located. Similarly, the regional pixel points outside the fitting circle area corresponding to the target edge pixel point refer to the pixel points that are on the normal line corresponding to the target edge pixel point and are located outside the fitting circle area where the target edge pixel point is located. Then, based on the difference in the average grayscale values ​​between the regional pixel points inside the fitting circle area corresponding to the target edge pixel point and the regional pixel points outside the fitting circle area corresponding to the target edge pixel point, the difference in the surrounding grayscale values ​​corresponding to the target edge pixel point is calculated. The difference in the surrounding grayscale values ​​corresponding to the target edge pixel point refers to the difference between the grayscale values ​​inside and outside the fitting circle area where the target edge pixel point is located.

[0067] Specifically, on the normal line corresponding to the target edge pixel point, a number of regional pixel points inside and outside the fitting circle area are selected respectively, and the surrounding gray value difference corresponding to the target edge pixel point is calculated, which specifically includes:

[0068]

[0069] in, The target edge pixel The corresponding surrounding gray value difference, The target edge pixel The corresponding normal line is inside the fitted circle area. The gray value of the pixels in the area, The target edge pixel The corresponding normal is outside the fitted circle area. The gray value of the pixels in the area, The total number of pixels in the area inside or outside the fitting circle area whose normals correspond to the target edge pixels.

[0070] Furthermore, the number of the inner region pixel points corresponding to the target edge pixel point is equal to the number of the outer region pixel points corresponding to the target edge pixel point, and both are values The specific value can be set according to the actual situation. For all target edge pixels The average gray value of the pixels in the area where the corresponding normal line is inside the fitting circle area, For all target edge pixels The average grayscale value of the pixels in the area outside the fitting circle area corresponding to the normal line is calculated by subtracting the two to obtain the difference between the grayscale value inside and outside the fitting circle area where the target edge pixel is located, that is, the difference in the surrounding grayscale values ​​corresponding to the target edge pixel. It should be explained that in the nuclear magnetic resonance image, the brightness value of the benign tumor area is greater than the brightness value of other areas. Correspondingly, when the difference in the surrounding grayscale values ​​corresponding to the target edge pixel is greater, the possibility that the target edge pixel is an edge pixel in the benign tumor area is greater, and when the difference in the surrounding grayscale values ​​corresponding to the target edge pixel is smaller, the possibility that the target edge pixel is an edge pixel in the benign tumor area is smaller.

[0071] S303: confirming the area parameter corresponding to the target edge pixel point based on the long side and the short side corresponding to the fitting circle area where the target edge pixel point is located.

[0072] It should be noted that the fitted circular areas here are all elliptical fitted circular areas. Since the circular fitted circular areas have no corresponding long sides and short sides, the circular fitted circular areas need to be further elliptical fitted to further obtain the corresponding elliptical fitted circular areas. The area parameter corresponding to the target edge pixel point refers to the degree of matching between the area of ​​the fitted circular area where the target edge pixel point is located and the area of ​​the benign tumor area.

[0073] Specifically, the short edges corresponding to the fitted circle areas where all edge pixels of the nuclear magnetic resonance image are located are first clustered, and the short edges corresponding to the fitted circle areas where all edge pixels of the nuclear magnetic resonance image are located are divided into two categories, one is the first cluster type with a higher frequency of occurrence and a shorter length, and the other is the second cluster type with a lower frequency of occurrence and a longer length. It should be noted that because the benign tumor area is large in area and low in number, it corresponds to the second cluster type. Because other tissues are small in area and large in number, they correspond to the first cluster type.

[0074] For details, please refer to the attached Figure 4 , the area parameter corresponding to the target edge pixel point is determined based on the long side and the short side corresponding to the fitting circle area where the target edge pixel point is located, specifically including:

[0075] S401, when the cluster type where the short side of the fitting circle area where the target edge pixel point is located is the first cluster type, the area parameter corresponding to the target edge pixel point is 0;

[0076] S402: When the cluster type of the short side of the fitted circular area where the target edge pixel point is located is the second cluster type, the length of the long side and the length of the short side corresponding to the fitted circular area where the target edge pixel point is located are input into the area parameter calculation formula to calculate the area parameter corresponding to the target edge pixel point; correspondingly, the area parameter calculation formula is specifically:

[0077]

[0078] in, The target edge pixel The corresponding area parameter, The target edge pixel The length of the short side of the fitted circle area, The target edge pixel The length of the long side of the fitted circle area, Pi is calculated for area.

[0079] Furthermore, when the cluster type where the short side of the fitted circular area where the target edge pixel point is located is the first cluster type, it is proved that the frequency of occurrence of the area interval where the fitted circular area where the target edge pixel point is located is relatively large, which does not conform to the representation of the benign tumor area in the nuclear magnetic resonance image, and the corresponding area parameter is 0. When the cluster type where the short side of the fitted circular area where the target edge pixel point is located is the second cluster type, it is proved that the frequency of occurrence of the area interval where the fitted circular area where the target edge pixel point is located is relatively small, which conforms to the representation of the benign tumor area in the nuclear magnetic resonance image, and the area of ​​the fitted circular area corresponding to the target edge pixel point can be used as the area parameter corresponding to the target edge pixel point, that is, the target edge pixel point The corresponding area parameter When the target edge pixel The larger the corresponding area parameter, the larger the target edge pixel The more likely it is an edge pixel of a benign tumor area.

[0080] S304, performing a multiplication calculation on the fitting degree of the fitting circle area where the target edge pixel point is located, the surrounding gray value difference and the area parameter, and confirming the possibility of the benign tumor edge corresponding to the target edge pixel point.

[0081] After obtaining the fitting degree, the surrounding gray value difference and the area parameter of the fitting circle area where the target edge pixel point is located, the three are multiplied to further calculate the possibility of the benign tumor edge corresponding to the target edge pixel point.

[0082] Specifically, the multiplication of the fitting degree, the surrounding gray value difference and the area parameter of the fitting circle area where the target edge pixel point is located to determine the possibility of the benign tumor edge corresponding to the target edge pixel point specifically includes:

[0083]

[0084] in, The target edge pixel The corresponding benign tumor margin probability, The target edge pixel The degree of fitting of the fitting circle area, The target edge pixel The corresponding surrounding gray value difference, The target edge pixel The corresponding area parameter.

[0085] It should be noted that, since the fitting degree of the fitting circle area where the target edge pixel point is located, the surrounding gray value difference and the area parameter are all proportional to the possibility of the target edge pixel point becoming a benign tumor edge pixel point, the fitting degree of the fitting circle area where the target edge pixel point is located, the surrounding gray value difference and the area parameter can be multiplied to obtain the corresponding benign tumor edge possibility corresponding to the target edge pixel point, which is also proportional to the possibility of the target edge pixel point becoming a benign tumor area. That is, when the benign tumor edge possibility corresponding to the target edge pixel point is greater, the target edge pixel point is more likely to be a benign tumor edge pixel point.

[0086] In one embodiment of the present application, refer to the attached Figure 5 Step S103: confirming the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point based on the benign tumor edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixels refer to edge pixels located on one side of the target edge pixel point and in the same fitting circle area, specifically including:

[0087] S501 , calculating a mean value of the surrounding possibilities corresponding to the target edge pixel point according to the benign tumor edge possibilities of a preset number of surrounding edge pixels corresponding to the target edge pixel point.

[0088] Among them, after obtaining the benign tumor edge possibility of the target edge pixel point, the benign tumor edge possibility of a preset number of surrounding edge pixel points corresponding to the target edge pixel point is counted, and then the benign tumor edge possibility of the preset number of surrounding edge pixel points is averaged to obtain the surrounding possibility mean corresponding to the target edge pixel point.

[0089] Specifically, the method of calculating the mean value of the surrounding possibilities corresponding to the target edge pixel point according to the benign tumor edge possibilities of a preset number of surrounding edge pixels corresponding to the target edge pixel point specifically includes:

[0090]

[0091] in, The target edge pixel The corresponding surrounding likelihood mean, is the total number of the preset number of surrounding edge pixels corresponding to the target edge pixel, The target edge pixel The corresponding The probability of a benign tumor edge of surrounding edge pixels, where The method for obtaining is the same as the method for obtaining the possibility of the benign tumor edge corresponding to the target edge pixel point.

[0092] It should be noted that is the mean of the benign tumor edge probabilities corresponding to the target edge pixel and the surrounding edge pixels corresponding to the target edge pixel. When the mean is large, the benign tumor edge probabilities corresponding to the target edge pixel and the surrounding edge pixels corresponding to the target edge pixel are both large, indicating that the fitting circle area where the target edge pixel and the surrounding edge pixels corresponding to the target edge pixel are located is likely to be the edge of the benign tumor area, and the grayscale value of the target edge pixel should be further enhanced and optimized.

[0093] S502: Calculate the average value of the grayscale value differences of the surrounding pixels corresponding to the target edge pixel according to the grayscale value differences between the target edge pixel and a preset number of surrounding pixels.

[0094] Among them, the grayscale value of the target edge pixel is first obtained, and then the grayscale values ​​of a preset number of surrounding edge pixels corresponding to the target edge pixel are counted, and the grayscale value of the target edge pixel is subtracted from the grayscale values ​​of a preset number of surrounding edge pixels to obtain a preset number of grayscale value differences, and the grayscale value differences are further averaged to calculate the average value of the surrounding grayscale value differences corresponding to the target edge pixel.

[0095] Specifically, the step of calculating the average value of the grayscale value differences of the surrounding pixels corresponding to the target edge pixel according to the grayscale value differences between the target edge pixel and a preset number of surrounding pixels includes:

[0096]

[0097] in, The target edge pixel The corresponding average value of the surrounding gray value difference The target edge pixel The total number of the corresponding preset number of surrounding edge pixels, The target edge pixel The corresponding gray value, The target edge pixel The corresponding The grayscale value of the surrounding edge pixels.

[0098] Furthermore, The target edge pixel The corresponding The gray value difference of the surrounding edge pixels, It is the mean of all grayscale value differences. What needs to be analyzed is that the grayscale value difference between the edge pixels of the same benign tumor area is small. The closer the grayscale value of the target edge pixel is to its corresponding surrounding edge pixel, the smaller the mean of the grayscale value difference between the target edge pixel and its corresponding surrounding edge pixel is, which proves that it is more likely to be the edge of a benign tumor area.

[0099] S503, calculating the sum of the surrounding possibility mean value corresponding to the target edge pixel point and the reciprocal of the surrounding gray value difference mean value, and determining the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point.

[0100] Among them, after obtaining the surrounding possibility mean value and the surrounding gray value difference average value corresponding to the target edge pixel point, both are used as calculation parameters to further calculate the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point.

[0101] Specifically, the calculation of the mean value of the surrounding possibility corresponding to the target edge pixel and the reciprocal of the mean value of the surrounding gray value difference to determine the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel specifically includes:

[0102]

[0103] in, The target edge pixel The corresponding adjusted weights for the likelihood of a benign tumor margin, The target edge pixel The corresponding surrounding likelihood mean, The target edge pixel The corresponding average value of the surrounding gray value difference.

[0104] Furthermore, the target edge pixels The corresponding adjusted weights of the likelihood of a benign tumor margin , and the target edge pixel The probability of belonging to the edge of the benign tumor area is proportional to the target edge pixel point. The corresponding average value of the surrounding gray value difference , and the target edge pixel The probability of belonging to the edge of the benign tumor area is inversely proportional, so the target edge pixel point is taken The corresponding average value of the surrounding gray value difference The inverse of , adjusts the properties of the two calculation parameters to be the same. That is, when the target edge pixel The corresponding adjusted weight of the benign tumor edge pixel probability When the value is larger, the target edge pixel The larger the pixel, the more likely it is the edge pixel of the benign tumor area.

[0105] In one embodiment of the present application, refer to the attached Figure 6 Step S104, determining the gray value lifting coefficient of the target edge pixel point according to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point to enhance the gray value of the nuclear magnetic resonance image, specifically includes:

[0106] S601, calculating the product of the benign tumor edge possibility corresponding to the target edge pixel point and the adjustment weight, and determining the final benign tumor edge possibility corresponding to the target edge pixel point.

[0107] Among them, after obtaining the benign tumor edge possibility and the corresponding adjustment weight corresponding to the target edge pixel point, the benign tumor edge possibility corresponding to the target edge pixel point is weighted by the adjustment weight, that is, the two are multiplied to obtain the final benign tumor edge possibility corresponding to the target edge pixel point.

[0108] Specifically, the benign tumor edge possibility corresponding to the target edge pixel point is multiplied by the adjustment weight to determine the final benign tumor edge possibility corresponding to the target edge pixel point, which specifically includes:

[0109]

[0110] in, The target edge pixel The corresponding final benign tumor margin probability, The target edge pixel The corresponding adjusted weights for the likelihood of a benign tumor margin, The target edge pixel The corresponding probability of benign tumor margin.

[0111] Specifically, the target edge pixel The corresponding adjusted weights of the likelihood of a benign tumor margin Pixels at the edge of the target Corresponding benign tumor margin probability , both of which are related to the target edge pixel is proportional to the probability of being a benign tumor edge pixel, then the corresponding target edge pixel The corresponding final benign tumor margin probability Also with the target edge pixel is proportional to the probability of being a benign tumor edge pixel, that is, when the target edge pixel The corresponding final benign tumor margin probability When the value is larger, the target edge pixel The greater the probability of a benign tumor edge pixel, the higher the probability of the corresponding target edge pixel. The gray value should be increased as well.

[0112] S602: Input the final benign tumor edge possibility into a preset stretch coefficient calculation formula to calculate the gray value stretch coefficient corresponding to the target edge pixel point.

[0113] Among them, after obtaining the final benign tumor edge probability corresponding to the target edge pixel point, the final benign tumor edge probability is normalized to the maximum and minimum values, and the final benign tumor edge probability after the maximum and minimum value normalization is equipped with a tan function architecture to further calculate the grayscale value pull-up coefficient corresponding to the target edge pixel point.

[0114] Specifically, the final benign tumor edge possibility is input into a calculation formula of a preset stretch coefficient to calculate the gray value stretch coefficient corresponding to the target edge pixel point, specifically including:

[0115]

[0116] in, The target edge pixel The corresponding gray value pull-up coefficient, is the normalized function expression of the maximum and minimum values ​​of the final benign tumor edge possibility, A functional architecture based on the tan function characteristics.

[0117] Specifically, based on The function architecture characteristics can increase the grayscale value of the pixel points belonging to the edge of benign tumors as much as possible, and reduce the grayscale value of the pixel points that do not belong to the edge of benign tumors as little as possible.

[0118] S603 . Enhance the grayscale value of the target edge pixel point by using the grayscale value lifting coefficient corresponding to the target edge pixel point, so as to enhance the grayscale value of the nuclear magnetic resonance image.

[0119] Among them, after obtaining the grayscale value lifting coefficient corresponding to the target edge pixel point, the grayscale value of the target edge pixel point is enhanced based on the grayscale value lifting coefficient to enhance the grayscale value of the edge of the benign tumor area in the magnetic resonance image, thereby better visualizing the benign tumor area in the magnetic resonance image.

[0120] The embodiment of the present application provides an imaging optimization method based on nuclear magnetic resonance, which is applied to the field of nuclear magnetic resonance image enhancement. The method includes: firstly fitting circle processing the edge pixel points of the nuclear magnetic resonance image, confirming a number of fitting circle areas, wherein the fitting circle areas include elliptical fitting circle areas and circular fitting circle areas, then calculating the possibility of the benign tumor edge corresponding to the target edge pixel point according to the fitting degree of the fitting circle area where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter, and then confirming the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point based on the benign tumor edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixel point refers to the edge pixel point located on one side of the target edge pixel point and in the same fitting circle area, and finally confirming the grayscale value pull-up coefficient of the target edge pixel point according to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point, so as to enhance the grayscale value of the nuclear magnetic resonance image. By configuring the grayscale value pull-up coefficient of each edge pixel point according to the possibility that the edge pixel point of the nuclear magnetic resonance image is the edge of a benign tumor, the grayscale value enhancement of the nuclear magnetic resonance image is performed. The gray value of the edge of benign tumors in MRI images is improved to increase the accuracy of identifying benign tumor areas.

[0121] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

[0122] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, no matter from which point of view, the above embodiments of the present application should be regarded as exemplary and non-restrictive, and the scope of the present application is defined by the attached claims rather than the above description, and therefore it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application.

Claims

1. A method for optimizing imaging based on nuclear magnetic resonance, applied in the field of nuclear magnetic resonance image enhancement, characterized in that: The method comprises: Performing circle fitting processing on edge pixel points of the nuclear magnetic resonance image to determine a number of fitted circle areas, wherein the fitted circle areas include elliptical fitted circle areas and circular fitted circle areas; According to the fitting degree of the fitting circle area where the target edge pixel point is located, the difference in surrounding gray values ​​and the area parameter, the possibility of the benign tumor edge corresponding to the target edge pixel point is calculated; Based on the benign tumor edge possibilities and grayscale values ​​of a preset number of surrounding edge pixels corresponding to the target edge pixel, determining an adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel, wherein the surrounding edge pixels refer to edge pixels located on one side of the target edge pixel and in the same fitting circle area; According to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point, the gray value pull-up coefficient of the target edge pixel point is determined to enhance the gray value of the nuclear magnetic resonance image; The method of calculating the possibility of a benign tumor edge corresponding to a target edge pixel point according to the degree of fit of a fitting circle region where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter specifically includes: calculating the degree of fit of a fitting circle region where the target edge pixel point is located according to the distance between the normal intersection of the target edge pixel point and a preset number of surrounding edge pixel points and the fitting circle region where the target edge pixel point is located; selecting a number of regional pixels inside and outside the fitting circle region on the normal corresponding to the target edge pixel point, respectively, and calculating the difference in surrounding grayscale values ​​corresponding to the target edge pixel point; confirming the area parameter corresponding to the target edge pixel point based on the long side and the short side corresponding to the fitting circle region where the target edge pixel point is located; performing multiplication calculation on the degree of fit of the fitting circle region where the target edge pixel point is located, the difference in surrounding grayscale values, and the area parameter, and confirming the possibility of a benign tumor edge corresponding to the target edge pixel point; The step of calculating the fitting degree of the fitting circle region where the target edge pixel point is located according to the distance between the normal intersection point of the target edge pixel point and a preset number of surrounding edge pixel points and the fitting circle region where the target edge pixel point is located specifically includes: in, The target edge pixel The degree of fitting of the fitting circle area For a constant The exponential function with base , The target edge pixel The pixel points around the edge intersection points, The target edge pixel The total number of edge pixels around the preset number; The step of selecting a number of pixel points in the inner and outer regions of the fitting circle on the normal line corresponding to the target edge pixel point and calculating the gray value difference of the surrounding regions corresponding to the target edge pixel point specifically includes: in, The target edge pixel The corresponding surrounding gray value difference, is the normal line corresponding to the target edge pixel point inside the fitting circle area. Area pixels, The normal corresponding to the target edge pixel is outside the fitting circle area. Area pixels, The total number of pixels in the area inside or outside the fitting circle area corresponding to the normal line of the target edge pixel; The method of confirming the area parameter corresponding to the target edge pixel point based on the long side and the short side corresponding to the fitting circle area where the target edge pixel point is located specifically includes: when the cluster type where the short side of the fitting circle area where the target edge pixel point is located is the first cluster type, the area parameter corresponding to the target edge pixel point is 0; when the cluster type where the short side of the fitting circle area where the target edge pixel point is located is the second cluster type, the long side and the short side corresponding to the fitting circle area where the target edge pixel point is located are input into the area parameter calculation formula to calculate the area parameter corresponding to the target edge pixel point; correspondingly, the area parameter calculation formula is specifically: in, The target edge pixel The corresponding area parameter, The target edge pixel The length of the short side of the fitted circle area, The target edge pixel The length of the long side of the fitted circle area, Pi for area calculation; The method of determining the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point based on the benign tumor edge possibility and grayscale value of a preset number of surrounding edge pixels corresponding to the target edge pixel point, wherein the surrounding edge pixel point refers to the edge pixel point located on one side of the target edge pixel point and in the same fitting circle area, specifically includes: calculating the mean of the surrounding possibility corresponding to the target edge pixel point according to the benign tumor edge possibility of a preset number of surrounding edge pixels corresponding to the target edge pixel point; calculating the average of the surrounding grayscale value difference corresponding to the target edge pixel point according to the grayscale value difference between the target edge pixel point and the preset number of surrounding edge pixels; and calculating the sum of the surrounding possibility mean corresponding to the target edge pixel point and the reciprocal of the average of the surrounding grayscale value difference, to determine the adjustment weight of the benign tumor edge possibility corresponding to the target edge pixel point; The benign tumor edge possibility corresponding to the target edge pixel point is multiplied by the adjustment weight to determine the final benign tumor edge possibility corresponding to the target edge pixel point, specifically including: in, The target edge pixel The corresponding final benign tumor margin probability, The target edge pixel The corresponding adjusted weights for the likelihood of a benign tumor margin, The target edge pixel the corresponding likelihood of benign tumor margins; The inputting the final benign tumor edge possibility into the calculation formula of the preset stretching coefficient to calculate the gray value stretching coefficient corresponding to the target edge pixel point specifically includes: in, The target edge pixel The corresponding gray value pull-up coefficient, is the normalized function expression of the maximum and minimum values ​​of the final benign tumor edge possibility, A functional architecture based on the tan function characteristics.

2. The method for optimizing imaging based on nuclear magnetic resonance according to claim 1, characterized in that: The step of performing circle fitting processing on edge pixels of the nuclear magnetic resonance image and determining a number of fitted circle regions specifically includes: Perform edge detection on the magnetic resonance image to obtain a number of edge pixel points; A number of fitting circle regions are determined by performing circle fitting processing on the number of edge pixel points, wherein the fitting circle regions include elliptical fitting circle regions and circular fitting circle regions.

3. The method for optimizing imaging based on nuclear magnetic resonance according to claim 1, characterized in that: The step of calculating the mean value of the surrounding possibilities corresponding to the target edge pixel point according to the benign tumor edge possibilities of a preset number of surrounding edge pixels corresponding to the target edge pixel point specifically includes: in, The target edge pixel The corresponding surrounding likelihood mean, is the total number of the preset number of surrounding edge pixels corresponding to the target edge pixel, The target edge pixel The corresponding The probability of a benign tumor edge of surrounding edge pixels is The method for obtaining is the same as the method for obtaining the possibility of the benign tumor edge corresponding to the target edge pixel point.

4. The method for optimizing imaging based on nuclear magnetic resonance according to claim 1, characterized in that: The step of calculating the average value of the grayscale value differences of the surrounding pixels corresponding to the target edge pixel point according to the grayscale value differences of the target edge pixel point and a preset number of surrounding pixels of the target edge pixel point specifically includes: in, The target edge pixel The corresponding average value of the surrounding gray value difference, The target edge pixel The total number of the corresponding preset number of surrounding edge pixels, The target edge pixel The corresponding gray value, The target edge pixel The corresponding The grayscale value of the surrounding edge pixels.

5. A method for optimizing imaging based on nuclear magnetic resonance according to any one of claims 1 to 4, characterized in that: The step of determining the grayscale value lifting coefficient of the target edge pixel point according to the benign tumor edge possibility and the adjustment weight corresponding to the target edge pixel point, so as to enhance the grayscale value of the nuclear magnetic resonance image, specifically includes: The benign tumor edge possibility corresponding to the target edge pixel point is calculated by multiplying the adjustment weight value to determine the final benign tumor edge possibility corresponding to the target edge pixel point; Inputting the final benign tumor edge possibility into a preset stretch coefficient calculation formula to calculate the gray value stretch coefficient corresponding to the target edge pixel point; The grayscale value of the target edge pixel point is enhanced by using the grayscale value lifting coefficient corresponding to the target edge pixel point, so as to achieve grayscale value enhancement of the nuclear magnetic resonance image.