Contour adjustment method for target area of medical image and electronic equipment

By using the drawing method in the vascular ultrasound image, the target path and curve segment are determined and the initial contour is adjusted, the problem of unsmooth contours in complex target areas is solved, and a more realistic and smooth target contour generation is achieved.

CN119478121APending Publication Date: 2025-02-18SHENZHEN INSIGHT MED CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411584886.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing method of determining the target area contour in vascular ultrasound images is difficult to deal with complex or irregular target areas, resulting in the drawn contours not smooth enough, and problems such as roughness and jagging.

Method used

Provide a drawing method, by receiving the user's drawing operation of the target area contour in the vascular ultrasound image, determine the initial contour, acquire multiple discrete points, determine the target path and the target curve segment, and adjust the initial contour based on these curve segments. To obtain a smooth target outline that fits the target area more closely.

Benefits of technology

This method can effectively overcome the problem that the input device is difficult to accurately control, and the generated target profile is more realistic and has improved smoothness, which is suitable for complex or irregular target areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119478121A_ABST
    Figure CN119478121A_ABST
Patent Text Reader

Abstract

The invention discloses a contour adjustment method for a target area of a medical image and electronic equipment. The method comprises the following steps: determining a target path of a plurality of discrete points in the target area; enabling each pair of adjacent two discrete points in the target path to be an adjacent point pair; obtaining two discrete points, except for the discrete points of the adjacent point pairs, in the target path and located on the two sides of the adjacent point pairs as two auxiliary points; two discrete point sets are determined, each discrete point set comprises an auxiliary point and an adjacent point pair, and the auxiliary points in the two discrete point sets are different auxiliary points in the two auxiliary points; determining an arc-shaped blending curve segment corresponding to each discrete point set based on each discrete point set; performing blending based on two blending curve segments corresponding to the two discrete point sets to obtain a target curve segment; and adjusting the initial contour based on the target curve segment to obtain a target contour. Therefore, the initial contour can be adjusted to obtain a smooth target contour which is more fit with the contour of the target area.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a patent application with an application date of 2022-04-13, an application number of 2022103851058, and an invention name of a drawing method, device and medium for adjusting a depicted contour. Technical Field

[0002] The present disclosure relates to the field of image technology, and in particular to a method for adjusting the contour of a target area of ​​a medical image and an electronic device. Background Art

[0003] Intravascular ultrasound (IVUS) can effectively help doctors observe the characteristics of lesions inside blood vessels. For example, the application of IVUS in clinical surgery can help determine the location and severity of lesions before surgery, and help analyze the nature of lesions. In addition, IVUS can also provide important information such as the diameter of the lumen when selecting the size of the stent.

[0004] At present, the information provided by IVUS images can be divided into two aspects: qualitative evaluation and quantitative measurement. Qualitative evaluation can include, for example, the determination of plaque properties, the presence of thrombosis, anatomical features, or the implantation of previous stents. Quantitative measurement can include, for example, measurements of lumen (i.e., endothelium), blood vessels (i.e., media), plaque load, or length of lesion area. Therefore, how to determine the target area in IVUS images is crucial. Existing methods for determining the target area generally use tracing methods and control point interpolation methods. The tracing method usually receives a signal (e.g., a mouse cursor or touch signal) output by the user through the operation of an input device (e.g., a mouse or touch screen), and draws the moving trajectory of the signal as the outline of the target area. The control point interpolation method generally selects several discrete control points of the outline of the target area first, and then interpolates and connects them.

[0005] Although the control point interpolation method is more convenient for drawing a relatively regular target area, the tracing method has more advantages than a relatively complex or irregular target area. However, since the input device (such as a mouse) is difficult to control accurately, it is inevitable that the drawn outline will not be smooth enough due to jitter when operating the input device. For example, there are problems such as roughness and jaggedness. Summary of the invention

[0006] The present disclosure is proposed in view of the above situation, and its purpose is to provide a drawing method, device and medium for adjusting the drawn contour, which can adjust the drawn contour to obtain a contour that is more in line with the target area and a smooth target contour.

[0007] To this end, the first aspect of the present disclosure provides a drawing method for adjusting a drawn contour, comprising: receiving a user's drawing operation on the contour of a target area in a vascular ultrasound image to determine an initial contour; receiving a user's selection operation on the initial contour or the contour to obtain a plurality of discrete points; determining a target path of the plurality of discrete points; and in the target path, determining a target curve segment of each pair of adjacent two discrete points in at least one pair of two adjacent discrete points, adjusting the initial contour based on the target curve segment to obtain a target contour, wherein each pair of two adjacent discrete points is an adjacent point pair, and determining the target curve segment of the adjacent point pair comprises: obtaining two discrete points other than the discrete points of the adjacent point pair in the target path as two auxiliary points, wherein each auxiliary point is adjacent to a discrete point of the adjacent point pair, determining two discrete point sets, wherein each discrete point set comprises an auxiliary point and the adjacent point pair, the auxiliary points in the two discrete point sets are different auxiliary points in the two auxiliary points, determining arc-shaped blending curve segments corresponding to each discrete point set based on each discrete point set, and blending based on the two blending curve segments corresponding to the two discrete point sets to obtain the target curve segment. In this case, by adjusting the arcs of adjacent discrete points to obtain the target curve segment passing through two adjacent discrete points, the drawn contour can be adjusted to obtain a target contour that is more in line with the contour of the target area and smoother. In addition, compared with the common tracing method and control point interpolation method, it has more advantages for more complex or irregular target areas, and can overcome the problem that the input device is difficult to be accurately controlled, resulting in an insufficiently smooth target contour.

[0008] In addition, in the drawing method involved in the first aspect of the present disclosure, optionally, determining the target path of the plurality of discrete points further includes: establishing a polar coordinate system; converting the coordinates of each of the plurality of discrete points into coordinates based on the polar coordinate system; and sorting the plurality of discrete points according to the angle of the coordinates of the polar coordinate system to determine the target path. In this case, the plurality of discrete points on the plane are sorted in a circular manner by the polar coordinate system, so that the target path obtained by the sorting can be more consistent with the characteristics of the contour of the target area. Thus, the connection relationship between the discrete points can be conveniently determined.

[0009] In addition, in the drawing method involved in the first aspect of the present disclosure, optionally, determining the arc-shaped blending curve segments corresponding to each discrete point set based on each discrete point set further includes: in the target circle corresponding to each discrete point set, using the arc from one discrete point of the adjacent point pair to another discrete point in a preset order and in a concave direction as the blending curve segment corresponding to each discrete point set, wherein the concave direction is determined by the position of the discrete points in each discrete point set and the preset order. In this way, the blending curve segment can be determined based on the concave direction.

[0010] In addition, in the drawing method involved in the first aspect of the present disclosure, optionally, the concave direction is determined by the position of the discrete points in each discrete point set and the preset order, further comprising: let the first vector be the vector corresponding to the first discrete point to the second discrete point in each discrete point set in the preset order, let the second vector be the vector corresponding to the first discrete point to the third discrete point in each discrete point set in the preset order; and obtain the cross product result of the first vector and the second vector as the third vector, if the direction of the third vector is upward, it means that the concave direction is counterclockwise, if the direction of the third vector is downward, it means that the concave direction is clockwise; or if the angle between the first vector and the second vector is less than 180°, it means that the concave direction is clockwise, if the angle between the first vector and the second vector is less than 180°, it means that the concave direction is counterclockwise. Thus, the concave direction can be conveniently determined by cross product. In addition, the concave direction can also be conveniently determined by the angle between the vectors.

[0011] In addition, in the drawing method involved in the first aspect of the present disclosure, optionally, blending the two blended curve segments corresponding to the two discrete point sets to obtain the target curve segment further comprises: obtaining the target curve segment based on the interpolation points between the discrete points of the adjacent point pairs, wherein the coordinates M of the i-th interpolation point between the discrete points of the adjacent point pairs are i Satisfy the formula: Wherein, N represents the number of interpolation points, U i represents the coordinates of the first i-th adjustment point on the first curve segment, V i represents the coordinates of the i-th second adjustment point on the second curve segment, the first curve segment is the adjustment curve segment corresponding to the discrete point set whose auxiliary points are adjacent to the starting point in the two discrete point sets, the second curve segment is the adjustment curve segment corresponding to the discrete point set whose auxiliary points are not adjacent to the starting point in the two discrete point sets, and the starting point is any discrete point in the adjacent point pair. In this case, the weight of the adjustment curve segment corresponding to the discrete point set closer to the corresponding discrete point in the adjacent point pair is higher, so that the transition between the obtained target curve segment and the adjacent curve segment can be smoother.

[0012] In addition, in the drawing method involved in the first aspect of the present disclosure, optionally, if the plurality of discrete points are coordinates of a rectangular coordinate system, the i-th blending point Z on each blending curve segment i (X i ,Y i ) satisfies the formula: X i =(X1-X o )×cos(i×step)-(Y1-Yo )×sin(i×step)+X o , Y i =(X1-X o )×sin(i×step)+(Y1-Y o )×cos(i×step)+Y o , where (X i ,Y i ) represents the i-th blending point Z on the blending curve segment i The coordinates of (X o ,Y o ) represents the coordinates of the center of the circle determined by the coordinates of three discrete points in the discrete point set corresponding to the blended curve segment, (X1, Y1) represents the coordinates of any discrete point in the adjacent point pair, and step represents the step size. In this way, the blended points of each blended curve segment can be determined.

[0013] In addition, in the drawing method involved in the first aspect of the present disclosure, optionally, adjusting the initial contour based on the target curve segment to obtain the target contour further includes: replacing the contour line corresponding to the adjacent point pair in the initial contour with the target curve segment; or merging the initial contour with the target curve segment to obtain the target contour. In this case, the contour line on the initial contour can be adjusted based on the target curve segment to obtain the target contour.

[0014] In addition, in the drawing method involved in the first aspect of the present disclosure, optionally, the target area includes at least one target area of ​​the tunica media and tunica intima of the blood vessel. Thus, the corresponding target outline can be determined by adjusting the initial outline of the tunica media and tunica intima of the blood vessel.

[0015] A second aspect of the present disclosure provides an electronic device, which includes at least one processing circuit, and the at least one processing circuit is configured to execute the steps of the drawing method described in the first aspect of the present disclosure.

[0016] A third aspect of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the steps of the drawing method described in the first aspect of the present disclosure are implemented.

[0017] According to the present disclosure, a drawing method, device and medium for adjusting a drawn outline are provided, which are capable of adjusting the drawn outline to obtain a target outline that better fits the outline of a target area. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The present disclosure will now be explained in further detail by way of example only with reference to the accompanying drawings, in which:

[0019] Figure 1 is a schematic diagram showing the application of the intravascular ultrasound system involved in the example of the present disclosure.

[0020] Figure 2 is a flowchart illustrating an example of a drawing method for adjusting a drawn outline according to an example of the present disclosure.

[0021] Figure 3A is a schematic diagram showing an initial profile involved in the examples of the present disclosure.

[0022] Figure 3B This is a diagram showing the examples of the present disclosure. Figure 3A Schematic diagram of the four discrete points of the initial contour.

[0023] Figure 4 It shows that based on Figure 3B Schematic diagram of the target contour obtained by adjusting the 4 discrete points in .

[0024] Figure 5 is a flowchart showing an example of determining a target curve segment for a pair of adjacent points involved in an example of the present disclosure.

[0025] Fig. 6A is a schematic diagram showing a target circle and a concave direction corresponding to a first discrete point set involved in an example of the present disclosure.

[0026] Figure 6B is a schematic diagram showing the deployment curve segments corresponding to the first discrete point set involved in the example of the present disclosure.

[0027] Fig. 7A is a schematic diagram showing a target circle and a concave direction corresponding to a second discrete point set involved in an example of the present disclosure.

[0028] Figure 7B is a schematic diagram showing the deployment curve segment corresponding to the second discrete point set involved in the example of the present disclosure.

[0029] Figure 8 Schematic diagram showing a first vector and a second vector corresponding to a first discrete point set involved in an example of the present disclosure.

[0030] Fig. 9 is a flow chart showing an example of performing adjustment based on two adjustment curve segments according to an example of the present disclosure.

[0031] Fig.10 It is a schematic diagram showing the adjustment based on two adjustment curve segments involved in the example of the present disclosure.

[0032] Fig.11 is a block diagram illustrating an example of a drawing system for adjusting a depicted outline according to an example of the present disclosure. DETAILED DESCRIPTION

[0033] Hereinafter, with reference to the accompanying drawings, the preferred embodiments of the present disclosure are described in detail. In the following description, the same symbols are given to the same parts, and repeated descriptions are omitted. In addition, the accompanying drawings are only schematic diagrams, and the ratio of the sizes of the parts to each other or the shapes of the parts, etc. may be different from the actual ones. It should be noted that the terms "including" and "having" in the present disclosure and any variations thereof, such as the processes, methods, systems, products or devices of a series of steps or units included or possessed are not necessarily limited to those steps or units clearly listed, but may include or have other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. All methods described in the present disclosure may be performed in any suitable order, unless otherwise indicated herein or clearly contradictory to the context.

[0034] The term "polar coordinate system" in the present disclosure may refer to a coordinate system consisting of a pole, a polar axis, and a polar diameter in a plane. Specifically, a point may be determined on the plane, called the pole, and a ray may be drawn from the pole, called the polar axis. In this case, the coordinates of any point in the plane may be expressed by the distance between the point and the pole and the angle between the point and the polar axis.

[0035] The terms "tracing method" and "delineation" in the present disclosure may refer to a method of receiving a signal output by a user operating an input device, and drawing the moving track of the signal as the outline of a target area. For example, taking a mouse as an input device, the tracing method may be used to receive a signal of a mouse cursor output by a user moving the mouse, and draw the moving track of the mouse cursor as the outline of a target area.

[0036] The example disclosed herein involves a scheme in which a plurality of discrete points are obtained on a contour line to be adjusted in an initial contour of a target area or a contour line to be drawn in a contour of a target area, a target path of the plurality of discrete points is determined, a target curve segment of at least one pair of adjacent two discrete points in the target path is determined, and the initial contour is adjusted based on the target curve segment to obtain the target contour, wherein two discrete points other than each pair of adjacent two discrete points are obtained as two auxiliary points, an adjusted curve segment for the two adjacent discrete points is obtained based on two groups of discrete points (that is, two subsequent discrete point sets) formed by the two auxiliary points and the two adjacent discrete points, and the two adjusted curve segments are adjusted to obtain the target curve segment for the two adjacent discrete points.

[0037] In addition, the above two auxiliary points may be any discrete points other than each pair of adjacent two discrete points in the target path. In some examples, the above two auxiliary points may be discrete points located on both sides of each pair of adjacent two discrete points in the target path. Preferably, each of the above two auxiliary points may be adjacent to one discrete point in each pair of adjacent two discrete points. That is, the above two auxiliary points may be discrete points located on both sides of each pair of adjacent two discrete points in the target path. In this case, the target curve segment can be determined based on the discrete points adjacent to each pair of adjacent two discrete points.

[0038] In some examples, in the target circle corresponding to each set of discrete points (i.e., an auxiliary point and an adjacent point pair), an arc from one of two adjacent discrete points to another discrete point in a preset order and in a concave direction can be used as a blending curve segment corresponding to the three discrete points. Thus, the blending curve segment can be determined based on the preset order and the concave direction. In some examples, the concave direction corresponding to the three discrete points can be determined based on the order of the three discrete points (i.e., the preset order) and using a cross product. Thus, the concave direction can be determined conveniently and quickly.

[0039] The following describes an example of the present disclosure using the contour of the target area in the vascular ultrasound image as an example, and such description does not limit the scope of the present disclosure. For those skilled in the art, other medical images can be used without limitation. In addition, the schemes involved in the examples of the present disclosure can also be used in other fields besides the medical field, such as the path planning field, to determine the smooth trajectory of a discrete point located within the target path among multiple discrete points.

[0040] The vascular ultrasound image (also referred to as an intravascular ultrasound image) involved in the examples of the present disclosure may be a medical image of the blood vessel obtained using IVUS technology. For example, the vascular ultrasound image may be obtained by the intravascular ultrasound system involved in the examples of the present disclosure.

[0041] Figure 1 is a schematic diagram showing an application of an intravascular ultrasound system 100 involved in an example of the present disclosure.

[0042] In some examples, such as Figure 1 As shown, the intravascular ultrasound system 100 may include an imaging device 110, a transmission shaft 120, and a motor 130. The imaging device 110 may be placed in a blood vessel and transmit imaging signals to the blood vessel wall while rotating to obtain a vascular ultrasound image in the blood vessel. The transmission shaft 120 may be connected to the imaging device 110 and extend outside the body along the blood vessel. The motor 130 may be located outside the body and may be connected to the transmission shaft 120, and actuate the imaging device 110 via the transmission shaft 120.

[0043] In some examples, the imaging device 110 can be introduced into a blood vessel and can transmit an imaging signal to the blood vessel wall. In some examples, the imaging device 110 can be an ultrasonic transducer, and the imaging signal can be an ultrasonic signal (e.g., an ultrasonic pulse). In some examples, the ultrasonic transducer can transmit an ultrasonic pulse to the blood vessel wall along the radial direction of the blood vessel and receive an ultrasonic echo with blood vessel information. In other embodiments, the imaging signal can also be an optical signal, an electromagnetic wave signal, etc.

[0044] In some examples, the motor 130 may actuate the imaging device 110 via the transmission shaft 120. In some examples, the motor 130 may actuate the imaging device 110 to rotate via the transmission shaft 120. In some examples, the motor 130 may actuate the imaging device 110 to move along the extension direction of the blood vessel via the transmission shaft 120.

[0045] In addition, the intravascular ultrasound system 100 may further include an outer tube (not shown). The outer tube may extend along the blood vessel to the outside of the body and has an inner cavity for accommodating the imaging device 110 and the transmission shaft 120. The imaging device 110 may rotate in the inner cavity of the outer tube.

[0046] In some examples, the intravascular ultrasound system 100 may also include a processor 140 (see Figure 1 ). The processor 140 may be used to process the vascular ultrasound image. In some examples, the intravascular ultrasound system 100 may further include a display 150 (see Figure 1 ). The display 150 can be used to display the vascular ultrasound image to facilitate the user to operate the vascular ultrasound image. For example, the user can draw the outline of the target area in the displayed vascular ultrasound image by moving the mouse. Specifically, the trajectory of the mouse cursor can be drawn and used as the initial outline of the target area.

[0047] In the present disclosure, there are multiple ways to determine the initial contour of the target area. In some examples, a user's operation of drawing the contour of the target area in the vascular ultrasound image may be received to determine the initial contour (described later).

[0048] In other examples, the initial contour may also be determined by the adjacent point connection method (described later) involved in the examples of the present disclosure. Specifically, multiple initial discrete points of the contour of the target area in the vascular ultrasound image and the initial target path corresponding to the multiple initial discrete points may be predetermined, and the target curve segment between each pair of adjacent discrete points in the initial target path may be determined based on the adjacent point connection method, thereby obtaining the initial contour corresponding to the contour of the target area. In addition, the initial target path may be used to represent the adjacency relationship between each initial discrete point, and the specific content may refer to the relevant description of the target path below.

[0049] In other examples, the initial contour can be obtained by automatically identifying the contour of the target area. Specifically, the contour of the target area can be identified by an edge detection algorithm to obtain the initial contour. For example, the edge detection algorithm can be a Canny algorithm, a Holistically-Nested Edge Detection (HED) algorithm, or a threshold segmentation algorithm (such as OTSU).

[0050] The following description takes the initial contour as the delineated contour as an example, which does not limit the present disclosure, and the adjustment of the initial contour determined by other means is also applicable. The examples of the present disclosure involve a drawing method for adjusting the delineated contour (sometimes also referred to as a drawing method, a contour drawing method, or a contour adjustment method, hereinafter referred to as a drawing method). The drawing method involved in the examples of the present disclosure can adjust the delineated contour to obtain a target contour that is more in line with the target area and smoother.

[0051] The drawing method for adjusting the drawn contour involved in the example of the present disclosure can receive the user's drawing operation on the contour of the target area in the vascular ultrasound image to determine the initial contour, receive the user's selection operation on the initial contour or the contour of the target area to obtain multiple discrete points, determine the target path of the multiple discrete points, and in the target path, determine the target curve segment between each pair of two adjacent discrete points in at least one pair of two adjacent discrete points, and then adjust the initial contour based on the target curve segment to obtain the target contour. In this way, the drawn contour can be adjusted to obtain a target contour that is more in line with the contour of the target area and smooth.

[0052] Figure 2 is a flowchart illustrating an example of a drawing method for adjusting a drawn outline according to an example of the present disclosure. Figure 3A is a schematic diagram showing an initial profile Q1 involved in the example of the present disclosure. Figure 3B This is a diagram showing the examples of the present disclosure. Figure 3A Schematic diagram of the four discrete points of the initial contour Q1.

[0053] like Figure 2 As shown, in this embodiment, the drawing method may include step S102. In step S102, an initial contour is determined.

[0054] In some examples, the initial contour may be closed. For example, for a vascular ultrasound image, since the target region is a cross-sectional region related to a blood vessel (e.g., the tunica media and tunica intima of a blood vessel), the initial contour may be a closed curve similar to a circle. As an example, Figure 3AAn example of the initial contour Q1 of the tunica media or tunica intima of a blood vessel of a blood vessel ultrasound image obtained by depiction is shown. In other examples, the initial contour may not be closed. For example, the initial contour may be a part of the contour of the corresponding target area. For another example, the contour of the target area itself is not closed, and thus the corresponding initial contour is not closed either.

[0055] In some examples, a user's operation of drawing the outline of the target area in the vascular ultrasound image may be received to determine the initial outline. That is, the initial outline of the target area may be obtained based on a drawing method (also referred to as a tracing method).

[0056] In some examples, a user's contour drawing operation on a target area in a vascular ultrasound image may be received to obtain a plurality of contour points, and an initial contour may be determined based on the plurality of contour points. For example, a user may control a mouse to move a mouse cursor along the contour of the target area to obtain a plurality of continuous contour points, and then the movement trajectory of the mouse cursor may be used as the initial contour to be drawn. That is, a mouse may be equivalent to a paintbrush. In some examples, the coordinates of the plurality of contour points may be coordinates of a rectangular coordinate system. In addition, the drawing operation may refer to a user controlling an input device to move a signal output by the input device along the contour of the target area.

[0057] As described above, there are many ways to determine the initial contour of the target area. That is, the method of determining the initial contour is not limited to the method in step S102. Therefore, the subsequent steps are also applicable to the adjustment of the initial contour determined by other methods.

[0058] Return to reference Figure 2 In this embodiment, the drawing method may include step S104. In step S104, a selection operation of a user on the initial outline or the outline of the target area may be received to obtain a plurality of discrete points. In addition, the number of the plurality of discrete points may be greater than 3. For example, the number of the plurality of discrete points may be 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18 or 20, etc. However, the examples disclosed herein are not limited thereto, and in other examples, the number of the plurality of discrete points may also be 3. In this case, the target curve segment corresponding to the three discrete points may be an arc on a circle corresponding to the three discrete points.

[0059] In this embodiment, the selection operation can be a user selecting multiple discrete points on the initial contour or the contour of the target area. For example, for using a mouse as an input device, a mouse event (e.g., single-click, double-click, or right-click, etc.) can be triggered to indicate that the points at the corresponding positions are selected as discrete points. In some examples, the selected multiple discrete points may include multiple discrete points of the contour to be adjusted and two discrete points on both sides of the multiple discrete points of the contour to be adjusted (e.g., two discrete points adjacent to the multiple discrete points of the contour to be adjusted). Among them, the contour to be adjusted can be a contour line to be adjusted on the initial contour or a contour line to be drawn in the contour of the target area. In this case, the contour to be adjusted can be adjusted based on the selected multiple discrete points later.

[0060] As an example, Figure 3B Shown in Figure 3A Schematic diagram of 4 discrete points obtained on the initial contour Q1 in FIG. The 4 discrete points may include discrete point D1, discrete point D2, discrete point D3 and discrete point D4. The following examples may be described by taking these 4 discrete points as an example.

[0061] In some examples, for a blood vessel ultrasound image, the target region may include at least one target region in the tunica media and tunica intima (also referred to as lumen) of the blood vessel. Thus, the corresponding target contour can be determined by adjusting the initial contours of the tunica media and tunica intima regions of the blood vessel.

[0062] Return to reference Figure 2 In this embodiment, the drawing method may include step S106. In step S106, the target path of the plurality of discrete points obtained in step S104 may be determined.

[0063] In this embodiment, the target path can be used to represent the adjacency relationship between each discrete point. That is, the target path can be used to determine the adjacent discrete points of each discrete point. As an example, Figure 3B The schematic diagram of the target path L1 of the above four discrete points is shown. It should be noted that the figure does not mean that the target path L1 is a connected line segment. Among them, discrete point D1 and discrete point D2, discrete point D2 and discrete point D3, discrete point D3 and discrete point D4 are two adjacent discrete points in the target path L1.

[0064] In addition, the target paths of the plurality of discrete points may be determined in any manner. In some examples, the target paths of the plurality of discrete points may be pre-set. For example, the setting of the adjacency relationship of the plurality of discrete points by the user may be received to determine the target paths of the plurality of discrete points. In some examples, the plurality of discrete points may be sorted to determine the target paths of the plurality of discrete points.

[0065] Preferably, the target path of multiple discrete points can be determined by a polar coordinate system. Specifically, a polar coordinate system can be established; the coordinates of each discrete point can be converted into coordinates based on the polar coordinate system; and the multiple discrete points can be sorted according to the angles of the coordinates of the polar coordinate system corresponding to each discrete point to determine the target path. In this case, the multiple discrete points on the plane are sorted in a circular manner by the polar coordinate system, so that the target path obtained by sorting can be more consistent with the characteristics of the contour of the target area. As a result, the connection relationship (also called connection order) between the discrete points can be conveniently determined.

[0066] In some examples, the coordinates of each discrete point may be a coordinate of a rectangular coordinate system. In some examples, for multiple discrete points with coordinates of a rectangular coordinate system, in establishing a polar coordinate system, the coordinates of the geometric centers of the multiple discrete points may be obtained, and the coordinates of the geometric centers may be used as the poles, and the preset direction may be used as the positive direction of the polar axis to establish a polar coordinate system. In this way, a polar coordinate system may be established.

[0067] In addition, the preset direction may be any direction. Preferably, the preset direction may be horizontal to the right. In addition, for a plurality of discrete points of coordinates in a rectangular coordinate system, the preset direction may also be the positive direction of the X-axis. It should be noted that, although the polar coordinate system is converted when determining the target path, the subsequent steps (e.g., step S108) may still use the original coordinate system (e.g., rectangular coordinate system) as needed.

[0068] In this embodiment, in the target path, any three adjacent discrete points may not be collinear. Thus, the target circle can be determined based on the three discrete points later. In some examples, after determining the target path of multiple discrete points, it can be determined whether there are three collinear discrete points in the target path. If so, a prompt message can be displayed to guide the user to reselect the discrete points. Thus, the target circle can be determined based on the three non-collinear discrete points later.

[0069] Figure 4 It shows that based on Figure 3B Schematic diagram of the target contour Q2 obtained by adjusting the four discrete points in .

[0070] Return to reference Figure 2In this embodiment, the drawing method may include step S108. In step S108, in the target path, a target curve segment between each pair of two adjacent discrete points in at least one pair of two adjacent discrete points may be determined, and the initial contour may be adjusted based on the target curve segment to obtain the target contour. In this case, a more accurate target contour may be obtained based on the initial contour (i.e., the rough contour) and the target curve segment of the target area. In addition, for the method of determining the initial contour based on depiction, the advantages of the two methods of obtaining the initial contour by depiction (i.e., the tracing method) and determining the target curve segment based on discrete points are combined. Thus, the depicted contour may be adjusted to obtain a target contour that is more in line with the contour of the target area and smooth.

[0071] For the convenience of description below, each pair of two adjacent discrete points may sometimes be referred to as an adjacent point pair, and a target curve segment between two adjacent discrete points may be referred to as a target curve segment.

[0072] In some examples, when adjusting the initial contour based on the target curve segment, the contour line corresponding to the adjacent point pair in the initial contour can be replaced by the target curve segment to obtain the target contour. In this case, the contour line on the initial contour can be adjusted based on the target curve segment to obtain the target contour. Specifically, the contour line corresponding to the adjacent point pair in the initial contour can be deleted, and the initial contour after deleting the contour line corresponding to the adjacent point is spliced ​​with the target curve segment to obtain the target contour. In some examples, when adjusting the initial contour based on the target curve segment, the initial contour can also be spliced ​​with the target curve segment to obtain the target contour. In this case, the target contour can be obtained by splicing.

[0073] In some examples, when adjusting the initial contour based on the target curve segment, if there is a contour line corresponding to an adjacent point pair in the initial contour, the contour line corresponding to the adjacent point pair in the initial contour can be replaced with the target curve segment to obtain the target contour; otherwise, the initial contour and the target curve segment can be spliced ​​to obtain the target contour.

[0074] As an example, Figure 4 It shows that based on Figure 3B The target contour Q2 is obtained by adjusting the four discrete points in . The target curve segment Q3 is the curve segment between the adjacent discrete points D2 and D3 (described in detail later).

[0075] In some examples, the at least one pair of two adjacent discrete points may include each pair of two adjacent discrete points in the discrete points other than the two ends of the target path (hereinafter referred to as the target discrete point set). In some examples, the target curve segment between each pair of two adjacent discrete points may be determined in sequence starting from any discrete point in the target discrete point set along any direction of the target path. That is, the step of determining the target curve segment between different two adjacent discrete points may be repeated until the two adjacent discrete points in the target discrete point set are traversed. Thus, the target curve segment between each pair of two adjacent discrete points in the target discrete point set can be determined.

[0076] In addition, the examples disclosed herein do not limit the adjustment method of the contour lines corresponding to the discrete points at both ends of the target path and an adjacent discrete point (that is, the contour lines corresponding to the discrete points at both ends). In some examples, the contour lines corresponding to the discrete points at both ends may not be adjusted. In some examples, the contour lines corresponding to the discrete points at each end may be adjusted using arcs on a circle jointly determined by the discrete point at each end and the two discrete points adjacent to the discrete point. In some examples, discrete points may continue to be selected to adjust the contour lines corresponding to the discrete points at both ends. For example, continue to refer to Figure 4 If you need to adjust the contour line between discrete point D1 and discrete point D2 in the target contour Q2, you can select another discrete point on the opposite side of discrete point D1 and discrete point D2. If you need to adjust the contour line between discrete point D3 and discrete point D4 in the target contour Q2, you can select another discrete point on the opposite side of discrete point D4 and discrete point D3.

[0077] In some examples, in step S108, the target curve segment between two adjacent discrete points (i.e., adjacent point pairs) may be determined using the adjacent point connection method described below. In this case, the target curve segment between two adjacent discrete points is determined by combining discrete points on both sides of the two adjacent discrete points (e.g., discrete points adjacent to both sides), so that the transition between the target curve segment and the adjacent contour line is smoother, and a target contour that is more in line with the contour of the target area and smoother can be obtained.

[0078] The following describes in detail a method for determining a target curve segment for a pair of adjacent points (ie, an adjacent point connection method) according to an example of the present disclosure in conjunction with the accompanying drawings. Figure 5 is a flowchart showing an example of determining a target curve segment for a pair of adjacent points involved in an example of the present disclosure.

[0079] The adjacent point connection method involved in the example of the present disclosure can determine the target curve segment between two discrete points in the middle (that is, two adjacent discrete points) based on four discrete points. Preferably, the four discrete points can be adjacent discrete points in the target path. In this case, the target curve segment between the two adjacent discrete points is determined in combination with the discrete points before and after the two adjacent discrete points, which can make the transition between the target curve segment and the adjacent contour line smoother, and can obtain a target curve segment that is more in line with the contour of the target area and smoother.

[0080] like Figure 5 As shown, the adjacent point connection method may include step S202. In step S202, four discrete points including adjacent point pairs may be obtained.

[0081] In some examples, if the target path has been determined, four discrete points can be determined based on the target path. In some examples, the four discrete points may include an adjacent point pair and two auxiliary points. In some examples, two discrete points other than the discrete points of the adjacent point pair in the target path may be obtained as two auxiliary points to determine the four discrete points. In some examples, two discrete points on both sides (e.g., front and back) of the adjacent point pair in the target path may be obtained as two auxiliary points to determine the four discrete points.

[0082] Preferably, two discrete points adjacent to the adjacent point pair in the target path may be obtained as two auxiliary points to determine four discrete points. Specifically, two discrete points other than the discrete points of the adjacent point pair in the target path may be obtained as two auxiliary points, wherein each of the two auxiliary points may be adjacent to a discrete point of the adjacent point pair (that is, the two auxiliary points may not belong to the adjacent point pair). Thus, four discrete points including the adjacent point pair can be obtained. For example, the two auxiliary points may include a first auxiliary point and a second auxiliary point, wherein the first auxiliary point and the second auxiliary point may not belong to the adjacent point pair.

[0083] Take the case where the auxiliary points are discrete points located on both sides of the adjacent point pair and adjacent to the adjacent point pair, such as Figure 4 As shown, for the adjacent point pair of discrete point D2 and discrete point D3, the corresponding four discrete points may include discrete point D1, discrete point D2, discrete point D3 and discrete point D4, wherein discrete point D1 and discrete point D4 may be two auxiliary points.

[0084] In other examples, a user selection operation on discrete points may be received to determine four discrete points. For example, the user may select auxiliary points of adjacent point pairs. In other examples, a corresponding coordinate system (e.g., a polar coordinate system) may be selected to sort the discrete points to determine four discrete points. In other examples, the adjacency relationship between discrete points may also be preset. That is, the four discrete points corresponding to each adjacent point pair may be preset.

[0085] Continue to refer Figure 5 The adjacent point connection method may include step S204. In step S204, two discrete point sets may be determined based on the four discrete points obtained in step S202.

[0086] In addition, each discrete point set may include one of the two auxiliary points and an adjacent point pair, and the auxiliary points in the two discrete point sets may be different auxiliary points in the two auxiliary points. Specifically, the two discrete point sets may include a first discrete point set and a second discrete point set, the first discrete point set may include a first auxiliary point and an adjacent point pair, and the second discrete point set may include a second auxiliary point and an adjacent point pair. Thus, two discrete point sets can be obtained.

[0087] For example, Figure 4 As shown, for the adjacent point pair of discrete point D2 and discrete point D3, the first discrete point set may include discrete point D1, discrete point D2 and discrete point D3, and the second discrete point set may include discrete point D2, discrete point D3 and discrete point D4. It should be noted that, unless otherwise specified, the following examples involving the first discrete point set and the second discrete point set may assume that the first discrete point set includes discrete point D1, discrete point D2 and discrete point D3, and the second discrete point set includes discrete point D2, discrete point D3 and discrete point D4.

[0088] Fig. 6A is a schematic diagram showing a target circle U1 and a concave direction corresponding to a first discrete point set involved in an example of the present disclosure. Figure 6B is a schematic diagram showing a deployment curve segment Q4 corresponding to a first discrete point set involved in an example of the present disclosure.

[0089] Continue to refer Figure 5 The adjacent point connection method may include step S206. In step S206, the blending curve segments corresponding to the discrete point sets may be determined based on the discrete point sets. In addition, the shape of the blending curve segments may be an arc.

[0090] In some examples, the blending curve segments corresponding to each discrete point set may be determined based on the concave directions corresponding to each discrete point set. In some examples, the blending curve segments corresponding to each discrete point set may be determined based on the target circle and the concave directions corresponding to each discrete point set. The blending curve segments corresponding to each discrete point set may be arcs between discrete points of adjacent point pairs and belonging to the target circle.

[0091] In addition, the target circle corresponding to each discrete point set can be determined by the discrete points in each discrete point set. In some examples, the center coordinates of the circle can be determined by the coordinates of three discrete points in each discrete point set, and then the target circle can be determined based on the center coordinates. As an example, Fig. 6A The target circle U1 jointly determined by the discrete points D1, D2 and D3 in the first discrete point set is shown.

[0092] In addition, the concave direction corresponding to each discrete point set can be determined by the position of the discrete points in each discrete point set (that is, the position of the discrete points in the target area) and the preset order. Among them, the concave direction can be a clockwise direction or a counterclockwise direction. That is, the concave direction can be the spatial distribution direction of the discrete points in each discrete point set under the preset order. Specifically, the concave direction can be divided into a clockwise direction and a counterclockwise direction according to the position of the discrete points in each discrete point set and the preset order. Among them, the preset order can be an arbitrary order based on the adjacency relationship between the discrete points in each discrete point set, which can be selected as needed.

[0093] For example, Fig. 6A As shown, for the first discrete point set, the preset order may be a first order S1 in which discrete point D1→discrete point D2→discrete point D3 are sequentially arranged, or the preset order may be a second order S2 in which discrete point D3→discrete point D2→discrete point D1 are sequentially arranged. Fig. 6A It can be seen that for the first order S1, the first concave direction F1 corresponding to the first discrete point set may be clockwise, and for the second order S2, the second concave direction F2 corresponding to the first discrete point set may be counterclockwise.

[0094] In some examples, the preset order corresponding to the discrete point sets of all adjacent point pairs may be consistent. That is, a unified order is used. For example, the preset order may be determined by any direction along the target path. In other examples, the preset order corresponding to each discrete point set may be inconsistent.

[0095] As described above, the blending curve segments corresponding to each discrete point set can be determined based on the concave directions corresponding to each discrete point set. Specifically, an arc can be selected from two arcs located between discrete points of adjacent point pairs in the target circle corresponding to each discrete point set based on the concave directions as the blending curve segments corresponding to each discrete point set.

[0096] In some examples, in the target circle corresponding to each discrete point set, the arc from one discrete point of the adjacent point pair to another discrete point in a preset order and in the concave direction can be used as the blending curve segment corresponding to each discrete point set. In this way, the blending curve segment can be determined based on the concave direction. For example, Figure 6B As shown, an arc from discrete point D2 to discrete point D3 (ie, adjacent point pairs) in the first discrete point set in the first order S1 and in the first concave direction F1 (ie, clockwise direction) can be used as the blending curve segment Q4 corresponding to the first discrete point set.

[0097] The target circle, concave direction and blending curve segment corresponding to the first discrete point set are described above by taking the first discrete point set as an example. Similarly, the target circle, concave direction and blending curve segment corresponding to the second discrete point set can be obtained. Fig. 7A is a schematic diagram showing the target circle U2 and the concave direction corresponding to the second discrete point set involved in the example of the present disclosure. Figure 7B is a schematic diagram showing the deployment curve segment Q5 corresponding to the second discrete point set involved in the example of the present disclosure.

[0098] like Fig. 7A As shown, for the second discrete point set, the preset order may be a third order S3 in which discrete point D2 → discrete point D3 → discrete point D4 is sequentially arranged, or the preset order may be a fourth order S4 in which discrete point D4 → discrete point D3 → discrete point D2 is sequentially arranged. Fig. 7A It can be seen that for the third order S3, the third concave direction F3 corresponding to the second discrete point set may be counterclockwise, and for the fourth order S4, the fourth concave direction F4 corresponding to the second discrete point set may be clockwise.

[0099] In addition, examples of the blended curve segments corresponding to the second discrete point set can be found in Figure 7B .like Figure 7B As shown, an arc from discrete point D2 to discrete point D3 (ie, adjacent point pairs) in the second discrete point set in a third preset order S3 and in a third concave direction F3 (ie, counterclockwise) can be used as the blending curve segment Q5 corresponding to the second discrete point set.

[0100] As described above, the concave direction corresponding to each discrete point set can be determined by the position and preset order of the discrete points in each discrete point set. Those skilled in the art can adjust the method for obtaining the concave direction as needed without deviating from the definition of the concave direction. Preferably, the examples of the present disclosure also provide two methods for obtaining the concave direction.

[0101] Figure 8 is a diagram showing the first vector corresponding to the first discrete point set involved in the example of the present disclosure and the second vector Schematic diagram of .

[0102] In some examples, both methods for obtaining the concave direction may first determine the first vector and the second vector corresponding to each discrete point set.

[0103] Specifically, the first vector may be a vector corresponding to the first discrete point to the second discrete point in each discrete point set in the above-mentioned preset order, and the second vector may be a vector corresponding to the first discrete point to the third discrete point in each discrete point set in the above-mentioned preset order. In addition, the first vector and the second vector may have the same starting point. Taking the first discrete point set as an example, Figure 8 As shown, in the first order S1 (that is, discrete point D1→discrete point D2→discrete point D3), the vector corresponding to the first discrete point D1 to the second discrete point D2 in the first discrete point set can be the first vector The vectors corresponding to the first discrete point D1 to the third discrete point D3 in the first discrete point set can be the second vector

[0104] In some examples, in the first method for obtaining the concave direction, after determining the first vector and the second vector corresponding to each discrete point set, the concave direction can be obtained based on the cross product.

[0105] Specifically, the cross product result of the first vector and the second vector can be obtained as the third vector. If the direction of the third vector is upward (which can also be described as if the third vector is positive), it can be indicated that the concave direction is counterclockwise, and if the direction of the third vector is downward (which can also be described as if the third vector is negative), it can be indicated that the concave direction is clockwise. Thus, the concave direction can be conveniently determined by cross product.

[0106] In some examples, in the second method for obtaining the concave direction, after determining the first vector and the second vector corresponding to each discrete point set, the concave direction can be obtained based on the angle between the vectors.

[0107] Specifically, if the angle between the first vector and the second vector is less than 180° when rotated clockwise, it can be said that the concave direction is clockwise; if the angle between the first vector and the second vector is less than 180° when rotated counterclockwise, it can be said that the concave direction is counterclockwise. Thus, the concave direction can be determined by the angle between the vectors. Taking the first discrete point set as an example, Figure 8 As shown, the first vector Rotate clockwise to the second vector The angle θ1 is less than 180°, so the concave direction can be clockwise. That is, the arc from discrete point D2 to discrete point D3 in the clockwise direction can be taken as the deployment curve segment corresponding to the first discrete point set (that is, Figure 6B Thus, the concave direction can be conveniently determined by the angle between the vectors.

[0108] Return to reference Figure 5 The adjacent point connection method may include step S208. In step S208, the two blending curve segments corresponding to the two discrete point sets may be blended to obtain the target curve segment of the adjacent point pair.

[0109] As described above, two discrete point sets can be determined. Therefore, based on the two discrete point sets, one blending curve segment for the adjacent point pair can be determined respectively, wherein the two endpoints of each blending curve segment in the two blending curve segments are both discrete points of the adjacent point pair. Thus, two blending curve segments corresponding to the two discrete point sets can be obtained.

[0110] In some examples, in the blending, the target curve segment can be obtained by setting the proportions of the two blending curve segments at different positions. In some examples, the target curve segment can be obtained based on the interpolation points between the discrete points of the adjacent point pairs. Specifically, in the blending, the contribution of the blending points on the two blending curve segments to the interpolation points forming the target curve segment can be adjusted by weights to obtain the target curve segment.

[0111] As described above, the coordinates of the center of the circle can be determined by the coordinates of the three discrete points in each discrete point set, and then the target circle can be determined. In some examples, the arc angle of the blending curve segment corresponding to each discrete point set can be determined based on the center coordinates, and then the step length can be determined based on the arc angle and the number of blending points, and then the blending points can be evenly inserted with the step length. That is, the blending point corresponding to the blending curve segment can be regarded as a discrete point of an adjacent point pair, along the blending curve segment, around the center coordinates, and rotated to another discrete point according to the step length. In some examples, the step length can be the arc angle divided by the number of blending points.

[0112] In some examples, the arc angle of the blended curve segment may be the absolute value of the difference between the arc angles of two discrete points in the adjacent point pair.

[0113] In some examples, if the discrete points are coordinates of a rectangular coordinate system, the i-th blending point Z on each blending curve segment is i (X i ,Y i ) can satisfy the formula:

[0114] X i =(X1-X o)×cos(i×step)-(Y1-Y o )×sin(i×step)+X o ,

[0115] Y i =(X1-X o )×sin(i×step)+(Y1-Y o )×cos(i×step)+Y o ,

[0116] Among them, (X i ,Y i ) can represent the i-th blending point Z on the blending curve segment i The coordinates of (X o ,Y o ) can represent the coordinates of the center of the circle (that is, the coordinates of the center of the circle determined by the coordinates of the three discrete points in the discrete point set corresponding to the blend curve segment), (X1, Y1) can represent the coordinates of any discrete point in the adjacent point pair, and step can represent the step size. In this way, the blend points of each blend curve segment can be determined.

[0117] The following combination Fig. 9 An exemplary method for blending based on two blend curve segments is described. Fig. 9 is a flow chart showing an example of performing adjustment based on two adjustment curve segments according to an example of the present disclosure. Fig.10 It is a schematic diagram showing the adjustment based on two adjustment curve segments involved in the example of the present disclosure.

[0118] like Fig. 9 As shown, blending based on two blending curve segments may include step S302. In step S302, any discrete point in the adjacent point pair may be used as a starting point.

[0119] Continue to refer Fig. 9 , performing blending based on two blending curve segments may include step S304. In step S304, starting from the above starting point, a preset number of first blending points distributed along the first curve segment and a preset number of second blending points distributed along the second curve segment may be determined. The two blending curve segments may include a first curve segment and a second curve segment. That is, the first curve segment may be one of the two blending curve segments, and the second curve segment may be another of the two blending curve segments.

[0120] In some examples, the first deployment point and the second deployment point may be evenly distributed on the first curve segment and the second curve segment, respectively. Specifically, starting from the above starting point, a preset number (e.g., 200) of first deployment points may be evenly inserted on the first curve segment, and a preset number of second deployment points may be evenly inserted on the second curve segment. That is, starting from the same starting point, the same number of deployment points may be evenly inserted on the first curve segment and the second curve segment.

[0121] Continue to refer Fig. 9 , the blending based on the two blending curve segments may include step S306. In step S306, the interpolation points between the discrete points of the adjacent point pairs may be determined based on the first blending point and the second blending point, and the target curve segment of the adjacent point pairs may be obtained based on the interpolation points. In this case, the blending points are obtained based on the two blending curve segments determined by the four discrete points corresponding to the adjacent point pairs, and the interpolation points are obtained based on the blending points, and then the target curve segment is obtained. In this way, the target curve segment can be made to fit the contour of the target area more closely. In some examples, the interpolation points may be connected in sequence (for example, they may be connected by fitting) to obtain the target curve segment of the adjacent point pairs.

[0122] In some examples, the corresponding first and second deployment points (i.e., at the same position relative to the above starting point or with the same index relative to the above starting point) can be weighted (i.e., multiplied by weights) respectively to obtain corresponding interpolation points. In some examples, the weights corresponding to the first and second deployment points can be negatively correlated. That is, the higher the weight of the first deployment point, the lower the weight corresponding to the second deployment point, or the higher the weight of the second deployment point, the lower the weight corresponding to the first deployment point. In some examples, the sum of the weight of the first deployment point and the weight of the second deployment point can be equal to 1.

[0123] In some examples, the first curve segment may be a blended curve segment corresponding to a discrete point set whose auxiliary points in the two discrete point sets are adjacent to the above-mentioned starting point, and the second curve segment may be a blended curve segment corresponding to a discrete point set whose auxiliary points in the two discrete point sets are not adjacent to the above-mentioned starting point. Fig.10 As shown, if the discrete point D2 is taken as the starting point, the adjustment curve segment Q4 corresponding to the discrete point set (i.e., the first discrete point set) of the auxiliary point (i.e., the discrete point D1) and the discrete point D2 adjacent to each other can be the first curve segment, and the adjustment curve segment Q5 corresponding to the discrete point set (i.e., the second discrete point set) of the auxiliary point (i.e., the discrete point D4) and the discrete point D2 not adjacent to each other can be the second curve segment. Similarly, if the discrete point D3 is taken as the starting point, the adjustment curve segment Q5 can be the first curve segment, and the adjustment curve segment Q4 can be the second curve segment.

[0124] In this case, starting from the above starting point, the weight of the first deployment point can be linearly reduced, and the weight of the second deployment point can be linearly increased. Take the target area in the vascular ultrasound image as an example. In some examples, the weight of the first deployment point can be (Ni) / N, and the weight of the second deployment point can be i / N, where N can represent the above preset number and i can represent the index of the interpolation point. Specifically, the coordinate M of the i-th interpolation point between the discrete points of the adjacent point pair is i Can satisfy the formula:

[0125]

[0126] Wherein, N may represent the above-mentioned preset number (that is, the number of interpolation points or the number of blending points of each blending curve segment), U i It can represent the coordinates of the i-th first adjustment point (that is, the i-th adjustment point on the first curve segment), V i The coordinates of the i-th second adjustment point (i.e., the i-th adjustment point on the second curve segment) can be represented. In this case, the weight of the adjustment curve segment corresponding to the discrete point set closer to the corresponding discrete point in the adjacent point pair is higher, so that the transition between the obtained target curve segment and the adjacent curve segment can be smoother. In addition, the method of obtaining the coordinates of the interpolation points involved in the target area in the above-mentioned vascular ultrasound image is also applicable to the target area in other images that is generally circular, or the target area that is generally circular and deformed by the push and pull of several points.

[0127] As an example, Fig.10 The target curve segment Q3 is obtained by blending the blended curve segment Q4 corresponding to the first discrete point set and the blended curve segment Q5 corresponding to the second discrete point set.

[0128] It should be noted that, when applied to a target area other than a vascular ultrasound image, the weights of the first adjustment point and the second adjustment point can be adjusted according to the shape of the target, which does not represent a limitation to the present disclosure.

[0129] The following combination Fig.11 The present disclosure relates to a drawing system 200 for adjusting a contour (sometimes referred to as a drawing system 200, a contour drawing system, or a contour adjustment system, hereinafter referred to as the drawing system 200). The drawing system 200 may be used to implement the above-mentioned drawing method. It should be noted that, unless otherwise specified, the above-mentioned description of the drawing method is also applicable to the drawing system 200. Fig.11 is a block diagram showing an example of a drawing system 200 for adjusting a drawn outline according to an example of the present disclosure.

[0130] In some examples, such as Fig.11As shown, the drawing system 200 may include a drawing module 202 , a selection module 204 , a path planning module 206 , and an adjacent point connection module 208 .

[0131] In this embodiment, the drawing module 202 can be used to determine the initial contour. For details, please refer to the relevant description in step S102, which will not be repeated here.

[0132] In this embodiment, the selection module 204 can be used to receive a selection operation of the user on the initial contour or the contour of the target area to obtain multiple discrete points. For details, please refer to the relevant description in step S104, which will not be repeated here.

[0133] In this embodiment, the path planning module 206 can be used to determine the target path of multiple discrete points. For details, please refer to the relevant description in step S106, which will not be repeated here.

[0134] In this embodiment, the adjacent point connection module 208 can be used to determine the target curve segment between each pair of adjacent two discrete points in at least one pair of adjacent two discrete points in the target path, and adjust the initial contour based on the target curve segment to obtain the target contour. For details, please refer to the relevant description in step S108, which will not be repeated here.

[0135] The present disclosure also relates to an electronic device (not shown), which may include at least one processing circuit. The at least one processing circuit is configured to execute one or more steps in the above-mentioned drawing method.

[0136] The present disclosure also relates to a computer-readable storage medium, which may store at least one instruction, and when the at least one instruction is executed by a processor, one or more steps in the above-mentioned drawing method are implemented.

[0137] The drawing method, device and medium for adjusting the depicted contour involved in the example of the present disclosure depicts the initial contour of the target area in the vascular ultrasound image, selects multiple discrete points from the initial contour and determines the corresponding target path, and in the target path, determines the target curve segment between each pair of two adjacent discrete points in at least one pair of two adjacent discrete points, adjusts the initial contour based on the target curve segment to obtain the target contour, and in determining the target curve segment of the two adjacent discrete points, obtains the adjacent four discrete points corresponding to the two adjacent discrete points, obtains the blending curve segment for the two adjacent discrete points based on the first three discrete points and the last three discrete points of the four discrete points, and blends the two blending curve segments to obtain the target curve segment of the two adjacent discrete points. In this case, by blending the arcs of the adjacent discrete points to obtain the target curve segment passing through the two adjacent discrete points, the depicted contour can be adjusted to obtain a target contour that is more in line with the contour of the target area and smoother. In addition, compared with the common tracing method and control point interpolation method, the scheme of the example of the present disclosure has more advantages for more complex or irregular target areas, and can overcome the problem that the input device is difficult to be accurately controlled, resulting in the target contour being not smooth enough. In addition, the concave direction is determined by using the cross product, thereby making it possible to determine the concave direction conveniently and quickly.

[0138] Although the present disclosure is specifically described above in conjunction with the accompanying drawings and examples, it is to be understood that the above description does not limit the present disclosure in any form. Those skilled in the art may modify and change the present disclosure as needed without departing from the essential spirit and scope of the present disclosure, and these modifications and changes all fall within the scope of the present disclosure.

Claims

1. A method for adjusting the contour of a target area of ​​a medical image, for adjusting the initial contour of the target area, characterized in that: The contour adjustment method includes: determining a target path of multiple discrete points in the target area; in the target path, making each pair of two adjacent discrete points an adjacent point pair; obtaining two discrete points in the target path other than the discrete points of the adjacent point pair as two auxiliary points, wherein the two auxiliary points are located on both sides of the adjacent point pair in the target path; determining two discrete point sets, wherein each of the discrete point sets includes one auxiliary point and the adjacent point pair, and the auxiliary points in the two discrete point sets are different auxiliary points in the two auxiliary points; determining arc-shaped blending curve segments corresponding to each discrete point set based on each discrete point set in the two discrete point sets; blending based on the two blending curve segments corresponding to the two discrete point sets to obtain a target curve segment; and adjusting the initial contour based on the target curve segment to obtain a target contour.

2. The contour adjustment method according to claim 1, characterized in that: In the target circle corresponding to each discrete point set, an arc from one discrete point of the adjacent point pair to another discrete point in a preset order and in the concave direction is used as the adjustment curve segment corresponding to each discrete point set, wherein the concave direction is determined by the position of the discrete points in each discrete point set and the preset order.

3. The contour adjustment method according to claim 2, characterized in that: Let the first vector be the vector corresponding to the first discrete point to the second discrete point in each discrete point set in the preset order, let the second vector be the vector corresponding to the first discrete point to the third discrete point in each discrete point set in the preset order, obtain the cross product result of the first vector and the second vector as the third vector, if the direction of the third vector is upward, it means that the depression direction is counterclockwise, if the direction of the third vector is downward, it means that the depression direction is clockwise; or if the angle between the first vector and the second vector rotated clockwise is less than 180°, it means that the depression direction is clockwise, if the angle between the first vector and the second vector rotated counterclockwise is less than 180°, it means that the depression direction is counterclockwise.

4. The contour adjustment method according to claim 1, characterized in that: The two blending curve segments include a first curve segment and a second curve segment, the first curve segment being a blending curve segment corresponding to a discrete point set in which the auxiliary points in the two discrete point sets are adjacent to the starting point, and the second curve segment being a blending curve segment corresponding to a discrete point set in which the auxiliary points in the two discrete point sets are not adjacent to the starting point, and the starting point is any discrete point in the adjacent point pair; the contribution of the blending point pairs on the two blending curve segments to the interpolation points of the target curve segment is adjusted by weights to obtain the target curve segment, wherein the weight of the first blending point in the first curve segment decreases linearly, and the weight of the second blending point in the second curve segment increases linearly.

5. The contour adjustment method according to claim 4, characterized in that: The medical image is a vascular ultrasound image, the weight of the first adjustment point in the first curve segment is (Ni) / N, and the weight of the second adjustment point in the second curve segment is i / N, wherein N represents the number of the interpolation points and i represents the index of the interpolation point.

6. The contour adjustment method according to claim 1, characterized in that: The plurality of discrete points are discrete points on the initial contour or the contour of the target area.

7. The contour adjustment method according to any one of claims 1 to 6, characterized in that: Each of the two auxiliary points is adjacent to a discrete point of the adjacent point pair.

8. The contour adjustment method according to any one of claims 1 to 6, characterized in that: The initial contour is determined in at least one of the following ways: receiving a user's operation of drawing the outline of the target area to determine the initial outline; Obtaining the initial contour by automatically identifying the contour of the target area; Predetermine a plurality of initial discrete points of the contour of the target area and an initial target path corresponding to the plurality of initial discrete points, determine a target curve segment between each pair of adjacent two discrete points in the initial target path, and then obtain the initial contour corresponding to the contour of the target area.

9. The contour adjustment method according to any one of claims 1 to 6, characterized in that: The medical image is a blood vessel ultrasound image, and the target region includes at least one target region of the tunica media and the tunica intima of the blood vessel.

10. An electronic device, characterized in that: The method comprises at least one processing circuit configured to perform the contour adjustment method according to any one of claims 1 to 9.