A method, device, equipment and medium for detecting the boundary of an M-line
By acquiring the movement direction and distance of the trackball in real time, calculating the point set of the anatomical M-line, and determining the positional relationship between the points and the ultrasound image area, the adaptive problem of anatomical M-line boundary detection under changes in the ultrasound image area is solved, thereby improving user experience and development efficiency.
Patent Information
- Application Number
- CN202111407737.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2041-11-24
AI Technical Summary
Existing technologies cannot adaptively detect the boundaries of anatomical M-lines when the ultrasound image area changes, resulting in poor user experience and low development efficiency.
By acquiring the moving direction and distance of the trackball in real time, calculating the point set of the anatomical M-line, and determining the positional relationship between the point and the ultrasound image area, the intersection point of the anatomical M-line and the ultrasound image area is adaptively detected to achieve adaptive detection of boundary points.
When the ultrasound image area changes, it can adaptively detect the boundary points of the anatomical M-line, improving user experience and increasing development efficiency.
Smart Images

Figure CN116158777B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of ultrasonic imaging technology, and in particular to a method, device, equipment and medium for detecting the boundary of an anatomical M-line. Background Art
[0002] When operating the anatomical M-line under the linear anatomical M-mode function of the ultrasound device, it is necessary to ensure that the line moves within the ultrasound image area. If it moves outside the ultrasound image area, it is a functional abnormality, resulting in the linear anatomical M-mode function being unable to obtain image data in a timely manner, affecting user use.
[0003] Currently, through the ultrasound image area with a known scan shape in the ultrasound application system, the boundary between the anatomical M line and the ultrasound image area can be calculated based on a fixed shape area algorithm. When the anatomical M function moves within the ultrasound image area, the area boundary can be detected. The boundary restriction ensures that the anatomical M line does not move out of the image area, so that the image data within the ultrasound image area can be correctly obtained, ensuring that the user can use the linear anatomical M-type function normally. However, the existing technical solution can only detect the boundary of the anatomical M line in scenarios where the ultrasound image area is fixed. As the functions increase, the display range of the ultrasound image area changes in a diversified manner with different functions and scenarios. When encountering scenarios that exceed the original fixed ultrasound image area, the boundary of the anatomical M line cannot be correctly detected. Therefore, it is necessary to add and optimize the boundary detection algorithm of the anatomical M line for each newly added application scenario that causes changes in the ultrasound image area, and it is not adaptive, which leads to the constraints on the adaptability of the product function, and the low reusability and development efficiency of the product function. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a method, device, equipment and medium for detecting the boundary of the anatomical M line, which can adaptively detect the boundary points of the anatomical M line in the ultrasound image area when the ultrasound image area changes, thereby improving the user experience and being able to be reused to improve development efficiency. The specific solution is as follows:
[0005] In a first aspect, the present application discloses a method for detecting the boundary of an anatomical M-line, comprising:
[0006] During the movement of the trackball, the moving direction and moving distance of the trackball are acquired in real time;
[0007] Calculate a point set of an anatomical M line based on the movement direction and the movement distance;
[0008] Determining a positional relationship between each point in the point set and the ultrasound image area;
[0009] determine an intersection point of the anatomical M-line and the ultrasound image region based on the position relationship, and obtain a boundary point of the anatomical M-line in the ultrasound image region.
[0010] Optionally, the determining of the position relationship between each point in the point set and the ultrasound image region comprises:
[0011] dividing the point set into two point subsets in two directions with a center point of the anatomical M-line;
[0012] judging whether each point in each point subset is inside the ultrasound image region or not;
[0013] Correspondingly, the determining of the intersection point of the anatomical M-line and the ultrasound image region based on the position relationship, and the obtaining of the boundary point of the anatomical M-line in the ultrasound image region, comprise:
[0014] when there are points inside the ultrasound image region and points outside the ultrasound image region in a point subset, determining an intersection point of the corresponding point subset and the ultrasound image region based on the position relationship;
[0015] obtaining the boundary point of the anatomical M-line in the ultrasound image region based on the intersection point of each point subset and the ultrasound image region.
[0016] Optionally, after the determining of the intersection point of the anatomical M-line and the ultrasound image region based on the position relationship, and the obtaining of the boundary point of the anatomical M-line in the ultrasound image region, the method further comprises:
[0017] drawing the anatomical M-line based on the boundary point and points between the boundary points in the point set.
[0018] Optionally, before the drawing of the anatomical M-line based on the boundary point and points between the boundary points in the point set, the method further comprises:
[0019] determining a line segment length of a line segment between the boundary points;
[0020] judging whether the line segment length is less than a preset line segment length threshold value or not;
[0021] if the line segment length between the boundary points is less than the preset line segment length threshold value, prohibiting erasing the current anatomical M-line and prohibiting redrawing the anatomical M-line, otherwise, triggering the step of drawing the anatomical M-line based on the boundary point and points between the boundary points in the point set.
[0022] Optionally, after the drawing of the anatomical M-line based on the boundary point and points between the boundary points in the point set, the method further comprises:
[0023] determine physical coordinates of each point in the anatomical M-line in a physical coordinate system; wherein the physical coordinate system is a coordinate system established on a scan plane of the ultrasound probe;
[0024] obtain image data in the ultrasound image region based on the physical coordinates.
[0025] Optionally, before the determining the positional relationship between each point in the point set and the ultrasound image region, the method further comprises:
[0026] obtain current ultrasound probe type information and scan parameters of the ultrasound device;
[0027] determine a scan region of the ultrasound device based on the ultrasound probe type information and the scan parameters;
[0028] determine the ultrasound image region based on the scan region.
[0029] Optionally, the determining the intersection between the anatomical M-line and the ultrasound image region based on the positional relationship, and obtaining the boundary point of the anatomical M-line in the ultrasound image region, further comprises:
[0030] when a zoom processing request for the ultrasound image region is obtained, performing equal-scale zoom on the scan region of the ultrasound device based on the zoom processing request, and determining an updated ultrasound image region based on the zoomed scan region;
[0031] when a rotation processing request for the ultrasound image region is obtained, performing rotation on the scan region of the ultrasound device based on the rotation processing request, and determining an updated ultrasound image region based on the rotated scan region;
[0032] when a display mode switching request for the ultrasound image region is obtained, adjusting the scan region of the ultrasound device based on the display mode switching request to adapt to the switched display mode, and determining an updated ultrasound image region based on the adjusted scan region;
[0033] determining the intersection between the anatomical M-line and the updated ultrasound image region based on the positional relationship, and obtaining the boundary point of the anatomical M-line in the updated ultrasound image region.
[0034] In a second aspect, the present application discloses a boundary detection device of an anatomical M-line, comprising:
[0035] a direction and distance obtaining module, configured to obtain the moving direction and the moving distance of the trackball in real time during the movement of the trackball;
[0036] a point set calculating module, configured to calculate a point set of the anatomical M-line based on the moving direction and the moving distance.
[0037] a position relationship determining module, configured to determine a position relationship between each point in the point set and the ultrasound image region;
[0038] a boundary point determining module, configured to determine an intersection point of the anatomical M-line and the ultrasound image region based on the position relationship, to obtain a boundary point of the anatomical M-line in the ultrasound image region.
[0039] In a third aspect, the present application discloses an ultrasound device, comprising:
[0040] a memory, configured to save a computer program;
[0041] a processor, configured to execute the computer program to implement the boundary detection method of the anatomical M-line.
[0042] In a fourth aspect, the present application discloses a computer readable storage medium, configured to save a computer program, the computer program is executed by a processor to implement the boundary detection method of the anatomical M-line.
[0043] It can be seen that, in the moving process of the trackball, the moving direction and the moving distance of the trackball are acquired in real time, then the point set of the anatomical M-line is calculated based on the moving direction and the moving distance, then the position relationship between each point in the point set and the ultrasound image region is determined, finally the intersection point of the anatomical M-line and the ultrasound image region is determined based on the position relationship, to obtain the boundary point of the anatomical M-line in the ultrasound image region. That is, the point set of the anatomical M-line is calculated based on the moving direction and the moving distance of the trackball, the position relationship between each point in the point set and the ultrasound image region is determined under any ultrasound image region, the intersection point of the anatomical M-line and the ultrasound image region is determined according to the position relationship, to obtain the boundary point of the anatomical M-line in the ultrasound image region, which can adaptively detect the boundary point of the anatomical M-line in the ultrasound image region under the condition that the ultrasound image region changes, thereby improving the user experience, and can be reused, thereby improving the development efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor based on the provided drawings.
[0045] Figure 1 a boundary detection method of an anatomical M-line disclosed by the present application;
[0046] Figure 2 A specific boundary detection method flowchart of an anatomical M-line is disclosed in the present application;
[0047] Figure 3 A specific schematic diagram of an ultrasound image region and an anatomical M-line is provided in the present application;
[0048] Figure 4 A structural schematic diagram of a boundary detection device of an anatomical M-line is disclosed in the present application;
[0049] Figure 5 A structural diagram of an ultrasound device is disclosed in the present application. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0051] Referring to Figure 1 The embodiments of the present application disclose a boundary detection method of an anatomical M-line, which comprises:
[0052] Step S11: Real-time acquisition of a moving direction and a moving distance of a trackball during movement of the trackball.
[0053] It should be noted that there is a trackball hardware on an ultrasound device, which is similar to mouse operation. When the trackball is moved under the anatomical M function, the anatomical M-line will move along the moving direction of the trackball, and the position is refreshed synchronously. Therefore, the embodiments of the present application can real-time acquisition of the moving direction and the moving distance of the trackball during movement of the trackball. Specifically, the moving direction and the moving distance of the trackball can be continuously acquired in real time at a preset minimum step. The minimum step can be set according to an actual application scenario.
[0054] Step S12: Calculation of a point set of the anatomical M-line based on the moving direction and the moving distance.
[0055] Further, the embodiments of the present application can calculate a corresponding point set of the anatomical M-line based on the acquired moving direction and moving distance. That is, the coordinates of each point in the point set of the anatomical M-line are calculated.
[0056] Step S13: Determination of a positional relationship between each point in the point set and an ultrasound image region.
[0057] In specific embodiments, current ultrasound probe type information and scan parameters of an ultrasound device can be acquired; a scan area of the ultrasound device is determined based on the ultrasound probe type information and the scan parameters; and the ultrasound image area is determined based on the scan area.
[0058] The scan parameters are a series of adjustable parameters for imaging, including but not limited to scan mode, scan gain, scan depth, sound wave transmission power, focus position, and smoothing level, etc. The embodiments of the present application can determine the shape and size of the scan area based on the ultrasound probe type information and the scan parameters, and further determine the scan area of the ultrasound device.
[0059] Step S14: based on the position relationship, the intersection of the anatomical M-line and the ultrasound image area is determined, and the boundary point of the anatomical M-line in the ultrasound image area is obtained.
[0060] In specific embodiments, the point set is divided into two point sub-sets in two directions with the center point of the anatomical M-line; whether each point in each point sub-set is inside the ultrasound image area is judged one by one; when there are points inside and outside the ultrasound image area in a point sub-set, the intersection of the corresponding point sub-set and the ultrasound image area is determined based on the position relationship; and the boundary point of the anatomical M-line in the ultrasound image area is obtained based on the intersection of each point sub-set and the ultrasound image area. Further, the two divided point sub-sets can include the center point of the anatomical M-line in one point sub-set and not include the center point of the anatomical M-line in the other point sub-set. Starting from the point adjacent to the center point of the anatomical M-line or the center point of the anatomical M-line, whether each point in each point sub-set is inside the ultrasound image area is judged one by one along the corresponding direction, and when the first point outside the ultrasound image area is determined, the previous point of the point is determined as the intersection of the anatomical M-line and the ultrasound image area in the point sub-set.
[0061] Further, the embodiment of the present application, when the zoom processing request for the ultrasound image region is acquired, the scanning region of the ultrasound device is zoomed in proportion based on the zoom processing request, the updated ultrasound image region is determined based on the zoomed scanning region; when the rotation processing request for the ultrasound image region is acquired, the scanning region of the ultrasound device is rotated based on the rotation processing request, the updated ultrasound image region is determined based on the rotated scanning region; when the display mode switching request for the ultrasound image region is acquired, the scanning region of the ultrasound device is adjusted based on the display mode switching request to adapt to the switched display mode, and the updated ultrasound image region is determined based on the adjusted scanning region; the intersection of the anatomical M-line and the updated ultrasound image region is determined based on the position relationship, and the boundary point of the anatomical M-line in the updated ultrasound image region is obtained.
[0062] Further, the embodiment of the present application, when the zoom processing request for the ultrasound image region is acquired, the scanning region of the ultrasound device is zoomed in proportion based on the zoom processing request, the updated ultrasound image region is determined based on the zoomed scanning region; when the rotation processing request for the ultrasound image region is acquired, the scanning region of the ultrasound device is rotated based on the rotation processing request, the updated ultrasound image region is determined based on the rotated scanning region; when the display mode switching request for the ultrasound image region is acquired, the scanning region of the ultrasound device is adjusted based on the display mode switching request to adapt to the switched display mode, and the updated ultrasound image region is determined based on the adjusted scanning region; the intersection of the anatomical M-line and the updated ultrasound image region is determined based on the position relationship, and the boundary point of the anatomical M-line in the updated ultrasound image region is obtained.
[0063] It can be understood that, whether it is a change processing for the ultrasound image region or a change processing for the anatomical M line, the embodiments of the present application can determine the boundary points of the anatomical M line and the ultrasound image region. It should be pointed out that, straight line anatomical M function, also known as omnidirectional M-mode ultrasound, is a post-processing of digital two-dimensional image, which extracts the gray value of each intersection point of the sampling line and the sound velocity line, and displays the position change of each point on the sequence two-dimensional image, and displays the gray change of each point on the anatomical M sampling line with time. In ultrasonic two-dimensional imaging, the clinical routine examination positions of anatomical M are mainly three positions, so generally three anatomical M lines. When operating the anatomical M line, it is necessary to ensure that the movement of the line does not exceed the ultrasound image region, that is, the scanning region, and the ultrasound image region changes with the probe type and scanning mode. During the use of the function, the anatomical M sampling line needs to be moved in the image region to obtain the data of the intersection points. During the operation process, it is necessary to ensure that the movement of the anatomical M line does not exceed the ultrasound image region. If it is moved out of the ultrasound image region, it is abnormal, which causes the straight line anatomical M function to be unable to obtain image data in time, affecting the use of the user. However, the prior art scheme can only detect the boundary of the anatomical M line in the scene where the ultrasound image region is fixed. When the function is increased, the ultrasound image region changes with different functions and different scenes, and the display range presents diversified changes. When encountering a scene that exceeds the original fixed ultrasound image region, the boundary of the anatomical M line cannot be correctly detected. Therefore, each time the application scene that causes the change of the ultrasound image region is added, the boundary detection algorithm of the anatomical M line needs to be increased and optimized, which does not have adaptability, thereby causing the adaptability of the product function to be constrained, and the product function reuse and development efficiency to be low.
[0064] It can be understood that, in the movement process of the trackball, the embodiments of the present application acquire the moving direction and the moving distance of the trackball in real time, then calculate the point set of the anatomical M line based on the moving direction and the moving distance, determine the position relationship between each point in the point set and the ultrasound image region, and finally determine the intersection point of the anatomical M line and the ultrasound image region based on the position relationship, to obtain the boundary point of the anatomical M line in the ultrasound image region. That is, the present application calculates the point set of the anatomical M line based on the moving direction and the moving distance of the trackball, judges the position relationship between each point in the point set and the ultrasound image region in any ultrasound image region, determines the intersection point of the anatomical M line and the ultrasound image region according to the position relationship, and obtains the boundary point of the anatomical M line in the ultrasound image region. The present application can adaptively detect the boundary point of the anatomical M line in the ultrasound image region in the case of the change of the ultrasound image region, thereby improving the user experience, and can be reused, thereby improving the development efficiency.
[0065] Referring to Figure 2 The embodiments of the present application disclose a specific anatomical M line boundary detection method, which comprises:
[0066] Step S21: Real-time acquisition of the moving direction and moving distance of the trackball during the movement of the trackball.
[0067] Step S22: Calculation of the point set of the dissection M-line based on the moving direction and the moving distance.
[0068] Step S23: Determination of the positional relationship between each point in the point set and the ultrasound image region.
[0069] In a specific embodiment, the positional relationship between each point in the point set and the ultrasound image region can be determined by using the PNPoly algorithm, the area method, etc., wherein the PNPoly algorithm draws a ray with the corresponding point as the starting point, and judges whether the number of intersection points of the ray and the ultrasound image region is odd; if yes, it is determined that the point is inside the ultrasound image region. The principle on which the area method is based is that if the point is inside or on the polygon, then the sum of the areas of the triangles formed by the point and all the sides of the polygon is equal to the area of the polygon.
[0070] Step S24: Determination of the intersection point of the dissection M-line and the ultrasound image region based on the positional relationship, to obtain the boundary point of the dissection M-line in the ultrasound image region.
[0071] The specific implementation process of the above steps S21 to S24 can refer to the content disclosed in the foregoing embodiments, which will not be described here in detail.
[0072] Step S25: Drawing of the dissection M-line based on the boundary point and the points between the boundary points in the point set.
[0073] That is, the boundary point and the points inside the ultrasound image region are connected to draw the dissection M-line. The drawn dissection M-line can be displayed in the display screen displaying the ultrasound image, so that the dissection M-line in the display screen is located inside the ultrasound image region. When the shape, size, etc. of the ultrasound image region changes, the dissection M-line is redrawn and displayed, presenting the effect that the dissection M-line adaptively changes with the ultrasound image region.
[0074] Moreover, from the related content of the foregoing embodiments, it can be known that the present application can acquire the moving direction and moving distance of the trackball in real time with a preset minimum step, calculate the point set of the dissection M-line based on the moving direction and the moving distance, then judge whether each point in the point set is inside the ultrasound image region to obtain the corresponding positional relationship, determine the intersection point of the dissection M-line and the ultrasound image region based on the positional relationship, obtain the boundary point of the dissection M-line in the ultrasound image region, and draw the dissection M-line based on the boundary point and the points between the boundary points in the point set, that is, the dissection M-line in the embodiment of the present application is continuously drawn in real time with the minimum step during the movement of the trackball.
[0075] In a specific embodiment, the length of the line segment between the boundary points can be determined; it is determined whether the length of the line segment is less than a preset length threshold; if the length of the line segment between the boundary points is less than the preset length threshold, the current dissection M line is prohibited from being erased and the dissection M line is prohibited from being redrawn, otherwise, the step of drawing the dissection M line based on the boundary points and the points between the boundary points in the point set is triggered.
[0076] Further, the embodiment of the present application can determine the physical coordinates of each point in the dissection M line in a physical coordinate system; wherein the physical coordinate system is a coordinate system established on the scan plane of the ultrasound probe; the image data in the ultrasound image region is obtained based on the physical coordinates.
[0077] That is, the embodiment of the present application converts the display coordinates of each point in the dissection M line in the display interface into the physical coordinates in the physical coordinate system, and then obtains the image data in the ultrasound image region based on the physical coordinates. It should be noted that the physical coordinates of each point in the dissection M line and the image data in the ultrasound image region have a corresponding relationship, and through the physical coordinates of each point in the dissection M line, the image data corresponding to the physical coordinates of each point in the dissection M line in the ultrasound image region can be obtained.
[0078] It can be understood that when the dissection M line is too short, it will result in too little image data obtained from the ultrasound image region based on the dissection M line, which cannot meet the user experience, so the embodiment of the present application prohibits the current dissection M line from being erased and prohibits the dissection M line from being redrawn when the length of the line segment between the boundary points is less than the preset length threshold, so that the visual effect for the user is that the current dissection M line cannot be moved. The preset length threshold can be set according to the actual application scenario.
[0079] Next, the boundary detection scheme of the dissection M line provided by the present application will be described in detail in terms of the specific application scenario of the dissection M function. After the doctor selects the probe of the ultrasound device and configures the scan parameters, the ultrasound image region determination function in the ultrasound device software system determines the ultrasound image region based on the probe type information and the scan parameters configured by the doctor, when the doctor needs to start the dissection M function, the dissection M function can be called through the system menu or control button of the ultrasound device, the dissection M function displays the dissection M line at the preset starting position in the ultrasound image region, when the doctor moves the trackball, the dissection M function obtains the moving direction and distance of the trackball in real time, and calculates the point set of the dissection M line based on the moving direction and distance, determines the position relationship between each point in the point set and the ultrasound image region, and then determines the intersection point of the dissection M line and the ultrasound image region based on the position relationship to obtain the boundary point of the dissection M line in the ultrasound image region.
[0080] Take the fan-shaped ultrasound image region as an example, refer to Figure 3 as shown, Figure 3 A specific ultrasound image region and anatomic M-line diagram provided by the embodiment of the application. Figure 3 In the middle, the current anatomic M-line intersects with the M-line at a point, the M-line is Figure 3 In the middle, the dashed line is the center axis of the ultrasound image region, and it is not movable under the anatomic M function. The anatomic M function is mainly to move the anatomic M-line. The arrow is the tail end of the anatomic M-line, and the other end is the head end of the anatomic M-line. The starting position of the anatomic M-line is at the dashed line of the center axis. The anatomic M-line can be moved in any direction within the ultrasound image region by moving the trackball. The head end and the tail end of the anatomic M-line cannot move out of the ultrasound image region, including operations such as image zooming, anatomic M-line rotation, display mode switching, and the like. The key point of limiting the anatomic M-line from moving out of the ultrasound image region is to calculate the intersection point of the anatomic M-line and the boundary of the ultrasound image region, that is, the boundary point of the anatomic M-line in the ultrasound image region, and then limit the anatomic M-line within the ultrasound image region through the intersection point. The embodiment of the application continuously calculates the point set of the anatomic M-line during the user moving the trackball, that is, calculates all the points of the anatomic M-line to obtain the point set, and further calculates the intersection point of the point set and the ultrasound image region. This intersection point is the boundary point of the anatomic M-line in the ultrasound image region. Specifically, the point set of the anatomic M-line to be drawn is obtained. Since the anatomic M-line is started to be drawn at the center point, the point set is divided into two point sub-sets in two directions according to the center point of the anatomic M-line. It is judged which two points in the point sub-set are the intersection points with the ultrasound image region based on the PNPoly algorithm. After the intersection point coordinates are judged, the point set between the intersection points at the two ends of the anatomic M-line is the drawable anatomic M-line limited within the image region, and the anatomic M-line is drawn in the ultrasound image display interface using the corresponding graphic drawing logic. The point set within the region draws the anatomic M-line to achieve the purpose of limiting the anatomic M-line from moving out of the image region.
[0081] Furthermore, when the anatomic M-line is moved, after the intersection points of the anatomic M-line and the ultrasound image region are judged, if it is judged that the length of the line segment between the two intersection points is less than a preset line segment length threshold, the current anatomic M-line position is not changed in logic, that is, no erasing and redrawing is performed, and the functional effect is that the anatomic M-line cannot be moved.
[0082] It should be noted that the anatomical M line can be understood as a collection of a series of points, which are connected to form the anatomical M line. The points are divided into two parts from the midpoint position, which are the sub-point sets in two directions of the midpoint. In the moving process, the PNPoly algorithm is used to determine which points in the set are outside the ultrasound image area, which are intersection points and internal points, and then the intersection points and internal points are used to draw the anatomical M line. When the image area is flipped, rotated, enlarged, etc., the intersection point of the anatomical M line and the ultrasound image area can be accurately determined by the scheme provided in the embodiment of the present application, so that the anatomical M line that meets the user's scene can be correctly drawn, the anatomical M line is limited in the ultrasound image area, and the anatomical M function operation is responded in real time. It can be seen that the embodiment of the present application is not limited by the boundary transformation of the image area, can adapt to various image scenes, and can be an independent software algorithm calculation module, can adapt to different software platforms, is not limited by business and platform relevance, has portability and reusability. The boundary detection of the anatomical M line is limited by the software platform and the fixed image area, and cannot adapt to the arbitrary direction movement of the trackball. The calculation method is simple and efficient, can be cross-platform, and can well adapt to the complex and changeable application scene of the ultrasound image.
[0083] Referring to Figure 4 The embodiment of the present application discloses a boundary detection device of an anatomical M line, which comprises:
[0084] The direction distance acquisition module 11 is configured to acquire the moving direction and the moving distance of the trackball in real time during the movement of the trackball.
[0085] The point set calculation module 12 is configured to calculate the point set of the anatomical M line based on the moving direction and the moving distance.
[0086] The position relationship determination module 13 is configured to determine the position relationship between each point in the point set and the ultrasound image area.
[0087] The boundary point determination module 14 is configured to determine the intersection point of the anatomical M line and the ultrasound image area based on the position relationship, and obtain the boundary point of the anatomical M line in the ultrasound image area.
[0088] It can be seen that in the movement process of the trackball, the movement direction and the movement distance of the trackball are acquired in real time, then the point set of the anatomical M-line is calculated based on the movement direction and the movement distance, then the positional relationship between each point in the point set and the ultrasound image region is determined, and finally the intersection point of the anatomical M-line and the ultrasound image region is determined based on the positional relationship, so that the boundary point of the anatomical M-line in the ultrasound image region is obtained. That is, the point set of the anatomical M-line is calculated based on the movement direction and the movement distance of the trackball, the positional relationship between each point in the point set and the ultrasound image region is determined under any ultrasound image region, the intersection point of the anatomical M-line and the ultrasound image region is determined according to the positional relationship, the boundary point of the anatomical M-line in the ultrasound image region is obtained, the boundary point of the anatomical M-line in the ultrasound image region can be adaptively detected in the case of the change of the ultrasound image region, so that the user experience is improved, and the development efficiency is improved.
[0089] The positional relationship determining module specifically includes:
[0090] The point set dividing sub-module is configured to divide the point set into two point sub-sets in two directions with the center point of the anatomical M-line.
[0091] The positional relationship determining sub-module is configured to determine whether each point in each point sub-set is inside the ultrasound image region.
[0092] Correspondingly, the boundary point determining module is specifically configured to determine the intersection point of each point sub-set and the ultrasound image region based on the positional relationship when there are points inside the ultrasound image region and points outside the ultrasound image region in a point sub-set; and obtain the boundary point of the anatomical M-line in the ultrasound image region based on the intersection point of each point sub-set and the ultrasound image region.
[0093] Further, the device further includes an anatomical M-line drawing module configured to:
[0094] After the boundary point determining module 14 determines the intersection point of the anatomical M-line and the ultrasound image region based on the positional relationship, and obtains the boundary point of the anatomical M-line in the ultrasound image region, the anatomical M-line is drawn based on the boundary point and the points between the boundary points in the point set.
[0095] Further, the device further includes:
[0096] The line segment length determining module is configured to determine the line segment length of the line segment between the boundary points.
[0097] The line segment length determining module is configured to determine the line segment length of the line segment between the boundary points.
[0098] And, if the line segment length judging module determines that the line segment length between the boundary points is less than the preset line segment length threshold, the current dissection M-line is prohibited from being erased and the dissection M-line is prohibited from being redrawn, otherwise, the dissection M-line drawing module is started to draw the dissection M-line based on the boundary points and the points between the boundary points in the point set.
[0099] Further, the apparatus further comprises an image data acquisition module, specifically comprising:
[0100] a physical coordinate determining module, configured to determine physical coordinates of each point in the dissection M-line in a physical coordinate system; wherein the physical coordinate system is a coordinate system established on a scanning plane of an ultrasound probe;
[0101] an image data acquisition submodule, configured to acquire image data in the ultrasound image region based on the physical coordinates.
[0102] And, the apparatus further comprises an ultrasound image region determining module, specifically comprising:
[0103] an information acquisition submodule, configured to acquire current ultrasound probe type information and scanning parameters of an ultrasound device;
[0104] a scanning region determining submodule, configured to determine a scanning region of the ultrasound device based on the ultrasound probe type information and the scanning parameters;
[0105] an image region determining submodule, configured to determine the ultrasound image region based on the scanning region.
[0106] In addition, the ultrasound image region determining module is further configured to:
[0107] when a zooming processing request for the ultrasound image region is acquired, performing equal proportion zooming on the scanning region of the ultrasound device based on the zooming processing request, and determining an updated ultrasound image region based on the zoomed scanning region;
[0108] when a rotation processing request for the ultrasound image region is acquired, performing rotation on the scanning region of the ultrasound device based on the rotation processing request, and determining an updated ultrasound image region based on the rotated scanning region;
[0109] when a display mode switching request for the ultrasound image region is acquired, adjusting the scanning region of the ultrasound device based on the display mode switching request to adapt to the switched display mode, and determining an updated ultrasound image region based on the adjusted scanning region;
[0110] Correspondingly, the boundary point determination module is specifically configured to determine the intersection point of the anatomical M-line and the updated ultrasound image region based on the position relationship, to obtain the boundary point of the anatomical M-line in the updated ultrasound image region.
[0111] Referring to Figure 5 As shown in the drawings, the embodiment of the present application discloses an ultrasound device 20, comprising a processor 21 and a memory 22; wherein the memory 22 is configured to save a computer program; the processor 21 is configured to execute the computer program, and the boundary detection method of the anatomical M-line disclosed in the foregoing embodiment.
[0112] For the specific process of the boundary detection method of the anatomical M-line, refer to the corresponding content disclosed in the foregoing embodiment, which will not be repeated here.
[0113] In addition, the memory 22 as a resource storage carrier can be a read-only memory, a random access memory, a magnetic disk or an optical disk, and the storage mode can be temporary storage or permanent storage.
[0114] In addition, the ultrasound device 20 further comprises a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26; wherein the power supply 23 is configured to provide working voltage for each hardware device on the ultrasound device 20; the communication interface 24 can create a data transmission channel between the ultrasound device 20 and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the present application, which will not be limited here; the input / output interface 25 is configured to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which will not be limited here.
[0115] Further, the embodiment of the present application further discloses a computer readable storage medium for saving a computer program, wherein the computer program is executed by a processor to realize the boundary detection method of the anatomical M-line disclosed in the foregoing embodiment.
[0116] For the specific process of the boundary detection method of the anatomical M-line, refer to the corresponding content disclosed in the foregoing embodiment, which will not be repeated here.
[0117] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the related parts can be referred to the method part.
[0118] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, hard disk can be used for tangibly embodying the software module.
[0119] The above describes in detail the anatomical M-line boundary detection method, device, equipment and medium provided by the present application. The principles and implementation manners of the present application are described by applying specific examples. The above example is only used to help understand the method and core idea of the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed. In summary, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A method of detecting a boundary of an anatomical M-line, characterized by, The method comprises the following steps: acquiring the moving direction and the moving distance of the trackball in real time during the moving of the trackball; calculating a point set of an anatomical M-line based on the moving direction and the moving distance; determining the positional relationship between each point in the point set and an ultrasound image region; the ultrasound image region is determined based on probe type information and scanning parameters; determining the intersection between the anatomical M-line and the ultrasound image region based on the positional relationship, and obtaining the boundary point of the anatomical M-line in the ultrasound image region.
2. The method of detecting boundaries of anatomical M-lines according to claim 1, wherein, The method of determining the positional relationship between each point in the point set and the ultrasound image region comprises the following steps: dividing the point set into two point subsets in two directions with the center point of the anatomical M-line; judging whether each point in each point subset is inside the ultrasound image region; correspondingly, the method of determining the intersection between the anatomical M-line and the ultrasound image region based on the positional relationship, and obtaining the boundary point of the anatomical M-line in the ultrasound image region comprises the following steps: when there are points inside the ultrasound image region and points outside the ultrasound image region in a certain point subset, determining the intersection between the corresponding point subset and the ultrasound image region based on the positional relationship; obtaining the boundary point of the anatomical M-line in the ultrasound image region based on the intersection between each point subset and the ultrasound image region.
3. The method of detecting boundaries of anatomical M-lines according to claim 1, wherein, After the method of determining the intersection between the anatomical M-line and the ultrasound image region based on the positional relationship, and obtaining the boundary point of the anatomical M-line in the ultrasound image region, the method further comprises the following steps: drawing the anatomical M-line based on the boundary point and the points between the boundary points in the point set.
4. The method of detecting boundaries of anatomical M-lines according to claim 3, wherein, Before the method of drawing the anatomical M-line based on the boundary point and the points between the boundary points in the point set, the method further comprises the following steps: determining the length of the line segment between the boundary points; judging whether the length of the line segment is less than a preset line segment length threshold; if the length of the line segment between the boundary points is less than the preset line segment length threshold, prohibiting erasing the current anatomical M-line and prohibiting redrawing the anatomical M-line, otherwise, triggering the step of drawing the anatomical M-line based on the boundary point and the points between the boundary points in the point set.
5. The method of detecting boundaries of anatomical M-lines according to claim 3, wherein, After the method of drawing the anatomical M-line based on the boundary point and the points between the boundary points in the point set, the method further comprises the following steps: determining the physical coordinates of each point in the anatomical M-line in a physical coordinate system; wherein the physical coordinate system is a coordinate system established on the scanning plane of the ultrasound probe; obtaining image data in the ultrasound image region based on the physical coordinates.
6. The method of detecting boundaries of anatomical M-lines according to claim 1, wherein, Before the method of determining the positional relationship between each point in the point set and the ultrasound image region, the method further comprises the following steps: obtaining the current ultrasound probe type information and the scanning parameters of the ultrasound device; determining the scanning region of the ultrasound device based on the ultrasound probe type information and the scanning parameters; determining the ultrasound image region based on the scanning region.
7. The method of detecting boundaries of anatomical M-lines according to claim 1, wherein, The method of determining the intersection between the anatomical M-line and the ultrasound image region based on the positional relationship, and obtaining the boundary point of the anatomical M-line in the ultrasound image region comprises the following steps: When a zoom processing request for the ultrasound image region is acquired, the scan region of the ultrasound device is zoomed in proportionally based on the zoom processing request, the updated ultrasound image region is determined based on the zoomed scan region; When a rotation processing request for the ultrasound image region is acquired, the scan region of the ultrasound device is rotated based on the rotation processing request, the updated ultrasound image region is determined based on the rotated scan region; When a display mode switching request for the ultrasound image region is acquired, the scan region of the ultrasound device is adjusted based on the display mode switching request to adapt to the switched display mode, the updated ultrasound image region is determined based on the adjusted scan region; The intersection of the anatomical M-line and the updated ultrasound image region is determined based on the position relationship, and a boundary point of the anatomical M-line in the updated ultrasound image region is obtained.
8. An apparatus for detecting a boundary of an anatomical M-line, characterized by Comprising: A direction distance acquisition module, configured to acquire the moving direction and the moving distance of the trackball in real time during the movement of the trackball; A point set calculation module, configured to calculate a point set of the anatomical M-line based on the moving direction and the moving distance; A position relationship determination module, configured to determine the position relationship between each point in the point set and an ultrasound image region; the ultrasound image region is determined based on probe type information and scan parameters; A boundary point determination module, configured to determine the intersection of the anatomical M-line and the ultrasound image region based on the position relationship, and obtain the boundary point of the anatomical M-line in the ultrasound image region.
9. An ultrasound apparatus, characterized by Comprising: A memory, configured to save a computer program; A processor, configured to execute the computer program to implement the boundary detection method of the anatomical M-line according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is saved, and the computer program is executed by a processor to implement the boundary detection method of the anatomical M-line according to any one of claims 1 to 7.
Citation Information
Patent Citations
Edge detection in ultrasound images
CN101357067A
Method, device and ultrasonic device for imaging of anatomic M-mode at low frequency
CN102846340A
Coordinate conversion method, device and related equipment for scanning data of ultrasonic equipment
CN109461193A
Method and system for assisted ultrasound scan plane identification based on m-mode analysis
US20210204908A1