Two-dimensional ultrasonic image conversion method and device, equipment and storage medium

By performing coordinate transformation between scanning, physical and display coordinate systems of ultrasonic images, the complex problem of ultrasonic image transformation calculation in the prior art is solved, and image quality and measurement accuracy are improved.

CN119887499APending Publication Date: 2025-04-25QINGDAO HISENSE MEDICAL EQUIP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311371337.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-23
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The existing ultrasonic coordinate transformation methods are complex in the calculation of wide-angle imaging of convex arrays and extended imaging of convex arrays, and are prone to errors, resulting in image deformation and transient problems, reducing image quality and measurement accuracy.

Method used

Provide a two-dimensional ultrasonic image conversion method, which optimizes the coordinate transformation process and improves accuracy and efficiency by performing coordinate transformation between the scanning coordinate system, the physical coordinate system and the display coordinate system. The specific method includes using a first conversion relationship to convert the initial coordinates into physical coordinates, and using a second conversion relationship to convert the physical coordinates into target coordinates.

Benefits of technology

It effectively solves the problems of image deformation and transients, improves image quality and measurement accuracy, simplifies the coordinate transformation process, and improves the transformation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119887499A_ABST
    Figure CN119887499A_ABST
Patent Text Reader

Abstract

The invention provides a two-dimensional ultrasonic image conversion method and device, equipment and a storage medium, and the method comprises the steps: determining to employ a first conversion relation for any target point of a two-dimensional ultrasonic image, converting the initial coordinate of the target point in an initial coordinate system into the physical coordinate in a physical coordinate system, and determining to employ a second conversion relation, converting the physical coordinate of the target point in the physical coordinate system into a target coordinate in a target coordinate system; the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image; according to each target coordinate, determining a target image obtained by performing coordinate conversion on the two-dimensional ultrasonic image; wherein when the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system; when the initial coordinate system is a display coordinate system, the target coordinate system is a scanning coordinate system; the coordinate transformation process is optimized, the coordinate transformation efficiency is improved, the problems of image deformation, image transient state and the like are effectively solved, and the measurement precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of ultrasonic image processing, and in particular to a method, device, equipment and storage medium for converting two-dimensional ultrasonic images. Background Art

[0002] In ultrasound systems, the definition of coordinate systems and the method of coordinate transformation are one of the core elements of ultrasound imaging. In the process of ultrasound imaging, convex array wide-angle imaging and convex array extended imaging are further extensions of basic imaging. The existing ultrasound coordinate transformation methods are redundant and complex in image transformation calculation for convex array wide-angle imaging and convex array extended imaging, which makes it easy to make mistakes during image transformation, easily cause image transient problems, and cause image artifacts, noise and flickering, and easily cause image deformation and offset, thereby reducing image quality and affecting measurement accuracy. Summary of the invention

[0003] The present application provides a two-dimensional ultrasound image conversion method, device, equipment and storage medium, which can perform coordinate transformation between a scanning coordinate system, a physical coordinate system and a display coordinate system, optimize the transformation process of the coordinates of a two-dimensional ultrasound image, improve the accuracy and efficiency of the coordinate transformation, effectively solve problems such as image deformation and image transients, and improve measurement accuracy.

[0004] In a first aspect, the present application provides a method for converting a two-dimensional ultrasound image, comprising:

[0005] For any target point of the two-dimensional ultrasonic image, confirming to adopt a first transformation relationship to transform the initial coordinates of the target point in the initial coordinate system into physical coordinates in the physical coordinate system, and confirming to adopt a second transformation relationship to transform the physical coordinates of the target point in the physical coordinate system into target coordinates in the target coordinate system; the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image;

[0006] According to each of the target coordinates, a target image obtained by coordinate transformation of the two-dimensional ultrasound image is determined; wherein, when the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system; when the initial coordinate system is a display coordinate system, the target coordinate system is a scanning coordinate system.

[0007] In one or more possible embodiments,

[0008] When it is determined that the initial coordinate is a scanning coordinate, the target coordinate is a display coordinate, and the two-dimensional ultrasonic image is a convex array wide-angle image, the first conversion relationship is: conversion is performed according to the scanning depth and the probe radius, and the second conversion relationship is: conversion is performed according to the display point spacing and the physical coordinates of the pixel zero point;

[0009] When it is determined that the initial coordinate is a scanning coordinate, the target coordinate is a display coordinate, and the two-dimensional ultrasonic image is a convex array extended imaging, the first conversion relationship is: conversion is performed according to a transverse scanning position, a probe radius, a convex array extended imaging probe radius, and a scanning depth, and the second conversion relationship is: conversion is performed according to a display point spacing and a physical coordinate of a pixel zero point;

[0010] When it is determined that the initial coordinate is the display coordinate, the target coordinate is the scanning coordinate, and the two-dimensional ultrasonic image is a convex array wide-angle image, the first conversion relationship is: conversion is performed according to the display point spacing and the physical coordinates of the pixel zero point, and the second conversion relationship is: conversion is performed according to the probe radius;

[0011] When it is determined that the initial coordinate is the display coordinate, the target coordinate is the scanning coordinate, and the two-dimensional ultrasonic image is a convex array extended imaging, the first conversion relationship is: conversion is performed according to the display point spacing and the physical coordinate of the pixel zero point, and the second conversion relationship is: conversion is performed according to the probe radius and the convex array extended imaging probe radius;

[0012] Among them, the two-dimensional ultrasound image is an image obtained by scanning the probe, the display point spacing is the physical distance represented by adjacent display pixel points on the display image; the pixel zero point is a preset position on the display image, the scanning depth represents the distance between the arbitrary target point and the probe surface, the probe radius is a fixed parameter, and the convex array extended imaging probe radius is a virtual radius, which is determined based on the scanned image.

[0013] In one or more possible embodiments, the physical coordinates of the pixel zero point are determined in the following manner:

[0014] The display point spacing of the two-dimensional ultrasound image is acquired, and the physical coordinates of the pixel zero point in the physical coordinate system are determined according to the display point spacing.

[0015] In one or more possible embodiments, acquiring the display point spacing of the two-dimensional ultrasound image includes:

[0016] The two-dimensional ultrasonic image is in a non-magnified longitudinal priority display mode, determining the display point spacing of the two-dimensional ultrasonic image according to the total scanning depth, the probe radius and the drawing height of the two-dimensional ultrasonic image;

[0017] The two-dimensional ultrasonic image is in a non-magnified full display mode, determining a display point spacing of the two-dimensional ultrasonic image according to a total scanning depth, a probe radius, and a drawing width of the two-dimensional ultrasonic image;

[0018] The two-dimensional ultrasonic image is displayed in a front-end magnification longitudinal priority display mode, and the display point spacing of the two-dimensional ultrasonic image is determined according to the starting scanning depth of the front-end magnification, the ending scanning depth of the front-end magnification, the probe radius and the drawing height of the two-dimensional ultrasonic image;

[0019] The two-dimensional ultrasonic image is in a front-end magnified full display mode, determining the display point spacing of the two-dimensional ultrasonic image according to the end scanning depth of the front-end magnification, the probe radius and the drawing width of the two-dimensional ultrasonic image;

[0020] In the rear-end magnification longitudinal priority display mode, the display dot pitch of the two-dimensional ultrasound image is determined according to the display dot pitch of the non-magnification longitudinal priority display mode and the rear-end magnification factor;

[0021] In the rear-end magnified full display mode, the display dot pitch of the two-dimensional ultrasound image is determined according to the display dot pitch of the non-magnified full display mode and the rear-end magnification factor;

[0022] The total scanning depth represents the maximum scanning depth of the probe and is a front-end parameter.

[0023] In one or more possible embodiments, determining the physical coordinates of the pixel zero point in the physical coordinate system according to the display point spacing includes:

[0024] The physical coordinates of the pixel zero point are determined according to the display point spacing, the drawing width of the two-dimensional ultrasound image, the probe radius and the physical zero point position of the physical coordinate system; wherein the physical zero point position is the center position of the probe surface.

[0025] In one or more possible embodiments, when the initial coordinates are scanning coordinates and the target coordinates are display coordinates:

[0026] When it is determined that the two-dimensional ultrasonic image is a convex array wide-angle image, the first conversion relationship is the following first calculation formula:

[0027] Px=(DepthPos+ProbeRadius)*a1

[0028] Py=(DepthPos+ProbeRadius)*b1*ProbeRadius

[0029] When it is determined that the two-dimensional ultrasonic image is a convex array extended image, the first conversion relationship is the following second calculation formula:

[0030] radius=f(ScanPos,ProbeRadius,TRadius)

[0031] Px=(DepthPos+radius)*a2

[0032] Py=(DepthPos+radius)*b2-TRadius

[0033] When it is determined that the two-dimensional ultrasonic image is not flipped, the second conversion relationship is the following third calculation formula:

[0034]

[0035]

[0036] When determining that the two-dimensional ultrasonic image is flipped left and right, the second conversion relationship is the following fourth calculation formula:

[0037]

[0038]

[0039] When determining that the two-dimensional ultrasonic image is flipped upside down, the second conversion relationship is the following fifth calculation formula:

[0040]

[0041]

[0042] Among them, Px represents the abscissa of the physical coordinate, Py represents the ordinate of the physical coordinate, Px0 represents the abscissa of the physical coordinate of the pixel zero point, Py0 represents the ordinate of the physical coordinate of the pixel zero point, x represents the abscissa of the display coordinate, y represents the ordinate of the display coordinate, radius is the intermediate value, DepthPos represents the scanning depth, ScanPos represents the lateral scanning position, ProbeRadius represents the probe radius, TRadius represents the convex array extended imaging probe radius, PixelGap represents the display point spacing, and a1, a2, a3, b1, b2 and b3 are all constants.

[0043] In one or more possible embodiments, when it is determined that the initial coordinates are display coordinates and the target coordinates are scanning coordinates:

[0044] When it is determined that the two-dimensional ultrasonic image is not flipped, the first conversion relationship is the following sixth calculation formula:

[0045] Px=x*PixelGap+Px0

[0046] Py=y*PixelGap+Py0

[0047] When determining that the two-dimensional ultrasonic image is flipped left and right, the first conversion relationship is the following seventh calculation formula:

[0048] Px=-x*PixelGap-Px0

[0049] Py=y*PixelGap+Py0

[0050] When determining that the two-dimensional ultrasound image is flipped upside down, the first conversion relationship is the following eighth calculation formula:

[0051] Px=x*PixelGap+Px0

[0052] Py=-y*PixelGap-Py0

[0053] When it is determined that the two-dimensional ultrasonic image is a convex array wide-angle image, the second conversion relationship is the following ninth calculation formula:

[0054] radius = f(Px,Py,ProbeRadius)

[0055] ScanPos=atan(f(Px,ProbeRadius,Py))

[0056] If Py+ProbeRadius<0,

[0057] Then determine DepthPos = -radius - ProbeRadius;

[0058] Otherwise, DepthPos = radius - ProbeRadius;

[0059] When it is determined that the two-dimensional ultrasonic image is convex array expansion imaging, the second conversion relationship is the following tenth calculation formula:

[0060] ScanPos=atan(f(Px,TRAdius,Py))

[0061] radius=f(ScanPos,ProbeRadius,TRadius)

[0062] DepthPos=(Py+TRadius)*a4-radius

[0063] Among them, Px represents the horizontal coordinate of the physical coordinate, Py represents the vertical coordinate of the physical coordinate, Px0 represents the horizontal coordinate of the physical coordinate of the pixel zero point, Py0 represents the vertical coordinate of the physical coordinate of the pixel zero point, x represents the horizontal coordinate of the display coordinate, y represents the vertical coordinate of the display coordinate, radius is the middle value, DepthPos represents the scanning depth, ScanPos represents the lateral scanning position, ProbeRadius represents the probe radius, TRadius represents the convex array extended imaging probe radius, PixelGap represents the display point spacing, and a4 is a constant.

[0064] In a second aspect, the present application provides a two-dimensional ultrasound image conversion device, the device comprising:

[0065] a coordinate conversion module, for any target point of the two-dimensional ultrasonic image, confirming the use of a first conversion relationship to convert the initial coordinates of the target point in the initial coordinate system into physical coordinates in the physical coordinate system, and confirming the use of a second conversion relationship to convert the physical coordinates of the target point in the physical coordinate system into target coordinates in the target coordinate system; the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image;

[0066] The target image acquisition module is used to determine the target image obtained by coordinate transformation of the two-dimensional ultrasound image according to each of the target coordinates; wherein, when the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system; when the initial coordinate system is a display coordinate system, the target coordinate system is a scanning coordinate system.

[0067] In a third aspect, the present application provides a two-dimensional ultrasound image conversion device, the device comprising:

[0068] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method as described in any one of the first aspects.

[0069] In a fourth aspect, the present application further provides a storage medium storing a computer program for causing a computer to execute a method as described in any one of the first aspects.

[0070] According to a two-dimensional ultrasonic image conversion method, device, equipment and storage medium provided in the present application, coordinate transformation can be performed between the scanning coordinate system, the physical coordinate system and the display coordinate system, the transformation process of the coordinates of the two-dimensional ultrasonic image can be optimized, the coordinate transformation accuracy and coordinate transformation efficiency can be improved, the problems of image deformation and image transient can be effectively solved, and the measurement accuracy can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0072] Figure 1 A flowchart of a two-dimensional ultrasound image conversion method provided according to an embodiment;

[0073] Figure 2 A coordinate conversion process is provided according to an embodiment;

[0074] Figure 3 A coordinate conversion process is provided according to an embodiment;

[0075] Figure 4 A schematic diagram of converting scanning coordinates of a convex array wide-angle image into physical coordinates according to an embodiment;

[0076] Figure 5 A schematic diagram of converting scanning coordinates of a convex array extended image into physical coordinates according to an embodiment;

[0077] Figure 6 A schematic diagram of converting physical coordinates into display coordinates when a two-dimensional ultrasound image is not flipped according to an embodiment;

[0078] Figure 7 A schematic diagram of converting display coordinates into physical coordinates when a two-dimensional ultrasound image is not flipped according to an embodiment;

[0079] Figure 8 A schematic diagram of converting the physical coordinates of a convex array wide-angle image into scanning coordinates according to an embodiment;

[0080] Fig. 9 A schematic diagram of converting the physical coordinates of a convex array extended image into scanning coordinates according to an embodiment;

[0081] Fig.10 A schematic diagram of a display dot spacing of a sector-shaped image provided according to an embodiment;

[0082] Fig.11 A schematic diagram of a display dot spacing of a fan-shaped extended image provided according to an embodiment;

[0083] Fig.12 is a schematic diagram of a physical coordinate system provided according to an embodiment;

[0084] Fig.13 A schematic diagram of the physical coordinates of a pixel zero point provided according to an embodiment;

[0085] Fig.14 A schematic diagram of a two-dimensional ultrasonic image conversion device provided according to an embodiment;

[0086] Fig.15 A schematic diagram of a two-dimensional ultrasound image conversion device provided according to an embodiment;

[0087] Fig.16 A schematic diagram of a storage medium provided according to an embodiment. DETAILED DESCRIPTION

[0088] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0089] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0090] The definition of the coordinate system in the ultrasound system and the ultrasound coordinate transformation method are one of the core of ultrasound imaging. During the ultrasound imaging process, front-end scanning, image drawing, ROI (region of interest), sampling line, ruler, measurement, etc. all require coordinate transformation; in the existing related content, the scanning range of convex array wide-angle imaging is greater than 180°. When the convex array wide-angle image is transformed, there is an independent coordinate transformation calculation method, which is relatively complicated; one scanning method of convex array extended imaging is equidistant scanning, and the scanning line divides the upper boundary equally, and the number of equal divisions is the maximum scanning range degree. Under this scanning method, the extension lines of the scanning lines do not intersect, and there are multiple virtual foci. The coordinate transformation method of convex array non-extended imaging cannot be reused when using equidistant scanning for coordinate transformation. The calculation is complex, the probability of error increases, and it is easy to cause image deformation and offset, reduce image quality, and affect measurement accuracy. In convex array extended imaging, except for the central scanning line, other scanning lines are no longer perpendicular to the probe surface, and the depth of each scanning line is consistent. Since the curvature of the probe surface remains unchanged, the convex array extended image is not a concentric circle sector, and even the outer side is not even a standard arc except for the inner side. Therefore, it is necessary to calculate the depth and angle of each line to make the outer side a standard arc. The design is complex and the probability of error is very high.

[0091] In the process of ultrasonic imaging, convex array wide-angle imaging and convex array extended imaging are further extensions of basic imaging. The existing ultrasonic coordinate transformation method is redundant and complex in the image transformation calculation method for convex array wide-angle imaging and convex array extended imaging, which makes it easy to make errors during image transformation and easily cause image transient problems, resulting in image artifacts, noise and flicker, and easily causing image deformation and offset, reducing image quality and affecting measurement accuracy.

[0092] The following is an introduction to the professional terms involved in this application:

[0093] Height: The number of pixels of the image height in the image display area, indicating the drawing height of the two-dimensional ultrasound image, in pixels.

[0094] Width: The image width in pixels of the image display area, indicating the drawing width of the two-dimensional ultrasound image, in pixels.

[0095] Depth: total scanning depth, indicating the maximum scanning depth of the probe, is a front-end parameter and is obtained from the probe table.

[0096] DepthStart: The starting scanning depth for front-end magnification.

[0097] DepthEnd: The end scanning depth of the front-end magnification.

[0098] PixelGap: Displays the dot spacing, the physical distance between two adjacent pixels.

[0099] ScanPos: lateral scanning position, distributed left and right with respect to the center of the probe surface, with negative numbers on the left and positive numbers on the right. In convex array scanning, ScanPos is expressed in angles.

[0100] DepthPos: Scanning depth, the scanning depth of a certain position, that is, the distance from a certain position to the probe surface.

[0101] ProbeRadius: Probe radius.

[0102] TRadius: The radius of the convex array extended imaging probe.

[0103] Scale: Backend magnification.

[0104] The following is an introduction to the two-dimensional ultrasound image conversion method provided by the present application in conjunction with an embodiment.

[0105] Example 1

[0106] The present application provides a method for converting a two-dimensional ultrasound image. Figure 1 As shown, including:

[0107] Step 101, for any target point of a two-dimensional ultrasonic image, confirming the use of a first transformation relationship to transform the initial coordinates of the target point in an initial coordinate system into physical coordinates in a physical coordinate system, and confirming the use of a second transformation relationship to transform the physical coordinates of the target point in the physical coordinate system into target coordinates in a target coordinate system; the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image;

[0108] Step 102, determining a target image obtained by coordinate transformation of the two-dimensional ultrasound image according to each of the target coordinates; wherein, when the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system; when the initial coordinate system is a display coordinate system, the target coordinate system is a scanning coordinate system.

[0109] In one or more possible embodiments, when it is confirmed that the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system, such as Figure 2As shown, the specific process is that, for any target point of the two-dimensional ultrasound image, that is, the scanned image, confirming the use of the first conversion relationship, converting the scanning coordinates of the target point in the scanning coordinate system into the physical coordinates in the physical coordinate system, and confirming the use of the second conversion relationship, converting the physical coordinates of the target point in the physical coordinate system into the display coordinates in the display coordinate system, and obtaining the final display image according to the display coordinates; when confirming that the initial coordinate system is the display coordinate system, the target coordinate system is the scanning coordinate system, such as Figure 3 As shown, the specific process is to confirm the use of a first conversion relationship for any target point of a two-dimensional ultrasound image, convert the display coordinates of the target point in the display coordinate system into physical coordinates in the physical coordinate system, and confirm the use of a second conversion relationship, convert the physical coordinates of the target point in the physical coordinate system into scanning coordinates in the scanning coordinate system, and obtain a scanned image according to each of the scanning coordinates; for example, image drawing, ROI (region of interest), sampling line, ruler, measurement, etc. all require that the display coordinates of the image be converted into scanning coordinates for application.

[0110] In one or more possible embodiments, the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image, and the first conversion relationship is related to the image type; when the initial coordinate is determined to be a scanning coordinate, the target coordinate is a display coordinate, and the two-dimensional ultrasonic image is a convex array wide-angle image, each scanning coordinate (DepthPos, ScanPos) can be calculated into a physical coordinate (Px, Py) according to the first conversion relationship, that is, according to the scanning depth and the probe radius, such as Figure 4 As shown, it is a schematic diagram of converting the scanning coordinates (DepthPos, ScanPos) of the convex array wide-angle image into the physical coordinates (Px, Py), and the first conversion relationship is the following first calculation formula:

[0111] Px=(DepthPos+ProbeRadius)*a1

[0112] Py=(DepthPos+ProbeRadius)*b1*ProbeRadius

[0113] When the initial coordinate is determined to be a scanning coordinate, the target coordinate is a display coordinate, and the two-dimensional ultrasonic image is a convex array extended imaging, the first conversion relationship is: conversion is performed according to the transverse scanning position, the probe radius, the convex array extended imaging probe radius and the scanning depth, such as Figure 5 As shown, it is a schematic diagram of converting the scanning coordinates (DepthPos, ScanPos) of the convex array extended image into the physical coordinates (Px, Py), and the first conversion relationship is the following second calculation formula:

[0114] radius=f(ScanPos,ProbeRadius,TRadius)

[0115] Px=(DepthPos+radius)*a2

[0116] Py=(DepthPos+radius)*b2-TRadius

[0117] Determine that the initial coordinate is the scanning coordinate, and the target coordinate is the display coordinate. The second conversion relationship has nothing to do with the image type but is related to whether the two-dimensional ultrasound image is flipped. Each physical coordinate (Px, Py) can be calculated into a display coordinate (x, y) according to the second conversion relationship, that is, according to the display point spacing and the physical coordinate of the pixel zero point; Figure 6 As shown, it is a schematic diagram of converting the physical coordinates (Px, Py) to the display coordinates (x, y) when the two-dimensional ultrasonic image is not flipped. When it is determined that the two-dimensional ultrasonic image is not flipped, the second conversion relationship is the following third calculation formula:

[0118]

[0119]

[0120] When determining that the two-dimensional ultrasonic image is flipped left and right, the second conversion relationship is the following fourth calculation formula:

[0121]

[0122]

[0123] When determining that the two-dimensional ultrasonic image is flipped upside down, the second conversion relationship is the following fifth calculation formula:

[0124]

[0125]

[0126] In one or more possible embodiments, when the initial coordinate is determined to be the display coordinate and the target coordinate is the scanning coordinate, the first conversion relationship is independent of the image type but is related to whether the image is flipped. Each display coordinate (x, y) can be calculated into a physical coordinate (Px, Py) according to the first conversion relationship, that is, according to the display point spacing and the physical coordinate of the pixel zero point, such as Figure 7 As shown, it is a schematic diagram of converting the display coordinates (x, y) into physical coordinates (Px, Py) when the two-dimensional ultrasonic image is not flipped. When it is determined that the two-dimensional ultrasonic image is not flipped, the first conversion relationship is the following sixth calculation formula:

[0127] Px=x*PixelGap+Px0

[0128] Py=y*PixelGap+Py0

[0129] When determining that the two-dimensional ultrasonic image is flipped left and right, the first conversion relationship is the following seventh calculation formula:

[0130] Px=-x*PixelGap-Px0

[0131] Py=y*PixelGap+Py0

[0132] When determining that the two-dimensional ultrasound image is flipped upside down, the first conversion relationship is the following eighth calculation formula:

[0133] Px=x*PixelGap+Px0

[0134] Py=-y*PixelGap-Py0

[0135] When the initial coordinate is determined to be a display coordinate and the target coordinate is a scanning coordinate, the second conversion relationship is related to the image type. When the two-dimensional ultrasound image is a convex array wide-angle image, each physical coordinate (Px, Py) can be converted into a scanning coordinate (DepthPos, ScanPos) according to the second conversion relationship, that is, according to the probe radius, such as Figure 8 As shown, it is a schematic diagram of converting the physical coordinates (Px, Py) of the convex array wide-angle image into the scanning coordinates (DepthPos, ScanPos). When it is determined that the two-dimensional ultrasonic image is a convex array wide-angle image, the second conversion relationship is the following ninth calculation formula:

[0136] radius = f(Px,Py,ProbeRadius)

[0137] ScanPos=atan(f(Px,ProbeRadius,Py))

[0138] If Py+ProbeRadius<0,

[0139] Then determine DepthPos = -radius - ProbeRadius;

[0140] Otherwise, DepthPos = radius - ProbeRadius;

[0141] When the initial coordinate is determined to be the display coordinate, the target coordinate is the scanning coordinate, and the two-dimensional ultrasonic image is a convex array extended image, each physical coordinate (Px, Py) can be converted into a scanning coordinate (DepthPos, ScanPos) according to the second conversion relationship, that is, according to the probe radius and the convex array extended imaging probe radius, such as Fig. 9 As shown, it is a schematic diagram of converting the physical coordinates (Px, Py) of the convex array extended image into the scanning coordinates (DepthPos, ScanPos). When it is determined that the two-dimensional ultrasonic image is a convex array extended imaging, the second conversion relationship is the following tenth calculation formula:

[0142] ScanPos=atan(f(Px,TRAdius,Py))

[0143] radius=f(ScanPos,ProbeRadius,TRadius)

[0144] DepthPos=(Py+TRadius)*a4-radius

[0145] Among them, the above Px represents the abscissa of the physical coordinate, Py represents the ordinate of the physical coordinate, Px0 represents the abscissa of the physical coordinate of the pixel zero point, Py0 represents the ordinate of the physical coordinate of the pixel zero point, x represents the abscissa of the display coordinate, y represents the ordinate of the display coordinate, radius is the intermediate value, DepthPos represents the scanning depth, ScanPos represents the lateral scanning position, ProbeRadius represents the probe radius, TRadius represents the convex array extended imaging probe radius, PixelGap represents the display point spacing, and a1, a2, a3, a4, b1, b2 and b3 are all constants.

[0146] In one or more possible embodiments, the display point spacing of the above two-dimensional ultrasound image is related to the display mode of the image. The display point spacing is the physical distance represented by two adjacent display pixels on the display. The display point spacing has no horizontal or vertical distinction and is a calculation quantity; Fig.10 As shown in FIG. 1 , it is a schematic diagram of the display point spacing of a sector image; Fig.11 The figure is a schematic diagram of the display point spacing of the fan-shaped expansion image; the display point spacing of the two-dimensional ultrasound image is determined by the following method according to different display modes:

[0147] In the non-magnified longitudinal priority display mode, the display point spacing of the two-dimensional ultrasound image is determined according to the total scanning depth, the probe radius and the drawing height of the two-dimensional ultrasound image. The specific display point spacing is determined according to the following first formula:

[0148]

[0149] In the non-magnified full display mode, the display point spacing of the two-dimensional ultrasound image is determined according to the total scanning depth, the probe radius and the drawing width of the two-dimensional ultrasound image. The specific display point spacing is determined according to the following second formula:

[0150]

[0151] In the front-end magnification longitudinal priority display mode, the display point spacing of the two-dimensional ultrasonic image is determined according to the starting scanning depth of the front-end magnification, the ending scanning depth of the front-end magnification, the probe radius and the drawing height of the two-dimensional ultrasonic image. The specific display point spacing is determined according to the following third formula:

[0152]

[0153] In the front-end magnification full display mode, the display point spacing of the two-dimensional ultrasonic image is determined according to the end scanning depth of the front-end magnification, the probe radius and the drawing width of the two-dimensional ultrasonic image. The specific display point spacing is determined according to the following fourth formula:

[0154]

[0155] In the rear-end magnified longitudinal priority display mode, the display point spacing of the two-dimensional ultrasonic image is determined according to the display point spacing of the non-magnified longitudinal priority display mode and the rear-end magnification factor. The specific display point spacing is determined according to the following fifth formula:

[0156]

[0157] In the rear-end magnified full display mode, the display point spacing of the two-dimensional ultrasonic image is determined according to the display point spacing of the non-magnified full display mode and the rear-end magnification factor, and the display point spacing of the two-dimensional ultrasonic image is determined. The specific display point spacing is determined according to the following sixth formula:

[0158]

[0159] Wherein, a in the formula is a constant. For the meaning of other parameters that determine the display dot spacing, please refer to the professional terminology introduction section in this manual, which will not be repeated here.

[0160] In one or more possible embodiments, after determining the actual point spacing according to different display modes, it is necessary to determine the physical coordinates of the pixel zero point in the physical coordinate system according to the display point spacing; Fig.12 As shown, it is a schematic diagram of the physical coordinate system. Fig.12In the figure, zero point indicates the position of the physical zero point, which is the center position of the probe surface; the physical coordinates of the pixel zero point are the relative reference coordinates of the physical zero point, which are important medium for coordinate conversion. The position of the pixel zero point is the upper left corner of the displayed image, which is a preset position. The position of the pixel zero point on the displayed image is fixed, but the physical coordinates are uncertain;

[0161] The physical coordinates of the pixel zero point are determined according to the display point spacing, the drawing width of the two-dimensional ultrasound image, the probe radius and the physical zero point position of the physical coordinate system, such as Fig.13 As shown, it is a schematic diagram of the physical coordinates of the pixel zero point. The specific calculation formula is:

[0162]

[0163] Py0=ProbeRadius*a

[0164] According to a two-dimensional ultrasound image conversion method provided in the present application, coordinate transformation can be performed between the scanning coordinate system, the physical coordinate system and the display coordinate system, and the coordinate transformation process is optimized to improve the accuracy and efficiency of the coordinate transformation, effectively solve the problems of image deformation, image transients, etc., and improve the measurement accuracy.

[0165] Example 2

[0166] Based on the same inventive concept, the present application also provides a two-dimensional ultrasound image conversion device, such as Fig.14 As shown, the device comprises:

[0167] A coordinate conversion module 1401 is used for, for any target point of the two-dimensional ultrasonic image, confirming the use of a first conversion relationship to convert the initial coordinates of the target point in the initial coordinate system into physical coordinates in the physical coordinate system, and confirming the use of a second conversion relationship to convert the physical coordinates of the target point in the physical coordinate system into target coordinates in the target coordinate system; the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image;

[0168] The target image acquisition module 1402 is used to determine the target image obtained by coordinate transformation of the two-dimensional ultrasound image according to each of the target coordinates; wherein, when the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system; when the initial coordinate system is a display coordinate system, the target coordinate system is a scanning coordinate system.

[0169] Example 3

[0170] Based on the same inventive concept, the present application also provides a two-dimensional ultrasound image conversion device, the device comprising:

[0171] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method as described in any one of Example 1.

[0172] like Fig.15 As shown, the device includes a processor 1501, a memory 1502, a communication interface 1503 and a bus 1504. The processor 1501, the memory 1502 and the communication interface 1503 are connected to each other via the bus 1504.

[0173] The processor 1501 is used to read and execute instructions in the memory 1502, so that at least one processor can execute the two-dimensional ultrasound image conversion method provided in the above embodiment.

[0174] The memory 1502 is used to store various instructions and programs of the two-dimensional ultrasound image conversion method provided in the above embodiment.

[0175] The bus 1504 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.15 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0176] Processor 1501 may be a central processing unit (CPU), a network processor (NP), a graphic processing unit (GPU), or any combination of CPU, NP, and GPU. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0177] Example 4

[0178] In addition, the present application also provides a storage medium, such as Fig.16 As shown, the medium stores a computer program, and the computer program is used to enable a computer to execute any one of the methods in the above embodiments.

[0179] The memory may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1601 and / or a cache memory 1602 , and may further include a read-only memory (ROM) 1603 .

[0180] The memory may also include a program / utility 1605 having a set (at least one) of program modules 1604, such program modules 1604 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0181] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0182] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0183] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0185] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for converting a two-dimensional ultrasonic image, characterized in that: include: For any target point of the two-dimensional ultrasonic image, confirming to adopt a first transformation relationship to transform the initial coordinates of the target point in the initial coordinate system into physical coordinates in the physical coordinate system, and confirming to adopt a second transformation relationship to transform the physical coordinates of the target point in the physical coordinate system into target coordinates in the target coordinate system; the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image; According to each of the target coordinates, a target image obtained by coordinate transformation of the two-dimensional ultrasound image is determined; wherein, when the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system; when the initial coordinate system is a display coordinate system, the target coordinate system is a scanning coordinate system.

2. The method according to claim 1, characterized in that: When it is determined that the initial coordinate is a scanning coordinate, the target coordinate is a display coordinate, and the two-dimensional ultrasonic image is a convex array wide-angle image, the first conversion relationship is: conversion is performed according to the scanning depth and the probe radius, and the second conversion relationship is: conversion is performed according to the display point spacing and the physical coordinates of the pixel zero point; When it is determined that the initial coordinate is a scanning coordinate, the target coordinate is a display coordinate, and the two-dimensional ultrasonic image is a convex array extended imaging, the first conversion relationship is: conversion is performed according to a transverse scanning position, a probe radius, a convex array extended imaging probe radius, and a scanning depth, and the second conversion relationship is: conversion is performed according to a display point spacing and a physical coordinate of a pixel zero point; When it is determined that the initial coordinate is the display coordinate, the target coordinate is the scanning coordinate, and the two-dimensional ultrasonic image is a convex array wide-angle image, the first conversion relationship is: conversion is performed according to the display point spacing and the physical coordinates of the pixel zero point, and the second conversion relationship is: conversion is performed according to the probe radius; When it is determined that the initial coordinate is the display coordinate, the target coordinate is the scanning coordinate, and the two-dimensional ultrasonic image is a convex array extended imaging, the first conversion relationship is: conversion is performed according to the display point spacing and the physical coordinate of the pixel zero point, and the second conversion relationship is: conversion is performed according to the probe radius and the convex array extended imaging probe radius; Among them, the two-dimensional ultrasound image is an image obtained by scanning the probe, the display point spacing is the physical distance represented by adjacent display pixel points on the display image; the pixel zero point is a preset position on the display image, the scanning depth represents the distance between the arbitrary target point and the probe surface, the probe radius is a fixed parameter, and the convex array extended imaging probe radius is a virtual radius, which is determined based on the scanned image.

3. The method according to claim 2, characterized in that The physical coordinates of the pixel zero point are determined in the following manner: The display point spacing of the two-dimensional ultrasound image is acquired, and the physical coordinates of the pixel zero point in the physical coordinate system are determined according to the display point spacing.

4. The method according to claim 3, characterized in that The obtaining of the display point spacing of the two-dimensional ultrasound image comprises: The two-dimensional ultrasonic image is in a non-magnified longitudinal priority display mode, determining the display point spacing of the two-dimensional ultrasonic image according to the total scanning depth, the probe radius and the drawing height of the two-dimensional ultrasonic image; The two-dimensional ultrasonic image is in a non-magnified full display mode, determining a display point spacing of the two-dimensional ultrasonic image according to a total scanning depth, a probe radius, and a drawing width of the two-dimensional ultrasonic image; The two-dimensional ultrasonic image is displayed in a front-end magnification longitudinal priority display mode, and the display point spacing of the two-dimensional ultrasonic image is determined according to the starting scanning depth of the front-end magnification, the ending scanning depth of the front-end magnification, the probe radius and the drawing height of the two-dimensional ultrasonic image; The two-dimensional ultrasonic image is in a front-end magnified full display mode, determining the display point spacing of the two-dimensional ultrasonic image according to the end scanning depth of the front-end magnification, the probe radius and the drawing width of the two-dimensional ultrasonic image; In the rear-end magnification longitudinal priority display mode, the display dot pitch of the two-dimensional ultrasound image is determined according to the display dot pitch of the non-magnification longitudinal priority display mode and the rear-end magnification factor; In the rear-end magnified full display mode, the display dot pitch of the two-dimensional ultrasound image is determined according to the display dot pitch of the non-magnified full display mode and the rear-end magnification factor; The total scanning depth represents the maximum scanning depth of the probe and is a front-end parameter.

5. The method according to claim 3 or 4, characterized in that: The step of determining the physical coordinates of the pixel zero point in the physical coordinate system according to the display dot spacing includes: The physical coordinates of the pixel zero point are determined according to the display point spacing, the drawing width of the two-dimensional ultrasound image, the probe radius and the physical zero point position of the physical coordinate system; wherein the physical zero point position is the center position of the probe surface.

6. The method according to claim 2, characterized in that When the initial coordinates are scanning coordinates and the target coordinates are display coordinates: When it is determined that the two-dimensional ultrasonic image is a convex array wide-angle image, the first conversion relationship is the following first calculation formula: Px=(DepthPos+ProbeRadius)*a1 Py=(DepthPos+ProbeRadius)*b1*ProbeRadius When it is determined that the two-dimensional ultrasonic image is a convex array extended image, the first conversion relationship is the following second calculation formula: radius=f(ScanPos,ProbeRadius,TRadius) Px=(DepthPos+radius)*a2 Py=(DepthPos+radius)*b2-TRadius When it is determined that the two-dimensional ultrasonic image is not flipped, the second conversion relationship is the following third calculation formula: When determining that the two-dimensional ultrasonic image is flipped left and right, the second conversion relationship is the following fourth calculation formula: When determining that the two-dimensional ultrasonic image is flipped upside down, the second conversion relationship is the following fifth calculation formula: Among them, Px represents the abscissa of the physical coordinate, Py represents the ordinate of the physical coordinate, Px0 represents the abscissa of the physical coordinate of the pixel zero point, Py0 represents the ordinate of the physical coordinate of the pixel zero point, x represents the abscissa of the display coordinate, y represents the ordinate of the display coordinate, radius is the intermediate value, DepthPos represents the scanning depth, ScanPos represents the lateral scanning position, ProbeRadius represents the probe radius, TRadius represents the convex array extended imaging probe radius, PixelGap represents the display point spacing, and a1, a2, a3, b1, b2 and b3 are all constants.

7. The method according to claim 2, characterized in that: When the initial coordinates are determined to be display coordinates and the target coordinates are scan coordinates: When it is determined that the two-dimensional ultrasonic image is not flipped, the first conversion relationship is the following sixth calculation formula: Px=x*PixelGap+Px0 Py=y*PixelGap+Py0 When determining that the two-dimensional ultrasonic image is flipped left and right, the first conversion relationship is the following seventh calculation formula: Px=-x*PixelGap-Px0 Py=y*PixelGap+Py0 When determining that the two-dimensional ultrasound image is flipped upside down, the first conversion relationship is the following eighth calculation formula: Px=x*PixelGap+Px0 Py=-y*PixelGap-Py0 When it is determined that the two-dimensional ultrasonic image is a convex array wide-angle image, the second conversion relationship is the following ninth calculation formula: radius = f(Px,Py,ProbeRadius) ScanPos=atan(f(Px,ProbeRadius,Py)) If Py+ProbeRadius<0, Then determine DepthPos = -radius - ProbeRadius; Otherwise, DepthPos = radius - ProbeRadius; When it is determined that the two-dimensional ultrasonic image is convex array expansion imaging, the second conversion relationship is the following tenth calculation formula: ScanPos=atan(f(Px,TRAdius,Py)) radius=f(ScanPos,ProbeRadius,TRadius) DepthPos=(Py+TRadius)*a4-radius Among them, Px represents the horizontal coordinate of the physical coordinate, Py represents the vertical coordinate of the physical coordinate, Px0 represents the horizontal coordinate of the physical coordinate of the pixel zero point, Py0 represents the vertical coordinate of the physical coordinate of the pixel zero point, x represents the horizontal coordinate of the display coordinate, y represents the vertical coordinate of the display coordinate, radius is the middle value, DepthPos represents the scanning depth, ScanPos represents the lateral scanning position, ProbeRadius represents the probe radius, TRadius represents the convex array extended imaging probe radius, PixelGap represents the display point spacing, and a4 is a constant.

8. A two-dimensional ultrasonic image conversion device, characterized in that: The device comprises: a coordinate conversion module, for any target point of the two-dimensional ultrasonic image, confirming the use of a first conversion relationship to convert the initial coordinates of the target point in the initial coordinate system into physical coordinates in the physical coordinate system, and confirming the use of a second conversion relationship to convert the physical coordinates of the target point in the physical coordinate system into target coordinates in the target coordinate system; the two-dimensional ultrasonic image is a convex array wide-angle image or a convex array extended image; The target image acquisition module is used to determine the target image obtained by coordinate transformation of the two-dimensional ultrasound image according to each of the target coordinates; wherein, when the initial coordinate system is a scanning coordinate system, the target coordinate system is a display coordinate system; when the initial coordinate system is a display coordinate system, the target coordinate system is a scanning coordinate system.

9. A two-dimensional ultrasonic image conversion device, characterized in that: The device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute the method as described in any one of claims 1-7.

10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to enable a computer to execute the method according to any one of claims 1 to 7.