TWI264674B - A handwriting pen capable of simulating different strokes - Google Patents
A handwriting pen capable of simulating different strokes Download PDFInfo
- Publication number
- TWI264674B TWI264674B TW92125437A TW92125437A TWI264674B TW I264674 B TWI264674 B TW I264674B TW 92125437 A TW92125437 A TW 92125437A TW 92125437 A TW92125437 A TW 92125437A TW I264674 B TWI264674 B TW I264674B
- Authority
- TW
- Taiwan
- Prior art keywords
- parameter
- data
- main
- formula
- generation module
- Prior art date
Links
- 238000004088 simulation Methods 0.000 claims abstract description 58
- 239000013598 vector Substances 0.000 claims abstract description 42
- 230000008054 signal transmission Effects 0.000 claims abstract description 8
- 238000009877 rendering Methods 0.000 claims description 54
- 238000000034 method Methods 0.000 claims description 37
- 241001422033 Thestylus Species 0.000 claims description 34
- 238000006243 chemical reaction Methods 0.000 claims description 15
- 239000000463 material Substances 0.000 claims description 11
- 238000002156 mixing Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000004519 manufacturing process Methods 0.000 claims 3
- 238000004043 dyeing Methods 0.000 claims 2
- 239000011257 shell material Substances 0.000 claims 2
- 239000000126 substance Substances 0.000 claims 2
- OVSKIKFHRZPJSS-UHFFFAOYSA-N 2,4-D Chemical compound OC(=O)COC1=CC=C(Cl)C=C1Cl OVSKIKFHRZPJSS-UHFFFAOYSA-N 0.000 claims 1
- 241000317558 Anthocharis cardamines Species 0.000 claims 1
- 241000208340 Araliaceae Species 0.000 claims 1
- 101100334117 Caenorhabditis elegans fah-1 gene Proteins 0.000 claims 1
- 241000255925 Diptera Species 0.000 claims 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 1
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 1
- 210000004556 brain Anatomy 0.000 claims 1
- 230000001815 facial effect Effects 0.000 claims 1
- 235000008434 ginseng Nutrition 0.000 claims 1
- 230000001629 suppression Effects 0.000 claims 1
- 239000002023 wood Substances 0.000 claims 1
- 230000009466 transformation Effects 0.000 abstract 2
- 230000001131 transforming effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 238000001816 cooling Methods 0.000 description 1
- 230000005674 electromagnetic induction Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
1264674 玖、發明說明: 【發明所屬之技術領域】 本發明係關於一種手寫筆,尤其係關於一種可 模擬不同筆觸之手寫筆。 【先前技術】 近幾年來,手寫裝置已經成為愈來愈普遍的輸入 裝置。一般而言,手寫裝置係包含一個手寫板以及 一支手寫筆,使用者可以利用手寫筆在手寫板上書 寫,以取代利用鍵盤輸入資料的方式。常見的手寫 裝置包含Tablet PC,其具有一平板手寫液晶螢幕 以及一電磁感應式觸控筆(有線/無線),以及 WACOM數位版、繪圖版,其包含感應式繪圖板(數 位版)以及(有線/無線)感應筆。除此之外,使 用者必須安裝辨識軟體,例如Photoshop等繪圖軟 體,於電腦中,以用來辨識使用者利用手寫裝置所 輸入的文字。 辨識軟體必須辨識出手寫筆在手寫板上之位 置,即座標位置(X,Y )以及使用者書寫的力道, 即壓力值Z,才可以模擬出不同風格的筆觸。然而, 7 1264674 由於所獲得的資料有限,因此,目前的繪圖軟體, 例如 Photoshop、CorelDraw、Painter 等,在模擬 筆觸之功能上仍有很大的不足之處。 【發明内容】 因此,本發明之主要目的在於提供一種可模擬 不同筆觸之手寫筆,其可以根據使用者之書寫力道 模擬出不同的筆觸風格,使得繪圖軟體之模擬筆觸 的功能更趨完備。 本發明之手寫筆包含一筆尖;一位置感測器, 用來感測筆尖在^一手寫板上之主要位置座標,以產 生一主要位置資料;一壓力感測器,用來感測筆尖 施加於手寫板上之壓力,以產生一壓力值。手寫筆 係經由一訊號傳輸線連接於一主系統,並且經由訊 號傳輸線,將主要位置資料以及壓力值傳送至主系 統。主系統具有一筆觸模擬裝置,用來處理主要位 置資料以及壓力值,以模擬出不同之筆觸。筆觸模 擬裝置包含一壓力-半徑轉換模組’用來接收壓力 值,並且將壓力值轉換成一半徑資料;一正向量產 生模組,用來接收主要位置資料,並且根據主要位 8 12646741264674 发明, 发明 发明 发明: The present invention relates to a stylus, and more particularly to a stylus that can simulate different strokes. [Prior Art] In recent years, handwriting devices have become an increasingly popular input device. In general, the handwriting device includes a tablet and a stylus, and the user can use the stylus to write on the tablet instead of using the keyboard to input data. A common handwriting device includes a Tablet PC with a flat-panel handwritten LCD screen and an electromagnetic induction stylus (wired/wireless), as well as a WACOM digital version, a drawing version, which includes an inductive tablet (digital version) and (wired) /Wireless) sensor pen. In addition, the user must install recognition software, such as Photoshop and other graphics software, in the computer to identify the text entered by the user using the handwriting device. The recognition software must recognize the position of the stylus on the tablet, that is, the coordinate position (X, Y) and the force written by the user, that is, the pressure value Z, to simulate different styles of strokes. However, 7 1264674 due to the limited data available, current drawing software, such as Photoshop, CorelDraw, Painter, etc., still have significant shortcomings in the function of simulating strokes. SUMMARY OF THE INVENTION Accordingly, it is a primary object of the present invention to provide a stylus that can simulate different strokes, which can simulate different stroke styles according to the user's writing force, so that the function of the analog stroke of the drawing software is more complete. The stylus of the present invention comprises a tip; a position sensor for sensing the main position coordinates of the pen tip on the tablet to generate a main position data; and a pressure sensor for sensing the tip application The pressure on the tablet to generate a pressure value. The stylus is connected to a host system via a signal transmission line, and the main location data and pressure values are transmitted to the host system via the signal transmission line. The main system has a touch analog device that processes the main position data and pressure values to simulate different strokes. The brush touch simulation device includes a pressure-radius conversion module for receiving the pressure value and converting the pressure value into a radius data; a positive vector generation module for receiving the main position data, and according to the main bit 8 1264674
置資料,產生一正向量資料;一疏密位置產生模 組,連接於壓力-半徑轉換模組與正向量產生模 組,用來根據半徑資料與正向量資料,以在主要位 置資料之正向量方向上,產生複數個疏密位置資 料,用來表示複數個疏密位置座標;以及一筆觸產 生模組,用來根據筆尖在不同時間之主要位置資 料,畫出一主線條,並且根據疏密位置資料,晝出 複數條疏密線條,其中每一主要位置資料係對應於 複數個疏密位置資料。 【實施方式】The data is generated to generate a positive vector data; a sparse position generating module is connected to the pressure-radius conversion module and the positive vector generating module for using the positive vector in the main position data according to the radius data and the positive vector data In the direction, a plurality of sparse position data are generated to represent a plurality of sparse position coordinates; and a touch generation module is used to draw a main line according to the main position data of the pen tip at different times, and according to the density The location data is extracted from a plurality of sparse lines, wherein each of the main location data corresponds to a plurality of sparse location data. [Embodiment]
請參考第1圖。第1圖為本發明之手寫筆10之 示意圖。手寫筆10係搭配一手寫板12來使用。如 圖所示,手寫筆10包含一筆尖11,而使用者利用 手寫筆1 0在手寫板1 2上所完成之筆劃1 4係由複 數個圓1 6所構成,而圓16之圓心係以0表示,而 其半徑則為@。 請參考第2圖。第2圖為圓16之半徑奴與壓力 值Ζ之關係圖。如圖所示,當使用者書寫力道愈大 時,即手寫筆10之壓力值Ζ愈大時,圓16之半徑奴 9 1264674 就會愈大。換句話說,根據不同的壓力值z,手寫 筆1 0會在不同之時間點產生大小不同之圓1 6於手 寫板1 2上,以形成筆觸1 4。其中,—^係預設之 最大半徑資料。 請參考第3圖。第3圖為本發明之手寫筆10連 接於主系統2 1之示意圖。手寫筆10包含一位置感 測器1 8,以及一壓力感測器20。位置感測器1 8係 用來感測筆尖11在手寫板1 2上之主要位置座標 G,以產生一主要位置資料。主要位置座標β即係 手寫筆1 0在時間&時所產生之圓1 6之圓心,其可 以表示為座標(尤,巧)。壓力感測器20係用來感測筆 尖11施加於手寫板12上之壓力,以產生一壓力值 Ζ 〇 手寫筆1 0係經由一訊號傳輸線(未顯示)連接 於主系統2 1,並且經由訊號傳輸線,將主要位置 資料以及壓力值傳送至主系統2 1。主系統具有一 筆觸模擬裝置23,例如,繪圖軟體或辨識軟體, 用來處理主要位置資料以及壓力值,以模擬出不同 之筆觸。 10 1264674Please refer to Figure 1. Fig. 1 is a schematic view of the stylus pen 10 of the present invention. The stylus 10 is used in conjunction with a tablet 12. As shown, the stylus 10 includes a pointed tip 11, and the strokes 14 that the user completes on the tablet 1 2 using the stylus 10 are composed of a plurality of circles 16 and the center of the circle 16 is 0 means, and its radius is @. Please refer to Figure 2. Figure 2 is a graph of the relationship between the radius slave and the pressure value of circle 16. As shown, the greater the user's writing strength, that is, the greater the pressure value of the stylus 10, the larger the radius slave 1 1264674 of the circle 16. In other words, according to different pressure values z, the stylus 10 will produce a circle 16 of different sizes on the handwriting board 1 2 at different points in time to form the stroke 14 . Among them, -^ is the preset maximum radius data. Please refer to Figure 3. Fig. 3 is a schematic view showing the stylus 10 of the present invention connected to the main system 21. The stylus 10 includes a position sensor 108 and a pressure sensor 20. The position sensor 18 is used to sense the main position coordinate G of the pen tip 11 on the tablet 1 2 to generate a main position data. The main position coordinate β is the center of the circle 16 generated by the stylus 10 at time & it can be expressed as a coordinate (especially, clever). The pressure sensor 20 is used to sense the pressure applied by the pen tip 11 to the tablet 12 to generate a pressure value. The stylus 10 is connected to the main system 2 1 via a signal transmission line (not shown) and via The signal transmission line transmits the main position data and the pressure value to the main system 2 1 . The main system has a touch simulation device 23, such as a drawing software or recognition software, for processing main position data and pressure values to simulate different strokes. 10 1264674
筆觸模擬裝置23包含一壓力-半徑轉招 22,一正向量產生模組24,一疏密位置J 26,以及一筆觸產生模組28。壓力-半徑! 2 2則係用來接收壓力值Z,並且利用一壓 轉換公式,將壓力值Z轉換成半徑資料α。 徑轉換公式係根據第2圖所示之半徑π與 之關係圖所取得的,其係表示為: w ~ f(z)= (Μαχω) 其中 ^/(0) = 0 /(1) = Μαχυτ 0<Ζ<1 正向量產生模組24係用來接收主要 料’並且根據主要位置資料,產生一正向 正向量產生模組24首先根據主要位置資3 筆尖1 1位於主要位置座標G上之瞬間方冷 算公式係表示為: V. -3 \°i ~ °i \ I ; 其中F/表示筆尖1 l在時間^之瞬間方向The stroke simulation device 23 includes a pressure-radius transition 22, a positive vector generation module 24, a sparse position J 26, and a touch trigger generation module 28. Pressure - radius! 2 2 is used to receive the pressure value Z, and uses a pressure conversion formula to convert the pressure value Z into a radius data α. The path conversion formula is obtained according to the relationship between the radius π and the graph shown in Fig. 2, which is expressed as: w ~ f(z) = (Μαχω) where ^/(0) = 0 /(1) = Μαχυτ 0<Ζ<1 positive vector generation module 24 is used to receive the main material' and generate a positive positive vector generation module 24 according to the main position data. First, according to the main position, the nib 1 1 is located on the main position coordinate G. The instantaneous square cooling formula is expressed as: V. -3 \°i ~ °i \ I ; where F/ indicates the tip of the nib 1 l at the moment of time ^
:模組 i生模組 專換模組 力-半徑 壓力-半 壓力值Z 位置資 量資料。 (斗以取得 J ,其計 11 1264674 筆尖11在時間&之主要位置座標,而G-1表示筆尖 > 1 1在時間(-1之主要位置座標。假設Vi = (x,y),則 正向量資料M=(U)。 疏密位置產生模組26係連接於壓力-半徑轉換 模組22與正向量產生模組24,用來根據半徑資料 … 奴與正向量資料Μ,以在主要位置座標Q之正向量 、 方向上,產生複數個疏密位置資料,以用來表示複 數個疏密位置座標〜。 請參考第4圖。第4圖顯示複數個疏密位置座 標~。疏密位置產生模組26係利用一疏密位置產 生公式來產生複數個疏密位置資料~。此公式係表 示為:: Module i-generation module Replacement module Force-radius Pressure-half pressure value Z Positional resource data. (Double to get J, its 11 11264674 nib 11 at the time & main position coordinates, and G-1 for nib > 1 1 at time (-1 main position coordinates. Suppose Vi = (x, y), Then, the positive vector data M=(U). The density position generating module 26 is connected to the pressure-radius conversion module 22 and the positive vector generation module 24 for using the radius data... In the positive vector and direction of the main position coordinate Q, a plurality of sparse position data are generated to represent a plurality of sparse position coordinates ~. Please refer to Fig. 4. Fig. 4 shows a plurality of sparse position coordinates ~. The dense position generating module 26 uses a sparse position generating formula to generate a plurality of sparse position data. This formula is expressed as:
b 〇i+m(l.iyNi η 其中,Oi表示筆尖11在時間&之主要位置座標, 极為半徑資料,Ni為正向量資料,η為一系統預設 值,用來決定疏密位置資料之個數,而bi,j表示 第i個主要位置座標之第j個疏密位置座標。其 中,手寫筆1 0所繪出之筆劃1 4係包含m個主要位 置資料,而每一個主要位置資料係對應於Μ固疏密 12 1264674 位置資料。如圖所示,主要位置座標係對應於複 數個疏密位置座標bi,j。 請參考第5圖。第5圖顯示主線條[以及疏密線 條&〜。筆觸產生模組28係用來根據筆尖11在不 同時間1、&、~+1之主要位置座標G、G+1 ’畫 出主線條1,並且根據疏密位置座標^, 畫出疏密線條Zl〜〖°。如圖所示,每一主要位置座標 係對應於1 0個疏密位置座標。 請參考第6圖。第6圖為筆觸產生模組28之筆 觸產生方法30之流程圖。筆觸產生模組28係利用 筆觸產生方法3 0來產生主線條Z以及疏密線條 心〜。〇假設主線條Μ系由m個主要座標位置所組成, 而每一主要位置座標係對應於Μ固疏密位置座標。 如第5圖所示,在此例中,w = 3,而” =1 0 〇 在步驟32中,筆觸產生模組28會計算第Μ固與 第/ + 1個位置座標之切線向量C與C+i,其公式為: |7: ;其中匕表示第/ + 1個位置座標,而巧b 〇i+m(l.iyNi η where Oi represents the coordinates of the main position of the nib 11 at time & extreme radius data, Ni is a positive vector data, and η is a system preset value used to determine the density position The number of data, and bi, j represents the jth sparse position coordinate of the i-th main position coordinate. Among them, the strokes drawn by the stylus 10 are composed of m main position data, and each main The position data corresponds to the location information of the tamping and sparse 12 1264674. As shown in the figure, the main position coordinates correspond to a plurality of sparse position coordinates bi, j. Please refer to Figure 5. Figure 5 shows the main line [and The dense line &~. The stroke generation module 28 is used to draw the main line 1 according to the main position coordinates G, G+1 ' of the nib 1 at different time 1, &, ~ +1, and according to the density position coordinate ^, Draw the dense lines Zl~〖°. As shown in the figure, each major position coordinate corresponds to 10 sparse position coordinates. Please refer to Figure 6. Figure 6 is the stroke of the stroke generation module 28. A flowchart of the method 30 is generated. The stroke generation module 28 is produced by using the stroke generation method 30. The main line Z and the dense line heart ~. 〇 Assume that the main line Μ is composed of m main coordinate positions, and each main position coordinate system corresponds to the tamping density position coordinates. As shown in Fig. 5, here In the example, w = 3, and " =1 0 〇 In step 32, the stroke generation module 28 calculates the tangent vectors C and C+i of the third solid and the / + 1 position coordinates, the formula is: | 7: ; where 匕 indicates the / + 1 position coordinates, and Qiao
[a e [0?1J 表示第/個位置座標。 13 1264674 在步驟3 4中,筆觸產生模組2 8會利用混合函數 (Blending functions)以計算第〖_個與第i + 1個位置 座標間之内插值,此混合函數係表示為: hx(s)=2s3 -3s2+1 h2(s)=-2s3 ^-Ss2 < h3(s) = s3 -2s2 +s h4(s)= s3 -s2 0 < ^ < 1 在步驟36中,筆觸產生模組28會獲得一基數曲 ·% 線(Cardinal Splines Curve),其公式為: 5 =月 *Λ3+ί·+1*/ζ4。[a e [0?1J represents the / position coordinate. 13 1264674 In step 3 4, the stroke generation module 28 uses the Blending functions to calculate the interpolated value between the first and the i + 1 position coordinates. The mixed function is expressed as: hx( s)=2s3 -3s2+1 h2(s)=-2s3 ^-Ss2 < h3(s) = s3 -2s2 +s h4(s)= s3 -s2 0 < ^ < 1 In step 36, The stroke generation module 28 obtains a Cardinal Splines Curve having the formula: 5 = month * Λ 3 + ί · +1 * / ζ 4.
最後,在步驟3 8中,筆觸產生模組28會計算出 第/個與第/ + 1個位置座標之間之中間座標位置,並 且將所有的座標位置連接起來,以產生一平順之曲 線。此中間座標位置之計算公式為: P = S^h*C ;其中 s3 飞- I "2 -2 1 1 ' S = S1 C = h = - 3 3 - 2 -1 S1 0 0 1 0 _1 _ _ 1 0 0 0_ 請參考第7圖。第7圖為筆觸產生模組28所產 生之筆觸之示意圖。在筆觸產生模組28利用筆觸 14 1264674 產生方法3 0連接所有主要位置座標以畫出主線 條,並且連接所有疏密位置座標以晝出所有的疏密 線條之後,就可以產生如第7圖所示之筆觸。 此外,筆觸產生模組2 8另包含各種不同的參數 產生模組,用來產生不同的參數設定,以模擬出不 同的筆觸風格。 請參考第8圖。第8圖筆觸產生模組28之示意 圖。筆觸產生模組28包含一顏色參數產生模組 40、一速率參數產生模組42、一速率-顏色參數產 生模組44、一深淺參數產生模組46、一渲染參數 產生模組48、一間斷參數產生模組50,以及一筆 觸顏色參數產生模組52。 顏色參數產生模組40係用來藉由一亂數產生 模組(未顯示)來產生對應於主要位置資料與疏密 位置資料之顏色參數,以決定主線條1以及疏密線 條^〜Zl°上之各位置點之顏色。顏色參數產生模組係 利用一顏色參數產生公式來產生顏色參數Λ。此公 式係表示為: 15 Γ1264674 ‘,」 丨科7 ;::忠_更 ρ丨 + |raW〇|%(广2 - a + 1) 其中 :其中A與仏係系統預設值。Finally, in step 38, the stroke generation module 28 calculates the intermediate coordinate position between the //th and +1 position coordinates, and joins all of the coordinate positions to produce a smooth curve. The calculation of this intermediate coordinate position is: P = S^h*C; where s3 is flying - I "2 -2 1 1 ' S = S1 C = h = - 3 3 - 2 -1 S1 0 0 1 0 _1 _ _ 1 0 0 0_ Please refer to Figure 7. Figure 7 is a schematic illustration of the strokes produced by the brushstroke generating module 28. In the stroke generation module 28, the strokes 14 1264674 generation method 30 are used to connect all the main position coordinates to draw the main lines, and all the dense position coordinates are connected to extract all the dense lines, and then the image is generated as shown in FIG. Show the strokes. In addition, the stroke generation module 28 further includes various parameter generation modules for generating different parameter settings to simulate different stroke styles. Please refer to Figure 8. Figure 8 is a schematic representation of the stroke generation module 28. The stroke generation module 28 includes a color parameter generation module 40, a rate parameter generation module 42, a rate-color parameter generation module 44, a depth parameter generation module 46, a rendering parameter generation module 48, and a break. The parameter generation module 50 and the touch color parameter generation module 52. The color parameter generating module 40 is configured to generate a color parameter corresponding to the main position data and the dense position data by a random number generating module (not shown) to determine the main line 1 and the dense line ^~Zl° The color of each point on the top. The color parameter generation module generates a color parameter using a color parameter generation formula. This formula is expressed as: 15 Γ1264674 ‘,” 丨科 7 ;::忠_更 ρ丨 + |raW〇|%(广2 - a + 1) where : where A and the system default.
Pi ^ pt ^ Pi ΙΑ,Pi e [0,255] -般而言’ Θ與广2之值會設定得較為接近’以免 落差過大 速率參數產生模組42係用來產生對應於主要 位置資料與疏密位置資料之速率參數,以表示手寫 筆10在每一位置點上之瞬間速率。速率參數產生 模組42係利用一速率參數產生公式來產生速率參 數Ζ。此公式係表示為: F 二/(V) ^max_3VmaxV + 2v 其中v表示手寫筆10在主要位置座標之瞬間速 率,而vmax表示一預設之最大速率值。 當書寫時,因為瞬間速率的不同而使得筆墨有 不同濃淡的表現。一般而言,瞬間速率愈大時,筆 墨的顏色會愈淡。因此,速率-顏色參數產生模組 44係用來根據顏色參數以及速率參數,產生一速 率-顏色參數,以呈現上述瞬間速率與筆墨濃淡之 關係。速率-顏色參數產生模組4 4係利用--速率_ 16 1264674 公 此 ο Λ 數 參 色 顏 率 IPL· 生 產 來 式 公 生 產 數 參 色 顏 為 示 表 係 式Pi ^ pt ^ Pi ΙΑ, Pi e [0,255] - Generally speaking, the values of Θ and 广2 will be set closer to each other to avoid excessive drop rate parameter generation module 42 is used to generate data corresponding to the main position and density The rate parameter of the location data to indicate the instantaneous rate of the stylus 10 at each location. The rate parameter generation module 42 uses a rate parameter generation formula to generate a rate parameter Ζ. This formula is expressed as: F 2 / (V) ^ max_3VmaxV + 2v where v represents the instantaneous rate of the stylus 10 at the main position coordinates, and vmax represents a preset maximum rate value. When writing, the pen and ink have different shades because of the different instantaneous speeds. In general, the higher the instantaneous rate, the lighter the color of the ink. Therefore, the rate-color parameter generation module 44 is operative to generate a rate-color parameter based on the color parameter and the rate parameter to present the relationship between the instantaneous rate and the ink level. Rate-color parameter generation module 4 4 uses - rate _ 16 1264674 ο Λ 参 IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP IP
Λ II ’A ljl z 值 力 壓 據 根 來 用 係 6 4 組 模 生 L St 數 ο 參 淺 深 生對應於主要位置資料與疏密位置資料之深淺參 數。毛筆或水彩筆等軟性筆在書寫或繪晝時,通常 會有愈描愈淡的現象。因此,主要位置資料會具有 最大之深淺參數,而距離主要位置資料愈遠之疏密 位置資料則具有愈小之深淺參數,使得主線條1最 深,而距離主線條1愈遠的疏密線條則愈淺,以呈 現出濃度變淡的情況。 一般而言,當壓力愈小時,也就是書寫的施力 愈小時,筆觸濃度變淡的情況會愈明顯,而當壓力 愈大時,筆觸濃度變淡的情況則愈不明顯。例如, 當用力書寫時,筆劃的濃度通常會特別濃且均勻, 即幾乎沒有變淡的情況發生。因此,如上所述,深 淺參數產生模組46係根據壓力值Z來產生深淺參 數。 此外,深淺參數產生模組46係利用一深淺參數 17 1264674 產生公式來產生深淺參數2。此公式係表示為: -Λ)(ι_π)+Λ);其中α係一個由使用者定義之常 數,而Ζ為壓力值,Α為深淺參數的預設值。 由於,當書寫的施力很大時,筆劃的濃度會特 別濃,且會非常均勻,幾乎沒有變淡的情況發生, 因此,在上述公式中,當壓力值大於一預定值時, 深淺參數會係一個常數。 一般而言,毛筆與水彩筆在書寫與繪晝時,都 會呈現渲染或擴張的現象,因此,每一筆觸線條會 有不同的粗細程度。當筆尖停留的時間愈久,渲染 的程度就會愈大,而渲染參數產生模組48就是用 來模擬此渲染現象。 渲染參數產生模組48係用來根據主要位置資 料以及半徑資料奴產生複數個渲染位置資料,以表 示複數個渲染位置座標。 請參考第9圖。第9圖係渲染位置座標%之示意 圖。每一主要位置資料係對應於複數個渲染位置資 料,即每一個主要位置座標G係對應於複數個渲染 位置座標%。渲染參數產生模組48包含一渲染參數 18 1264674 d,用來決定每兩個渲染位置座標%之間之距離, 並且利用一渲染位置產生公式來產生渲染位置座 標,以使得距離主要位置座標α愈遠之渲染位置座 標%之間之距離愈小。此公式係表示為: ^- = DV2q dt ; 其中此公式係利用有限差分法(finite difference m e t h o d )來展開如下:Λ II ’A ljl z value force pressure is used to generate the L St number of the group 4 ο 浅 浅 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深 深When a soft pen such as a brush or a watercolor pen is written or painted, it usually has a lighter appearance. Therefore, the main position data will have the largest depth parameter, and the farther the distance data from the main position data has the smaller depth parameter, so that the main line 1 is the deepest, and the dense line from the main line 1 is farther. The lighter, the lower the concentration. In general, the lower the pressure, that is, the less the writing force is applied, the more noticeable the pen-feet concentration becomes, and the smaller the pressure, the less noticeable the pen-feet concentration becomes. For example, when writing with force, the concentration of the stroke is usually particularly thick and uniform, that is, almost no lightening occurs. Therefore, as described above, the deep parameter generation module 46 generates the shallow and shallow parameters based on the pressure value Z. In addition, the depth parameter generation module 46 generates a formula for generating the depth parameter 2 by using a shallow parameter 17 1264674. This formula is expressed as: -Λ)(ι_π)+Λ); where α is a constant defined by the user, and Ζ is the pressure value, and Α is the preset value of the depth parameter. Because, when the writing force is large, the concentration of the stroke will be extremely thick, and it will be very uniform, and almost no lightening will occur. Therefore, in the above formula, when the pressure value is greater than a predetermined value, the depth parameter will Is a constant. In general, both the brush and the watercolor pen will be rendered or expanded when writing and painting, so each stroke will have a different thickness. The longer the pen tip stays, the greater the rendering will be, and the render parameter generation module 48 is used to simulate this rendering phenomenon. The rendering parameter generation module 48 is configured to generate a plurality of rendering position data based on the main position data and the radius data slave to represent a plurality of rendering position coordinates. Please refer to Figure 9. Figure 9 is a schematic diagram of the % of the rendered position coordinates. Each of the main position data corresponds to a plurality of rendering position data, that is, each main position coordinate G corresponds to a plurality of rendering position coordinates %. The rendering parameter generation module 48 includes a rendering parameter 18 1264674 d for determining the distance between each of the two rendering position coordinates, and using a rendering position generation formula to generate a rendering position coordinate such that the distance from the main position coordinate α The distance between the coordinates of the far rendering position is smaller. This formula is expressed as: ^- = DV2q dt ; where this formula is developed using the finite difference method (finite difference m e t h o d ) as follows:
1 气广-从 +gJ qi+l = + 2Dt · qM ~ 4Dtqt + IDtq^ f \ \ ^ = 7-Τ7Γ; (-4^.+(1+ 2D〇^m) 一 j 0 如上所述,在超過半徑奴以外之範圍,會計算 出複數個渲染位置座標,而渲染位置座標之間之間 距會漸漸變小,最後會趨近於零。因此,在筆觸形 成的時候,會呈現筆觸向外增長的現象,而增長速 率會漸漸緩慢,最後趨近於零。根據渲染參數β的 不同設定,其增長速率變化也會有不同,進而呈現 出不同的渲染現象。 以上為模擬渲染現象的位置變化,至於顏色值 的變化,也可以套用上述公式來求得渲染現象的顏 19 1264674 色變化。因此,上述之每一渲染位置資料係對應於 一渲染顏色資料,而渲染參數產生模組4 8同樣會 利用渲染參數D,以決定每兩個渲染顏色資料之間 之顏色變化,並且利用上述公式來產生渲染顏色資 料,以使得距離主要位置資料愈遠之渲染位置資料 之渲染顏色資料之間之差異愈小。因此,會呈現出 顏色漸漸變淡的渲染效果。 此外,筆劃1 4會因為毛筆或水彩筆的材質不 同,而產生間斷的現象,即筆劃14的某些部分會 是空白的,而間斷參數產生模組50則係用來模擬 此間斷現象。 間斷參數產生模組50會產生對應於主要位置 資料與疏密位置資料之間斷參數,以決定主要位置 資料與疏密位置資料是否會被顯現。間斷參數產生 模組5 0包含一預設之間斷參數設定表,具有複數 個間斷參數,以對應於主要位置資料與疏密位置資 料。當間斷參數為第一值時,其所對應之位置資料 會被顯現出來,而當間斷參數為第二值時,其所對 應之位置資料則不會被顯現出來。 20 1264674 因此,藉由間斷參數的設定,筆劃14中的某些 位置點會是空白的,使得線條呈現間斷的現象。間 斷參數d可以表示為: d = dTable(i) ·,其中 d e [0,1]。 當間斷參數為0時,其所對應之位置資料所代 表的位置點會是空白的,而當間斷參數為1時,其 所對應之位置資料所代表的位置點會顯現出來。 除了利用上述之個別的參數產生模組來產生參 數設定之外,筆觸產生模組2 8還包含一個筆觸顏 色參數產生模組52,以結合上述之數個參數以產 生一個筆觸顏色參數。 筆觸顏色參數產生模組5 2係根據顏色參數產 生模組40所產生之顏色參數A、速率參數產生模 組42所產生之速率參數「、深淺參數產生模組46 所產生之深淺參數^,以及間斷參數產生模組5 0 所產生之間斷參數d,以產生一筆觸顏色參數。筆 觸顏色參數產生模組52係利用一筆觸顏色參數產 生公式來計算出筆觸顏色參數。此公式係表示 為: 21 1264674 如上所述’手寫筆ίο所繪出之筆劃14係包含所個 主要位置資料,而每一個主要位置資料係對應於^ 個疏密位置資料,而k表示第i個主要位置座^之 第j個疏密位置座標所對應之筆觸顏色參數。 請參考第1〇圖。第1〇圖為不同筆觸之示意圖。 利用本發明之手寫筆10可以模擬出不同之筆觸, 圖中所示只是其中的兩種,而 擬出來的筆觸; 而主系統21會將所模 雖然本發明已參照較佳 述,惟其應不被認為其係p 在不離開本發明之範圍内 體例之内容作各種修改、1 gas wide - from +gJ qi + l = + 2Dt · qM ~ 4Dtqt + IDtq^ f \ \ ^ = 7-Τ7Γ; (-4^.+(1+ 2D〇^m) a j 0 as mentioned above, In the range beyond the radius slave, the calculation of a plurality of rendering position coordinates, and the distance between the coordinates of the rendering position will gradually become smaller, and finally will approach zero. Therefore, when the stroke is formed, the brush stroke will grow outward. The phenomenon, while the growth rate will gradually slow down, and finally approach zero. According to the different settings of the rendering parameters β, the growth rate will change differently, and then present different rendering phenomena. The above is the position change of the simulation rendering phenomenon, As for the change of the color value, the above formula can also be used to obtain the color change of the color phenomenon of the rendering phenomenon. Therefore, each of the above-mentioned rendering position data corresponds to a rendering color data, and the rendering parameter generating module 48 will also Use the rendering parameter D to determine the color change between each of the two rendered color data, and use the above formula to generate the rendered color data so that the rendering location data is further away from the main location data. The smaller the difference between the color data, the lower the color will be rendered. In addition, the stroke 14 will have a discontinuous phenomenon due to the different materials of the brush or the watercolor pen, that is, some parts of the stroke 14. It will be blank, and the discontinuous parameter generation module 50 is used to simulate the discontinuity phenomenon. The discontinuous parameter generation module 50 generates an interrupt parameter corresponding to the main position data and the dense position data to determine the main position data and the sparseness. Whether the secret position data will be displayed. The discontinuous parameter generating module 50 includes a preset discontinuous parameter setting table having a plurality of discontinuous parameters corresponding to the main position data and the sparse position data. When the discontinuous parameter is the first value When the corresponding position data is displayed, when the discontinuous parameter is the second value, the corresponding position data will not be revealed. 20 1264674 Therefore, by setting the discontinuous parameter, stroke 14 Some of the position points will be blank, causing the lines to appear intermittent. The discontinuity parameter d can be expressed as: d = dTable(i) ·, where de [0 , 1] When the discontinuity parameter is 0, the position point represented by the corresponding position data will be blank, and when the discontinuity parameter is 1, the position point represented by the corresponding position data will appear. In addition to using the individual parameter generation modules described above to generate parameter settings, the stroke generation module 28 further includes a stroke color parameter generation module 52 to combine the above parameters to generate a stroke color parameter. The parameter generation module 52 is based on the color parameter A generated by the color parameter generation module 40, the rate parameter generated by the rate parameter generation module 42, the depth parameter generated by the depth parameter generation module 46, and the discontinuous parameter. The discontinuity parameter d generated by the module 50 is generated to generate a touch color parameter. The stroke color parameter generation module 52 calculates a stroke color parameter using a touch color parameter generation formula. This formula is expressed as: 21 1264674 As described above, the strokes drawn by the stylus ίο contain the main location data, and each primary location data corresponds to ^ sparse location data, and k represents the i The stroke color parameter corresponding to the jth sparse position coordinate of the main position seat ^. Please refer to the first map. The first picture is a schematic diagram of different strokes. The stylus 10 of the present invention can simulate different strokes, only two of which are shown in the figure, and the proposed strokes; and the main system 21 will be the model, although the invention has been referred to the preferred description, but it should not It is considered that the system p is modified in various ways without departing from the scope of the invention.
附圖敘 限制性者。熟悉本技藝者 ^可對其形態及特殊具 省略及變化。 22 1264674 【圖式簡單說明】 第1圖為本發明之手寫筆之示意圖。 第2圖為圓之半徑與壓力值之關係圖。 第 3圖為本發明之手寫筆連接於主系統之示意 圖。 第4圖顯示複數個疏密位置座標。 第5圖顯示主線條以及疏密線條。 第 6圖為筆觸產生模組之筆觸產生方法之流程 圖。 第7圖為筆觸產生模組所產生之筆觸之示意圖。 第8圖筆觸產生模組之示意圖。 第9圖係渲染位置座標之示意圖。 第10圖為不同筆觸之示意圖。 23 1264674 【元件 符號. 表 】 10 手: 寫: 筆 11 筆 尖 12 手 寫 板 14 筆 劃 16 圓 18 位 置 感 測 器 20 壓 力 感 測 器 21 主 系 統 22 壓 力 -半徑轉換模組 23 筆 觸 模 擬 裝置 24 正 向 量 產 生模組 26 疏 密 位 置 產生模組 28 筆 觸 產 生 模組 40 顏 色 參 數 產生模組 42 速 率 參 數 產生模組 44 速 率 -顏色參數產生模組 46 深 淺 參 數 產生模組 48 渲 染 參 數 產生模組 24 1264674 50 間斷參數產生模組 5 2 筆觸顏色參數產生模組 25BRIEF DESCRIPTION OF THE DRAWINGS Those skilled in the art can omit and change their form and special features. 22 1264674 [Simple description of the drawings] Fig. 1 is a schematic view of the stylus of the present invention. Figure 2 is a plot of the radius of the circle versus the pressure value. Fig. 3 is a schematic view showing the stylus of the present invention connected to the main system. Figure 4 shows a plurality of sparse position coordinates. Figure 5 shows the main lines and the dense lines. Fig. 6 is a flow chart showing a method of generating a stroke of a stroke generating module. Figure 7 is a schematic diagram of the strokes produced by the brushstroke generating module. Figure 8 is a schematic diagram of the stroke generation module. Figure 9 is a schematic diagram of the rendering position coordinates. Figure 10 is a schematic diagram of different strokes. 23 1264674 [Component Symbol. Table] 10 Hand: Write: Pen 11 Nib 12 Tablet 14 Stroke 16 Circle 18 Position Sensor 20 Pressure Sensor 21 Main System 22 Pressure-Radius Conversion Module 23 Stroke Simulator 24 Positive Vector Generation module 26 sparse position generation module 28 stroke generation module 40 color parameter generation module 42 rate parameter generation module 44 rate-color parameter generation module 46 depth parameter generation module 48 rendering parameter generation module 24 1264674 50 Intermittent parameter generation module 5 2 stroke color parameter generation module 25
Claims (1)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW92125437A TWI264674B (en) | 2003-09-16 | 2003-09-16 | A handwriting pen capable of simulating different strokes |
| US10/823,748 US7310091B2 (en) | 2003-09-16 | 2004-04-14 | Handwriting pen capable of simulating different strokes |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW92125437A TWI264674B (en) | 2003-09-16 | 2003-09-16 | A handwriting pen capable of simulating different strokes |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW200512653A TW200512653A (en) | 2005-04-01 |
| TWI264674B true TWI264674B (en) | 2006-10-21 |
Family
ID=37969435
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW92125437A TWI264674B (en) | 2003-09-16 | 2003-09-16 | A handwriting pen capable of simulating different strokes |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI264674B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8144169B2 (en) | 2008-09-23 | 2012-03-27 | National Taiwan University Of Science And Technology | Input device for graphics |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201604722A (en) | 2014-07-31 | 2016-02-01 | 佳世達科技股份有限公司 | Handwriting input system and handwriting input method |
-
2003
- 2003-09-16 TW TW92125437A patent/TWI264674B/en not_active IP Right Cessation
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8144169B2 (en) | 2008-09-23 | 2012-03-27 | National Taiwan University Of Science And Technology | Input device for graphics |
Also Published As
| Publication number | Publication date |
|---|---|
| TW200512653A (en) | 2005-04-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100520692C (en) | Hand-written input method capable of implementing writing style effect | |
| Wiethoff et al. | Sketch-a-TUI: low cost prototyping of tangible interactions using cardboard and conductive ink | |
| JP2022540315A (en) | Virtual User Interface Using Peripheral Devices in Artificial Reality Environment | |
| CN102939575B (en) | Ink presents | |
| US20130307829A1 (en) | Haptic-acoustic pen | |
| JP2019149202A5 (en) | ||
| Lee et al. | SketchInsight: Natural data exploration on interactive whiteboards leveraging pen and touch interaction | |
| KR20140024260A (en) | Method and device for implementing original calligraphy of handwriting | |
| JP2018037112A (en) | Enhanced dynamic haptic effect | |
| CN104516649A (en) | Intelligent cell phone operating technology based on motion-sensing technology | |
| Cho et al. | Turn: a virtual pottery by real spinning wheel | |
| WO2021218448A1 (en) | Handwriting forming method and apparatus, and electronic device | |
| KR102112584B1 (en) | Method and apparatus for generating customized emojis | |
| CN102013182A (en) | Mathematical communication method and system convenient for communication of freehand curve and handwritten expression | |
| CN105354031A (en) | Leap Motion based 3D commodity display method | |
| TWI264674B (en) | A handwriting pen capable of simulating different strokes | |
| US20170131801A1 (en) | Method for displaying handwriting in a pdf file | |
| CN109065001A (en) | A kind of down-sampled method, apparatus, terminal device and the medium of image | |
| Watanabe et al. | Generic method for crafting deformable interfaces to physically augment smartphones | |
| CN201860353U (en) | Mobile phone with drawing pad function | |
| CN100351759C (en) | A stylus that simulates different strokes | |
| CN104766355A (en) | Splash-color painting interactive system based on handwriting analysis and method for generating digital splash-color painting in real time through system | |
| CN107122042A (en) | The Chinese-character writing method and system that a kind of quiet dynamic gesture is combined | |
| Auda et al. | VRSketch: Investigating 2D sketching in virtual reality with different levels of hand and pen transparency | |
| CN106598453A (en) | Method and device for outputting shaped character information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |