Display control method and device for labels in medical image, equipment and medium
By introducing single-selection and multi-selection controls for anatomical hierarchical trees into medical images, the problem of overlapping annotations was solved, enabling precise selection and batch management of annotations, and improving the clarity of lesion observation and the accuracy of interpretation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI MEDICAL IMAGE INSIGHTS INTELLIGENT TECHNOLOGY CO LTD
- Filing Date
- 2026-04-08
- Publication Date
- 2026-05-05
AI Technical Summary
In existing medical image annotation technologies, as the number of annotations increases, various annotations tend to overlap, obscure, and become crowded and chaotic in the image, affecting the observation of lesions and anatomical structures and reducing the accuracy of interpretation.
By introducing single-selection and checkboxes for anatomical hierarchical trees into medical images, precise selection and batch management of annotations can be achieved. Single-selection controls can be used to select individual node annotations, checkboxes can be used to select subtree annotations, and display controls can be used to trigger operations to control the display or hiding of annotations.
It enables flexible control and batch management of annotation display, reduces visual interference, and improves the clarity of lesion observation and the accuracy of interpretation.
Smart Images

Figure CN121983254A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to medical imaging technology, and more particularly to a method, apparatus, device and medium for controlling the annotation and display in medical images. Background Technology
[0002] With the continuous development of medical imaging technology, medical imaging techniques such as computed tomography (CT) and magnetic resonance imaging (MRI) have been widely used in clinical diagnosis, lesion identification, and preoperative planning. To facilitate lesion localization, nature assessment, and image analysis, regions of interest are typically labeled on medical images. Labeling visually reflects the location, size, type, and spatial distribution of lesions, providing crucial reference information for physicians.
[0003] Current medical image annotation technologies typically employ a method where all annotations are loaded uniformly and displayed simultaneously. However, as the number of annotations increases, various annotations are prone to overlapping, occlusion, crowding, and other problems in the image. This not only affects the observation of lesions and anatomical structures but also causes visual interference and reduces the accuracy of interpretation. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for controlling annotation display in medical images, enabling flexible control of annotation display and efficient batch visualization management, thereby reducing visual interference, enabling precise viewing, and improving the clarity of lesion observation and the accuracy of interpretation.
[0005] In a first aspect, embodiments of the present invention provide a method for controlling the annotation display in medical images, comprising: The first area of the current page displays medical images of the target area and annotations of the regions of interest in the medical images; The second area of the current page displays the hierarchical tree of the anatomical structure of the target area, and displays a radio button corresponding to each leaf node and a radio button and a checkbox corresponding to each parent node in the hierarchical tree. The nodes in the hierarchical tree correspond to the annotations in the medical image. In response to a trigger operation on the first radio button corresponding to the first node, the annotation selection state corresponding to the first node is determined to be selected, and the current display state of the first radio button is updated to be selected. The current display state of the first check control is also determined and updated. The first check control includes the check control corresponding to each parent node of the first node. The current display state of the first check control includes a full selection state or a partial selection state. In response to the triggering operation of the second check control corresponding to the second node, it is determined that the label selection state corresponding to the second node and the label selection state corresponding to all the subordinate nodes of the second node are both selected, and the current display state of the second check control is updated to the selected state. In addition, the current display state of the third check control is determined and updated. The third check control includes the check control corresponding to each parent node of the second node. The current display state of the third check control includes the selected state or the selected state. Based on the annotation selection status, determine all currently selected annotations, and in response to the display control trigger operation, control whether all currently selected annotations are displayed in the medical image.
[0006] Secondly, embodiments of the present invention also provide a medical image annotation display control device, comprising: The annotation display module is used to display medical images of the target body part and annotations of the regions of interest in the medical images in the first area of the current page; The hierarchical tree display module is used to display the hierarchical tree of the anatomical structure of the target part in the second area of the current page, and to display the radio button corresponding to each leaf node and the radio button and check box corresponding to each parent node in the hierarchical tree of the anatomical structure. The nodes in the hierarchical tree of the anatomical structure correspond to the annotations in the medical image. The first state update module is used to respond to the trigger operation of the first radio button corresponding to the first node, determine that the label selection state of the first node is selected, update the current display state of the first radio button to selected, and determine and update the current display state of the first check control. The first check control includes the check control corresponding to each parent node of the first node, and the current display state of the first check control includes a full selection state or a partial selection state. The second state update module is used to respond to the trigger operation of the second check control corresponding to the second node, determine that the label selection state corresponding to the second node and the label selection state corresponding to all the subordinate nodes of the second node are both selected, update the current display state of the second check control to the selected state, and determine and update the current display state of the third check control, wherein the third check control includes the check control corresponding to each superior node of the second node, and the current display state of the third check control includes the selected state or the selected state. The annotation display control module is used to determine all currently selected annotations based on the annotation selection status, and in response to the display control trigger operation, control whether all currently selected annotations are displayed in the medical image.
[0007] Thirdly, embodiments of the present invention also provide an electronic device, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the annotation display control method in medical images provided in any embodiment of the present invention.
[0008] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute and implement the annotation display control method in medical images provided in any embodiment of the present invention.
[0009] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the annotation and display control method in medical images as provided in any embodiment of the present invention.
[0010] One embodiment of the above invention has the following advantages or beneficial effects: The system displays medical images of the target body part and annotations of regions of interest within those images in the first area of the current page. In the second area, it displays a hierarchical anatomical tree of the target body part, showing radio buttons for each leaf node and radio buttons and checkboxes for each parent node. The nodes in the hierarchical tree correspond to the annotations in the medical images. In response to a trigger operation on the first radio button corresponding to a first node, the system determines that the annotation at the first node is selected and updates its current display state to selected. It also determines and updates the current display state of the first checkbox, which includes checkboxes corresponding to each parent node of the first node. The current display state of the first checkbox includes either a full selection or a partial selection. This allows for precise selection of annotations at each anatomical level by triggering the radio buttons, and the system can quickly determine the selection status of all annotations in a subtree based on the display state of the checkboxes, without needing to display the subtree hierarchy. In response to the trigger operation of the second checkbox corresponding to the second node, the annotation selection state of the second node and all its subordinate nodes are determined to be selected. The current display state of the second checkbox is updated to "select all". The current display state of the third checkbox is also determined and updated. The third checkbox includes checkboxes corresponding to each parent node of the second node. The current display state of the third checkbox includes either "select all" or "select some". This allows for batch selection of annotations at multiple anatomical structure levels by triggering the checkboxes. Furthermore, based on the display state of the checkboxes, the selection status of all annotations corresponding to a subtree can be quickly determined without displaying the subtree hierarchy. Based on the annotation selection state, all currently selected annotations are determined, and in response to the display control trigger operation, the display of all currently selected annotations in the medical image is controlled. This allows for the simultaneous display or hiding of all selected annotations based on actual needs, achieving flexible control of annotation display and efficient batch visualization management. This reduces visual interference, facilitates efficient management and accurate viewing of annotations, and improves the clarity and accuracy of lesion observation and interpretation.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a flowchart of a method for controlling the annotation display in medical images according to an embodiment of the present invention; Figure 2 This is an example diagram of an anatomical structure hierarchy tree according to an embodiment of the present invention; Figure 3 This is a flowchart of another method for controlling the display of annotations in medical images according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a medical image annotation display control device according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device that implements the annotation display control method in medical images according to embodiments of the present invention. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] Figure 1This is a flowchart illustrating a method for controlling the display of annotations in medical images according to an embodiment of the present invention. This embodiment is applicable to situations where annotations in regions of interest (ROIs) in medical images are displayed or hidden efficiently. This method can be executed by a medical image annotation display control device, which can be implemented in software and / or hardware and can be configured in an electronic device. Figure 1 As shown, the method specifically includes the following steps: S110. Display medical images of the target body part and annotations of the regions of interest in the medical images in the first area of the current page.
[0017] The target area can refer to a part of the human body that needs to be scanned, such as the brain or vertebrae. Medical images are visual images generated after scanning the target area using medical imaging equipment, reflecting the internal structural information of the target area. Medical images can include CT images or MRI images. There are multiple medical images of the target area, each reflecting the anatomical structure information at different locations within the target area. For example, CT images are tomographic images of the target area at different locations, angles, or slice thicknesses, corresponding to anatomical structure information at different depths and levels, presenting the continuous distribution characteristics of tissues, organs, and lesions in the target area from different spatial positions. The region of interest (ROI) is the marking of anatomical structures, lesion areas, or diagnostically significant target areas in the medical image. Marking can be done using boxes, outlines, or other methods. Each medical image can contain one or more markings, based on actual needs. The current page is the page currently used to display medical image information. The current page can include two display areas: the first area and the second area. When the current page is initially displayed, all medical images obtained from scans of the target area can be shown in the first area, along with all annotations within each image. Alternatively, the first scanned medical image and all annotations within that image can be displayed in the first area, and in response to user-triggered image switching, other scanned medical images and their annotations can be shown, allowing users to view the medical images and annotations of areas of interest within them within the first area.
[0018] S120. Display the anatomical structure hierarchy tree of the target site in the second area of the current page, and display the radio button corresponding to each leaf node and the radio button and check box corresponding to each parent node in the anatomical structure hierarchy tree. The nodes in the anatomical structure hierarchy tree correspond to the annotations in the medical image.
[0019] The anatomical structure hierarchy tree of the target region can be a tree-like hierarchical structure constructed based on the subordinate and inclusion relationships of the anatomical structures within the target region. This tree represents the hierarchical relationships between various anatomical structures. The target region is the root node, the higher-level structures are parent nodes, and the included lower-level structures are child nodes. This hierarchical relationship clearly represents the spatial and logical subordinate relationships between the anatomical structures, enabling the classification, rapid location, and display control of the structures and corresponding annotations within the target region. For example, Figure 2 An example diagram of an anatomical hierarchical tree is given, such as... Figure 2 As shown, the target areas include multiple sites such as the brain, vertebral bodies, spinal canal, and nerve roots. Figure 2 This diagram displays the hierarchical anatomical structure tree corresponding to each target site. The cranium is the root node, the left and right hemispheres are parent nodes, the left cerebellum is a child node of the left hemisphere, and the left cerebellum is also a leaf node. A leaf node is the lowest-level node in the hierarchical anatomical structure tree that does not contain any child nodes; it corresponds to an indivisible anatomical structure or lesion. A parent node is any node that has child nodes. A parent node can be any node other than a leaf node. Each parent node of a leaf node can also be a parent node. A parent node can include the node one level above a leaf node, or the nodes two levels above a leaf node, etc. The root node can also be considered a parent node. Each node in the hierarchical anatomical structure tree represents a specific structure within the target site, corresponding to a medical image of that structure, and thus to the annotations within that medical image. Each node can correspond to one or more medical images, and each medical image contains one or more annotations, thus each node corresponds to one or more annotations. The annotations of each node represent the region of interest for that node's structure. For example, each node in the anatomical structure hierarchy tree is associated with a medical image. For instance, in response to a triggering operation on any node, such as a click operation, the medical image corresponding to that node and the annotations in the medical image are displayed in the first area, so that the medical image and annotations corresponding to each node can be viewed quickly.
[0020] Radio buttons can be visual controls used to select the annotations of a single node. Each node in the anatomical hierarchy tree (i.e., leaf nodes and parent nodes) is associated with a radio button. For example, a radio button can be used to select all annotations of the current node itself. Checkboxes can be used to select the annotations of all nodes in the subtree of a parent node. The subtree of a parent node refers to a branch in the anatomical hierarchy tree rooted at the parent node. All nodes in the subtree of a parent node can include nodes at every level in that subtree, that is, the parent node and all its child nodes. Each parent node in the anatomical hierarchy tree is associated with a checkbox. For example, a checkbox can be used to select the annotations of all nodes in the subtree of the current node, that is, all annotations of the current node itself and all annotations of all its child nodes.
[0021] The second area can be displayed alongside the first area. The second area displays the anatomical structure hierarchy tree of the target region, and at a preset position for each leaf node in the anatomical structure hierarchy tree, displays the corresponding radio button for that leaf node, and at a preset position for each parent node, displays the corresponding radio button and checkbox for that parent node. See also Figure 2 Radio buttons and checkboxes are displayed to the right of the two parent nodes, the cranium and the left brain, and radio buttons are displayed to the right of the two leaf nodes, the left cerebellum and the right brain.
[0022] S130. In response to the triggering operation of the first radio button corresponding to the first node, determine that the label selection state of the first node is selected, update the current display state of the first radio button to selected, and determine and update the current display state of the first check control. The first check control includes the check control corresponding to each parent node of the first node, and the current display state of the first check control includes a full selection state or a partial selection state.
[0023] Here, the first node can refer to any node in the anatomical structure hierarchy tree. The first node can be a leaf node or a parent node. The first radio button refers to the radio button corresponding to the first node. The triggering operation for the first radio button can be a click operation, etc. The annotation selection state can include a selected state and a deselected state. When the annotation selection state corresponding to the first node is selected, it indicates that all annotations corresponding to the first node are currently selected. The current display state of the first radio button can be used to intuitively display the annotation selection state of the first node, allowing users to quickly understand the annotation selection state of the first node. The display state of the first radio button can include a selected state and a deselected state. When the annotation corresponding to the first node is selected, updating the current display state of the first radio button to the selected state can more clearly and intuitively convey the annotation selection information.
[0024] The first checkbox refers to the checkbox corresponding to a node that is associated with the first node. Nodes associated with the first node include each of its parent nodes, such as the first node's parent node, grandparent node, and so on, up to the root node at the very top. A parent node of the first node refers to a node at a higher level than the first node, such as its first-level parent node, second-level parent node, etc. When the first checkbox is currently displayed in a "select all" state, this means that the labels of all nodes in the current node's subtree are selected. That is, the "select all" state means that the label of the current node and the labels of all its child nodes are selected. When the first checkbox is currently displayed in a "partial selection" state, this means that the labels of some nodes in the current node's subtree are selected. Partial selection can include: only the label of the current node is selected, only the labels of all its child nodes are selected, or the label of the current node and the labels of some of its child nodes are selected. By displaying a "partial selection state," the information of "inconsistent selection of lower-level nodes" can be quickly and visually conveyed. Furthermore, the overall selection status can be quickly understood without expanding the subtree, greatly improving information transmission efficiency. It should be noted that different display states of radio buttons and checkboxes can be presented using different display methods to quickly distinguish between them. In addition to triggering selection labels, radio buttons and checkboxes can also present different display states, allowing users to understand the overall selection status of labels without expanding the hierarchy tree, improving information transmission efficiency and saving display resources.
[0025] Specifically, in response to the user's trigger operation on the first radio button corresponding to the first node, indicating that the user wants to select the label corresponding to the first node, the selection state of the label corresponding to the first node is determined to be selected, and the current display state of the first radio button is updated to the selected state, such as... Figure 2 As shown, since the label corresponding to the first node changes from an unselected state to a selected state, it is necessary to synchronously determine and update the display state of the first checkbox corresponding to each parent node of the first node. This achieves the association between the display state of the first radio button and the display state of the first checkbox, ensuring the accuracy of the status display and allowing users to clearly and quickly understand the label selection status.
[0026] For example, "determining the current display state of the first checkbox" in step S130 includes: for each parent node of the first node, obtaining the label selection state corresponding to the parent node and the label selection state corresponding to each child node of the parent node; in response to the label selection state corresponding to the parent node being selected and the label selection state corresponding to each child node of the parent node being selected, determining that the current display state of the first checkbox corresponding to the parent node is a full selection state; in response to the label selection state corresponding to the parent node being unselected or the label selection state corresponding to some child nodes of the parent node being unselected, determining that the current display state of the first checkbox corresponding to the parent node is a partial selection state.
[0027] Specifically, for each parent node of the first node, the selection status of the annotations corresponding to that parent node and the selection status of the annotations corresponding to each child node of that parent node are obtained. If the annotation selection status of the parent node is selected and the annotation selection status of all child nodes of that parent node is also selected, it indicates that the annotations of all nodes in the subtree containing that parent node have been selected. In this case, the current display status of the first checkbox corresponding to that parent node is determined to be "select all". If the annotation selection status of the parent node is unselected, or if the annotation selection status of at least one child node of that parent node is unselected, it indicates that the annotations of some nodes in the subtree containing that parent node have been selected. In this case, the current display status of the first checkbox corresponding to that parent node is determined to be "partially selected". It should be noted that if the first node, as a child node of the parent node, is selected, the current display status of the first checkbox will be either "select all" or "partially selected", and it will not show an "unselected" state.
[0028] For example, such as Figure 2 As shown, when a radio button corresponding to the "Left Cerebellum" node is triggered, in response to this trigger, the current display state of the radio button corresponding to "Left Cerebellum" is updated to the selected state, and the current display state of the checkboxes corresponding to each parent node of "Left Cerebellum" (i.e., the "Left Brain" and "Cranium" nodes) is simultaneously determined and updated. Since the label of "Left Brain" itself is not selected, the current display state of the checkboxes corresponding to "Left Brain" and "Cranium" is updated to a partially selected state. Based on this partially selected state, the information of "inconsistent selection of lower-level nodes" can be conveyed intuitively and quickly without displaying the subtree, thus improving the display effect of label information.
[0029] S140. In response to the triggering operation of the second check control corresponding to the second node, determine that the label selection state corresponding to the second node and the label selection state corresponding to all the subordinate nodes of the second node are both selected, and update the current display state of the second check control to the selected state, and determine and update the current display state of the third check control, the third check control includes the check control corresponding to each parent node of the second node, and the current display state of the third check control includes the selected state or the selected state.
[0030] Here, the second node can refer to any parent node in the anatomical structure hierarchy tree. The second node can also refer to a node with a checkbox. The second checkbox refers to the checkbox corresponding to the second node. The triggering operation for the second checkbox can be a click operation, etc. All subordinate nodes of the second node refer to all child nodes of the second node, that is, nodes at a lower level than the second node, such as the next-level node, the next-level node, and so on, down to the leaf nodes at the bottom. The annotation selection state can include a selected state and a deselected state. When the annotation selection state corresponding to the second node is selected, it indicates that all annotations corresponding to the second node are currently selected. When the annotation selection state corresponding to all subordinate nodes of the second node is selected, it indicates that all annotations corresponding to all subordinate nodes of the second node are currently selected. The current display state of the second checkbox can be used to intuitively display the annotation selection state of the second node, allowing users to quickly understand the annotation selection state of the second node. When the annotations corresponding to the second node and all subordinate nodes of the second node are selected, updating the current display state of the second checkbox to the selected state can more clearly and intuitively convey the annotation selection information of the second node.
[0031] The third checkbox refers to the checkbox corresponding to the parent node associated with the second node. Parent nodes associated with the second node include each of the second node's ancestor nodes, such as the second node's parent node, grandparent node, and so on, up to the root node. An ancestor node of the second node refers to a node at a higher level, such as the node above the second node, the node below the second node, etc. The third checkbox is similar to the first checkbox. When the third checkbox is currently in a "select all" state, this means that the labels of all nodes in the current node's subtree are selected. That is, the label of the current node and the labels of all its child nodes are selected. When the third checkbox is currently in a "partial selection" state, this means that the labels of some nodes in the current node's subtree are selected. Partial selection can include: only the label of the current node is selected, only the labels of all its child nodes are selected, or the label of the current node and the labels of some of its child nodes are selected. By displaying the "partial selection status", the information of "inconsistent selection of lower-level nodes" can be quickly and visually conveyed, and the overall selection status can be quickly obtained without expanding the subtree, which greatly improves the efficiency of information transmission.
[0032] Specifically, in response to the user's triggering operation on the second checkbox corresponding to the second node, indicating that the user wants to select the labels corresponding to all nodes in the subtree of the second node, the selection status of the label corresponding to the second node and the selection status of the labels corresponding to all the subordinate nodes of the second node can be directly determined to be selected, thereby realizing batch selection of labels and improving selection efficiency. Since the labels corresponding to the second node and all the subordinate nodes of the second node change from unselected to selected, it is necessary to synchronously determine and update the display status of the third checkbox corresponding to each parent node of the second node. This realizes the associated display of the display status of the second checkbox and the third checkbox, ensuring the accuracy of the status display and allowing the user to clearly and quickly understand the label selection status.
[0033] For example, "determining the current display state of the third check control" in step S140 includes: for each parent node of the second node, obtaining the label selection state corresponding to the parent node and the label selection state corresponding to each child node of the parent node; in response to the label selection state corresponding to the parent node being selected and the label selection state corresponding to each child node of the parent node being selected, determining that the current display state of the third check control corresponding to the parent node is a full selection state; in response to the label selection state corresponding to the parent node being unselected or the label selection state corresponding to some child nodes of the parent node being unselected, determining that the current display state of the third check control corresponding to the parent node is a partial selection state.
[0034] Specifically, for each parent node of the second node, the selection status of the annotations corresponding to that parent node and the selection status of the annotations corresponding to each child node of that parent node are obtained. If the annotation selection status of the parent node is selected and the annotation selection status of all child nodes of that parent node is also selected, it indicates that the annotations of all nodes in the subtree containing that parent node have been selected. In this case, the current display status of the third checkbox corresponding to that parent node is determined to be "select all". If the annotation selection status of the parent node is not selected, or if the annotation selection status of at least one child node of that parent node is not selected, it indicates that the annotations of some nodes in the subtree containing that parent node have been selected. In this case, the current display status of the third checkbox corresponding to that parent node is determined to be "partially selected". It should be noted that since the second node, as a child node of the parent node, has been selected, the current display status of the third checkbox is either "select all" or "partially selected", and it will not show an "unselected" state.
[0035] It should be noted that each checkbox displayed in the anatomical structure hierarchy tree achieves effective annotation display management through more refined state association and intelligent linkage, ensuring the integrity of the annotation data and making it suitable for handling complex hierarchical annotation data.
[0036] S150. Based on the annotation selection status, determine all currently selected annotations and, in response to the display control trigger operation, control whether all currently selected annotations are displayed in the medical image.
[0037] The display control trigger operation can be a control operation used to determine whether a label is displayed. The display control trigger operation can be set based on actual needs. For example, the display control trigger operation can be implemented by triggering a preset button, or by triggering a preset key on the keyboard, etc.
[0038] Specifically, the annotation selection status of each node in the anatomical structure hierarchy tree is obtained. All nodes with the annotation selection status "selected" are designated as currently selected nodes, and all annotations corresponding to these currently selected nodes are designated as currently selected annotations. Upon detecting a display control trigger operation, the system can control whether the currently selected annotations are displayed or hidden in the medical image based on their current status, enabling one-click display or hiding of selected annotations. This allows for efficient and batch visualization management of annotations. For example, when lesions overlap, they can be viewed by displaying or hiding annotations. By hiding all unnecessary annotations with a single click, visual interference is reduced, improving the clarity of lesion observation and the accuracy of interpretation.
[0039] For example, step S150, "in response to the display control trigger operation, control whether all currently selected annotations are displayed in the medical image", includes: in response to the display control trigger operation and the current state of all currently selected annotations is hidden, controlling all currently selected annotations to be displayed in the medical image; in response to the display control trigger operation and the current state of all currently selected annotations is displayed, controlling all currently selected annotations to be hidden in the medical image.
[0040] Specifically, when a display control trigger operation is detected, if all currently selected annotations are currently hidden, then all currently selected annotations are displayed in the medical image, thus achieving effective control over whether annotations are hidden or displayed; if all currently selected annotations are currently displayed, then all currently selected annotations are hidden in the medical image, thus achieving effective control over whether annotations are displayed or hidden, improving the flexibility of annotation display and meeting various annotation viewing needs.
[0041] For example, if the annotation selection status of each node in the anatomical structure hierarchy tree is unselected, then in response to a display control trigger operation, the display status of all annotations of the target area in the medical image is controlled. For instance, in response to a display control trigger operation and the current state of all annotations of the target area is hidden, the display status of all annotations of the target area in the medical image is controlled; in response to a display control trigger operation and the current state of all annotations of the target area is displayed, the hidden status of all annotations of the target area in the medical image is controlled.
[0042] For example, when controlling the display of all currently selected annotations in a medical image, a display indicator is shown at a preset position for each currently selected node. This indicator provides more granular guidance to the user regarding the display of the node's annotations in the medical image. Figure 2An eye icon is displayed to the left of each node name. When controlling the hiding of all currently selected annotations in the medical image, a hidden indicator is displayed at a preset position for each currently selected node, so as to provide a more granular indication to the user that the node's annotations are not displayed in the medical image.
[0043] The technical solution of this embodiment displays medical images of the target site and annotations of regions of interest in the medical images in a first area of the current page; displays an anatomical structure hierarchy tree of the target site in a second area of the current page, and displays radio buttons corresponding to each leaf node and radio buttons and checkboxes corresponding to each parent node in the anatomical structure hierarchy tree. The nodes in the anatomical structure hierarchy tree correspond to the annotations in the medical images. In response to the triggering operation of the first radio button corresponding to the first node, the annotation selection state of the first node is determined to be selected, and the current display state of the first radio button is updated to selected. The current display state of the first checkbox is also determined and updated. The first checkbox includes checkboxes corresponding to each parent node of the first node, and the current display state of the first checkbox includes a full selection state or a partial selection state. Thus, by triggering the radio buttons, the annotations of each anatomical structure level can be accurately selected, and the selection status of all annotations corresponding to the subtree can be quickly obtained based on the display state of the checkboxes without displaying the subtree hierarchy. In response to the trigger operation of the second checkbox corresponding to the second node, the annotation selection state of the second node and all its subordinate nodes are determined to be selected. The current display state of the second checkbox is updated to "select all". The current display state of the third checkbox, which includes checkboxes corresponding to each parent node of the second node, is also determined and updated. The current display state of the third checkbox includes either "select all" or "select some". This allows for batch selection of annotations at multiple anatomical structure levels by triggering the checkboxes. Furthermore, the selection status of all annotations in a subtree can be quickly determined based on the checkbox display state without displaying the subtree hierarchy. Based on the annotation selection state, all currently selected annotations are determined, and in response to the display control trigger operation, the display of all currently selected annotations in the medical image is controlled. This allows for the simultaneous display or hiding of all selected annotations based on actual needs, achieving flexible control of annotation display and efficient batch visualization management. This reduces visual interference, facilitates efficient management and accurate viewing of annotations, and improves the clarity and accuracy of lesion observation and interpretation.
[0044] In some alternative implementations, the method may also include: In response to a re-triggering operation of the first radio button, the selection state of the label corresponding to the first node is determined to be unselected, and the current display state of the first radio button is updated to unselected, and the current display state of the first check box is also updated. The current display state of the first check box includes a partially selected state or an unselected state. In response to the re-triggering operation of the second check control, it is determined that the label selection state corresponding to the second node and the label selection state corresponding to all the subordinate nodes of the second node are both unselected. The current display state of the second check control is updated to unselected, and the current display state of the third check control is updated, which includes a partially selected state or an unselected state.
[0045] Specifically, if the first radio button is triggered again, such as by clicking it again, the selection state of the label corresponding to the first node will be switched from selected to unselected, and the current display state of the first radio button will be updated from selected to unselected. Figure 2 The "unselected radio button" in the code refers to the first checkbox. Simultaneously, the current display state of the first checkbox needs to be determined and updated. Since the first node, as a subordinate node of the parent node, is not selected, the current display state of the first checkbox is either partially selected or unselected; it will not display a fully selected state. For example, the process of determining the current display state of the first checkbox is as follows: For each parent node of the first node, obtain the label selection state corresponding to that parent node and the label selection state corresponding to each subordinate node of that parent node; in response to the label selection state corresponding to the parent node being unselected or the label selection state corresponding to some subordinate nodes of that parent node being unselected, determine that the current display state of the first checkbox corresponding to that parent node is partially selected; in response to the label selection state corresponding to the parent node being unselected and the label selection state corresponding to each subordinate node of that parent node being unselected, determine that the current display state of the first checkbox corresponding to that parent node is unselected. By triggering the first radio button again, the selection of node labels can be canceled, further improving the flexibility of label selection. It should be noted that triggering the first radio button, which is in an unselected state, allows you to continue selecting the label of the first node, thus enabling precise selection and deselection of a single node label by utilizing the radio button.
[0046] Similarly, if the second checkbox is triggered again, such as by clicking it again, the selection status of all the labels corresponding to the second node and its child nodes will be switched from selected to unselected, and the current display status of the second checkbox will be updated from selected to unselected. Figure 2The "unselected checkbox" in the context of the third checkbox needs to be determined and updated simultaneously. Since the second node, as a child node of the parent node, is not selected, the third checkbox's current display state is either partially selected or unselected; it will not display a fully selected state. For example, the process of determining the current display state of the third checkbox is as follows: For each parent node of the second node, obtain the label selection state corresponding to that parent node and the label selection state corresponding to each child node of that parent node; in response to the label selection state corresponding to the parent node being unselected or the label selection state corresponding to some child nodes of that parent node being unselected, determine that the current display state of the third checkbox corresponding to that parent node is partially selected; in response to the label selection state corresponding to the parent node being unselected and the label selection state corresponding to each child node of that parent node being unselected, determine that the current display state of the third checkbox corresponding to that parent node is unselected. By triggering the second checkbox again, the selection of the parent node's label can be canceled, further improving the flexibility of label selection. It should be noted that triggering the second checkbox, which is in an unselected state, can still allow you to select the labels of all nodes in the subtree containing the second node. This enables batch selection and deselection of multiple node labels by utilizing the checkbox.
[0047] For example, a trigger operation is performed on the fifth checkbox, which is in a partially selected state. In response to this trigger operation, the selection state of all nodes in the subtree corresponding to the fifth checkbox is updated to the selected state, and the current display state of the fifth checkbox is updated to the selected state. The subtree corresponding to the fifth checkbox refers to the subtree containing the third node corresponding to the fifth checkbox, that is, the branch with the third node as the root node. At the same time, the current display state of the checkboxes corresponding to each parent node of the third node is determined and updated synchronously. It should be noted that each time a radio button or checkbox is triggered, the current display state of the checkboxes of all its associated nodes needs to be updated, thereby ensuring the accuracy of the checkbox display state.
[0048] In some alternative implementations, the method may further include: displaying the first number of annotations and the second number of annotations corresponding to each node in the anatomical structure hierarchy tree; wherein the first number of annotations refers to the number of annotations in the current node, and the second number of annotations refers to the total number of annotations in the current node and all its subordinate nodes.
[0049] Here, the current node refers to the node currently displaying the number of annotations, which can be any node in the anatomical structure hierarchy tree. The first annotation count can refer to the number of annotations possessed by the current node itself. The second annotation count can refer to the sum of the number of annotations possessed by all nodes in the subtree containing the current node.
[0050] Specifically, in the hierarchical tree of the anatomical structure, the number of first and second annotations corresponding to each node is displayed at a preset position. This provides a clearer and more intuitive indication to the user of the number of annotations each node possesses and the number of annotations in the subtree to which each node belongs. The number of first and second annotations can be distinguished using a diagonal line, such as... Figure 2 As shown. In Figure 2 In the example, the node "Left Brain" has 2 first and 2 second labels, indicating that "Left Brain" itself has 2 labels, and the total number of labels in the subtree containing "Left Brain" is also 2. This means that the lower-level nodes of "Left Brain" have no labels. Similarly, the node "Cranium" has 0 first labels and 2 second labels, indicating that "Left Brain" itself has no labels, the total number of labels in the subtree containing "Cranium" is 2, and only the lower-level node "Left Brain" in the subtree has 2 labels; other lower-level nodes have no labels.
[0051] In some alternative implementations, the method may further include: displaying a target checkbox corresponding to an anatomical structure hierarchy tree, wherein the target checkbox corresponds to all annotations of the target part; updating the current display state of the target checkbox in response to a triggering operation on a first radio button corresponding to a first node; and updating the current display state of the target checkbox in response to a triggering operation on a second checkbox corresponding to a second node.
[0052] The target selection control corresponds to the hierarchical tree of the anatomical structures of all target areas. It can be used to trigger the selection of all annotations for all target areas. The current display state of the target selection control can be selected all, partially selected, or unselected. Selected all means all annotations for the target area are selected. Partially selected means some annotations for the target area are selected. Unselected means all annotations for the target area are unselected.
[0053] Specifically, such as Figure 2As shown, a target checkbox is displayed to the right of "Anatomy". In response to a trigger operation on the first radio button corresponding to the first node, in addition to updating the current display state of the first radio button and the first checkbox, the current display state of the target checkbox also needs to be determined and updated. For example, in response to each node in the anatomical structure hierarchy tree of the target region having a selected annotation, the current display state of the target checkbox is determined to be "selected all"; in response to some nodes in the anatomical structure hierarchy tree of the target region having selected annotations, the current display state of the target checkbox is determined to be "partially selected"; in response to each node in the anatomical structure hierarchy tree of the target region having unselected annotations, the current display state of the target checkbox is determined to be "unselected". Similarly, in response to a trigger operation on the second checkbox corresponding to the second node, in addition to updating the current display states of the second and third checkboxes, the current display state of the target checkbox also needs to be determined and updated. By synchronously updating the current display state of the target selection control, users can quickly see the overall selection status of the annotations in the entire anatomical structure hierarchy tree without having to expand the anatomical structure hierarchy tree to view it, further improving the efficiency of information transmission.
[0054] For example, the method further includes: displaying a third annotation count in the anatomical structure hierarchy tree, where the third annotation count refers to the total number of all annotations for all target sites. For example, in Figure 2 The "Anatomy" section displays a third annotation count of "2" to the right, indicating that there are a total of 2 annotations. This display of the third annotation count provides a quick and intuitive way to determine the total number of annotations, further enhancing the annotation viewing experience.
[0055] Figure 3 This is a flowchart illustrating another method for controlling the display of annotations in medical images according to an embodiment of the present invention. Based on the above embodiments, this embodiment provides a detailed description of the display control process when an annotation selection operation is triggered in a medical image. Explanations of terms that are the same as or corresponding to those in the above embodiments are not repeated here.
[0056] See Figure 3 Another method for controlling the display of annotations in medical images provided in this embodiment specifically includes the following steps: S310. Display medical images of the target area and annotations of regions of interest in the medical images in the first area of the current page.
[0057] S320. Display the anatomical structure hierarchy tree of the target site in the second area of the current page, and display the radio button corresponding to each leaf node and the radio button and check box corresponding to each parent node in the anatomical structure hierarchy tree. The nodes in the anatomical structure hierarchy tree correspond to the annotations in the medical image.
[0058] S330. In response to the triggering operation of the first radio button corresponding to the first node, determine that the label selection state of the first node is selected, update the current display state of the first radio button to selected, and determine and update the current display state of the first check box.
[0059] S340. In response to the triggering operation of the second check control corresponding to the second node, determine that the label selection state corresponding to the second node and the label selection state corresponding to all the subordinate nodes of the second node are both selected, update the current display state of the second check control to the selected state, and determine and update the current display state of the third check control.
[0060] S350, In response to a label selection operation triggered in a medical image, the label selection state corresponding to the currently selected target label is determined to be selected.
[0061] The annotation selection operation can be triggered within the medical image displayed in the first area and is used to select target annotations. For example, the annotation selection operation can be an operation that selects a bounding box around the target annotations to be selected. There can be one or more target annotations.
[0062] Specifically, in addition to selecting annotations via radio buttons and checkboxes, users can also directly select annotations within medical images by triggering annotation selection operations, further improving the accuracy, flexibility, and convenience of annotation selection. For example, based on annotation selection operations, all target annotations currently selected in the medical image can be retrieved, and the selection status of each currently selected target annotation can be determined as selected. Triggering annotation selection operations allows multiple annotations to be selected at once, further improving annotation selection efficiency.
[0063] S360. Determine the target node corresponding to the target label, update the current display state of the radio button corresponding to the target node to the selected state, and update the current display state of the fourth check box, which includes the check box corresponding to each parent node of the target node.
[0064] Specifically, based on the correspondence between annotations in medical images and nodes in the anatomical structure hierarchy tree, the target node corresponding to each target annotation is determined, thereby obtaining all target annotations corresponding to each target node. Since all target annotations corresponding to each target node are in a selected state, the current display state of the radio button corresponding to each target node is updated to the selected state, and the current display state of the fourth checkbox is simultaneously determined and updated, that is, the current display state of the checkbox corresponding to each parent node of the target node.
[0065] For example, the process of determining the current display state of the fourth checkbox is as follows: for each parent node of each target node, obtain the label selection state corresponding to the parent node and the label selection state corresponding to each child node of the parent node; in response to the label selection state corresponding to the parent node being selected and the label selection state corresponding to each child node of the parent node being selected, determine that the current display state of the first checkbox corresponding to the parent node is the full selection state; in response to the label selection state corresponding to the parent node being unselected or the label selection state corresponding to some child nodes of the parent node being unselected, determine that the current display state of the first checkbox corresponding to the parent node is the partial selection state.
[0066] By responding to annotation selection operations triggered in medical images, the current display status of single-selection and checkboxes in the anatomical structure hierarchy tree is updated synchronously, thereby achieving linked updates of control status, ensuring the accuracy of control status display, and further improving the visual display effect of annotation information.
[0067] S370. Based on the annotation selection status, determine all currently selected annotations, and in response to the display control trigger operation, control whether all currently selected annotations are displayed in the medical image.
[0068] The technical solution of this embodiment, in response to the annotation selection operation triggered in the medical image, determines the annotation selection state corresponding to the currently selected target annotation as the selected state, determines the target node corresponding to the target annotation, updates the current display state of the radio button corresponding to the target node to the selected state, and updates the current display state of the fourth check box, thereby further improving the accuracy, flexibility and convenience of annotation selection, and realizing the linkage update of the control state, ensuring the accuracy of the control state display, and further improving the visual display effect of annotation information.
[0069] The following are embodiments of the medical image annotation display control device provided in this invention. This device and the medical image annotation display control method in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the medical image annotation display control device, please refer to the embodiments of the medical image annotation display control method described above.
[0070] Figure 4 This is a schematic diagram of a medical image annotation display control device provided in an embodiment of the present invention. Figure 4 As shown, the device specifically includes: a label display module 410, a hierarchical tree display module 420, a first state update module 430, a second state update module 440, and a label display control module 450.
[0071] The annotation display module 410 is used to display medical images of the target body part and annotations of the regions of interest in the medical images in a first area of the current page; the hierarchical tree display module 420 is used to display the anatomical structure hierarchical tree of the target body part in a second area of the current page, and to display a radio button corresponding to each leaf node and a radio button and a checkbox corresponding to each parent node in the anatomical structure hierarchical tree, wherein the nodes in the anatomical structure hierarchical tree correspond to the annotations in the medical images; the first state update module 430 is used to respond to a trigger operation on the first radio button corresponding to the first node, to determine that the annotation selection state of the first node is selected, and to update the current display state of the first radio button to selected, and to determine and update the current display state of the first checkbox, wherein the first checkbox includes each upper node of the first node. The first checkbox is a checkbox corresponding to a first node. The current display state of the first checkbox includes either a full selection state or a partial selection state. The second state update module 440 is used to determine, in response to a trigger operation on the second checkbox corresponding to the second node, that the label selection state of the second node and the label selection states of all lower-level nodes of the second node are both selected, and update the current display state of the second checkbox to the full selection state. It also determines and updates the current display state of the third checkbox, which includes checkboxes corresponding to each upper-level node of the second node. The current display state of the third checkbox includes either a full selection state or a partial selection state. The label display control module 450 is used to determine all currently selected labels based on the label selection state, and in response to a display control trigger operation, control whether all currently selected labels are displayed in the medical image.
[0072] The technical solution of this embodiment displays medical images of the target site and annotations of regions of interest in the medical images in a first area of the current page; displays an anatomical structure hierarchy tree of the target site in a second area of the current page, and displays radio buttons corresponding to each leaf node and radio buttons and checkboxes corresponding to each parent node in the anatomical structure hierarchy tree. The nodes in the anatomical structure hierarchy tree correspond to the annotations in the medical images. In response to the triggering operation of the first radio button corresponding to the first node, the annotation selection state of the first node is determined to be selected, and the current display state of the first radio button is updated to selected. The current display state of the first checkbox is also determined and updated. The first checkbox includes checkboxes corresponding to each parent node of the first node, and the current display state of the first checkbox includes a full selection state or a partial selection state. Thus, by triggering the radio buttons, the annotations of each anatomical structure level can be accurately selected, and the selection status of all annotations corresponding to the subtree can be quickly obtained based on the display state of the checkboxes without displaying the subtree hierarchy. In response to the trigger operation of the second checkbox corresponding to the second node, the annotation selection state of the second node and all its subordinate nodes are determined to be selected. The current display state of the second checkbox is updated to "select all". The current display state of the third checkbox is also determined and updated. The third checkbox includes checkboxes corresponding to each parent node of the second node. The current display state of the third checkbox includes either "select all" or "select some". This allows for batch selection of annotations at multiple anatomical structure levels by triggering the checkboxes. Furthermore, based on the display state of the checkboxes, the selection status of all annotations corresponding to a subtree can be quickly determined without displaying the subtree hierarchy. Based on the annotation selection state, all currently selected annotations are determined, and in response to the display control trigger operation, the display of all currently selected annotations in the medical image is controlled. This allows for the simultaneous display or hiding of all selected annotations based on actual needs, achieving flexible control of annotation display and efficient batch visualization management. This reduces visual interference, facilitates efficient management and accurate viewing of annotations, and improves the clarity and accuracy of lesion observation and interpretation.
[0073] Optionally, the first state update module 430 is specifically used for: For each parent node of the first node, obtain the annotation selection status corresponding to the parent node and the annotation selection status corresponding to each child node of the parent node; In response to the fact that the label selection state corresponding to the parent node is selected and the label selection state corresponding to each of the parent node's subordinate nodes is also selected, the current display state of the first checkbox corresponding to the parent node is determined to be the selected state. In response to the fact that the label selection status of the parent node is unselected or that the label selection status of some of the child nodes of the parent node is unselected, the current display status of the first checkbox corresponding to the parent node is determined to be partially selected.
[0074] Optionally, the label display control module 450 is specifically used for: In response to the display control trigger operation and the fact that all currently selected annotations are currently hidden, control all currently selected annotations to be displayed in the medical image; In response to a display control trigger operation and the current state of all currently selected annotations being displayed, control all currently selected annotations to be hidden in the medical image.
[0075] Optionally, the first state update module 430 is further configured to: in response to a re-triggering operation on the first radio button, determine that the label selection state corresponding to the first node is unselected, update the current display state of the first radio button to unselected, and update the current display state of the first check box, wherein the current display state of the first check box includes a partially selected state or an unselected state. The second state update module 440 is further configured to: in response to a re-triggering operation of the second check control, determine that the label selection state corresponding to the second node and the label selection states corresponding to all subordinate nodes of the second node are both unselected, update the current display state of the second check control to unselected, and update the current display state of the third check control, wherein the current display state of the third check control includes a partially selected state or an unselected state.
[0076] Optionally, the device further includes: The annotation quantity display module is used to display the first annotation quantity and the second annotation quantity corresponding to each node in the anatomical structure hierarchy tree; wherein, the first annotation quantity refers to the number of annotations in the current node, and the second annotation quantity refers to the total number of annotations in the current node and all its subordinate nodes.
[0077] Optionally, the method further includes: The third state update module is used to: respond to a label selection operation triggered in a medical image, determine the label selection state corresponding to the currently selected target label as the selected state; determine the target node corresponding to the target label, and update the current display state of the radio button corresponding to the target node as the selected state; and update the current display state of the fourth check box, wherein the fourth check box includes the check box corresponding to each parent node of the target node.
[0078] Optionally, the device further includes: The target selection control display module is used to display the target selection controls corresponding to the anatomical structure hierarchy tree, wherein the target selection controls correspond to all the annotations of the target part; The target check control state update module is used to update the current display state of the target check control in response to a trigger operation on the first check control corresponding to the first node; and to update the current display state of the target check control in response to a trigger operation on the second check control corresponding to the second node.
[0079] The medical image annotation display control device provided in the embodiments of the present invention can execute the medical image annotation display control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the medical image annotation display control method.
[0080] It is worth noting that in the embodiments of the above-mentioned medical image annotation display control device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0081] Figure 5 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0082] like Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0083] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0084] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the annotation display control method in medical images described above.
[0085] In some embodiments, the medical image annotation display control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the medical image annotation display control method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the medical image annotation display control method by any other suitable means (e.g., by means of firmware).
[0086] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0087] Computer programs for implementing the annotation display control method in medical images of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0088] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0089] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0090] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0091] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0092] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the annotation and display control method in medical images as provided in any embodiment of this invention.
[0093] In the implementation of a computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages as well as conventional procedural programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0094] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0095] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for controlling the display of annotations in medical images, characterized in that, include: The first area of the current page displays medical images of the target area and annotations of the regions of interest in the medical images; The second area of the current page displays the hierarchical tree of the anatomical structure of the target area, and displays a radio button corresponding to each leaf node and a radio button and a checkbox corresponding to each parent node in the hierarchical tree. The nodes in the hierarchical tree correspond to the annotations in the medical image. In response to a trigger operation on the first radio button corresponding to the first node, the annotation selection state corresponding to the first node is determined to be selected, and the current display state of the first radio button is updated to be selected. The current display state of the first check control is also determined and updated. The first check control includes the check control corresponding to each parent node of the first node. The current display state of the first check control includes a full selection state or a partial selection state. In response to the triggering operation of the second check control corresponding to the second node, it is determined that the label selection state corresponding to the second node and the label selection state corresponding to all the subordinate nodes of the second node are both selected, and the current display state of the second check control is updated to the selected state. In addition, the current display state of the third check control is determined and updated. The third check control includes the check control corresponding to each parent node of the second node. The current display state of the third check control includes the selected state or the selected state. Based on the annotation selection status, determine all currently selected annotations, and in response to the display control trigger operation, control whether all currently selected annotations are displayed in the medical image.
2. The method according to claim 1, characterized in that, Determine the current display state of the first checkbox, including: For each parent node of the first node, obtain the annotation selection status corresponding to the parent node and the annotation selection status corresponding to each child node of the parent node; In response to the fact that the label selection state corresponding to the parent node is selected and the label selection state corresponding to each of the parent node's subordinate nodes is also selected, the current display state of the first checkbox corresponding to the parent node is determined to be the selected state. In response to the fact that the label selection status of the parent node is unselected or that the label selection status of some of the child nodes of the parent node is unselected, the current display status of the first checkbox corresponding to the parent node is determined to be partially selected.
3. The method according to claim 1, characterized in that, In response to a display control trigger operation, control whether all currently selected annotations are displayed in the medical image, including: In response to the display control trigger operation and the fact that all currently selected annotations are currently hidden, control all currently selected annotations to be displayed in the medical image; In response to a display control trigger operation and the current state of all currently selected annotations being displayed, control all currently selected annotations to be hidden in the medical image.
4. The method according to claim 1, characterized in that, The method further includes: In response to the re-triggering operation of the first radio button, the selection state of the label corresponding to the first node is determined to be unselected, and the current display state of the first radio button is updated to be unselected, and the current display state of the first check box is updated, wherein the current display state of the first check box includes a partially selected state or an unselected state. In response to the re-triggering operation of the second check control, it is determined that the label selection state corresponding to the second node and the label selection state corresponding to all subordinate nodes of the second node are both unselected. The current display state of the second check control is updated to unselected, and the current display state of the third check control is updated, which includes a partially selected state or an unselected state.
5. The method according to claim 1, characterized in that, The method further includes: The hierarchical tree of the anatomical structure displays the first number of annotations and the second number of annotations corresponding to each node; wherein, the first number of annotations refers to the number of annotations in the current node, and the second number of annotations refers to the total number of annotations in the current node and all its subordinate nodes.
6. The method according to claim 1, characterized in that, The method further includes: In response to a label selection operation triggered in a medical image, the label selection status corresponding to the currently selected target label is determined to be selected. The target node corresponding to the target label is determined, and the current display state of the radio button corresponding to the target node is updated to the selected state. The current display state of the fourth check box is also updated. The fourth check box includes the check box corresponding to each parent node of the target node.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: Display the target selection control corresponding to the hierarchical tree of the anatomical structure, wherein the target selection control corresponds to all the annotations of the target part; In response to a trigger operation on the first radio button corresponding to the first node, update the current display state of the target check box; In response to a trigger operation on the second checkbox corresponding to the second node, the current display state of the target checkbox is updated.
8. A medical image annotation and display control device, characterized in that, include: The annotation display module is used to display medical images of the target body part and annotations of the regions of interest in the medical images in the first area of the current page; The hierarchical tree display module is used to display the hierarchical tree of the anatomical structure of the target part in the second area of the current page, and to display the radio button corresponding to each leaf node and the radio button and check box corresponding to each parent node in the hierarchical tree of the anatomical structure. The nodes in the hierarchical tree of the anatomical structure correspond to the annotations in the medical image. The first state update module is used to respond to the trigger operation of the first radio button corresponding to the first node, determine that the label selection state of the first node is selected, update the current display state of the first radio button to selected, and determine and update the current display state of the first check control. The first check control includes the check control corresponding to each parent node of the first node, and the current display state of the first check control includes a full selection state or a partial selection state. The second state update module is used to respond to the trigger operation of the second check control corresponding to the second node, determine that the label selection state corresponding to the second node and the label selection state corresponding to all the subordinate nodes of the second node are both selected, update the current display state of the second check control to the selected state, and determine and update the current display state of the third check control, wherein the third check control includes the check control corresponding to each superior node of the second node, and the current display state of the third check control includes the selected state or the selected state. The annotation display control module is used to determine all currently selected annotations based on the annotation selection status, and in response to the display control trigger operation, control whether all currently selected annotations are displayed in the medical image.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the annotation display control method in medical images according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the annotation display control method in medical images as described in any one of claims 1-7.
Citation Information
Patent Citations
Multilevel tree menu display method and terminal
CN104063381A
Annotation panel generation method and device, storage medium and computer equipment
CN110807761A
Pull-down box generation method and device with full selection function and computer equipment
CN116737116A
Contour identification method and system for target in medical image
CN118628519A
Visual strategy configuration method and system for multi-level resources
CN121579137A