Curve erasing method and system
A curve and curve drawing technology, applied in the field of image processing, can solve problems such as large amount of calculation, long time, poor user experience, etc., and achieve the effect of small amount of calculation, fast erasing speed, and accurate erasing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0081] Please refer to figure 2 as well as image 3 , Embodiment 1 of the present invention is:
[0082] A curve erasing method, comprising:
[0083] S1: Obtain the coordinates of all points on the curve in an orderly manner according to the curve drawing process to form the first set; specifically, obtain the coordinates of all points on the curve in an orderly manner according to the order of curve drawing through the touchesmove event;
[0084] S2: Calculate the rectangle formed by two adjacent points in the first set, and all the calculated rectangles form the second set; specifically, the calculation of the rectangle formed by two adjacent points in the first set includes: S21: Sequentially compare the rectangles in the first set The abscissa size of the adjacent two points, the smaller abscissa mark is used as the abscissa rx of the upper left corner of the rectangle corresponding to the adjacent two points; The small ordinate is marked as the ordinate ry of the uppe...
specific example
[0090] (1) When drawing a curve on the electronic canvas in the device, the coordinates of all points on the curve are obtained through the response touchesmove event of the device to form an ordered set C1;
[0091] (2) Then obtain the points p1, p2, p3...pn in the set C1 in the order of drawing;
[0092] (3) Calculate the rectangle R formed by two adjacent points (pn-1, pn), specifically: compare the size of pn-1x and pnx, and assign the smaller value to rx as the abscissa of the upper left corner of the rectangle R ;Compare the size of pn-1y and pny, take the smaller value and assign it to ry, as the vertical coordinate of the upper left corner of the rectangle R; subtract pny from pn-1y to get dy, take the absolute value of dy and assign it to rw, as the length of the rectangle R; -1x minus pnx to get dx, take the absolute value of dx and assign it to rh as the width of rectangle R;
[0093] (4) Put all the calculated rectangles R (rx, ry, rw, rh) into the set C2 in order...
Embodiment 2
[0098] Please refer to Figure 5 , the second embodiment of the present invention is:
[0099] A system that cooperates with the curve erasing method of the first embodiment above includes:
[0100] The first acquisition module 1 is used to sequentially acquire the coordinates of all points on the curve according to the curve drawing process to form the first set; specifically, orderly acquire the coordinates of all points on the curve according to the order of curve drawing through the touchesmove event ;
[0101] The abscissa calculation module 21 is used to compare the abscissa size of adjacent two points in the first set in turn, and use the smaller abscissa mark as the abscissa rx of the upper left corner of the rectangle corresponding to the adjacent two points; the ordinate calculation Module 22, for comparing the size of the ordinates of the two adjacent points in turn, using the smaller ordinate mark as the ordinate ry of the upper left corner of the rectangle; the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com