Movatterモバイル変換


[0]ホーム

URL:


CN110570930B - Medical image sketching method and system based on tablet personal computer - Google Patents

Medical image sketching method and system based on tablet personal computer
Download PDF

Info

Publication number
CN110570930B
CN110570930BCN201910858072.2ACN201910858072ACN110570930BCN 110570930 BCN110570930 BCN 110570930BCN 201910858072 ACN201910858072 ACN 201910858072ACN 110570930 BCN110570930 BCN 110570930B
Authority
CN
China
Prior art keywords
erasing
finger
click
touch
starting point
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
CN201910858072.2A
Other languages
Chinese (zh)
Other versions
CN110570930A (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.)
Chengdu Lianxin Medical Technology Co ltd
Original Assignee
Chengdu Lianxin Medical Technology 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 Chengdu Lianxin Medical Technology Co ltdfiledCriticalChengdu Lianxin Medical Technology Co ltd
Priority to CN201910858072.2ApriorityCriticalpatent/CN110570930B/en
Publication of CN110570930ApublicationCriticalpatent/CN110570930A/en
Application grantedgrantedCritical
Publication of CN110570930BpublicationCriticalpatent/CN110570930B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a medical image sketching method and a system based on a tablet personal computer, which comprises the following steps: the touch screen acquires a click movement event; judging whether the click movement event is a touch pen click movement or a finger click movement; if the touch control pen is used for clicking and moving, entering a drawing mode: recording track points acquired in the moving process of the touch pen, sequentially connecting a click starting point and the acquired track points into a curve, and connecting an end point and a starting point of the track after the movement is stopped; if the finger is clicked to move, entering an erasing mode: drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle; and erasing the track points falling into the erasing circle. According to the invention, the touch characteristic of the touch screen of the tablet computer and the convenience of the touch pen in drawing operation are fully utilized, so that the drawing efficiency of a user can be greatly improved; the touch pen is used for drawing, and the finger is used for erasing and modifying the drawing, so that the touch pen is very close to the action of drawing on paper by human, and the operation is visual and convenient.

Description

Medical image sketching method and system based on tablet personal computer
Technical Field
The invention relates to the technical field of image sketching, in particular to a medical image sketching method and system based on a tablet personal computer.
Background
The existing TPS delineation system generally adopts a mouse to operate, a user clicks a delineation button through the mouse to perform delineation operation, and clicks a brush tool through the mouse to perform delineation erasing and modifying operation.
The defects of the sketching operation by using the mouse are as follows:
1. the function switching is carried out by using the mouse, so that the operation is complex;
2. the use of a mouse for drawing is unnatural and inconvenient for drawing and modifying;
3. not conforming to the touch operation habit of the tablet-type device.
Disclosure of Invention
Aiming at the defects in the problems, the invention provides a medical image sketching method and system based on a tablet personal computer.
The invention provides a medical image sketching method based on a tablet computer, which comprises the following steps:
the touch screen acquires a click movement event;
judging whether the click movement event is a touch pen click movement or a finger click movement;
if the touch control pen is used for clicking and moving, entering a drawing mode:
recording track points acquired in the moving process of the touch pen, sequentially connecting a click starting point and the acquired track points into a curve, and connecting an end point and a starting point of the track after the movement is stopped;
if the finger is clicked to move, entering an erasing mode:
drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle;
and erasing the track points falling into the erasing ring.
As a further improvement of the present invention, the determining that the click movement event is a stylus click movement or a finger click movement includes:
for the iPad:
if the touch screen detects a pressure value and the pressure value is greater than 0, judging that the touch pen clicks and moves; otherwise, judging that the finger clicks to move;
for Surface tablet:
if the touch screen detects that a type parameter is generated, judging that the touch pen clicks to move; otherwise, judging that the finger clicks to move.
As a further improvement of the invention, the radius of the erasing ring is 15 pixel values, and the erasing ring consists of 45 points which are uniformly distributed.
As a further improvement of the invention, after erasing the track points falling within the erase circle:
the end point and the start point of the delineation are connected by a dashed line.
A second objective of the present invention is to provide a medical image delineation method based on a tablet computer, which includes:
a drawing button and an erasing button are arranged on the touch screen;
judging to click the drawing button or the erasing button;
if the sketching button is clicked, entering a sketching mode:
recording track points acquired in the moving process of the touch pen, sequentially connecting a click starting point and the acquired track points into a curve, and connecting an end point and a starting point of the track after the movement is stopped;
if the erasing button is clicked, entering an erasing mode:
drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle;
and erasing the track points falling into the erasing ring.
As a further improvement of the present invention, the radius of the erasing ring is 15 pixel values, and the erasing ring is composed of 45 points which are uniformly distributed.
As a further improvement of the invention, after erasing the track points falling within the erase circle:
the end point and the start point of the delineation are connected by a dashed line.
A third objective of the present invention is to provide a medical image sketching system based on a tablet computer, which includes:
the touch screen is used for acquiring a click movement event;
the judging module is used for judging whether the click movement event is a touch pen click movement or a finger click movement; if the touch control pen is in click movement, entering a drawing mode; if the finger is clicked to move, entering an erasing mode;
the drawing module is used for recording track points acquired in the moving process of the touch control pen, sequentially connecting the click starting point and the acquired track points into a curve, and connecting the ending point and the starting point of the track after the movement is stopped;
the erasing module is used for drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle; and erasing the track points falling into the erasing ring, and connecting the end point and the starting point of the drawing by using a dotted line.
As a further improvement of the present invention, the determining module is configured to:
for iPad:
if the touch screen detects a pressure value and the pressure value is greater than 0, judging that the touch pen clicks and moves; otherwise, judging that the finger clicks to move;
for Surface tablet:
if the touch screen detects that a type parameter is generated, judging that the touch pen clicks and moves; otherwise, judging that the finger clicks to move.
A fourth objective of the present invention is to provide a medical image delineation system based on a tablet computer, comprising:
the touch screen is provided with a drawing button and an erasing button, and if the drawing button is clicked, a drawing mode is entered; if the erasing button is clicked, entering an erasing mode;
the drawing module is used for recording track points acquired in the moving process of the touch control pen, sequentially connecting the click starting point and the acquired track points into a curve, and connecting the ending point and the starting point of the track after the movement is stopped;
the erasing module is used for drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle; and erasing the track points falling into the erasing ring, and connecting the end point and the starting point of the drawing by using a dotted line.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, the touch characteristic of the touch screen of the tablet computer and the convenience of the touch pen in drawing operation are fully utilized, so that the drawing efficiency of a user can be greatly improved; the touch pen is used for drawing, and the finger is used for erasing and modifying the drawing, so that the touch pen is very close to the action of drawing on paper by human, and the operation is visual and convenient.
Drawings
Fig. 1 is a flowchart of a medical image delineation method based on a tablet computer according to an embodiment of the present invention;
fig. 2 is a flowchart of a medical image delineation method based on a tablet computer according to another embodiment of the present invention;
fig. 3 is a frame diagram of a tablet-based medical image delineation system according to an embodiment of the present invention;
fig. 4 is a block diagram of a tablet-based medical image delineation system according to another embodiment of the present invention.
In the figure:
1. a touch screen; 2. a judgment module; 3. a sketching module; 4. an erasing module;
1', a touch screen; 2', a sketching button; 3', an erase button; 4', a sketching module; 5', and an erasing module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The invention is described in further detail below with reference to the attached drawing figures:
as shown in fig. 1, the present invention provides a medical image sketching method based on a tablet computer, comprising:
s1, acquiring a click movement event by a touch screen of the tablet computer;
s2, judging that the click movement event is a touch pen click movement or a finger click movement; the specific judging method comprises the following steps:
for iPad:
if the touch screen detects a pressure value and the pressure value is greater than 0, judging that the touch pen clicks and moves; otherwise, judging that the finger clicks to move;
for Surface tablet:
if the touch screen detects that a type parameter is generated, judging that the touch pen clicks to move; otherwise, judging that the finger clicks to move;
s3, if the touch pen is clicked to move, entering a drawing mode;
s4, recording track points obtained in the moving process of the touch pen, sequentially connecting the click starting point and the obtained track points into a curve, and connecting the ending point and the starting point of the track after the movement is stopped, so as to form a closed sketching area;
s5, if the finger is clicked to move, entering an erasing mode;
s6, drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle; the method specifically comprises the following steps:
acquiring the current screen position P1(a, b) touched by a finger, and drawing an erasing ring by taking a point P1 as a circle center and 15 pixel values as a radius;
all the points on the erase ring can be found by the following formula. Assuming that P (x, y) is a point on a circle, and the connecting line of the point and the circle center P1(a, b) forms an included angle i with the connecting line of the axis;
the x coordinate of P (x, y) can then be found using the following equation:
x=a+15*Math.cos((i*Math.PI)/180),
the y coordinate of P (x, y) can be found by the following equation:
y=b+15*Math.sin((i*Math.PI)/180)。
for convenience and simplification of calculation, the invention only takes one point every 8 degrees, and calculates the points on the circles; i.e. the erasure ring consists of 45 dots which are evenly distributed.
S7, judging whether each point on the drawn curve is in the erasing ring; if so, erasing the trace point; and connecting the end point and the start point of the drawing by a dotted line, which indicates that the part needs to be drawn again.
As shown in fig. 2, the present invention further provides a medical image sketching method based on a tablet computer, including:
s1, a drawing button and an erasing button are arranged on the touch screen, and the touch screen acquires a click event;
s2, judging whether a drawing button is clicked or an erasing button is clicked;
s3, if the drawing button is clicked, entering a drawing mode:
s4, recording track points obtained in the moving process of the touch pen, sequentially connecting the click starting point and the obtained track points into a curve, and connecting the ending point and the starting point of the track after the movement is stopped, so that a closed delineation area is formed;
s5, if the erasing button is clicked, entering an erasing mode:
s6, drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle; the method specifically comprises the following steps:
acquiring a current screen position P1(a, b) touched by a finger, and drawing an erasing ring by taking a P1 point as a circle center and 15 pixel values as a radius;
all the points on the erase ring can be found by the following formula. Assuming that P (x, y) is a point on a circle, and the connecting line of the point and the circle center P1(a, b) forms an included angle i with the connecting line of the axis;
the x coordinate of P (x, y) can then be found using the following equation:
x=a+15*Math.cos((i*Math.PI)/180),
the y coordinate of P (x, y) can be found by the following equation:
y=b+15*Math.sin((i*Math.PI)/180)。
for convenience and simplification of calculation, the invention only takes one point every 8 degrees, and calculates the points on the circles; i.e. the erasure ring consists of 45 dots which are evenly distributed.
S7, judging whether each point on the drawn curve is in the erasing ring; if so, erasing the trace point; and connecting the end point and the start point of the drawing by a dotted line, which indicates that the part needs to be drawn again.
As shown in fig. 3, the present invention provides a medical image sketching system based on a tablet computer, comprising:
thetouch screen 1 is used for acquiring a click movement event;
the judgingmodule 2 is used for judging whether the click movement event is a touch pen click movement or a finger click movement; if the touch control pen is in click movement, entering a drawing mode; if the finger is clicked to move, entering an erasing mode; the specific judgment method comprises the following steps:
for the iPad:
if the touch screen detects a pressure sensing value and the pressure sensing value is greater than 0, the touch screen judges that the touch pen is clicked and moved; otherwise, judging that the finger clicks to move;
for Surface tablet:
if the touch screen detects that a type parameter is generated, judging that the touch pen clicks and moves; otherwise, judging that the finger clicks to move;
thedrawing module 3 is used for recording track points acquired in the moving process of the touch pen, sequentially connecting the click starting point and the acquired track points into a curve, and connecting the ending point and the starting point of the track after the movement is stopped, so that a closed drawing area is formed;
the erasingmodule 4 is used for drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle; judging whether each point on the drawn curve is in the erasing ring; if so, erasing the trace point; connecting the end point and the starting point of the drawing by using a dotted line to indicate that the part needs to be drawn again; the method for drawing the erasing ring specifically comprises the following steps:
acquiring a current screen position P1(a, b) touched by a finger, and drawing an erasing ring by taking a P1 point as a circle center and 15 pixel values as a radius;
all the points on the erase ring can be found by the following formula. Assuming that P (x, y) is a point on a circle, and the connecting line of the point and the circle center P1(a, b) forms an included angle i with the connecting line of the axis;
the x coordinate of P (x, y) can then be found using the following equation:
x=a+15*Math.cos((i*Math.PI)/180),
the y coordinate of P (x, y) can be found by the following equation:
y=b+15*Math.sin((i*Math.PI)/180)。
for convenience and simplification of calculation, the invention only takes one point every 8 degrees, and calculates the points on the circles; i.e. the erasure ring consists of 45 dots which are evenly distributed.
As shown in fig. 4, the present invention further provides a medical image sketching system based on a tablet computer, including:
the touch screen 1 ' is provided with a delineation button 2 ' and an erasing button 3 ', and if the delineation button is clicked, the touch screen enters a delineation mode; if the erasing button is clicked, entering an erasing mode;
the drawing module 4' is used for recording track points acquired in the moving process of the touch pen, sequentially connecting the click starting point and the acquired track points into a curve, and connecting the ending point and the starting point of the track after the movement is stopped, so that a closed drawing area is formed;
the erasing module 5' is used for drawing an erasing ring by taking the current screen position touched by the finger as the center of a circle; judging whether each point on the drawn curve is in the erasing ring; if so, erasing the trace point; connecting the end point and the starting point of the drawing by using a dotted line to indicate that the part needs to be drawn again; the method for drawing the erasing ring specifically comprises the following steps:
acquiring a current screen position P1(a, b) touched by a finger, and drawing an erasing ring by taking a P1 point as a circle center and 15 pixel values as a radius;
all the points on the erase ring can be found by the following formula. Assuming that P (x, y) is a point on a circle, and the connecting line of the point and the circle center P1(a, b) forms an included angle i with the connecting line of the axis;
the x coordinate of P (x, y) can then be found using the following equation:
x=a+15*Math.cos((i*Math.PI)/180),
the y coordinate of P (x, y) can be found by the following equation:
y=b+15*Math.sin((i*Math.PI)/180)。
for convenience and simplification of calculation, the invention only takes one point every 8 degrees, and calculates the points on the circles; i.e. the erasure ring consists of 45 dots which are evenly distributed.
The invention also provides a tablet computer, which comprises the medical image delineation system shown in fig. 3 or fig. 4, and can realize the medical image delineation method shown in fig. 1 or fig. 2.
The invention has the advantages that:
according to the invention, the touch characteristic of the touch screen of the tablet computer and the convenience of the touch pen in drawing operation are fully utilized, so that the drawing efficiency of a user can be greatly improved; the touch pen is used for drawing, and the finger is used for erasing and modifying the drawing, so that the touch pen is very close to the action of drawing on paper by human, and the operation is visual and convenient.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

CN201910858072.2A2019-09-112019-09-11Medical image sketching method and system based on tablet personal computerActiveCN110570930B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910858072.2ACN110570930B (en)2019-09-112019-09-11Medical image sketching method and system based on tablet personal computer

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910858072.2ACN110570930B (en)2019-09-112019-09-11Medical image sketching method and system based on tablet personal computer

Publications (2)

Publication NumberPublication Date
CN110570930A CN110570930A (en)2019-12-13
CN110570930Btrue CN110570930B (en)2022-07-12

Family

ID=68779088

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910858072.2AActiveCN110570930B (en)2019-09-112019-09-11Medical image sketching method and system based on tablet personal computer

Country Status (1)

CountryLink
CN (1)CN110570930B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111724402B (en)*2020-06-182021-07-20北京小白世纪网络科技有限公司Medical image labeling method, system and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102855079A (en)*2011-05-242013-01-02Lg电子株式会社Mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20140267078A1 (en)*2013-03-152014-09-18Adobe Systems IncorporatedInput Differentiation for Touch Computing Devices

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102855079A (en)*2011-05-242013-01-02Lg电子株式会社Mobile terminal

Also Published As

Publication numberPublication date
CN110570930A (en)2019-12-13

Similar Documents

PublicationPublication DateTitle
CN108052202B (en)3D interaction method and device, computer equipment and storage medium
CN109407954B (en)Writing track erasing method and system
US10579216B2 (en)Applications for multi-touch input detection
US9207858B2 (en)Method and apparatus for drawing and erasing calligraphic ink objects on a display surface
CN103164022B (en)Many fingers touch method and device, portable terminal
TWI480768B (en)Display method and system with adjustment function
CN109445676A (en)The method of the handwritten stroke information of user's input is deleted on handwriting equipment
CN106843650B (en)Touch identification method and system of touch screen all-in-one machine
JP2015001978A (en)Method of recognizing motion using gripped object, and device and system therefor
CN105210012A (en) Virtual tools for use with touch-sensitive surfaces
CN104345948A (en)Implementation method and implementation device for original handwriting as well as electronic equipment
WO2018018624A1 (en)Gesture input method for wearable device, and wearable device
CN107656633A (en)Intelligent pen, control method, device, equipment and storage medium of intelligent pen
CN113515228B (en) A virtual ruler display method and related equipment
CN110570930B (en)Medical image sketching method and system based on tablet personal computer
CN103927024A (en)Pen nib and body track based command expanding method in pen-based user interface
CN110134261B (en)Electronic pen capable of restoring real writing
CN119292470A (en) Intelligent mouse auxiliary control method, device, electronic device and storage medium
CN106547339B (en)Control method and device of computer equipment
CN113362418A (en)Curve smoothing method, system, equipment and storage medium based on Bezier curve
Tian et al.An exploration of pen tail gestures for interactions
CN109358799A (en) A method for adding handwritten annotation information input by a user on a handwriting device
CN111580666B (en) Device control method, electronic device, device control system and storage medium
CN105468200A (en)Method and device for fingerprint touch control and fingerprint equipment
Mishra et al.Virtual mouse input control using hand gestures

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp