Region-of-interest position determination method and device, electronic equipment and storage medium
By mapping the region of interest onto the spiral image for shape and position adjustment, and using the mapping relationship between the spiral image and the ultrasonic ring image, the position calculation after ROI adjustment is simplified, the problems of complex calculation and high error rate in the prior art are solved, and the adjustment efficiency and system readability are improved.
Patent Information
- Application Number
- CN202410015207.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2025-07-04
AI Technical Summary
When imaging ultrasonic ring array probes, the calculation of position adjustment of the region of interest (ROI) in the prior art is complicated, and it is necessary to consider whether the positions before and after ROI adjustment cross the neutral line of the ring scanning area, resulting in complex calculation process and prone to errors.
By mapping the region of interest onto the spiral image for shape and position adjustment, and using the mapping relationship between the spiral image and the ultrasonic ring image, the position calculation process after ROI adjustment is simplified.
It improves the ROI adjustment efficiency, reduces the difficulty and error rate of program maintenance, and improves the readability of the program system.
Smart Images

Figure CN120259162A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image processing, and particularly relates to a method for determining the position of a region of interest, a device for determining the position of a region of interest, an electronic device, and a storage medium. Background Art
[0002] A region of interest (ROI) refers to a region in an image that needs to be focused on and utilized, such as a blood flow region or a local magnification region in an ultrasonic imaging system. When an ultrasonic physician performs operations such as Doppler blood flow examination and local magnification of a lesion region, it is necessary to adjust the position or size of the ROI in order to obtain diagnostic information of the ROI.
[0003] Due to its unique topological structure (the first array element is connected to the last array element to form a ring), an ultrasonic annular array probe forms an annular scanning region during imaging. Within this annular scanning region, the scanning line direction (i.e., the scanning direction of the ultrasonic annular array probe) is connected end to end. In the image collected by the ultrasonic annular array probe, the ROI can be infinitely adjusted in the scanning line direction. In related technologies, when calculating the position of the adjusted ROI, it is necessary to consider whether the adjusted position of the ROI crosses the zero line position of the annular scanning region, and different calculation methods are adopted for different situations, resulting in a cumbersome calculation process. Summary of the Invention
[0004] In view of the above problems, the present application is proposed. The present application provides a method for determining the position of a region of interest, a device for determining the position of a region of interest, an electronic device, and a storage medium.
[0005] According to one aspect of the present application, there is provided a method for determining the position of a region of interest, including: obtaining initial position information of the region of interest on a spiral image, where the spiral image is an image obtained by extending an ultrasonic annular image along the scanning direction of an ultrasonic annular array probe, and the ultrasonic annular image is an ultrasonic image collected by using the ultrasonic annular array probe; determining first target position information of the region of interest on the spiral image after corresponding shape adjustment and / or position adjustment based on the initial position information and an adjustment amount input by a user, where the adjustment amount is a shape adjustment amount and / or a position adjustment amount; and determining second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information.
[0006] Exemplarily, the region of interest includes a first region of interest and a second region of interest, and there is an overlapping region between the first region of interest and the second region of interest; the method further includes: obtaining first position information of the first region of interest on the spiral image and second position information of the second region of interest on the spiral image; determining third position information of the overlapping region on the spiral image based on the first position information and the second position information; and determining fourth position information of the overlapping region on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the third position information.
[0007] Exemplarily, the step of obtaining first position information of the first region of interest on the spiral image and second position information of the second region of interest on the spiral image is performed after the first region of interest and / or the second region of interest are adjusted based on the adjustment amount input by the user.
[0008] Exemplarily, the adjustment amount includes a first adjustment amount along the scanning direction of the ultrasonic annular array probe and a second adjustment amount along the depth direction of the ultrasonic annular image; the method further includes: obtaining the adjustment amount input by the user; determining whether the first adjustment amount in the adjustment amount input by the user is equal to 0; and performing the step of obtaining the initial position information of the region of interest on the spiral image when the first adjustment amount in the adjustment amount input by the user is not equal to 0.
[0009] Exemplarily, the first target position information includes first scanning start position information along the scanning direction of the ultrasonic annular array probe; determining second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information includes: determining whether the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image; when the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image, determining the first scanning start position information as the second scanning start position information; when the position indicated by the first scanning target position information does not belong to the range of the ultrasonic annular image, mapping the first scanning start position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning start position information; wherein, the second target position information includes the second scanning start position information.
[0010] Exemplarily, the first target position information includes first scan termination position information along the scan direction of the ultrasonic annular array probe; based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, determining the second target position information of the adjusted region of interest on the ultrasonic annular image includes: determining whether the position indicated by the first scan termination position information is within the range of the ultrasonic annular image; when the position indicated by the first scan termination position information is within the range of the ultrasonic annular image, determining the first scan termination position information as the second scan termination position information; when the position indicated by the first scan termination position information is not within the range of the ultrasonic annular image, mapping the first scan termination position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scan termination position information; wherein, the second target position information includes the second scan termination position information.
[0011] Exemplarily, the adjustment amount is a position adjustment amount, and the position adjustment amount includes a scan position adjustment amount along the scan direction of the ultrasonic annular array probe; the initial position information includes a third scan start position information and a third scan termination position information along the scan direction of the ultrasonic annular array probe; the first target position information includes a first scan start position information and a first scan termination position information along the scan direction of the ultrasonic annular array probe; based on the initial position information and the adjustment amount input by the user, determining the first target position information after the corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image includes: calculating the sum of the position amount indicated by the third scan start position information and the scan position adjustment amount to determine the first scan start position information; calculating the sum of the position amount indicated by the third scan termination position information and the scan position adjustment amount to determine the first scan termination position information.
[0012] Exemplarily, the adjustment amount is a shape adjustment amount, and the shape adjustment amount includes a scan shape adjustment amount along the scan direction of the ultrasonic annular array probe; the initial position information includes a third scan start position information and a third scan termination position information along the scan direction of the ultrasonic annular array probe; the first target position information includes a first scan start position information and a first scan termination position information along the scan direction of the ultrasonic annular array probe; based on the initial position information and the adjustment amount input by the user, determining the first target position information after the corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image includes: calculating the difference between the position amount indicated by the third scan start position information and the scan shape adjustment amount to determine the first scan start position information; calculating the sum of the position amount indicated by the third scan termination position information and the scan shape adjustment amount to determine the first scan termination position information.
[0013] According to another aspect of the present application, a device for determining the position of a region of interest is provided, including: a first acquisition module configured to acquire initial position information of the region of interest on a spiral image, where the spiral image is an image obtained by extending an ultrasonic annular image along the scanning direction of an ultrasonic annular array probe, and the ultrasonic annular image is an ultrasonic image acquired by using the ultrasonic annular array probe; a first determination module configured to determine first target position information of the region of interest on the spiral image after corresponding shape adjustment and / or position adjustment based on the initial position information and an adjustment amount input by a user, where the adjustment amount is a shape adjustment amount and / or a position adjustment amount; and a second determination module configured to determine second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information.
[0014] According to yet another aspect of the present application, an electronic device is provided, including a processor and a memory, where computer program instructions are stored in the memory, and when the computer program instructions are run by the processor, they are used to execute the method for determining the position of a region of interest as described above.
[0015] According to still another aspect of the present application, a storage medium is provided, on which program instructions are stored, and when the program instructions are run, they are used to execute the method for determining the position of a region of interest as described above.
[0016] In the above technical solution, by mapping the region of interest into the spiral image for shape adjustment and / or position adjustment, and based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, the second target position information of the adjusted region of interest on the ultrasonic annular image can be determined more accurately. This solution simplifies the calculation process of the region position after adjusting the region of interest by expanding the ultrasonic annular image into a spiral image, which helps to improve the adjustment efficiency of the region of interest, improve the readability of the program system, and reduce the program maintenance difficulty and error rate.
[0017] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present application more obvious and understandable, the specific embodiments of the present application are specifically exemplified below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The following drawings of the present application are here as a part of the present application for understanding the present application. The embodiments and descriptions thereof shown in the drawings are used to explain the principles of the present application. In the drawings,
[0019] Figure 1 A schematic diagram showing an ultrasonic annular image acquired by an ultrasonic annular array probe according to an embodiment of the present application;
[0020] Figure 2 Schematic flowchart showing a method for determining the position of a region of interest in an embodiment of the related art;
[0021] Figure 3 Schematic flowchart showing a method for determining the position of a region of interest according to an embodiment of the present application;
[0022] Figure 4 Schematic diagram showing a spiral image according to an embodiment of the present application;
[0023] Figure 5 Schematic block diagram showing a device for determining the position of a region of interest provided according to an embodiment of the present application; and
[0024] Figure 6 Schematic block diagram showing an electronic device according to an embodiment of the present application. Detailed implementation manners
[0025] In order to make the objectives, technical solutions and advantages of the present application more apparent, exemplary embodiments according to the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. It should be understood that the present application is not limited by the exemplary embodiments described herein. Based on the embodiments described in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0026] Due to its unique topological structure (the first array element is connected to the last array element to form a ring), an ultrasonic annular array probe forms an annular scanning area during imaging. Within this annular scanning area, the scanning line directions (i.e., the scanning directions of the ultrasonic annular array probe) are connected end to end. Figure 1 Schematic diagram showing an ultrasonic annular image collected by an ultrasonic annular array probe according to an embodiment of the present application. As Figure 1 shown, within this ultrasonic annular image, the first scanning line (i.e., the scanning line corresponding to 0% in the figure) and the last scanning line (i.e., the scanning line corresponding to 100% in the figure) coincide. Based on this feature, when adjusting the ROI within the ultrasonic annular image, the ROI can be adjusted infinitely in the scanning direction. In the related art, when calculating the position of the adjusted ROI, it is necessary to consider whether the position of the ROI before and after adjustment crosses the zero line position of the annular scanning image (i.e., Figure 1 the scanning line positions corresponding to 0% and 100% in the figure), and different calculation methods are adopted for different situations. Figure 2 Schematic flowchart showing a method for determining the position of a region of interest in an embodiment of the related art. As Figure 2As shown, when the user adjusts the shape and / or position of the ROI, in step (1), the adjustment amount input by the user is obtained and decomposed into an adjustment amount along the scan line direction (i.e., the scan direction described below) and an adjustment amount along the depth direction. In step (2), the position information of the current ROI is obtained, which may include the start position and end position of the ROI in the scan direction, as well as the start position and end position in the depth direction. In step (3) of the software process, if in the position adjustment state, the corresponding position adjustment processing logic is executed, for example, both the current start position and end position of the ROI are added with the adjustment amount; if in the shape adjustment state, the corresponding shape adjustment processing logic is executed, for example, the current start position of the ROI is subtracted by the adjustment amount, and the current end position of the ROI is added with the adjustment amount. Then, boundary limitation is performed on the ROI to obtain the position of the adjusted ROI. In step (4), if there are multiple ROIs currently, such as the Doppler blood flow area, the local magnification area, etc., an intersection operation can be performed to determine the area where multiple ROIs intersect for display or other operations. In this process, in the step of performing boundary limitation on the ROI to obtain the position of the adjusted ROI, it is necessary to determine whether the ROI crosses the zero line position (i.e., whether it crosses the zero line) before and after adjustment. When 0% < end position < start position < 100%, it can be determined that the ROI crosses the zero line. When 0% < start position < end position < 100%, it can be determined that the ROI does not cross the zero line. Since the ROI can be infinitely cyclically adjusted in the scan direction, after the ROI is adjusted, it is necessary to correct the start position and end position of the adjusted ROI calculated in the position adjustment processing logic or the shape adjustment processing logic as appropriate. For example, if the ROI did not cross the zero line before adjustment but crosses the zero line after adjustment, the end position of the ROI needs to be corrected; if the ROI crossed the zero line before adjustment but does not cross the zero line after adjustment, the start position of the ROI needs to be corrected; if the ROI crosses the zero line both before and after adjustment or does not cross the zero line both before and after adjustment, there is no need to correct the start position and end position of the ROI. It can be seen that in the related art, when calculating the position of the adjusted ROI, it is necessary to comprehensively consider whether the position of the ROI crosses the zero line position of the circular scan image before and after adjustment, and adopt different calculation methods for different situations, and the calculation process is cumbersome and prone to errors. In addition, this calculation method with different branches for different situations easily leads to a non-systematic design of the program, poor readability, and difficulty in maintenance. In view of this, the present application provides a method for determining the position of an area of interest, a device for determining the position of an area of interest, an electronic device, and a storage medium, and this solution can simplify the calculation process of the position of the adjusted ROI area. The method for determining the position of the area of interest, the device for determining the position of the area of interest, the electronic device, and the storage medium are described in detail below.
[0027] According to one aspect of the present application, a method for determining the position of a region of interest is provided. Exemplarily, the method for determining the position of a region of interest can run on any electronic device. The electronic device can be any device having data processing capabilities and / or instruction execution capabilities. The electronic device can include, but is not limited to, one or more of a personal computer, a server, a mobile terminal, and an ultrasound device, etc. When the electronic device is a device independent of the ultrasound device, the electronic device can optionally be communicatively connected to the ultrasound device to obtain an ultrasound annular image from the ultrasound device. Of course, the ultrasound annular image collected by the ultrasound device can also be transferred from the ultrasound device to the above-mentioned electronic device by means of copying using a storage device such as a flash memory. Exemplarily, the electronic device for executing the method for determining the position of a region of interest can include a processing device. In the electronic device, the method for determining the position of a region of interest can be specifically executed by the processing device. Exemplarily, the electronic device for executing the method for determining the position of a region of interest can further include a display device and / or an input device, or be communicatively connected to the display device and / or the input device. The input device can include, but is not limited to, one or more of the following: a keyboard, a mouse, a touch screen, a touchpad, etc. The touchpad can be referred to as a control panel. The input device can be, for example, a touchpad including a trackball and a variety of function keys. The display device can be used to display the collected ultrasound annular image.
[0028] Figure 3 Fig. shows a schematic flowchart of a method for determining the position of a region of interest according to an embodiment of the present application. As Figure 3 shown, the method 300 for determining the position of a region of interest can include the following steps S310, step S320, and step S330.
[0029] In step S310, initial position information of the region of interest on the spiral image is obtained. The spiral image is an image obtained by extending the ultrasound annular image along the scanning direction of the ultrasound annular array probe, and the ultrasound annular image is an ultrasound image collected by using the ultrasound annular array probe.
[0030] Optionally, the spiral image can be an image obtained by extending an ultrasonic annular image in the scanning direction and / or the opposite direction of the scanning direction (which can be referred to as the reverse scanning direction) by a target length respectively. The target length can be a preset fixed length or can be extended as the position of the ROI changes when the ROI is adjusted. For example, the currently extended target length of the ultrasonic annular image can be equal to or greater than the position adjustment amount of the ROI. As the position adjustment amount of the ROI increases, the ultrasonic annular image can be extended to a longer length accordingly. The target length can be expressed as a percentage. It can be understood that extending -X% in the scanning direction is equivalent to extending X% in the reverse scanning direction. Therefore, whether the ultrasonic annular image is extended by X% in the scanning direction or by X% in the reverse scanning direction, it can be expressed as extending a certain length in the scanning direction, and of course, it can also be expressed as extending a certain length in the reverse scanning direction. The absolute values of the lengths extended in the scanning direction and in the reverse scanning direction can be the same or different. As Figure 1 shown, for an ultrasonic annular image, the position range it contains can be expressed as [0, 100%] in the scanning direction. Figure 1 The ultrasonic annular image shown can be extended in the scanning direction. For example, for Figure 1 the ultrasonic annular image shown, it can start from the first scanning line and extend 100% in the reverse scanning direction, and start from the last scanning line and extend 100% in the scanning direction. At this time, the position range included in the spiral image can be expressed as [-100%, 200%]. For another example, it can start from the first scanning line and extend 100% in the reverse scanning direction, and start from the last scanning line and extend 200% in the scanning direction. At this time, the position range included in the spiral image can be in the range of [-100%, 300%].
[0031] Figure 4 Schematic diagram showing a spiral image according to an embodiment of the present application. As Figure 4 shown, it can start from the first scanning line and extend 100% in the reverse scanning direction, and start from the last scanning line and extend 100% in the scanning direction. Figure 4 In the embodiment shown, the position range included in the spiral image is [-100%, 200%].
[0032] In step S310, the initial position information of the ROI on the spiral image can be determined according to the initial position information of the ROI on the ultrasonic annular image. The initial position information is the position information before the position and / or shape of the ROI is adjusted. Exemplarily, the initial position information of the ROI on the spiral image can be determined based on the initial position information of the ROI on the ultrasonic annular image and the mapping relationship between the spiral image and the ultrasonic annular image. Optionally, when mapping the ROI on the ultrasonic annular image to the spiral image, the mapping relationship may include: for any ROI, when the starting position of the ROI on the ultrasonic annular image crosses the zero line, subtract 100% from the starting position to obtain the starting position of the ROI on the spiral image; when the starting position of the ROI on the ultrasonic annular image does not cross the zero line, use the starting position as the starting position of the ROI on the spiral image; when the ending position of the ROI region on the ultrasonic annular image crosses the zero line, add 100% to the ending position to obtain the ending position of the ROI on the spiral image; when the ending position of the ROI on the ultrasonic annular image does not cross the zero line, use the ending position as the ending position of the ROI on the spiral image. For example, assume that the starting position of the ROI on the ultrasonic annular image is 75% and the ending position is 20%. At this time, the starting position crosses the zero line, then the starting position of the ROI mapped to the spiral image is -25% and the ending position is 20%. Another example, assume that the starting position of the ROI on the ultrasonic annular image is 60% and the ending position is 10%. At this time, the ending position crosses the zero line, then the starting position of the ROI mapped to the spiral image is 60% and the ending position is 110%. Another example, assume that the starting position of the ROI on the ultrasonic annular image is 30% and the ending position is 80%. At this time, both the starting position and the ending position do not cross the zero line, then the starting position of the ROI mapped to the spiral image is 30% and the ending position is 80%. It should be noted that the initial position and the ending position of the ROI in the scanning direction are calculated in the above mapping relationship. For the depth direction, the starting position of the ROI in the depth direction on the spiral image is the same as the starting position of the ROI in the depth direction on the spiral image, and the ending position of the ROI in the depth direction on the spiral image is the same as the ending position of the ROI in the depth direction on the spiral image. The method 300 for determining the position of the region of interest in the embodiments of the present application is mainly used to determine the initial position and the ending position of the region of interest in the scanning direction on the ultrasonic annular image.
[0033] In step S320, based on the initial position information and the adjustment amount input by the user, determine the first target position information after the corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image, where the adjustment amount is the shape adjustment amount and / or the position adjustment amount.
[0034] In some embodiments, the user may first open the software for performing the method for determining the position of the region of interest on an electronic device (such as an ultrasound device). Then, set the adjustment method for the ROI. The adjustment method may be shape adjustment, position adjustment, etc. After determining the adjustment method, the user may input an adjustment amount as needed. In a specific embodiment, the user may input the adjustment amount by sliding the trackball on the touchpad of the ultrasound device to adjust the position and / or shape of the ROI.
[0035] In step S320, the first target position information of the region of interest after corresponding shape adjustment and / or position adjustment on the spiral image may be determined according to the adjustment amount input by the user. For example, when the current adjustment method is shape adjustment, the first target position information of the region of interest after shape adjustment may be determined according to the shape adjustment amount. For another example, when the current adjustment method is position adjustment, the first target position information of the region of interest after position adjustment may be determined according to the position adjustment amount.
[0036] As Figure 1 shown, the position of the ROI may include the starting position along the scanning direction, the ending position along the scanning direction, the starting position along the depth direction, and the ending position along the depth direction. Optionally, when the adjustment method is shape adjustment, the shape adjustment amount may include the shape adjustment amounts corresponding to the starting position along the scanning direction, the ending position along the scanning direction, the starting position along the depth direction, and the ending position along the depth direction respectively. In this embodiment, the user may input the shape adjustment amounts corresponding to the above positions as needed to adjust the region of the ROI. Optionally, when the adjustment method is shape adjustment, the shape adjustment amount may include the shape adjustment amount along the scanning direction and / or the shape adjustment amount along the depth direction. In this embodiment, when the user inputs the shape adjustment amount along the scanning direction, based on this shape adjustment amount, the starting position along the scanning direction and the ending position along the scanning direction may be controlled to move outward or inward along the scanning direction relative to the center point of the ROI simultaneously. When the user inputs the shape adjustment amount along the depth direction, based on this shape adjustment amount, the starting position along the depth direction and the ending position along the depth direction may be controlled to move outward or inward along the depth direction relative to the center point of the ROI simultaneously. During shape adjustment, the moving directions of the starting position along the scanning direction and the ending position along the scanning direction are opposite, that is, both move away from or move closer to the center point of the ROI simultaneously, and the moving distances are both equal to the shape adjustment amount along the scanning direction. During shape adjustment, the moving directions of the starting position along the depth direction and the ending position along the depth direction are opposite, that is, both move away from or move closer to the center point of the ROI simultaneously, and the moving distances are both equal to the shape adjustment amount along the depth direction.
[0037] Optionally, when the adjustment method is position adjustment, the position adjustment amount may include the position adjustment amount in the scanning direction and / or the position adjustment amount in the depth direction. In this embodiment, when the user inputs the position adjustment amount in the scanning direction, based on this position adjustment amount, the start position and the end position of the ROI in the scanning direction can be controlled to move in the same side in the scanning direction at the same time. When the user inputs the position adjustment amount in the depth direction, based on this position adjustment amount, the start position and the end position of the ROI in the depth direction can be controlled to move in the same side in the depth direction at the same time. During position adjustment, the moving directions of the start position and the end position in the scanning direction are the same, that is, both move in the same side in the scanning direction at the same time, and the moving distances are both equal to the position adjustment amount in the scanning direction. During position adjustment, the moving directions of the start position and the end position in the depth direction are the same, that is, both move in the same side in the depth direction at the same time, and the moving distances are both equal to the position adjustment amount in the depth direction.
[0038] In step S330, based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, determine the second target position information of the adjusted region of interest on the ultrasonic annular image.
[0039] In this step, based on the position information of the adjusted ROI on the spiral image (i.e., the first target position information) and the mapping relationship between the spiral image and the ultrasonic annular image, the position information of the ROI on the ultrasonic annular image (i.e., the second target position information) can be determined. Optionally, when mapping the ROI on the ultrasonic annular image to the spiral image, the mapping relationship between the spiral image and the ultrasonic annular image may include: for any ROI, when the starting position or the ending position of the ROI region on the spiral image crosses the zero line, add / subtract n*100% to the starting position or the ending position of the ROI on the spiral image, so that the starting position or the ending position of the ROI is within the position range included in the ultrasonic annular image, such as [0, 100%]; when the starting position or the ending position of the ROI region on the spiral image crosses the zero line, use the starting position or the ending position as the starting position or the ending position of the ROI on the ultrasonic annular image. When the starting position of the ROI on the spiral image crosses the zero line, n is equal to the ceiling of the absolute value of the starting position on the spiral image divided by 100%. For example, if the starting position of the ROI on the spiral image is -120%, then n can be equal to 2, and the starting position of the ROI on the ultrasonic annular image is -120% + 2×100% = 80%. When the ending position of the ROI on the spiral image crosses the zero line, n is equal to the floor of the ending position on the spiral image divided by 100%, that is, the ending position of the ROI on the ultrasonic annular image is equal to the remainder of the ending position of the ROI on the spiral image divided by 100%. For example, if the ending position of the ROI on the spiral image is 250%, then n can be equal to 2, and the ending position of the ROI on the ultrasonic annular image is 250% - 2×100% = 50%. The zero line on the spiral image is also the line where 0 and 100% coincide, which is the same as the zero line on the ultrasonic annular image. It should be noted that other positions on the spiral image that are divisible by 100% except 0 and 100% (such as -200%, 300%, etc.) are not zero lines. For example, if the ending position of the ROI on the spiral image is at 200%, the ending position of the ROI on the spiral image 200% can be mapped to the ending position of the ROI on the ultrasonic annular image 0 by the above method of dividing by 100% and taking the remainder.
[0040] Take Figure 4 as an example to illustrate this mapping relationship. In Figure 4In it, the ROI includes Region A and Region B. The termination positions of Region A and Region B both cross the zero line (i.e., the boundary line corresponding to 100%). At this time, if the starting position of Region A in the spiral image along the scanning direction is 70% and the termination position along the scanning direction is 110%, after conversion based on the mapping relationship between the spiral image and the ultrasonic annular image, it can be determined that the region position indicated by the second target position information of Region A in the ultrasonic annular image is: the starting position along the scanning direction is 70% and the termination position along the scanning direction is 10%. If the starting position of Region B in the spiral image along the scanning direction is 15% and the termination position along the scanning direction is 105%, after conversion based on the mapping relationship between the spiral image and the ultrasonic annular image, it can be determined that the region position indicated by the second target position information of Region B in the ultrasonic annular image is: the starting position along the scanning direction is 15% and the termination position along the scanning direction is 5%. From the above description, it can be seen that when determining the position of the ROI on the ultrasonic annular image after adjustment, if the spiral image is used, it is possible to not need to comprehensively consider the situation of the span zero line before and after the ROI adjustment, and only consider the position of the ROI on the spiral image after adjustment. This solution can effectively reduce algorithm branches, simplify the calculation process, and save calculation time.
[0041] Exemplarily, during the process of the user adjusting the ROI by dragging the ROI with, for example, a mouse or a trackball, the above steps S310, S320, and S330 can be executed once every predetermined time. The predetermined time can be set to any appropriate size according to needs. Exemplarily, the predetermined time can be in the range of [10, 100] milliseconds (ms), such as 30 ms, 50 ms, 80 ms, etc. After executing steps S310, S320, and S330 once, the second target position information of the adjusted ROI on the ultrasonic annular image can be determined. At this time, the adjusted ROI can be optionally displayed on the ultrasonic annular image displayed on the display interface based on the second target position information.
[0042] In the above technical solution, by mapping the region of interest to the spiral image for shape adjustment and / or position adjustment, and based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, the second target position information of the adjusted region of interest on the ultrasonic annular image can be determined more accurately. This solution can simplify the calculation process of the region position after adjusting the region of interest by expanding the ultrasonic annular image into a spiral image, which helps to improve the adjustment efficiency of the region of interest, improve the readability of the program system, and reduce the program maintenance difficulty and error rate.
[0043] Exemplarily, the region of interest includes a first region of interest and a second region of interest, and there is an overlapping region between the first region of interest and the second region of interest; Method 300 may further include the following steps: obtaining first position information of the first region of interest on the spiral image and second position information of the second region of interest on the spiral image; determining third position information of the overlapping region on the spiral image based on the first position information and the second position information; and determining fourth position information of the overlapping region on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the third position information.
[0044] It should be noted that the number of regions of interest may also be three or more, and the determination process of the overlapping region may be: obtained by integrating the overlapping regions of two-by-two regions of interest, and the determination process of the overlapping region of two-by-two regions of interest may refer to the determination process of the overlapping region of the first region of interest and the second region of interest as described above, and will not be elaborated here.
[0045] In the related art, when determining the overlapping region between two ROIs, it is also necessary to consider whether the two ROIs cross the zero line. Table 1 shows the calculation method for calculating the overlapping region between two ROIs (ROIA and ROIB) in the related art.
[0046] Table 1. Calculation method for calculating the overlapping region between two ROIs in the related art
[0047]
[0048]
[0049] It can be seen that this method has multiple calculation branches, the calculation process is cumbersome, and it is easy to have defects and image errors. Moreover, this calculation method that adopts different branches for different situations easily leads to a non-systematic design of the program, poor readability, and difficulty in maintenance. In the solution of this example, when calculating the position of the overlapping region, the position of the overlapping region of the two ROIs in the spiral image can be calculated first, and then the mapping relationship between the spiral image and the ultrasonic annular image is used to determine the position of the overlapping region in the ultrasonic annular image. Thus, it helps to simplify the calculation process of the overlapping region. Specifically, taking Figure 4 as an example to illustrate the determination of the position of the overlapping region. In Figure 4In the illustrated embodiment, the first region of interest is region A, and the second region of interest is region B. The starting position of region A in the spiral image along the scanning direction is 70%, and the ending position along the scanning direction is 110%. The starting position of region B in the spiral image along the scanning direction is 15%, and the ending position along the scanning direction is 105%. It can be seen that there is an overlapping region between region A and region B. At this time, the third position information of the overlapping region on the spiral image can be determined according to the respective position information of region A and region B. The third position information of the overlapping region on the spiral image can be directly determined based on the intersection of the position of the first region of interest on the spiral image and the position of the second region of interest on the spiral image. In this embodiment, the third position information of the overlapping region in the spiral image includes: the starting position along the scanning direction is 70%, and the ending position along the scanning direction is 105%. Based on the mapping relationship between the spiral image and the ultrasonic annular image and the third position information, the fourth position information of the overlapping region on the ultrasonic annular image can be determined. For example, for the case where the third position information of the overlapping region in the spiral image includes: the starting position along the scanning direction is 70%, and the ending position along the scanning direction is 105%, the fourth position information of the overlapping region on the ultrasonic annular image can include: the starting position along the scanning direction is 70%, and the ending position along the scanning direction is 5%.
[0050] Optionally, the first region of interest and the second region of interest may have different region categories. For example, the first region of interest may be a Doppler blood flow region, and the second region of interest may be a local magnification region. For the overlapping region between these two regions of interest, since it contains the respective information of the two regions of interest, some special processing can be performed on the overlapping region as needed, such as adjusting the contrast, etc., to facilitate the user to view the two types of information in the overlapping region.
[0051] In the above technical solution, when calculating the position of the overlapping region of the first region of interest and the second region of interest, first calculate the position of the overlapping region in the spiral image, and then use the mapping relationship between the spiral image and the ultrasonic annular image to determine the position of the overlapping region in the ultrasonic annular image. Thereby, it helps to simplify the calculation process of the overlapping region, and helps to improve the accuracy of the result and avoid image errors. In addition, the calculation process of this solution does not need to distinguish different branches, which can facilitate the systematic design of the corresponding program, help to improve the readability and maintainability of the program, and further help to improve the user experience.
[0052] Exemplarily, the step of obtaining the first position information of the first region of interest on the spiral image and the second position information of the second region of interest on the spiral image is performed after the first region of interest and / or the second region of interest are adjusted based on the adjustment amount input by the user.
[0053] In this embodiment, after the first region of interest and / or the second region of interest are adjusted based on the adjustment amount input by the user, the steps of obtaining the first position information of the first region of interest on the spiral image and the second position information of the second region of interest on the spiral image can be performed to re-determine the position of the overlapping region between the two regions of interest. Thus, after determining the positions of the first region of interest and / or the second region of interest on the spiral image described herein, the position of the overlapping region between the adjusted first region of interest and the second region of interest can be further determined. This can uniformly adopt spiral image processing to determine the position of a single ROI and the position of the overlapping region, which helps to further reduce the complexity of the program and improve the processing efficiency.
[0054] It can be understood that for any one of the first region of interest and the second region of interest, after the region of interest is adjusted based on the adjustment amount input by the user, the above-mentioned steps S310, S320, and S330 can be used to determine the position of the adjusted region of interest in the ultrasonic annular image. Optionally, after at least one of the first region of interest and the second region of interest is adjusted based on the adjustment amount input by the user, when performing steps S310, S320, and S330 on the at least one region of interest, step S320 can be used to determine the position information of the corresponding region of interest on the ultrasonic annular image. For example, after the first region of interest is adjusted based on the adjustment amount input by the user, step S320 can be used to determine the first position information of the first region of interest on the spiral image. Thus, redundant calculations can be avoided and the adjustment efficiency of the region of interest can be improved.
[0055] In the above technical solution, the steps of obtaining the first position information of the first region of interest on the spiral image and the second position information of the second region of interest on the spiral image are performed after the first region of interest and / or the second region of interest are adjusted based on the adjustment amount input by the user. Thus, the overall execution logic can be optimized and meaningless calculation operations can be avoided.
[0056] Exemplarily, the adjustment amount includes a first adjustment amount along the scanning direction of the ultrasonic annular array probe and a second adjustment amount along the depth direction of the ultrasonic annular image; the method further includes: obtaining the adjustment amount input by the user; determining whether the first adjustment amount in the adjustment amount input by the user is equal to 0; and performing the step of obtaining the initial position information of the region of interest on the spiral image when the first adjustment amount in the adjustment amount input by the user is not equal to 0.
[0057] It can be understood that when adjusting the ROI, the position and / or shape of the ROI along the scanning direction can be adjusted, or the position and / or shape of the ROI along the depth direction can be adjusted. ForFigure 1 is used as an example for illustration. For example, Figure 1 as shown, the position of the ROI may include the starting position along the scanning direction, the ending position along the scanning direction, the starting position along the depth direction, and the ending position along the depth direction. When adjusting the ROI, a first adjustment amount can be input to adjust the starting position along the scanning direction and / or the ending position along the scanning direction, or a second adjustment amount can be input to adjust the starting position along the depth direction and / or the ending position along the depth direction. Since when only adjusting the starting position along the depth direction and / or the ending position along the depth direction, the starting position along the scanning direction and the ending position along the scanning direction always remain unchanged, there is no need to consider whether it crosses the zero line, and thus there is no need to map it to the spiral image to determine the adjusted position information.
[0058] In the above technical solution, the step of obtaining the initial position information of the region of interest on the spiral image is only executed when there is a first adjustment amount along the scanning direction of the ultrasonic annular array probe. When there is no first adjustment amount, steps S310 to S330 do not need to be executed, and the position of the region of interest can be directly determined based on the second adjustment amount. Thus, it helps to avoid redundant calculations and improve the adjustment efficiency of the region of interest.
[0059] Exemplarily, the first target position information includes the first scanning starting position information along the scanning direction of the ultrasonic annular array probe; based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, determining the second target position information of the adjusted region of interest on the ultrasonic annular image includes: judging whether the position indicated by the first scanning starting position information is within the range of the ultrasonic annular image; when the position indicated by the first scanning starting position information is within the range of the ultrasonic annular image, determining the first scanning starting position information as the second scanning starting position information; when the position indicated by the first scanning target position information is not within the range of the ultrasonic annular image, mapping the first scanning starting position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning starting position information; wherein, the second target position information includes the second scanning starting position information.
[0060] Still taking Figure 4 the illustrated embodiment as an example to illustrate the determination of the second scanning starting position information. For example, Figure 4 as shown, the range of the ultrasonic annular image is [0%, 100%]. When the position indicated by the first scanning starting position information is within the range of [0%, 100%] in the spiral image, it can be considered that the position indicated by the first scanning starting position information is within the range of the ultrasonic annular image. At this time, the second scanning starting position information can be directly determined based on the first scanning starting position information. For example, in Figure 4Among them, the starting position of region A in the spiral image along the scanning direction is 70%, which is within the range of [0%, 100%] in the spiral image. At this time, it can be determined that the position indicated by the second scanning starting position information is 70%. That is, the starting position of region A in the ultrasonic annular image is 70%. When the position indicated by the first scanning starting position information is not within the range of [0%, 100%] in the spiral image, it can be considered that the position indicated by the first scanning starting position information does not belong to the range of the ultrasonic annular image. At this time, the first scanning starting position information can be mapped to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning starting position information. For example, if the starting position of the ROI region in the spiral image along the scanning direction is 120%, that is, this starting position is not within the range of [0%, 100%] in the spiral image. At this time, the first scanning starting position information can be mapped to the range of the ultrasonic annular image based on the mapping relationship. Thus, it can be determined that the starting position of the ROI region in the ultrasonic annular image along the scanning direction is 20%.
[0061] When the position indicated by the first scanning starting position information belongs to the range of the ultrasonic annular image and when the position indicated by the first scanning starting position information does not belong to the range of the ultrasonic annular image, the above technical solution uses different processing methods to determine the second scanning starting position information, which helps to accurately determine the second scanning starting position information and improve the calculation efficiency.
[0062] Exemplarily, the first target position information includes the first scanning end position information along the scanning direction of the ultrasonic annular array probe; based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, determining the second target position information of the adjusted region of interest on the ultrasonic annular image includes: judging whether the position indicated by the first scanning end position information belongs to the range of the ultrasonic annular image; when the position indicated by the first scanning end position information belongs to the range of the ultrasonic annular image, determining the first scanning end position information as the second scanning end position information; when the position indicated by the first scanning end position information does not belong to the range of the ultrasonic annular image, mapping the first scanning end position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning end position information; wherein, the second target position information includes the second scanning end position information.
[0063] Still taking Figure 4 the illustrated embodiment as an example to illustrate the determination of the second scanning end position information. As Figure 4As shown, the range of the ultrasonic annular image is [0%, 100%]. When the position indicated by the first scan termination position information is within the range of [0%, 100%] in the spiral image, it can be considered that the position indicated by the first scan termination position information belongs to the range of the ultrasonic annular image. At this time, the second scan termination position information can be directly determined based on the first scan termination position information. In one embodiment, the termination position of the ROI region in the spiral image along the scan direction is 90%, and this termination position is within the range of [0%, 100%] in the spiral image. In this case, it can be directly determined that the position indicated by the second scan termination position information is 90%. When the position indicated by the first scan termination position information is not within the range of [0%, 100%] in the spiral image, it can be considered that the position indicated by the first scan termination position information does not belong to the range of the ultrasonic annular image. At this time, the first scan termination position information can be mapped to the range of the ultrasonic annular image based on the mapping relationship to determine the second scan termination position information. In Figure 4 In the shown embodiment, the termination position of region A in the spiral image along the scan direction is 110%, and this termination position is not within the range of [0%, 100%] in the spiral image. That is, the position indicated by the first scan termination position information does not belong to the range of the ultrasonic annular image. In this case, the first scan termination position information can be mapped to the range of the ultrasonic annular image based on the mapping relationship. Thus, it can be determined that the termination position of the ROI region in the ultrasonic annular image along the scan direction is 10%.
[0064] The above technical solution determines the second scan termination position information by using corresponding processing methods when the position indicated by the first scan termination position information belongs to the range of the ultrasonic annular image and when the position indicated by the first scan termination position information does not belong to the range of the ultrasonic annular image, which helps to more accurately determine the second scan termination position information and improve the calculation efficiency.
[0065] Exemplarily, the adjustment amount is a position adjustment amount, and the position adjustment amount includes a scan position adjustment amount along the scan direction of the ultrasonic annular array probe; the initial position information includes a third scan start position information and a third scan termination position information along the scan direction of the ultrasonic annular array probe; the first target position information includes a first scan start position information and a first scan termination position information along the scan direction of the ultrasonic annular array probe; determining the first target position information after corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image based on the initial position information and the adjustment amount input by the user includes: calculating the sum of the position amount indicated by the third scan start position information and the scan position adjustment amount to determine the first scan start position information; calculating the sum of the position amount indicated by the third scan termination position information and the scan position adjustment amount to determine the first scan termination position information.
[0066] Optionally, the scanning position adjustment amount can be expressed as a percentage. The scanning position adjustment amount can be positive or negative. When the scanning position adjustment amount is positive, it indicates that the position of the ROI is moved forward along the scanning direction. When the scanning position adjustment amount is negative, it indicates that the position of the ROI is moved backward along the scanning direction. In one embodiment, the position indicated by the third scanning start position information of the ROI is 60%, and the position indicated by the third scanning end position information is 120%. When the scanning position adjustment amount input by the user is 20%, it can be determined that the position indicated by the first scanning start position information is 80%, and the position indicated by the first scanning end position information is 140%. When the scanning position adjustment amount input by the user is -30%, it can be determined that the position indicated by the first scanning start position information is 30%, and the position indicated by the first scanning end position information is 90%.
[0067] In the above technical solution, the first scanning start position information can be determined by calculating the sum of the position amount indicated by the third scanning start position information and the scanning position adjustment amount, and the first scanning end position information can be determined by calculating the sum of the position amount indicated by the third scanning end position information and the scanning position adjustment amount. This method is simple and can accurately determine the position of the region of interest on the spiral image after position adjustment, thereby providing a relatively accurate basis for calculating the position of the region of interest on the ultrasonic annular image in the subsequent step (i.e., step S330).
[0068] Exemplarily, the adjustment amount is a shape adjustment amount, and the shape adjustment amount includes a scanning shape adjustment amount along the scanning direction of the ultrasonic annular array probe; the initial position information includes the third scanning start position information and the third scanning end position information along the scanning direction of the ultrasonic annular array probe; the first target position information includes the first scanning start position information and the first scanning end position information along the scanning direction of the ultrasonic annular array probe; determining the first target position information after the corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image based on the initial position information and the adjustment amount input by the user includes: calculating the difference between the position amount indicated by the third scanning start position information and the scanning shape adjustment amount to determine the first scanning start position information; calculating the sum of the position amount indicated by the third scanning end position information and the scanning shape adjustment amount to determine the first scanning end position information.
[0069] Similar to the scanning position adjustment amount, the scanning shape adjustment amount can also be expressed as a percentage. The scanning shape adjustment amount can be a positive value or a negative value. In the solution of this example, when the scanning shape adjustment amount is a positive value, it means that both the starting position and the ending position of the ROI along the scanning direction move outward by the scanning shape adjustment amount. That is, the starting position of the ROI along the scanning direction moves in the reverse scanning direction by the scanning shape adjustment amount, and the ending position of the ROI along the scanning direction moves in the scanning direction by the scanning shape adjustment amount. When the scanning shape adjustment amount is a negative value, it means that both the starting position and the ending position of the ROI along the scanning direction move inward by the scanning shape adjustment amount. That is, the starting position of the ROI along the scanning direction moves in the scanning direction by the scanning shape adjustment amount, and the ending position of the ROI along the scanning direction moves in the reverse scanning direction by the scanning shape adjustment amount. In one embodiment, the position indicated by the third scanning starting position information of the ROI is 60%, and the position indicated by the third scanning ending position information is 120%. When the scanning shape adjustment amount input by the user is 20%, it can be determined that the position indicated by the first scanning starting position information is 40%, and the position indicated by the first scanning ending position information is 140%. When the scanning shape adjustment amount input by the user is -10%, it can be determined that the position indicated by the first scanning starting position information is 70%, and the position indicated by the first scanning ending position information is 110%.
[0070] In the above technical solution, the first scanning starting position information can be determined by calculating the difference between the position amount indicated by the third scanning starting position information and the scanning shape adjustment amount, and the first scanning ending position information can be determined by calculating the sum of the position amount indicated by the third scanning ending position information and the scanning shape adjustment amount. This solution has a simple method and can accurately determine the position of the region of interest on the spiral image after shape adjustment, so as to provide a relatively accurate basis for calculating the position of the region of interest on the ultrasonic annular image in the subsequent steps (i.e., step S330).
[0071] According to another aspect of the present application, a device for determining the position of a region of interest is provided. Figure 5 The schematic block diagram of the device for determining the position of the region of interest according to an embodiment of the present application is shown. As Figure 5 shown, the device 500 includes a first acquisition module 510, a first determination module 520, and a second determination module 530.
[0072] The first acquisition module 510 is configured to acquire the initial position information of the region of interest on the spiral image, where the spiral image is an image obtained by extending the ultrasonic annular image along the scanning direction of the ultrasonic annular array probe, and the ultrasonic annular image is an ultrasonic image acquired by using the ultrasonic annular array probe.
[0073] The first determination module 520 is configured to determine first target position information after corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image based on the initial position information and the adjustment amount input by the user, where the adjustment amount is a shape adjustment amount and / or a position adjustment amount.
[0074] The second determination module 530 is configured to determine second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information.
[0075] Exemplarily, the region of interest includes a first region of interest and a second region of interest, and there is an overlapping region between the first region of interest and the second region of interest; the apparatus 500 further includes: a second acquisition module, configured to acquire first position information of the first region of interest on the spiral image and second position information of the second region of interest on the spiral image; a third determination module, configured to determine third position information of the overlapping region on the spiral image based on the first position information and the second position information; a fourth determination module, configured to determine fourth position information of the overlapping region on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the third position information.
[0076] Exemplarily, the adjustment amount includes a first adjustment amount along the scanning direction of the ultrasonic annular array probe and a second adjustment amount along the depth direction of the ultrasonic annular image; the apparatus 500 further includes: a third acquisition module, configured to acquire the adjustment amount input by the user; a judgment module, configured to judge whether the first adjustment amount in the adjustment amount input by the user is equal to 0; the first acquisition module 510 is activated when the first adjustment amount in the adjustment amount input by the user is not equal to 0.
[0077] Exemplarily, the first target position information includes first scanning start position information along the scanning direction of the ultrasonic annular array probe; the second determination module 530 includes: a first judgment sub-module, configured to judge whether the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image; a first determination sub-module, configured to determine the first scanning start position information as second scanning start position information when the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image; a second determination sub-module, configured to map the first scanning start position information to the range of the ultrasonic annular image based on the mapping relationship when the position indicated by the first scanning target position information does not belong to the range of the ultrasonic annular image, so as to determine the second scanning start position information; where the second target position information includes the second scanning start position information.
[0078] Exemplarily, the first target position information includes first scan end position information along the scan direction of the ultrasonic annular array probe; the second determination module 530 includes: a second judgment sub-module, configured to judge whether the position indicated by the first scan end position information belongs to the range of the ultrasonic annular image; a third determination sub-module, configured to determine the first scan end position information as the second scan end position information when the position indicated by the first scan end position information belongs to the range of the ultrasonic annular image; a fourth determination sub-module, configured to map the first scan end position information to the range of the ultrasonic annular image based on the mapping relationship when the position indicated by the first scan end position information does not belong to the range of the ultrasonic annular image, so as to determine the second scan end position information; wherein, the second target position information includes the second scan end position information.
[0079] Exemplarily, the adjustment amount is a position adjustment amount, and the position adjustment amount includes a scan position adjustment amount along the scan direction of the ultrasonic annular array probe; the initial position information includes a third scan start position information and a third scan end position information along the scan direction of the ultrasonic annular array probe; the first target position information includes a first scan start position information and a first scan end position information along the scan direction of the ultrasonic annular array probe; the first determination module 520 includes: a first calculation sub-module, configured to calculate the sum of the position amount indicated by the third scan start position information and the scan position adjustment amount to determine the first scan start position information; a second calculation sub-module, configured to calculate the sum of the position amount indicated by the third scan end position information and the scan position adjustment amount to determine the first scan end position information.
[0080] Exemplarily, the adjustment amount is a shape adjustment amount, and the shape adjustment amount includes a scan shape adjustment amount along the scan direction of the ultrasonic annular array probe; the initial position information includes a third scan start position information and a third scan end position information along the scan direction of the ultrasonic annular array probe; the first target position information includes a first scan start position information and a first scan end position information along the scan direction of the ultrasonic annular array probe; the first determination module 520 includes: a third calculation sub-module, configured to calculate the difference between the position amount indicated by the third scan start position information and the scan shape adjustment amount to determine the first scan start position information; a fourth calculation sub-module, configured to calculate the sum of the position amount indicated by the third scan end position information and the scan shape adjustment amount to determine the first scan end position information.
[0081] According to another aspect of the present application, an electronic device is further provided. Figure 6 The schematic block diagram of an electronic device according to an embodiment of the present application is shown. As Figure 6As shown, the electronic device 600 includes a processor 610 and a memory 620. Among them, computer program instructions are stored in the memory 620, and when the computer program instructions are run by the processor 610, they are used to execute the above-mentioned method for determining the position of the region of interest.
[0082] When the computer program instructions are run by the processor 610, they are used to perform the following operations: obtaining initial position information of the region of interest on the spiral image, where the spiral image is an image obtained by extending an ultrasonic annular image along the scanning direction of an ultrasonic annular array probe, and the ultrasonic annular image is an ultrasonic image collected by using the ultrasonic annular array probe; based on the initial position information and the adjustment amount input by the user, determining first target position information after corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image, where the adjustment amount is a shape adjustment amount and / or a position adjustment amount; based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, determining second target position information of the adjusted region of interest on the ultrasonic annular image.
[0083] Exemplarily, the region of interest includes a first region of interest and a second region of interest, and there is an overlapping region between the first region of interest and the second region of interest; when the computer program instructions are run by the processor 610, they are further used to perform the following operations: obtaining first position information of the first region of interest on the spiral image and second position information of the second region of interest on the spiral image; based on the first position information and the second position information, determining third position information of the overlapping region on the spiral image; based on the mapping relationship between the spiral image and the ultrasonic annular image and the third position information, determining fourth position information of the overlapping region on the ultrasonic annular image.
[0084] Exemplarily, the adjustment amount includes a first adjustment amount along the scanning direction of the ultrasonic annular array probe and a second adjustment amount along the depth direction of the ultrasonic annular image; when the computer program instructions are run by the processor 610, they are further used to perform the following operations: obtaining the adjustment amount input by the user; determining whether the first adjustment amount in the adjustment amount input by the user is equal to 0; when the first adjustment amount in the adjustment amount input by the user is not equal to 0, the computer program instructions are used by the processor 610 to execute the step of obtaining the initial position information of the region of interest on the spiral image.
[0085] Exemplarily, the first target position information includes first scanning start position information along the scanning direction of the ultrasonic annular array probe; the step of determining the second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, which is executed when the computer program instructions are run by the processor 610, may include the following steps: determining whether the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image; when the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image, determining the first scanning start position information as the second scanning start position information; when the position indicated by the first scanning target position information does not belong to the range of the ultrasonic annular image, mapping the first scanning start position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning start position information; wherein, the second target position information includes the second scanning start position information.
[0086] Exemplarily, the first target position information includes first scanning end position information along the scanning direction of the ultrasonic annular array probe; the step of determining the second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, which is executed when the computer program instructions are run by the processor 610, may include the following steps: determining whether the position indicated by the first scanning end position information belongs to the range of the ultrasonic annular image; when the position indicated by the first scanning end position information belongs to the range of the ultrasonic annular image, determining the first scanning end position information as the second scanning end position information; when the position indicated by the first scanning end position information does not belong to the range of the ultrasonic annular image, mapping the first scanning end position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning end position information; wherein, the second target position information includes the second scanning end position information.
[0087] Exemplarily, the adjustment amount is a position adjustment amount, and the position adjustment amount includes a scanning position adjustment amount along the scanning direction of the ultrasonic annular array probe; the initial position information includes a third scanning start position information and a third scanning end position information along the scanning direction of the ultrasonic annular array probe; the first target position information includes a first scanning start position information and a first scanning end position information along the scanning direction of the ultrasonic annular array probe; the steps for determining the first target position information after the corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image based on the initial position information and the adjustment amount input by the user, which are executed when the computer program instructions are run by the processor 610, may include the following steps: calculating the sum of the position amount indicated by the third scanning start position information and the scanning position adjustment amount to determine the first scanning start position information; calculating the sum of the position amount indicated by the third scanning end position information and the scanning position adjustment amount to determine the first scanning end position information.
[0088] Exemplarily, the adjustment amount is a shape adjustment amount, and the shape adjustment amount includes a scanning shape adjustment amount along the scanning direction of the ultrasonic annular array probe; the initial position information includes a third scanning start position information and a third scanning end position information along the scanning direction of the ultrasonic annular array probe; the first target position information includes a first scanning start position information and a first scanning end position information along the scanning direction of the ultrasonic annular array probe; the steps for determining the first target position information after the corresponding shape adjustment and / or position adjustment of the region of interest on the spiral image based on the initial position information and the adjustment amount input by the user, which are executed when the computer program instructions are run by the processor 610, may include the following steps: calculating the difference between the position amount indicated by the third scanning start position information and the scanning shape adjustment amount to determine the first scanning start position information; calculating the sum of the position amount indicated by the third scanning end position information and the scanning shape adjustment amount to determine the first scanning end position information.
[0089] According to another aspect of the present application, a storage medium is further provided. Program instructions are stored on the storage medium, and the program instructions are used to execute the above-mentioned method for determining the position of the region of interest when running. The storage medium may, for example, include a storage component of a tablet computer, a hard disk of a personal computer, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
[0090] The program instructions are specifically used to perform the following operations during runtime: obtain the initial position information of the region of interest on the spiral image, where the spiral image is an image obtained by extending the ultrasonic annular image along the scanning direction of the ultrasonic annular array probe, and the ultrasonic annular image is an ultrasonic image acquired using the ultrasonic annular array probe; based on the initial position information and the adjustment amount input by the user, determine the first target position information of the region of interest on the spiral image after corresponding shape adjustment and / or position adjustment, where the adjustment amount is the shape adjustment amount and / or the position adjustment amount; based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, determine the second target position information of the adjusted region of interest on the ultrasonic annular image.
[0091] Exemplarily, the region of interest includes a first region of interest and a second region of interest, and there is an overlapping region between the first region of interest and the second region of interest; the program instructions are further used to perform the following operations during runtime: obtain the first position information of the first region of interest on the spiral image and the second position information of the second region of interest on the spiral image; based on the first position information and the second position information, determine the third position information of the overlapping region on the spiral image; based on the mapping relationship between the spiral image and the ultrasonic annular image and the third position information, determine the fourth position information of the overlapping region on the ultrasonic annular image.
[0092] Exemplarily, the adjustment amount includes a first adjustment amount along the scanning direction of the ultrasonic annular array probe and a second adjustment amount along the depth direction of the ultrasonic annular image; the program instructions are further used to perform the following operations during runtime: obtain the adjustment amount input by the user; determine whether the first adjustment amount in the adjustment amount input by the user is equal to 0; when the first adjustment amount in the adjustment amount input by the user is not equal to 0, the program instructions are used to perform the step of obtaining the initial position information of the region of interest on the spiral image during runtime.
[0093] Exemplarily, the first target position information includes the first scanning start position information along the scanning direction of the ultrasonic annular array probe; the step that the program instructions are used to perform during runtime of determining the second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information may include the following steps: determine whether the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image; when the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image, determine the first scanning start position information as the second scanning start position information; when the position indicated by the first scanning target position information does not belong to the range of the ultrasonic annular image, map the first scanning start position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning start position information; where the second target position information includes the second scanning start position information.
[0094] Exemplarily, the first target position information includes first scan termination position information along the scan direction of the ultrasonic annular array probe; the step of determining the second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, which the program instructions are used to execute during operation, may include the following steps: determining whether the position indicated by the first scan termination position information belongs to the range of the ultrasonic annular image; when the position indicated by the first scan termination position information belongs to the range of the ultrasonic annular image, determining the first scan termination position information as the second scan termination position information; when the position indicated by the first scan termination position information does not belong to the range of the ultrasonic annular image, mapping the first scan termination position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scan termination position information; wherein, the second target position information includes the second scan termination position information.
[0095] Exemplarily, the adjustment amount is a position adjustment amount, and the position adjustment amount includes a scan position adjustment amount along the scan direction of the ultrasonic annular array probe; the initial position information includes a third scan start position information and a third scan termination position information along the scan direction of the ultrasonic annular array probe; the first target position information includes a first scan start position information and a first scan termination position information along the scan direction of the ultrasonic annular array probe; the step of determining the first target position information of the region of interest after corresponding shape adjustment and / or position adjustment on the spiral image based on the initial position information and the adjustment amount input by the user, which the program instructions are used to execute during operation, may include the following steps: calculating the sum of the position amount indicated by the third scan start position information and the scan position adjustment amount to determine the first scan start position information; calculating the sum of the position amount indicated by the third scan termination position information and the scan position adjustment amount to determine the first scan termination position information.
[0096] Exemplarily, the adjustment amount is a shape adjustment amount, and the shape adjustment amount includes a scan shape adjustment amount along the scan direction of the ultrasonic annular array probe; the initial position information includes a third scan start position information and a third scan termination position information along the scan direction of the ultrasonic annular array probe; the first target position information includes a first scan start position information and a first scan termination position information along the scan direction of the ultrasonic annular array probe; the step of determining the first target position information of the region of interest after corresponding shape adjustment and / or position adjustment on the spiral image based on the initial position information and the adjustment amount input by the user, which the program instructions are used to execute during operation, may include the following steps: calculating the difference between the position amount indicated by the third scan start position information and the scan shape adjustment amount to determine the first scan start position information; calculating the sum of the position amount indicated by the third scan termination position information and the scan shape adjustment amount to determine the first scan termination position information.
[0097] Those of ordinary skill in the art can understand the specific implementation solutions of the above-mentioned apparatus, electronic device, and storage medium for determining the position of the region of interest by reading the relevant descriptions of the method for determining the position of the region of interest. For the sake of brevity, they will not be elaborated here.
[0098] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application. Those of ordinary skill in the art can make various changes and modifications therein without departing from the scope and spirit of the present application. All such changes and modifications are intended to be included within the scope of the present application as claimed by the appended claims.
[0099] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0100] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0101] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures, and technologies have not been shown in detail so as not to obscure the understanding of this specification.
[0102] Similarly, it should be understood that, in order to streamline the present application and assist in understanding one or more of the various aspects of the application, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be construed as reflecting the intention that the claimed present application requires more features than are expressly recited in each claim. Rather, as reflected by the corresponding claims, the point of the application is that the corresponding technical problems can be solved with fewer features than all the features of a single disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into the detailed description, where each claim itself serves as a separate embodiment of the present application.
[0103] Those skilled in the art will understand that, except for features that are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract, and drawings), as well as all the processes or units of any method or device so disclosed. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) can be replaced by an alternative feature that provides the same, equivalent, or similar purpose.
[0104] In addition, those skilled in the art will be able to understand that although some embodiments herein include certain features included in other embodiments rather than other features, the combination of features of different embodiments means that it is within the scope of this application and forms different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0105] Each component embodiment of this application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some modules in the region of interest position determination device according to the embodiments of this application. This application can also be implemented as a device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing this application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0106] It should be noted that the above embodiments illustrate this application rather than limit this application, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. This application can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim listing several devices, several of these devices can be embodied by the same hardware item. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names.
[0107] The above is only a specific implementation mode of the present application or an explanation of the specific implementation mode. The protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should be covered within the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for determining the position of a region of interest, characterized in that Including: Obtaining initial position information of a region of interest on a spiral image, where the spiral image is an image obtained by extending an ultrasonic annular image along a scanning direction of an ultrasonic annular array probe, and the ultrasonic annular image is an ultrasonic image collected by using the ultrasonic annular array probe; Based on the initial position information and an adjustment amount input by a user, determining first target position information of the region of interest after corresponding shape adjustment and / or position adjustment on the spiral image, where the adjustment amount is a shape adjustment amount and / or a position adjustment amount; Based on a mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, determining second target position information of the adjusted region of interest on the ultrasonic annular image.
2. The method for determining the position of the region of interest according to claim 1, wherein The region of interest includes a first region of interest and a second region of interest, and there is an overlapping region between the first region of interest and the second region of interest; The method further includes: Obtaining first position information of the first region of interest on the spiral image and second position information of the second region of interest on the spiral image; Based on the first position information and the second position information, determining third position information of the overlapping region on the spiral image; Based on the mapping relationship between the spiral image and the ultrasonic annular image and the third position information, determining fourth position information of the overlapping region on the ultrasonic annular image.
3. The method for determining the position of the region of interest according to claim 2, wherein The step of obtaining the first position information of the first region of interest on the spiral image and the second position information of the second region of interest on the spiral image is executed after the first region of interest and / or the second region of interest are adjusted based on the adjustment amount input by the user.
4. The method for determining the position of the region of interest according to any one of claims 1-3, characterized in that, The adjustment amount includes a first adjustment amount along the scanning direction of the ultrasonic annular array probe and a second adjustment amount along the depth direction of the ultrasonic annular image; The method further includes: Obtaining the adjustment amount input by the user; Judging whether the first adjustment amount in the adjustment amount input by the user is equal to 0; When the first adjustment amount in the adjustment amount input by the user is not equal to 0, executing the step of obtaining the initial position information of the region of interest on the spiral image.
5. The method for determining the position of the region of interest according to any one of claims 1-3, characterized in that, The first target position information includes first scanning start position information along the scanning direction of the ultrasonic annular array probe; The determining, based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information, of the second target position information of the adjusted region of interest on the ultrasonic annular image includes: Judging whether the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image; When the position indicated by the first scanning start position information belongs to the range of the ultrasonic annular image, determining the first scanning start position information as second scanning start position information; When the position indicated by the first scanning target position information does not belong to the range of the ultrasonic annular image, mapping the first scanning start position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning start position information; Wherein, the second target position information includes the second scanning start position information.
6. The method for determining the position of the region of interest according to any one of claims 1-3, characterized in that The first target position information includes first scanning end position information along the scanning direction of the ultrasonic annular array probe; Determining the second target position information of the adjusted region of interest on the ultrasonic annular image based on the mapping relationship between the spiral image and the ultrasonic annular image and the first target position information includes: Judging whether the position indicated by the first scanning end position information is within the range of the ultrasonic annular image; When the position indicated by the first scanning end position information is within the range of the ultrasonic annular image, determining the first scanning end position information as the second scanning end position information; When the position indicated by the first scanning end position information is not within the range of the ultrasonic annular image, mapping the first scanning end position information to the range of the ultrasonic annular image based on the mapping relationship to determine the second scanning end position information; Wherein, the second target position information includes the second scanning end position information.
7. The method for determining the position of the region of interest according to any one of claims 1 to 3, characterized in that, The adjustment amount is a position adjustment amount, and the position adjustment amount includes a scanning position adjustment amount along the scanning direction of the ultrasonic annular array probe; the initial position information includes a third scanning start position information and a third scanning end position information along the scanning direction of the ultrasonic annular array probe; the first target position information includes a first scanning start position information and a first scanning end position information along the scanning direction of the ultrasonic annular array probe; Determining the first target position information of the adjusted region of interest on the spiral image for corresponding shape adjustment and / or position adjustment based on the initial position information and the adjustment amount input by the user includes: Calculating the sum of the position amount indicated by the third scanning start position information and the scanning position adjustment amount to determine the first scanning start position information; Calculating the sum of the position amount indicated by the third scanning end position information and the scanning position adjustment amount to determine the first scanning end position information.
8. The method for determining the position of the region of interest according to any one of claims 1 to 3, characterized in that, The adjustment amount is a shape adjustment amount, and the shape adjustment amount includes a scanning shape adjustment amount along the scanning direction of the ultrasonic annular array probe; the initial position information includes a third scanning start position information and a third scanning end position information along the scanning direction of the ultrasonic annular array probe; the first target position information includes a first scanning start position information and a first scanning end position information along the scanning direction of the ultrasonic annular array probe; Determining the first target position information of the adjusted region of interest on the spiral image for corresponding shape adjustment and / or position adjustment based on the initial position information and the adjustment amount input by the user includes: Calculating the difference between the position amount indicated by the third scanning start position information and the scanning shape adjustment amount to determine the first scanning start position information; Calculating the sum of the position amount indicated by the third scanning end position information and the scanning shape adjustment amount to determine the first scanning end position information.
9. An apparatus for determining the position of a region of interest, characterized in that, Including: A first acquisition module, configured to acquire initial position information of a region of interest on a spiral image, where the spiral image is an image obtained by extending an ultrasonic annular image along a scanning direction of an ultrasonic annular array probe, and the ultrasonic annular image is an ultrasonic image acquired by using the ultrasonic annular array probe; A first determination module, configured to determine first target position information of the region of interest on the spiral image after corresponding shape adjustment and / or position adjustment based on the initial position information and an adjustment amount input by a user, where the adjustment amount is a shape adjustment amount and / or a position adjustment amount; A second determination module, configured to determine second target position information of the adjusted region of interest on the ultrasonic annular image based on a mapping relationship between the spiral image and the ultrasonic annular image and the first target position information.
10. An electronic device, characterized in that, It includes a processor and a memory, and computer program instructions are stored in the memory. When the computer program instructions are run by the processor, they are used to execute the method for determining the position of the region of interest according to any one of claims 1-8.
11. A storage medium, characterized in that, Program instructions are stored on the storage medium, and when the program instructions are run, they are used to execute the method for determining the position of the region of interest according to any one of claims 1-8.