CN110427140B - Line correction method, line correction device, computer equipment and storage medium - Google Patents

Line correction method, line correction device, computer equipment and storage medium Download PDF

Info

Publication number
CN110427140B
CN110427140B CN201910593735.2A CN201910593735A CN110427140B CN 110427140 B CN110427140 B CN 110427140B CN 201910593735 A CN201910593735 A CN 201910593735A CN 110427140 B CN110427140 B CN 110427140B
Authority
CN
China
Prior art keywords
closed
line
line segment
image data
loop line
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
CN201910593735.2A
Other languages
Chinese (zh)
Other versions
CN110427140A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910593735.2A priority Critical patent/CN110427140B/en
Publication of CN110427140A publication Critical patent/CN110427140A/en
Application granted granted Critical
Publication of CN110427140B publication Critical patent/CN110427140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Abstract

The application relates to the technical field of big data, and provides a line correction method, a line correction device, computer equipment and a storage medium. The method comprises the following steps: acquiring a closed-loop line profile, wherein the closed-loop line profile comprises a plurality of curve points; acquiring the position of a current reference point, and matching from a plurality of curve points according to the position of the current point to obtain a target curve point, wherein the target curve point has an incidence relation with the current reference point; determining a line segment to be dragged and a fixed line segment from the closed-loop line profile according to the target curve point and the current reference point; and acquiring a dragging instruction, dragging the line segment to be dragged according to the dragging instruction to obtain a target closed-loop line profile, and combining the target closed-loop line profile with the fixed line segment according to the line segment to be dragged. By adopting the method, the curve drawing efficiency can be improved.

Description

Line correction method, line correction device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for line correction, a computer device, and a storage medium.
Background
According to the traditional technology, through a line drawing tool, a closed-loop line contour can be freely drawn through a painting brush in the line drawing tool, but when the closed-loop line contour is drawn, once drawing errors occur, the line segment which is drawn needs to be erased, the line segment is erased and then drawn again, and drawing efficiency is low easily.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a line modification method, apparatus, computer device, and storage medium capable of improving curve drawing efficiency.
A method of line correction, the method comprising:
acquiring a closed-loop line profile, wherein the closed-loop line profile comprises a plurality of curve points;
acquiring the position of a current reference point, and matching from a plurality of curve points according to the position of the current point to obtain a target curve point, wherein the target curve point has an incidence relation with the current reference point;
determining a line segment to be dragged and a fixed line segment from the closed-loop line contour according to the target curve point and the current reference point;
and acquiring a dragging instruction, dragging the line segment to be dragged according to the dragging instruction to obtain a target closed-loop line profile, and combining the target closed-loop line profile with the fixed line segment according to the line segment to be dragged.
In one embodiment, the obtaining of the target curve point by matching from the plurality of curve points according to the position of the current point includes: obtaining a cubic B-spline curve difference function, taking the position of the current point and the positions of all curve points as input parameters of the cubic B-spline curve difference function, and calculating to obtain corresponding position differences between the position of the current point and the positions of all curve points; and taking the curve point corresponding to the minimum position difference value in the position difference values as a target curve point.
In one embodiment, acquiring a dragging instruction, dragging a line segment to be dragged according to the dragging instruction to obtain a target closed-loop line profile, where the target closed-loop line profile is obtained according to a combination of the line segment to be dragged and a fixed line segment, and the method includes: acquiring a dragging instruction; and dragging the line segment to be dragged according to the dragging instruction by taking the target curve point as a reference point, and combining the line segment to be dragged and the fixed line segment to obtain the target closed-loop line profile.
In one embodiment, the line modification method further includes: acquiring a closed-loop line wiping instruction, wherein the closed-loop line wiping instruction carries a closed-loop line segment identifier; wiping line segments corresponding to the closed-loop line segment marks according to the closed-loop line wiping instruction to obtain missing line regions; and acquiring a line drawing instruction, drawing a corresponding line segment according to the line drawing instruction, and fusing the line segment with the missing line area to obtain a target closed-loop line profile.
In one embodiment, the target closed-loop line profile is a medical image data profile, and the line modification method further includes: acquiring corresponding medical image data according to the medical image data contour, wherein the medical image data comprises corresponding data labels, and each data label comprises a corresponding label value; acquiring corresponding window width and window level information in medical image data; sorting the medical image data according to the tag value of the data tag corresponding to the medical image data to obtain the sorted medical image data; displaying window width and window level information corresponding to the sorted medical image data; and generating an editing instruction according to the clicking operation of the user on the window width and window level information in the displayed sequenced medical image data, and editing the window width and window level information in the medical image data according to the editing instruction.
In one embodiment, generating an editing instruction according to a user clicking operation on the displayed sorted window level information in the medical image data, and editing the window level information in the medical image data according to the editing instruction includes: receiving a mouse event that a user adjusts the window width and the window level of the medical image data through mouse movement; generating a request message of a request parameter in real time according to a mouse event, wherein the request message comprises the request parameter which is an adjustment parameter of a window width and a window level; the window width and level information in the medical image data is adjusted to the window width and level specified by the request parameters in the request message.
A wire correcting device, the device comprising:
the closed-loop line profile acquisition module is used for acquiring a closed-loop line profile, and the closed-loop line profile comprises a plurality of curve points;
the target curve point determining module is used for acquiring the position of the current reference point, and obtaining a target curve point by matching from a plurality of curve points according to the position of the current point, wherein the target curve point has an incidence relation with the current reference point;
the to-be-dragged line segment acquisition module is used for determining a to-be-dragged line segment and a fixed line segment from the closed-loop line profile according to the target curve point and the current reference point;
and the closed-loop curve outline revision module is used for acquiring a dragging instruction, dragging the line segment to be dragged according to the dragging instruction to obtain a target closed-loop line outline, and the target closed-loop line outline is obtained by combining the line segment to be dragged and the fixed line segment.
A computer device comprising a memory storing a computer program and a processor implementing the following steps when the computer program is executed:
acquiring a closed-loop line profile, wherein the closed-loop line profile comprises a plurality of curve points;
acquiring the position of a current reference point, and matching from a plurality of curve points according to the position of the current point to obtain a target curve point, wherein the target curve point has an incidence relation with the current reference point;
determining a line segment to be dragged and a fixed line segment from the closed-loop line profile according to the target curve point and the current reference point;
and acquiring a dragging instruction, dragging the line segment to be dragged according to the dragging instruction to obtain a target closed-loop line profile, and combining the target closed-loop line profile with the fixed line segment according to the line segment to be dragged.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a closed-loop line profile, wherein the closed-loop line profile comprises a plurality of curve points;
acquiring the position of a current reference point, and matching from a plurality of curve points according to the position of the current point to obtain a target curve point, wherein the target curve point has an incidence relation with the current reference point;
determining a line segment to be dragged and a fixed line segment from the closed-loop line contour according to the target curve point and the current reference point;
and acquiring a dragging instruction, dragging the line segment to be dragged according to the dragging instruction to obtain a target closed-loop line profile, and combining the target closed-loop line profile with the fixed line segment according to the line segment to be dragged.
The line correction method, the line correction device, the computer equipment and the storage medium acquire the positions of the current reference points on the closed-loop line contour and the closed-loop line contour, and match the positions of the current reference points to obtain the target curve points with the incidence relation. If drawing errors occur in the line drawing process, all contour curves drawn previously do not need to be erased, the line segment to be dragged and the fixed line segment only need to be determined according to the current reference point and the target curve point, the line segment to be dragged is dragged according to the dragging instruction, the line segment to be dragged and the fixed line segment are combined, the line segment to be dragged and the fixed line segment do not need to be drawn again, and the drawing efficiency is improved.
Drawings
FIG. 1 is a flow chart illustrating a line modification method according to an embodiment;
FIG. 2 is a schematic flow chart diagram illustrating the target curve point matching step according to one embodiment;
FIG. 3 is a schematic flow chart of a closed-loop line profile revision process in one embodiment;
FIG. 4 is a diagram of a scenario of a closed-loop line profile revision process in one embodiment;
FIG. 5 is a schematic flow chart of a line modification method in another embodiment;
FIG. 6 is a schematic diagram of a scenario of a closed-loop line profile wipe process in one embodiment;
FIG. 7 is a flowchart illustrating a line modification method according to another embodiment;
FIG. 8 is a flowchart illustrating a window level information editing step of medical image data according to an embodiment;
FIG. 9 is a block diagram of a line modification apparatus according to an embodiment;
FIG. 10 is a block diagram showing the structure of a target curve point determination module in another embodiment;
FIG. 11 is a block diagram of the structure of a closed loop line profile revision module in one embodiment;
fig. 12 is a block diagram showing the structure of a line correction apparatus in another embodiment;
FIG. 13 is a block diagram showing the structure of a line correction apparatus in another embodiment;
FIG. 14 is a block diagram of a window width and level information editing module in one embodiment;
FIG. 15 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a method for line correction is provided, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
step 102, a closed-loop line profile is obtained, wherein the closed-loop line profile comprises a plurality of curve points.
The closed-loop line profile is a profile formed by drawing a line closure by operating a brush in a marking tool, the marking tool can be any marking tool on the market, and the closed-loop line profile can be formed by a plurality of curve points. That is, the closed-loop line profile is composed of a plurality of curve points, and the curve point is the minimum unit constituting the closed-loop line profile.
In particular, the end user may draw a curve of at least one edge seal in the marking tool through the associated tool as a closed-loop line profile.
And step 104, acquiring the position of the current reference point, and matching the current point from the multiple curve points to obtain a target curve point, wherein the target curve point has an association relation with the current reference point.
During the process of drawing the line, a closed-loop line profile is drawn, the operation acting on the closed-loop line profile is detected, and the position of the current reference point is determined according to the operation, wherein the operation comprises but is not limited to click operation or voice operation. For example, the terminal user draws a closed-loop line profile, clicks and selects a point on the closed-loop line profile using a mouse or a finger, the selected point may be used as a current reference point, and a position of the current reference point is obtained according to the current reference point.
Specifically, according to the position of a mouse operated by a terminal user, the position of the mouse is obtained and used as the position of the current reference point, meanwhile, the positions of all curve points forming the closed-loop line profile are obtained, and the target curve points are obtained through matching from the plurality of curve points according to the position of the current point. The matching mode of obtaining the target curve point by matching from the multiple curve points according to the position of the current point can be customized, and the customization can be to calculate the distance difference between the position of the current reference point and the position of each curve point, and take the curve point corresponding to the distance difference meeting the preset condition as the target curve point. Specifically, the distance difference between the position of the current reference point and the position of each curve point may be calculated by using a cubic B-spline curve difference function, specifically, the distance difference between the position of the current reference point and the position of each curve point is calculated by using the cubic B-spline curve difference function, and the curve point corresponding to the minimum distance difference is used as the target curve point.
The association relationship here means that the target curve point and the current reference point have close relation, and may share a circle center, or the distances from the target curve point and the current reference point to the circle center are equal, or the distance between the target curve point and the current reference point passes through the circle center.
And 106, determining a line segment to be dragged and a fixed line segment from the closed-loop line profile according to the target curve point and the current reference point.
After the target curve point matched with the current reference point is determined, the current reference point and the target curve point are points in the closed-loop line profile, and therefore the line segment to be dragged and the fixed line segment can be determined from the closed-loop line profile according to the target curve point and the current reference point. The line segment to be dragged is used for dragging and revising, and the fixed line segment is the line segment which is kept unchanged when the line segment to be dragged is dragged, so that the line segment where drawing abnormality is located in the closed-loop line outline can be determined as the line segment to be dragged, and the line segment where drawing is not correct in the closed-loop line outline is determined as the fixed line segment. The abnormal detectable line segment and the line segment with unmatched preset track are drawn in the closed loop line outline to serve as the abnormal line segment, the preset track of each line segment can be set in advance, and the preset track corresponding to each line segment is the correct line segment of the line segment.
And 108, acquiring a dragging instruction, dragging the line segment to be dragged according to the dragging instruction to obtain a target closed-loop line profile, wherein the target closed-loop line profile is obtained by combining the line segment to be dragged and the fixed line segment.
After the line segment to be dragged and the fixed line segment are determined from the closed-loop line profile according to the target curve point and the current reference point, the line segment to be dragged and the fixed line segment can be combined to obtain the target closed-loop line profile after the line segment to be dragged and the fixed line segment are dragged. Specifically, after determining the segment to be dragged and the fixed segment from the closed-loop line profile according to the target curve point and the current reference point, the terminal user may use the target curve point as the reference point, click the target curve point with a mouse to generate a dragging instruction, drag the segment to be dragged in the closed-loop line profile according to the dragging instruction, drag the segment to be dragged to the fixed segment for combination, and finally obtain the revised target closed-loop line profile.
The line correction method comprises the steps of obtaining positions of current reference points on a closed-loop line outline and a closed-loop line outline, matching the positions of the current reference points from a plurality of curve points to obtain a target curve point with an incidence relation, obtaining a dragging line segment and a fixed line segment corresponding to the target curve point and the current reference point due to the fact that the line segment to be dragged and the fixed line segment exist between the target curve point and the current reference point, and combining the line segment to be dragged and the fixed line segment to obtain the target closed-loop line outline by dragging the line segment to be dragged. If drawing errors occur in the line drawing process, all contour curves drawn previously do not need to be erased, the line segment to be dragged and the fixed line segment only need to be determined according to the current reference point and the target curve point, the line segment to be dragged is dragged according to the dragging instruction, the line segment to be dragged and the fixed line segment are combined, the line segment to be dragged and the fixed line segment do not need to be drawn again, and the drawing efficiency is improved.
In one embodiment, as shown in fig. 2, the obtaining of the target curve point by matching from a plurality of curve points according to the position of the current point includes:
step 202, obtaining a cubic B-spline curve difference function, taking the position of the current point and the positions of the curve points as input parameters of the cubic B-spline curve difference function, and calculating to obtain corresponding position differences between the position of the current point and the positions of the curve points.
And step 204, taking the curve point corresponding to the minimum position difference value in all the position difference values as a target curve point.
The target curve point is determined and obtained according to the position of the current point and the positions of the curve points, and specifically, the target curve point may be determined and obtained by calculating a position difference between the position of the current point and the positions of the curve points according to a cubic B-spline difference function. The cubic B-spline curve difference function is an interpolation algorithm, and a curve function set is obtained mathematically by solving a three-bending moment equation set through a smooth curve of a series of shape interpolation points.
Specifically, a preset cubic B-spline curve difference function is obtained, the position of the current point and the positions of the curve points are used as input parameters of the cubic B-spline curve difference function, and the position difference corresponding to the position of the current point and the positions of the curve points is calculated through the cubic B-spline curve difference function. Further, the target curve point is determined according to each position difference value calculated by the cubic B-spline difference function, and specifically, the curve point corresponding to the minimum position difference value among the position difference values may be used as the target curve point. That is, the target curve point is the curve point closest to the position where the current point is located, and the closed-loop line profile is revised by the closest curve point.
In an embodiment, as shown in fig. 3, acquiring a dragging instruction, dragging a to-be-dragged line segment according to the dragging instruction, and obtaining a target closed-loop line profile, where the target closed-loop line profile is obtained by combining the to-be-dragged line segment and a fixed line segment, and the method includes:
step 302, a drag instruction is obtained.
And 304, dragging the segment to be dragged according to the dragging instruction by taking the target curve point as a reference point, and combining the segment to be dragged and the fixed segment to obtain the target closed-loop line profile.
The dragging instruction is used for dragging the closed-loop line profile and can be generated by clicking the closed-loop line profile by a terminal user. Specifically, after a dragging instruction generated by a terminal user through the triggering of a marking tool is obtained, the obtained target curve point is determined to be used as a reference point, the segment to be dragged is dragged according to the dragging instruction, and the segment to be dragged and the fixed segment are fused to obtain a target closed-loop line profile. In an actual application scene, a mouse clicks a target curve point, a segment to be dragged is dragged within the dragging range of the target curve by taking the target curve point as a reference point, and the dragging of the segment to be dragged is fused with a fixed segment to obtain a target closed-loop line profile. As shown in fig. 4, fig. 4 is a schematic view of a scene of a closed-loop line profile revision process in an embodiment, where a in fig. 4 is a closed-loop line profile before revision, and b in fig. 4 is a target closed-loop line profile after revision. Once the closed-loop line contour is drawn in a wrong way or in a wrong way, the drawn closed-loop line contour is not required to be erased, and only part of the wrongly drawn closed-loop line contour is required to be revised, so that the drawing efficiency of the closed-loop line contour is improved.
In one embodiment, as shown in fig. 5, the line modification method further includes:
step 502, a closed-loop line wiping instruction is obtained, wherein the closed-loop line wiping instruction carries a closed-loop line segment identifier.
The closed-loop line wiping instruction is an instruction for wiping a closed-loop line, and the closed-loop line wiping instruction may be generated by a terminal user through triggering of a related control in a marking tool, for example, an eraser tool in the marking tool, and the terminal user clicks the eraser tool in the marking tool to generate the closed-loop line wiping instruction. The closed-loop line wiping instruction carries a closed-loop line segment identifier, the closed-loop line segment identifier is used for uniquely identifying a line segment in a closed-loop line profile, and the closed-loop line profile line segment can be composed of a preset number of curve points. That is to say, the closed-loop line profile is composed of a plurality of closed-loop line profile line segments, and the closed-loop line profile line segments are composed of a preset number of curve points, wherein the preset number of curve points corresponding to each closed-loop line profile line segment may be the same preset number of curve points or different preset numbers of curve points. The preset number may be specifically set or adjusted according to a service requirement or an actual need.
And step 504, wiping the line segment corresponding to the closed-loop line segment identification according to the closed-loop line wiping instruction to obtain a missing line region.
After the closed-loop line wiping instruction is obtained, the line segment corresponding to the closed-loop line segment identification is wiped according to the closed-loop line wiping instruction, and therefore the missing line area is obtained. As shown in fig. 6, fig. 6 is a scene schematic diagram illustrating a closed-loop line profile wiping process in an embodiment, where a in fig. 6 is to wipe a line segment corresponding to a closed-loop line segment identifier according to a closed-loop line wiping instruction to obtain a missing line. The missing part in the closed-loop line profile a in fig. 6 is the missing line region wiped according to the closed-loop line wiping instruction.
Step 506, obtaining a line drawing instruction, drawing a corresponding line segment according to the line drawing instruction, and fusing the line segment with the missing line area to obtain a target closed-loop line profile.
The line drawing instruction is used for drawing the missing line area, and the corresponding line segment can be drawn according to the line drawing instruction. That is, outside the closed-loop line contour, a corresponding line segment may be drawn according to the line drawing instruction, as shown in b in fig. 6, where b in fig. 6 is the corresponding line segment drawn according to the line drawing instruction. And further, after drawing the corresponding line segment according to the line drawing instruction, fusing the line segment with the missing line region to obtain the target closed-loop line profile. Specifically, as shown in c in fig. 6, the initial coordinate position of the previous missing line region is obtained, the initial coordinate position of the line segment drawn according to the line drawing instruction is obtained, and the initial coordinate position of the missing line region and the initial coordinate position of the line segment drawn according to the line drawing instruction are set to be the same initial coordinate position; similarly, the ending coordinate position of the previous missing line region is obtained, the ending coordinate position of the line segment drawn according to the line drawing instruction is obtained, the ending coordinate position of the missing line region and the ending coordinate position of the line segment drawn according to the line drawing instruction are set to be the same ending coordinate position, finally the line segment drawn according to the line drawing instruction and the missing line region can be fused together, and the presented effect can be shown as c in fig. 6.
In one embodiment, as shown in fig. 7, the target closed-loop line profile is a medical image data profile, and the line modification method further includes:
step 702, acquiring corresponding medical image data according to the medical image data contour, wherein the medical image data comprises corresponding data labels, and each data label comprises a corresponding label value.
The target closed-loop line profile is a medical image data profile, the medical image data is DICOM image data, the DICOM image data is Digital Imaging and Communications in Medicine (DICOM), the DICOM image data is an international standard for medical images and related information, and the DICOM medical image plays an important role in treating doctors in a medical application scene. That is, the contour in the medical data image can be drawn by the labeling tool, and then the drawn closed-loop line contour is revised to obtain the target closed-loop line contour, and the target closed-loop line contour is the DICOM image data contour.
Specifically, corresponding medical image data is obtained according to the medical image data contour, the medical image data includes corresponding data tags, and each data tag includes a corresponding tag value. And if a plurality of target closed-loop line profiles exist, acquiring corresponding medical image data according to each medical image data profile. Wherein the acquired medical image data comprises corresponding data tags, wherein the data tags are used to identify the corresponding medical image data, and the data tags comprise corresponding tag values. I.e. the corresponding medical image data is identified by the tag value.
Step 704, obtaining corresponding window width and window level information in the medical image data.
The window width and window level information is a proper noun in the medical image data, and different window width and window levels used at different positions can sufficiently reflect anatomical content and focus image expression, so that the corresponding window width and window level information in the medical image data needs to be acquired, and the acquired window width and window level information can be adjusted or set according to different positions. The window width and window level information can influence the focus image expression in the medical image data, and plays an important role in doctors in medical scenes. Therefore, in the annotation tool of the line modification method, the doctor can adjust or set the window width and window level information in the medical image data through the annotation tool.
Step 706, sorting the medical image data according to the tag value of the data tag corresponding to the medical image data to obtain the sorted medical image data.
And step 708, displaying window width and window level information corresponding to the sorted medical image data.
In order to conveniently display the window width and window level information of the plurality of medical image data to a doctor, the plurality of medical image data can be sorted to obtain the sorted medical image data, and then the window width and window level information corresponding to the sorted medical image data is displayed to the doctor for adjustment. In this way, a plurality of disordered medical image data can be displayed to a doctor in order, and the doctor can improve the processing efficiency and the like. Specifically, since the medical image data includes the corresponding data tag and the data tag includes the corresponding tag value, the tag value corresponding to the data tag of each medical image data can be obtained, and the tag values are arranged in a descending order or an ascending order according to a preset rule to obtain each sorted medical image data. And finally, displaying window width and window level information corresponding to the sequenced medical image data at the front end of the terminal. For example, sorting medical image data, for example, a sequence of medical image data, for example, 20 medical image data, placed in a certain folder may be sorted according to the size of the label value in each medical image data, and the images may be displayed in order after sorting, so that it can be indicated whether the patient is in order when scanning ct, for example, first-in-order or first-out-order.
And 710, generating an editing instruction according to the clicking operation of the user on the window width and window level information in the displayed sequenced medical image data, and editing the window width and window level information in the medical image data according to the editing instruction.
Specifically, after the front end of the terminal displays the window width window level information corresponding to the sorted medical image data, a terminal user, for example, a doctor may perform operation processing according to the window width window level information corresponding to the sorted medical image data, specifically, may generate an edit instruction for a click operation on the window width window level information in the sorted medical image data, and edit the window width window level information in the medical image data according to the edit instruction. In one embodiment, an end user, such as a doctor, may move a mouse event that adjusts a window width and a window level in medical data through a mouse, and then generate a request message requesting parameters in real time according to the mouse event, where the request message includes the request parameters, and the request parameters are window width and window level adjustment parameters, and then adjust window width and window level information in the selected medical data according to the window width and window level adjustment parameters.
In one embodiment, as shown in fig. 8, generating an editing instruction according to a user's clicking operation on the displayed sorted medical image data, and editing the window width information in the medical image data according to the editing instruction includes:
step 802, receiving a mouse event that a user adjusts the window width and the window level of the medical image data through mouse movement.
The mouse event refers to an event generated by a terminal user through mouse adjustment of a window width and window level in medical image data. Specifically, after the front end of the terminal displays the window width and window level information corresponding to the sorted medical image data, a terminal user can adjust or set the displayed window width and window level information, and specifically, a mouse event can be generated by adjusting the window width and window level of the medical image data through mouse movement.
Step 804, generating a request message of the request parameter in real time according to the mouse event, wherein the request message comprises the request parameter, and the request parameter is an adjustment parameter of the window width and the window level.
Specifically, the terminal may generate a request message requesting parameters according to the generated mouse event, that is, the mouse event may be used to generate the request message. The request message is a message for requesting adjustment of window width and level information in the selected medical data. The request message carries a request parameter, and the request parameter is an adjustment parameter of the window width level, which is a parameter that the window width level in the medical data needs to be adjusted to be specified.
In step 806, the window width and level information in the medical image data is adjusted to the window width and level specified by the request parameters in the request message.
Specifically, after the request message requesting the parameters is generated in real time according to the mouse event, the window width and level information in the medical image data needs to be adjusted to the window width and level specified by the request parameters in the request message. That is, an end user, for example, a doctor may adjust window width and window level information in medical image data through a labeling tool, while different portions use different window widths and window levels to facilitate study of a lesion area, and adjust window width and window level information in medical data to appropriate window widths and window levels to facilitate study and search of a lesion area in a medical image, and at the same time, improve the processing efficiency of the doctor.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 9, there is provided a line correction apparatus 900, including:
a closed-loop line profile obtaining module 902 is configured to obtain a closed-loop line profile, where the closed-loop line profile includes a plurality of curve points.
And a target curve point determining module 904, configured to obtain a position of the current reference point, and obtain a target curve point by matching among the multiple curve points according to the position of the current point, where the target curve point and the current reference point have an association relationship.
And a to-be-dragged line segment obtaining module 906, configured to determine a to-be-dragged line segment and a fixed line segment from the closed-loop line profile according to the target curve point and the current reference point.
And the closed-loop curve profile revising module 908 is used for acquiring a dragging instruction, dragging the line segment to be dragged according to the dragging instruction to obtain a target closed-loop line profile, and the target closed-loop line profile is obtained by combining the line segment to be dragged and the fixed line segment.
In one embodiment, as shown in FIG. 10, the target curve point determination module 904 includes:
and a position difference calculation unit 904a, configured to obtain a cubic B-spline difference function, use the position of the current point and the positions of the curve points as input parameters of the cubic B-spline difference function, and calculate to obtain a corresponding position difference between the position of the current point and the positions of the curve points.
A target curve point determining unit 904b, configured to take the curve point corresponding to the smallest position difference value in the position difference values as the target curve point.
In one embodiment, as shown in FIG. 11, the closed-loop line profile revision module 908 comprises:
the drag instruction acquisition unit 908a is configured to acquire a drag instruction.
And a closed-loop line profile dragging unit 908b, configured to drag the closed-loop line profile to modify according to the drag instruction and the target curve drag range, with the target curve point as a reference point, to obtain a modified target closed-loop line profile.
In one embodiment, as shown in fig. 12, the line modification apparatus 900 further includes:
and a closed-loop line wiping instruction obtaining module 1202, configured to obtain a closed-loop line wiping instruction, where the closed-loop line wiping instruction carries a closed-loop line segment identifier.
And the wiping module 1204 is configured to wipe the line segment corresponding to the closed-loop line segment identifier according to the closed-loop line wiping instruction, so as to obtain a missing line region.
The drawing module 1206 is configured to obtain a line drawing instruction, draw a corresponding line segment according to the line drawing instruction, and fuse the line segment with the missing line region to obtain a target closed-loop line profile.
In one embodiment, as shown in fig. 13, the target closed-loop line profile is a medical image data profile, and the line modification apparatus 900 further includes:
a medical image data obtaining module 1302, configured to obtain corresponding medical image data according to a medical image data contour, where the medical image data includes corresponding data tags, and each data tag includes a corresponding tag value.
A window width and window level information obtaining module 1304, configured to obtain corresponding window width and window level information in the medical image data.
The medical image data sorting module 1306 is configured to sort the medical image data according to the tag value of the data tag corresponding to the medical image data, so as to obtain the sorted medical image data.
A window width and window level information display module 1308, configured to display window width and window level information corresponding to the sorted medical image data.
The window width window level information editing module 1310 is configured to generate an editing instruction according to a click operation performed by a user on the window width window level information in the displayed sequenced medical image data, and edit the window width window level information in the medical image data according to the editing instruction.
In one embodiment, as shown in fig. 14, the window width and level information editing module 1310 includes:
a mouse event generating unit 1310a for receiving a mouse event that a user adjusts a window width and a window level of the medical image data by mouse movement.
The request message generating unit 1310b is configured to generate a request message of a request parameter in real time according to a mouse event, where the request message includes the request parameter, and the request parameter is an adjustment parameter of a window width and a window level.
A window width window level adjusting unit 1310c for adjusting the window width window level information in the medical image data to the window width and level specified by the request parameter in the request message.
For specific limitations of the line modification apparatus, reference may be made to the above limitations of the line modification method, which are not described herein again. All or part of the modules in the marking tool curve correction line correction device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 15. The computer device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a line correction method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 15 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the line modification method described above. Here, the steps of the line correction method may be the steps in the line correction methods of the above-described respective embodiments.
In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, causes the processor to perform the steps of the above-described line modification method. Here, the steps of the line correction method may be the steps in the line correction methods of the above-described respective embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of line correction, the method comprising:
acquiring a closed-loop line profile, wherein the closed-loop line profile comprises a plurality of curve points;
acquiring the position of a current reference point, and matching the position of the current reference point with the plurality of curve points to obtain a target curve point, wherein the target curve point has an association relation with the current reference point;
determining a line segment to be dragged and a fixed line segment from the closed-loop line profile according to the target curve point and the current reference point;
and generating a dragging instruction, dragging the line segment to be dragged according to the dragging instruction by taking the target curve point as a reference point, and fusing the line segment to be dragged and the fixed line segment to obtain a target closed-loop line profile.
2. The method according to claim 1, wherein the matching a target curve point from the plurality of curve points according to the position of the current reference point comprises:
obtaining a cubic B-spline curve difference function, taking the position of the current reference point and the positions of the curve points as input parameters of the cubic B-spline curve difference function, and calculating to obtain corresponding position differences between the position of the current reference point and the positions of the curve points;
and taking the curve point corresponding to the minimum position difference value in the position difference values as a target curve point.
3. The method of claim 1, further comprising:
acquiring a closed-loop line wiping instruction, wherein the closed-loop line wiping instruction carries a closed-loop line segment identifier;
wiping line segments corresponding to the closed-loop line segment marks according to the closed-loop line wiping instruction to obtain missing line regions;
and obtaining a line drawing instruction, drawing a corresponding line segment according to the line drawing instruction, and fusing the line segment and the missing line region to obtain a target closed-loop line profile.
4. The method of claim 1, wherein the target closed-loop line profile is a medical image data profile, the method further comprising:
acquiring corresponding medical image data according to the medical image data contour, wherein the medical image data comprises corresponding data labels, and each data label comprises a corresponding label value;
acquiring corresponding window width and window level information in the medical image data;
sorting the medical image data according to the tag value of the data tag corresponding to the medical image data to obtain sorted medical image data;
displaying window width and window level information corresponding to the sequenced medical image data;
and generating an editing instruction according to the clicking operation of the user on the displayed window width and window level information in the sequenced medical image data, and editing the window width and window level information in the medical image data according to the editing instruction.
5. The method according to claim 4, wherein generating an editing instruction according to a user's clicking operation on the displayed window width level information in the sorted medical image data, and editing the window width level information in the medical image data according to the editing instruction comprises:
receiving a mouse event that a user adjusts the window width and the window level of the medical image data through mouse movement;
generating a request message of a request parameter in real time according to the mouse event, wherein the request message comprises the request parameter which is an adjustment parameter of a window width and a window level;
window width window level information in the medical image data is adjusted to a window width and level specified by a request parameter in a request message.
6. A wire correcting device, characterized in that the device comprises:
the closed-loop line profile acquisition module is used for acquiring a closed-loop line profile, and the closed-loop line profile comprises a plurality of curve points;
the target curve point determining module is used for acquiring the position of a current reference point, and obtaining a target curve point by matching from the plurality of curve points according to the position of the current reference point, wherein the target curve point has an incidence relation with the current reference point;
the to-be-dragged line segment acquisition module is used for determining a to-be-dragged line segment and a fixed line segment from the closed-loop line profile according to the target curve point and the current reference point;
and the closed-loop curve contour revising module is used for generating a dragging instruction, dragging the line segment to be dragged according to the dragging instruction by taking the target curve point as a reference point, and fusing the line segment to be dragged and the fixed line segment to obtain a target closed-loop line contour.
7. The apparatus of claim 6, wherein the target curve point determining module comprises:
the position difference value calculation unit is used for acquiring a cubic B-spline curve difference value function, taking the position of the current reference point and the positions of the curve points as input parameters of the cubic B-spline curve difference value function, and calculating to obtain corresponding position difference values between the position of the current reference point and the positions of the curve points;
and the target curve point determining unit is used for taking the curve point corresponding to the minimum position difference value in the position difference values as the target curve point.
8. The apparatus of claim 6, further comprising:
the closed-loop line wiping instruction acquisition module is used for acquiring a closed-loop line wiping instruction, and the closed-loop line wiping instruction carries a closed-loop line segment identifier;
the wiping module is used for wiping the line segment corresponding to the closed-loop line segment identifier according to the closed-loop line wiping instruction to obtain a missing line area;
and the drawing module is used for obtaining a line drawing instruction, drawing a corresponding line segment according to the line drawing instruction, and fusing the line segment and the missing line area to obtain a target closed-loop line profile.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method according to any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201910593735.2A 2019-07-03 2019-07-03 Line correction method, line correction device, computer equipment and storage medium Active CN110427140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910593735.2A CN110427140B (en) 2019-07-03 2019-07-03 Line correction method, line correction device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910593735.2A CN110427140B (en) 2019-07-03 2019-07-03 Line correction method, line correction device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110427140A CN110427140A (en) 2019-11-08
CN110427140B true CN110427140B (en) 2023-04-18

Family

ID=68410166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910593735.2A Active CN110427140B (en) 2019-07-03 2019-07-03 Line correction method, line correction device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110427140B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152732A (en) * 2020-09-27 2020-12-29 深圳宇宙桥无线通信技术有限公司 Curve adjusting method, curve adjusting system, curve adjusting medium, debugging preparation method, debugging preparation system and debugging preparation medium
CN112200860B (en) * 2020-10-30 2023-03-24 久瓴(江苏)数字智能科技有限公司 Object position relation determining method and device, storage medium and electronic device
CN114415912A (en) * 2021-12-31 2022-04-29 乐美科技股份私人有限公司 Element editing method and device, electronic equipment and storage medium
CN116823778A (en) * 2022-04-13 2023-09-29 深圳北芯生命科技股份有限公司 Connecting method of adjacent point pairs in target path and related labeling method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005028051A (en) * 2003-07-11 2005-02-03 Matsushita Electric Ind Co Ltd Image display device and image display method
CN101859224A (en) * 2010-04-30 2010-10-13 陈铸 Method and system for scratching target object from digital picture
CN108037877A (en) * 2017-12-15 2018-05-15 广州视源电子科技股份有限公司 Processing method, device, equipment and the storage medium of function curve
CN109697061A (en) * 2018-12-29 2019-04-30 广州明动软件股份有限公司 The method and device of lines dragging is realized in WEBization business process designer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005028051A (en) * 2003-07-11 2005-02-03 Matsushita Electric Ind Co Ltd Image display device and image display method
CN101859224A (en) * 2010-04-30 2010-10-13 陈铸 Method and system for scratching target object from digital picture
CN108037877A (en) * 2017-12-15 2018-05-15 广州视源电子科技股份有限公司 Processing method, device, equipment and the storage medium of function curve
CN109697061A (en) * 2018-12-29 2019-04-30 广州明动软件股份有限公司 The method and device of lines dragging is realized in WEBization business process designer

Also Published As

Publication number Publication date
CN110427140A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN110427140B (en) Line correction method, line correction device, computer equipment and storage medium
CN109472213B (en) Palm print recognition method and device, computer equipment and storage medium
CN110201319B (en) System and method for automatically generating a dose prediction model and therapy treatment plan as a cloud service
CN109829930B (en) Face image processing method and device, computer equipment and readable storage medium
CN108280626B (en) Contract data processing method and device, computer equipment and storage medium
KR102014385B1 (en) Method and apparatus for learning surgical image and recognizing surgical action based on learning
CN108968991B (en) Hand bone X-ray film bone age assessment method, device, computer equipment and storage medium
CN110310256B (en) Coronary stenosis detection method, coronary stenosis detection device, computer equipment and storage medium
CN111161270A (en) Blood vessel segmentation method for medical image, computer device and readable storage medium
CN111667011A (en) Damage detection model training method, damage detection model training device, damage detection method, damage detection device, damage detection equipment and damage detection medium
CN111080573B (en) Rib image detection method, computer device and storage medium
CN108845835B (en) Operation guide processing method and device based on application program and computer equipment
CN110189306B (en) Method and device for determining responsible blood vessels corresponding to abnormal regions in brain image
US9936930B2 (en) Method and apparatus for determining treatment margin of target area
US9665941B2 (en) Object segmentation
CN110600107B (en) Method for screening medical images, computer device and readable storage medium
US10864382B2 (en) System and method for radiation therapy treatment planning
CN110751149A (en) Target object labeling method and device, computer equipment and storage medium
CN111063422A (en) Medical image labeling method, device, equipment and medium
CN113240661A (en) Deep learning-based lumbar vertebra analysis method, device, equipment and storage medium
US11842275B2 (en) Improving segmentations of a deep neural network
CN111178126A (en) Target detection method, target detection device, computer equipment and storage medium
CN109712186B (en) Method, computer device and storage medium for delineating a region of interest in an image
CN109452926B (en) Camera positioning method and device, computer equipment and storage medium
CN110766653B (en) Image segmentation method and device, computer equipment 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