Method for realizing curve smoothing of original handwriting
An implementation method and original handwriting technology, applied in the generation of 2D images, input/output process of data processing, instruments, etc., can solve the problems of large data storage and slow drawing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0034] Obtain the original sampling points of the stylus as s1, s2, s3...sn, the sampling point s1 is expressed as s1(x1, y1, q1), x1 is the abscissa of the current sampling point, y1 is the ordinate of the current sampling point, q1 is the pressure value of the current sampling point, and sn is expressed as sn(xn,yn,qn) according to this rule (such as figure 2 shown).
[0035] 1) After smooth fitting of s1, s2, s3...sn, the smoothed fitting points p1, p2, p3...pn are obtained, and pn is expressed as (xn, yn, qn) (such as image 3 shown).
[0036] 2) According to the pen width calculation formula w=kq, w is the pen width, k is the preset pen width constant, and q is the pressure value. Through calculation, the pen width w1, w2, w3...wn of each fitting point of p1, p2, p3...pn can be obtained.
[0037] 3) Calculate the midpoint p23 of the two fitting points of p2 and p3, x23 = (x2 + x3) / 2, y23 = (y2 + y3) / 2, q23 = (q2 + q3) / 2, p23(x23, y23 , q23) (eg Figure 4 shown)...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


