CN110032315B - Rapid modification method for contour line of radiotherapy target area - Google Patents
Rapid modification method for contour line of radiotherapy target area Download PDFInfo
- Publication number
- CN110032315B CN110032315B CN201910241536.5A CN201910241536A CN110032315B CN 110032315 B CN110032315 B CN 110032315B CN 201910241536 A CN201910241536 A CN 201910241536A CN 110032315 B CN110032315 B CN 110032315B
- Authority
- CN
- China
- Prior art keywords
- mouse
- contour
- delineation
- judging whether
- close
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04845—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method for quickly modifying contour lines of radiotherapy target areas, which comprises the following steps: s1, obtaining a structure list of radiotherapy target images; s2, monitoring the moving position of the mouse; s3, when the mouse is pressed down, recording the position coordinates of the mouse at the moment, and recording the position coordinates as the starting point P1 of the new delineation contour; s4, judging whether the P1 is close to other drawn contours, if so, returning to S1 again; s5, judging whether the P1 is close to the currently selected structure, and if not, returning to S1 again; s6, judging whether the mouse is in a dragging state, and jumping to S8 if the mouse is not in the dragging state; s7, drawing a new drawing track consisting of P1 and Pn; s8, judging whether the mouse is loosened, if not, continuing to return to S6; s9, recording coordinates of the release position of the mouse, and recording the coordinates as an end point P2 of the new sketching contour; s10, judging whether the P2 is close to the currently selected structure, if not, clearing the P1, Pn and P2; and S11, fusing the new and old delineation outlines. The invention can greatly reduce the complex operation brought by the outline delineation process of the target area and improve the delineation performance of the radiotherapy system.
Description
Technical Field
The invention belongs to the technical field of delineation of target area contour lines, and relates to a method for quickly modifying contour lines of radiotherapy target areas.
Background
Radiation therapy of tumor is one of three tumor treatment techniques at present. Precise radiotherapy for malignant tumors relies on Computed Tomography (CT), Magnetic Resonance Imaging (MRI), Positron Emission Tomography (PET), Cone Beam Computed Tomography (CBCT) techniques and corresponding medical image information intelligent processing techniques. Delineating the tumor target area and surrounding organs at risk on the radiotherapy positioning image is a prerequisite and key technology for successful implementation of accurate radiotherapy.
Clinical target delineation is mostly done by the radiologist on commercial treatment systems (montaco, Pinnacle, etc.) developed by the manufacturer. In recent years, with rapid development of technologies such as computer and artificial intelligence, some commercial treatment systems (such as atlas-based auto-segmentation, ABAS) can automatically delineate a tumor target area and a crisis organ, but practice shows that compared with the artificial delineation, the ABAS automatic delineation has a consistency index of only 0.7-0.8, and needs to be manually modified in clinical application, so that convenience of a manual delineation tool in a radiotherapy system is important.
At present, a large amount of complex image morphological processing exists in a delineation method in an existing radiotherapy system, system resources are occupied, system performance is affected, and even the problem of operation blockage can occur. The above problems greatly affect the working efficiency of doctors.
Disclosure of Invention
The invention mainly aims to overcome the defects in the prior art, provides a method for quickly modifying the contour line of a radiotherapy target area, does not need a large amount of complex operations, supports an operation mode of randomly drawing a path, and effectively solves the problem that the performance of the conventional drawing method in a radiotherapy system is poor.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for quickly modifying contour lines of radiotherapy target areas comprises the following steps:
s1, obtaining a structure list of radiotherapy target area images, wherein each image corresponds to an independent structure list, and simultaneously obtaining a mouse state, and the structure list refers to all structures sketched in one medical image by a doctor;
s2, monitoring the moving position of the mouse;
s3, when the mouse is pressed down, recording the position coordinates of the mouse at the moment, and recording the position coordinates as the starting point P1 of the new delineation contour;
s4, judging whether the P1 is close to other drawn contours, if so, switching to a newly clicked drawn contour, and returning to the step S1 again;
s5, judging whether the P1 is close to the currently selected structure, if not, returning to the step S1 again;
s6, judging whether the mouse is in a dragging state, and if not, jumping to the step S8;
s7, drawing a new drawing track consisting of P1 and Pn, wherein Pn refers to a certain data point drawn between P1 and P2;
s8, judging whether the mouse is loosened, if not, continuing to return to the step S6;
s9, recording coordinates of the release position of the mouse, and recording the coordinates as an end point P2 of the new sketching contour;
s10, judging whether the P2 is close to the currently selected structure, if not, clearing new tracing points P1, Pn and P2 of the sketched contour;
and S11, fusing the new and old drawn contours to extract the final contour.
As a preferred technical solution, in step S1, the structure list is obtained by:
the system acquires the structure list of the image through network transmission with the server.
As a preferred technical solution, in step S1, the mouse status is obtained by:
and acquiring the state of the user when the user interacts with the pointer equipment through a mouse event interface of the browser.
As a preferred technical solution, in step S2, the following method is adopted to monitor the mouse moving position:
and monitoring a mouse moving event of the medical image display container through a mouse event interface of the browser, so as to obtain the actual position of the mouse moving.
Preferably, in step S4, the method for determining whether P1 is close to another delineation contour includes:
and in the structure list, the currently selected delineation contour is identified, and whether the distance between the position of the mouse and other delineation contours is smaller than a threshold value is calculated in real time to judge whether the mouse is close to other delineation contours or not in the moving process of the mouse.
As a preferred technical scheme, the method for calculating the distance between the position of the mouse and other hooked outlines comprises the following steps:
all coordinate points for drawing the outline are divided into a plurality of line segments according to two adjacent points, the distances between the coordinate point where the mouse is located and the line segments are respectively calculated, and the minimum distance is the distance between the position of the mouse and the outline.
As a preferred technical solution, in step S5, the method for determining whether P1 is close to the currently selected structure includes:
whether P1 is close to the currently selected structure is judged by calculating whether the distance from the P1 point to the currently selected structure is less than a threshold value.
As a preferred technical solution, in step S10, the method for determining whether P2 is close to the currently selected structure includes:
whether P2 is close to the currently selected structure is judged by calculating whether the distance from the P2 point to the currently selected structure is less than a threshold value.
As a preferred technical solution, in step S11, the step of fusing the new and old delineation contours and extracting the final contour specifically comprises:
s11-1, selecting an old delineation contour, and determining a coordinate point and a coordinate point set;
s11-2, modifying the old delineation contour, and determining modified track coordinates;
s11-3, combining the new delineation contour with the old delineation contour to form two independent contours respectively;
s11-4, comparing the areas of the two contours;
and S11-5, saving the outline with large area as the newly drawn outline.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the method of the invention can not only greatly reduce the complex operation brought by the outline delineation process of the target area, improve the delineation performance of the radiotherapy system, make the delineation more smooth and rapid, but also reduce the limitation of the delineation tool, allow the doctor to delineate on any path, and greatly improve the efficiency.
2. By adopting the technical scheme of the invention, in the process of drawing the outline of the target area on the image by a doctor, the drawing path is not limited by the drawing shape any more, the existing outline can be quickly modified, the drawing efficiency is effectively improved, and the probability of modifying the existing outline after drawing is reduced.
Drawings
FIG. 1 is a flow chart of the method for rapidly modifying the contour line of the radiotherapy target region according to the present invention.
Fig. 2(a) -fig. 2(e) are the new and old delineation contour fusion process of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.
Examples
As shown in FIG. 1, the invention discloses a method for rapidly modifying contour lines of radiotherapy target regions, which comprises the following steps:
s1, obtaining a structure list of radiotherapy target area images, wherein each image corresponds to an independent structure list, and simultaneously obtaining a mouse state, and the structure list refers to all structures sketched in one medical image by a doctor. After the system adopted by the doctor displays the medical image, the system reads the structure list corresponding to the image from the database so as to display different sketching results in the image.
In the above step S1, the system obtains the structure list of the image through network transmission with the server; acquiring the state of a user interacting with a pointer device (such as a mouse) through a mouse event interface of a browser
S2, monitoring the moving position of the mouse, specifically monitoring the mouse moving event of the medical image display container through a mouse event interface of the browser, so as to obtain the actual moving position of the mouse;
s3, when the mouse is pressed down, recording the position coordinates of the mouse at the moment, recording the position coordinates as the starting point P1 of a new sketching contour, identifying the currently selected sketching contour in the structure list, and judging whether the distance between the position of the mouse and other sketching contours is smaller than a threshold value in real time to judge whether the mouse is close to other sketching contours or not in the moving process of the mouse;
the calculation method comprises the following steps:
dividing all coordinate points for delineating the contour into a group of two adjacent points into a plurality of line segments, respectively calculating the distance between the coordinate point of the mouse and the line segments, wherein the minimum distance is the distance between the position of the mouse and the contour
S4, judging whether the P1 is close to other drawn contours, if so, switching to a newly clicked drawn contour, and returning to the step S1 again;
the method for judging whether the P1 is close to the currently selected structure comprises the following steps:
judging whether the P1 is close to the currently selected structure by calculating whether the distance between the P1 point and the currently selected structure is smaller than a threshold value, namely the calculation method is the same as the step S3;
s5, judging whether the P1 is close to the currently selected structure, if not, returning to the step S1 again;
s6, judging whether the mouse is in a dragging state, and if not, jumping to the step S8;
s7, drawing a new drawing track consisting of P1 and Pn;
s8, judging whether the mouse is loosened, if not, continuing to return to the step S6;
s9, recording coordinates of the release position of the mouse, and recording the coordinates as an end point P2 of the new sketching contour;
s10, judging whether the P2 is close to the currently selected structure, if not, removing newly drawn contour track points P1, Pn and P2, and judging whether the P2 is close to the currently selected structure:
judging whether the P2 is close to the currently selected structure by calculating whether the distance between the P2 point and the currently selected structure is smaller than a threshold value, namely the judging method is the same as the step S3;
and S11, fusing the new and old drawn contours to extract the final contour.
In step S11, the old and new contour fusion module, as shown in fig. 2(a) -2 (e), includes the following steps:
s11-1, FIG. 2(a) is the original old sketching contour, wherein a square represents a coordinate point, and the contour surrounded by red squares in the drawing is an orderly arranged coordinate point set;
s11-2, when the user modifies the contour of the drawing in the drawing 2(a), the circle in the drawing 2(b) represents a new drawing contour, and the track coordinates are P1-Pn-P2(P1 is a drawing starting point, P2 is a drawing end point, and Pn is a dragging track point of the drawing process);
s11-3, combining the new delineation contour with the old delineation contour to form two independent contours, as shown in fig. 2(d) and fig. 2(e), respectively;
s11-4, comparing the areas of the contour map 2(d) and the contour map 2 (e);
suppose that the contour vertex coordinates are, in order, (x)0,y0),(x1,x1),…(xn,yn) Then, the profile area calculation formula is:
s11-5, saving the outline map 2(e) with larger area as the new sketching outline.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.
Claims (4)
1. A method for quickly modifying contour lines of radiotherapy target areas is characterized by comprising the following steps:
s1, obtaining a structure list of radiotherapy target area images, wherein each image corresponds to an independent structure list, and simultaneously obtaining a mouse state, and the structure list refers to all structures sketched in one medical image by a doctor;
s2, monitoring the moving position of the mouse;
s3, when the mouse is pressed down, recording the position coordinates of the mouse at the moment, and recording the position coordinates as the starting point P1 of the new delineation contour;
s4, judging whether the P1 is close to other drawn contours, if so, switching to a newly clicked drawn contour, and returning to the step S1 again;
the method for judging whether the P1 is close to other sketching contours comprises the following steps:
in the structure list, the currently selected delineation contour is identified, and when the mouse moves, whether the distance between the position of the mouse and other delineation contours is smaller than a threshold value is calculated in real time to judge whether the mouse is close to other delineation contours;
the method for calculating the distance between the position of the mouse and other hooked outlines comprises the following steps:
dividing all coordinate points for delineating the contour into a group of two adjacent points into a plurality of line segments, respectively calculating the distance between the coordinate point where the mouse is located and the line segments, wherein the minimum distance is the distance between the position of the mouse and the contour;
s5, judging whether the P1 is close to the currently selected structure, if not, returning to the step S1 again;
the method for judging whether the P1 is close to the currently selected structure comprises the following steps:
judging whether the P1 is close to the currently selected structure by calculating whether the distance between the P1 point and the currently selected structure is smaller than a threshold value;
s6, judging whether the mouse is in a dragging state, and if not, jumping to the step S8;
s7, drawing a new drawing track consisting of P1 and Pn, wherein Pn refers to a certain data point drawn between P1 and P2;
s8, judging whether the mouse is loosened, if not, continuing to return to the step S6;
s9, recording coordinates of the release position of the mouse, and recording the coordinates as an end point P2 of the new sketching contour;
s10, judging whether the P2 is close to the currently selected structure, if not, clearing new tracing points P1, Pn and P2 of the sketched contour;
the method for judging whether the P2 is close to the currently selected structure comprises the following steps:
judging whether the P2 is close to the currently selected structure by calculating whether the distance between the P2 point and the currently selected structure is smaller than a threshold value;
s11, fusing the new and old delineation outlines, and extracting a final outline;
in step S11, the specific steps of fusing the new and old delineation contours and extracting the final contour are as follows:
s11-1, selecting an old delineation contour, and determining a coordinate point and a coordinate point set;
s11-2, modifying the old delineation contour, and determining modified track coordinates;
s11-3, combining the new delineation contour with the old delineation contour to form two independent contours respectively;
s11-4, comparing the areas of the two contours, wherein the contour area calculation formula is as follows:
suppose that the contour vertex coordinates are, in order, (x)0,y0),(x1,x1),…(xn,yn) Then, the profile area calculation formula is:
and S11-5, saving the outline with large area as the newly drawn outline.
2. The method for rapidly modifying contour lines of radiotherapy target areas according to claim 1, wherein in step S1, the structural list is obtained by:
the system acquires the structure list of the image through network transmission with the server.
3. The method for rapidly modifying contour lines of radiotherapy target areas according to claim 1, wherein in step S1, the mouse status is obtained by:
and acquiring the state of the user when the user interacts with the pointer equipment through a mouse event interface of the browser.
4. The method for rapidly modifying contour lines of radiotherapy target areas according to claim 1, wherein in step S2, the mouse moving position is monitored by the following method:
and monitoring a mouse moving event of the medical image display container through a mouse event interface of the browser, so as to obtain the actual position of the mouse moving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910241536.5A CN110032315B (en) | 2019-03-28 | 2019-03-28 | Rapid modification method for contour line of radiotherapy target area |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910241536.5A CN110032315B (en) | 2019-03-28 | 2019-03-28 | Rapid modification method for contour line of radiotherapy target area |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110032315A CN110032315A (en) | 2019-07-19 |
CN110032315B true CN110032315B (en) | 2021-04-27 |
Family
ID=67236963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910241536.5A Active CN110032315B (en) | 2019-03-28 | 2019-03-28 | Rapid modification method for contour line of radiotherapy target area |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110032315B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111127404B (en) * | 2019-12-06 | 2023-04-18 | 广州柏视医疗科技有限公司 | Medical image contour rapid extraction method |
CN111709436A (en) * | 2020-05-21 | 2020-09-25 | 浙江康源医疗器械有限公司 | Marking method and system, and classification method and system for medical image contour |
CN112582048A (en) * | 2021-03-01 | 2021-03-30 | 四川大学 | Radiotherapy target area automatic delineation system and method based on deep learning |
CN113192053A (en) * | 2021-05-18 | 2021-07-30 | 北京大学第三医院(北京大学第三临床医学院) | Cervical tumor target area intelligent delineation method, equipment and medium based on deep learning |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101490717A (en) * | 2006-07-14 | 2009-07-22 | 皇家飞利浦电子股份有限公司 | A method, apparatus, system and computer-readable medium for interactive shape manipulation |
CN104424473A (en) * | 2013-09-06 | 2015-03-18 | 北京三星通信技术研究有限公司 | Method and device for identifying and editing freehand sketch |
CN104462691A (en) * | 2014-12-09 | 2015-03-25 | 广州大学 | Method and device for implementation of intelligent drawing with mouse in dynamic geometric software |
CN106095139A (en) * | 2016-05-30 | 2016-11-09 | 安徽慧视金瞳科技有限公司 | A kind of method promoting lines drafting speed in projection interactive system |
CN108665459A (en) * | 2018-05-22 | 2018-10-16 | 释码融和(上海)信息科技有限公司 | A kind of image fuzzy detection method, computing device and readable storage medium storing program for executing |
CN109461194A (en) * | 2018-09-19 | 2019-03-12 | 安徽慧视金瞳科技有限公司 | A kind of method for drafting for simulating art designing pen style of writing |
-
2019
- 2019-03-28 CN CN201910241536.5A patent/CN110032315B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101490717A (en) * | 2006-07-14 | 2009-07-22 | 皇家飞利浦电子股份有限公司 | A method, apparatus, system and computer-readable medium for interactive shape manipulation |
CN104424473A (en) * | 2013-09-06 | 2015-03-18 | 北京三星通信技术研究有限公司 | Method and device for identifying and editing freehand sketch |
CN104462691A (en) * | 2014-12-09 | 2015-03-25 | 广州大学 | Method and device for implementation of intelligent drawing with mouse in dynamic geometric software |
CN106095139A (en) * | 2016-05-30 | 2016-11-09 | 安徽慧视金瞳科技有限公司 | A kind of method promoting lines drafting speed in projection interactive system |
CN108665459A (en) * | 2018-05-22 | 2018-10-16 | 释码融和(上海)信息科技有限公司 | A kind of image fuzzy detection method, computing device and readable storage medium storing program for executing |
CN109461194A (en) * | 2018-09-19 | 2019-03-12 | 安徽慧视金瞳科技有限公司 | A kind of method for drafting for simulating art designing pen style of writing |
Also Published As
Publication number | Publication date |
---|---|
CN110032315A (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032315B (en) | Rapid modification method for contour line of radiotherapy target area | |
Lei et al. | Breast tumor segmentation in 3D automatic breast ultrasound using Mask scoring R‐CNN | |
Wei et al. | A fully automatic method for lung parenchyma segmentation and repairing | |
Yang et al. | Fine-grained recurrent neural networks for automatic prostate segmentation in ultrasound images | |
Gao et al. | Automatic segmentation of coronary tree in CT angiography images | |
US9563947B2 (en) | Measurement system for medical images | |
Wu et al. | Automatic glioma segmentation based on adaptive superpixel | |
CN103150723B (en) | The stomach CT image lymph node detection system of Shape-based interpolation and ellipse fitting and method | |
CN103106408B (en) | The automatic assisted detection system of stomach CT image lymph node of non-formaldehyde finishing | |
Zheng et al. | Multi-part modeling and segmentation of left atrium in C-arm CT for image-guided ablation of atrial fibrillation | |
CN102473297B (en) | Quantitative perfusion analysis | |
CN111862021B (en) | Deep learning-based automatic head and neck lymph node and drainage area delineation method | |
CN108846838B (en) | Three-dimensional MRI (magnetic resonance imaging) semi-automatic focus image segmentation method and system | |
GB2463141A (en) | Medical image segmentation | |
Le et al. | Semi-automatic liver segmentation based on probabilistic models and anatomical constraints | |
CA3111320A1 (en) | Determination of a growth rate of an object in 3d data sets using deep learning | |
Ananth et al. | Graph Cutting Tumor Images | |
CN111145226A (en) | Three-dimensional lung feature extraction method based on CT image | |
Fang et al. | Supervoxel-based brain tumor segmentation with multimodal MRI images | |
CN111127404B (en) | Medical image contour rapid extraction method | |
CN105513055A (en) | Method and apparatus for segmenting tissue in CTA image | |
CN116977726A (en) | Semi-automatic labeling method for dense focus of fundus image | |
CN115147359B (en) | Lung lobe segmentation network model training method and device, electronic equipment and storage medium | |
Pan et al. | Automatic annotation of liver computed tomography images based on a vessel‐skeletonization method | |
Wu et al. | Head CT Image Segmentation and Three‐Dimensional Reconstruction Technology Based on Human Anatomy |
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 |