JP6526504B2 - Digital ink generating apparatus, digital ink generating method, and program - Google Patents

Digital ink generating apparatus, digital ink generating method, and program Download PDF

Info

Publication number
JP6526504B2
JP6526504B2 JP2015133170A JP2015133170A JP6526504B2 JP 6526504 B2 JP6526504 B2 JP 6526504B2 JP 2015133170 A JP2015133170 A JP 2015133170A JP 2015133170 A JP2015133170 A JP 2015133170A JP 6526504 B2 JP6526504 B2 JP 6526504B2
Authority
JP
Japan
Prior art keywords
data
digital ink
stroke
conversion rule
value
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
JP2015133170A
Other languages
Japanese (ja)
Other versions
JP2016119051A (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.)
Wacom Co Ltd
Original Assignee
Wacom 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 Wacom Co Ltd filed Critical Wacom Co Ltd
Priority to JP2015133170A priority Critical patent/JP6526504B2/en
Publication of JP2016119051A publication Critical patent/JP2016119051A/en
Application granted granted Critical
Publication of JP6526504B2 publication Critical patent/JP6526504B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Description

本発明はデジタルインク生成装置、デジタルインク生成方法及びデジタルインク再生装置に関し、特に、ペンを動作するに伴い生成されるイベントデータに基づいてデジタルインクを生成するデジタルインク生成装置及びデジタルインク生成方法と、そうして生成されたデジタルインクを再生するデジタルインク再生装置とに関する。   The present invention relates to a digital ink generation device, a digital ink generation method, and a digital ink reproduction device, and in particular, a digital ink generation device and a digital ink generation method for generating digital ink based on event data generated as a pen is operated. And a digital ink regenerating apparatus for regenerating the digital ink thus generated.

インクの充填されたペンや絵の具の付いた毛筆を紙の上で動かすことにより、インクや絵の具が紙に吸収あるいは堆積され軌跡が描かれる。   By moving a pen filled with ink or a brush with paint on the paper, the ink or paint is absorbed or deposited on the paper and a trace is drawn.

このように紙に描かれた手書きの軌跡(ストローク)を模擬するように、電子ペンやスタイラスなどの指示体をタブレット等の位置検出器の上で動かした軌跡を電子データ化したデータがデジタルインクである。デジタルインクは、通常、(1)手書きの軌跡を再現するためのデータ、(2)軌跡の描画スタイルを記述するデータ、及び、(3)軌跡に関するデータの変換規則を記述するデータを含み構成される。デジタルインクには、様々なOSで動作する描画アプリケーションや文書作成アプリケーションなどの異種環境でも利用できるように標準化されたデータフォーマットが存在する(非特許文献1〜4)。   In this manner, digital ink is data obtained by converting a locus obtained by moving an indicator such as an electronic pen or stylus on a position detector such as a tablet to simulate a handwritten locus (stroke) drawn on paper. It is. Digital ink usually includes (1) data for reproducing handwritten trajectories, (2) data describing the drawing style of trajectories, and (3) data describing transformation rules for data regarding trajectories. Ru. Digital ink has a standardized data format so that it can be used in different environments such as drawing applications and document creation applications operating under various OSs (Non-Patent Documents 1 to 4).

非特許文献1記載のInkMLは、最も知られたデジタルインクのデータフォーマットの1つである。(1)手書きの軌跡を再現するためのデータは<trace>要素と呼ばれる。<trace>要素には、1ストローク(指示体を位置検出装置のセンサ面に接触させてから離すまでの動作)の軌跡を構成する複数のポイントデータ(入力センサによって所定の時間間隔で検出されるデータ。座標データ(X,Y)、筆圧データP、時刻データTなど、入力センサ依存の属性(入力センサ属性)を示すデータを含む)の集合を記述する。また、InkMLでは(2)軌跡の描画スタイルを指定するデータとして例えば<brush>要素などのデータ、(3)軌跡に関するデータの変換規則を記述するデータとして後述する<mapping>要素などのデータが規定されている。   InkML described in Non-Patent Document 1 is one of the most known digital ink data formats. (1) Data for reproducing a handwritten locus is called a <trace> element. In the <trace> element, a plurality of point data (detected by the input sensor at predetermined time intervals) constituting a locus of one stroke (operation from contact to release of the indicator to the sensor surface of the position detection device) Data describes a set of coordinate data (X, Y), pen pressure data P, time data T, etc. including data indicating an attribute (input sensor attribute) dependent on an input sensor. Also, in InkML, (2) data for specifying a drawing style of a locus, for example, data such as a <brush> element, and (3) data such as a <mapping> element described later as data describing a conversion rule of data related to a locus It is done.

非特許文献2記載のISF(Ink Serialized Format)は、マイクロソフト社のアプリケーション上で利用されるデジタルインクのデータフォーマットである。(1)手書きの軌跡を再現するためのデータのブロックは、StrokeDescriptorBlockと呼ばれる。StrokeDescriptorBlockには、ストロークの軌跡を再現するためのポイント(ポイントはX、Y座標値である)や筆圧値等が記述される。又、(2)描画スタイルを記述するブロックであるDrawingAttributeBlockや、(3)軌跡に関するデータの変形規則を記述するブロックとしてTransformBlockなどが規定されている。   The ISF (Ink Serialized Format) described in Non-Patent Document 2 is a data format of digital ink used on Microsoft applications. (1) A block of data for reproducing a handwritten trajectory is called StrokeDescriptorBlock. In Stroke Descriptor Block, points (point is an X, Y coordinate value) for reproducing the trajectory of a stroke, a writing pressure value and the like are described. Also, (2) DrawingAttributeBlock, which is a block describing a drawing style, and (3) TransformBlock, etc., are defined as a block which describes a transformation rule of data concerning a locus.

非特許文献3記載のSVGは、二次元グラフィックスアプリケーション及び画像、並びにグラフィックスクリプトのセットを記述するためのマークアップ言語である。(1)手書きの軌跡を再現するためのデータとして<path>要素が存在する。<path>要素中には、複数の制御点(ポイントデータ)が含まれ、これらの複数の制御点に基づくベジエ曲線により軌跡が再現される。   SVG described in Non-Patent Document 3 is a markup language for describing a set of two-dimensional graphics applications and images, and graphic scripts. (1) There is a <path> element as data for reproducing a handwritten locus. The <path> element includes a plurality of control points (point data), and the trajectory is reproduced by the Bezier curve based on the plurality of control points.

他、非特許文献4記載のHTML5には、(1)手書きの軌跡を再現するためのデータとしてCanvas Pathクラスとよばれるデータ型が規定されている。   In addition, in HTML 5 described in Non-Patent Document 4, (1) a data type called Canvas Path class is defined as data for reproducing a handwritten locus.

以下では、非特許文献1の<trace>、非特許文献2のStrokeDescriptorブロック、非特許文献3の<path>要素、非特許文献4記載のHTML5におけるCanvasPathなどを総称し、入力装置を用いて手書きした軌跡と線幅を含む形状を再現するためのベクタデータをストロークデータと呼ぶ。   In the following, <trace> in Non-Patent Document 1, Stroke Descriptor block in Non-Patent Document 2, <path> element in Non-Patent Document 3, CanvasPath in HTML 5 described in Non-Patent Document 4, etc. are collectively referred to and handwritten using an input device The vector data for reproducing the shape including the trace and the line width is called stroke data.

また、以下では、非特許文献1の<mapping>、非特許文献2の<transformBlock>など軌跡に関するデータ(ストロークデータ)の変換規則を記述するデータを総称し、マッピングデータと呼ぶ。   Also, in the following, data describing transformation rules of data (stroke data) related to a locus, such as <mapping> of Non-Patent Document 1 and <transform Block> of Non-Patent Document 2, is generically called mapping data.

図19Aは、非特許文献1のマッピングデータである<mapping>要素を説明する図である。この例は、<mapping>要素のタイプとして"affine"を用いた変換規則を示している。この変換規則は、X座標及びY座標で規定される図形に対し、4行目〜7行目で示す行列に示されるアフィン変換(90度の回転を施し、Y方向に200平行移動する変換)を施す変換を示している。   FIG. 19A is a diagram for explaining a <mapping> element which is mapping data in Non-Patent Document 1. FIG. This example shows a conversion rule using "affine" as the type of <mapping> element. This transformation rule is an affine transformation shown in the matrix shown in the fourth to seventh lines (a transformation that performs rotation by 90 degrees and translates in the Y direction by 200) with respect to the figure defined by the X and Y coordinates. Shows the transformation to apply.

また、図19Bは、<mapping>要素のタイプとして「mathml」を利用した変換規則を示す図である。"mathml"を用いた変換規則では、非特許文献5のMathML2が規定する名前空間で予約された"root"、"cos"、"minus"等の表現を用い、それに対応付けられた演算を利用することができる。図19Bの例に示す変換規則は、極座標形式で示される入力センサ属性の座標データ(VR,VTh)を、直交座標形式で示される座標データ(X,Y)に変換する規則である。図中、2行目〜13行目までの破線枠MD_Xで示す変換規則は、入力センサ属性が示す径VRの値(変数r)、及び、角度VThの値(変数theta)、並びに、MathMLで"cos"により規定される余弦等を用いて、新たなX座標データを導出するための変換規則を記述している。また、14行目〜25行目までのMD_Yで示す変換規則は、新たなY座標データを得るための変換規則を示している。   FIG. 19B is a diagram showing conversion rules using “mathml” as the type of the <mapping> element. The conversion rule using "mathml" uses expressions such as "root", "cos", and "minus" reserved in the namespace defined by MathML2 of Non-Patent Document 5, and uses the operation associated with it. can do. The conversion rule shown in the example of FIG. 19B is a rule to convert coordinate data (VR, VTh) of the input sensor attribute shown in polar coordinate format into coordinate data (X, Y) shown in rectangular coordinate format. In the figure, the conversion rule indicated by the broken line frame MD_X on the 2nd to 13th lines is the value of the diameter VR indicated by the input sensor attribute (variable r), the value of the angle VTh (variable theta), and MathML The transformation rules for deriving new X coordinate data are described using cosines and the like defined by "cos". The conversion rules indicated by MD_Y in the 14th to 25th lines indicate the conversion rules for obtaining new Y coordinate data.

非特許文献2のISFは、変換規則として利用可能な変形を<TRANSFORM BLOCK>の種類として列挙する(10ページ)。図19Aに示したアフィン変換行列のような変換として、M11、M12、M21、M22、及び、DX、DYの要素からなる2行3列で表現できる変換行列を観念し、この変換行列を用いた各種の変換が規定されている。例えば、ストロークデータを拡大縮小するための<TAG_TRANSFORM_ISOTROPIC_SCALE>、<TAG_TRANSFORM_ANISOTROPICSCALE>、ストロークデータに回転を施すための<TAG_TRANSFORM_ROTATE>、平行移動等を施すための<TAG_TRANSFORM_TRANSLATE>、回転した後で平行移動を施すための<TAG_TRANSFROM_ROTATE_AND_TRANSLATE>_などを利用することができる。   The ISF of Non-Patent Document 2 lists transformations that can be used as transformation rules as a type of <TRANSFORM BLOCK> (page 10). As a transformation such as the affine transformation matrix shown in FIG. 19A, a transformation matrix that can be represented by 2 rows and 3 columns consisting of M11, M12, M21, M22, and elements of DX and DY is considered, and this transformation matrix is used Various transformations are defined. For example, <TAG_TRANSFORM_ISOTROPIC_SCALE> for scaling the stroke data, <TAG_TRANSFORM_ANISOTROPICSCALE> for <TAG_TRANSFORM_ANISOTROPICSCALE>, <TAG_TRANSFORM_ROTATE> for rotating the stroke data, <TAG_TRANSFORM_TRANSLATE> for performing parallel movement, etc., for performing parallel movement after rotation. <TAG_TRANSFROM_ROTATE_AND_TRANSLATE> _ etc. can be used.

非特許文献6には、デジタルインクに基づいて自然な線を描画するための描画方法の例が開示されている。   Non-Patent Document 6 discloses an example of a drawing method for drawing natural lines based on digital ink.

Yi-Min Chee、外11名、"Ink Markup Language (InkML) W3C Recommendation 20 September 2011"、[online]、平成23年9月20日、W3C、[平成26年11月19日検索]、インターネット〈URL:http://www.w3.org/TR/InkML/〉Yi-Min Chee, 11 others, "Ink Markup Language (InkML) W3C Recommendation 20 September 2011", [online], September 20, 2011, W3C, [November 19, 2014 search], Internet < URL: http://www.w3.org/TR/InkML/> "Ink Serialized Format Specification"、[online]、Microsoft Corporation、[平成26年12月11日検索]、インターネット〈URL:http://download.microsoft.com/download/0/B/E/0BE8BDD7-E5E8-422A-ABFD-4342ED7AD886/InkSerializedFormat(ISF)Specification.pdf〉"Ink Serialized Format Specification", [online], Microsoft Corporation, [search on December 11, 2014], Internet <URL: http://download.microsoft.com/download/0/B/E/0BE8BDD7-E5E8 -422A-ABFD-4342ED7AD886 / InkSerializedFormat (ISF) Specification. Pdf> Erik Dahlstrom、外9名、"Scalable Vector Graphics (SVG) 1.1 (Second Edition) W3C Recommendation 16 August 2011"、[online]、平成23年8月16日、W3C、[平成26年12月11日検索]、インターネット〈URL:http://www.w3.org/TR/SVG/〉Erik Dahlstrom, 9 others, "Scalable Vector Graphics (SVG) 1.1 (Second Edition) W3C Recommendation 16 August 2011", [online], August 16, 2011, W3C, [December 11, 2014 search] , Internet <URL: http://www.w3.org/TR/SVG/> Ian Hickson、外6名、"A vocabulary and associated APIs for HTML and XHTML W3C Recommendation 28 October 2014"、[online]、平成26年10月28日、W3C、[平成26年12月11日検索]、インターネット〈URL:http://www.w3.org/TR/html5/〉Ian Hickson, 6 others, "A vocabulary and associated APIs for HTML and XHTML W3C Recommendation 28 October 2014", [online], October 28, 2014, W3C, [December 11, 2014 search], Internet <URL: http://www.w3.org/TR/html5/> Ron Ausbrooks、外15名、 "Mathematical Markup Language (MathML) Version 2.0 (Second Edition) W3C Recommendation 21 October 2003"、[online]、平成15年10月21日、W3C、[平成26年12月11日検索]、インターネット〈URL:http://www.w3.org/TR/MathML2/〉Ron Ausbrooks, 15 others, "Mathematical Markup Language (MathML) Version 2.0 (Second Edition) W3C Recommendation 21 October 2003", [online], October 21, 2003, W3C, [December 11, 2014 search ], Internet <URL: http://www.w3.org/TR/MathML2/> L.M. Mestetskii、"Fat Curves and Representation of Planar Figures"、[online]、平成12年、Department of Information Technologies, Tver' State University, Tver, Russia、[平成26年11月19日検索]、インターネット〈URL:http://cgm.cs.ntust.edu.tw/hlyang/www/Fat%20Curves.ppt〉LM Mestetskii, "Fat Curves and Representation of Planar Figures", [online], 2000, Department of Information Technologies, Tver's State University, Tver, Russia, [November 19, 2014 search], Internet <URL: http://cgm.cs.ntust.edu.tw/hlyang/www/Fat%20Curves.ppt>

しかしながら、上記非特許文献1や非特許文献2に例示されたマッピングデータによる変換規則は、ストロークデータの回転や拡大などの幾何的な変形に用いるためのものであり、ストロークデータに含まれた座標データや筆圧値など入力センサで得られた入力センサ属性から線幅や透明度などの描画処理において利用される描画属性データへの変換に着眼したものではない。ストロークデータ中に描画属性データの値を示す替わりに、描画属性データの値がどの入力センサ属性の値からどのような演算で得られる値であるかを示すことは、そのストロークデータを生成したときに用いられた入力センサの機能を事後的に確認できる点で有益である。   However, the conversion rule based on the mapping data exemplified in the non-patent document 1 and the non-patent document 2 is for use in geometric deformation such as rotation or enlargement of the stroke data, and the coordinates included in the stroke data It does not focus on conversion from input sensor attributes obtained by the input sensor such as data and writing pressure values to drawing attribute data used in drawing processing such as line width and transparency. Instead of indicating the value of drawing attribute data in the stroke data, indicating that the value of the drawing attribute data is the value obtained by what calculation from which value of the input sensor attribute is that stroke data is generated It is useful in that the function of the input sensor used in the above can be confirmed after the fact.

また、従来の変換規則の記述形式では、実際のペンや毛筆などが描く線の濃淡や幅への変換を表現するための変換規則を記述するために十分でない。具体的には、例えばインクを充填したペンや絵の具を吸収した毛筆を用いて紙の上に線を書いた場合、特に始点や終点などで、ペンや毛筆を動かした際のインクや絵の具のかすれ具合などによりストロークの一部分が細くなったり、逆に太くなったりする。上記従来の変換規則の記述形式によっては、ストロークの一部分に対して特別な変換規則を適用する変換規則を与える記述や、速度等ストロークの入力センサ属性の値の変化量に対しての変換規則を記述することができない。   In addition, the conventional conversion rule description format is not sufficient to describe conversion rules for expressing conversion to lines and shades and widths of lines drawn by an actual pen or brush. Specifically, for example, when a line is drawn on paper using a pen filled with ink or a brush absorbed with paint, the ink or paint may become faint when moving the pen or brush, especially at the start point or end point. Depending on the condition, part of the stroke may become thinner or thicker. Depending on the description format of the above conventional conversion rules, a description that gives a conversion rule that applies a special conversion rule to a part of the stroke, or a conversion rule for the amount of change in the value of the input sensor attribute of a stroke such as speed It can not be described.

したがって、本発明の目的のひとつは、入力センサ等から得られる筆圧等の入力センサ属性の値を保存しつつも、それらの入力センサ属性の値から線幅及び/又は透明度等が変化する筆跡を再現する変換規則を記述することが可能なデジタルインクを生成するデジタルインク生成装置及びデジタルインク生成方法と、そのようなデジタルインク生成装置によって生成されたデジタルインクを再生できるデジタルインク再生装置とを提供することにある。   Therefore, one of the objects of the present invention is a handwriting whose line width and / or transparency changes from the value of the input sensor attribute while the value of the input sensor attribute such as the pen pressure obtained from the input sensor or the like is stored. A digital ink generating device and a digital ink generating method for generating digital ink capable of describing a conversion rule for reproducing the digital ink, and a digital ink reproducing device capable of reproducing digital ink generated by such digital ink generating device It is to provide.

第1の発明は、指示体を操作することに伴い入力センサにより生成されるペンイベントデータに基づいて、入力センサ属性を属性とするストロークデータを生成するストロークデータ生成部と、前記ストロークデータに含まれた前記入力センサ属性の値を、線幅又は透明度の値に変換するための変換規則を示すマッピングデータを生成するマッピングデータ生成部と、前記ストロークデータ及び前記マッピングデータを含むデジタルインクを所定のデータフォーマットで出力するデジタルインク組立部と、を備えるデジタルインク生成装置である。   According to a first aspect of the present invention, there is provided a stroke data generation unit for generating stroke data having an attribute of an input sensor as an attribute based on pen event data generated by an input sensor as a result of operating a pointer; A mapping data generation unit for generating mapping data indicating conversion rules for converting the values of the input sensor attributes into line width or transparency values, and predetermined digital ink including the stroke data and the mapping data A digital ink assembly unit for outputting data in a data format.

第2の発明は、第1の発明において、前記マッピングデータ生成部は、前記入力センサ属性の値を線幅又は透明度の値に変換するための変換規則と該変換規則が適用される範囲を示す範囲データとを含むマッピングデータを生成する、というものである。   In a second aspect based on the first aspect, the mapping data generation unit indicates a conversion rule for converting the value of the input sensor attribute into a line width or a transparency value, and a range to which the conversion rule is applied. And generating mapping data including range data.

第3の発明は、第1の発明において、前記ストロークデータ生成部は、前記入力センサ属性を属性とするポイントデータを複数含むストロークデータを生成し、前記マッピングデータ生成部は、複数の前記ポイントデータのうち第1のポイントデータに含まれる前記入力センサ属性のうち第1の属性の値と、複数の前記ポイントデータのうちの前記第1のポイントデータとは異なる第2のポイントデータに含まれる前記第1の属性の値との統計値に基づいて、前記第2のポイントデータの線幅又は透明度の値を得るための変換規則を含むマッピングデータを生成する、というものである。   In a third invention according to the first invention, the stroke data generation unit generates stroke data including a plurality of point data having the input sensor attribute as an attribute, and the mapping data generation unit generates a plurality of the point data The value of the first attribute of the input sensor attributes included in the first point data among them, and the first point data of the plurality of the point data are included in the second point data different from the first point data Based on the statistical value with the value of the first attribute, mapping data including a conversion rule for obtaining the line width or transparency value of the second point data is generated.

また、本発明によるデジタルインク再生装置は、本発明によるデジタルインク生成装置により生成される前記デジタルインクから前記ストロークデータ及び前記マッピングデータを抽出し、前記ストロークデータに含まれた前記入力センサ属性の値に、前記マッピングデータに含まれた前記変換規則を適用することにより線幅又は透明度の値を含むストロークデータを生成し、生成されたストロークデータを描画処理する、というものである。   Also, the digital ink regenerating apparatus according to the present invention extracts the stroke data and the mapping data from the digital ink generated by the digital ink generating apparatus according to the present invention, and the value of the input sensor attribute included in the stroke data. The stroke data including the line width or the transparency value is generated by applying the conversion rule included in the mapping data, and the generated stroke data is drawn.

また、本発明によるデジタルインク生成方法は、入力センサを備えたコンピュータで実行されるデジタルインク生成方法であって、指示体を操作することに伴い前記入力センサにより生成されるペンイベントデータに基づいて、第1の属性を属性とするストロークデータを生成するストロークデータ生成ステップと、前記ストロークデータに含まれた前記第1の属性の値を、前記第1の属性または第2の属性の値に変換するための変換規則を示すマッピングデータを生成するマッピングデータ生成ステップと、前記ストロークデータ及び前記マッピングデータを含むデジタルインクを所定のデータフォーマットで出力するデジタルインク組立ステップと、を含む。   Further, a digital ink generation method according to the present invention is a digital ink generation method executed by a computer provided with an input sensor, which is based on pen event data generated by the input sensor as the pointer is operated. A stroke data generation step of generating stroke data having a first attribute as an attribute, and converting a value of the first attribute included in the stroke data into a value of the first attribute or a second attribute And a digital ink assembling step of outputting digital ink including the stroke data and the mapping data in a predetermined data format.

第1の発明によれば、筆圧データ等の入力センサ属性の値を保持したまま、その入力センサ属性の値に基づいて線幅あるいは透明度などのストロークデータの描画属性の値を導出するための変換規則を記述したデジタルインクを生成することができる。これにより、例えば、線幅や透明度といった値が入力センサにより取得された筆圧から導出された値なのか、速度のパラメータから仮想的に導出された値なのかの区別をしたい場合や、事後的に一括して筆圧と線幅との対応関係を変更したい場合、又は、筆圧値Pをシグネチャ認証の比較パラメータに利用するような場合に有益である。   According to the first aspect of the invention, the value of the drawing attribute of stroke data such as line width or transparency is derived based on the value of the input sensor attribute while holding the value of the input sensor attribute such as pen pressure data. Digital ink that describes conversion rules can be generated. Thereby, for example, when it is desired to distinguish whether the values such as the line width and the transparency are values derived from the pen pressure acquired by the input sensor or the values virtually derived from the speed parameter, or This is useful when it is desired to change the correspondence between the pen pressure and the line width collectively, or when using the pen pressure value P as a comparison parameter for signature authentication.

また、第2の発明によれば、一部分の範囲に対してマッピングデータ内の変換規則を適用する規則を記述したデジタルインクを生成することが可能になる。これにより、例えば、ストロークの始点付近の部分や終点付近の部分のみに変換規則が適用されるように構成することも可能になるので、特に、実際のストロークでも線幅や透明度が変わりやすい端部に対して特別な強調処理を実行することのできる表現力の高い変換規則を記述することができる。   According to the second aspect of the invention, it is possible to generate digital ink in which rules for applying conversion rules in mapping data to a partial range are described. As a result, for example, it becomes possible to configure the conversion rule to be applied only to a portion near the start point and a portion near the end point of the stroke. Can express highly expressive transformation rules that can perform special emphasis processing for.

また、第3の発明によれば、インデックス値の異なる2以上のポイントデータに含まれる入力センサ属性値を入力として線幅や透明度等を得るための変換関係を規定したマッピングデータを生成することができる。これにより、透明度や線幅などの描画時に用いる属性の値を導出するにあたって、微分値、積分値、又は、加算平均等の統計値に基づいた変換規則を適用することができ、例えば、指示体の移動の速さに応じて透明度が増加する変換規則など、実際のインクの状況を模したデジタルインクを生成するための変換規則を記述することができる。   Further, according to the third invention, it is possible to generate mapping data defining a conversion relationship for obtaining a line width, transparency, etc. by using input sensor attribute values included in two or more point data having different index values as an input. it can. Thereby, in deriving values of attributes used in drawing such as transparency and line width, conversion rules based on differential values, integral values, or statistical values such as addition average can be applied. For example, a pointer The conversion rules for generating digital ink that mimics the actual ink situation can be described, such as conversion rules in which the transparency increases with the speed of movement of.

本発明の第1の実施の形態による入力システム1を示す概念図である。It is a conceptual diagram showing input system 1 by a 1st embodiment of the present invention. 図1に示したデジタルインク処理装置2の機能ブロック図である。FIG. 2 is a functional block diagram of the digital ink processing device 2 shown in FIG. ポイントデータPDとストロークデータSDとの関係を説明する図である。It is a figure explaining the relationship between point data PD and stroke data SD. InkML形式のフォーマットに従って生成される図3のストロークデータSD0〜SD4を示す図である。It is a figure which shows stroke data SD0-SD4 of FIG. 3 produced | generated according to the format of InkML format. 図4の5つのアルファベットに対応するストロークデータSD0〜SD4のうち、アルファベット"e"に対応するストロークデータSD1のみを取り出した図である。Of the stroke data SD0 to SD4 corresponding to the five alphabets in FIG. 4, only the stroke data SD1 corresponding to the alphabet "e" is extracted. 図2に示したデジタルインク組立部31が組み立てるデジタルインクINKDを説明する図である。It is a figure explaining the digital ink INKD which the digital ink assembly part 31 shown in FIG. 2 assembles. ユーザが設定するマッピングデータの内容funcの各種の例を示す図である。It is a figure which shows the various examples of the content func of the mapping data which a user sets. InkMLのフォーマットに従ったマッピングデータMDの例を示す図である。It is a figure which shows the example of mapping data MD according to the format of InkML. 範囲データrdの例としてrange="−2,−1"を指定した場合のストロークの範囲を示す図である。It is a figure which shows the range of the stroke at the time of designating range = "-2, -1" as an example of range data rd. 範囲データrdの例としてrange="0,1"を指定した場合のストロークの範囲を示す図である。It is a figure which shows the range of the stroke at the time of designating range = "0,1" as an example of range data rd. 範囲データrdの例としてrange="−1,0"を指定した場合のストロークの範囲を示す図である。It is a figure which shows the range of the stroke at the time of designating range = "-1, 0" as an example of range data rd. 範囲データrdの例としてrange="1、−2"を指定した場合のストロークの範囲を示す図である。It is a figure which shows the range of the stroke at the time of designating range = "1, -2" as an example of range data rd. 描画スタイルデータDDの例として、ストロークデータSDの生成時にアプリケーションに設定されていたブラシのスタイルを示す描画スタイル情報DD1を示す図である。As an example of drawing style data DD, it is the figure which shows drawing style information DD1 which shows the style of the brush which was set to application at the time of generation of stroke data SD. (a)は、デジタルインク再生部40によってデジタルインクINKDから抽出された状態のストロークデータSD1を示す図であり、(b)は、マッピングデータMD1適用後のストロークデータSD1を示す図であり、(c)は、マッピングデータMD2適用後のストロークデータSD1を示す図である。(A) is a figure which shows stroke data SD1 of the state extracted from the digital ink INKD by the digital ink reproducing part 40, (b) is a figure which shows stroke data SD1 after application of mapping data MD1, c) shows stroke data SD1 after application of the mapping data MD2. 非特許文献6に記載される描画処理の例を模式化した図である。FIG. 10 is a diagram schematically illustrating an example of the drawing process described in Non-Patent Document 6. 図3に示したストロークデータSD0〜SD4に対し、筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用して得られたストロークデータSDから再生された画像信号を示す図である。With respect to the stroke data SD0 to SD4 shown in FIG. 3, the conversion rule func1 for obtaining the line width W by multiplying the pen pressure P by 10 is reproduced from the stroke data SD obtained by applying to all parts of the stroke data It is a figure showing a picture signal. 図3に示したストロークデータSD0〜SD4に対し、(1)筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用し、更に、(2)筆圧Pを5倍して線幅Wを得るという変換規則func2aを、ストロークの図中破線枠で示す末尾部分に対して適用して得られたストロークデータSDから再生された画像信号を示す図である。With respect to the stroke data SD0 to SD4 shown in FIG. 3, (1) a conversion rule func1 for obtaining the line width W by multiplying the pen pressure P by 10 is applied to all parts of the stroke data, and (2) brushing A diagram showing an image signal reproduced from stroke data SD obtained by applying a conversion rule func2a of multiplying the pressure P by 5 and obtaining the line width W to the end portion of the stroke shown by a broken line frame in the figure. is there. 図3に示したストロークデータSD0〜SD4に対し、(1)筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用し、更に、(2)筆圧Pを5倍して線幅Wを得るという変換規則func2aを、ストロークの図中破線枠で示す末尾と先端との両方の端部に対して適用して得られたストロークデータSDから再生された画像信号を示す図である。With respect to the stroke data SD0 to SD4 shown in FIG. 3, (1) a conversion rule func1 for obtaining the line width W by multiplying the pen pressure P by 10 is applied to all parts of the stroke data, and (2) brushing The conversion rule func2a of multiplying the pressure P by 5 to obtain the line width W is reproduced from the stroke data SD obtained by applying to both ends of the end and the tip indicated by the broken line frame of the stroke. It is a figure showing a picture signal. 図3に示したストロークデータSD0〜SD4に対し、(1)筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用し、更に、(2)筆圧Pを20倍して線幅Wを得るという変換規則func2bを、ストロークの図中破線枠で示す末尾と先端との両方の端部に対して適用して得られたストロークデータSDから再生された画像信号を示す図である。With respect to the stroke data SD0 to SD4 shown in FIG. 3, (1) a conversion rule func1 for obtaining the line width W by multiplying the pen pressure P by 10 is applied to all parts of the stroke data, and (2) brushing The conversion rule func2b of multiplying the pressure P by 20 and obtaining the line width W is reproduced from the stroke data SD obtained by applying to both ends of the end and the tip shown by the broken line frame of the stroke. It is a figure showing a picture signal. 本発明の第2の実施の形態によるストロークデータ生成部20によって生成されるストロークデータSDの例として、10個のポイントデータPD0〜PD9を含むストロークデータSD5を示す図である。It is a figure which shows stroke data SD5 containing ten point data PD0-PD9 as an example of the stroke data SD produced | generated by the stroke data production | generation part 20 by the 2nd Embodiment of this invention. 本発明の第2の実施の形態によるマッピングデータ生成部32が生成するマッピングデータMD3を示す図である。It is a figure which shows the mapping data MD3 which the mapping data production | generation part 32 by 2nd Embodiment of this invention produces | generates. (a)は、デジタルインク再生部40によってデジタルインクINKDから抽出された状態のストロークデータSD5を示す図であり、(b)は、ストロークの全部にマッピングデータMD3を適用した後のストロークデータSD5を示す図であり、(c)は、範囲データrd="−3、−1"の部分にマッピングデータMD3を適用した後のストロークデータSD5を示す図である。(A) is a figure which shows stroke data SD5 in the state extracted from digital ink INKD by the digital ink reproduction part 40, (b) is stroke data SD5 after applying mapping data MD3 to all the strokes. It is a figure which shows and (c) is a figure showing stroke data SD5 after applying mapping data MD3 to a portion of range data rd = "-3, -1". 本発明の第2の実施の形態によるストロークデータSDを説明するための図である。It is a figure for demonstrating stroke data SD by the 2nd Embodiment of this invention. 速度Vに応じて透明度Aが大きくなる変換規則の効果を説明するための他の図である。FIG. 10 is another diagram for describing the effect of the conversion rule in which the transparency A increases in accordance with the velocity V. 非特許文献1のマッピングデータである<mapping>要素を説明する図である。It is a figure explaining the <mapping> element which is the mapping data of a nonpatent literature 1. FIG. <mapping>要素のタイプとして「mathml」を利用した変換規則を示す図である。It is a figure which shows the conversion rule which used "mathml" as a type of a <mapping> element.

以下、添付図面を参照しながら、本発明の好ましい実施の形態について詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

(第1の実施の形態)
図1は、本発明の第1の実施の形態による入力システム1を示す概念図である。入力システム1は、記憶装置2aを有するデジタルインク処理装置2と、平板状のセンサ3aを有するデジタイザ3(位置検出装置)と、電子ペン4(指示体)と、ディスプレイ5とを備えて構成される。なお、指示体としては、上記電子ペン4の他に、例えば人間の指や単なるプラスチックの棒(スタイラス)を用いることも可能である。また、図1では、コンピュータ2、デジタイザ3、及びディスプレイ5を別体の装置として描いているが、これらの一部又は全部を一体の装置(タブレットPCなど)として構成することも可能である。
First Embodiment
FIG. 1 is a conceptual view showing an input system 1 according to a first embodiment of the present invention. The input system 1 includes a digital ink processing device 2 having a storage device 2a, a digitizer 3 (position detection device) having a flat sensor 3a, an electronic pen 4 (indicator), and a display 5. Ru. In addition to the electronic pen 4 described above, it is also possible to use, for example, a human finger or a simple plastic stick (stylus) as the indicator. Further, although the computer 2, the digitizer 3 and the display 5 are illustrated as separate devices in FIG. 1, some or all of them may be configured as an integrated device (such as a tablet PC).

入力システム1は、ユーザが、電子ペン4を用いてデジタイザ3のセンサ3a上で文字や絵を描くことにより入力された座標データ等に基づいてInkML形式のデジタルインクを生成して記憶装置2aに記録する機能と、記録されたデジタルインクから画像信号を生成しディスプレイ5上に再生する機能とを有している。   The input system 1 generates digital ink of the InkML format based on coordinate data or the like input by the user drawing a character or a picture on the sensor 3a of the digitizer 3 using the electronic pen 4 and stores the digital ink in the storage device 2a. It has a function of recording and a function of generating an image signal from the recorded digital ink and reproducing it on the display 5.

センサ3aの表面には、それぞれx方向(センサ3aの表面内の一方向)に延在する複数の線状導体と、それぞれy方向(センサ3aの表面内においてx方向と直交する方向)に延在する複数の線状導体とがそれぞれ等間隔で配置される。デジタイザ3は、センサ3aの表面に電子ペン4が近づいたことによって生ずるこれらの線状導体の電位の変化に基づき、センサ3aの表面内における電子ペン4の位置を示す座標データ(X,Y)を検出するよう構成される。   A plurality of linear conductors extending in the x direction (one direction in the surface of the sensor 3a) and a y direction (direction orthogonal to the x direction in the surface of the sensor 3a) respectively extend on the surface of the sensor 3a. A plurality of existing linear conductors are arranged at equal intervals. The digitizer 3 is coordinate data (X, Y) indicating the position of the electronic pen 4 in the surface of the sensor 3a based on the change in potential of these linear conductors caused by the electronic pen 4 approaching the surface of the sensor 3a. Configured to detect

本実施の形態の電子ペン4は、所定の時間間隔で筆圧データPを検出し、検出した筆圧データPを随時デジタイザ3に対して送信するように構成される。   The electronic pen 4 of the present embodiment is configured to detect the pen pressure data P at predetermined time intervals, and to transmit the detected pen pressure data P to the digitizer 3 as needed.

デジタイザ3は、上記座標データ(X,Y)及び筆圧データPを検出するように構成される。そして、検出した座標データ(X,Y)と、対応する筆圧データPと、検出時刻を示す時刻データTとのセットである入力センサデータISDを生成し、随時、図1に示すようにデジタルインク処理装置2に対して、図示しないIO部を通じて出力するように構成される。これによりデジタルインク処理装置2には、デジタイザ3が電子ペン4を検出している間、一連の入力センサデータISDがセンサ3aのサンプリングレート毎に供給されることになる。   The digitizer 3 is configured to detect the coordinate data (X, Y) and the pen pressure data P. Then, input sensor data ISD, which is a set of detected coordinate data (X, Y), corresponding writing pressure data P, and time data T indicating a detection time, is generated, as needed, as shown in FIG. It is configured to output to the ink processing apparatus 2 through an IO unit (not shown). As a result, while the digitizer 3 is detecting the electronic pen 4, a series of input sensor data ISD is supplied to the digital ink processing device 2 at each sampling rate of the sensor 3 a.

デジタルインク処理装置2は、例えばパーソナルコンピュータである。図示した記憶装置2aの他、CPUや通信回路などの通常のコンピュータが備える構成を備えている。記憶装置2aは、主メモリなどの主記憶装置と、ハードディスクなどの補助記憶装置とを含んで構成される。図2に示すデジタルインク処理装置2の機能ブロックは、デジタルインク処理装置2のCPUが記憶装置2a内に記憶されるプログラムに従って動作することによって実現される。   The digital ink processing device 2 is, for example, a personal computer. In addition to the storage device 2a illustrated, the configuration is provided in a normal computer such as a CPU and a communication circuit. The storage device 2a is configured to include a main storage device such as a main memory and an auxiliary storage device such as a hard disk. The functional blocks of the digital ink processing apparatus 2 shown in FIG. 2 are realized by the CPU of the digital ink processing apparatus 2 operating according to the program stored in the storage device 2a.

図2は、デジタルインク処理装置2の機能ブロック図である。同図に示すように、デジタルインク処理装置2は機能的に、入力処理部10、ストロークデータ生成部20、デジタルインク生成部30、及びデジタルインク再生部40を有して構成される。このうちデジタルインク生成部30は、内部構成として、デジタルインク組立部31、マッピングデータ生成部32、及び適用順決定部33を有して構成される。   FIG. 2 is a functional block diagram of the digital ink processing apparatus 2. As shown in the figure, the digital ink processing apparatus 2 functionally includes an input processing unit 10, a stroke data generation unit 20, a digital ink generation unit 30, and a digital ink reproduction unit 40. Among them, the digital ink generation unit 30 includes, as an internal configuration, a digital ink assembly unit 31, a mapping data generation unit 32, and an application order determination unit 33.

入力処理部10は、デジタイザ3からUSBやI2C等のインタフェース経由で供給される入力センサデータISDから座標データ(X,Y)や筆圧データPなどの入力センサ属性ISAを抽出し、オペレーティングシステム上で動作する他のプログラムに利用可能な形式であるイベントデータEDにして出力する。入力処理部10は、典型的には、デジタルインク処理装置2上で動作するオペレーティングシステムに組み込まれたデジタイザ3に対応するデバイスドライバとして実現される。   The input processing unit 10 extracts input sensor attributes ISA such as coordinate data (X, Y) and pen pressure data P from input sensor data ISD supplied from the digitizer 3 via an interface such as USB or I2C, and the operating system It outputs as event data ED which is a format available to other programs operating in The input processing unit 10 is typically realized as a device driver corresponding to the digitizer 3 incorporated in an operating system operating on the digital ink processing apparatus 2.

ここで、イベントデータEDに含まれる情報には、座標データ(X,Y)や筆圧データPを含むポイントデータPDの他に、そのポイントデータPDが一連のストロークのうちどの部分かを識別するためのイベントタイプ識別情報ETYPEが含まれる。イベントタイプ識別情報ETYPEの取る値には、ペンダウン状態Pdown,ペンムーブド状態Pmvd、ペンアップ状態Pupなどが含まれる。入力処理部10は、電子ペン4や指などの指示体がデジタイザ3に接触(ペンダウン)したことを検出すると、接触位置に対応する座標データ(X,Y)を含むポイントデータPDを生成するとともにイベントタイプ識別情報ETYPEの値としてペンダウン状態Pdownであることを設定したイベントデータEDを生成する。その後、電子ペン4や指示体がデジタイザ3に摺動されている間、入力処理部10は、一連の座標データ(X,Y)に対応する一連のポイントデータPDとともにイベントタイプ識別情報ETYPEの値にペンムーブド状態Pmvdの値を設定したイベントデータEDを生成し続ける。最後に、入力処理部10は、電子ペン4がデジタイザ3から持ち上げられた(ペンアップした)ことを検出すると、イベントタイプ識別情報ETYPEの値にペンアップ状態Pupであることを指定したイベントデータEDを生成する。   Here, in addition to the point data PD including the coordinate data (X, Y) and the pen pressure data P, the information included in the event data ED identifies which part of the series of strokes the point data PD is. Event type identification information ETYPE is included. Values taken by the event type identification information ETYPE include a pen down state Pdown, a pen moved state Pmvd, a pen up state Pup and the like. When the input processing unit 10 detects that an indicator such as the electronic pen 4 or a finger touches the digitizer 3 (pen down), the input processing unit 10 generates point data PD including coordinate data (X, Y) corresponding to the touch position. The event data ED in which the pen down state Pdown is set as the value of the event type identification information ETYPE is generated. Thereafter, while the electronic pen 4 and the indicator are being slid by the digitizer 3, the input processing unit 10 sets the value of the event type identification information ETYPE together with the series of point data PD corresponding to the series of coordinate data (X, Y). Continue to generate event data ED in which the value of the pen moved state Pmvd is set to. Finally, when the input processing unit 10 detects that the electronic pen 4 has been lifted (pen-up) from the digitizer 3, event data ED specifying that the value of the event type identification information ETYPE is the pen-up state Pup. Generate

ストロークデータ生成部20は、入力処理部10からイベントデータEDの供給を受け、1以上のポイントデータPDを包含するストロークデータSD(第1のストロークデータ)を生成する機能部である。ストロークデータ生成部20は、典型的には、デジタルインク処理装置2のCPUで実行されるライブラリあるいはサービスと呼ばれるプログラムで実現される。ストロークデータ生成部20は、入力処理部10から供給されるイベントデータEDのイベントタイプ識別情報ETYPEの値を参照し、ペンダウン状態Pdownを示すイベントデータEDからペンアップ状態Pupを示すイベントデータEDまでの間のイベントデータEDに含まれた一連のポイントデータPDを包含する1つのストロークデータSDを生成する。ストロークデータ生成部20は、入力センサデータISDに含まれる座標データ(X,Y)の値をそのままポイントデータPDの座標データ(X,Y)の値とする場合の他に、入力センサデータISDに含まれる座標データ(X,Y)の値に重み付け平均あるいは指数平滑法等のスムージング処理や間引き処理等を行うことによって得られる新たな座標データ(X,Y)の値をポイントデータPDの座標データ(X,Y)とする場合、並びに、入力センサデータISDに含まれる座標データ(X,Y)に加えてベジエ曲線等の補間曲線の形状を決定するための追加の制御点をポイントデータPDとする場合がある。   The stroke data generation unit 20 is a functional unit that receives supply of event data ED from the input processing unit 10 and generates stroke data SD (first stroke data) including one or more point data PD. The stroke data generation unit 20 is typically realized by a program called a library or service which is executed by the CPU of the digital ink processing apparatus 2. The stroke data generation unit 20 refers to the value of the event type identification information ETYPE of the event data ED supplied from the input processing unit 10, and from the event data ED indicating the pen down state Pdown to the event data ED indicating the pen up state Pup. To generate one stroke data SD including a series of point data PD included in the inter-event data ED. In addition to the case where the value of the coordinate data (X, Y) included in the input sensor data ISD is directly used as the value of the coordinate data (X, Y) of the point data PD, the stroke data generation unit 20 Coordinate data of point data PD new coordinate data (X, Y) values obtained by performing smoothing processing such as weighted average or exponential smoothing or thinning processing on the values of coordinate data (X, Y) contained In the case of (X, Y), in addition to coordinate data (X, Y) included in the input sensor data ISD, additional control points for determining the shape of an interpolation curve such as a Bezier curve are represented by point data PD May.

図3は、ポイントデータPDとストロークデータSDとの関係を説明する図である。図中、5つの破線枠は、5つのアルファベット「h」「e」「l」「l」「o」が入力された際に生成される5つのストロークデータSD(SD0、SD1、SD2、SD3、SD4)を示している。   FIG. 3 is a diagram for explaining the relationship between point data PD and stroke data SD. In the figure, five broken line frames indicate five stroke data SD (SD0, SD1, SD2, SD3, and so on) generated when five alphabets "h", "e", "l", "l" and "o" are input. SD4) is shown.

ストロークデータSD0〜SD4の各々には、図中白丸で示す一連のポイントデータPDが包含される。図中白丸間の実線は、白丸で示されるポイントデータPDが一連のものであることを示す。   Each of the stroke data SD0 to SD4 includes a series of point data PD indicated by white circles in the drawing. The solid line between the white circles in the drawing indicates that the point data PD indicated by the white circles is a series.

ここで、アルファベット「h」に対応するストロークデータSD0には、インデックス値が0であるポイントデータPD0から始まり、そのインデックス値が25であるPD25で終わるポイントデータ数n=26個のポイントデータPD0〜PD25が含められる。また、アルファベット「e」に対応するストロークデータSD1には、インデックス値が0であるPD0から始まりインデックス値が14であるPD14で終わるポイントデータ数n=15個のポイントデータPD0〜PD14が含められる。アルファベット「o」に対応するストロークデータSD4には、インデックス値が0であるPD0から始まりインデックス値が8であるPD8で終わるポイントデータ数n=9個のポイントデータPD0〜PD8が含められる。このように、ストロークデータSDによって含められるポイントデータPDのポイントデータ数nの値は異なる。   Here, the stroke data SD0 corresponding to the alphabet "h" starts from the point data PD0 whose index value is 0 and ends at the PD 25 whose index value is 25. PD 25 is included. Further, the stroke data SD1 corresponding to the alphabet "e" includes point data number n0 to point data PD0 to PD14 of the number of point data n = 15 starting from PD0 having an index value of 0 and ending at PD14 having an index value of 14. The stroke data SD4 corresponding to the alphabet "o" includes point data number n0 to point data number PD0 to PD8 starting from PD0 having an index value of 0 and ending at PD8 having an index value of 8. Thus, the value of the point data number n of the point data PD included by the stroke data SD is different.

尚、図3に示したOPは、ポイントデータPDに含まれる座標データ(X,Y)についての座標系の原点座標を示している。以下、説明の便宜上、座標データの値は、右への方向をX座標の値が増加する方向とし、下への方向をY座標の値が増加する方向とする。   OP shown in FIG. 3 indicates the origin coordinates of the coordinate system for the coordinate data (X, Y) included in the point data PD. Hereinafter, for the sake of convenience of the description, for the value of coordinate data, the direction to the right is the direction in which the value of the X coordinate increases, and the direction to the bottom is the direction in which the value of the Y coordinate increases.

本実施の形態のストロークデータ生成部20は、ストロークデータSDのフォーマットとして非特許文献1のInkMLを利用したフォーマットに従い、<trace>要素の記述形式に従ってストロークデータSDを生成する。   The stroke data generation unit 20 according to the present embodiment generates stroke data SD according to the description format of the <trace> element according to the format using InkML of Non-Patent Document 1 as the format of the stroke data SD.

図4は、InkML形式のフォーマットに従って生成される図3のストロークデータSD0〜SD4を示す図である。図5は、図4の5つのアルファベットに対応するストロークデータSD0〜SD4のうち、アルファベット"e"に対応するストロークデータSD1のみを取り出した図である。   FIG. 4 is a view showing the stroke data SD0 to SD4 of FIG. 3 generated according to the InkML format. FIG. 5 is a diagram showing only stroke data SD1 corresponding to the alphabet "e" among stroke data SD0 to SD4 corresponding to the five alphabets of FIG.

図4、図5の例に示されるように、ストロークデータSDは、<trace>要素として表現され、図中各行の末尾に存在するカンマ(,)を区切り記号として各ポイントデータPD0〜PD14が区切られる形式により生成される。   As shown in the examples of FIGS. 4 and 5, the stroke data SD is expressed as a <trace> element, and each point data PD0 to PD14 is separated with a comma (,) at the end of each line in the drawing as a delimiter. Generated by the format

各ポイントデータPD内では、1以上の半角スペースを区切り記号として各属性データが区切られている。本実施の形態においては、ストロークデータSD内に、入力センサ属性ISAである第1の属性(座標データX)、第2の属性(座標データY)、及び第3の属性(筆圧データP)の3つの属性データを、元データの値のまま保持している。   In each point data PD, each attribute data is separated with one or more single-byte space as a delimiter. In the present embodiment, in the stroke data SD, the first attribute (coordinate data X) which is the input sensor attribute ISA, the second attribute (coordinate data Y), and the third attribute (writing pressure data P) The three attribute data of are kept as the original data value.

これら3つの入力センサ属性ISAの値は、座標データX、座標データY、及び筆圧データPの順で各ポイントデータPD内に配置されている。例えば、図5に示すストロークデータSd1におけるインデックス値0である1つ目のポイントデータPD0に関して言えば、左側の「199」が座標データX、「306」が座標データY、「1.0」が筆圧データPとなる。   The values of these three input sensor attributes ISA are arranged in each point data PD in the order of coordinate data X, coordinate data Y, and pen pressure data P. For example, regarding the first point data PD0 which is the index value 0 in the stroke data Sd1 shown in FIG. 5, "199" on the left is coordinate data X, "306" is coordinate data Y, and "1.0" is It becomes writing pressure data P.

図2に戻る。ストロークデータ生成部20が生成したストロークデータSDは、デジタルインク組立部31に供給される。デジタルインク組立部31は、こうして供給されるストロークデータSDと、適用順決定部33から供給される1又は複数のマッピングデータMDとに基づいて、デジタルインクINKDを組み立てるよう構成される。   Return to FIG. The stroke data SD generated by the stroke data generation unit 20 is supplied to the digital ink assembly unit 31. The digital ink assembly unit 31 is configured to assemble the digital ink INKD based on the stroke data SD supplied in this manner and the one or more mapping data MD supplied from the application order determination unit 33.

図6は、デジタルインク組立部31が組み立てるデジタルインクINKDを説明する図である。図の例はデジタルインクINKDをInkMLのフォーマットに従って生成した例である。   FIG. 6 is a view for explaining the digital ink INKD assembled by the digital ink assembly unit 31. As shown in FIG. The illustrated example is an example in which the digital ink INKD is generated according to the InkML format.

デジタルインクINKDは、「<?xml 」で始まるXML宣言と、「<ink・・>」で始まる行から末尾行の</ink>までの間に記述される<ink>要素とを含んで構成される。   The digital ink INKD includes an XML declaration beginning with "<? Xml" and an <ink> element described between the line beginning with "<ink · ·>" and the </ ink> of the last line. Be done.

<ink>要素は、定義ブロックDEB(<definitions>要素)及びストロークデータ記述ブロックSDB(<ストロークデータSD>要素)を含んで構成される。   The <ink> element includes a definition block DEB (<definitions> element) and a stroke data description block SDB (<stroke data SD> element).

定義ブロックDEBは、マッピングデータ記述ブロックMDBと描画スタイルデータ記述ブロックDDBとを含み構成される。   The definition block DEB includes a mapping data description block MDB and a drawing style data description block DDB.

マッピングデータ記述ブロックMDBは、ストロークデータの変換規則を示すマッピングデータMDが記述されるブロックである。変換規則として、ストロークデータ記述ブロックSDBに記述されたストロークデータSDに含まれる入力センサ属性ISAの値を変換前のデータの値とし、この変換前データの値から、線幅や濃淡など新たな描画属性DAの属性の値を得るための変換規則funcが記述される。   The mapping data description block MDB is a block in which mapping data MD indicating a conversion rule of stroke data is described. As the conversion rule, the value of the input sensor attribute ISA included in the stroke data SD described in the stroke data description block SDB is taken as the value of the data before conversion, and from the value of the data before conversion, new drawing such as line width or shading is made. The conversion rule func for obtaining the value of the attribute of the attribute DA is described.

描画スタイルデータ記述ブロックDDBは、ペン先の形状などストロークデータSDを描画する際の基本的なスタイルを示す描画スタイルを記述するブロックである。   The drawing style data description block DDB is a block that describes a drawing style indicating a basic style when drawing the stroke data SD, such as the shape of a pen point.

ストロークデータ記述ブロックSDBは、ストロークデータSDが記述されるブロックである。図4に示したストロークデータSD0〜SD4など複数個のストロークデータSDが列挙される。   Stroke data description block SDB is a block in which stroke data SD is described. A plurality of stroke data SD such as the stroke data SD0 to SD4 shown in FIG. 4 are listed.

図2に戻り、マッピングデータ生成部32は、ストロークデータSD内に含まれる入力センサ属性ISAを描画属性DAに変換するための変換規則を示すマッピングデータMDを生成、出力する機能部である。なお、描画属性DAは、線幅値Wあるいは濃淡値(透明度A)のいずれかを含んで構成される。また、マッピングデータ生成部32が生成するマッピングデータMDには、変換規則の適用範囲を示す範囲データrd(後述)が含まれる。   Returning to FIG. 2, the mapping data generation unit 32 is a functional unit that generates and outputs mapping data MD indicating conversion rules for converting the input sensor attribute ISA included in the stroke data SD into the drawing attribute DA. The drawing attribute DA is configured to include either the line width value W or the gradation value (transparency A). The mapping data MD generated by the mapping data generation unit 32 includes range data rd (described later) indicating the application range of the conversion rule.

マッピングデータ生成部32が生成するマッピングデータMDの変換規則の内容funcは、ユーザ設定により事前に指定される。   The content func of the conversion rule of the mapping data MD generated by the mapping data generation unit 32 is designated in advance by user setting.

図7は、ユーザが設定するマッピングデータの内容funcの各種の例を示す図である。図7(a)は、筆圧値Pを入力センサ属性ISAの変換前の値とし、変換後の値として線幅Wである描画属性DAの値を出力する変換規則の例を示している。図中、func1で示す関数は、0.0から1.0までの間で値を取る筆圧値Pに対し、その10倍の値を線幅Wとする変換規則である。図中、func2aで示す関数は、0.0から1.0までの間で値を取る筆圧値Pに対し、その5倍の値を線幅Wとする変換規則である。図中、func2bで示す関数は、0.0から1.0までの間で値を取る筆圧値Pに対し、その20倍の値を線幅Wとする変換規則である。   FIG. 7 is a view showing various examples of the content func of the mapping data set by the user. FIG. 7A shows an example of a conversion rule in which the writing pressure value P is a value before conversion of the input sensor attribute ISA, and the value of the drawing attribute DA which is the line width W is output as the value after conversion. In the drawing, the function indicated by func1 is a conversion rule in which the line width W is a value that is 10 times the value of the writing pressure value P taking a value between 0.0 and 1.0. In the drawing, a function indicated by “func2a” is a conversion rule in which the line width W is a value five times the pen pressure value P which takes a value between 0.0 and 1.0. In the drawing, the function indicated by “func 2 b” is a conversion rule in which the line width W is a value 20 times the pen pressure value P which takes a value between 0.0 and 1.0.

図7(b)は、座標データ(X,Y)及び時刻Tに基づいて導出される速さVを入力センサ属性ISAの変換前の値とし、変換後の値として透明度Aである描画属性DAの値を出力する変換規則の例を示している。図中、func3とfunc3bで示す関数は、速さVが増加するに伴い透明度が単調増加する変換規則を示している。   FIG. 7B shows a drawing attribute DA in which the velocity V derived based on the coordinate data (X, Y) and the time T is a value before conversion of the input sensor attribute ISA, and the value after transparency is transparency A. Shows an example of a conversion rule that outputs the value of. In the figure, the functions indicated by func3 and func3b indicate conversion rules in which the transparency monotonously increases as the velocity V increases.

変換規則は、ユーザが任意に指定することができ、マッピングデータMDの変換規則の関数として、原点を通らないような関数func2cや、非線形の関数func3bなどを利用することもできる。   The conversion rule can be arbitrarily specified by the user, and as a function of the conversion rule of the mapping data MD, a function func2c that does not pass through the origin, a non-linear function func3b, or the like can also be used.

次に、マッピングデータ生成部32が生成するマッピングデータMDについて、図8を用いてより詳しく説明する。図8は、InkMLのフォーマットに従ったマッピングデータMDの例を示している。図8に示すように、本実施の形態によるマッピングデータ生成部32は、2つのマッピングデータMD1,MD2を生成するように構成される。   Next, the mapping data MD generated by the mapping data generation unit 32 will be described in more detail with reference to FIG. FIG. 8 shows an example of the mapping data MD according to the InkML format. As shown in FIG. 8, the mapping data generation unit 32 according to the present embodiment is configured to generate two mapping data MD1 and MD2.

最初に、マッピングデータMD1(第1のマッピングデータ)について説明する。   First, the mapping data MD1 (first mapping data) will be described.

図8の5行目〜6行目は、マッピングデータMD1が、筆圧データP(source="P")を線幅データW(target="W")に変換するための変換規則(第1の変換規則)であることを示している。7行目は、前述したMathMLを用いて表現することを示している。9行目〜11行目は、sourceである筆圧データP(を表す変数p)に対し、数値10を乗算する(<times/>)ことにより、線幅データWを生成する、という図7の変換規則の内容func1を示している。尚、この関数func1による変換規則の適用範囲は、ストロークデータSDの全部であるとしているため、変換規則の適用範囲のデータを含まない。   The fifth to sixth lines in FIG. 8 indicate that the mapping data MD1 is a conversion rule (first method) for converting writing pressure data P (source = "P") to line width data W (target = "W"). Conversion rule)). The seventh line shows that expression is made using MathML described above. In the ninth to eleventh lines, the line width data W is generated by multiplying (<times />) the numerical value 10 by (the variable p representing the pen pressure data P which is the source). The content func1 of the conversion rule of is shown. Since the application range of the conversion rule by the function func1 is assumed to be all of the stroke data SD, data of the application range of the conversion rule is not included.

次に、マッピングデータMD2(第2のマッピングデータ)について説明する。図8の19行目〜20行目は、マッピングデータMD2が、筆圧データP(source="P")を線幅データW(target="W")に変換するための変換規則(第2の変換規則)であることを示している。23行目〜25行目は、sourceである筆圧データP(を表す変数p)に数値5を掛ける(<times/>)ことにより線幅データWを生成するという、図7の変換規則の内容func2aを示している。18行目の"range"は、この関数func2aによる変換規則の適用範囲を示す範囲データrd(第1の範囲データ)の存在と、その範囲の例「"−2,−1"」が示されている。ここで左側の「−2」は範囲の開始点を示し、「−1」は範囲の終了点を示している。   Next, mapping data MD2 (second mapping data) will be described. The 19th to 20th lines in FIG. 8 indicate that the mapping data MD2 is a conversion rule (second one) for converting writing pressure data P (source = "P") into line width data W (target = "W"). Conversion rule)). The 23rd to 25th lines are the conversion rule of FIG. 7 in which line width data W is generated by multiplying the numerical value 5 (<times />) by the pen pressure data P (which is the source). The content func2a is shown. “Range” on the 18th line indicates the presence of range data rd (first range data) indicating the application range of the conversion rule by this function func2a and an example ““ -2, -1 ”of the range. ing. Here, “−2” on the left side indicates the start point of the range, and “−1” indicates the end point of the range.

ここで、範囲データrdの記述方法について詳しく説明する。今、ストロークデータSD内の各ポイントデータPDには、0から始まるインデックス値が付されているとする。範囲データrdは、ストロークデータの範囲を示すために、このポイントデータPDのインデックス値を示すインデックス値情報を使用する。インデックス値情報は、具体的には、インデックス値そのもの、又は、剰余演算を用いた演算規則によってインデックス値を修正してなる修正インデックス値である。   Here, the method of describing the range data rd will be described in detail. Now, it is assumed that each point data PD in the stroke data SD is assigned an index value starting from zero. The range data rd uses index value information indicating the index value of the point data PD to indicate the range of the stroke data. Specifically, the index value information is an index value itself or a corrected index value obtained by correcting the index value according to an operation rule using a residue operation.

演算規則は、例えば、次の式(1)及び式(2)によって表される。ただし、iは修正前のインデックス値であり、jは修正インデックス値であり、nはストロークデータSD内のポイントデータPDのポイントデータ数n(例えば、図3に示したストロークデータSD1については、n=15となる)である。また、mod(a,b)は、aをbで割った場合に得られる剰余を求める関数である。式(1)より理解されるように、修正インデックス値jは、ポイントデータ数nを法として、対応するインデックス値iと合同な整数である。   The operation rule is represented, for example, by the following equation (1) and equation (2). However, i is an index value before correction, j is a correction index value, n is the number n of point data of point data PD in stroke data SD (for example, n for stroke data SD1 shown in FIG. 3) = 15). Also, mod (a, b) is a function for obtaining the remainder obtained when a is divided by b. As understood from equation (1), the corrected index value j is an integer congruent with the corresponding index value i modulo the number of point data n.

Figure 0006526504
Figure 0006526504

式(1)により算出される修正インデックス値jは、ポイントデータPDの総数nによらず、最後のインデックス値(n番目のポイントデータPDの修正インデックス値j)から順に「−1」「−2」「−3」・・・のように1ずつ低下する負の値となる。一方、インデックス値はすべて正の値であるので、範囲データrdに含まれるインデックス値情報の正負を判定することにより、そのインデックス値情報がインデックス値であるか修正インデックス値であるかを判定することができる。   The corrected index value j calculated by the equation (1) is “−1” “−2” in order from the last index value (corrected index value j of the n-th point data PD) regardless of the total number n of point data PD. It becomes a negative value which falls by 1 like "-3". On the other hand, since all index values are positive values, it is determined whether the index value information is the index value or the correction index value by determining whether the index value information included in the range data rd is positive or negative. Can.

図9A乃至図9Dは、範囲データrdの4つの例と、それぞれの例により示されるストロークデータSD0、ストロークデータSD1、及びストロークデータSD4におけるストロークの範囲(端部)を説明する図である。図中破線枠が、各々の例の範囲データrdに対応するストロークの範囲である。   FIGS. 9A to 9D are diagrams for explaining four examples of range data rd and stroke ranges (ends) in stroke data SD0, stroke data SD1, and stroke data SD4 shown by the respective examples. The broken line frame in the figure is the range of the stroke corresponding to the range data rd of each example.

図9Aは、範囲データrdの例としてrange="−2,−1"を指定した場合のストロークの範囲を示す図である。ポイントデータ数nの異なるストロークデータSD0、SD1、及び、SD4に対し、修正インデックス値を用いた表現により、同一の表現でいずれのストロークデータに対しても末尾の端部である最後から2番目のポイントデータPDから最後のポイントデータPDまでの範囲を示すことが可能になる。   FIG. 9A is a diagram showing the range of strokes when range = "-2, -1" is specified as an example of range data rd. For stroke data SD0, SD1 and SD4 with different number of point data n, using the modified index value, the second from the end which is the end of the end for any stroke data in the same expression It becomes possible to indicate the range from point data PD to the last point data PD.

図9Bは、範囲データrdの例としてrange="0,1"を指定した場合のストロークの範囲を示す図である。ポイントデータ数nの異なるストロークデータSD0、SD1、及び、SD4に対し、同一の表現で最初の端部である、最初のポイントデータPDから2番目のポイントデータPDまでの部分の範囲を示すことが可能となる。   FIG. 9B is a diagram showing a stroke range when range = "0, 1" is specified as an example of range data rd. It indicates the range from the first point data PD to the second point data PD, which is the first end in the same expression, for stroke data SD0, SD1 and SD4 different in the number of point data n. It becomes possible.

図9Cは、範囲データrdの例としてrange="−1,0"を指定した場合のストロークの範囲を示す図である。ポイントデータ数nの異なるストロークデータSD0、SD1、及び、SD4に対し、1個の表現で2つの端部を含む範囲を示すことができる。これは、インデックス値及び修正インデックス値によりストロークデータSDに含まれるポイントデータPDを扱うことによる効果である。この点は、特にストロークの両端部に対して特別な処理を要する場合に有益となる。   FIG. 9C is a diagram showing a stroke range when range = "-1, 0" is specified as an example of the range data rd. For stroke data SD0, SD1, and SD4 different in the number of point data n, it is possible to indicate a range including two ends in one expression. This is an effect of handling the point data PD included in the stroke data SD by the index value and the modified index value. This point is particularly useful when special processing is required at both ends of the stroke.

図9Dは、範囲データrdの例としてrange="1、−2"を指定した場合のストロークの範囲を示している。   FIG. 9D shows the stroke range when range = "1, -2" is specified as an example of the range data rd.

このように、範囲データの記述に剰余値を用いた修正インデックス値jを含むインデックス値情報を用いることで以下の効果がある。   As described above, using index value information including a corrected index value j using a remainder value for describing range data has the following effects.

まず、ストロークデータSD0〜SD4の各々のポイントデータPDの総数nによらず、全てのストロークデータSD0〜SD4の末端部の範囲を指定することができる。これは、ストロークの端部を指定する上で、マッピングデータMDの生成にあたって事前にストロークデータSDを参照する必要がないことを意味する。したがって、新たなストロークデータSDがマッピングデータを生成した後にも続けて生成されるようなアプリケーション(例えば、リアルタイムに描画領域を共有するアプリケーション)であっても、事前にストロークデータSDとは独立してマッピングデータMDを生成することが可能になる。   First, regardless of the total number n of point data PD of each of the stroke data SD0 to SD4, the range of the end portion of all the stroke data SD0 to SD4 can be designated. This means that when specifying the end of the stroke, it is not necessary to refer to the stroke data SD in advance in generating the mapping data MD. Therefore, even in the case of an application in which new stroke data SD is continuously generated even after generating mapping data (for example, an application that shares a drawing area in real time), it is independent of stroke data SD in advance. It becomes possible to generate mapping data MD.

また、剰余を用いて算出される修正インデックス値を利用することにより、ストロークデータSDを、修正インデックス値−1が与えられる末尾のポイントデータPDnと、インデックス値0が与えられる先端のポイントデータPD0とが連続している環状のデータとして扱えるようになる。これにより、インクデータの線幅や濃淡の変化の多いストロークデータの両端部に対する変形を1つの範囲データrdで示すことが可能になる。   In addition, by using the correction index value calculated using the remainder, the stroke data SD is obtained by adding point data PDn at the end to which the correction index value -1 is given and point data PD0 at the tip to which the index value 0 is given. Can be treated as continuous circular data. As a result, it is possible to indicate the deformation of both ends of the stroke data having many changes in line width and density of the ink data by one range data rd.

なお、ストロークデータSDの個々のために、途中のポイントデータPDのインデックスを指定する必要がある場合、例えば中央に位置するポイントデータPDを指定する場合などには、図2に破線で示したように、マッピングデータ生成部32にストロークデータSDを供給すればよい。こうすることで、マッピングデータ生成部32は、変換規則の対象となるポイントデータPDのインデックス値を判定し、対応する範囲データに含めることが可能になる。   When it is necessary to designate an index of halfway point data PD for each piece of stroke data SD, for example, when designating point data PD located at the center, as shown by a broken line in FIG. Then, the stroke data SD may be supplied to the mapping data generation unit 32. By doing this, the mapping data generation unit 32 can determine the index value of the point data PD that is the target of the conversion rule and include it in the corresponding range data.

図2に戻り、マッピングデータ生成部32により生成された1以上のマッピングデータMDは、適用順決定部33に供給される。適用順決定部33は、マッピングデータ生成部32から複数のマッピングデータMDが供給された場合に、それらの適用順を決定する機能部である。   Returning to FIG. 2, the one or more pieces of mapping data MD generated by the mapping data generation unit 32 are supplied to the application order determination unit 33. The application order determination unit 33 is a functional unit that determines the application order of the plurality of pieces of mapping data MD supplied from the mapping data generation unit 32.

例えば図8の例では、仮にマッピングデータMD2を適用した後にマッピングデータMD1を適用したとすると、マッピングデータMD1はストロークデータSD0〜SD5に含まれる全インデックス値のポイントデータPD0〜PDnに適用されるものであるから、マッピングデータMD2の適用結果が取り消される結果となってしまう。これに対し、マッピングデータMD1を適用した後にマッピングデータMD2を適用したとすると、マッピングデータMD1によってストロークデータSDに含まれる全インデックス値のポイントデータPD0〜PDnに対して線幅データWを生成した後、その線幅データWを上書きするように一部分(最初の端部、両端部等)のインデックス値のポイントデータPDに対応する線幅データWのみをマッピングデータMD2によって修正することが可能になる(図11で後述する)。   For example, in the example of FIG. 8, assuming that the mapping data MD1 is applied after applying the mapping data MD2, the mapping data MD1 is applied to the point data PD0 to PDn of all the index values included in the stroke data SD0 to SD5. Therefore, the application result of the mapping data MD2 is canceled. On the other hand, if the mapping data MD2 is applied after the mapping data MD1 is applied, the line width data W is generated for the point data PD0 to PDn of all the index values included in the stroke data SD by the mapping data MD1. Then, it becomes possible to correct only the line width data W corresponding to the point data PD of the index value of a part (first end, both ends, etc.) by the mapping data MD2 so that the line width data W is overwritten. This will be described later with reference to FIG.

このように、1つのデジタルインクINKDが複数のマッピングデータMDを含む場合、その適用順によって結果が異なることになるので、適用順を予め規定しておく必要がある。より詳細には、適用順決定部33は、同一の属性データを同一の属性データに変換するように構成された2つのマッピングデータMDが存在し、かつ、これらの範囲データが重なりを有する場合に、例えば、ストロークデータSDの一部分に対するマッピングデータMD2によりストロークデータSDの全部に対するマッピングデータMD1を上書きするなどのユーザ設定に応じて、これらのマッピングデータMDの適用順を決定すればよい。こうすることで、ユーザが意図したとおりの属性データ(図8の例では線幅データW)を得ることが可能になる。   As described above, when one digital ink INKD includes a plurality of mapping data MD, the result is different depending on the application order, so the application order needs to be defined in advance. More specifically, in the case where there are two mapping data MD configured to convert the same attribute data into the same attribute data, the application order determination unit 33 has an overlap. For example, the application order of the mapping data MD may be determined according to user settings such as overwriting the mapping data MD1 for all of the stroke data SD with the mapping data MD2 for a part of the stroke data SD. This makes it possible to obtain attribute data (line width data W in the example of FIG. 8) as intended by the user.

デジタルインク組立部31は、ストロークデータ生成部20から供給されるストロークデータSDを、図6に示したストロークデータ記述ブロックSDBに配置する。   The digital ink assembly unit 31 arranges the stroke data SD supplied from the stroke data generation unit 20 in the stroke data description block SDB shown in FIG.

また、デジタルインク組立部31は、適用順決定部33から供給される1又は複数のマッピングデータMDを、図6に示したマッピングデータ記述ブロックMDBに配置する。この場合において、適用順決定部33から複数のマッピングデータMDが供給された場合、デジタルインク組立部31は、適用順決定部33により決定された適用順に基づいて、これら複数のマッピングデータMDの配置順を決定する。具体的な配置順は、後述するデジタルインク再生部40の仕様によるが、先に適用されるべきマッピングデータMD(図8の例ではマッピングデータMD1)が、後に適用されるべきマッピングデータMD(図8の例ではマッピングデータMD2)より上側に来るように配置することにより、再生部30が、このデジタルインクINKDをインタープリトする場合に、データの先頭から順にマッピングデータMD1、MD2、乃至MDmの順で変換規則を適用することで、再生時の適用順を適用順決定部33により決定された適用順と同じ順序にすることができる。   The digital ink assembly unit 31 also arranges one or more mapping data MD supplied from the application order determination unit 33 in the mapping data description block MDB shown in FIG. In this case, when the plurality of mapping data MD are supplied from the application order determination unit 33, the digital ink assembling unit 31 arranges the plurality of mapping data MD based on the application order determined by the application order determination unit 33. Determine the order. Although the specific arrangement order depends on the specification of the digital ink reproducing unit 40 described later, the mapping data MD to be applied first (the mapping data MD1 in the example of FIG. 8) should be applied later to the mapping data MD (FIG. 8). In the example of 8, by arranging the data to be above the mapping data MD2), when the reproducing unit 30 interprets this digital ink INKD, the mapping data MD1, MD2,. By applying the conversion rule, the application order at the time of reproduction can be made the same as the application order determined by the application order determination unit 33.

又、デジタルインク組立部31は、設定データ記述ブロックDDBに、ストロークデータSDのフォーマットに関するスタイルなどを記述した描画スタイルデータDDを加える。   Also, the digital ink assembly unit 31 adds drawing style data DD in which a style or the like regarding the format of the stroke data SD is described to the setting data description block DDB.

図10は、描画スタイルデータDDの例として、ストロークデータSDの生成時にアプリケーションに設定されていたブラシのスタイルを示す描画スタイル情報DD1を示している。   FIG. 10 shows, as an example of the drawing style data DD, drawing style information DD1 indicating the style of the brush set in the application at the time of generation of the stroke data SD.

このようにして、デジタルインク組立部31は、ストロークデータSDとマッピングデータMDと描画スタイルデータDDとをXML文書として組み合わせることで、InkMLのフォーマットに合わせてデジタルインクINKDを組み立てる。   Thus, the digital ink assembly unit 31 assembles the digital ink INKD in accordance with the InkML format by combining the stroke data SD, the mapping data MD, and the drawing style data DD as an XML document.

尚、デジタルインク組立部31は、こうして組み立てたデジタルインクINKDを、図6の行頭で宣言したXMLファイルの符号化方法(UTF8等)によりバイト列にしてXMLファイルとして、図1の記憶装置2aやネットワークメディア等に出力する。このようにして、本実施の形態のデジタルインク処理装置2は、デジタルインクINKDを出力する。   The digital ink assembly unit 31 converts the digital ink INKD thus assembled into a byte string according to the encoding method (UTF 8 or the like) of the XML file declared at the beginning of the line in FIG. Output to network media etc. Thus, the digital ink processing device 2 of the present embodiment outputs the digital ink INKD.

<デジタルインク再生処理>
次に、デジタルインクの再生処理について説明する。
<Digital ink recycling process>
Next, the reproduction process of digital ink will be described.

図2に示したデジタルインク再生部40は、デジタルインク処理装置2のうち、デジタルインク生成部30により生成されたデジタルインクINKDを再生する役割を果たす機能部である。   The digital ink reproducing unit 40 illustrated in FIG. 2 is a functional unit that plays the role of reproducing the digital ink INKD generated by the digital ink generating unit 30 in the digital ink processing apparatus 2.

デジタルインク再生部40が行う処理には、デジタルインクINKDからストロークデータSD(第1のストロークデータ)及びマッピングデータMDを抽出し、抽出したストロークデータSDに含まれる入力センサ属性ISAに対して、抽出したマッピングデータMDを適用することにより、描画属性DAの値を含む修正されたストロークデータSD(第2のストロークデータ)を生成する処理が含まれる。   In the process performed by the digital ink regenerating unit 40, stroke data SD (first stroke data) and mapping data MD are extracted from the digital ink INKD, and extraction is performed on the input sensor attribute ISA included in the extracted stroke data SD. A process of generating corrected stroke data SD (second stroke data) including the value of the drawing attribute DA is included by applying the mapping data MD.

以下、このデジタルインク再生処理について、図11を用いて具体的に説明する。以下では、処理対象のデジタルインクINKDが図8に示したマッピングデータ記述ブロックMDBを含むものとして説明する。   Hereinafter, this digital ink reproduction processing will be specifically described with reference to FIG. In the following, it is assumed that the digital ink INKD to be processed includes the mapping data description block MDB shown in FIG.

図11(a)は、デジタルインク再生部40によってデジタルインクINKDから抽出された状態のストロークデータSD1を示している。ストロークデータSD1は、入力センサ属性ISAとして、X座標を示す第1の属性データX、Y座標を示す第2の属性データY、筆圧値を示す第3の属性データPの3つの属性データを含んでいる。   FIG. 11A shows the stroke data SD1 in a state of being extracted from the digital ink INKD by the digital ink reproducing unit 40. FIG. The stroke data SD1 includes, as an input sensor attribute ISA, three attribute data of a first attribute data X indicating an X coordinate, a second attribute data Y indicating a Y coordinate, and a third attribute data P indicating a writing pressure value. It contains.

デジタルインク再生部40は、図6に示したデジタルインクINKD内のマッピングデータ記述ブロックMDBから、図8に示したマッピングデータMD1,MD2を順に抽出する。   The digital ink reproducing unit 40 sequentially extracts the mapping data MD1 and MD2 shown in FIG. 8 from the mapping data description block MDB in the digital ink INKD shown in FIG.

デジタルインク再生部40は、抽出した2つのマッピングデータMD1及びMD2のうち、最初に抽出したマッピングデータMD1をまずストロークデータSD1に適用する。   The digital ink reproducing unit 40 first applies the mapping data MD1 extracted first from the two extracted mapping data MD1 and MD2 to the stroke data SD1.

これにより、図11(b)に示すように、マッピングデータMD1適用後のストロークデータSD1が得られる。MD1適用後のストロークデータSDは、変換前の第1〜第3の属性データX,Y,Pに加え、第4の属性データとして新たな描画属性DAである線幅Wの値を含む。   As a result, as shown in FIG. 11B, the stroke data SD1 after the application of the mapping data MD1 is obtained. The stroke data SD after application of MD1 includes the value of the line width W which is a new drawing attribute DA as fourth attribute data, in addition to the first to third attribute data X, Y, P before conversion.

ここで、図8に示すマッピングデータMD1には、範囲データrdについての明示的な記述が存在しない。このように明示的な範囲の指定がない場合、デジタルインク再生部40は、従前の<mappping>要素のルールに従い、ストローク全部(ストロークデータSDに含まれる全部のインデックスのポイントデータPD)に対しマッピングデータMD1が適用されるものとして処理を行う。これにより、図8に示すマッピングデータMD1に関しては、ストロークデータSDの全部分に対して変換規則が適用されることになる。図11中、rd1で示す破線枠は、ストロークデータSDのうちマッピングデータMD1にかかる変換規則が適用されるストロークの範囲を示している。又、rd1で示す破線枠内の値は、図7のfunc1(10倍)を変換規則の内容とするマッピングデータMD1により得られた線幅Wの値を示している。   Here, there is no explicit description of the range data rd in the mapping data MD1 shown in FIG. Thus, when there is no specification of an explicit range, the digital ink reproducing unit 40 maps the entire stroke (point data PD of all the indexes included in the stroke data SD) according to the rule of the conventional <mappping> element. It processes as data MD1 is applied. As a result, regarding the mapping data MD1 shown in FIG. 8, the conversion rule is applied to all parts of the stroke data SD. In FIG. 11, a broken line frame indicated by rd1 indicates the range of the stroke to which the conversion rule related to the mapping data MD1 is applied among the stroke data SD. The values in the broken line frame indicated by rd1 represent the values of the line width W obtained by the mapping data MD1 in which the content of the conversion rule is func1 (10 times) in FIG.

図8のマッピングデータMD1内の変換規則func1に従ってデジタルインク再生部40が処理を行った結果、図11(b)に示すように、マッピングデータMD1適用後のストロークデータSDでは、各ポイントデータPD内の第4の属性データ(線幅W)の値が筆圧データPの値の10倍の値として導出されている。   As a result of the digital ink reproducing unit 40 performing processing according to the conversion rule func1 in the mapping data MD1 of FIG. 8, as shown in FIG. 11B, in the stroke data SD after application of the mapping data MD1, each point data PD The value of the fourth attribute data (line width W) is derived as a value 10 times the value of the pen pressure data P.

次に、デジタルインク再生部40は、図8に示すマッピングデータMD2を、その中に記述されている範囲データrdにより示されるストロークデータSDの範囲(部分)に対して適用する。なお、図8に示した範囲データrdは"−2,−1"であったが、図11(c)には、範囲データrdの値が"−1,−1"であるとした場合の例を示している。図11(c)にrd2で示す破線枠は、範囲データrdの値が"−1,−1"であるとした場合にマッピングデータMD2が適用される範囲を示している。rd2で示す破線枠の内の値は、図7のfunc2a(5倍)を変換規則の内容とするマッピングデータMD2により得られた描画属性DA(第4の属性データ)の値を示している。   Next, the digital ink reproducing unit 40 applies the mapping data MD2 shown in FIG. 8 to the range (portion) of the stroke data SD indicated by the range data rd described therein. Although the range data rd shown in FIG. 8 is “−2, −1”, it is assumed that the value of the range data rd is “−1, −1” in FIG. An example is shown. A broken line frame indicated by rd2 in FIG. 11C indicates a range to which the mapping data MD2 is applied when the value of the range data rd is “−1, −1”. The values in the broken line frame indicated by rd2 indicate the values of the drawing attribute DA (fourth attribute data) obtained by the mapping data MD2 in which the content of the conversion rule is func2a (five times) shown in FIG.

ポイントデータPD14について、図11(c)に示すマッピングデータMD2適用後の値「3」を図11(b)に示すマッピングデータMD1適用後の値「6」と比較すると理解されるように、マッピングデータMD2適用後のストロークデータSDにおいては、ストロークの一部分(最後の部分)のポイントデータPD14の描画属性DAの第4の属性データである線幅Wの値が部分的に減少している。これは、マッピングデータMD2内に、筆圧データPを5倍することにより筆圧データPを線幅データWに変換すること、及び、その適用範囲がインデックス値−1で示される最後のポイントデータPDのみであること、が記述されていることに対応するものである。   As can be understood by comparing the value “3” after the application of the mapping data MD2 shown in FIG. 11C with the value “6” after the application of the mapping data MD1 shown in FIG. In the stroke data SD after application of the data MD2, the value of the line width W which is the fourth attribute data of the drawing attribute DA of the point data PD14 of a part (last part) of the stroke is partially decreased. This is to convert the pen pressure data P into the line width data W by multiplying the pen pressure data P by 5 in the mapping data MD2, and the last point data whose application range is indicated by the index value -1. It corresponds to the fact that only PD is described.

以上のようにして、入力センサ属性ISAの値から描画属性DAを導出することにより変換後のストロークデータSDを生成したデジタルインク再生部40は、上述した描画スタイルDDなどの他の情報に基づいて既存の描画処理方法を適用することにより画像信号を生成する。   As described above, the digital ink reproducing unit 40 that has generated the stroke data SD after conversion by deriving the drawing attribute DA from the value of the input sensor attribute ISA is based on other information such as the drawing style DD described above. An image signal is generated by applying an existing drawing processing method.

図12は、既存の描画処理方法の例として、非特許文献6に記載された、描画処理の例を模式化したものである。図中、白丸PD0〜PD14は、ストロークデータSD1に含まれる15個のポイントデータPDを示している。白丸中の数字は、ポイントデータPD0〜PD15の各々についての第4の属性Wの値を示している。図中、各々の白丸の円の半径は、第4の属性Wの値に比例した値で記載している。例えば、ポイントデータPD0は第4の属性Wの値である10を径とし、ポイントデータPD14はマッピングデータMD2により得られた第4の属性(線幅データW)の値である3を径とする円で記載されている。   FIG. 12 schematically shows an example of the drawing processing described in Non-Patent Document 6 as an example of the existing drawing processing method. In the drawing, white circles PD0 to PD14 indicate fifteen point data PD included in the stroke data SD1. The numbers in the white circles indicate the values of the fourth attribute W for each of the point data PD0 to PD15. In the figure, the radius of the circle of each white circle is described as a value proportional to the value of the fourth attribute W. For example, the point data PD0 has a diameter of 10 which is the value of the fourth attribute W, and the point data PD14 has a diameter of 3 which is the value of the fourth attribute (line width data W) obtained by the mapping data MD2. It is described in a circle.

デジタルインク再生部40は、ポイントデータPD0〜PD14の各々の円に接するような2つの包絡線(内側の包絡線IE、外側の包絡線OE)を導出する。そして、得られた2つの包絡線IE、OEをストロークデータSD1の形状の輪郭とする。例えばこのようにして、デジタルインク再生部40は、線幅データWに比例した線幅をストロークデータの線幅とした画像信号を生成することができる。尚、変換後のストロークデータSDの描画方法はこれに限るものではなく、既存の描画方法を利用するとしてよい。   The digital ink reproducing unit 40 derives two envelopes (inner envelope IE, outer envelope OE) that are in contact with the circle of each of the point data PD0 to PD14. Then, the obtained two envelopes IE and OE are used as contours of the shape of the stroke data SD1. For example, in this manner, the digital ink reproducing unit 40 can generate an image signal in which the line width proportional to the line width data W is the line width of the stroke data. The drawing method of the stroke data SD after conversion is not limited to this, and an existing drawing method may be used.

デジタルインク再生部40により生成された画像信号は、図1に示すように、ディスプレイ5に出力される。これにより、ユーザの目に見える形で、ストロークデータSD0〜SD5について、マッピングデータMD2により修正されたストロークデータSDが表示されることになる。   The image signal generated by the digital ink reproducing unit 40 is output to the display 5 as shown in FIG. As a result, the stroke data SD corrected by the mapping data MD2 is displayed for the stroke data SD0 to SD5 in a form visible to the user.

図13A〜図13Dは、以上のようにして画像信号にされたストロークデータSD(ストロークデータSD0〜SD4)のイメージ例を示している。   13A to 13D show image examples of the stroke data SD (stroke data SD0 to SD4) converted into the image signal as described above.

図13Aは、図3に示したストロークデータSD0〜SD4に対し、筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用して得られたストロークデータSDから再生された画像信号を示している。   FIG. 13A is stroke data obtained by applying the conversion rule func1 for obtaining the line width W by multiplying the pen pressure P by 10 with respect to the stroke data SD0 to SD4 shown in FIG. 3 to all parts of the stroke data. It shows an image signal reproduced from the SD.

図13Bは、図3に示したストロークデータSD0〜SD4に対し、(1)筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用し、更に、(2)筆圧Pを5倍して線幅Wを得るという変換規則func2aを、ストロークの図中破線枠で示す末尾部分に対して適用して得られたストロークデータSDから再生された画像信号を示している。   13B applies the conversion rule func1 for obtaining the line width W by multiplying the stroke pressure P by 10 with respect to the stroke data SD0 to SD4 shown in FIG. (2) An image signal reproduced from the stroke data SD obtained by applying the conversion rule func2a to obtain the line width W by multiplying the pen pressure P by 5 to the end portion of the stroke shown by the broken line frame in the figure. Is shown.

図13Cは、図3に示したストロークデータSD0〜SD4に対し、(1)筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用し、更に、(2)筆圧Pを5倍して線幅Wを得るという変換規則func2aを、ストロークの図中破線枠で示す末尾と先端との両方の端部に対して適用して得られたストロークデータSDから再生された画像信号を示している。   13C applies the conversion rule func1 for obtaining the line width W by multiplying the stroke pressure P by 10 with respect to the stroke data SD0 to SD4 shown in FIG. 3 with respect to all parts of the stroke data; (2) Stroke data obtained by applying a conversion rule "func2a" in which the stroke pressure P is multiplied by 5 to obtain the line width W with respect to both ends of the end and the tip shown by the broken line frame in the drawing of the stroke. It shows an image signal reproduced from the SD.

図13Dは、図3に示したストロークデータSD0〜SD4に対し、(1)筆圧Pを10倍して線幅Wを得る変換規則func1をストロークデータの全部分に対して適用し、更に、(2)筆圧Pを20倍して線幅Wを得るという変換規則func2bを、ストロークの図中破線枠で示す末尾と先端との両方の端部に対して適用して得られたストロークデータSDから再生された画像信号を示している。   FIG. 13D applies the conversion rule func1 for obtaining the line width W by multiplying the stroke pressure P by 10 with respect to the stroke data SD0 to SD4 shown in FIG. (2) Stroke data obtained by applying a conversion rule func2b of multiplying the pen pressure P by 20 to obtain the line width W to both ends of the end and the tip shown by the broken line frame in the drawing of the stroke It shows an image signal reproduced from the SD.

以上説明したように、本実施の形態による入力システム1(特にデジタルインク生成部30)によれば、筆圧データ等の入力センサ属性ISAを示すデータを失うことなく、線幅Wあるいは透明度Aなどのストロークデータの描画属性DAの値を導出するための変換規則を記述したインクデータINKDを生成することができる。   As described above, according to the input system 1 (in particular, the digital ink generation unit 30) according to the present embodiment, the line width W or the transparency A or the like can be obtained without losing data indicating the input sensor attribute ISA such as pen pressure data. It is possible to generate ink data INKD in which conversion rules for deriving the value of the drawing attribute DA of the stroke data are described.

これにより、描画属性DAの値(線幅Wや透明度A)を、入力センサ属性ISAのどの値からどのように導出したのかをデジタルインクINKDが示すことができることになるので、過去に生成したデジタルインクINKDに含まれる筆圧データPと線幅Wとの対応関係を一括して変更することや、デジタルインクINKDに(描画には直接用いられないにも関わらず)保存されている筆圧データPをシグネチャ認証の比較パラメータに利用することも可能になる。   As a result, since the digital ink INKD can show how the value (line width W or transparency A) of the drawing attribute DA is derived from which value of the input sensor attribute ISA, the digital generated in the past Changing the correspondence between the pen pressure data P and the line width W contained in the ink INKD collectively, or pen pressure data stored in the digital ink INKD (in spite of not being used directly for drawing) It also becomes possible to use P as a comparison parameter of signature authentication.

また、本実施の形態にかかるデジタルインクINKDの生成方法によれば、ストロークデータSDのうち、一部分の範囲に対してマッピングデータMD内の変換規則を適用する規則を記述したデジタルインクINKDを生成することが可能になる。したがって、上述した例のように、ストロークデータSDの始点と終点のみに変換規則が適用されるように構成することも可能になるので、図13A〜図13Dに例示したように筆跡について高い表現能力を有するデジタルインクINKDを生成することが可能になる。また、インデックス値と、剰余演算を用いて得られる修正インデックス値とを用いて範囲データの端点を表現するため、末端部、又は、末端部と先端部の両方を指定する変換規則を、ストロークデータSDが生成される前に事前に得ることが可能になる。   Further, according to the method of generating digital ink INKD according to the present embodiment, digital ink INKD in which a rule for applying the conversion rule in mapping data MD to the range of a part of stroke data SD is generated. It becomes possible. Therefore, as in the above-described example, the conversion rule can be configured to be applied only to the start point and the end point of the stroke data SD, so high expressive ability of handwriting as illustrated in FIGS. 13A to 13D. It is possible to generate a digital ink INKD having In addition, in order to express the end point of the range data using the index value and the corrected index value obtained by using the remainder operation, a conversion rule for specifying the end portion or both the end portion and the tip portion is used as stroke data It is possible to obtain in advance before SD is generated.

(実施の形態2)
次に、本発明の第2の実施の形態による入力システム1について説明する。本実施の形態による入力システム1のシステム構成及びデジタルインク処理装置2の機能ブロックは、図1及び図2に示した第1の実施の形態によるものと同様である。
Second Embodiment
Next, an input system 1 according to a second embodiment of the present invention will be described. The system configuration of the input system 1 according to the present embodiment and the functional blocks of the digital ink processing apparatus 2 are the same as those according to the first embodiment shown in FIGS. 1 and 2.

本実施の形態による入力システム1は、ストロークデータ生成部20から出力されるストロークデータSDの内容、並びに、マッピングデータ生成部32及びデジタルインク再生部40それぞれの内部処理の点で第1の実施の形態による入力システム1と異なるので、第1の実施の形態と同一の構成には同一の符号を付して説明を省略し、以下では、第1の実施の形態との相違点に着目して説明する。   The input system 1 according to the present embodiment is a first embodiment in terms of the contents of the stroke data SD output from the stroke data generation unit 20 and the internal processing of the mapping data generation unit 32 and the digital ink reproduction unit 40 respectively. The configuration is different from that of the input system 1 according to the embodiment, so the same components as those of the first embodiment are denoted by the same reference numerals and the description thereof is omitted. In the following, focusing on differences from the first embodiment explain.

本実施の形態によるストロークデータ生成部20は、座標データX、座標データY、及び時刻データTの3種類の入力センサ属性ISAを含むストロークデータSDを生成する。図14に、本実施の形態によるストロークデータ生成部20によって生成されるストロークデータSDの例として、10個のポイントデータPD0〜PD9を含むストロークデータSD5を示す。   The stroke data generation unit 20 according to the present embodiment generates stroke data SD including three types of input sensor attributes ISA: coordinate data X, coordinate data Y, and time data T. FIG. 14 shows stroke data SD5 including ten point data PD0 to PD9 as an example of the stroke data SD generated by the stroke data generation unit 20 according to the present embodiment.

図14の例に示されるように、本実施の形態においても、ストロークデータSDはInkMLの形式により生成されるものとし、具体的には、カンマ(,)によって各ポイントデータPDが区切られた形式により生成される。また、各ポイントデータPD内では、半角スペースによって各属性データが区切られている。ポイントデータPD内における各属性データの配置は、座標データX、座標データY、及び時刻データTの順となる。例えば、上記の例における2つ目のポイントデータPD1に関して言えば、左側の「8」が座標データX、中央の「0」が座標データY、右側の「'16」の右側の数値16が時刻データTとなる。なお、各ポイントデータPDの時刻データTは、最初のインデックス値に対応する時刻を0ミリ秒とし、そこからの経過時間によって表現されている。   As shown in the example of FIG. 14, also in this embodiment, the stroke data SD is generated in the form of InkML, and more specifically, a form in which each point data PD is divided by a comma (,). Generated by In each point data PD, each attribute data is separated by a half-width space. Arrangement of each attribute data in point data PD becomes order of coordinate data X, coordinate data Y, and time data T. For example, regarding the second point data PD1 in the above example, "8" on the left is the coordinate data X, "0" at the center is the coordinate data Y, and the number 16 on the right of "16" on the right is the time It becomes data T. The time data T of each point data PD is represented by an elapsed time from the time corresponding to the first index value being 0 milliseconds.

説明の単純のため、図14の例は、16ミリ秒の一定間隔で座標データ(X,Y)が得られている例を示している。座標データ(X,Y)についても、Y座標は0で固定とし、X方向にのみ等加速度(16ミリ秒毎に速さが8増加する速さ)で電子ペン4を移動させた場合に得られる座標の例を示している。   For simplicity of explanation, the example of FIG. 14 shows an example in which coordinate data (X, Y) are obtained at regular intervals of 16 milliseconds. Also for coordinate data (X, Y), the Y coordinate is fixed at 0, and it is obtained when the electronic pen 4 is moved at uniform acceleration only in the X direction (speed at which the speed increases by 16 every 16 milliseconds). Shows an example of the coordinates of

本実施の形態によるマッピングデータ生成部32は、1つのストロークデータSDに含まれる複数のポイントデータPDのうち第1のポイントデータPDiの第1の入力センサ属性ISA(例えば座標データ(X,Y)又は時刻データT)の値と、上記第1のポイントデータPDiとはインデックス値が異なる第2のポイントデータPDi+1に含まれる第1の入力センサ属性ISAの値とに基づいて、透明度データAである描画属性DAを得る変換規則を含むマッピングデータMDを生成するように構成される。   The mapping data generation unit 32 according to the present embodiment determines the first input sensor attribute ISA (for example, coordinate data (X, Y)) of the first point data PDi among the plurality of point data PD included in one stroke data SD. Alternatively, the transparency data A is based on the value of the time data T) and the value of the first input sensor attribute ISA included in the second point data PDi + 1 having a different index value from the first point data PDi. It is configured to generate mapping data MD including a conversion rule for obtaining the drawing attribute DA.

本実施の形態によるマッピングデータ生成部32が生成するマッピングデータMDについて、図15を用いてより詳しく説明する。   The mapping data MD generated by the mapping data generation unit 32 according to the present embodiment will be described in more detail with reference to FIG.

図15は、本実施の形態によるマッピングデータ生成部32が生成するマッピングデータMD3を示す図である。   FIG. 15 is a diagram showing mapping data MD3 generated by the mapping data generation unit 32 according to the present embodiment.

3行目〜7行目は、変換元となる入力センサ属性(X,Y、T)と、変換により得られる描画属性(透明度A)を定義する部分である。   The third to seventh lines are portions defining input sensor attributes (X, Y, T) as conversion sources, and drawing attributes (transparency A) obtained by conversion.

11行目〜37行目はマッピングデータMD3に含まれる変換規則を示す部分である。具体的には、次の式(2)及び式(3)によりi番目のインデックス値に対応する透明度データAを生成する、という変換規則が記述されている。ここで、式(3)中のX,Xi−1,Y,Yi−1,T,Ti−1はそれぞれ、i番目のインデックス値に対応する座標データX、i−1番目のインデックス値に対応する座標データX、i番目のインデックス値に対応する座標データY、i−1番目のインデックス値に対応する座標データY、i番目のインデックス値に対応する時刻データT、i−1番目のインデックス値に対応する時刻データTをそれぞれ示している。 The 11th to 37th lines indicate a conversion rule included in the mapping data MD3. Specifically, to generate the i-th transparency data A i corresponding to the index value, the conversion rule that are described by the following equation (2) and (3). Here, X i , X i−1 , Y i , Y i−1 , T i , T i−1 in the equation (3) are coordinate data X, i−1 corresponding to the ith index value, respectively. Coordinate data X corresponding to the i th index value, coordinate data Y corresponding to the i th index value, coordinate data Y corresponding to the i−1 th index value, time data T i corresponding to the i th index value The time data T corresponding to the -1st index value are shown.

Figure 0006526504
Figure 0006526504

上記式(2)及び式(3)による変換規則の特徴は、i番目のインデックス値に対応する透明度データAを生成する際に、i番目ではないインデックス値に対応する属性データを参照している点にある。具体的には、1つ前のインデックス値i−1に対応する属性データを参照しており、式(3)によって求められるVは、インデックス値i−1に対応する位置からインデックス値iに対応する位置に移動するまでの間の電子ペン4の移動速度を表している。式(2)による変換規則は、移動速度Vが大きくなるに伴い、透明度が大きくなるような関数(図7(b)に示したfunc3)が設定されていることになる。 The feature of the conversion rule according to the above equations (2) and (3) is that, when generating the transparency data A i corresponding to the i th index value, reference is made to the attribute data corresponding to the non i th index value The point is. Specifically, attribute data corresponding to the immediately preceding index value i-1 is referred to, and V i obtained by the equation (3) is changed from the position corresponding to the index value i-1 to the index value i. It represents the moving speed of the electronic pen 4 until it moves to the corresponding position. According to the conversion rule by the equation (2), a function (func 3 shown in FIG. 7B) is set such that the transparency increases as the moving speed V i increases.

ここで、図15に示したマッピングデータMD3と、上記式(2)及び式(3)との対応関係について説明する。まず図15において、dxで示す22行目「'x」、dyで示す27行目「'y」、dtで示す32行目の「't」はそれぞれ、「X−Xi−1」「Y−Yi−1」「T−Ti−1」を意味している。 Here, the correspondence between the mapping data MD3 shown in FIG. 15 and the equations (2) and (3) will be described. First, in FIG. 15, the 22nd line “x” indicated by dx, the “27” line “y” indicated by dy, and the “t” in the 32nd line indicated by dt are “X i −X i−1 ” respectively. means "Y i -Y i-1", "T i -T i-1".

図15内の破線枠Aで囲んだ部分は、Xの変位量である「X−Xi−1」を2乗した値を示している。破線枠Bで囲んだ部分は、Yの変位量である「Y−Yi−1」を2乗した値を示している。図中破線枠Cで囲んだ部分は、式(3)右辺の分子に対応する2次元平面内での変位量を示している。破線枠Dで囲んだ部分は、式(3)の右辺全体に対応しており、時間「T−Ti−1」の区間の速さを示している。破線枠Eで囲んだ部分は、式(2)右辺の右辺全体「20・V」に対応している。このように、図14に示したマッピングデータMD3には、式(2)及び式(3)により示される入力センサ属性ISAから描画属性DA(透明度A)への変換規則が記述されている。 The portion enclosed by a broken line frame A in FIG. 15 indicates a value obtained by squaring “X i −X i−1 ” which is the displacement amount of X. A portion surrounded by a broken line frame B indicates a value obtained by squaring “Y i −Y i −1 ” which is a displacement amount of Y. The portion enclosed by a broken line frame C in the drawing indicates the amount of displacement in a two-dimensional plane corresponding to the numerator on the right side of Formula (3). The portion surrounded by the dashed line frame D corresponds to the entire right side of the equation (3), and indicates the speed of the section of time “T i −T i−1 ”. The portion enclosed by the broken line frame E corresponds to the entire right side “20 · V i ” of the right side of the equation (2). Thus, in the mapping data MD3 shown in FIG. 14, the conversion rule from the input sensor attribute ISA to the drawing attribute DA (transparency A) shown by the equations (2) and (3) is described.

このように、本実施の形態のデジタルインク処理装置2は、マッピングデータMD3を含むデジタルインクINKDを生成、出力する。   As described above, the digital ink processing apparatus 2 of the present embodiment generates and outputs the digital ink INKD including the mapping data MD3.

次に、図16を用いて、本実施の形態におけるデジタルインク再生処理について説明する。   Next, digital ink regeneration processing in the present embodiment will be described using FIG.

まず、デジタルインクデータ再生部30は、デジタルインクINKDからストロークデータSD5とマッピングデータMD3とを抽出する。   First, the digital ink data reproduction unit 30 extracts stroke data SD5 and mapping data MD3 from the digital ink INKD.

図16(a)は、デジタルインク再生部40がデジタルインクINKDから抽出した変換元のストロークデータSD5を示している。図14で説明した通りストロークデータSD5は、入力センサ属性ISAとして、X座標を示す第1の属性データX、Y座標を示す第2の属性データY、時刻情報を示す第3の属性データTの3つのデータを含んでいる。   FIG. 16A shows stroke data SD5 of the conversion source extracted by the digital ink reproducing unit 40 from the digital ink INKD. As described in FIG. 14, the stroke data SD5 includes, as the input sensor attribute ISA, first attribute data X indicating X coordinates, second attribute data Y indicating Y coordinates, and third attribute data T indicating time information. It contains three data.

次に、デジタルインクINKDを取得したデジタルインク再生部40は、抽出したストロークデータSD5に抽出したマッピングデータMD3を適用する。図16(b)は、マッピングデータMD3の適用により得られたストロークデータSD5を示している。この時点におけるストロークデータSD5は、入力センサ属性ISAから導出された第4の属性(描画属性DA)の透明度データAを含んでいる。なお、上記式(2)及び式(3)によっては、1番目のインデックス値に対応する透明度データAが得られないので、デジタルインク再生部40は、便宜的に、透明度データAの値10を透明度データAの値10として設定している。 Next, the digital ink reproducing unit 40 that has acquired the digital ink INKD applies the extracted mapping data MD3 to the extracted stroke data SD5. FIG. 16B shows stroke data SD5 obtained by application of the mapping data MD3. The stroke data SD5 at this time point includes transparency data A of the fourth attribute (drawing attribute DA) derived from the input sensor attribute ISA. It should be noted that the transparency data A 0 corresponding to the first index value can not be obtained according to the above equation (2) and equation (3), so the digital ink reproducing unit 40 conveniently uses the value of the transparency data A 1 has set 10 as the value 10 of the transparency data a 0.

図16(c)は、変換規則func3をストロークの全部ではなく、範囲データrd="−3、−1"の部分に適用した場合に得られるストロークデータSDを示している。この例では、ストローク中で末尾から3つの透明度データAのみが得られ、先頭部分等他の部分については値の得られない場合の透明度のデフォルトの値0としている。   FIG. 16C shows stroke data SD obtained when the conversion rule func3 is applied not to the entire stroke but to the range data rd = "-3, -1". In this example, only three pieces of transparency data A from the end in the stroke are obtained, and for other portions such as the head portion, the default value 0 of the transparency when no value is obtained is used.

このように、本実施の形態によるデジタルインクデータ再生処理においては、変換規則により得られた透明度Aを含むストロークデータSDを得ることができる。   As described above, in the digital ink data reproduction process according to the present embodiment, the stroke data SD including the transparency A obtained by the conversion rule can be obtained.

以上のようにして、入力センサ属性ISAの値から描画属性DAを導出することにより変換後のストロークデータSDを生成したデジタルインク再生部40は、上述した描画スタイルDDなどの他の情報に基づいて既存の描画処理方法を適用することにより画像信号を生成する。   As described above, the digital ink reproducing unit 40 that has generated the stroke data SD after conversion by deriving the drawing attribute DA from the value of the input sensor attribute ISA is based on other information such as the drawing style DD described above. An image signal is generated by applying an existing drawing processing method.

図17は、本実施の形態によるストロークデータSDを説明するための図である。   FIG. 17 is a diagram for explaining the stroke data SD according to the present embodiment.

図17の最上段Aは、図14で示したストロークデータSD5に含まれるポイントデータPD0〜PD9までの10個の座標データ(X,Y)の位置関係を示している。   The top row A of FIG. 17 shows the positional relationship of ten coordinate data (X, Y) from point data PD0 to PD9 included in the stroke data SD5 shown in FIG.

図17の中段Bは、各々のポイントデータPD0〜PD9を黒色の円で表現し、その黒色の透明度Aに図16(b)に示した透明度Aの値を設定することにより得られるストロークデータSD5に基づいて生成される画像信号のイメージ図である。時間当たりの変位量あるいは移動速度Vが大きくなるにつれて透明度Aが大きくなる設定により、単位時間あたりにインクが紙に吸収される量が減少する状態を再現でき、より自然なストロークに近い表現を再現できる。   The middle row B of FIG. 17 represents each point data PD0 to PD9 as a black circle, and stroke data SD5 obtained by setting the value of the transparency A shown in FIG. It is an image figure of the picture signal generated based on. By setting the transparency A to increase as the displacement amount per hour or the moving speed V increases, it is possible to reproduce a state in which the amount of ink absorbed by the paper per unit time decreases and reproduces a more natural stroke expression it can.

図17の下段Cは、各々のポイントデータPD0〜PD9を黒色の円で表現し、その黒色の透明度Aに図16(c)に示した透明度Aの値を設定することにより得られるストロークデータSD5に基づいて生成される画像信号のイメージ図である。ストロークのうち末尾の端部の範囲にのみ部分的に変換規則func3を適用することにより、人間の手の加速的な動き、漢字の払い等をイメージした表現を再現することを指定できるようになる。   The lower part C of FIG. 17 represents each point data PD0 to PD9 as a black circle, and the stroke data SD5 obtained by setting the value of the transparency A shown in FIG. It is an image figure of the picture signal generated based on. By applying the conversion rule "func3" only partially to the range of the end of the stroke, it is possible to specify that the representation of the image in which the human hand accelerates, kanji pay, etc. is imaged is reproduced .

図18は、速度Vに応じて透明度Aが大きくなる変換規則の効果を説明するための他の図である。描画スタイル情報DD1(図6及び図10を参照)で設定されるブラシタイプとしてフェルトペンなどのデータを適用した場合に、図17に示したストロークデータSD5と同様に図中左側から右側に移動するにつれて指示体の移動速度(速さ)が大きくなるに伴い透明度Aが増加している画像信号を示している。   FIG. 18 is another diagram for explaining the effect of the conversion rule in which the transparency A is increased according to the velocity V. When data such as a felt tip pen is applied as the brush type set in the drawing style information DD1 (see FIGS. 6 and 10), it moves from the left side to the right side in the figure as in the stroke data SD5 shown in FIG. As the moving speed (speed) of the indicator increases, the image signal A is shown in which the transparency A increases.

以上説明したように、本実施の形態によるデジタルインク処理装置2によれば、インデックス値の異なる2以上のポイントデータPDに含まれる入力センサ属性ISAの値を入力として描画属性DAを得るための変換関係を規定したマッピングデータMDを生成することができる。これにより、例えば、筆圧データPなどの入力センサ属性ISAを出力することのできない入力センサを用いて生成したデジタルインクであったとしても、線幅Wや透明度Aといった描画属性DAを導出することができ、かつ、その透明度Aや線幅Wを与えるために用いた元データの種別を(筆圧データが含まれていたのか、あるいは、速度等から導出したデータなのか)を記録することができる。   As described above, according to the digital ink processing apparatus 2 according to the present embodiment, conversion is performed to obtain the drawing attribute DA with the value of the input sensor attribute ISA included in two or more point data PD having different index values as an input. It is possible to generate mapping data MD that defines a relationship. Thus, for example, even if the digital ink is generated using an input sensor which can not output the input sensor attribute ISA such as the pen pressure data P, the drawing attribute DA such as the line width W or the transparency A is derived. Recording the type of the original data used to give the transparency A and the line width W (whether pen pressure data was included or data derived from speed etc.) it can.

また、透明度Aや線幅Wなどの描画属性DAを導出するにあたって、同じ入力センサ属性ISA(座標値)の微分値、積分値、又は、加算平均等の統計値に基づいた変換規則を記述することが可能になる。例えば、移動速度が大きくなるほど透明度Aが大きくなるような、変換規則を記述することが可能になる。   In addition, in deriving the drawing attribute DA such as the transparency A and the line width W, the conversion rule based on the differential value of the same input sensor attribute ISA (coordinate value), integral value, or statistical value such as addition average is described It becomes possible. For example, it becomes possible to describe a conversion rule such that the transparency A increases as the moving speed increases.

以上、本発明の好ましい実施の形態について説明したが、本発明はこうした実施の形態に何等限定されるものではなく、本発明が、その要旨を逸脱しない範囲において、種々なる態様で実施され得ることは勿論である。   The preferred embodiments of the present invention have been described above, but the present invention is not limited to these embodiments in any way, and the present invention can be implemented in various aspects without departing from the scope of the present invention. Of course.

例えば、第1の実施の形態と第2の実施の形態を組み合わせ、太さ及び濃淡の両方についての高い表現能力を有するデジタルインクを得ることも可能である。この場合、ストロークデータSDを構成する各ポイントデータPDに筆圧データPと時刻データTの両方を含め、かつ、デジタルインクINKDに、筆圧データPを線幅データWに変換するためのマッピングデータMD(第1の実施の形態)と、運筆速度から透明度データAを得るためのマッピングデータMD(第2の実施の形態)との両方を含めるようにすればよい。   For example, it is possible to combine the first embodiment and the second embodiment to obtain digital ink having high expressive ability for both thickness and gradation. In this case, each point data PD constituting stroke data SD includes both pen pressure data P and time data T, and is mapping data for converting pen pressure data P into line width data W in digital ink INKD. Both MD (the first embodiment) and mapping data MD (the second embodiment) for obtaining the transparency data A from the writing speed may be included.

尚、第1の実施の形態において範囲データにより指定する範囲に適用される変換規則は、入力センサ属性ISAから線幅Wや透明度Aといった描画属性DAを導出するためのものでなくてもよい。ストロークの一部分に対し従来のアフィン変換などを用いて幾何形状を変形させたい場合に用いても良い。   The conversion rule applied to the range designated by the range data in the first embodiment may not be for deriving the drawing attribute DA such as the line width W or the transparency A from the input sensor attribute ISA. It may be used when it is desired to deform the geometric shape using a conventional affine transformation or the like for a part of the stroke.

尚、又、第2の実施の形態において同一の入力センサ属性ISAの統計値により変換されて得られる属性は線幅Wや透明度Aといった描画属性DDに限らない。ストロークデータSDに含まれた座標データを元データとし、加重平均などの変換規則を適用して実際に描画する際に用いるポイントデータPDの座標データを得るとしてもよい。   In addition, the attribute obtained by converting the same input sensor attribute ISA as the statistical value in the second embodiment is not limited to the drawing attribute DD such as the line width W or the transparency A. The coordinate data included in the stroke data SD may be used as the original data, and conversion data such as weighted average may be applied to obtain coordinate data of the point data PD used when actually drawing.

尚、又、本発明は、コンピュータを用いてストロークデータ生成部20及びデジタルインク生成部30の処理を順次実行する方法の発明と捉えることも可能であるし、これらの処理を実行させ得るためのプログラムを記述したコンピュータプログラムの発明と捉えることも可能であることは言うまでもない。   In addition, the present invention can also be regarded as the invention of a method of sequentially executing the processing of the stroke data generation unit 20 and the digital ink generation unit 30 using a computer, and these processings can be executed. It is needless to say that it can be regarded as an invention of a computer program in which a program is described.

1 入力システム
2 デジタルインク処理装置
2a 記憶装置
3 デジタイザ
3a センサ
4 電子ペン
5 ディスプレイ
10 入力処理部
20 ストロークデータ生成部
30 デジタルインク生成部
31 デジタルインク組立部
32 マッピングデータ生成部
33 適用順決定部
40 デジタルインク再生部
Reference Signs List 1 input system 2 digital ink processing device 2a storage device 3 digitizer 3a sensor 4 electronic pen 5 display 10 input processing unit 20 stroke data generation unit 30 digital ink generation unit 31 digital ink assembly unit 32 mapping data generation unit 33 application order determination unit 40 Digital ink reproduction unit

Claims (16)

描画を行う外部機器に対して、所定の形式のデータフォーマットで生成されたデジタルインクを出力するデジタルインク生成装置であって、
指示体操作に対応したストロークデータを生成するストロークデータ生成部と、
前記ストロークデータに含まれる筆圧又は座標の値を線幅又は透明度の値に変換するための変換規則を含むマッピングデータを生成するマッピングデータ生成部と、
前記ストロークデータ生成部で生成された前記ストロークデータと、前記マッピングデータ生成部で生成された前記変換規則を含む前記マッピングデータ所定の形式のデータフォーマットのデジタルインクとして生成するデジタルインク組立部と、
を備えることで、
前記外部機器における描画が、前記デジタルインクに含まれる前記筆圧又は座標の値から前記デジタルインクに含まれる前記変換規則に基づいて変換される前記線幅又は透明度の値に応じて行われるように構成されていることを特徴とするデジタルインク生成装置。
A digital ink generating apparatus that outputs digital ink generated in a data format of a predetermined format to an external device that performs drawing,
A stroke data generation unit that generates stroke data corresponding to the operation of the pointer;
Brush pressure or that is part of the stroke data and mapping data generator for generating a mapping data including the conversion rule for converting the coordinate values to the value of the line width or transparency,
Said stroke data generated by the stroke data generating unit, and the digital ink assembly for generating said mapping data including the conversion rule generated by the mapping data generator as digital ink in a predetermined format data format ,
By providing,
The drawing on the external device may be performed according to the value of the line width or transparency converted based on the conversion rule included in the digital ink from the value of the pen pressure or the coordinates included in the digital ink. A digital ink generating device characterized in that it is configured .
前記所定の形式のデータフォーマットはInkML形式のデータフォーマットであり、前記変換規則は、前記InkML形式が規定するmapping要素を用いて記述される、
請求項1に記載のデジタルインク生成装置。
The data format of the predetermined format is a data format of InkML format, and the conversion rule is described using a mapping element defined by the InkML format.
The digital ink generation device according to claim 1.
前記マッピングデータは前記筆圧の値を前記線幅又は透明度の値のいずれかに変換するための変換規則を含むデータである、
請求項1に記載のデジタルインク生成装置。
It said mapping data is data including a conversion rule for any crab conversion value of the writing pressure value of the line width or transparency,
The digital ink generation device according to claim 1.
前記マッピングデータは前記座標の値に基づいて前記透明度の値を導出するための変換規則を含むデータである、
請求項1に記載のデジタルインク生成装置。
It said mapping data is data including a conversion rule for deriving the value of the transparency based on the value of the coordinates,
The digital ink generation device according to claim 1.
前記変換規則は、前記座標の値に基づいて導出される指示体の移動速度が大きい程、前記透明度の値が大きくなる関係の変換規則である
請求項3に記載のデジタルインク生成装置。
The conversion rule is a conversion rule in which the value of the transparency increases as the moving speed of the indicator derived based on the value of the coordinate increases .
The digital ink generation device according to claim 3.
前記マッピングデータ生成部は、前記変換規則が適用される範囲を示す範囲データを含むマッピングデータを生成する、
請求項1記載のデジタルインク生成装置。
The mapping data generation unit generates the mapping data including the range data indicating a range of pre-Symbol conversion rule is applied,
The digital ink generation device according to claim 1.
前記ストロークデータ生成部は、前記座標の値を含むポイントデータを1以上包含するストロークデータを生成し、
前記マッピングデータ生成部は、前記変換規則が適用される範囲を、範囲の開始点を示すポイントデータのインデックス値を示すインデックス値情報と範囲の終了点を示すポイントデータのインデックス値を示すインデックス値情報とにより示す範囲データを含むマッピングデータを生成する、
請求項1に記載のデジタルインク生成装置。
The stroke data generation unit generates stroke data including one or more point data including the value of the coordinates ,
The mapping data generation unit is a range to which the conversion rule is applied, index value information indicating an index value of point data indicating a start point of the range, and index value information indicating an index value of point data indicating an end point of the range that generates the mapping data including the range data indicated by a,
The digital ink generation device according to claim 1.
前記インデックス値情報は、前記インデックス値、又は、前記ストロークデータに含まれる前記ポイントデータの総数を法として前記インデックス値と合同な整数である、
請求項に記載のデジタルインク生成装置。
The index value information is an index value or an integer congruent with the index value modulo the total number of point data included in the stroke data.
The digital ink generation device according to claim 7 .
前記インデックス値情報は、前記範囲データがストロークの末端の端部を示す場合に負の整数で指定される、
請求項に記載のデジタルインク生成装置。
The index value information is specified as a negative integer when the range data indicates the end of a stroke.
A digital ink generation apparatus according to claim 8 .
前記範囲データがストロークの末端部分と先端部分との両方の端部を示す場合に、範囲の開始点に対応する前記インデックス値情報は負の整数を用いて指定され、範囲の終了点に対応する前記インデックス値情報は正の整数を用いて指定される、
請求項に記載のデジタルインク生成装置。
When the range data indicates both ends of the end and the tip of the stroke, the index value information corresponding to the start of the range is specified using a negative integer and corresponds to the end of the range The index value information is specified using a positive integer.
The digital ink generation device according to claim 9 .
前記マッピングデータはストロークの先端部分及び/又は末端部分を示す範囲データを含み
前記変換規則は、前記ストロークの先端部及び又は末端部に対し、前記ストロークの他の部分とは異なる変換規則を与える規則である、
請求項1に記載のデジタルインク生成装置。
The mapping data includes range data indicating the tip and / or the end of the stroke,
The conversion rule is a rule that gives a conversion rule different from other parts of the stroke to the tip and / or the end of the stroke.
The digital ink generation device according to claim 1.
記変換規則は、前記ストロークの先端部及び又は末端部に対して前記筆圧の値から線幅の値を導出する変換規則であって、前記ストロークの前記先端部及び又は末端部以外の部分に適用される変換規則に比して線幅が大きくなるように変換される変換規則である
請求項11に記載のデジタルインク生成装置。
Before Symbol conversion rule is a conversion rule to derive the values of the line width of the writing pressure to the distal end portion and or end of the stroke, a portion other than the tip and or the end of the stroke The digital ink generation device according to claim 11 , wherein the conversion rule is converted such that the line width is larger than the conversion rule applied to.
記変換規則は、前記座標の値に基づいて、透明度を導出するための変換規則であって、前記ストロークの先端部及び又は末端部に対し、前記ストロークの他の部分よりも透明度が大きくなるように変換される変換規則である、
請求項11に記載のデジタルインク生成装置。
Before Symbol conversion rule based on the value of the coordinates, a conversion rule for deriving the transparency with respect to tip and or the end of the stroke, is greater transparency than the remainder of the stroke Is a conversion rule that is converted to
A digital ink generating apparatus according to claim 11 .
前記マッピングデータ生成部は、
前記変換規則と前記変換規則が適用される範囲を示す第1の範囲データとを含む第1のマッピングデータ、及び、前記変換規則とは異なる第2の変換規則と該第2の変換規則適用される範囲を示す第2の範囲データとを含む第2のマッピングデータを生成し、
前記第1の範囲データの示す範囲と前記第2の範囲データの示す範囲とが重なりを有する場合に前記第1のマッピングデータ及び前記第2のマッピングデータの適用順を決定する適用順決定部をさらに備え、
前記デジタルインク組立部は、前記適用順決定部により決定された適用順に基づいて、前記デジタルインク内における前記第1のマッピングデータと、前記第2のマッピングデータとの配置順を決定する
請求項1に記載のデジタルインク生成装置。
The mapping data generation unit
First mapping data including the conversion rule and first range data indicating a range to which the conversion rule is applied; a second conversion rule different from the conversion rule; and the second conversion rule the second mapping data and a second range data indicating a range to be form raw,
An application order determination unit that determines an application order of the first mapping data and the second mapping data when the range indicated by the first range data and the range indicated by the second range data overlap; In addition,
The digital ink assembly unit determines an arrangement order of the first mapping data and the second mapping data in the digital ink based on the application order determined by the application order determination unit. Digital ink generation device according to claim 1.
入力センサを備え、描画を行う外部機器に対して、所定の形式のデータフォーマットで生成されたデジタルインクを出力するコンピュータで実行されるデジタルインク生成方法であって、
指示体操作に対応したストロークデータを生成するストロークデータ生成ステップと、
前記ストロークデータに含まれる筆圧又は座標の値を線幅又は透明度の値に変換するための変換規則を含むマッピングデータを生成するマッピングデータ生成ステップと、
前記ストロークデータ生成ステップで生成された前記ストロークデータと、前記マッピングデータ生成ステップで生成された前記変換規則を含む前記マッピングデータ所定の形式のデータフォーマットのデジタルインクとして生成するデジタルインク組立ステップと、
を含むことで
前記外部機器における描画が、前記デジタルインクに含まれる前記筆圧又は座標の値から前記デジタルインクに含まれる前記変換規則に基づいて変換される前記線幅又は透明度の値に応じて行われるように構成されていることを特徴とするデジタルインク生成方法。
What is claimed is: 1. A digital ink generation method that is executed by a computer that includes an input sensor and outputs digital ink generated in a predetermined data format to an external device that performs drawing ,
A stroke data generation step of generating stroke data corresponding to the operation of the indicator;
Brush pressure or that is part of the stroke data and mapping data generation step of generating mapping data including the conversion rule for converting the coordinate values to the value of the line width or transparency,
Said stroke data generated by the stroke data generating step, the digital ink assembling step of generating said mapping data including the conversion rule generated by the mapping data generation step as digital ink in a predetermined format data format ,
By including,
The drawing on the external device may be performed according to the value of the line width or transparency converted based on the conversion rule included in the digital ink from the value of the pen pressure or the coordinates included in the digital ink. A digital ink generation method characterized in that it is configured .
入力センサを備え、描画を行う外部機器に対して、所定の形式のデータフォーマットで生成されたデジタルインクを出力するコンピュータを、
指示体操作に対応したストロークデータを生成するストロークデータ生成部、
前記ストロークデータに含まれる筆圧又は座標の値を線幅又は透明度の値に変換するための変換規則を含むマッピングデータを生成するマッピングデータ生成部、及び
前記ストロークデータ生成部で生成された前記ストロークデータと、前記マッピングデータ生成部で生成された前記変換規則を含む前記マッピングデータを含む所定の形式のデータフォーマットのデジタルインクとして生成するデジタルインク組立部
として機能させることにより、
前記外部機器における描画が、前記デジタルインクに含まれる前記筆圧又は座標の値から前記デジタルインクに含まれる前記変換規則に基づいて変換される前記線幅又は透明度の値に応じて行われるように構成されていることを特徴とするプログラム。
A computer that includes an input sensor and outputs digital ink generated in a data format of a predetermined format to an external device that performs drawing ;
Stroke data generation unit that generates stroke data corresponding to the operation of a pointer
Mapping data generator brush pressure or that is part of the stroke data to generate mapping data including the conversion rule for converting the coordinate values to the value of the line width or transparency, and
The stroke and the stroke data generated by the data generator, digital ink assembly for generating a predetermined format digital ink data format comprising said mapping data including the mapping data the conversion rule generated by the generator by Rukoto to function as,
The drawing on the external device may be performed according to the value of the line width or transparency converted based on the conversion rule included in the digital ink from the value of the pen pressure or the coordinates included in the digital ink. A program characterized in that it is configured .
JP2015133170A 2015-07-02 2015-07-02 Digital ink generating apparatus, digital ink generating method, and program Active JP6526504B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015133170A JP6526504B2 (en) 2015-07-02 2015-07-02 Digital ink generating apparatus, digital ink generating method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015133170A JP6526504B2 (en) 2015-07-02 2015-07-02 Digital ink generating apparatus, digital ink generating method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015511540A Division JP5775240B1 (en) 2014-12-18 2014-12-18 Digital ink generation apparatus, digital ink generation method, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019088054A Division JP6710803B2 (en) 2019-05-08 2019-05-08 Digital ink file reproducing device, digital ink file reproducing method, and program

Publications (2)

Publication Number Publication Date
JP2016119051A JP2016119051A (en) 2016-06-30
JP6526504B2 true JP6526504B2 (en) 2019-06-05

Family

ID=56244358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015133170A Active JP6526504B2 (en) 2015-07-02 2015-07-02 Digital ink generating apparatus, digital ink generating method, and program

Country Status (1)

Country Link
JP (1) JP6526504B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109964251B (en) 2017-01-11 2023-07-21 株式会社和冠 Drawing device and drawing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222879A (en) * 1993-01-27 1994-08-12 Matsushita Electric Ind Co Ltd Method and device for displaying handwriting
US7158675B2 (en) * 2002-05-14 2007-01-02 Microsoft Corporation Interfacing with ink
JP2013137696A (en) * 2011-12-28 2013-07-11 Sharp Corp Electronic apparatus, display control method and program
JP2014203393A (en) * 2013-04-09 2014-10-27 株式会社東芝 Electronic apparatus, handwritten document processing method, and handwritten document processing program
JP6163863B2 (en) * 2013-05-17 2017-07-19 株式会社リコー Information processing apparatus, program, information processing system, and information display method

Also Published As

Publication number Publication date
JP2016119051A (en) 2016-06-30

Similar Documents

Publication Publication Date Title
JP5775240B1 (en) Digital ink generation apparatus, digital ink generation method, and program
US11580761B2 (en) Ink file searching method, apparatus, and program
Zhang et al. Viscode: Embedding information in visualization images using encoder-decoder network
US7737980B2 (en) Methods and apparatus for supporting and implementing computer based animation
US20140033099A1 (en) Segmented scroll bar
KR20170046131A (en) Detecting selection of digital ink
US20120324332A1 (en) Using Gestures to Generate Code, Including for Text Flow
KR20210015972A (en) Lesion detection method, apparatus, device and storage medium
US20130181995A1 (en) Handwritten character font library
CN106250804A (en) The document stroke storage reduced
CN112507806B (en) Intelligent classroom information interaction method and device and electronic equipment
CN108399172B (en) Vector diagram generation method and device
CN109710258A (en) WeChat applet interface generation method and device
CN112486338A (en) Medical information processing method and device and electronic equipment
JP6526504B2 (en) Digital ink generating apparatus, digital ink generating method, and program
CN106250035B (en) System and method for dynamically generating personalized handwritten fonts
JP6710803B2 (en) Digital ink file reproducing device, digital ink file reproducing method, and program
WO2016018682A1 (en) Processing image to identify object for insertion into document
US9442576B2 (en) Method and system for combining paper-driven and software-driven design processes
JP7320157B1 (en) CONTENT EVALUATION DEVICE, PROGRAM, METHOD, AND SYSTEM
CN112487774A (en) Writing form electronization method and device and electronic equipment
WO2023145429A1 (en) Content evaluation device, program, method, and system
JP2014078168A (en) Character recognition apparatus and program
Brown et al. Making Japenese ukiyo-e art 3D in real-time
WO2023145227A1 (en) Content evaluation device, program, method, and system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180904

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181102

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190409

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190508

R150 Certificate of patent or registration of utility model

Ref document number: 6526504

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250