[go: up one dir, main page]

CN108399647B - Editing method and editing device for retinal blood vessel edge line - Google Patents

Editing method and editing device for retinal blood vessel edge line Download PDF

Info

Publication number
CN108399647B
CN108399647B CN201810177962.2A CN201810177962A CN108399647B CN 108399647 B CN108399647 B CN 108399647B CN 201810177962 A CN201810177962 A CN 201810177962A CN 108399647 B CN108399647 B CN 108399647B
Authority
CN
China
Prior art keywords
end point
blood vessel
user
edge line
acquiring
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
CN201810177962.2A
Other languages
Chinese (zh)
Other versions
CN108399647A (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.)
Yinhai Aperture Guangzhou Group Co ltd
Original Assignee
Sichuan Healthsun Vision Medical Technology Development 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 Sichuan Healthsun Vision Medical Technology Development Co ltd filed Critical Sichuan Healthsun Vision Medical Technology Development Co ltd
Priority to CN201810177962.2A priority Critical patent/CN108399647B/en
Publication of CN108399647A publication Critical patent/CN108399647A/en
Application granted granted Critical
Publication of CN108399647B publication Critical patent/CN108399647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T11/23
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30041Eye; Retina; Ophthalmic

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Eye Examination Apparatus (AREA)

Abstract

本发明公开了一种视网膜血管边缘线的编辑方法,该方法包括:获取血管中心线,并在血管中心线上等间距地绘制多条管径线;获取用户在血管边缘线上输入的第一端点和第二端点,判断第一端点与第二端点之间是否存在连续线,并获得判断结果;基于判断结果生成第一端点与第二端点之间的对应关系;获取用户输入的第一控制点,并基于第一控制点对对应关系进行调整以获得调整后对应关系;基于多条管径线对调整后对应关系进行编辑,以生成编辑后的血管边缘线。本发明还公开一种视网膜血管边缘线的编辑装置。通过对血管边缘线进行再次编辑,提升了视网膜血管图像的准确性,同时本发明的操作简单,操作步骤少,减少了工作内容,提升了工作效率。

Figure 201810177962

The invention discloses a method for editing a retinal blood vessel edge line. The method includes: acquiring a blood vessel center line, and drawing a plurality of diameter lines at equal intervals on the blood vessel center line; End point and second end point, judge whether there is a continuous line between the first end point and the second end point, and obtain the judgment result; generate the correspondence between the first end point and the second end point based on the judgment result; obtain the user input A first control point, and the corresponding relationship is adjusted based on the first control point to obtain an adjusted corresponding relationship; the adjusted corresponding relationship is edited based on a plurality of diameter lines to generate an edited blood vessel edge line. The invention also discloses an editing device for retinal blood vessel edge lines. By re-editing the blood vessel edge line, the accuracy of the retinal blood vessel image is improved, and at the same time, the present invention has simple operation, few operation steps, reduces work content, and improves work efficiency.

Figure 201810177962

Description

Editing method and editing device for retinal blood vessel edge line
Technical Field
The invention relates to the field of medical treatment, in particular to a method and a device for editing retinal blood vessel edge lines.
Background
With continuous breakthroughs in computer technology and large-scale application, it is a normal state of the industry to perform preprocessing on data acquired by medical equipment through a computer to reduce the workload of doctors, for example, after an eyeball image of a patient is shot through professional medical equipment, the computer can automatically generate a blood vessel center line and a blood vessel edge line of a retinal blood vessel by identifying the retinal blood vessel image in the eyeball image, and automatically generate illness state information of the patient through calculation.
However, in the practical application process, due to the problems of image contrast interference, noise interference, algorithm defect, poor configuration adaptability, etc., the retinal blood vessel image automatically generated by the computer has poor accuracy, and errors or errors often occur, for example, incomplete or missed identification of blood vessels, bifurcation in normal blood vessels, erroneous identification of non-blood vessel regions, blood vessel edge fracture, too wide or too narrow blood vessels, etc., and the automatically generated disease information may be further affected by the errors or errors.
For the above technical problems, a user can automatically regenerate the correct blood vessel edge line by the computer again in a manner of redrawing the blood vessel center line, but because the influence factors still exist, the blood vessel edge line automatically generated by the computer according to the blood vessel center line may still have a large error, and at this time, a doctor needs to manually modify or adjust the blood vessel edge line, but on one hand, the workload is large, the working efficiency of the doctor is influenced, on the other hand, the influence of subjective factors of the doctor exists in the modification process, and the result of manual modification of different doctors may have a large deviation, and cannot meet the requirements of precision and operation complexity in the scientific research and clinical aspects at present.
Disclosure of Invention
In order to solve the technical problem of inaccurate drawing of retinal blood vessel edge lines in the prior art, the embodiment of the invention provides an editing method and an editing device of the retinal blood vessel edge lines, wherein the editing method comprises the following steps: obtaining a blood vessel center line, and drawing a plurality of diameter lines on the blood vessel center line at equal intervals, wherein each diameter line in the plurality of diameter lines is perpendicular to the blood vessel center line; acquiring a first end point and a second end point input by a user on the blood vessel edge line, judging whether a continuous line exists between the first end point and the second end point, and acquiring a judgment result; generating a corresponding relation between the first end point and the second end point based on the judgment result; acquiring a first control point input by a user, and adjusting the corresponding relation based on the first control point to obtain an adjusted corresponding relation; and editing the adjusted corresponding relation based on the plurality of caliber lines to generate an edited blood vessel edge line.
Preferably, the acquiring the first endpoint and the second endpoint input by the user on the blood vessel edge line includes: acquiring a click operation of a user on a first endpoint, and acquiring a focus corresponding to the click operation; judging whether points located on the blood vessel edge line exist in a preset range around the focus; sending prompt information to a user to prompt the user to click the first endpoint again under the condition that the point located on the edge line does not exist in the preset range around the focus; selecting a point on the edge line closest to the focus as the first end point when a point on the edge line is present in a preset range around the focus; acquiring a click operation of a user on a second endpoint, and acquiring a focus corresponding to the click operation; judging whether points located on the blood vessel edge line exist in a preset range around the focus; sending prompt information to the user under the condition that the points on the edge line do not exist in the preset range around the focus to prompt the user to click the second endpoint again; and under the condition that points located on the edge line exist in a preset range around the focus, selecting the point closest to the focus on the edge line as the second end point.
Preferably, the acquiring the first endpoint and the second endpoint input by the user on the blood vessel edge line further includes: acquiring a picture frame operation of a user, and acquiring a frame corresponding to the picture frame operation; judging whether two intersection points of the frame and the blood vessel edge line exist; taking two intersection points as the first endpoint and the second endpoint when the intersection points of the frame and the blood vessel edge line are two; and sending prompt information to the user to prompt the user to perform picture frame operation again under the condition that the number of the intersection points of the frame and the blood vessel edge lines is not two.
Preferably, the determining whether a continuous line exists between the first end point and the second end point and obtaining a determination result includes: judging whether a breakpoint exists between the first end point and the second end point; and under the condition that a breakpoint exists between the first end point and the second end point, judging that a continuous line does not exist between the first end point and the second end point, otherwise, judging that a continuous line exists between the first end point and the second end point.
Preferably, the generating a correspondence between the first endpoint and the second endpoint based on the determination result includes: deleting the continuous line between the first end point and the second end point and generating a corresponding relation between the first end point and the second end point under the condition that the judgment result is that the continuous line exists between the first end point and the second end point; and generating a new corresponding relation between the first end point and the second end point under the condition that the judgment result shows that no continuous line exists between the first end point and the second end point.
Preferably, the editing method further comprises: and acquiring a second control point input by the user, and readjusting the corresponding relation based on the second control point to obtain the adjusted corresponding relation.
Preferably, the editing the adjusted corresponding relation based on the plurality of caliber lines to generate an edited blood vessel edge line includes: acquiring the intersection points of the plurality of pipeline lines and the adjusted corresponding relation; and connecting the intersection points to generate the edited blood vessel edge line.
Correspondingly, the invention also provides an editing device for the retinal blood vessel edge line, which comprises: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a blood vessel central line and drawing a plurality of diameter lines on the blood vessel central line at equal intervals, and each diameter line in the plurality of diameter lines is perpendicular to the blood vessel central line; the input module is used for acquiring a first end point and a second end point input by a user on the blood vessel edge line, judging whether a continuous line exists between the first end point and the second end point, and acquiring a judgment result; the operation module is used for generating a corresponding relation between the first end point and the second end point based on the judgment result; the first adjusting module is used for acquiring a first control point input by a user and adjusting the corresponding relation based on the first control point to obtain an adjusted corresponding relation; and the editing module is used for editing the adjusted corresponding relation based on the plurality of caliber lines so as to generate an edited blood vessel edge line.
Preferably, the input module includes: the first operation submodule is used for acquiring the clicking operation of a user on a first endpoint and acquiring a focus corresponding to the clicking operation; the first judgment submodule is used for judging whether points located on the blood vessel edge line exist in a preset range around the focus or not; the first prompting submodule is used for sending prompting information to a user under the condition that the points located on the edge line do not exist in the preset range around the focus so as to prompt the user to click the first endpoint again; a first determining submodule configured to select, when a point located on the edge line exists in a preset range around the focus, a point on the edge line closest to the focus as the first end point; the second operation submodule is used for acquiring the clicking operation of a user on a second endpoint and acquiring a focus corresponding to the clicking operation; the second judgment submodule is used for judging whether points positioned on the blood vessel edge line exist in a preset range around the focus or not; the second prompting submodule is used for sending prompting information to the user under the condition that the points located on the edge line do not exist in the preset range around the focus so as to prompt the user to click the second endpoint again; a second determining submodule, configured to select, when there are points located on the edge line within a preset range around the focus, a point on the edge line closest to the focus as the second endpoint.
Preferably, the input module further comprises: the third operation sub-module is used for acquiring a picture frame operation of a user and acquiring a frame corresponding to the picture frame operation; the third judgment submodule is used for judging whether two intersection points of the frame and the blood vessel edge line exist; a third determining submodule configured to, when two intersections of the frame and the blood vessel edge line exist, take the two intersections as the first end point and the second end point; and the third prompting submodule is used for sending prompting information to the user under the condition that the number of the intersection points of the frame and the blood vessel edge line is not two so as to prompt the user to perform picture frame operation again.
Preferably, the input module further comprises: the endpoint judgment submodule is used for judging whether a breakpoint exists between the first endpoint and the second endpoint; and the continuous line judging submodule is used for judging that a continuous line does not exist between the first end point and the second end point under the condition that a breakpoint exists between the first end point and the second end point, and otherwise, judging that a continuous line exists between the first end point and the second end point.
Preferably, the operation module includes: a first operation sub-module, configured to delete a continuous line between the first endpoint and the second endpoint and generate a corresponding relationship between the first endpoint and the second endpoint when the determination result indicates that the continuous line exists between the first endpoint and the second endpoint; and the second operation submodule is used for generating a new corresponding relation between the first end point and the second end point under the condition that the judgment result shows that no continuous line exists between the first end point and the second end point.
Preferably, the editing apparatus further comprises: and the second adjusting module is used for acquiring a second control point input by the user and adjusting the corresponding relation again based on the second control point to obtain the adjusted corresponding relation.
Preferably, the editing module comprises: the intersection point obtaining submodule is used for obtaining intersection points of the plurality of pipeline lines and the adjusted corresponding relation; and the connecting submodule is used for connecting the intersection points to generate the edited blood vessel edge line.
Further, the present invention also provides a computer readable storage medium having stored thereon a computer program 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:
when a user observes that the blood vessel edge line of the retinal blood vessel automatically generated by the computer has larger deviation or loss, the user can modify or adjust the blood vessel edge line of the retinal blood vessel through simple point and/or line operation, the operation is simple and convenient, the work content of the user is greatly reduced, the workload of the user is reduced, meanwhile, the blood vessel edge line is generated after being edited or optimized according to the blood vessel center line of the blood vessel, the subjective deviation caused by manual drawing is avoided, and the accuracy is higher.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a method for editing a retinal blood vessel edge line;
FIG. 2 is a diagram illustrating the operation of the editing method for retinal blood vessel edge lines according to the embodiment of the present invention;
FIG. 3 is a schematic diagram of an endpoint for acquiring user input in the editing method for retinal blood vessel edge lines according to the embodiment of the present invention;
FIG. 4 is a diagram illustrating an end point for obtaining user input in a method for editing a retinal blood vessel edge line according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a correspondence relationship between generated end points in the editing method for retinal blood vessel edge lines according to the embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a correspondence relationship between end points adjusted by a second control point in the editing method for retinal blood vessel edge lines according to the embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an editing apparatus for retinal blood vessel edge lines according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an editing apparatus for retinal blood vessel edge lines according to another embodiment of the present invention.
Detailed Description
In order to solve the technical problem of inaccurate drawing of retinal blood vessel edge lines in the prior art, embodiments of the present invention provide a method and an apparatus for editing retinal blood vessel edge lines, which adjust and modify the edge lines of blood vessels by simple operations, thereby further optimizing the retinal blood vessel edge lines generated by a computer, so that the generated retinal blood vessel image is more accurate, the accuracy of patient condition information is further ensured, the operation is simple, the work content of a user is greatly optimized, and the work efficiency of the user is improved.
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 method for editing retinal blood vessel edge lines, including:
s10) obtaining a vessel centerline, and drawing a plurality of radial lines on the vessel centerline at equal intervals, wherein each radial line of the plurality of radial lines is perpendicular to the vessel centerline;
s20) acquiring a first end point and a second end point input by a user on the blood vessel edge line, judging whether a continuous line exists between the first end point and the second end point, and acquiring a judgment result;
s30) generating a correspondence between the first endpoint and the second endpoint based on the determination result;
s40) acquiring a first control point input by a user, and adjusting the corresponding relation based on the first control point to obtain an adjusted corresponding relation;
s50) editing the adjusted corresponding relation based on the plurality of caliber lines to generate an edited blood vessel edge line.
In a possible embodiment, after obtaining the eyeball retina image information of the patient, the user automatically generates the blood vessel image of the retina through the computer, and at this time, the user observes and finds that in the automatically generated blood vessel image of the retina, due to factors such as identification accuracy and environmental interference, an error or deviation occurs in the identification of the blood vessel edge line of a part of blood vessels, for example, a missing part exists in the middle of the drawn blood vessel edge line and a situation that a deviation is large exists on the drawn blood vessel edge line, and at this time, the user modifies or adjusts the blood vessel edge line with the error or deviation.
Referring to fig. 2, in a possible embodiment, for a missing part in the middle of a blood vessel edge line, a computer first obtains a blood vessel center line of the blood vessel according to a preset program, and draws a plurality of caliber lines on the blood vessel center line at equal intervals, in an embodiment of the present invention, the caliber lines may be visually drawn or marked on the blood vessel center line to assist a user to observe, but not actually drawn on the blood vessel center line; at this time, the user finds the blood vessel edge line with the defect, and inputs two end points on the blood vessel edge line as a start point and an end point, and the computer automatically generates a corresponding relationship between the start point and the end point according to the positions of the start point and the end point input by the user, for example, automatically generates or marks a connecting straight line connecting the start point and the end point.
At this time, a user inputs a control point near the connecting straight line, and adjusts the form of the connecting straight line according to the control point, for example, the control point can be dragged by a mouse to form a dragging track, and the computer processes the connecting straight line according to the dragging track and a preset algorithm to generate a smooth curve, for example, a smooth second-order Bezier curve, so that the smooth curve is matched with the vessel edge of the current vessel; and the computer obtains a plurality of intersection points of the smooth curve and the plurality of pipe diameter lines according to the plurality of pipe diameter lines on the central line of the blood vessel, and sequentially connects two end points input by the user before with the plurality of intersection points, thereby generating the edited blood vessel edge line.
In the embodiment of the present invention, the corresponding relationship between the two end points may be a connection straight line, a connection curve, or a point set, etc. representing the connection between the two end points, so that the two end points have a corresponding, visible, and similar connection relationship with the blood vessel shape, and the points or lines, etc. representing the corresponding relationship between the two end points may be directly drawn on the blood vessel image, or may be labeled on the blood vessel image as an auxiliary effect without actually drawing, which all fall within the protection scope of the present invention and are not described in detail herein.
In the embodiment of the invention, the user can quickly revise or adjust the retinal blood vessel edge line generated by the computer only by simple point and/or line operation, the operation is simple, the workload of the user is greatly reduced, the working efficiency of the user is improved, and meanwhile, the blood vessel edge line is generated after being edited or optimized according to the blood vessel center line, so that the accuracy is higher, the accuracy of drawing the retinal blood vessel image is improved, and the accuracy of diagnosing the state of an illness of a patient is further ensured.
In an embodiment of the present invention, the acquiring a first endpoint and a second endpoint input by a user on the blood vessel edge line includes: acquiring a click operation of a user on a first endpoint, and acquiring a focus corresponding to the click operation; judging whether points located on the blood vessel edge line exist in a preset range around the focus; sending prompt information to a user to prompt the user to click the first endpoint again under the condition that the point located on the edge line does not exist in the preset range around the focus; selecting a point on the edge line closest to the focus as the first end point when a point on the edge line is present in a preset range around the focus; acquiring a click operation of a user on a second endpoint, and acquiring a focus corresponding to the click operation; judging whether points located on the blood vessel edge line exist in a preset range around the focus; sending prompt information to the user under the condition that the points on the edge line do not exist in the preset range around the focus to prompt the user to click the second endpoint again; and under the condition that points located on the edge line exist in a preset range around the focus, selecting the point closest to the focus on the edge line as the second end point.
Referring to fig. 3, in a possible embodiment, the preset range is 1mm, a user observes that a certain region of a blood vessel edge line automatically drawn by a computer has a large deviation and a large amount of burrs, so that a mouse clicks at a starting position of the region to set a starting point, the computer obtains a first focus J1 corresponding to a clicking operation of the mouse, detects points D1, D2 and D3 existing on three blood vessel edge lines within a range of 1mm around J1 according to a position of the first focus J1, and calculates distances between the first focus J1 and three points D1, D2 and D3, respectively, so as to obtain a point D1 on the edge line closest to the first focus J1 as a first end point; based on the same principle, after the first end point is obtained, the user continues to click for the second time with the mouse, the computer obtains a second focal point J2 corresponding to the second click, at which time the computer detects that no point on the blood vessel edge line exists within 1mm around the second focal point J2, and thus, prompts the user to perform a click operation again by giving prompt information to the user, and thus, the user performs a third operation, at which time the computer obtains a third focal point J3 corresponding to the third operation, and detects that points D4 and D5 on two blood vessel edge lines exist within 1mm around the third focal point J3, and thus, the point D4 on the two blood vessel edge lines closest to the third focal point J3 is taken as the second end point.
The method comprises the steps that a user clicks through a mouse, and the blood vessel edge line of a retina is a thin line, so that the clicking operation of the user is likely to be incapable of accurately clicking the blood vessel edge line, invalid clicking is caused, and user experience is reduced.
Further, in this embodiment of the present invention, the acquiring the first endpoint and the second endpoint input by the user on the blood vessel edge line further includes: acquiring a picture frame operation of a user, and acquiring a frame corresponding to the picture frame operation; judging whether two intersection points of the frame and the blood vessel edge line exist; taking two intersection points as the first endpoint and the second endpoint when the intersection points of the frame and the blood vessel edge line are two; and sending prompt information to the user to prompt the user to perform picture frame operation again under the condition that the number of the intersection points of the frame and the blood vessel edge lines is not two.
Referring to fig. 4, in a possible embodiment, the user observes that a certain region of the blood vessel edge line automatically drawn by the computer is missing, so that the frame drawing operation is performed on the blood vessel edge line including the missing region, and in the first frame drawing operation, since the rectangular frame C1 drawn by the user only includes the missing blank region and does not intersect with the blood vessel edge line, the computer sends a prompt message to the user to prompt the user to perform the frame drawing operation again; in the second frame drawing operation, the rectangular frame C2 drawn by the user only has one intersection point with the edge line of the blood vessel, which still does not meet the requirement, so the computer continuously sends a prompt to the user to prompt the user to draw a frame again; in the third frame drawing operation, the rectangular frame C3 drawn by the user and the blood vessel edge line generate two intersections, and thus the computer takes the two intersections as the first end point and the second end point in turn.
It should be noted that, in the embodiment of the present invention, the frame drawn by the user may be a rectangular frame, or may also be a circle, an ellipse, a polygon or other figures with a closed space, which can achieve the technical effects of the present invention, and therefore, all of the frames should fall within the protection scope of the present invention, and are not described in detail herein.
Because the blood vessel edge lines with the loss or the deviation are single curves in a certain range, in the embodiment of the invention, a user performs picture frame operation on the region with the loss or the deviation on the blood vessel edge lines, and the intersection point of the frame drawn by the user and the blood vessel edge lines is used as an end point which needs to be input by the user.
In this embodiment of the present invention, the determining whether there is a continuous line between the first endpoint and the second endpoint and obtaining a determination result includes: judging whether a breakpoint exists between the first end point and the second end point; and under the condition that a breakpoint exists between the first end point and the second end point, judging that a continuous line does not exist between the first end point and the second end point, otherwise, judging that a continuous line exists between the first end point and the second end point.
In this embodiment of the present invention, the generating a correspondence between the first endpoint and the second endpoint based on the determination result includes: deleting the continuous line between the first end point and the second end point and generating a corresponding relation between the first end point and the second end point under the condition that the judgment result is that the continuous line exists between the first end point and the second end point; and generating a new corresponding relation between the first end point and the second end point under the condition that the judgment result shows that no continuous line exists between the first end point and the second end point.
Referring to fig. 5, in a possible embodiment, a user observes that a certain region of the blood vessel edge line automatically drawn by the computer has a large deviation and much burrs, so that a first end point is input at the starting position of the region and a second end point is input at the ending position of the region, and the computer automatically detects that the blood vessel edge line of the region is a continuous blood vessel edge line, so that the blood vessel edge line between the first end point and the second end point is deleted, and a new corresponding relationship, such as a new connecting straight line, is automatically generated between the first end point and the second end point.
In an embodiment of the present invention, the editing method further includes: and acquiring a second control point input by the user, and readjusting the corresponding relation based on the second control point to obtain the adjusted corresponding relation.
Referring to fig. 6, in a possible embodiment, after a user inputs a control point to adjust the correspondence between two end points, a preliminary adjustment correspondence is obtained, but the form of the preliminary adjustment correspondence still does not conform to the form of the current blood vessel, so the user continues to input a second control point K2 near the blood vessel edge line, and readjusts the form of the preliminary adjustment correspondence according to the control point K2, for example, drags the control point K2 with a mouse to form another dragging track, and the computer processes the preliminary adjustment correspondence according to the another dragging track to generate an adjusted correspondence, for example, to generate a smooth third-order bessel curve, so that the smooth curve is more matched with the blood vessel edge of the current blood vessel.
Because the blood vessels of the retina usually present a curved shape and often have more than one inflection point, the shape of the corresponding relation is adjusted and optimized by adding a control point to the corresponding relation generated between two end points according to the control point, so that the generated corresponding relation is more consistent with the shape of the blood vessels, and the generated retinal blood vessel image is more accurate.
For those skilled in the art, it is easy to know that, based on the same principle, when a retinal blood vessel has more than two inflection points, the editing of the retinal blood vessel edge line with the plurality of inflection points can be realized by decomposing the retinal blood vessel with the more than two inflection points into a plurality of blood vessels with only one or two inflection points to respectively edit the blood vessel edge line, or by adding more than two control points to edit the blood vessel edge line of the retinal blood vessel, and the editing method also belongs to the protection scope of the present invention, and will not be described herein in detail.
Further, in an embodiment of the present invention, the editing the adjusted corresponding relationship based on the plurality of caliber lines to generate an edited blood vessel edge line includes: acquiring the intersection points of the plurality of pipeline lines and the adjusted corresponding relation; and connecting the intersection points to generate the edited blood vessel edge line.
The following describes an editing apparatus for retinal blood vessel edge lines according to an embodiment of the present invention with reference to the drawings.
Referring to fig. 7, based on the same inventive concept, an embodiment of the present invention provides an editing apparatus for retinal blood vessel edge lines, including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a blood vessel central line and drawing a plurality of diameter lines on the blood vessel central line at equal intervals, and each diameter line in the plurality of diameter lines is perpendicular to the blood vessel central line; the input module is used for acquiring a first end point and a second end point input by a user on the blood vessel edge line, judging whether a continuous line exists between the first end point and the second end point, and acquiring a judgment result; the operation module is used for generating a corresponding relation between the first end point and the second end point based on the judgment result; the first adjusting module is used for acquiring a first control point input by a user and adjusting the corresponding relation based on the first control point to obtain an adjusted corresponding relation; and the editing module is used for editing the adjusted corresponding relation based on the plurality of caliber lines so as to generate an edited blood vessel edge line.
In an embodiment of the present invention, the input module is configured to obtain a first endpoint and a second endpoint input by a user on the blood vessel edge line, and includes: the first operation submodule is used for acquiring the clicking operation of a user on a first endpoint and acquiring a focus corresponding to the clicking operation; the first judgment submodule is used for judging whether points located on the blood vessel edge line exist in a preset range around the focus or not; the first prompting submodule is used for sending prompting information to a user under the condition that the points located on the edge line do not exist in the preset range around the focus so as to prompt the user to click the first endpoint again; a first determining submodule configured to select, when a point located on the edge line exists in a preset range around the focus, a point on the edge line closest to the focus as the first end point; the second operation submodule is used for acquiring the clicking operation of a user on a second endpoint and acquiring a focus corresponding to the clicking operation; the second judgment submodule is used for judging whether points positioned on the blood vessel edge line exist in a preset range around the focus or not; the second prompting submodule is used for sending prompting information to the user under the condition that the points located on the edge line do not exist in the preset range around the focus so as to prompt the user to click the second endpoint again; a second determining submodule, configured to select, when there are points located on the edge line within a preset range around the focus, a point on the edge line closest to the focus as the second endpoint.
In an embodiment of the present invention, the input module is configured to obtain a first endpoint and a second endpoint input by a user on the blood vessel edge line, and further includes: the third operation sub-module is used for acquiring a picture frame operation of a user and acquiring a frame corresponding to the picture frame operation; the third judgment submodule is used for judging whether two intersection points of the frame and the blood vessel edge line exist; a third determining submodule configured to, when two intersections of the frame and the blood vessel edge line exist, take the two intersections as the first end point and the second end point; and the third prompting submodule is used for sending prompting information to the user under the condition that the number of the intersection points of the frame and the blood vessel edge line is not two so as to prompt the user to perform picture frame operation again.
In an embodiment of the present invention, the input module is configured to determine whether a continuous line exists between the first endpoint and the second endpoint, and obtain a determination result, and includes: the endpoint judgment submodule is used for judging whether a breakpoint exists between the first endpoint and the second endpoint; and the continuous line judging submodule is used for judging that a continuous line does not exist between the first end point and the second end point under the condition that a breakpoint exists between the first end point and the second end point, and otherwise, judging that a continuous line exists between the first end point and the second end point.
Further, in an embodiment of the present invention, the operation module includes: a first operation sub-module, configured to delete a continuous line between the first endpoint and the second endpoint and generate a corresponding relationship between the first endpoint and the second endpoint when the determination result indicates that the continuous line exists between the first endpoint and the second endpoint; and the second operation submodule is used for generating a new corresponding relation between the first end point and the second end point under the condition that the judgment result shows that no continuous line exists between the first end point and the second end point.
Referring to fig. 8, in an embodiment of the present invention, the editing apparatus further includes: and the second adjusting module is used for acquiring a second control point input by the user and adjusting the corresponding relation again based on the second control point to obtain the adjusted corresponding relation.
In an embodiment of the present invention, the editing module includes: the intersection point obtaining submodule is used for obtaining intersection points of the plurality of pipeline lines and the adjusted corresponding relation; and the connecting submodule is used for connecting the intersection points to generate the edited blood vessel edge line.
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 is also possible, 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.

Claims (15)

1. A method for editing retinal blood vessel edge lines, the method comprising:
obtaining a blood vessel center line, and drawing a plurality of diameter lines on the blood vessel center line at equal intervals, wherein each diameter line in the plurality of diameter lines is perpendicular to the blood vessel center line;
acquiring a first end point and a second end point input by a user on the blood vessel edge line, judging whether a continuous line exists between the first end point and the second end point, and acquiring a judgment result;
generating a connection relation between the first end point and the second end point based on the judgment result;
acquiring a first control point input by a user, and adjusting the connection relation based on the first control point to obtain an adjusted connection relation;
and editing the adjusted connection relation based on the plurality of caliber lines to generate an edited blood vessel edge line.
2. The editing method according to claim 1, wherein the acquiring a first endpoint and a second endpoint input by a user on the vessel edge line comprises:
acquiring a click operation of a user on a first endpoint, and acquiring a focus corresponding to the click operation;
judging whether points located on the blood vessel edge line exist in a preset range around the focus;
sending prompt information to a user to prompt the user to click the first endpoint again under the condition that the point located on the edge line does not exist in the preset range around the focus;
selecting a point on the edge line closest to the focus as the first end point when a point on the edge line is present in a preset range around the focus;
acquiring a click operation of a user on a second endpoint, and acquiring a focus corresponding to the click operation;
judging whether points located on the blood vessel edge line exist in a preset range around the focus;
sending prompt information to the user under the condition that the points on the edge line do not exist in the preset range around the focus to prompt the user to click the second endpoint again;
and under the condition that points located on the edge line exist in a preset range around the focus, selecting the point closest to the focus on the edge line as the second end point.
3. The editing method according to claim 1, wherein the acquiring a first endpoint and a second endpoint input by a user on the vessel edge line further comprises:
acquiring a picture frame operation of a user, and acquiring a frame corresponding to the picture frame operation;
judging whether two intersection points of the frame and the blood vessel edge line exist;
taking two intersection points as the first endpoint and the second endpoint when the intersection points of the frame and the blood vessel edge line are two;
and sending prompt information to the user to prompt the user to perform picture frame operation again under the condition that the number of the intersection points of the frame and the blood vessel edge lines is not two.
4. The editing method according to claim 1, wherein the determining whether or not a continuous line exists between the first endpoint and the second endpoint and obtaining a determination result includes:
judging whether a breakpoint exists between the first end point and the second end point;
and under the condition that a breakpoint exists between the first end point and the second end point, judging that a continuous line does not exist between the first end point and the second end point, otherwise, judging that a continuous line exists between the first end point and the second end point.
5. The editing method according to any one of claims 1 to 4, wherein the generating a connection relationship between the first endpoint and the second endpoint based on the determination result includes:
deleting the continuous line between the first end point and the second end point and generating a connection relation between the first end point and the second end point under the condition that the judgment result is that the continuous line exists between the first end point and the second end point;
and generating a new connection relation between the first end point and the second end point under the condition that the judgment result shows that no continuous line exists between the first end point and the second end point.
6. The editing method of claim 1, further comprising:
and acquiring a second control point input by the user, and readjusting the connection relation based on the second control point to obtain the adjusted connection relation.
7. The editing method according to claim 6, wherein the editing the adjusted connection relation based on the plurality of caliber lines to generate an edited blood vessel margin line comprises:
acquiring the intersection point of the plurality of pipeline lines and the adjusted connection relation;
and connecting the intersection points to generate the edited blood vessel edge line.
8. An editing apparatus for retinal blood vessel edge lines, characterized by comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a blood vessel central line and drawing a plurality of diameter lines on the blood vessel central line at equal intervals, and each diameter line in the plurality of diameter lines is perpendicular to the blood vessel central line;
the input module is used for acquiring a first end point and a second end point input by a user on the blood vessel edge line, judging whether a continuous line exists between the first end point and the second end point, and acquiring a judgment result;
the operation module is used for generating a connection relation between the first end point and the second end point based on the judgment result;
the first adjusting module is used for acquiring a first control point input by a user and adjusting the connection relation based on the first control point to acquire an adjusted connection relation;
and the editing module is used for editing the adjusted connection relation based on the plurality of pipe diameter lines so as to generate an edited blood vessel edge line.
9. The editing apparatus of claim 8, wherein the input module comprises:
the first operation submodule is used for acquiring the clicking operation of a user on a first endpoint and acquiring a focus corresponding to the clicking operation;
the first judgment submodule is used for judging whether points located on the blood vessel edge line exist in a preset range around the focus or not;
the first prompting submodule is used for sending prompting information to a user under the condition that the points located on the edge line do not exist in the preset range around the focus so as to prompt the user to click the first endpoint again;
a first determining submodule configured to select, when a point located on the edge line exists in a preset range around the focus, a point on the edge line closest to the focus as the first end point;
the second operation submodule is used for acquiring the clicking operation of a user on a second endpoint and acquiring a focus corresponding to the clicking operation;
the second judgment submodule is used for judging whether points positioned on the blood vessel edge line exist in a preset range around the focus or not;
the second prompting submodule is used for sending prompting information to the user under the condition that the points located on the edge line do not exist in the preset range around the focus so as to prompt the user to click the second endpoint again;
a second determining submodule, configured to select, when there are points located on the edge line within a preset range around the focus, a point on the edge line closest to the focus as the second endpoint.
10. The editing apparatus of claim 8, wherein the input module further comprises:
the third operation sub-module is used for acquiring a picture frame operation of a user and acquiring a frame corresponding to the picture frame operation;
the third judgment submodule is used for judging whether two intersection points of the frame and the blood vessel edge line exist;
a third determining submodule configured to, when two intersections of the frame and the blood vessel edge line exist, take the two intersections as the first end point and the second end point;
and the third prompting submodule is used for sending prompting information to the user under the condition that the number of the intersection points of the frame and the blood vessel edge line is not two so as to prompt the user to perform picture frame operation again.
11. The editing apparatus of claim 8, wherein the input module further comprises:
the endpoint judgment submodule is used for judging whether a breakpoint exists between the first endpoint and the second endpoint;
and the continuous line judging submodule is used for judging that a continuous line does not exist between the first end point and the second end point under the condition that a breakpoint exists between the first end point and the second end point, and otherwise, judging that a continuous line exists between the first end point and the second end point.
12. The editing apparatus according to any one of claims 8 to 11, wherein the operation module comprises:
the first operation submodule is used for deleting a continuous line between the first end point and the second end point and generating a connection relation between the first end point and the second end point under the condition that the judgment result is that the continuous line exists between the first end point and the second end point;
and the second operation submodule is used for generating a new connection relation between the first end point and the second end point under the condition that the judgment result shows that no continuous line exists between the first end point and the second end point.
13. The editing apparatus according to claim 8, wherein the editing apparatus further comprises:
and the second adjusting module is used for acquiring a second control point input by the user and adjusting the connection relation again based on the second control point to acquire the adjusted connection relation.
14. The editing apparatus of claim 13, wherein the editing module comprises:
the intersection point obtaining submodule is used for obtaining intersection points of the plurality of pipeline lines and the adjusted connection relation;
and the connecting submodule is used for connecting the intersection points to generate the edited blood vessel edge line.
15. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 7.
CN201810177962.2A 2018-03-05 2018-03-05 Editing method and editing device for retinal blood vessel edge line Active CN108399647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810177962.2A CN108399647B (en) 2018-03-05 2018-03-05 Editing method and editing device for retinal blood vessel edge line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810177962.2A CN108399647B (en) 2018-03-05 2018-03-05 Editing method and editing device for retinal blood vessel edge line

Publications (2)

Publication Number Publication Date
CN108399647A CN108399647A (en) 2018-08-14
CN108399647B true CN108399647B (en) 2021-10-26

Family

ID=63092189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810177962.2A Active CN108399647B (en) 2018-03-05 2018-03-05 Editing method and editing device for retinal blood vessel edge line

Country Status (1)

Country Link
CN (1) CN108399647B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110197495B (en) * 2019-05-30 2021-03-09 数坤(北京)网络科技有限公司 Adjusting method and device for blood vessel extraction
US12086981B2 (en) * 2021-01-04 2024-09-10 Shenzhen Keya Medical Technology Corporation Methods and systems for computer-assisted medical image analysis using sequential model
US12394165B2 (en) 2021-12-23 2025-08-19 Shanghai United Imaging Healthcare Co., Ltd. Vessel displaying method, computer device and readable storage medium
CN114283928B (en) * 2021-12-23 2025-09-23 上海联影医疗科技股份有限公司 Blood vessel centerline editing method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117378A (en) * 2009-12-31 2011-07-06 苏州瑞派宁科技有限公司 A simulation method and system for liver tumor comprehensive surgery planning based on three-dimensional multi-mode images
CN102903115A (en) * 2012-10-12 2013-01-30 中国科学院深圳先进技术研究院 Method for extracting centerline of tubular object
CN106489152A (en) * 2014-04-10 2017-03-08 Sync-Rx有限公司 Image analysis in the presence of medical equipment
CN106780527A (en) * 2016-11-29 2017-05-31 上海联影医疗科技有限公司 The import and export of medical image medium vessels, boundary condition acquisition methods and processing unit
CN107292928A (en) * 2017-06-16 2017-10-24 沈阳东软医疗系统有限公司 A kind of method and device of blood vessel positioning
CN107292835A (en) * 2017-05-31 2017-10-24 瑞达昇科技(大连)有限公司 A method and device for automatic vectorization of retinal blood vessels in fundus images

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8315812B2 (en) * 2010-08-12 2012-11-20 Heartflow, Inc. Method and system for patient-specific modeling of blood flow

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117378A (en) * 2009-12-31 2011-07-06 苏州瑞派宁科技有限公司 A simulation method and system for liver tumor comprehensive surgery planning based on three-dimensional multi-mode images
CN102903115A (en) * 2012-10-12 2013-01-30 中国科学院深圳先进技术研究院 Method for extracting centerline of tubular object
CN106489152A (en) * 2014-04-10 2017-03-08 Sync-Rx有限公司 Image analysis in the presence of medical equipment
CN106780527A (en) * 2016-11-29 2017-05-31 上海联影医疗科技有限公司 The import and export of medical image medium vessels, boundary condition acquisition methods and processing unit
CN107292835A (en) * 2017-05-31 2017-10-24 瑞达昇科技(大连)有限公司 A method and device for automatic vectorization of retinal blood vessels in fundus images
CN107292928A (en) * 2017-06-16 2017-10-24 沈阳东软医疗系统有限公司 A kind of method and device of blood vessel positioning

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An Efficient Method for Vessel Edge Detection of Fundus Images;Jupeng Li;《2006 8th international Conference on Signal Processing》;20061120;1-4 *
动静脉血管自动分类方法及其管径测量;薛岚燕等;《 仪器仪表学报》;20170915;第38卷(第9期);2307-2316 *

Also Published As

Publication number Publication date
CN108399647A (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN108399647B (en) Editing method and editing device for retinal blood vessel edge line
US11200351B2 (en) Method for constructing curve of robot processing path of part with small curvature based on point cloud boundary
WO2021068933A1 (en) Method for automatically planning surgical path of pedicle screw on basis of deep learning network
Almazroa et al. Optic disc segmentation for glaucoma screening system using fundus images
WO2022199403A1 (en) Blood vessel centerline extraction method and apparatus
CN108376048B (en) Retinal blood vessel repair method and repair device
WO2019196099A1 (en) Method for positioning boundaries of target object in medical image, storage medium, and terminal
CN112862759B (en) Image processing method, device, equipment and computer readable storage medium
CN113940812B (en) Cornea center positioning method for excimer laser cornea refractive surgery
CN108269257B (en) Editing method and editing device for retinal blood vessels
CN110246136A (en) A kind of intravascular ultrasound parameter extracting method and system based on hybrid algorithm
CN111563910A (en) Fundus image segmentation method and device
CN115565667B (en) CTO interventional therapy success rate prediction method, device, equipment and medium
CN105389815A (en) Breast image registration method and device
CN114897924A (en) Tooth model segmentation method and device
KR20220089849A (en) System and method for assisting verification of labeling and contouring for multiple roi
US20170011515A1 (en) Method and apparatus for measuring an ultrasonic image
CN107392891B (en) Blood vessel tree extraction method, device, equipment and storage medium
CN108205807A (en) Retinal vascular images edit methods and retinal vascular images editing device
CN109658425B (en) Lung lobe segmentation method and device, computer equipment and storage medium
CN117503344B (en) Method and device for confirming power of multiple puncture needles, electronic equipment and storage medium
CN108447552A (en) The edit methods of retinal vessel and the editing device of retinal vessel
CN119107380A (en) Anterior segment parameter measurement method and device, electronic device, and storage medium
CN107958445B (en) Splicing method and splicing device of retina images
CN116843622A (en) Blood vessel centerline determination system, device 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: No. 303, 3rd Floor, Unit 3, Building 7, No. 399, West Section of Fucheng Avenue, High tech Zone, Chengdu, Sichuan, 610095

Patentee after: Chengdu Yinhai Qiming Hospital Management Co.,Ltd.

Address before: No. 903, floor 9, building 2, No. 88 Keyuan South Road, Chengdu high tech Zone, Chengdu, Sichuan 610084

Patentee before: SICHUAN HEALTHSUN VISION MEDICAL TECHNOLOGY DEVELOPMENT CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230912

Address after: Room 302-305, Building 6B, No. 2 Fenghuangsan Road, Huangpu District, Guangzhou City, Guangdong Province, 510000

Patentee after: Yinhai Aperture (Guangzhou) Group Co.,Ltd.

Address before: No. 303, 3rd Floor, Unit 3, Building 7, No. 399, West Section of Fucheng Avenue, High tech Zone, Chengdu, Sichuan, 610095

Patentee before: Chengdu Yinhai Qiming Hospital Management Co.,Ltd.