CN110473609B - Medical image editing method, medical image editing device, computer equipment and readable storage medium - Google Patents

Medical image editing method, medical image editing device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN110473609B
CN110473609B CN201910704489.3A CN201910704489A CN110473609B CN 110473609 B CN110473609 B CN 110473609B CN 201910704489 A CN201910704489 A CN 201910704489A CN 110473609 B CN110473609 B CN 110473609B
Authority
CN
China
Prior art keywords
action range
editing
range adjustment
current
medical image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910704489.3A
Other languages
Chinese (zh)
Other versions
CN110473609A (en
Inventor
王道明
陈香君
刘振中
秦硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai United Imaging Intelligent Healthcare Co Ltd
Original Assignee
Shanghai United Imaging Intelligent Healthcare Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai United Imaging Intelligent Healthcare Co Ltd filed Critical Shanghai United Imaging Intelligent Healthcare Co Ltd
Priority to CN201910704489.3A priority Critical patent/CN110473609B/en
Publication of CN110473609A publication Critical patent/CN110473609A/en
Application granted granted Critical
Publication of CN110473609B publication Critical patent/CN110473609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • G16H30/40ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a medical image editing method, a medical image editing device, computer equipment and a readable storage medium, wherein the medical image editing method comprises the following steps: acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool; and in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction. In the method, the action range adjustment instruction is input through the editing area of the medical image, and the tool area and the editing area do not need to be switched back and forth, so that the operation steps are simplified, and the editing efficiency of the medical image is improved; and the action range of the adjusted editing tool is displayed in the editing area in real time, so that a user can quickly know the action range of the adjusted editing tool, and the interactivity of the medical image editing process is improved.

Description

Medical image editing method, medical image editing device, computer equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a medical image editing method, apparatus, computer device, and readable storage medium.
Background
In the current medical diagnosis process, most focus areas can be calculated by a common auxiliary diagnosis algorithm, but due to the performance limitation of the algorithm, the focus areas may deviate from the actual focus areas, so that doctors are required to edit focus areas with errors, and focus area results with higher accuracy are finally obtained. For example, for detecting a focal region of cerebral hemorrhage, if the range of the focal region calculated by the auxiliary diagnostic algorithm is larger, a doctor is required to erase the redundant region; if the range is small, a doctor is required to fill in the area which is not detected. In the process of editing a focal region of a medical image, it is generally necessary to adjust the size of an editing tool (such as a filling pen), for example, the filling of a larger focal region can be quickly performed by using the filling pen with a larger size; the use of smaller size pens for filling smaller lesion areas reduces filling errors.
When the size of the editing tool is adjusted in the traditional technology, the adjusted size of the editing tool is required to be selected in the tool area, or the adjusted size of the editing tool is required to be input in a text box of the tool area, or a scroll bar corresponding to the size of the editing tool in the tool area is dragged, and then the editing area is returned to carry out editing; if the adjusted editing tool size does not meet the requirement, the tool area needs to be returned again to adjust the editing tool size.
As can be seen from the above, the conventional technique requires repeated switching between the tool area and the editing area to adjust the size of the editing tool, which is cumbersome to operate and results in low editing efficiency for the lesion area.
Disclosure of Invention
Based on this, it is necessary to provide a medical image editing method, apparatus, computer device and readable storage medium for the problem of low editing efficiency of a lesion area in the conventional technology.
In a first aspect, an embodiment of the present application provides a medical image editing method, including:
acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool;
and in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction.
In a second aspect, an embodiment of the present application provides a medical image editing apparatus, including:
the acquisition module is used for acquiring an action range adjustment instruction input in an editing area of the medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool;
and the adjusting module is used for adjusting the action range displayed by the current editing tool according to the action range adjusting instruction in the editing area and editing the medical image according to the editing instruction.
In a third aspect, embodiments of the present application provide a computer device, including a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool;
and in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool;
and in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction.
The medical image editing method, the medical image editing device, the computer equipment and the readable storage medium firstly acquire an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool; and then in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction. In the method, the action range adjustment instruction is input through the editing area of the medical image, and the tool area and the editing area do not need to be switched back and forth, so that the operation steps are simplified, and the editing efficiency of the medical image is improved; and the action range of the adjusted editing tool is displayed in the editing area in real time, so that a user can quickly know the action range of the adjusted editing tool, and the interactivity of the medical image editing process is improved.
Drawings
FIG. 1 is a flow chart of a medical image editing method provided by an embodiment;
FIG. 2 is a flow chart of a medical image editing method according to another embodiment;
FIG. 3 is a flow chart of a medical image editing method according to yet another embodiment;
FIG. 3a is a schematic diagram illustrating the range of motion of an editing tool according to one embodiment;
FIG. 4 is a schematic structural view of a medical image editing apparatus according to an embodiment;
FIG. 5 is a schematic structural view of a medical image editing apparatus according to another embodiment;
fig. 6 is a schematic diagram of an internal structure of a computer device according to an embodiment.
Detailed Description
The medical image editing method provided by the embodiment of the application can be suitable for a process of editing a focus area in a medical image and a process of editing other areas in the medical image, and the method provided by the embodiment of the application can be suitable as long as the size of an editing tool (such as a filling pen or an eraser is enlarged or reduced) needs to be adjusted in the editing process. When the size of the editing tool is required to be adjusted in the traditional technology, the adjusted editing tool size is usually required to be selected in the tool area or the adjusted editing tool size is input in the tool area, and then the editing area is returned to be edited, if the adjusted editing tool size does not meet the requirement, the tool area is required to be returned again to adjust the editing tool size, so that the operation is complicated, and the editing efficiency of the medical image is lower. The application discloses a medical image editing method, a medical image editing device, computer equipment and a readable storage medium, and aims to solve the technical problems.
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, the execution subject of the method embodiments described below may be a medical image editing apparatus, and the apparatus may be implemented as part or all of a computer device by software, hardware, or a combination of software and hardware. The following method embodiments are described taking an execution subject as an example of a computer device, where the computer device may be a terminal, may be a separate computing device, or may be integrated on a medical imaging device, and this embodiment is not limited to this.
Fig. 1 is a flow chart of a medical image editing method according to an embodiment. The embodiment relates to a specific process that the computer device adjusts the action range of the current editing tool according to the acquired action range adjustment instruction. As shown in fig. 1, the method includes:
s101, acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes an action range adjustment amount corresponding to the current editing tool.
Specifically, in the process of editing the medical image, if the focal area in the medical image is filled, when the action range of the currently used editing tool needs to be adjusted, the action range adjusting instruction can be input in the current editing area, and then the computer equipment can acquire the action range adjusting instruction in real time. The action range adjustment instruction in the embodiment is input in the editing area of the medical image, and the selection is not needed to be repeated in the tool area, and optionally, the user can input the action range adjustment instruction through a mouse, a keyboard shortcut key or other input devices connected with the computer device; when the display screen of the computer device is a touch screen, the user can also directly input an action range adjustment instruction on the touch screen for the editing tool.
The action range adjustment instruction characterizes an action range adjustment amount of the current editing tool, and optionally, at an initial time, the action range of the editing tool may be a default value of the system. For example, when the application range adjustment command is input through a keyboard shortcut key (such as Ctrl key) and a mouse wheel, the action range of the character editing tool is doubled by sliding the wheel down one circle, and the action range of the character editing tool is doubled by sliding the wheel up one circle.
S102, in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction.
Specifically, after the computer device obtains the action range adjustment instruction, the instruction may be parsed to obtain an action range adjustment amount corresponding to the instruction, and then the action range of the current editing tool is adjusted for the action range adjustment amount in the editing area, and displayed to the user in real time. If the adjusted action range of the editing tool does not meet the requirement, the user can input the action range adjustment instruction again in the editing area. For example, if the action range adjustment amount is one time the action range of the editing tool, the computer device adjusts the action range of the editing tool to be two times the original action range and displays it. The computer device can then receive editing instructions input by the user through the adjusted editing tool to edit the medical image.
Alternatively, the display form of the current editing tool on the editing area may be a circle, and the radius of the circle represents the action range of the current editing tool, for example, assuming that the radius of the circle is 5mm, the action range of the current editing tool is a circle with a radius of 5 mm. Optionally, the display form of the current editing tool may be a rectangle, and the side length (length and width) of the rectangle represents the action range of the current editing tool; of course, the display form of the editing tool may be other shapes, and the present embodiment is not limited to this.
According to the medical image editing method provided by the embodiment, the computer equipment firstly acquires an action range adjustment instruction input in an editing area of a medical image, wherein the action range adjustment instruction represents an action range adjustment amount corresponding to a current editing tool; and then adjusting the action range displayed by the current editing tool in the editing area according to the action range adjustment instruction, and editing the medical image according to the editing instruction. In the method, the action range adjustment instruction is input through the editing area of the medical image, and the tool area and the editing area do not need to be switched back and forth, so that the operation steps are simplified, and the editing efficiency of the medical image is improved; and the action range of the adjusted editing tool is displayed in the editing area in real time, so that a user can quickly know the action range of the adjusted editing tool, and the interactivity of the medical image editing process is improved.
Fig. 2 is a flowchart of a medical image editing method according to another embodiment. The embodiment relates to a specific process that the computer device adjusts the action range displayed by the current editing tool according to the action range adjustment instruction. Optionally, on the basis of the foregoing embodiment, as shown in fig. 2, S102 includes:
s201, acquiring the current action range of the current editing tool.
Specifically, the computer device first obtains the current scope of action of the current editing tool, such as the radius of the circular editing tool, the side length of the rectangular editing tool, and the like.
S202, analyzing the action range adjustment instruction, and determining the action range adjustment amount corresponding to the action range adjustment instruction.
Specifically, since the action range adjustment instruction characterizes the action range adjustment amount of the current editing tool, the computer device can obtain the corresponding action range adjustment amount thereof by analyzing the action range adjustment instruction.
Optionally, the computer device analyzes the action range adjustment instruction, so that a position change amount of the input control in a preset direction of the editing area can be obtained, and then according to the position change amount of the input control, an action range adjustment amount corresponding to the action range adjustment instruction can be determined, wherein the action range adjustment instruction is an instruction input through the input control. Optionally, the input control may be a mouse, a keyboard or other input devices connected to the computer device, and the preset direction may be a Y-axis direction or an X-axis direction. By way of example, assuming that the resulting change in position of the input control in the Y-axis direction of the edit field is 5 pixels moved upward, the computer device may determine that the range adjustment amount corresponding to the range adjustment instruction is a 5mm radius expansion, or an n-fold expansion of 5mm, which may be set as desired.
S203, determining the updated action range of the current editing tool according to the current action range and the action range adjustment amount of the current editing tool, and displaying the updated action range.
Specifically, the computer device determines the updated scope of the current editing tool according to the current scope and the scope adjustment amount of the current editing tool. Taking the display form of the editing tool as a circle as an example, assuming that the current action range is a radius of 5mm and the action range adjustment amount is a radius expansion of 5mm, the update action range of the editing tool is 10mm. The computer device then displays the editing tool corresponding to the updated scope.
According to the medical image editing method provided by the embodiment, the computer equipment firstly acquires the current action range of the current editing tool, then analyzes the action range adjustment instruction to determine the corresponding action range adjustment quantity, and then determines the updated action range of the current editing tool according to the current action range and the action range adjustment quantity. According to the method, the current acting range of the current editing tool is taken as a reference, and the updated acting range is determined according to the acting range adjustment quantity, so that the matching degree of the updated acting range and the acting range required by a user can be improved, the correlation between the acting range adjustment quantity and the position change quantity of the input control can be further set according to the requirement, and the editing efficiency of medical images is further improved.
The specific process of analyzing the action range adjustment instruction to obtain the position variation of the input control in the preset direction of the editing area when the input control is a mouse is described in the following specific embodiment. Fig. 3 is a flow chart of a medical image editing method according to still another embodiment, where, based on the foregoing embodiment, S202 includes:
s301, acquiring the starting position and the ending position of a mouse pointer carried in the action range adjustment instruction in the editing area.
Specifically, the above action range adjustment instruction is an instruction input by a button of the trigger mouse, alternatively, an instruction input by a right button of the trigger mouse may be an instruction input by clicking the right button of the mouse to make the mouse pointer slide positively along the Y axis to expand the action range of the editing tool, and clicking the right button of the mouse to make the mouse pointer slide negatively along the Y axis to reduce the action range of the editing tool. The computer equipment can obtain the starting position and the ending position of the mouse pointer in the editing area by analyzing the action range adjustment instruction, wherein the starting position and the ending position can be represented by corresponding position coordinates. Alternatively, if the preset direction is the Y-axis direction, the start position and the end position may be represented by coordinates on the Y-axis.
S302, calculating displacement amounts of the initial position and the final position in a preset direction, and taking the displacement amounts as position change amounts of the mouse pointer on the editing area.
Specifically, after the computer device obtains the initial position and the final position of the mouse pointer in the editing area, the displacement of the initial position and the final position of the mouse pointer in the preset direction can be calculated, and the displacement is used as the position change of the mouse pointer in the editing area. By way of example, assuming that the start position of the mouse pointer in the Y-axis direction is 10 and the end position after the input of the scope adjustment instruction is 15, the amount of change in the position of the mouse pointer can be determined to be 5 pixels forward moving along the Y-axis.
Alternatively, in some embodiments, after obtaining the displacement amount of the mouse pointer, the computer device may multiply the displacement amount by a preset scale factor, and use the product result as the action range adjustment amount corresponding to the action range adjustment instruction, where the scale factor characterizes the variation amplitude of the action range adjustment amount.
Alternatively, the computer device may calculate the value according to the formula (Y new -Y old ) Determining the range adjustment amount by x beta, wherein (Y new -Y old ) Is the displacement, Y new To the end position, Y old And for the initial position, beta is a scale factor, and represents the variation amplitude of the action range adjustment quantity according to the displacement. For example, assuming that the displacement amount of the mouse pointer is 5 pixels and β is 2, the range adjustment amount of the editing tool is 10mm.
Optionally, after the computer device obtains the action range adjustment amount of the current editing tool, the computer device may adjust the current action range and the action range adjustment amountAnd summing, wherein the sum result is used as the updated action range of the current editing tool. Alternatively, the computer device may calculate the value according to the formula (Y new -Y old ) Obtaining an updated action range of the editing tool by using x beta+r, wherein r is the current action range of the current editing tool; in addition, the current action range and the action range adjustment amount may be weighted and summed to obtain the updated action range of the current editing tool. Illustratively, after clicking the right mouse button to move the mouse pointer in the positive/negative direction along the Y-axis, the range of action of the editing tool on the medical image is changed, see the schematic diagram shown in fig. 3 a.
According to the medical image editing method, the action range adjustment instruction is input through the mouse, so that familiar operation of a user on the mouse is utilized, and the medical image editing method is more convenient for the user to edit the medical image.
It should be understood that, although the steps in the flowcharts of fig. 1-3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps or stages of other steps.
Fig. 4 is a schematic structural view of a medical image editing apparatus according to an embodiment. As shown in fig. 4, the apparatus includes: an acquisition module 11 and an adjustment module 12.
Specifically, the acquiring module 11 is configured to acquire an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes an action range adjustment amount corresponding to the current editing tool.
The adjustment module 12 is configured to adjust, in the editing area, an action range displayed by the current editing tool according to the action range adjustment instruction, and edit the medical image according to the editing instruction.
The medical image editing apparatus provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Fig. 5 is a schematic structural diagram of a medical image editing apparatus according to another embodiment. On the basis of the embodiment shown in fig. 4, as shown in fig. 5, the adjustment module 12 includes: an acquisition unit 121, a parsing unit 122, and a determination unit 123.
Specifically, the obtaining unit 121 is configured to obtain a current action range of a current editing tool.
An analyzing unit 122, configured to analyze the action range adjustment instruction and determine an action range adjustment amount corresponding to the action range adjustment instruction;
a determining unit 123, configured to determine an update action range of the current editing tool according to the current action range and the action range adjustment amount of the current editing tool, and display the update action range.
The medical image editing apparatus provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
In one embodiment, the parsing unit 122 is specifically configured to parse the action range adjustment instruction to obtain a position variation of the input control in a preset direction of the editing area; the action range adjusting instruction is an instruction input through an input control; and determining the action range adjustment quantity corresponding to the action range adjustment instruction according to the position change quantity.
In one embodiment, the input control is a mouse, and the parsing unit 122 is specifically configured to obtain a start position and an end position of a mouse pointer in the editing area, where the start position and the end position are carried in the action range adjustment instruction; and calculating the displacement of the initial position and the final position in the preset direction, and taking the displacement as the position variation of the mouse pointer on the editing area.
In one embodiment, the parsing unit 122 is specifically configured to multiply the displacement by a preset scale factor, and take the result of the multiplication as an action range adjustment amount corresponding to the action range adjustment instruction; the preset scale factor characterizes the variation amplitude of the action range adjustment quantity.
In one embodiment, the determining unit 123 is specifically configured to sum the current action range of the current editing tool and the action range adjustment amount, and use the sum result as the updated action range of the current editing tool.
In one embodiment, the display form of the current editing tool on the editing area is a circle or a rectangle, and the radius of the circle or the side length of the rectangle represents the action range of the current editing tool.
For specific limitations of the medical image editing apparatus, reference may be made to the above limitations of the medical image editing method, and no further description is given here. The respective modules in the above-described medical image editing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a medical image editing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool;
and in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction.
The computer device provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiment, and will not be described herein.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring the current action range of the current editing tool;
analyzing the action range adjustment instruction, and determining an action range adjustment amount corresponding to the action range adjustment instruction;
and determining the updated action range of the current editing tool according to the current action range and the action range adjustment quantity of the current editing tool, and displaying the updated action range.
In one embodiment, the processor when executing the computer program further performs the steps of:
analyzing the action range adjustment instruction to obtain the position variation of the input control in the preset direction of the editing area; the action range adjusting instruction is an instruction input through an input control;
and determining the action range adjustment quantity corresponding to the action range adjustment instruction according to the position change quantity.
In one embodiment, the input control is a mouse, and the processor when executing the computer program further performs the steps of:
acquiring a starting position and an ending position of a mouse pointer carried in an action range adjustment instruction in an editing area;
and calculating displacement amounts of the starting position and the ending position in a preset direction, and taking the displacement amounts as the position variation amounts of the mouse pointer on the editing area.
In one embodiment, the processor when executing the computer program further performs the steps of:
multiplying the displacement with a preset scale factor, and taking the product result as an action range adjustment quantity corresponding to the action range adjustment instruction; the preset scale factor characterizes the variation amplitude of the action range adjustment quantity.
In one embodiment, the processor when executing the computer program further performs the steps of:
and summing the current action range of the current editing tool and the action range adjustment quantity, and taking the summation result as the updated action range of the current editing tool.
In one embodiment, the display form of the current editing tool on the editing area is a circle or a rectangle, and the radius of the circle or the side length of the rectangle represents the action range of the current editing tool.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes the action range adjustment quantity corresponding to the current editing tool;
and in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, and editing the medical image according to the editing instruction.
The computer readable storage medium provided in this embodiment has similar principles and technical effects to those of the above method embodiment, and will not be described herein.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the current action range of the current editing tool;
analyzing the action range adjustment instruction, and determining an action range adjustment amount corresponding to the action range adjustment instruction;
and determining the updated action range of the current editing tool according to the current action range and the action range adjustment quantity of the current editing tool, and displaying the updated action range.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the action range adjustment instruction to obtain the position variation of the input control in the preset direction of the editing area; the action range adjusting instruction is an instruction input through an input control;
and determining the action range adjustment quantity corresponding to the action range adjustment instruction according to the position change quantity.
In one embodiment, the input control is a mouse, and the computer program when executed by the processor further performs the steps of:
acquiring a starting position and an ending position of a mouse pointer carried in an action range adjustment instruction in an editing area;
and calculating displacement amounts of the starting position and the ending position in a preset direction, and taking the displacement amounts as the position variation amounts of the mouse pointer on the editing area.
In one embodiment, the computer program when executed by the processor further performs the steps of:
multiplying the displacement with a preset scale factor, and taking the product result as an action range adjustment quantity corresponding to the action range adjustment instruction; the preset scale factor characterizes the variation amplitude of the action range adjustment quantity.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and summing the current action range of the current editing tool and the action range adjustment quantity, and taking the summation result as the updated action range of the current editing tool.
In one embodiment, the display form of the current editing tool on the editing area is a circle or a rectangle, and the radius of the circle or the side length of the rectangle represents the action range of the current editing tool.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (9)

1. A medical image editing method, comprising:
acquiring an action range adjustment instruction input in an editing area of a medical image; the action range adjustment instruction characterizes action range adjustment amounts corresponding to a current editing tool, and the current editing tool comprises a filling pen or an eraser;
in the editing area, adjusting the action range displayed by the current editing tool according to the action range adjustment instruction, editing the medical image according to the editing instruction, wherein editing the medical image comprises filling a focus area in the medical image;
the adjusting the action range displayed by the current editing tool according to the action range adjusting instruction includes:
acquiring a current action range of the current editing tool;
analyzing the action range adjustment instruction and determining an action range adjustment amount corresponding to the action range adjustment instruction;
determining an updating action range of the current editing tool according to the current action range of the current editing tool and the action range adjustment quantity, and displaying the updating action range;
the analyzing the action range adjustment instruction, determining the action range adjustment amount corresponding to the action range adjustment instruction, includes:
analyzing the action range adjustment instruction to obtain the position variation of the input control in the preset direction of the editing area; the action range adjustment instruction is an instruction input through the input control;
and determining the action range adjustment quantity corresponding to the action range adjustment instruction according to the position change quantity.
2. The method of claim 1, wherein the input control is a mouse, and the parsing the action range adjustment instruction obtains a position change amount of the input control in a preset direction of the editing area, including:
acquiring a starting position and a terminating position of a mouse pointer carried in the action range adjustment instruction in the editing area;
and calculating the displacement of the initial position and the final position in the preset direction, and taking the displacement as the position variation of the mouse pointer on the editing area.
3. The method according to claim 2, wherein determining the action range adjustment amount corresponding to the action range adjustment instruction according to the position change amount includes:
multiplying the displacement with a preset scale factor, and taking the product result as an action range adjustment quantity corresponding to the action range adjustment instruction; the preset scale factor characterizes the variation amplitude of the action range adjustment quantity.
4. A method according to any one of claims 1-3, wherein said determining an updated scope of the current editing tool based on the current scope of the current editing tool, the scope adjustment amount, comprises:
and summing the current acting range of the current editing tool and the acting range adjustment quantity, and taking the summation result as the updated acting range of the current editing tool.
5. The method of claim 1, wherein the current editing tool is displayed on the editing area in a circular or rectangular shape, and a radius of the circular shape or a side length of the rectangular shape characterizes an action range of the current editing tool.
6. A medical image editing apparatus, comprising:
the acquisition module is used for acquiring an action range adjustment instruction input in an editing area of the medical image; the action range adjustment instruction characterizes action range adjustment amounts corresponding to a current editing tool, and the current editing tool comprises a filling pen or an eraser;
the adjusting module is used for adjusting the action range displayed by the current editing tool according to the action range adjusting instruction in the editing area, editing the medical image according to the editing instruction, and the editing of the medical image comprises filling of a focus area in the medical image;
the adjustment module includes: the device comprises an acquisition unit, an analysis unit and a determination unit;
the acquisition unit is used for acquiring the current action range of the current editing tool;
the analyzing unit is used for analyzing the action range adjusting instruction and determining the action range adjusting quantity corresponding to the action range adjusting instruction;
the determining unit is used for determining an updating action range of the current editing tool according to the current action range of the current editing tool and the action range adjustment quantity, and displaying the updating action range;
the analyzing unit is specifically configured to analyze the action range adjustment instruction to obtain a position variation of the input control in a preset direction of the editing area; the action range adjustment instruction is an instruction input through the input control; and determining the action range adjustment quantity corresponding to the action range adjustment instruction according to the position change quantity.
7. The apparatus of claim 6, wherein the input control is a mouse, and the parsing unit is specifically configured to obtain a start position and an end position of a mouse pointer in the editing area, where the start position and the end position are carried in the action range adjustment instruction; and calculating the displacement of the initial position and the final position in the preset direction, and taking the displacement as the position variation of the mouse pointer on the editing area.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1-5 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-5.
CN201910704489.3A 2019-07-31 2019-07-31 Medical image editing method, medical image editing device, computer equipment and readable storage medium Active CN110473609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910704489.3A CN110473609B (en) 2019-07-31 2019-07-31 Medical image editing method, medical image editing device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910704489.3A CN110473609B (en) 2019-07-31 2019-07-31 Medical image editing method, medical image editing device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110473609A CN110473609A (en) 2019-11-19
CN110473609B true CN110473609B (en) 2023-06-27

Family

ID=68509310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910704489.3A Active CN110473609B (en) 2019-07-31 2019-07-31 Medical image editing method, medical image editing device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110473609B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116168119A (en) * 2023-02-28 2023-05-26 北京百度网讯科技有限公司 Image editing method, image editing device, electronic device, storage medium, and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183349A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Image editing tool display method and mobile terminal
CN108447552A (en) * 2018-03-05 2018-08-24 四川和生视界医药技术开发有限公司 The edit methods of retinal vessel and the editing device of retinal vessel
CN108932089A (en) * 2017-05-24 2018-12-04 珠海金山办公软件有限公司 A kind of method of adjustment of target object, device, electronic equipment and storage medium
CN109636892A (en) * 2018-12-14 2019-04-16 上海联影医疗科技有限公司 Color table editing methods, device, equipment and the medium shown for medical image
CN109671024A (en) * 2017-10-17 2019-04-23 奥多比公司 The selection of local color range

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8760438B2 (en) * 2010-05-28 2014-06-24 Adobe Systems Incorporated System and method for simulating stiff bristle brushes using stiffness-height parameterization
US8386964B2 (en) * 2010-07-21 2013-02-26 Microsoft Corporation Interactive image matting
CN107943365B (en) * 2017-11-28 2021-05-04 广州视睿电子科技有限公司 Line handwriting presenting method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183349A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Image editing tool display method and mobile terminal
CN108932089A (en) * 2017-05-24 2018-12-04 珠海金山办公软件有限公司 A kind of method of adjustment of target object, device, electronic equipment and storage medium
CN109671024A (en) * 2017-10-17 2019-04-23 奥多比公司 The selection of local color range
CN108447552A (en) * 2018-03-05 2018-08-24 四川和生视界医药技术开发有限公司 The edit methods of retinal vessel and the editing device of retinal vessel
CN109636892A (en) * 2018-12-14 2019-04-16 上海联影医疗科技有限公司 Color table editing methods, device, equipment and the medium shown for medical image

Also Published As

Publication number Publication date
CN110473609A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
JP4412769B2 (en) Handwriting input in restricted areas
US7312806B2 (en) Dynamic width adjustment for detail-in-context lenses
CN105549936B (en) Data table display method and device
JPWO2004068331A1 (en) Handwriting input device and method
JP5049614B2 (en) Medical image display device
CN111727424A (en) Adaptive interface conversion across display screens
CN111788554A (en) Adaptive interface conversion across display screens
EP3779769A1 (en) Optical flow computing method and computing device
CN101501726A (en) Apparatus and method for magnifying an image
CN110362265B (en) Display interface control method and device, computer equipment and storage medium
CN109767382B (en) Image reconstruction method and device, computer equipment and storage medium
CN110473609B (en) Medical image editing method, medical image editing device, computer equipment and readable storage medium
CN111192352A (en) Map rendering method and device, computer equipment and storage medium
CN109697733A (en) Point methods, device, computer equipment and storage medium are sought in point cloud space
CN109686225A (en) Electric power system data method for visualizing, device, computer equipment and storage medium
CN111430012B (en) System and method for semi-automatically segmenting 3D medical images using real-time edge-aware brushes
CN111984151B (en) Whiteboard canvas size and position roaming control method for improving processing efficiency
CN111653330B (en) Medical image display and diagnostic information generation method, system, terminal and medium
CN111159796B (en) Method and device for generating beam of building, computer equipment and storage medium
CN106126686B (en) Picture combination method and device and electronic equipment
CN113689340A (en) Image processing method, image processing device, computer equipment and storage medium
CN103767700A (en) Method and device for adjusting sampling frame for electrocardiographic waveform electronic measurement
CN109814784B (en) Picture rotation method and device, computer equipment and storage medium
CN112529984A (en) Method and device for drawing polygon, electronic equipment and storage medium
CN112652383B (en) Image visualization layout method and device, image analysis system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant