CN113593677A - Image processing method, device, equipment and computer readable storage medium - Google Patents
Image processing method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN113593677A CN113593677A CN202110826853.0A CN202110826853A CN113593677A CN 113593677 A CN113593677 A CN 113593677A CN 202110826853 A CN202110826853 A CN 202110826853A CN 113593677 A CN113593677 A CN 113593677A
- Authority
- CN
- China
- Prior art keywords
- image processing
- editing
- image
- tool
- path
- 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.)
- Withdrawn
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 39
- 230000004044 response Effects 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 20
- 238000000034 method Methods 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 9
- 230000001788 irregular Effects 0.000 description 6
- 230000000747 cardiac effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000003825 pressing Methods 0.000 description 3
- 210000004204 blood vessel Anatomy 0.000 description 2
- 230000002308 calcification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- OYPRJOBELJOOCE-UHFFFAOYSA-N Calcium Chemical compound [Ca] OYPRJOBELJOOCE-UHFFFAOYSA-N 0.000 description 1
- 229910052791 calcium Inorganic materials 0.000 description 1
- 239000011575 calcium Substances 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 210000004185 liver Anatomy 0.000 description 1
- 210000004072 lung Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Epidemiology (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses an image processing method, an image processing device, an image processing apparatus and a computer-readable storage medium, wherein the method comprises the following steps: acquiring a target image; drawing an editing area on the target image in response to the first drawing instruction; and performing image processing on the target image in the editing area based on the function of the editing tool. By the scheme, a user can clearly select the editing tool, the user can conveniently and clearly know the operation steps, and the flexible operation efficiency is improved.
Description
Technical Field
The present application relates to the field of interface interaction application technologies, and in particular, to an image processing method, an image processing apparatus, an image processing device, and a computer-readable storage medium.
Background
With the increasing popularization of intelligent medical treatment, both the hospital side and the patient side tend to display the medical data result of the patient through the computer display interface, but due to the error of computer automatic calculation, a doctor generally needs to modify or adjust the threshold regions of different blood vessels in the medical examination image displayed on the computer display interface, for example, a cardiac calcification integral image displayed on a computer, and the cardiac calcification integral image calculated and displayed on the computer at present cannot be modified or adjusted, so that partial image errors are caused, and the operability is poor.
Disclosure of Invention
The application at least provides an image processing method, an image processing device, an image processing apparatus and a computer readable storage medium.
A first aspect of the present application provides an image processing method, including:
acquiring a target image;
drawing an editing area on the target image in response to a first drawing instruction;
image processing is performed on the target image within the editing region based on the function of the currently selected editing tool.
Therefore, the user can clearly select the editing tool, so that the user can visually and clearly know the operation steps according to the selected editing tool, and operation visualization is realized.
In some embodiments, the image processing method further comprises:
and responding to the first selection instruction, and selecting an editing tool in a tool area of the display interface.
Therefore, it is possible to facilitate the user to select an editing tool in the tool region and switch the mode of image processing for the target image.
In some embodiments, the target image includes several image layers, and the step of obtaining the target image includes:
and responding to a second selection instruction, setting the layer corresponding to the second selection instruction to be in an editable state, and setting the rest layers to be in a non-editable state.
Therefore, the influence on the target images of the rest layers when the user edits the target image corresponding to the second selection instruction can be avoided.
In some embodiments, the step of drawing an editing region on the target image in response to the first drawing instruction comprises:
generating a drawing path on the target image in response to the first drawing instruction;
setting the area enclosed by the drawing path as the editing area.
Therefore, the user can be intelligently helped to realize the next operation according to the first drawing instruction, and the complicated operation of the user is reduced.
In some embodiments, the step of setting the area enclosed by the drawing path as an editing area includes:
judging whether the drawing path is a closed path or not;
if so, setting the area surrounded by the drawing path as the editing area;
if not, acquiring a starting point and an end point of the drawing path to generate an auxiliary path between the starting point and the end point, wherein the drawing path and the auxiliary path form the closed path, and setting an area surrounded by the closed path as the editing area.
Therefore, the editing area can be set by judging the closing state of the drawing path, and if the closing path is not closed, the auxiliary path can be automatically generated, so that the closing path formed by the drawing path and the auxiliary path is used as the editing area, the operation of a user is reduced, and the use efficiency is optimized.
In some embodiments, the step of generating an auxiliary path between the start point and the end point comprises:
obtaining a contour line in the target image;
and taking the contour line between the starting point and the end point as the auxiliary path when the starting point and/or the end point are/is in the area surrounded by the contour line.
Therefore, the contour line of the target image can be used as the auxiliary line, and the complexity of the operation can be avoided.
In some embodiments, the image processing method further comprises:
and responding to a third selection instruction, and switching the current editing tool to the editing tool corresponding to the third selection instruction in the tool area.
Therefore, the user can clearly select the editing tool and can flexibly switch the editing tool.
In some embodiments, the editing tools include an add tool and a crop tool;
the step of image processing the target image in the editing area based on the function of the currently selected editing tool includes:
based on the function of the adding tool, filling the target image in the editing area;
or deleting the target image in the editing area based on the function of the cutting tool.
Therefore, according to the editing tool selected by the user, the function corresponding to the editing tool can be automatically realized.
A second aspect of the present application provides an image processing apparatus comprising:
the acquisition module is used for acquiring a target image;
the drawing module is used for responding to a first drawing instruction and drawing an editing area on the target image;
and the editing module is used for carrying out image processing on the target image in the editing area based on the function of the currently selected editing tool.
A third aspect of the present application provides an electronic device, which includes a memory and a processor coupled to each other, and the processor is configured to execute program instructions stored in the memory to implement the image processing method of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon program instructions that, when executed by a processor, implement the image processing method in the first aspect described above.
According to the scheme, the image processing device acquires a target image; drawing an editing area on the target image in response to the first drawing instruction; and performing image processing on the target image in the editing area based on the function of the editing tool. By the scheme, a user can clearly select the editing tool, the user can conveniently and clearly know the operation steps, and the flexible operation efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a first embodiment of an image processing method provided in the present application;
FIG. 2 is a schematic flow chart diagram of a second embodiment of an image processing method provided by the present application;
FIG. 3 is a schematic diagram illustrating the effect of an editing tool in the image processing method provided by the present application;
FIG. 4 is a schematic flow chart illustrating the processing of medical examination images by an add-on tool in the image processing method provided by the present application;
FIG. 5 is a schematic flow chart illustrating the processing of a medical examination image by a cropping tool in the image processing method provided by the present application;
FIG. 6 is a block diagram of an embodiment of an image processing apparatus provided in the present application;
FIG. 7 is a block diagram of an embodiment of an electronic device provided herein;
FIG. 8 is a block diagram of an embodiment of a computer-readable storage medium provided herein.
Detailed Description
The following describes in detail the embodiments of the present application with reference to the drawings attached hereto.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present application.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Further, the term "plurality" herein means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an image processing method according to a first embodiment of the present disclosure.
The main body of the image processing method may be an image processing apparatus, for example, the image processing method may be executed by an electronic device or a server or other processing devices, where the electronic device may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the image processing method may be implemented by a processor calling computer readable instructions stored in a memory.
Specifically, the method of the embodiment of the present disclosure may include the steps of:
s101: and acquiring a target image.
It should be noted that the target image of the embodiment of the present application may be embodied as a medical examination image. In other embodiments, other target images, such as video surveillance images, may be used.
In the embodiment of the disclosure, in order to enable a doctor to visually know the condition of a patient, after the patient completes a relevant examination process, a medical examination image of the patient needs to be displayed through a display interface, so that the condition of the patient can be visually checked through the displayed medical examination image.
The medical examination images displayed on the display interface may be one or more, and when the medical examination images displayed on the display interface are multiple, the multiple medical images may be displayed on the display interface respectively or in an overlapping manner. That is, the plurality of medical images may be independently displayed on the display interface, or may be partially or entirely displayed on the display interface in an overlapping manner.
It should be noted that the medical examination image may be a cardiac medical examination image, a liver medical examination image, a lung medical examination image, or the like, for example, a cardiac calcium score medical examination image.
In the embodiment of the present disclosure, the image processing apparatus may further select an editing tool in a tool area of the display interface in response to the first selection instruction.
In order to facilitate the user to explicitly select an editing tool, the image processing apparatus of the present embodiment receives a first selection instruction of the user, and selects the editing tool in a tool area of the display interface in response to the first selection instruction.
Specifically, the first selection instruction may be to click a selection box in the display interface tool area; or may be physical buttons on the image processing apparatus; or sliding and switching in a designated area of the display interface or a tool area of the display interface so as to switch and select different editing tools.
In order to avoid the too large tool area or the improper position in the display interface, which blocks the medical examination image on the display interface and causes the visual obstruction of the doctor in viewing the medical examination image, the present embodiment may hide or collapse the editing tool in the tool area of the display interface, and display the editing tool in the tool area by pressing the designated area of the display interface for a long time or expanding the collapsed file list of the editing tool in the tool area on the display interface.
S102: in response to the first drawing instruction, the editing region is drawn on the target image.
Due to the problem of the medical examination image or the algorithm, segmentation of different blood vessel threshold regions in the medical examination image displayed on the display interface is inaccurate, and an error exists.
Based on the editing tool corresponding to the first selection instruction, the image processing device receives a first drawing instruction of a user, and responds to the first drawing instruction to draw an editing area on the medical examination image.
In one embodiment, the editing tool includes an adding tool and a cropping tool, and when the editing tool selected by the first selection instruction is the adding tool, the image processing apparatus populates the medical examination image in the editing region based on a function of the adding tool; when the editing tool selected by the first selection instruction is a cropping tool, the image processing apparatus deletes the medical examination image within the editing area based on a function of the cropping tool.
In one aspect, the first drawing instruction may be a long-press mouse drawing, so that the mouse is changed into a free pen, and the user may draw a line or an irregular figure on the medical examination image of the display interface as required, for example, draw an arc or an ellipse on the medical examination image of the display interface, so as to use an area surrounded by the line or the irregular figure as an editing area; on the other hand, the first drawing instruction may be a double-click or single-click display interface to form small dots on the display interface, the user may continuously click a plurality of small dots with equal or unequal intervals, and an area surrounded by lines or irregular graphs formed by connecting the small dots end to end serves as an editing area.
S103: and performing image processing on the target image in the editing area based on the function of the currently selected editing tool.
Based on the editing tool selected in response to the first selection instruction and the editing region drawn in response to the first drawing instruction in S102, image processing is performed on the medical examination image in the editing region, so as to improve the segmentation accuracy of different threshold regions on the medical examination image in the display interface.
In the scheme, the medical examination image is displayed on a display interface; drawing an editing area on the medical examination image in response to the first drawing instruction; image processing is performed on the medical examination image within the editing region based on the function of the currently selected editing tool. According to the scheme, the editing tool is selected in the tool area of the display interface by responding to the first selection instruction, so that the user can clearly select the editing tool; and respond to the first and draw the order, draw and edit the area on the medical examination picture, has realized the interaction of visual interface, the user is convenient for feedback the medical examination picture problem directly perceived in real time, have improved the quality and the operational flexibility of the medical examination picture.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating an image processing method according to a second embodiment of the present disclosure. According to the embodiment, user operation is reduced, and operation efficiency is improved. The method of the embodiment of the disclosure specifically comprises the following steps:
s201: and displaying the target images of the layers on a display interface.
Because of the limitation of the display interface and the diversity of the medical examination images, in order to facilitate the doctor to check the illness state of the patient through the medical examination images, the medical examination images of a plurality of image layers are displayed on the display interface.
Wherein films containing elements such as text or graphics are stacked one upon the other in order and combined to form the final image. Each layer is composed of a number of pixels, which in turn form the whole image by means of an overlap.
Specifically, the medical examination image of the required layer can be displayed on the first layer by switching, so that the doctor can edit the corresponding medical examination image conveniently. The first image layer is an image layer displaying medical examination images on the display interface, namely, the outermost medical examination image which can be seen by a user. If the medical examination image below the first layer, for example, the medical examination image in the second layer overlaps with the medical examination image in the first layer, the medical examination image below the first layer will be blocked by the medical examination image in the first layer, so that the medical examination image viewed by the user is the medical examination image in the first layer; if the medical examination image of the first image layer is partially overlapped with the medical examination image in the first image layer, the medical examination image viewed by the user is the medical examination image of the first image layer and the medical examination image of the part of the first image layer which is not overlapped with the medical examination image of the first image layer.
It should be noted that, in practical applications, if the medical examination images of the plurality of image layers are displayed on the display interface, on one hand, the selected medical examination image can be dragged to the designated area or locked to the designated area by long-pressing the mouse, so as to screen out the required medical examination image from the medical examination images of the plurality of image layers. Wherein, the designated area is a blank area or an area where other medical examination images are located. On the other hand, the desired medical examination image may be selected for editing by searching a specific label of the medical examination image, etc., for example, 10 medical examination images are displayed on the display interface, the 10 medical examination images are overlapped with each other and have independent labels, and the medical examination image may be locked and displayed on the display interface by searching a label of the desired medical examination image.
S202: and responding to the second selection instruction, setting the target images of the layers corresponding to the second selection instruction to be in an editable state, and setting the target images of the rest layers to be in a non-editable state.
Since the medical examination images in the plurality of layers are displayed on the display interface, in order to avoid that a user may make an operation error due to an influence on the medical examination images partially or completely overlapped with the required medical examination images when editing the required medical examination images, the image processing apparatus of this embodiment receives a second selection instruction of the user, and sets the medical examination image in the layer corresponding to the second selection instruction to be in an editable state and sets the medical examination images in the remaining layers to be in a non-editable state in response to the second selection instruction. That is, editing is performed only for the selected or locked medical examination image, and even if an editing operation is performed on the medical image in the non-editable state, the medical image in the non-editable state is not changed.
Specifically, the second selection instruction may be double-clicking or single-clicking the desired medical examination image, or search and lock the medical examination image with the specific label, and set the medical examination image in the layer corresponding to the second selection instruction to an editable state, and set the medical examination images in the remaining layers to a non-editable state.
It should be noted that, in actual operation, in order to facilitate a user to edit the medical examination image in the layer corresponding to the second selection instruction, the medical examination image in the layer corresponding to the second selection instruction may be preferentially displayed on the display interface, and the medical examination images in the other layers are displayed on the display interface in a lagging manner, that is, the medical examination image in the layer corresponding to the second selection instruction may block the medical examination image in the other layers, or the medical examination image in the layer corresponding to the second selection instruction is set as an operable layer, and the medical examination images in the other layers are set as non-operable gray layers.
S203: and responding to the first selection instruction, and selecting an editing tool in a tool area of the display interface.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating an effect of an editing tool in the image processing method provided by the present application. The image processing device receives a first selection instruction of a user and responds to the first selection instruction to select an editing tool in a tool area of the display interface. Unlike the above-described embodiment, when the user wants to switch the current editing tool, the image processing apparatus receives a third selection instruction of the user, and switches the current editing tool to an editing tool corresponding to the third selection instruction in the tool region in response to the third selection instruction.
Specifically, the third selection instruction may be to click or long-press a tool area of the display interface; an editing tool physical switching button on the image processing device can also be operated; or switching in a sliding manner in the tool area of the display interface to switch the current editing tool in the tool area of the display interface, and converting the current editing tool into the editing tool corresponding to the third selection instruction.
S204: in response to the first rendering instruction, a rendering path is generated on the target image.
Referring to fig. 4 and 5, fig. 4 is a schematic flow chart illustrating the processing of the medical examination image by the add-on tool in the image processing method provided by the present application; fig. 5 is a schematic flow chart illustrating a process of processing a medical examination image by using a cropping tool in the image processing method provided by the present application. Since the first drawing instruction can be drawn by pressing the mouse for a long time so that the mouse is changed into a free pen as in fig. 4 or 5, the user draws lines or irregular graphs on the medical examination image on the display interface as required; or clicking or double clicking the display interface to form small dots on the display interface, and connecting the small dots according to the drawing sequence to form lines or irregular graphs. The image processing apparatus takes a line or an irregular figure as a drawing path.
It should be noted that, in order to make the image processing apparatus know that the drawing is completed, the user may click or double-click the right mouse button when the drawing is completed to indicate that the drawing is completed.
S205: and judging whether the drawing path is a closed path.
Due to the diversity of the drawing paths, the drawing paths may be non-closed paths or closed paths. In order to improve the operation flexibility, the embodiment needs to determine whether the drawing path is a closed path, and if the drawing path is a closed path, S206 is executed to set an area surrounded by the closed path as an editing area; if the drawn path is a non-closed region, S207 is executed to obtain a start point and an end point of the drawn path to generate an auxiliary path between the start point and the end point, the drawn path and the auxiliary path form a closed path, and a region surrounded by the closed path is set as an editing region.
S206: and setting the area enclosed by the drawing path as an editing area.
S207: and acquiring a starting point and an end point of the drawn path to generate an auxiliary path between the starting point and the end point, wherein the drawn path and the auxiliary path form a closed path, and an area surrounded by the closed path is set as an editing area.
For the drawing path is a non-closed path, in order to facilitate the image processing apparatus to accurately edit the editing region, in this embodiment, the drawing path of the non-closed path needs to be changed into a closed path, so as to facilitate the image processing apparatus to edit in the editing region formed by the closed path.
Specifically, an auxiliary path is generated between a starting point and an end point by acquiring the starting point and the end point of the drawing path, so that the drawing path and the auxiliary path form a closed path, and an area surrounded by the closed path is an editing area.
The starting point and the ending point of the drawing path are the starting point and the ending point of the drawing path drawn on the display interface by the user, for example, the first drawing instruction is a single click display interface to form a plurality of small dots on the display interface, the first formed small dot is used as the starting point of the drawing path, the last small dot when the drawing is completed is used as the ending point of the drawing path, that is, the image processing apparatus acquires the point where the small dot is located when the right button of the mouse is clicked by the user to complete the drawing, or the first drawing instruction is a long-press mouse to enable the mouse to become a free pen, the user draws a line on the display interface as required, the starting point of the drawing line is used as the starting point of the drawing path, and the point at which the drawing line is completed is used as the ending point of the drawing path.
For the drawing of the auxiliary route between the start point and the end point of the route, a line segment formed by connecting straight lines between the start point and the end point may be used as the auxiliary route, or a curve formed by connecting curved lines between the start point and the end point may be used as the auxiliary route. In a specific embodiment, for convenience of operation, a line segment formed by connecting straight lines of the start point and the end point may be used as the auxiliary path.
Further, in order to directly acquire the auxiliary path and improve the operation efficiency, the present embodiment may further use a contour line in the medical examination image as the auxiliary path.
Specifically, the image processing apparatus acquires a contour line in the medical examination image, and takes the contour line between the start point and the end point as the auxiliary path in the case where the start point and the end point are within the contour line enclosing region. That is, it is not necessary to use a connecting line of the start point and the end point as the auxiliary path, and when the start point and the end point are within the contour line of the medical examination image, the contour line in the medical examination image can be directly used as the auxiliary path. And in the case that any one point of the starting point and the end point is positioned in the contour line surrounding area, and the other point is positioned outside the contour line surrounding area, taking the shortest line segment between the starting point and the end point as an auxiliary path.
S208: and performing image processing on the target image in the editing area based on the function of the editing tool.
Since the editing tools include an add tool and a crop tool. When the editing tool is an add tool, the image processing apparatus performs region addition on the set editing region, and the details can be referred to fig. 4. Specifically, the region addition is performed on the region of the non-overlapping portion of the editing region and the medical examination image, and the region addition is not performed on the region of the overlapping portion of the editing region and the medical examination image, that is, the region addition operation is performed only on the non-overlapping portion of the editing region and the medical examination image.
When the editing area is a cropping tool, the image processing apparatus deletes the area of the set editing area, and details can be seen in fig. 5. Specifically, the region of the portion where the editing region overlaps with the medical examination image is deleted. It should be noted that, when the editing area covers the entire medical examination image, the image processing apparatus deletes the entire medical examination image covered by the editing area.
In the embodiment, the medical examination images of the plurality of image layers are displayed on the display interface, so that incomplete display of the medical examination images caused by limitation of the display interface and diversity of the medical examination images is avoided; the medical examination image of the layer corresponding to the second selection instruction is set to be in an editable state, and the medical examination image of the layer are set to be in an uneditable state, so that the influence on the medical examination images of other layers caused by the user operation error when the user edits the medical examination image of the layer corresponding to the second selection instruction is avoided; responding to a third selection instruction of a user, switching the current editing tool into the editing tool corresponding to the third selection instruction in the tool area, so that the free switching of the editing tools is realized, and the operation flexibility is improved; the image processing device can conveniently edit in an editing area formed by the closed path by judging whether the drawing path is the closed path or not, and the auxiliary path between the starting point and the end point of the drawing path and the drawing path form the closed path in the non-closed path, or the contour line of the medical examination image is used as the auxiliary path when the starting point and the end point are positioned in the range surrounded by the contour line of the medical examination image, and the auxiliary path and the drawing path form the closed path, so that the image processing device can conveniently edit in the editing area formed by the closed path.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Referring to fig. 6, fig. 6 is a schematic diagram of a framework of an embodiment of an image processing apparatus according to the present application. The image processing apparatus 60 includes:
and an acquiring module 61, configured to acquire a target image.
A drawing module 62 for drawing an editing region on the target image in response to the first drawing instruction;
and an editing module 63 for performing image processing on the target image in the editing region based on the function of the currently selected editing tool.
Referring to fig. 7, fig. 7 is a schematic diagram of a frame of an embodiment of an electronic device provided in the present application. The electronic device 70 comprises a memory 71 and a processor 72 coupled to each other, the processor 72 being configured to execute program instructions stored in the memory 71 to implement the steps of any of the above-described embodiments of the image processing method. In one particular implementation scenario, the electronic device 70 may include, but is not limited to: a microcomputer, a server, and the electronic device 70 may also include a mobile device such as a notebook computer, a tablet computer, and the like, which is not limited herein.
In particular, the processor 72 is configured to control itself and the memory 71 to implement the steps of any of the above-described embodiments of the image processing method. The processor 72 may also be referred to as a CPU (Central Processing Unit). The processor 72 may be an integrated circuit chip having signal processing capabilities. The Processor 72 may also be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. Additionally, the processor 72 may be collectively implemented by an integrated circuit chip.
Referring to fig. 8, fig. 8 is a block diagram illustrating an embodiment of a computer-readable storage medium according to the present application. The computer readable storage medium 80 stores program instructions 801 that can be executed by the processor, the program instructions 801 being for implementing the steps of any of the image processing method embodiments described above.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
The foregoing description of the various embodiments is intended to highlight various differences between the embodiments, and the same or similar parts may be referred to each other, and for brevity, will not be described again herein.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely one type of logical division, and an actual implementation may have another division, for example, a unit or a component may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some interfaces, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Claims (11)
1. An image processing method, characterized in that the image processing method comprises:
acquiring a target image;
drawing an editing area on the target image in response to a first drawing instruction;
image processing is performed on the target image within the editing region based on the function of the currently selected editing tool.
2. The image processing method according to claim 1,
the image processing method further includes:
and responding to the first selection instruction, and selecting an editing tool in a tool area of the display interface.
3. The image processing method according to claim 1 or 2, wherein the target image comprises a plurality of image layers, and the step of obtaining the target image comprises:
and responding to a second selection instruction, setting the layer corresponding to the second selection instruction to be in an editable state, and setting the rest layers to be in a non-editable state.
4. The image processing method according to any one of claims 1 to 3,
the step of drawing an editing region on the target image in response to the first drawing instruction includes:
generating a drawing path on the target image in response to the first drawing instruction;
setting the area enclosed by the drawing path as the editing area.
5. The image processing method according to claim 4,
the step of setting the area surrounded by the drawing path as an editing area includes:
judging whether the drawing path is a closed path or not;
if so, setting the area surrounded by the drawing path as the editing area;
if not, acquiring a starting point and an end point of the drawing path to generate an auxiliary path between the starting point and the end point, wherein the drawing path and the auxiliary path form the closed path, and setting an area surrounded by the closed path as the editing area.
6. The image processing method according to claim 5,
the step of generating an auxiliary path between the starting point and the ending point comprises:
obtaining a contour line in the target image;
and taking the contour line between the starting point and the end point as the auxiliary path when the starting point and/or the end point are/is in the area surrounded by the contour line.
7. The image processing method according to claim 1 or 2,
the image processing method further includes:
and responding to a third selection instruction, and switching the current editing tool to the editing tool corresponding to the third selection instruction in the tool area.
8. The image processing method according to any one of claims 1 to 7,
the editing tools comprise an adding tool and a cutting tool;
the step of image processing the target image in the editing area based on the function of the currently selected editing tool includes:
based on the function of the adding tool, filling the target image in the editing area;
or deleting the target image in the editing area based on the function of the cutting tool.
9. An image processing apparatus characterized by comprising:
the acquisition module is used for acquiring a target image;
the drawing module is used for responding to a first drawing instruction and drawing an editing area on the target image;
and the editing module is used for carrying out image processing on the target image in the editing area based on the function of the currently selected editing tool.
10. An electronic device comprising a memory and a processor coupled to each other, the processor being configured to execute program instructions stored in the memory to implement the image processing method of any one of claims 1 to 8.
11. A computer-readable storage medium on which program instructions are stored, which program instructions, when executed by a processor, implement the image processing method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110826853.0A CN113593677A (en) | 2021-07-21 | 2021-07-21 | Image processing method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110826853.0A CN113593677A (en) | 2021-07-21 | 2021-07-21 | Image processing method, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113593677A true CN113593677A (en) | 2021-11-02 |
Family
ID=78248866
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110826853.0A Withdrawn CN113593677A (en) | 2021-07-21 | 2021-07-21 | Image processing method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113593677A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116543074A (en) * | 2023-03-31 | 2023-08-04 | 北京百度网讯科技有限公司 | Image processing method, device, electronic equipment and storage medium |
WO2024067144A1 (en) * | 2022-09-30 | 2024-04-04 | 北京字跳网络技术有限公司 | Image processing method and apparatus, device, computer readable storage medium, and product |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106846323A (en) * | 2017-01-04 | 2017-06-13 | 努比亚技术有限公司 | A kind of method for realizing interactive image segmentation, device and terminal |
CN108037872A (en) * | 2017-11-29 | 2018-05-15 | 上海爱优威软件开发有限公司 | A kind of photo editing method and terminal device |
CN110288679A (en) * | 2019-06-30 | 2019-09-27 | 于峰 | The processing method of image, apparatus and system |
CN112509097A (en) * | 2020-12-21 | 2021-03-16 | 深圳市前海手绘科技文化有限公司 | Hand-drawn animation material editing method and device |
CN112819926A (en) * | 2019-10-31 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Data editing method, device, equipment and storage medium |
CN112860163A (en) * | 2021-01-21 | 2021-05-28 | 维沃移动通信(深圳)有限公司 | Image editing method and device |
-
2021
- 2021-07-21 CN CN202110826853.0A patent/CN113593677A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106846323A (en) * | 2017-01-04 | 2017-06-13 | 努比亚技术有限公司 | A kind of method for realizing interactive image segmentation, device and terminal |
CN108037872A (en) * | 2017-11-29 | 2018-05-15 | 上海爱优威软件开发有限公司 | A kind of photo editing method and terminal device |
CN110288679A (en) * | 2019-06-30 | 2019-09-27 | 于峰 | The processing method of image, apparatus and system |
CN112819926A (en) * | 2019-10-31 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Data editing method, device, equipment and storage medium |
CN112509097A (en) * | 2020-12-21 | 2021-03-16 | 深圳市前海手绘科技文化有限公司 | Hand-drawn animation material editing method and device |
CN112860163A (en) * | 2021-01-21 | 2021-05-28 | 维沃移动通信(深圳)有限公司 | Image editing method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024067144A1 (en) * | 2022-09-30 | 2024-04-04 | 北京字跳网络技术有限公司 | Image processing method and apparatus, device, computer readable storage medium, and product |
CN116543074A (en) * | 2023-03-31 | 2023-08-04 | 北京百度网讯科技有限公司 | Image processing method, device, electronic equipment and storage medium |
CN116543074B (en) * | 2023-03-31 | 2024-05-17 | 北京百度网讯科技有限公司 | Image processing method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8830184B2 (en) | Image displaying device, image displaying method, and program for displaying images | |
US10516830B2 (en) | Guided image composition on mobile devices | |
US20140232743A1 (en) | Method of synthesizing images photographed by portable terminal, machine-readable storage medium, and portable terminal | |
JP2013257762A (en) | Image processing apparatus, and image processing method and program | |
CN113593677A (en) | Image processing method, device, equipment and computer readable storage medium | |
US20220101620A1 (en) | Method and apparatus for interactive display of image positioning, electronic device and storage medium | |
CN111143004A (en) | Scene guide method and device, electronic equipment and storage medium | |
CN112269506B (en) | Screen splitting method and device and electronic equipment | |
CN107958029A (en) | Link methods of exhibiting, medium, device and computing device | |
CN112558851A (en) | Object processing method, device, equipment and readable storage medium | |
CN112965681A (en) | Image processing method, apparatus, device, and storage medium | |
US20200020306A1 (en) | Image processing apparatus, program and image processing method | |
CN111724361A (en) | Method and device for displaying focus in real time, electronic equipment and storage medium | |
CN113918070B (en) | Synchronous display method and device, readable storage medium and electronic equipment | |
US20110037731A1 (en) | Electronic device and operating method thereof | |
CN109766530B (en) | Method and device for generating chart frame, storage medium and electronic equipment | |
JP6607243B2 (en) | Information processing apparatus, information processing method, and program | |
JP2014132986A (en) | Medical image processing apparatus | |
CN115640092A (en) | Interface display method and device, electronic equipment and readable storage medium | |
CN115910256A (en) | Data exchange between external data sources and integrated medical data display system | |
CN114442881A (en) | Information display method and device, electronic equipment and readable storage medium | |
CN113192606A (en) | Medical data processing method and device, electronic equipment and storage medium | |
KR101458542B1 (en) | Digital content generating device and method thereof, data communication system using the digital content generating device and method thereof, and recording medium | |
CN113741775A (en) | Image processing method and device and electronic equipment | |
CN113961113A (en) | Image processing method and device, electronic equipment and readable 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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20211102 |
|
WW01 | Invention patent application withdrawn after publication |