Disclosure of Invention
In order to solve the problems of large modification workload and low modification accuracy in the process of modifying a generated retinal vessel image in the prior art, the invention provides a retinal vessel repairing method and a retinal vessel repairing device.
In order to achieve the above object, an embodiment of the present invention provides a retinal blood vessel repair method, including: acquiring a first operation of a user, and acquiring a specified repair area based on the first operation; sending prompt information to the user; acquiring feedback information of the user based on the prompt information; and repairing the retinal blood vessels of the designated repair area based on the feedback information to obtain the repaired retinal blood vessels.
Preferably, the first operation includes at least one of a frame operation, a circle operation, a boundary specifying operation, a constraint range specifying operation, an object selecting operation, and a drag matching operation.
Preferably, the sending of the prompt message to the user includes: sending first inquiry information to the user to inquire whether the user needs to repair the retinal blood vessel; acquiring first response information of the user based on the first inquiry information; and sending second inquiry information to the user to inquire whether the user needs to set a specific format area or not under the condition that the first response information is that the retinal blood vessel needs to be repaired.
Preferably, the obtaining feedback information of the user based on the prompt information includes: acquiring second response information of the user based on the second inquiry information; under the condition that the second response information is that a specific format area needs to be set, acquiring a second operation of the user, acquiring the specific format area based on the second operation, and acquiring a specific repair parameter based on the specific format area; and acquiring standard repair parameters based on the specified repair area under the condition that the second response information is the area without the need of setting the standard format.
Preferably, the repairing the retinal blood vessels of the designated repair area based on the feedback information to obtain repaired retinal blood vessels includes: obtaining a plurality of end points on the retinal vessel centerline in the designated repair area; acquiring the corresponding relation between every two adjacent endpoints which do not have the connection relation; adjusting the corresponding relation based on the specific repair parameter or the standard repair parameter to obtain a retinal blood vessel centerline; obtaining the repaired retinal vessel based on the retinal vessel centerline.
Accordingly, the present invention also provides a retinal vessel repair device comprising: the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a first operation of a user and acquiring a specified repair area based on the first operation; the prompting unit is used for sending prompting information to the user; the feedback unit is used for acquiring feedback information of the user based on the prompt information; and the repairing unit is used for repairing the retinal blood vessel of the specified repairing area based on the feedback information so as to obtain the repaired retinal blood vessel.
Preferably, the acquiring unit includes: the picture frame module is used for acquiring picture frame operation of a user and acquiring a specified repair area based on the picture frame operation; the circle drawing module is used for obtaining circle drawing operation of a user and obtaining a specified repair area based on the circle drawing operation; the specified boundary module is used for acquiring specified boundary operation of a user and acquiring a specified repair area based on the specified boundary operation; the system comprises a specified constraint range module, a data processing module and a data processing module, wherein the specified constraint range module is used for acquiring a plurality of retinal vessels to be repaired specified by a user and setting the range of the retinal vessels to be repaired as a specified repair area; the object selection module is used for acquiring a retinal blood vessel list, acquiring a plurality of retinal blood vessels to be repaired selected by a user in the retinal blood vessel list, and setting the plurality of retinal blood vessels to be repaired as a specified repair area; the dragging matching module is used for acquiring a first retinal blood vessel selected by a user and a second retinal blood vessel contacted by the first retinal blood vessel dragged by the user, and setting the area where the first retinal blood vessel and the second retinal blood vessel are located as a specified repair area.
Preferably, the sending the prompt message to the user includes: sending first inquiry information to the user to inquire whether the user needs to repair the retinal blood vessel; the step of obtaining feedback information of the user based on the prompt information includes: acquiring first response information of the user based on the first inquiry information; the method for sending prompt information to the user further comprises: and sending second inquiry information to the user to inquire whether the user needs to set a specific format area or not under the condition that the first response information is that the retinal blood vessel needs to be repaired.
Preferably, the obtaining feedback information of the user based on the prompt information further includes: acquiring second response information of the user based on the second inquiry information; the acquisition unit is further configured to: under the condition that the second response information is that a specific format area needs to be set, acquiring a second operation of the user, acquiring the specific format area based on the second operation, and acquiring a specific repair parameter based on the specific format area; and acquiring standard repair parameters based on the specified repair area under the condition that the second response information is the area without the need of setting the standard format.
Preferably, the repair unit includes: an endpoint acquisition module to acquire a plurality of endpoints on the retinal vessel centerline in the designated repair area; the corresponding relation acquisition module is used for acquiring the corresponding relation between every two adjacent endpoints which do not have the connection relation; an adjusting module, configured to adjust the correspondence based on the specific repair parameter or the standard repair parameter, so as to obtain a retinal blood vessel centerline; a repair module to obtain the repaired retinal vessel based on the retinal vessel centerline.
In another aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method provided by the present invention.
Through the technical scheme provided by the invention, the invention at least has the following technical effects:
the user appoints a specific repair area in the retinal vessel image through simple operation, and the computer automatically acquires repair parameters aiming at the specific repair area according to feedback information of the user to the prompt information, so that the specific repair area is automatically repaired without manual drawing by the user, the workload of the user is greatly reduced, and the work efficiency of the user is improved.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Detailed Description
In order to solve the problems of large modification workload and low modification accuracy in the process of modifying a generated retinal vessel image in the prior art, the invention provides a retinal vessel repairing method and a retinal vessel repairing device.
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
The terms "system" and "network" in embodiments of the present invention may be used interchangeably. The "plurality" means two or more, and in view of this, the "plurality" may also be understood as "at least two" in the embodiments of the present invention. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship, unless otherwise specified. In addition, it should be understood that the terms first, second, etc. in the description of the embodiments of the invention are used for distinguishing between the descriptions and are not intended to indicate or imply relative importance or order to be construed.
Referring to fig. 1, the present invention provides a retinal blood vessel repair method, including:
s10) acquiring a first operation of a user, and acquiring a specified repair area based on the first operation;
s20) sending prompt information to the user;
s30) obtaining feedback information of the user based on the prompt information;
s40) repairing retinal blood vessels of the designated repair area based on the feedback information to obtain repaired retinal blood vessels.
In the embodiment of the present invention, the first operation includes at least one of a frame operation, a circle operation, a boundary specifying operation, a constraint range specifying operation, an object selecting operation, and a drag matching operation.
Referring to fig. 2, in a possible embodiment, after receiving a retinal blood vessel image automatically generated by a computer, a user finds that a plurality of blood vessel edge lines of one blood vessel in the retinal blood vessel image are disconnected through examination, at this time, the user inputs a rectangular box in a current window of the computer by clicking a mouse to input two diagonal points so as to include an area where the disconnected retinal blood vessel currently exists in the rectangular box, and the computer automatically determines an area contained in the rectangular box as a designated repair area of the user.
In the embodiment of the invention, the user can set the retinal vessel area to be repaired through simple operation, and particularly, under the condition of needing to carry out batch repair, the user is prevented from independently and repeatedly selecting each blood vessel to be repaired, so that the workload of the user is greatly reduced, and the working efficiency of the user is improved.
Referring to fig. 3, in the embodiment of the present invention, the sending the prompt message to the user includes:
s21) sending first query information to the user to query whether the user needs to repair the retinal blood vessel;
s22) acquiring first response information of the user based on the first query information;
s23) in case that the first response information is that the retinal blood vessel needs to be repaired, issuing second inquiry information to the user to inquire whether the user needs to set a specific format area.
Further, in this embodiment of the present invention, the obtaining feedback information of the user based on the prompt information includes: acquiring second response information of the user based on the second inquiry information; under the condition that the second response information is that a specific format area needs to be set, acquiring a second operation of the user, acquiring the specific format area based on the second operation, and acquiring a specific repair parameter based on the specific format area; and acquiring standard repair parameters based on the specified repair area under the condition that the second response information is the area without the need of setting the standard format.
In a possible implementation manner, after the computer acquires the designated repair area according to the user operation, the computer sends first inquiry information to the user to inquire whether the user performs automatic repair on the designated repair area, at this time, the user observes that all the disconnected retinal blood vessel areas are not framed due to own operation deviation, so that an instruction for canceling the automatic repair is fed back to the computer, and the computer stops executing subsequent operations according to the instruction for canceling the automatic repair, so that the user can select the designated repair area again.
In another possible embodiment, after the computer issues the first prompt message to the user, the user feeds back an instruction to automatically perform the repair, and the computer issues a second query message to the user to query whether the user needs to set the specific format area. Referring to fig. 4, when the user selects and sets a specific format area that needs to be set, a second operation of the user is obtained, for example, the user performs a circle drawing operation on an arbitrary area in the retinal blood vessel image in a form of dragging a mouse to form a circle, the computer determines that the retinal blood vessel image area included in the circle is the specific format area set by the user, and extracts a parameter related to blood vessel feature recognition in the area as an automatic repair parameter of the area to be repaired (for example, a blood vessel edge gray scale value, a blood vessel edge line, a blood vessel average tube diameter value, etc.), and when the user selects and does not set the specific format area, a standard repair parameter in the currently specified repair area is obtained according to a preset retinal blood vessel generation program, for example: blood vessel edge gray threshold, edge line fitting coefficient, etc.
In the embodiment of the invention, the areas with deviation or error are quickly selected through simple operation, and the specific repair parameters corresponding to the current deviation or error retinal blood vessel area are extracted according to the specified local specific format area, so that the retinal blood vessel image in the current retinal blood vessel area can be generated more accurately, and the accuracy of the generated retinal blood vessel graph is improved; furthermore, the embodiment of the invention can realize the selection of the designated repair area and the acquisition of the specific repair parameter only by simple operation, and does not need the user to manually search and add different parameter data according to each different retinal vessel area, thereby further reducing the workload of the user and improving the working efficiency of the user.
In an embodiment of the present invention, the repairing retinal blood vessels of the designated repair area based on the feedback information to obtain repaired retinal blood vessels includes: obtaining a plurality of end points on the retinal vessel centerline in the designated repair area; acquiring the corresponding relation between every two adjacent endpoints which do not have the connection relation; adjusting the corresponding relation based on the specific repair parameter or the standard repair parameter to obtain a retinal blood vessel centerline; obtaining the repaired retinal vessel based on the retinal vessel centerline.
Referring to fig. 5, in one possible embodiment, after acquiring the specified repair area and the corresponding specific repair parameters or standard repair parameters, first, the 4 endpoints in the designated repair area are respectively D1-D4, and further acquires every two adjacent endpoints in the 4 endpoints that do not have a connection relationship, such as the endpoints D1 and D2, the endpoints D3 and D4, at which point the computer automatically generates correspondences between the endpoints D1 and D2 and the endpoints D3 and D4, for example, the connection straight lines L1 and L2 between the end points D1 and D2 and the end points D3 and D4 are generated, respectively, at which the computer calls specific repair parameters or standard repair parameters and adjusts the connection straight lines L1 and L2 according to a preset program, thereby obtaining connection curves C1 and C2 that conform to the morphology of the retinal blood vessels, and obtaining the complete blood vessel center line of the current retinal blood vessel. At this time, the computer generates a blood vessel edge line of the current retinal blood vessel in the disconnected region according to the acquired blood vessel center line of the retinal blood vessel and the specific repair parameter or the standard repair parameter, and further acquires the repaired retinal blood vessel, please refer to fig. 6.
In the embodiment of the invention, a user sets the retinal vessel image area including errors as the designated repair area through simple operation, and the designated repair area is combined with the designated specific repair parameters through simple operation, so that the retinal vessel image in the designated repair area is automatically repaired through a computer, the workload of the user is greatly reduced, and the working efficiency of the user is improved; meanwhile, the corresponding specific format area can be set for the designated repair area, and the corresponding specific repair parameters can be automatically extracted, so that the computer can more accurately identify the retinal blood vessels in the current retinal blood vessel image area, thereby drawing a more accurate retinal blood vessel image and improving the accuracy of the retinal blood vessels; furthermore, because the retinal blood vessel image is generated without manual drawing by a user, drawing errors caused by artificial subjective factors are avoided, and the accuracy of the retinal blood vessel image is further improved.
The retinal blood vessel repair device provided by the embodiment of the invention is explained below with reference to the drawings.
Referring to fig. 7, based on the same inventive concept, an embodiment of the present invention provides a retinal blood vessel repair device, including: the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a first operation of a user and acquiring a specified repair area based on the first operation; the prompting unit is used for sending prompting information to the user; the feedback unit is used for acquiring feedback information of the user based on the prompt information; and the repairing unit is used for repairing the retinal blood vessel of the specified repairing area based on the feedback information so as to obtain the repaired retinal blood vessel.
In an embodiment of the present invention, the obtaining unit includes: the picture frame module is used for acquiring picture frame operation of a user and acquiring a specified repair area based on the picture frame operation; the circle drawing module is used for obtaining circle drawing operation of a user and obtaining a specified repair area based on the circle drawing operation; the specified boundary module is used for acquiring specified boundary operation of a user and acquiring a specified repair area based on the specified boundary operation; the system comprises a specified constraint range module, a data processing module and a data processing module, wherein the specified constraint range module is used for acquiring a plurality of retinal vessels to be repaired specified by a user and setting the range of the retinal vessels to be repaired as a specified repair area; the object selection module is used for acquiring a retinal blood vessel list, acquiring a plurality of retinal blood vessels to be repaired selected by a user in the retinal blood vessel list, and setting the plurality of retinal blood vessels to be repaired as a specified repair area; the dragging matching module is used for acquiring a first retinal blood vessel selected by a user and a second retinal blood vessel contacted by the first retinal blood vessel dragged by the user, and setting the area where the first retinal blood vessel and the second retinal blood vessel are located as a specified repair area.
In this embodiment of the present invention, the sending the prompt message to the user includes: sending first inquiry information to the user to inquire whether the user needs to repair the retinal blood vessel; the step of obtaining feedback information of the user based on the prompt information includes: acquiring first response information of the user based on the first inquiry information; the method for sending prompt information to the user further comprises: and sending second inquiry information to the user to inquire whether the user needs to set a specific format area or not under the condition that the first response information is that the retinal blood vessel needs to be repaired.
In this embodiment of the present invention, the obtaining feedback information of the user based on the prompt information further includes: acquiring second response information of the user based on the second inquiry information; the acquisition unit is further configured to: under the condition that the second response information is that a specific format area needs to be set, acquiring a second operation of the user, acquiring the specific format area based on the second operation, and acquiring a specific repair parameter based on the specific format area; and acquiring standard repair parameters based on the specified repair area under the condition that the second response information is the area without the need of setting the standard format.
In an embodiment of the present invention, the repair unit includes: an endpoint acquisition module to acquire a plurality of endpoints on the retinal vessel centerline in the designated repair area; the corresponding relation acquisition module is used for acquiring the corresponding relation between every two adjacent endpoints which do not have the connection relation; an adjusting module, configured to adjust the correspondence based on the specific repair parameter or the standard repair parameter, so as to obtain a retinal blood vessel centerline; a repair module to obtain the repaired retinal vessel based on the retinal vessel centerline.
Further, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of the present invention.
Although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solutions of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and the simple modifications all belong to the protection scope of the embodiments of the present invention.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention do not describe every possible combination.
Those skilled in the art will understand that all or part of the steps in the method according to the above embodiments may be implemented by a program, which is stored in a storage medium and includes several instructions to enable a single chip, a chip, or a processor (processor) to execute all or part of the steps in 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.
In addition, any combination of various different implementation manners of the embodiments of the present invention can be performed, and the embodiments of the present invention should be considered as disclosed in the embodiments of the present invention as long as the combination does not depart from the spirit of the embodiments of the present invention.