Medical image parameter measurement method and device and electronic equipment
Through the finite state machine management measurement events, the drawing state switching inside the graph is stripped, cursor point setting and multiple preset state switching are realized, which solves the problem of high complexity in the graphics drawing logic in the prior art, simplifies graphics management, and improves system scalability.
Patent Information
- Application Number
- CN202411676444.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-14
AI Technical Summary
Among the existing medical image parameter measurement methods, the logic complexity of the graph drawing is higher, especially for complex graphics, which increases the difficulty of development and measurement time.
Through the finite state machine, the switching of the drawing state and the measurement event are stripped out of the inside of the figure, and the switching between the cursor point setting and multiple preset states is realized until the determination of the target figure is completed and the parameter measurement results are output.
It reduces the logical complexity of graphics drawing during parameter measurement, simplifies the logic management within the graphics, improves the readability, maintainability and scalability of the system, and reduces the complexity of adding new graphics.
Smart Images

Figure CN119625118A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of medical technology, and in particular relates to a method, device and electronic equipment for measuring parameters of medical images. Background Art
[0002] Medical imaging technology is a technology that uses a certain medium (such as X-rays, electromagnetic fields, ultrasound, etc.) to interact with the human body, and to show the structure and density of internal tissues and organs in the form of medical images, so that diagnostic physicians can make judgments based on the information provided by the medical images. During or after the acquisition of medical images, doctors usually need to draw a graph of the lesion site of interest in the image and measure the image parameters according to the drawn graph. The current measurement method is mostly based on the characteristics of each graph, using branch logic or table lookup to achieve logical management of the drawing process. For some complex graphs, the logic complexity is relatively high. Summary of the invention
[0003] The embodiments of the present application provide a method, device and electronic device for measuring parameters of medical images, which can reduce the logic complexity of graphics drawing during the parameter measurement process.
[0004] A first aspect of an embodiment of the present application provides a method for measuring parameters of a medical image, comprising: displaying a medical image; in response to a measurement event triggered on the medical image, setting a cursor point according to the measurement event, and switching a drawing state among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, determining a target graphic according to cursor point information of the set cursor point, and outputting a parameter measurement result corresponding to the target graphic.
[0005] In some embodiments of the first aspect, a measurement event is triggered on a medical image, and according to the measurement event, a cursor point is set, and the drawing state is switched among multiple preset states, until the current drawing state is switched to an end state among the multiple preset states, and according to the cursor point information of the set cursor point, a target graphic is determined, and a parameter measurement result corresponding to the target graphic is output, including: determining the total amount of cursor points required for the target image parameter to be measured; in response to the measurement event, setting the cursor point according to the measurement event, and switching the drawing state among multiple preset states; when the number of cursor points of the set cursor point is equal to the total amount of cursor points, switching the current drawing state to the end state, and determining the target graphic according to the cursor point information of the set cursor point; calculating the target image parameter according to the target graphic, and obtaining and outputting the parameter measurement result.
[0006] In some embodiments of the first aspect, the total number of cursor points is N, N>0; the multiple preset states further include a start state and an intermediate state; the measurement event includes a cursor point setting event and a next event, and the next event is used to switch to the end state in the intermediate state; in response to the measurement event, the cursor point is set according to the measurement event, and the drawing state is switched among the multiple preset states, including: in response to the cursor point setting event, the first cursor point is set according to the cursor point setting event, and the current drawing state is switched to the start state; when the current drawing state is the start state, if the number of cursor points of the set cursor points is less than the total number of cursor points, the current drawing state is switched to the intermediate state; when the current drawing state is the intermediate state, in response to receiving the cursor point setting event again and / or receiving the next event, the remaining N-1 cursor points are set.
[0007] In some embodiments of the first aspect, the measurement event includes a switching event for a cursor point; when the current drawing state is the start state, if the number of cursor points of the set cursor points is less than the total number of cursor points, the parameter measurement method also includes: initializing the remaining N-1 cursor points according to the cursor point information of the first cursor point; in response to receiving the cursor point setting event again and / or receiving the next step event, setting the remaining N-1 cursor points, including: in response to the switching event and the cursor point setting event for the cursor point, adjusting and setting the first cursor point and the initialized N-1 cursor points, until the setting of the N-1 cursor points is completed, and in response to the next step event, setting the Nth cursor point.
[0008] In some embodiments of the first aspect, the measurement event includes a backoff event and a cursor point switching event; when the current drawing state is an intermediate state, the parameter measurement method further includes: in response to the backoff event, canceling the setting of the previous cursor point, if the previous cursor point is the first cursor point, switching the current drawing state to the start state, otherwise, maintaining the intermediate state; and / or, when the current drawing state is an end state, the parameter measurement method further includes: in response to the cursor point switching event or the backoff event, canceling the setting of the previous cursor point, if the previous cursor point is the first cursor point, switching the current drawing state to the start state, otherwise, switching the current drawing state to the intermediate state.
[0009] In some embodiments of the first aspect, the measurement event includes a cursor movement event; when the current drawing state is an intermediate state or a start state, the parameter measurement method further includes: in response to the cursor movement event, displaying a preview graphic according to the real-time position of the cursor; calculating the target image parameters according to the preview graphic, and obtaining and displaying a preview measurement result.
[0010] In some embodiments of the first aspect, determining the total amount of cursor points required for a target image parameter to be measured includes: displaying a plurality of measurement tools, where different measurement tools are used to measure different image parameters; and in response to a selection operation of a target measurement tool among the plurality of measurement tools, determining a target image parameter corresponding to the target measurement tool and the total amount of cursor points corresponding to the target measurement tool.
[0011] In some implementations of the first aspect, after displaying the medical image, the method further includes: identifying a region of interest in the medical image, and displaying a recommended graphic based on the region of interest.
[0012] A second aspect of an embodiment of the present application provides a parameter measurement device for a medical image, comprising: an image display unit, for displaying a medical image; a parameter measurement unit, for responding to a measurement event triggered on the medical image, setting a cursor point according to the measurement event, and switching a drawing state among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, determining a target graphic according to cursor point information of the set cursor point, and outputting a parameter measurement result corresponding to the target graphic.
[0013] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the medical image parameter measurement method as described in any one of the first aspects are implemented.
[0014] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned medical image parameter measurement method are implemented.
[0015] A fifth aspect of the embodiments of the present application provides a computer program product, including a computer program. When the computer program is executed, the parameter measurement method of the medical image described in the first aspect is executed.
[0016] In an embodiment of the present application, by displaying a medical image, in response to a measurement event triggered on the medical image, a cursor point is set according to the measurement event, and the drawing state is switched among multiple preset states, until the current drawing state is switched to an end state among the multiple preset states, and then the target graphic is determined according to the cursor point information of the set cursor point, and the parameter measurement result corresponding to the target graphic is output. This method separates the switching of the drawing state and the measurement event from the inside of the graphic, which helps to reduce the logical complexity of graphic drawing during the parameter measurement process. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 It is a schematic diagram of the implementation process of the medical image parameter measurement method provided in the embodiment of the present application;
[0019] Figure 2 is a schematic diagram of a finite state machine provided in an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of a specific implementation process of calculating parameter measurement results provided in an embodiment of the present application;
[0021] Figure 4 This is a schematic diagram of a specific implementation process of setting a cursor point provided in an embodiment of the present application;
[0022] Figure 5 It is a structural schematic diagram of a medical image parameter measurement device provided in an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are protected by the present application.
[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0026] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0027] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0028] Medical imaging technology is a technology that uses a certain medium (such as X-rays, electromagnetic fields, ultrasound, etc.) to interact with the human body, and uses medical images to show the structure and density of internal tissues and organs in the human body, so that diagnostic physicians can make judgments based on the information provided by the medical images. During or after the acquisition of medical images, doctors usually need to draw a graph of the lesion site of interest in the image and measure the image parameters according to the drawn graph.
[0029] The current measurement method is to use branch logic or table lookup based on the characteristics of each graphic to achieve logical management of the drawing process. Each graphic needs to write the logic of the measurement action internally, and for complex graphics, the logic complexity is high. Moreover, each graphic needs to write the corresponding logic, and similar logic will be repeated between different graphics, which also increases the logic complexity in disguise.
[0030] In view of this, the present application proposes a parameter measurement method for medical images, which can manage measurement events through a finite state machine, separate the switching of drawing states and measurement events from the graphics, and help reduce the logical complexity of graphics drawing during parameter measurement.
[0031] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0032] Please refer to Figure 1 , Figure 1 A schematic diagram of the implementation process of a medical image parameter measurement method provided in an embodiment of the present application is shown. The method can be applied to an electronic device, which can be a computer, a smart phone, a medical device specifically used for image processing, or other smart devices, and the present application does not impose any restrictions on this.
[0033] In some embodiments of the present application, the electronic device may be installed with an image processing program, which is a computer program inside the electronic device and is used to measure image parameters of medical images.
[0034] Specifically, the above-mentioned method for measuring parameters of medical images may include the following steps S101 to S102.
[0035] Step S101, displaying medical images.
[0036] The medical images are images that require image parameter measurement, including but not limited to ultrasound images and X-ray images. By displaying the medical images, the user can operate on the displayed medical images so that the electronic device can obtain the region of interest that requires image parameter measurement.
[0037] This application does not limit the source of medical images. For example, the electronic device can display the medical images obtained by real-time scanning of the medical device through the interface of the image processing program, or retrieve the medical images taken by the patient in the past from the image archiving device and display them.
[0038] Step S102, in response to a measurement event triggered on a medical image, a cursor point is set according to the measurement event, and a drawing state is switched among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, and a target graphic is determined according to the cursor point information of the set cursor point, and a parameter measurement result corresponding to the target graphic is output.
[0039] In an embodiment of the present application, a user may trigger a measurement event on a displayed medical image through an input device. The input device includes, but is not limited to, a trackball, a touch screen, a knob, and a button. The measurement event is used to set a cursor point on a medical image to delineate a region of interest on the medical image. The cursor point is a mark point obtained by the cursor stopping and marking during the movement of the cursor on the medical image.
[0040] In an embodiment of the present application, the electronic device can implement the management of measurement events by configuring a finite state machine. Specifically, a finite state machine is a mathematical model used to describe a system with a finite number of states and inputs. In an embodiment of the present application, the finite state machine can be configured with multiple preset states, each of which represents a drawing state in the drawing process. The multiple preset states may include at least an end state, and the end state indicates that the setting of the cursor points required for the graphics is completed. In response to the input of the measurement event, the electronic device can switch the drawing state among the multiple preset states of the finite state machine. Among them, each preset state can be switched to other preset states when a specific measurement event occurs. Until the current drawing state is switched to the end state, it indicates that a sufficient number of set cursor points have been acquired.
[0041] As an example, see Figure 2, the various preset states of the finite state machine may include a start state, an intermediate state, and an end state. Among them, the start state indicates a state where the cursor point setting has started. The intermediate state indicates a state where the cursor point setting has started but the graphic drawing has not been completed. Each preset state can be switched to other preset states when a specific measurement event occurs. For example, the start state can be switched to the intermediate state, the intermediate state can be switched to the end state, the start state can be switched to the end state, the end state can be switched to the intermediate state, and the intermediate state can be switched to the start state. After the current drawing state is switched to the end state, it means that the graphic drawing is completed.
[0042] In some embodiments of the present application, the measurement event may include one or more of the following:
[0043] The cursor point setting event MEAS_SET is used to set the cursor point;
[0044] The next event MEAS_NEXT is used to switch to the next drawing state. The next event is used to switch to the middle state at the start state and to switch to the end state at the middle state.
[0045] The backoff event MEAS_BACK is used to switch to the start state;
[0046] The previous event MEAS_FORTH is used to switch to the previous drawing state;
[0047] The switching events for the cursor points include: the backward switching event MEAS_GRAB_DOWN, which is used to switch to the next cursor point, and can be used to switch to the first cursor point during the process of adjusting and setting the last cursor point in the intermediate state, and in the end state, the forward switching event MEAS_GRAB_UP, which is used to switch to the previous cursor point, and the direct switching event MEAS_SWITCH, which is used to switch to a specific cursor point;
[0048] The cursor movement event MEAS_MOVE is used to move the cursor.
[0049] Accordingly, in Figure 2 In the finite state machine shown, the measurement events that each state needs to respond to are:
[0050] Start state: respond to cursor point setting event MEAS_SET, next step event MEAS_NEXT, cursor move event MEAS_MOVE;
[0051] Intermediate state: respond to cursor point setting event MEAS_SET, next step event MEAS_NEXT, back step event MEAS_BACK, previous step event MEAS_FORTH, backward switching event MEAS_GRAB_DOWN, forward switching event MEAS_GRAB_UP, direct switching event MEAS_SWITCH, cursor moving event MEAS_MOVE;
[0052] End state: respond to the back event MEAS_BACK, the previous step event MEAS_FORTH, the backward switching event MEAS_GRAB_DOWN, and the forward switching event MEAS_GRAB_UP.
[0053] After the current drawing state is switched to the end state, the target figure to be drawn can be determined according to the cursor point information of the set cursor point. The target figure is also the region of interest for which image parameter measurement is required. At this time, the parameter measurement results of the image parameters can be output according to the target image.
[0054] The target graphics may include but are not limited to: single point, line segment, triangle, circle, ellipse, quadrilateral, polygon, trace, tetrahedron, cube, ball, ellipsoid and other specific shapes (such as Simpson, semi-automatic pelvic floor, etc.). The cursor point can be used as the endpoint of the target graphics, the axis endpoint (such as the endpoint of the major and minor axis of the ellipse, the radius endpoint of the circle).
[0055] Image parameters can characterize the properties of human tissue in medical images, including but not limited to: depth, speed, distance, area, volume, circumference, and angle. Each target image can correspond to at least one image parameter. For example, a single point can be used to output the depth and speed corresponding to the point; a line segment can be used to output the distance, time, and tracing data corresponding to the line segment; other graphics such as triangles and circles can be used to output the corresponding area, volume, angle, etc.
[0056] The present application does not limit the output method of the parameter measurement results. For example, the parameter measurement results can be displayed on the aforementioned medical image or outside the medical image, or can be output through voice broadcast or other existing output methods.
[0057] In an embodiment of the present application, by displaying a medical image, in response to a measurement event triggered on the medical image, a cursor point is set according to the measurement event, and the drawing state is switched among multiple preset states, until the current drawing state is switched to an end state among the multiple preset states, and then the target graphic is determined according to the cursor point information of the set cursor point, and the parameter measurement result corresponding to the target graphic is output. This method separates the switching of the drawing state and the measurement event from the inside of the graphic, which helps to reduce the logical complexity of graphic drawing during the parameter measurement process.
[0058] In addition, by managing measurement events through a finite state machine, the internal logic of each graph becomes very clear and concise. When a new graph needs to be added, there is no need to repeatedly implement similar logic of existing graphs. Any new graph can be drawn by switching between multiple preset states, which reduces the complexity of adding new graphs and enhances the readability, maintainability and scalability of the logic. Figure 2 When the finite state machine is shown, numerous measurement events can be managed through three preset states, which reduces the development difficulty and shortens the development cycle.
[0059] In some embodiments of the present application, Figure 3 As shown, a measurement event is triggered on a medical image, a cursor point is set according to the measurement event, and a drawing state is switched among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, a target graphic is determined according to the cursor point information of the set cursor point, and a parameter measurement result corresponding to the target graphic is output, which may include: steps S301 to S304.
[0060] Step S301, determining the total number of cursor points required for the target image parameter to be measured.
[0061] The target image parameter refers to the image parameter to be measured. For each image parameter, a different number of cursor points are required. According to the target image parameter to be measured, the total number of cursor points required for the target image parameter to be measured can be determined. For example, if the depth of a specific position needs to be measured, one cursor point is required, and the total number of cursor points is 1; if the distance between two positions needs to be measured, two cursor points are required, and the total number of cursor points is 2.
[0062] In some embodiments of the present application, step S301 may include: displaying a plurality of measurement tools, wherein different measurement tools are used to measure different image parameters. In response to a selection operation of a target measurement tool among the plurality of measurement tools, determining a target image parameter corresponding to the target measurement tool and a total amount of cursor points corresponding to the target measurement tool.
[0063] For example, a list of measurement tools may be displayed around the aforementioned medical image, wherein a plurality of measurement tools are displayed in the list of measurement tools, and the user may click on the desired measurement tool in the list of measurement tools to trigger a selection operation for the target measurement tool. At this time, the electronic device may, according to the selection operation, use the measurement tool selected by the user as the target measurement tool, and obtain the target image parameters corresponding to the target measurement tool and the total number of cursor points corresponding to the target measurement tool.
[0064] Step S302, in response to a measurement event, setting a cursor point according to the measurement event, and switching a drawing state among a plurality of preset states.
[0065] Step S303, when the number of cursor points that have been set is equal to the total number of cursor points, the current drawing state is switched to the end state, and the target graphic is determined according to the cursor point information of the set cursor points.
[0066] That is to say, the electronic device can set the cursor point according to the measurement event and switch the drawing state among multiple preset states until the number of cursor points that have been set is equal to the total number of cursor points, indicating that the graphic drawing has been completed, and the current drawing state is switched to the end state, and the target graphic is determined based on the cursor point information of the set cursor point.
[0067] Step S304, calculating the target image parameters according to the target graphic, obtaining and outputting the parameter measurement results.
[0068] The calculation method of the target image parameters can be implemented according to the existing method, and this application does not limit this. For example, for depth, it can be obtained based on the pixel coordinates of the cursor point in the medical image; for distance, it can be obtained based on the pixel coordinate distance between two cursor points; for area and volume, it can be calculated based on the contour coordinates or three-dimensional area range formed by the target image.
[0069] pass Figure 3 The method shown can set a corresponding number of cursor points according to the measurement requirements of image parameters, which can improve the effectiveness of image drawing.
[0070] Specifically, the multiple preset states also include a start state and an intermediate state; the measurement event may include a cursor point setting event and a next step event; at this time, if Figure 4 As shown, assuming that the total number of cursor points is N, N>0, in some embodiments of the present application, in response to a measurement event, the cursor point is set according to the measurement event, and the drawing state is switched among multiple preset states, which may include: step S401 to step S403.
[0071] Step S401, in response to a cursor point setting event, setting a first cursor point according to the cursor point setting event, and switching the current drawing state to a start state.
[0072] Specifically, in response to the cursor point setting event MEAS_SET, the point where the current cursor is located may be set as the first cursor point, the cursor point information of the first cursor point may be recorded, and the current drawing state may be switched to the start state.
[0073] Step S402, when the current drawing state is the start state, if the number of cursor points that have been set is less than the total number of cursor points, the current drawing state is switched to the intermediate state.
[0074] Specifically, when the current drawing state is the start state, if the number of cursor points of the set cursor points is equal to the total number of cursor points, then as in step S303, the current drawing state can be switched to the end state, and the target graphic is determined according to the cursor point information of the set cursor points. If the number of cursor points of the set cursor points is less than the total number of cursor points, the current drawing state is switched to the intermediate state so as to continue to set the cursor points.
[0075] Step S403: when the current drawing state is an intermediate state, in response to receiving a cursor point setting event again and / or receiving a next step event, setting the remaining N-1 cursor points.
[0076] Specifically, in response to the cursor point setting event MEAS_SET and / or the next step event MEAS_NEXT, the remaining N-1 cursor points of the N cursor points required for the target image parameters can be set, thereby obtaining N cursor points. At this time, the number of cursor points that have been set is equal to the total number of cursor points, and as in step S303, the current drawing state can be switched to the end state, and the target graphic can be determined according to the cursor point information of the set cursor points.
[0077] In some embodiments of the present application, the measurement event may include a switching event for a cursor point; when the current drawing state is the start state, if the number of cursor points of the set cursor points is less than the total number of cursor points, the parameter measurement method also includes: initializing the remaining N-1 cursor points according to the cursor point information of the first cursor point.
[0078] Correspondingly, in response to receiving a cursor point setting event again and receiving a next step event, setting the remaining N-1 cursor points may include: in response to a cursor point switching event and a cursor point setting event, adjusting and setting the first cursor point and the initialized N-1 cursor points until the setting of the N-1 cursor points is completed, and then, in response to the next step event, setting the Nth cursor point.
[0079] Among them, initialization represents the cursor point information of the remaining N-1 cursor points. For example, the cursor point information of the first cursor point can be used as the cursor point information of the other N-1 cursor points. The cursor point information of the remaining N-1 cursor points needs to be adjusted and set through a specific measurement event. After completing the setting of the N-1 cursor points, in response to the next step event MEAS_NEXT, the Nth cursor point can be set. At this time, the number of cursor points that have been set is equal to the total number of cursor points. Then, as in step S303, the current drawing state can be switched to the end state, and the target graphic can be determined based on the cursor point information of the set cursor points.
[0080] Of course, if N=2, when the current drawing state is an intermediate state, the second cursor point can be set through the cursor point setting event MEAS_SET or the next step event MEAS_NEXT. At this time, the number of cursor points that have been set is equal to the total number of cursor points. Then, as in step S303, the current drawing state can be switched to the end state, and the target graphic can be determined based on the cursor point information of the set cursor point.
[0081] In this way, on the one hand, by initializing the cursor points, after setting the first cursor point, the initial cursor point information can be assigned to the other N-1 cursor points, so that the preview graphics can be displayed according to the cursor point information of the N points, and as the other N-1 cursor points are adjusted and set, the preview graphics can be updated in real time according to the adjusted and updated cursor point information. On the other hand, if the user triggers the next event before completing the setting of all cursor points, the cursor points can be set according to the initialized cursor points and switched to the end state. There will be no graphics drawing failure due to the lack of cursor points. The user can re-adjust and set the cursor points by triggering the cursor point setting event in the end state, and finally draw the required target graphics.
[0082] In some embodiments of the present application, the measurement event may include a rollback event. At this time, when the current drawing state is the intermediate state, the parameter measurement method may further include: in response to the rollback event, canceling the setting of the previous cursor point, if the previous cursor point is the first cursor point, switching the current drawing state to the start state, otherwise, maintaining the intermediate state.
[0083] Similarly, in some embodiments of the present application, when the current drawing state is the end state, the parameter measurement method may further include: in response to a switching event or a rollback event of the cursor point, canceling the setting of the previous cursor point, if the previous cursor point is the first cursor point, switching the current drawing state to the start state, otherwise, switching the current drawing state to the intermediate state.
[0084] In this way, you can roll back from the intermediate state or the end state, and then reset the cursor point to meet the user's adjustment needs during the graphics drawing process.
[0085] In order to improve the convenience of measurement, in some embodiments of the present application, the measurement event may include a cursor movement event. When the current drawing state is an intermediate state or a start state, the parameter measurement method may further include: responding to the cursor movement event, displaying a preview graphic according to the real-time position of the cursor, calculating the target image parameters according to the preview graphic, and obtaining and displaying a preview measurement result.
[0086] Among them, the preview graphic is used to preview the graphic formed by the real-time position of the cursor and other set cursor points when the real-time position of the cursor is used as a cursor point. The real-time position of the cursor is used as the real-time position of a cursor point, and combined with the cursor point information of other set cursor points, a preview graphic can be obtained and displayed, so that the user can confirm whether the preview graphic matches the area of interest, and then confirm whether to set the real-time position as the cursor point. According to the preview graphic, the target image parameters can be calculated to obtain and display the preview measurement results. The calculation method of the target image parameters can refer to the description of the target image in the previous article, and this application will not go into details. In this way, the measurement results can be displayed in real time while the user is moving the cursor.
[0087] To facilitate understanding of the above graphics drawing process, three examples are provided below to illustrate.
[0088] Example 1: Depth measurement:
[0089] The user clicks to select the depth measurement tool. At this time, the electronic device can use the depth measurement tool as the target measurement tool according to the selection operation, and confirm that the target image parameter is the depth value and the total number of cursor points corresponding to the target measurement tool is 1.
[0090] The user moves the cursor to the measurement point of interest on the medical image, clicks the trackball button to trigger the cursor point setting event MEAS_SET, and sets the first cursor point. At this time, the current drawing state is the start state. Since the total number of cursor points is 1, it will automatically switch from the start state to the end state. By switching the pixel coordinates of the cursor point to physical coordinates, the depth value is calculated and displayed.
[0091] When the current drawing state is in the end state, the user rotates the backoff knob to trigger the backoff event MEAS_BACK. At this time, the current drawing state will switch from the end state to the start state, and the display of the set cursor point and depth value will be cleared.
[0092] When the current drawing state is in the end state, the user rotates the edit knob to trigger the backward switching event MEAS_GRAB_DOWN or the forward switching event MEAS_GRAB_UP. At this time, the current drawing state will switch from the end state to the intermediate state, activating the set cursor point. The user moves the trackball to trigger the cursor movement event MEAS_MOVE, following the real-time position of the cursor, displaying the preview graph (i.e., a point) and the preview measurement result.
[0093] When the current drawing state is in the middle state, the user clicks the trackball button to trigger the next event MEAS_NEXT. At this time, the current drawing state will switch from the middle state to the end state, and the depth value will be calculated and displayed.
[0094] Example 2: Distance measurement:
[0095] The user clicks to select the distance measurement tool. At this time, the electronic device can use the distance measurement tool as the target measurement tool according to the selection operation, and confirm that the target image parameter is the distance value and the total number of cursor points corresponding to the target measurement tool is 2.
[0096] The user will measure the measurement point of interest on the medical image of the cursor, click the trackball button to trigger the cursor point setting event MEAS_SET, set the first cursor point, and the current drawing state is the start state. Since the total number of cursor points is 2, the cursor point information of the first cursor point can be used as the cursor point information of the second cursor point to initialize the second cursor point, that is, the coordinate values of the two cursor points are the same, and then automatically switch from the start state to the middle state, display the preview graph (at this time, since the coordinate values of the two cursor points are the same, that is, the two endpoints of the line segment are at the same position, the preview graph presented is actually a point), and the pixel coordinates of the cursor point are switched to physical coordinates, the distance value is calculated (the distance value is 0 at this time), and the preview measurement result is displayed. At this time, the adjustment and setting of the second cursor point can be started.
[0097] When the current drawing state is in the middle state, the user moves the trackball to trigger the cursor movement event MEAS_MOVE, and the second cursor point moves with the cursor, thereby adjusting the second cursor point. The preview graph (the coordinate values of the two cursor points are different, so the preview graph presented is a line segment) and the preview measurement result are refreshed and displayed accordingly.
[0098] The current drawing state is in the middle state, and when adjusting and setting the second cursor point, the user rotates the editing knob or presses the trackball switch button to trigger the backward switching event MEAS_GRAB_DOWN, the forward switching event MEAS_GRAB_UP or the direct switching event MEAS_SWITCH, and the electronic device will switch to adjusting the first cursor point. At this time, the user moves the trackball to trigger the cursor movement event MEAS_MOVE, and the first cursor point moves with the cursor, and the preview graph and preview measurement results are refreshed and displayed accordingly.
[0099] When the current drawing state is in the middle state, the user rotates the backoff knob to trigger the backoff event MEAS_BACK. At this time, the current drawing state will switch from the middle state to the start state, and the display of the set cursor point and distance value will be cleared.
[0100] When the current drawing state is in the middle state, the user clicks the trackball button to trigger the cursor point setting event MEAS_SET or the next step event MEAS_NEXT. At this time, the current drawing state will switch from the middle state to the end state, and the distance value will be calculated and displayed.
[0101] When the current drawing state is in the end state, the user rotates the edit knob to trigger the backward switching event MEAS_GRAB_DOWN or the forward switching event MEAS_GRAB_UP. At this time, the current drawing state will switch from the end state to the intermediate state, activating the set cursor point. The user moves the trackball to trigger the cursor movement event MEAS_MOVE. The cursor point follows the real-time position of the cursor, displaying the preview graph and preview measurement results.
[0102] When the current drawing state is in the middle state, the user clicks the trackball button to trigger the next event MEAS_NEXT. At this time, the current drawing state will switch from the middle state to the end state, and the distance value will be calculated and displayed.
[0103] When the current drawing state is in the end state, the user rotates the backoff knob to trigger the backoff event MEAS_BACK. At this time, the current drawing state will switch from the end state to the middle state, activating the second cursor point. At this time, the user moves the trackball to trigger the cursor movement event MEAS_MOVE, following the real-time position of the cursor, and displays the preview graph and preview measurement results (distance value).
[0104] Example 3: Measure an ellipse:
[0105] The user clicks to select the ellipse measurement tool. At this time, the electronic device can use the ellipse measurement tool as the target measurement tool according to the selection operation, and confirm that the target image parameters are the circumference, major axis, minor axis, area, etc. of the ellipse, and the total number of cursor points corresponding to the target measurement tool is 3.
[0106] The user will measure the measurement point of interest on the cursor medical image, click the trackball button to trigger the cursor point setting event MEAS_SET, set the first cursor point, and the current drawing state is the starting state. Since the total number of cursor points is 3, the ellipse must be determined by at least two points (the major axis and the minor axis are equal). At this time, the cursor point information of the first cursor point can be used as the cursor point information of the second cursor point to initialize the second cursor point, that is, the coordinate values of the two cursor points are the same, and then automatically switch from the starting state to the intermediate state, and display the preview graphic (at this time, since the coordinate values of the two cursor points are the same, the preview graphic is actually a point). By switching the pixel coordinates of the cursor point to physical coordinates, the circumference, major axis, minor axis, and area are calculated, and the preview measurement results are displayed.
[0107] The current drawing state is in the middle state. When the first cursor point has been set, the user moves the trackball to trigger the cursor movement event MEAS_MOVE. The cursor point coaxial with the first cursor point (the second cursor point) moves with the cursor, and the preview graphics and preview measurement results are refreshed and displayed accordingly.
[0108] The current drawing state is in the middle state. When the first cursor point has been set, the user rotates the edit knob or presses the trackball switch button to trigger the backward switch event MEAS_GRAB_DOWN, the forward switch event MEAS_GRAB_UP, or the direct switch event MEAS_SWITCH, and switches to the first cursor point for adjustment. At this time, the user moves the trackball to trigger the cursor move event MEAS_MOVE, and the first cursor point moves with the cursor. The preview graph and preview measurement results are refreshed and displayed accordingly.
[0109] When the current drawing state is in the middle state and the first cursor point has been set, the user rotates the backoff knob to trigger the backoff event MEAS_BACK. At this time, the current drawing state will switch from the middle state to the start state, clearing the set cursor point and previewing the measurement result display.
[0110] The current drawing state is in the middle state. When the first cursor point has been set, the user clicks the trackball button to trigger the cursor point setting event MEAS_SET event, and the second cursor point will be set.
[0111] The current drawing state is in the middle state. When the first cursor point and the second cursor point have been set, the user moves the trackball to trigger the cursor movement event MEAS_MOVE. The third cursor point moves with the cursor, and the preview graphics and preview measurement results are refreshed and displayed accordingly.
[0112] When the current drawing state is in the middle state and the first cursor point and the second cursor point have been set, the user rotates the edit knob to trigger the backward switching event MEAS_GRAB_DOWN or the forward switching event MEAS_GRAB_UP. In response to the backward switching event MEAS_GRAB_DOWN, it will switch to the first cursor point, and in response to the forward switching event MEAS_GRAB_UP, it will switch to the second cursor point; when the user moves the trackball, the cursor movement event MEAS_MOVE will be triggered, and the cursor point moves with the cursor, and the preview graph and preview measurement results are refreshed and displayed accordingly.
[0113] The current drawing state is in the middle state. When the first cursor point and the second cursor point have been set, the user presses the trackball switch button to trigger the direct switching event MEAS_SWITCH, which will switch to the coaxial endpoint. The user moves the trackball to trigger the cursor movement event MEAS_MOVE. The cursor point moves with the cursor, and the preview graphics and preview measurement results are refreshed and displayed accordingly.
[0114] The current drawing state is in the middle state. When the first cursor point and the second cursor point have been set, the user rotates the backoff knob to trigger the backoff event MEAS_BACK, clearing the setting of the second cursor point (the cursor point coaxial with the first cursor point). The user moves the trackball to trigger the cursor move event MEAS_MOVE, and the second cursor point moves with the cursor. The preview graph and the preview measurement results are refreshed and displayed accordingly.
[0115] When the current drawing state is in the middle state and the first cursor point and the second cursor point have been set, clicking the trackball button will trigger the next event MEAS_NEXT. At this time, the current drawing state will switch from the middle state to the end state, and the parameter measurement results will be calculated and displayed.
[0116] When the current drawing state is in the end state, the user rotates the edit knob to trigger the backward switching event MEAS_GRAB_DOWN or the forward switching event MEAS_GRAB_UP. At this time, the current drawing state will switch from the end state to the intermediate state, activating the corresponding cursor point. The user moves the trackball to trigger the cursor movement event MEAS_MOVE. The corresponding cursor point follows the real-time position change of the cursor, and the preview graph and preview measurement results are displayed.
[0117] When the current drawing state is in the end state, the user rotates the backoff knob to trigger the backoff event MEAS_BACK event, and the current drawing state will switch from the end state to the middle state, activating the third cursor point. The user moves the trackball to trigger the cursor move event MEAS_MOVE, and the third cursor point follows the real-time position change of the cursor to display the preview graph and preview measurement results.
[0118] The drawing process of other graphics can refer to the above-mentioned examples 1 to 3, and this application will not elaborate on this.
[0119] When the medical image is an ultrasound image, most of the ultrasound images are grayscale images of tissue sections, which are not easy to identify and judge tissues. During the inspection process, the operator is required to use both hands (one hand holds the probe, and the other hand operates the panel trackball, buttons, knobs, etc.). At this time, it is not easy for the operator to move the trackball accurately. In order to improve the accuracy of graphic drawing, in some embodiments of the present application, after displaying the medical image, it also includes: identifying a region of interest in the medical image, and displaying a recommended graphic according to the region of interest.
[0120] The recommended graphics can be used as a reference for users to draw graphics, so that users can accurately draw graphics of the region of interest. The identification method of the region of interest can be implemented by existing methods such as deep learning algorithms and target detection algorithms, and this application does not limit this.
[0121] In some embodiments of the present application, the electronic device may also calculate the target image parameters according to the recommended graphics to obtain automatic measurement results. By displaying a confirmation box, the user can choose whether to use the automatic measurement results as the final results. In response to the user's confirmation operation on the automatic measurement results, the electronic device uses the automatic measurement results as parameter measurement results, which can save the operator's graphics drawing time. When the user is not satisfied with the automatic measurement results, in response to the user's cancellation operation on the automatic measurement results, the user can choose to abandon the automatic measurement results, and obtain the target graphics drawn by the user through the parameter measurement method of medical images provided by the present application to obtain the parameter measurement results.
[0122] In some embodiments of the present application, in step S301, a target measurement tool that can draw the area of interest can be determined from a variety of measurement tools based on the recommended graphics, and a target image parameter corresponding to the target measurement tool and a total number of cursor points corresponding to the target measurement tool can be determined, so that the user can save the operation of selecting the measurement tool.
[0123] In some other embodiments of the present application, in step S301, after the user triggers the selection operation of the target measurement tool, the electronic device can also verify the measurement tool selected by the user according to the recommended graphics to determine whether the graphics corresponding to the measurement tool selected by the user match the recommended graphics, thereby determining whether the measurement tool selected by the user can draw the region of interest. If the verification is successful, the measurement tool selected by the user can be used as the target measurement tool. If the verification fails, a prompt message can be displayed to prompt the user that the graphics corresponding to the measurement tool selected by the user may not be able to draw the recommended graphics. At this time, according to the user's first confirmation operation, the target measurement tool that can draw the recommended graphics can be determined from a plurality of measurement tools, or according to the user's second confirmation operation, the measurement tool selected by the user can be used as the target measurement tool. In this way, the user can be reminded that the current selection may be wrong. In addition, since the recommended graphics are obtained by image recognition, there may be errors on the boundaries of the graphics. The user chooses between the first confirmation operation and the second confirmation operation. If the error of the recommended graphics is large, the user can trigger the second confirmation operation and use the measurement tool selected by himself to ensure that the target measurement tool can accurately draw the region of interest.
[0124] It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders.
[0125] like Figure 5 FIG. 5 is a schematic diagram of the structure of a medical image parameter measurement device 500 provided in an embodiment of the present application. The medical image parameter measurement device 500 is configured on an electronic device.
[0126] Specifically, the medical image parameter measurement device 500 may include:
[0127] An image display unit 501, used for displaying medical images;
[0128] The parameter measurement unit 502 is used to respond to a measurement event triggered on the medical image, set a cursor point according to the measurement event, and switch the drawing state among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, determine the target graphic according to the cursor point information of the set cursor point, and output the parameter measurement result corresponding to the target graphic.
[0129] In some embodiments of the present application, the parameter measurement unit 502 is specifically used to: determine the total number of cursor points required for the target image parameters to be measured; in response to the measurement event, set the cursor points according to the measurement event, and switch the drawing state among multiple preset states; when the number of cursor points of the set cursor points is equal to the total number of cursor points, switch the current drawing state to the end state, and determine the target graphic based on the cursor point information of the set cursor points; calculate the target image parameters based on the target graphic, and obtain and output the parameter measurement results.
[0130] In some embodiments of the present application, the total number of cursor points is N, N>0; the multiple preset states also include a start state and an intermediate state; the measurement event includes a cursor point setting event and a next event, and the next event is used to switch to the end state in the intermediate state; the parameter measurement unit 502 is specifically used to: respond to the cursor point setting event, set the first cursor point according to the cursor point setting event, and switch the current drawing state to the start state; when the current drawing state is the start state, if the number of cursor points of the set cursor points is less than the total number of cursor points, switch the current drawing state to the intermediate state; when the current drawing state is the intermediate state, in response to receiving the cursor point setting event again and / or receiving the next event, set the remaining N-1 cursor points.
[0131] In some embodiments of the present application, the measurement event includes a switching event for a cursor point; in some embodiments of the present application, the parameter measurement unit 502 is specifically used to: initialize the remaining N-1 cursor points according to the cursor point information of the first cursor point; the parameter measurement unit 502 is specifically used to: respond to the switching event for the cursor point and the cursor point setting event, adjust and set the first cursor point and the initialized N-1 cursor points, until the setting of the N-1 cursor points is completed, and then set the Nth cursor point in response to the next step event.
[0132] In some embodiments of the present application, the measurement event includes a rollback event; the parameter measurement unit 502 is specifically used to: in response to the rollback event, cancel the setting of the previous cursor point, if the previous cursor point is the first cursor point, switch the current drawing state to the start state, otherwise, maintain the intermediate state.
[0133] In some embodiments of the present application, the measurement event includes a rollback event and a cursor point switching event; the parameter measurement unit 502 is specifically used to: in response to the cursor point switching event or the rollback event, cancel the setting of the previous cursor point, if the previous cursor point is the first cursor point, switch the current drawing state to the start state, otherwise, switch the current drawing state to the intermediate state.
[0134] In some embodiments of the present application, the measurement event includes a cursor movement event; the parameter measurement unit 502 is specifically used to: respond to the cursor movement event, display a preview graphic according to the real-time position of the cursor; calculate the target image parameters according to the preview graphic, and obtain and display the preview measurement result.
[0135] In some embodiments of the present application, the parameter measurement unit 502 is specifically used to: display a plurality of measurement tools, different of the measurement tools are used to measure different image parameters; in response to a selection operation of a target measurement tool among the plurality of measurement tools, determine a target image parameter corresponding to the target measurement tool and a total amount of cursor points corresponding to the target measurement tool.
[0136] In some embodiments of the present application, the parameter measurement unit 502 is specifically used to: identify a region of interest in the medical image, and display a recommended graphic according to the region of interest.
[0137] It should be noted that, for the convenience and simplicity of description, the specific working process of the above-mentioned medical image parameter measurement device 500 can be referred to Figures 1 to 4 The corresponding process of the method will not be repeated here.
[0138] like Figure 6 FIG. 6 is a schematic diagram of an electronic device 6 provided in an embodiment of the present application. Specifically, the electronic device 6 may include: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a medical image parameter measurement program. When the processor 60 executes the computer program 62, the steps in the above-mentioned medical image parameter measurement method embodiments are implemented, such as Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5 The functions of the image display unit 501 and the parameter measurement unit 502 are shown.
[0139] The computer program may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 6.
[0140] For example, the computer program can be divided into: an image display unit and a parameter measurement unit. The specific functions of each unit are as follows: an image display unit for displaying medical images; a parameter measurement unit for responding to a measurement event triggered on the medical image, setting a cursor point according to the measurement event, and switching the drawing state among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, determining a target graphic according to the cursor point information of the set cursor point, and outputting a parameter measurement result corresponding to the target graphic.
[0141] The electronic device 6 may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the electronic device 6 and does not constitute a limitation of the electronic device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 6 may also include input and output devices, network access devices, buses, etc.
[0142] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0143] The memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. The memory 61 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 6. Further, the memory 61 may also include both an internal storage unit of the electronic device 6 and an external storage device. The memory 61 is used to store the computer program and other programs and data required by the electronic device 6. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0144] It should be noted that, for the convenience and brevity of description, the structure of the electronic device 6 can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.
[0145] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0147] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0148] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0151] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0152] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for measuring parameters of medical images, characterized in that: include: Display medical images; In response to a measurement event triggered on the medical image, a cursor point is set according to the measurement event, and a drawing state is switched among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, and a target graphic is determined according to cursor point information of the set cursor point, and a parameter measurement result corresponding to the target graphic is output.
2. The method for measuring parameters of medical images according to claim 1, characterized in that: The measurement event triggered on the medical image, according to the measurement event, sets the cursor point, and switches the drawing state among multiple preset states, until the current drawing state switches to the end state among the multiple preset states, determines the target graphic according to the cursor point information of the set cursor point, and outputs the parameter measurement result corresponding to the target graphic, including: Determine the total amount of cursor points required for the target image parameters to be measured; In response to the measurement event, a cursor point is set according to the measurement event, and a drawing state is switched among a plurality of preset states; When the number of cursor points of the set cursor points is equal to the total number of cursor points, the current drawing state is switched to the end state, and the target graphic is determined according to the cursor point information of the set cursor points; According to the target graphic, the target image parameters are calculated to obtain and output the parameter measurement results.
3. The method for measuring medical image parameters according to claim 2, wherein: The total number of cursor points is N, N>0; The multiple preset states also include a start state and an intermediate state; the measurement event includes a cursor point setting event and a next event, and the next event is used to switch to the end state in the intermediate state; The step of responding to the measurement event, setting a cursor point according to the measurement event, and switching a drawing state among a plurality of preset states includes: In response to the cursor point setting event, setting a first cursor point according to the cursor point setting event, and switching the current drawing state to the start state; When the current drawing state is the start state, if the number of cursor points of the set cursor points is less than the total number of cursor points, switching the current drawing state to the intermediate state; When the current drawing state is the intermediate state, in response to receiving the cursor point setting event again and / or receiving the next step event, the remaining N-1 cursor points are set.
4. The method for measuring medical image parameters according to claim 3, wherein: The measurement event includes a switching event of a cursor point; When the current drawing state is the start state, if the number of cursor points of the set cursor points is less than the total number of cursor points, the parameter measurement method further includes: Initializing the remaining N-1 cursor points according to the cursor point information of the first cursor point; In response to receiving the cursor point setting event again and / or receiving the next step event, setting the remaining N-1 cursor points includes: In response to the cursor point switching event and the cursor point setting event, the first cursor point and the initialized N-1 cursor points are adjusted and set until the setting of the N-1 cursor points is completed, and then in response to the next step event, the Nth cursor point is set.
5. The method for measuring medical image parameters according to claim 3, wherein: The measurement event includes a backoff event and a cursor point switching event; When the current drawing state is the intermediate state, the parameter measurement method further includes: in response to a rollback event, canceling the setting of the previous cursor point, if the previous cursor point is the first cursor point, switching the current drawing state to the start state, otherwise, maintaining the intermediate state; And / or, when the current drawing state is the end state, the parameter measurement method further includes: in response to the switching event of the cursor point or the rollback event, canceling the setting of the previous cursor point, if the previous cursor point is the first cursor point, switching the current drawing state to the start state, otherwise, switching the current drawing state to the intermediate state.
6. The method for measuring parameters of medical images according to claim 3, characterized in that: The measurement event includes a cursor movement event; When the current drawing state is the intermediate state or the starting state, the parameter measurement method further includes: In response to the cursor movement event, displaying a preview graphic according to the real-time position of the cursor; According to the preview graph, the target image parameters are calculated to obtain and display the preview measurement results.
7. The method for measuring parameters of medical images according to claim 2, wherein: The total amount of cursor points required for determining the target image parameters to be measured includes: Displaying a plurality of measurement tools, wherein different measurement tools are used to measure different image parameters; In response to a selection operation of a target measuring tool among the plurality of measuring tools, a target image parameter corresponding to the target measuring tool and a total amount of cursor points corresponding to the target measuring tool are determined.
8. The method for measuring medical image parameters according to any one of claims 1 to 7, characterized in that: After displaying the medical image, the method further includes: A region of interest in the medical image is identified, and a recommended graphic is displayed based on the region of interest.
9. A medical image parameter measurement device, characterized in that: include: An image display unit, used for displaying medical images; A parameter measurement unit is used to respond to a measurement event triggered on the medical image, set a cursor point according to the measurement event, and switch the drawing state among multiple preset states until the current drawing state is switched to an end state among the multiple preset states, determine the target graphic according to the cursor point information of the set cursor point, and output the parameter measurement result corresponding to the target graphic.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the medical image parameter measurement method according to any one of claims 1 to 8 are implemented.