JP6490951B2 - Drawing image erasing method - Google Patents

Drawing image erasing method Download PDF

Info

Publication number
JP6490951B2
JP6490951B2 JP2014237866A JP2014237866A JP6490951B2 JP 6490951 B2 JP6490951 B2 JP 6490951B2 JP 2014237866 A JP2014237866 A JP 2014237866A JP 2014237866 A JP2014237866 A JP 2014237866A JP 6490951 B2 JP6490951 B2 JP 6490951B2
Authority
JP
Japan
Prior art keywords
point
eraser
sample point
sampled
sample
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
JP2014237866A
Other languages
Japanese (ja)
Other versions
JP2016099874A (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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2014237866A priority Critical patent/JP6490951B2/en
Publication of JP2016099874A publication Critical patent/JP2016099874A/en
Application granted granted Critical
Publication of JP6490951B2 publication Critical patent/JP6490951B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、描画像消去方法に係り、特に、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列の標本点に沿って表示画面中の描画像を消去する描画像消去方法に関する。   The present invention relates to a drawn image erasing method, and more particularly, in a display screen along sample points of a coordinate sequence by a series of erasing operations obtained by sampling coordinates that move based on a time series during a drawn image erasing operation. The present invention relates to a drawn image erasing method for erasing a drawn image.

従来、電子黒板やタブレット等の描画表示装置において、ペン(描画部材)を使って図形や文字などを書くことのできるアプリケーション(ソフトウェア)が利用されている。   2. Description of the Related Art Conventionally, in a drawing display device such as an electronic blackboard or a tablet, an application (software) that can write a figure or a character using a pen (drawing member) is used.

このようなアプリケーションにおいて、多くの場合に消しゴム(例えば、消去部材として機能するように設定されたペン)を用いてペンで書いた線(描画像)を消すことができる。その描画像を消去する方法は、大きくわけて2種類の方法がある。1つの方法は消しゴムがタッチした線を1本ごとに消去する方法であり、もう一方の方法は線のうち消しゴムとして機能するペンの移動する軌跡(以下、「消しゴムストローク」と称する。)と重なった部分だけを消去する方法である。また、ペンにより描かれた線についてもベクトルデータで保持するものと画像データで保持するものがある。   In such an application, in many cases, a line (drawing image) written with a pen can be erased using an eraser (for example, a pen set to function as an erasing member). There are roughly two methods for erasing the drawn image. One method is to erase the lines touched by the eraser one by one, and the other method is to overlap a trajectory of a pen that functions as an eraser (hereinafter referred to as “eraser stroke”). This is a method of erasing only the part. Some lines drawn with a pen are held as vector data and others are held as image data.

消しゴムストロークと重なった部分を消去する方法では、処理パフォーマンスの都合上、消しゴムの座標を時系列的に点列として記録しておき(以下、この消しゴムの点列した座標列のデータを「消しゴムストロークデータ」と称する。)、あるタイミングで、例えば消しゴムがタブレットの画面から離れたとき(タッチアップしたとき)に消去を行う。   In the method of erasing the part that overlaps the eraser stroke, the coordinates of the eraser are recorded as a point sequence in time series for the convenience of processing performance. It is called “data”.) At a certain timing, for example, when the eraser leaves the screen of the tablet (when touched up), the data is erased.

このように、消しゴムストロークと重なった部分を消去する際に、ペンで描かれた線や消しゴムストロークを形成する点列を通る線分を求める線分抽出方法において、従来技術として、例えば、ハフ変換を用いて点列した座標位置における接線を求めて線分を抽出する方法が知られている。   In this way, in the line segment extraction method for obtaining a line segment that passes through a point sequence that forms a line drawn with a pen or an eraser stroke when erasing a portion that overlaps the eraser stroke, as a conventional technique, for example, Hough transform There is known a method of obtaining a tangent at a coordinate position where a point sequence is used and extracting a line segment.

しかしながら、ハフ変換は、すべての候補点について極座標に変換した計算を行った上で、どの直線が適切なのかを判断するため、前記した差分を用いた場合に比べて非常に多くの時間を要するという問題があった。特に図形が大きく、輪郭線の長さが長い場合には、莫大な計算時間を要するという問題があった。   However, the Hough transform requires much more time than the case of using the above-mentioned difference in order to determine which straight line is appropriate after performing calculation by converting all candidate points into polar coordinates. There was a problem. In particular, when the figure is large and the length of the contour line is long, there is a problem that enormous calculation time is required.

そこで、従来技術として、線分抽出方法において、ハフ変換を行う領域の大きさを、処理対象となる注目点前後の曲線に応じて処理領域の大きさを設定し、その設定された領域内において、ハフ変換を行うことにより、高精度な線分抽出を可能にするようにしたものが提案されている(特許文献1を参照)。   Therefore, as a conventional technique, in the line segment extraction method, the size of the area to be subjected to the Hough transform is set according to the curve before and after the target point to be processed, and within the set area A method has been proposed that enables highly accurate line segment extraction by performing Hough transform (see Patent Document 1).

特開平09−259279号公報JP 09-259279 A

しかしながら、上述した従来の線分抽出方法を用いて消しゴムストロークを抽出する場合、例えば、消しゴムストロークの曲線部において設定された領域内における消しゴムストロークデータ全てに対してハフ変換が行われるため、消しゴムストロークデータの点列の点数が多いと処理時間に大きく影響するという問題が生じる。従って、消しゴムストロークを抽出する際には、同様の形状が得られる範囲で、なるべく消しゴムストロークデータの点数を少なくすることが望ましい。   However, when the eraser stroke is extracted using the above-described conventional line segment extraction method, for example, since the Hough conversion is performed on all the eraser stroke data within the region set in the curved portion of the eraser stroke, the eraser stroke is performed. If the number of points in the data point sequence is large, there is a problem that the processing time is greatly affected. Therefore, when extracting the eraser stroke, it is desirable to reduce the number of eraser stroke data as much as possible within a range where a similar shape can be obtained.

一方、消しゴムストロークデータの点数を削減し過ぎると、消しゴムストロークの形状が変わってしまい、消しゴムをかけた後の結果に影響を与えてしまうという問題が生じる。そこで、なるべく消しゴムストロールの形状を変化させずに、消しゴムストロークデータの点数を削減する方法が望まれていた。   On the other hand, if the score of the eraser stroke data is reduced too much, the shape of the eraser stroke changes, which causes a problem that the result after the eraser is applied is affected. Therefore, a method for reducing the number of eraser stroke data without changing the shape of the eraser stroll as much as possible has been desired.

また、消しゴムストロークデータの点数削減の処理が複雑であると、消しゴムストロークデータの点数削減の処理に時間がかかってしまうため、なるべく単純な処理方法が望まれていた。   Further, if the processing for reducing the number of eraser stroke data is complicated, it takes time to reduce the number of points for the eraser stroke data. Therefore, a processing method that is as simple as possible has been desired.

本発明は、上記従来の課題に鑑みてなされたものであり、簡単な処理により、一連の消去処理を行う座標列の点数を削減して、消去処理を行うストロール(消しゴムストローク)の形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる描画像消去方法を提供することを目的とする。   The present invention has been made in view of the above-described conventional problems, and by a simple process, the number of coordinate rows for performing a series of erase processes is reduced, and the shape of the strol (eraser stroke) for performing the erase processes is changed. An object of the present invention is to provide a drawing image erasing method capable of shortening the time required for the drawing image erasing process without causing the above.

本発明は、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列の標本点に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる直線と、サンプリングした複数の標本点のうちの最後の標本点と新しくサンプリングした標本点候補の点から導かれる直線との成す角度に基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する工程、を備えることを特徴とするものである。   The present invention relates to a drawing image erasing method for erasing a drawing image in a display screen along a sample point of a coordinate sequence by a series of erasing operations obtained by sampling coordinates that move based on a time series during a drawing image erasing operation. The sample is based on the angle formed by the straight line derived from the sampled sample points and the straight line derived from the last sample point of the sampled sample points and the newly sampled sample point candidate point. A step of determining whether or not to use the point candidate as a new sample point.

また、本発明は、サンプリングした最後の標本点と前記標本点候補の点から導かれる直線の長さに基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する工程、を備えることが好ましい。   Further, the present invention is a step of determining whether to use the sample point candidate as a new sample point based on the length of a straight line derived from the last sample point sampled and the point of the sample point candidate, It is preferable to provide.

また、本発明は、サンプリングした最後の標本点と前記標本点候補の点から導かれる直線と、前記標本点候補の点とさらに新しくサンプリングした次の標本点候補の点とから導かれる直線との角度に基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する工程、を備えることが好ましい。   Further, the present invention provides a straight line derived from the last sample point sampled and the sample point candidate point, and a straight line derived from the sample point candidate point and the newly sampled next sample point candidate point. Preferably, the method includes a step of determining whether to use the sample point candidate as a new sample point based on the angle.

また、本発明は、前記標本点候補の点とさらに新しくサンプリングした次の標本点候補の点とから導かれる直線の長さに基づいて、前記標本点候補の点を新たな標本点として使用するか否かを判定する工程、を備えることが好ましい。   Further, the present invention uses the sample point candidate point as a new sample point based on the length of a straight line derived from the sample point candidate point and the next newly sampled sample point candidate point. It is preferable to include a step of determining whether or not.

また、本発明は、サンプリングした複数の標本点から導かれる曲線部においては消去操作による座標列のデータ量を削減せず、サンプリングした複数の標本点から導かれる直線部において消去操作による座標列のデータ量を削減することが好ましい。   Further, the present invention does not reduce the data amount of the coordinate sequence by the erasure operation in the curved portion derived from the plurality of sampled sample points, and the coordinate sequence by the erasure operation in the linear portion derived from the plurality of sampled sample points. It is preferable to reduce the amount of data.

また、本発明は、サンプリングした複数の標本点から導かれる曲線の離散的な点の座標列に基づき、前記曲線の極値を求める工程を備え、前記曲線の極値及び/又はその周辺においては消去操作による座標列のデータ量の削減を実施せず、それ以外の部分においては消去操作による座標列のデータ量の削減を実施することが好ましい。   In addition, the present invention includes a step of obtaining an extreme value of the curve based on a coordinate sequence of discrete points of a curve derived from a plurality of sampled sample points, and the extreme value of the curve and / or the periphery thereof is provided. It is preferable not to reduce the data amount of the coordinate string by the erasing operation, and to reduce the data amount of the coordinate string by the erasing operation in other portions.

また、本発明は、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を離散的な点によりサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線の接線が特定の条件を満たす箇所の点を標本点として取得し、前記曲線の接線の傾きが特定の条件を満たさない箇所についてはサンプリングを実施しない又はサンプリング頻度を下げることを特徴とするものである。   The present invention also relates to a drawing image erasing method for erasing a drawing image on a display screen along a coordinate sequence by a series of erasing operations obtained by sampling coordinates that move based on a time series during a drawing image erasing operation. And a step of approximating data obtained from a sampled curve obtained from a plurality of sampled points by using a sequence of points sampled by discrete points, and obtaining points as sample points where the tangent of the curve satisfies a specific condition However, sampling is not performed or the sampling frequency is lowered for a portion where the slope of the tangent of the curve does not satisfy a specific condition.

また、本発明は、前記曲線の接線の特定の条件を、前記接線の傾きを「0」とすることが好ましい。   In the present invention, it is preferable that the specific condition of the tangent of the curve is set to “0” as the slope of the tangent.

また、本発明は、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を、離散的な点によりサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線の導関数の値に応じて、サンプリングを行う頻度を変化させることを特徴とするものである。   The present invention also relates to a drawing image erasing method for erasing a drawing image on a display screen along a coordinate sequence by a series of erasing operations obtained by sampling coordinates that move based on a time series during a drawing image erasing operation. , Comprising a step of approximately converting a curve derived from a plurality of sampled sample points into a point sequence sampled by discrete points, and changing a sampling frequency according to a derivative value of the curve It is characterized by making it.

また、本発明は、前記曲線の導関数の絶対値が小さいほどサンプリング周波数を高くする(極値付近のサンプリング周波数を高くする)ことが好ましい。   In the present invention, it is preferable that the sampling frequency is increased (the sampling frequency near the extreme value is increased) as the absolute value of the derivative of the curve is smaller.

また、本発明は、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を離散的な点によってサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線をf(x,y)=0、f(x,y)の偏導関数をfx(x,y),fy(x,y)とするときに、fx(x,y)及びfy(x,y)の値に応じて、サンプリングを行う頻度を変化させることを特徴とするものである。   The present invention also relates to a drawing image erasing method for erasing a drawing image on a display screen along a coordinate sequence by a series of erasing operations obtained by sampling coordinates that move based on a time series during a drawing image erasing operation. And a step of approximating the curve derived from a plurality of sampled sample points with a sequence of points sampled by discrete points, wherein the curve is expressed as f (x, y) = 0, f (x, y). The frequency of sampling is changed according to the values of fx (x, y) and fy (x, y) when the partial derivative of fx is fx (x, y), fy (x, y) It is characterized by.

また、本発明は、前記曲線の導関数の絶対値が小さいほどサンプリング周波数を高くする(極値付近のサンプリング周波数を高くする)ことが好ましい。   In the present invention, it is preferable that the sampling frequency is increased (the sampling frequency near the extreme value is increased) as the absolute value of the derivative of the curve is smaller.

また、本発明は、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を、離散的な点によってサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線をf(x,y)=0、f(x,y)の2階偏導関数をfxy(x,y),fyx(x,y),fxx(x,y),fyy(x,y)とするときに、fxy(x,y),fyx(x,y),fxx(x,y),fyy(x,y)の値に応じて、サンプリングを行う条件を変化させることを特徴とするものである。   The present invention also relates to a drawing image erasing method for erasing a drawing image on a display screen along a coordinate sequence by a series of erasing operations obtained by sampling coordinates that move based on a time series during a drawing image erasing operation. A step of approximating the curve derived from a plurality of sampled sample points with a sequence of points sampled by discrete points, wherein the curve is expressed as f (x, y) = 0, f (x, y ) Is expressed as fxy (x, y), fxy (x, y), fxx (x, y), fyy (x, y), fxy (x, y), fyx (x , Y), fxx (x, y), and fyy (x, y), the sampling condition is changed.

また、本発明は、前記fxy(x,y),fyx(x,y),fxx(x,y),fyy(x,y)の絶対値が予め設定された値を超えたときにサンプリング周波数が高くなるようにサンプリング方法を変更することが好ましい。   The present invention also provides a sampling frequency when the absolute values of the above fxy (x, y), fyx (x, y), fxx (x, y), and fyy (x, y) exceed a preset value. It is preferable to change the sampling method so as to be high.

また、本発明は、前記fxy(x,y),fyx(x,y),fxx(x,y),fyy(x,y)の絶対値が大きいほどサンプリング周波数を高くすることが好ましい。   In the present invention, it is preferable that the sampling frequency is increased as the absolute values of fxy (x, y), fyx (x, y), fxx (x, y), and fyy (x, y) are larger.

本発明の描画像消去方法によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる直線と、サンプリングした最後の標本点と新しくサンプリングした標本点候補の点から導かれる直線との成す角度に基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する工程、を備えることで、例えば、前述した直線により成す角度に閾値を設けて、その角度に達していない場合は、新しくサンプリングした標本点候補は新たな標本点として使用しないようにするという簡単な処理により、一連の消しゴムの座標列の点数を削減して、角度変化が少ないために、消しゴムストロールの形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる。   According to the drawn image erasing method of the present invention, the drawn image on the display screen is erased along the coordinate sequence obtained by a series of erasing operations obtained by sampling the coordinates moving based on the time series during the drawn image erasing operation. In the drawn image erasing method, the sample point candidate is determined based on an angle formed by a straight line derived from a plurality of sampled sample points and a straight line derived from a sampled last sample point and a newly sampled sample point candidate point. A step of determining whether or not to use as a new sample point, for example, by setting a threshold value for the angle formed by the above-mentioned straight line, if the angle has not been reached, the newly sampled sample point candidate is The simple process of avoiding using as a new sample point reduces the number of points in the series of eraser coordinate lines, and the angle change is small. Without changing the shape of the eraser strike roll, it is possible to shorten the time required for erasure processing of the drawing image.

また、本発明の描画像消去方法によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を離散的な点によりサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線の接線が特定の条件を満たす箇所の点を標本点として取得し、前記曲線の接線の傾きが特定の条件を満たさない箇所についてはサンプリングを実施しない又はサンプリング頻度を下げることにより、消去操作による座標列のデータ量を削減するという簡単な処理により、一連の消しゴムの座標列の点数を削減して、角度変化が少ないために、消しゴムストロールの形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる。   Further, according to the drawn image erasing method of the present invention, the drawn image on the display screen is displayed along the coordinate sequence by a series of erasing operations obtained by sampling the coordinates moving based on the time series at the time of drawing image erasing operation. In the drawn image erasing method for erasing, the method comprises a step of approximately converting a curve derived from a plurality of sampled sample points into a point sequence obtained by sampling discrete points, wherein the tangent of the curve satisfies a specific condition As a sample point, the sampling point is not sampled or the sampling frequency is reduced at a location where the slope of the tangent of the curve does not satisfy a specific condition, thereby reducing the data amount of the coordinate sequence by the erasing operation. With a simple process, the number of points in the coordinate sequence of the eraser is reduced, and the shape of the eraser strol is changed because the angle change is small. Without, it is possible to shorten the time required for erasure processing of the drawing image.

また、本発明の描画像消去方法によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を、離散的な点によりサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線の導関数の値に応じて、サンプリングを行う頻度を変化させるという簡単な処理により、一連の消しゴムの座標列の点数を削減して、角度変化が少ないために、消しゴムストロールの形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる。   Further, according to the drawn image erasing method of the present invention, the drawn image on the display screen is displayed along the coordinate sequence by a series of erasing operations obtained by sampling the coordinates moving based on the time series at the time of drawing image erasing operation. In the drawn image erasing method for erasing, the method includes a step of approximating data of a curve derived from a plurality of sampled sample points by a sequence of points sampled by discrete points, and depending on a value of a derivative of the curve The simple processing of changing the sampling frequency reduces the number of points in the coordinate sequence of the eraser, and the angle change is small, so the erased image can be erased without changing the shape of the eraser stroller. Such time can be shortened.

また、本発明の描画像消去方法によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を離散的な点によってサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線をf(x,y)=0、f(x,y)の偏導関数をfx(x,y),fy(x,y)とするときに、fx(x,y)及びfy(x,y)の値に応じて、サンプリングを行う頻度を変化させるという簡単な処理により、一連の消しゴムの座標列の点数を削減して、角度変化が少ないために、消しゴムストロールの形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる。   Further, according to the drawn image erasing method of the present invention, the drawn image on the display screen is displayed along the coordinate sequence by a series of erasing operations obtained by sampling the coordinates moving based on the time series at the time of drawing image erasing operation. In the drawn image erasing method for erasing, the method includes a step of approximating data of a curve derived from a plurality of sampled sample points by a sequence of points sampled by discrete points, wherein the curve is f (x, y) = 0. , F (x, y), when the partial derivative is fx (x, y), fy (x, y), sampling according to the values of fx (x, y) and fy (x, y) The time taken to erase the drawn image without changing the shape of the eraser stroller because the angle change is reduced by reducing the number of points in the series of eraser coordinates by a simple process of changing the frequency of the eraser. Shorten can do.

また、本発明の描画像消去方法によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法において、サンプリングした複数の標本点から導かれる曲線を離散的な点によってサンプリングした点列によって近似的にデータ化する工程を備え、前記曲線をf(x,y)=0、f(x,y)の2階偏導関数をfxy(x,y),fyx(x,y),fxx(x,y),fyy(x,y)とするときに、fxy(x,y),fyx(x,y),fxx(x,y),fyy(x,y)の値に応じて、サンプリングを行う条件を変化させるという簡単な処理により、一連の消しゴムの座標列の点数を削減して、角度変化が少ないために、消しゴムストロールの形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる。   Further, according to the drawn image erasing method of the present invention, the drawn image on the display screen is displayed along the coordinate sequence by a series of erasing operations obtained by sampling the coordinates moving based on the time series at the time of drawing image erasing operation. In the drawn image erasing method for erasing, the method includes a step of approximating data of a curve derived from a plurality of sampled sample points by a sequence of points sampled by discrete points, wherein the curve is f (x, y) = 0. , F (x, y) is expressed as fxy (x, y), fxy (x, y), fxx (x, y), fyy (x, y). y), fyx (x, y), fx (x, y), fyy (x, y) according to the value of sampling, a simple process of changing the sampling condition, the score of a series of eraser coordinate series Because there is little angle change , Without changing the shape of the eraser strike roll, it is possible to shorten the time required for erasure processing of the drawing image.

本発明の第1実施形態に係る描画像消去方法が採用された電子黒板のディスプレイに描画する一例を示す説明図である。It is explanatory drawing which shows an example drawn on the display of the electronic blackboard by which the drawing image deletion method which concerns on 1st Embodiment of this invention was employ | adopted. 前記ディスプレイの描画像の一部を消去する一例を示す説明図である。It is explanatory drawing which shows an example which erase | eliminates a part of drawing image of the said display. 前記電子黒板の構成を示すブロック図である。It is a block diagram which shows the structure of the said electronic blackboard. 前記電子黒板のディスプレイにペンによる描画操作を行う一例を示す説明図である。It is explanatory drawing which shows an example which performs drawing operation with a pen on the display of the said electronic blackboard. 前記ディスプレイの描画像の一部を消しゴムにより消去する一例を示す説明図である。It is explanatory drawing which shows an example which erases a part of drawing image of the said display with an eraser. 本発明の第1実施形態に係る描画像消去方法における消しゴム座標を間引くアルゴリズムを説明する説明図である。It is explanatory drawing explaining the algorithm which thins out the eraser coordinate in the drawing image erasing method which concerns on 1st Embodiment of this invention. 前記ディスプレイにおける消しゴムストロークの一例を示す説明図である。It is explanatory drawing which shows an example of the eraser stroke in the said display. 前記電子黒板において描画像を消去する時の消しゴムストロークデータを取捨する処理工程の一例を示すフローチャートである。It is a flowchart which shows an example of the process process which discards eraser stroke data when deleting a drawing image in the said electronic blackboard. 本発明の第2実施形態に係る描画像消去方法が採用された電子黒板の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic blackboard by which the drawing image deletion method which concerns on 2nd Embodiment of this invention was employ | adopted. 本発明の第2実施形態に係る描画像消去方法における消しゴム座標を間引くアルゴリズムを説明する説明図である。It is explanatory drawing explaining the algorithm which thins out the eraser coordinate in the drawing image deletion method which concerns on 2nd Embodiment of this invention. 前記描画像消去方法が採用された電子黒板において描画像を消去する時の消しゴムストロークデータを取捨する処理工程の一部の工程を示すフローチャートである。It is a flowchart which shows a part of process process which discards eraser stroke data when erasing a drawing image in the electronic blackboard adopting the drawing image erasing method. 図11のフローチャートに続く工程を示すフローチャートである。12 is a flowchart illustrating a process following the flowchart of FIG. 11. 本発明の第3実施形態に係る描画像消去方法が採用された電子黒板の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic blackboard by which the drawing image deletion method which concerns on 3rd Embodiment of this invention was employ | adopted.

(第1実施形態)
以下、本発明の第1実施形態について図面を参照して説明する。
図1は発明を実施する形態の一例であって、本発明の第1実施形態に係る描画像消去方法が採用された電子黒板のディスプレイに描画する一例を示す説明図、図2は前記ディスプレイの描画像の一部を消去する一例を示す説明図、図3は前記電子黒板の構成を示すブロック図である。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is an example of an embodiment for carrying out the invention, and is an explanatory diagram showing an example of drawing on a display of an electronic blackboard adopting the drawn image erasing method according to the first embodiment of the present invention. FIG. FIG. 3 is an explanatory diagram showing an example of erasing a part of a drawn image, and FIG. 3 is a block diagram showing a configuration of the electronic blackboard.

本発明の第1実施形態は、図1に示すように、ディスプレイ(表示画面)101中にペン112により描画された描画像113の一部または全てを、図2に示すように、消しゴムとして機能するように設定されたペン112による描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列の標本点に沿って消去する描画像消去方法が採用された電子黒板(描画表示装置)100において、この描画像消去方法として、本発明に係る特徴的な描画像消去方法を採用したことを特徴とするものである。   In the first embodiment of the present invention, as shown in FIG. 1, a part or all of a drawn image 113 drawn by a pen 112 in a display (display screen) 101 functions as an eraser as shown in FIG. A drawing image erasing method is adopted that erases along the sample points of the coordinate sequence by a series of erasing operations obtained by sampling the coordinates moving based on the time series during the erasing operation of the drawing image with the pen 112 set to be performed. In the electronic blackboard (drawing display device) 100, the drawn image erasing method according to the present invention is adopted as the drawn image erasing method.

第1実施形態に係る電子黒板100は、図3に示すように、主に、描画を行うディスプレイ(表示画面)101、記憶部(メモリ)102、各部の動作・処理制御を行う制御部103を備えている。   As shown in FIG. 3, the electronic blackboard 100 according to the first embodiment mainly includes a display (display screen) 101 that performs drawing, a storage unit (memory) 102, and a control unit 103 that performs operation / processing control of each unit. I have.

ディスプレイ101は、タッチパネル111を備えて、ペン112による入力を検出して、入力された描画情報に基づいて描画像を表示する。   The display 101 includes a touch panel 111, detects an input by the pen 112, and displays a drawing image based on the input drawing information.

記憶部102は、ペンストローク群収納部121と消しゴムストローク群収納部122を備えている。ペンストローク群収納部121は、ペン112により描画する描画情報として入力されたペンストローク座標列のデータ(以下、「ペンストロークデータ」と称する。)を収納する。消しゴムストローク群収納部122は、消しゴムとして機能するように設定されたペン112により消去する消しゴム情報として入力されたけし消しゴム座標列のデータ(以下、消去操作による「消しゴムストロークデータ」と称する。)を収納する。   The storage unit 102 includes a pen stroke group storage unit 121 and an eraser stroke group storage unit 122. The pen stroke group storage unit 121 stores pen stroke coordinate string data (hereinafter referred to as “pen stroke data”) input as drawing information to be drawn by the pen 112. The eraser stroke group storage unit 122 stores eraser coordinate string data (hereinafter referred to as “eraser stroke data” by an erasing operation) input as eraser information to be erased by the pen 112 set to function as an eraser. To do.

制御部103は、主に、表示制御部104、入力受付部105、ペン処理部106、消しゴム処理部107を備え、さらに、入力点フィルタリング判定部108を備えることを特徴としている。   The control unit 103 mainly includes a display control unit 104, an input reception unit 105, a pen processing unit 106, an eraser processing unit 107, and further includes an input point filtering determination unit 108.

表示制御部104は、タッチパネル111上で入力された描画情報に基づいて描画像をディスプレイ101に表示したり、タッチパネル111上で入力された消しゴム情報に基づいて表示された描画像の一部または全てを消去したように表示する。   The display control unit 104 displays a drawing image on the display 101 based on the drawing information input on the touch panel 111 or part or all of the drawing image displayed based on the eraser information input on the touch panel 111. Is displayed as if deleted.

入力受付部105は、タッチパネル111上でペン112により入力された描画情報や、消しゴムとして機能するように設定されたペン112により入力された消しゴム情報をペンストロークデータや消しゴムストロークデータとして受付けて、記憶部102のペンストローク群収納部121や消しゴムストローク群収納部122に収納する。   The input receiving unit 105 accepts drawing information input by the pen 112 on the touch panel 111 and eraser information input by the pen 112 set to function as an eraser as pen stroke data and eraser stroke data, and stores them. It is stored in the pen stroke group storage part 121 and the eraser stroke group storage part 122 of the unit 102.

ペン処理部106は、タッチパネル111上でペン112により描画情報として入力されたペンストロークデータに基づきペン処理(描画処理)を行う。
消しゴム処理部107は、タッチパネル111上でペン112により消しゴム情報として入力され消しゴムデータに基づき消しゴム処理(消去処理)を行う。
The pen processing unit 106 performs pen processing (drawing processing) based on pen stroke data input as drawing information by the pen 112 on the touch panel 111.
The eraser processing unit 107 performs eraser processing (erasing process) based on eraser data input as eraser information by the pen 112 on the touch panel 111.

入力点フィルタリング判定部108は、サンプリングした複数の消しゴム座標を標本点として導かれる直線と、サンプリングした複数の標本点のうちの最後の標本点と新しくサンプリングした標本点候補の点から導かれる直線との成す角度に基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する。   The input point filtering determination unit 108 includes a straight line derived from a plurality of sampled eraser coordinates as sample points, a straight line derived from the last sample point of the sampled sample points and a newly sampled sample point candidate point. Whether or not the sample point candidate is to be used as a new sample point is determined based on the angle formed by.

入力点フィルタリング判定部108により新たな標本点としないと判定された消しゴム座標のデータは削除される。   The eraser coordinate data determined not to be a new sample point by the input point filtering determination unit 108 is deleted.

ここで、第1実施形態の電子黒板100におけるペン112による描画操作と描画像の消去操作について例を挙げて説明する。
図4は本発明の第1実施形態に係る描画像消去方法が採用された電子黒板のディスプレイにペンによる描画操作を行う一例を示す説明図、図5は前記ディスプレイの描画像の一部を消しゴムにより消去する一例を示す説明図である。
Here, a drawing operation and a drawing image erasing operation with the pen 112 in the electronic blackboard 100 according to the first embodiment will be described with examples.
FIG. 4 is an explanatory view showing an example of performing a drawing operation with a pen on the display of the electronic blackboard adopting the drawn image erasing method according to the first embodiment of the present invention, and FIG. It is explanatory drawing which shows an example erase | eliminated by.

まず、電子黒板100には、手書きペン用のアプリケーションが搭載されている。
このアプリケーションにより、図4に示すように、ペン112により電子黒板100のディスプレイ101上に自由に描画することができる。
描画された手書きデータは、ベクトルデータとして記憶部102に記憶されるとともに、ディスプレイ101にも表示される。
First, the electronic blackboard 100 is loaded with a handwriting pen application.
With this application, as shown in FIG. 4, the pen 112 can freely draw on the display 101 of the electronic blackboard 100.
The drawn handwritten data is stored as vector data in the storage unit 102 and also displayed on the display 101.

また、このアプリケーションは、描画像を消去する機能を備えている。
描画像を消去する機能は、設定された消しゴム(または黒板消し)114で電子黒板100のディスプレイ101に表示された描画像に触れると、触れた部分に描画されていた手書きデータが削除される。この例では手書きデータの削除はストローク単位ではなく、消しゴム114に触れた部分が削除される。
In addition, this application has a function of erasing a drawn image.
The function of erasing the drawn image is that when the drawn image displayed on the display 101 of the electronic blackboard 100 is touched with the set eraser (or blackboard eraser) 114, the handwritten data drawn on the touched portion is deleted. In this example, the handwritten data is not deleted in units of strokes, but the part touching the eraser 114 is deleted.

なお、消しゴム114の換わりに、ペン112を消しゴムとして機能するように設定したものであってもよい。   Instead of the eraser 114, the pen 112 may be set to function as an eraser.

ここで、消しゴム114を用いて描画像を消去する場合について説明する。
図5に示すように、消しゴム114をペン112により描画された直線115の中央部分を横断するように動かすと、直線115の中央部分が削除され、2つの直線115A,115Bに分割される。なお、同時に複数の手書き線を削除することもできる。
Here, a case where a drawn image is erased using the eraser 114 will be described.
As shown in FIG. 5, when the eraser 114 is moved so as to cross the central portion of the straight line 115 drawn by the pen 112, the central portion of the straight line 115 is deleted and divided into two straight lines 115A and 115B. A plurality of handwritten lines can be deleted simultaneously.

この消しゴム114による消去処理は、ディスプレイ101を消しゴム114でタッチしてから動かしている間は、消しゴム114の触れた位置に背景と同じ画像を表示して、その部分が消えたように見せかけている。   In the erasing process by the eraser 114, while the display 101 is moved after being touched by the eraser 114, the same image as the background is displayed at the position touched by the eraser 114, and the part appears to have disappeared. .

ディスプレイ101を消しゴム114でタッチしてから、ディスプレイ101から消しゴム114が離れるまでの間は、背景画像を表示しながら、消しゴム114の位置を消しゴムストロークデータとして記録している。   While the display 101 is touched with the eraser 114 and until the eraser 114 is separated from the display 101, the position of the eraser 114 is recorded as eraser stroke data while displaying the background image.

次に、第1実施形態の電子黒板100における消しゴムストロークデータを削除する(間引く)アルゴリズムについて説明する。
図6は本発明の第1実施形態に係る描画像消去方法における消しゴム座標を間引くアルゴリズムを説明する説明図、図7は前記ディスプレイにおける消しゴムストロークの一例を示す説明図である。
Next, an algorithm for deleting (thinning out) eraser stroke data in the electronic blackboard 100 of the first embodiment will be described.
FIG. 6 is an explanatory diagram illustrating an algorithm for thinning out eraser coordinates in the drawn image erasing method according to the first embodiment of the present invention, and FIG. 7 is an explanatory diagram illustrating an example of an eraser stroke in the display.

実際の消しゴムストロークデータを削除する動作は、消しゴム114がディスプレイ101から離れるまでに記録していた消しゴムが移動したときの軌跡である消しゴムストロークを形成するストロークポイント(座標列)を利用して行われる。   The operation of deleting the actual eraser stroke data is performed using stroke points (coordinate sequences) that form an eraser stroke that is a locus when the eraser recorded before the eraser 114 moves away from the display 101 moves. .

消しゴム114のストロークポイントは次のように収集される。
消しゴム114の位置情報(座標)は、タッチパネル111から10(ms)毎にアプリケーションに通知される。
The stroke points of the eraser 114 are collected as follows.
The position information (coordinates) of the eraser 114 is notified from the touch panel 111 to the application every 10 (ms).

アプリケーションは、入力点フィルタリング判定部108により消しゴム114の標本点(位置情報)として新たに取得された点を記憶するか否かを以下のようにして判定する。   The application determines whether or not to store the newly acquired point as the sample point (position information) of the eraser 114 by the input point filtering determination unit 108 as follows.

(1)消しゴム114がディスプレイ101に触れてから最初の2点は(同一点でない限り)、無条件に記憶するものとする。
(2)消しゴム114がディスプレイ101から離れる瞬間に取得された点は記憶するものとする。
(3)前回記憶した点と同じ点は無視する。
(4)前に記憶した2点A,Bの成す直線ABの延長線(2点鎖線)と、前回記憶した点Bと新規点Cの成す線BCとの角度θ1を求め(図6を参照)、その角度θ1が一定以上(例えば、10度超)であれば、新規点Cを標準点として記憶し、それ以下なら新規点Cは削除する。
(1) The first two points after the eraser 114 touches the display 101 (unless they are the same point) are stored unconditionally.
(2) The point acquired at the moment when the eraser 114 leaves the display 101 is stored.
(3) Ignore the same points as previously stored points.
(4) The angle θ1 between the extension line (two-dot chain line) of the straight line AB formed by the two points A and B stored previously and the line BC formed by the point B and the new point C stored previously is obtained (see FIG. 6). ), If the angle θ1 is greater than or equal to a certain value (for example, more than 10 degrees), the new point C is stored as a standard point, and if it is less than that, the new point C is deleted.

その他に補助的な条件として、次のような条件を追加しても良い。
(5)前回記憶した点から一定距離以下の点は無視する。
(6)消しゴム114のストロークポイントの点数が一定以下の場合には全ての点を記憶する。
In addition, the following conditions may be added as auxiliary conditions.
(5) Ignore points that are less than a certain distance from the previously stored point.
(6) When the number of stroke points of the eraser 114 is below a certain value, all points are stored.

また、消しゴム114のストロークポイントのずれは、前に記憶した2点の成す直線と、前回記憶した点と新規点の成す直線との角度と、前回記憶した点(最後の標本点)と新規点(次の標本点広報の点)との距離に依存することを考慮し、下記のようにすることもできる。   The displacement of the stroke point of the eraser 114 includes the previously stored straight line formed by the two points, the angle between the previously stored point and the straight line formed by the new point, the previously stored point (last sample point), and the new point. Considering that it depends on the distance to the next sample point publicity point, it can also be as follows.

(7)前に記憶した2点A,Bの成す直線ABの延長線(2点鎖線)と、前回記憶した点Bと新規点Cの成す線BCとの角度θ1を求め(図6を参照)、sinθ1×(線BCの長さ)が一定以上であれば、新規点Cを記憶し、それ以下なら新規点Cは削除する。 (7) The angle θ1 between the extension line (two-dot chain line) of the straight line AB formed by the two points A and B stored previously and the line BC formed by the previously stored point B and the new point C is obtained (see FIG. 6). ), If sin θ1 × (the length of the line BC) is greater than or equal to a certain value, the new point C is stored, and if it is less than that, the new point C is deleted.

このようにして、消しゴム114がディスプレイ101から離れるまでの間、消しゴム114のストロークポイントを収集し、消しゴム114がディスプレイ101から離れたときに、収集した消しゴム114の座標列のデータを取捨選択して削除するとともに、消しゴムの選択されたストロークポイントに基づいて手書き線の消去を行う。   In this way, the stroke point of the eraser 114 is collected until the eraser 114 moves away from the display 101, and when the eraser 114 moves away from the display 101, the collected coordinate sequence data of the eraser 114 is selected. In addition to deleting, the handwritten line is deleted based on the selected stroke point of the eraser.

このアルゴリズムは、将来の点情報を必要としないので、リアルタイムに消しゴム114の位置情報を取捨選択するのに適している。   Since this algorithm does not require future point information, it is suitable for selecting the position information of the eraser 114 in real time.

なお、将来の点情報を利用して取捨選択を行う場合には、消しゴム114がディスプレイ101から離れたときに消しゴム114の位置情報を取捨選択するようにしても構わない。   In the case where the selection is performed using future point information, the position information of the eraser 114 may be selected when the eraser 114 leaves the display 101.

また、図7に示すように、電子黒板100のディスプレイ101に描かれた消しゴムストロークが直線部aと曲線部bとを含む場合は、サンプリングした複数の標本点から導かれる曲線部bにおいては消去操作による座標列のデータ量を削減せず、サンプリングした複数の標本点から導かれる直線部aにおいては消去操作による座標列のデータ量を削減するようにしてもよい。黒星マークは消しゴムストロークの標本点として採用された点、×マークは消しゴムストロークの座標列から削除可能な点を示す。   In addition, as shown in FIG. 7, when the eraser stroke drawn on the display 101 of the electronic blackboard 100 includes a straight line portion a and a curved portion b, the erased portion is erased in the curved portion b derived from a plurality of sampled sample points. Instead of reducing the data amount of the coordinate sequence by the operation, the data amount of the coordinate sequence by the erasing operation may be reduced at the straight line portion a derived from the plurality of sampled sample points. The black star mark is a point adopted as a sample point of the eraser stroke, and the x mark indicates a point that can be deleted from the coordinate sequence of the eraser stroke.

このようにすることで、直線部aにおいては、消しゴム座標列のデータを大幅に削減でき、曲線部bにおいては、消しゴムストロークの形状を変化させることなく描画像の消去処理を行うことができる。   By doing in this way, the data of the eraser coordinate sequence can be greatly reduced in the straight line portion a, and the drawn image can be erased in the curved portion b without changing the shape of the eraser stroke.

具体的には、消しゴム114で広い領域を消去する場合、ユーザはディスプレイ101上の平面の一領域を塗りつぶすように左右方向または上下方向に消しゴム114を繰り返し往復させて消去を行うことがある。   Specifically, when erasing a wide area with the eraser 114, the user may erase by repeatedly reciprocating the eraser 114 in the left-right direction or the up-down direction so as to fill one area of the plane on the display 101.

このような場合には、消しゴムストロークは直線部と折り返し部分(曲線部)の繰り返しになっており、直線部については点数を削減しても消しゴムストロークの形状は大きく変化しない。そのため、消しゴムストローク上のある点において、消しゴムストロークの向かう方向が前回からほとんど変化していないのであれば、この点は取得する必要が低い。   In such a case, the eraser stroke is a repetition of a straight portion and a folded portion (curved portion), and the shape of the eraser stroke does not change greatly even if the number of points is reduced for the straight portion. For this reason, if the direction of the eraser stroke has hardly changed from the previous time at a certain point on the eraser stroke, it is not necessary to acquire this point.

そこで、折り返し部分(曲線部)においては高い頻度で標本点を取得し、直線部においては標本点の取得頻度を下げるようにすることで、消しゴムストロークの形状に与える影響を少なくしたままで、標本点数を減らすことができる。   Therefore, the sample points are acquired at a high frequency in the folded portion (curved portion), and the sample points are acquired at a low frequency in the straight line portion, thereby reducing the influence on the shape of the eraser stroke. The score can be reduced.

次に、第1実施形態の電子黒板100において描画像を消去する時の消しゴムストロークデータを取捨する処理についてフローチャートに沿って説明する。
図8は本発明の第1実施形態に係る描画像消去方法が採用された電子黒板において描画像を消去する時の消しゴムストロークデータを取捨する処理工程の一例を示すフローチャートである。
Next, a process for discarding eraser stroke data when the drawn image is erased in the electronic blackboard 100 of the first embodiment will be described with reference to a flowchart.
FIG. 8 is a flowchart showing an example of processing steps for discarding eraser stroke data when the drawn image is erased on the electronic blackboard adopting the drawn image erasing method according to the first embodiment of the present invention.

電子黒板100において描かれた描画像を消去する場合は、図8に示すように、まず、消しゴム114(または消しゴムとして機能するペン)により入力された消しゴムストロークデータをサンプリングして最初の2点(図6に示す点A,B)を標準点として記録する(ステップS1)。   When erasing a drawn image drawn on the electronic blackboard 100, first, as shown in FIG. 8, the eraser stroke data input by the eraser 114 (or a pen functioning as an eraser) is sampled and the first two points ( The points A and B) shown in FIG. 6 are recorded as standard points (step S1).

そして、次の点(図6に示す点C)を取得する(ステップS2)。そして、次の点Cが最後の点であるか否かが判断される(ステップS3)。   Then, the next point (point C shown in FIG. 6) is acquired (step S2). Then, it is determined whether or not the next point C is the last point (step S3).

ステップS3において、次の点Cが最後の点であると判断された場合は、点Cを新しい標準点として記録する(ステップS4)。   If it is determined in step S3 that the next point C is the last point, the point C is recorded as a new standard point (step S4).

一方、ステップS3において、次の点Cが最後の点ではないと判断された場合は、前回取得した点と同一座標であるか否かが判断される(ステップS5)。   On the other hand, if it is determined in step S3 that the next point C is not the last point, it is determined whether or not it is the same coordinate as the previously acquired point (step S5).

ステップS5において、前回取得した点と同一座標であると判断された場合は、点Cを記録せずに消去して(ステップS6)、ステップS2に戻る。   If it is determined in step S5 that the coordinates are the same as the previously acquired point, the point C is deleted without being recorded (step S6), and the process returns to step S2.

一方、ステップS5において、前回取得した点と同一座標ではないと判断された場合は、前の2点A,Bを繋ぐ線AB(図6を参照)を求める(ステップS7)。   On the other hand, if it is determined in step S5 that the coordinates are not the same as the previously acquired point, a line AB (see FIG. 6) connecting the previous two points A and B is obtained (step S7).

次に、次の点Cと前の点Bを繋ぐ線BC(図6を参照)を求める(ステップS8)。
そして、線ABの延長線と線BCとの成す角度θ1(図6を参照)を求める(ステップS9)。
そして、角度θ1が10度以下であるか否かが判断される(ステップS10)。
Next, a line BC (see FIG. 6) connecting the next point C and the previous point B is obtained (step S8).
Then, an angle θ1 (see FIG. 6) formed by the extension line of the line AB and the line BC is obtained (step S9).
And it is judged whether angle (theta) 1 is 10 degrees or less (step S10).

ステップS10において、角度θ1が10度以下であると判断された場合は、ステップS6に進み、点Cを記録せずに削除して、ステップS2に戻る。   In step S10, when it is determined that the angle θ1 is 10 degrees or less, the process proceeds to step S6, the point C is deleted without being recorded, and the process returns to step S2.

一方、ステップS10において、角度θ1が10度以下ではないと判断された場合は、点Cを新しい標準点として記録して(ステップS11)、ステップS2に戻る。   On the other hand, if it is determined in step S10 that the angle θ1 is not less than 10 degrees, the point C is recorded as a new standard point (step S11), and the process returns to step S2.

このようにして、消しゴム114により入力された点をサンプリングして取得した点(座標)を新しい標準点にするか否かを判断してデータ取捨選択することで、記録する消しゴムストロークデータのデータ量を最小限にすることができる。   In this way, the data amount of the eraser stroke data to be recorded is determined by selecting whether or not the point (coordinates) obtained by sampling the point input by the eraser 114 is a new standard point, and selecting the data. Can be minimized.

以上のように構成したので、第1実施形態によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法を採用した電子黒板100において、入力点フィルタリング判定部108を備えて、サンプリングした2点の標本点A,Bから導かれる直線ABの延長線と、サンプリングした最後の標本点Bと新しくサンプリングした標本点候補の点Cから導かれる線BCとの成す角度θ1に基づいて、標本点候補の点Cを新たな標本点として使用するか否かを判定するようにしたので、角度θ1に閾値を設けて、その角度に達していない場合は、新しくサンプリングした標本点候補の点Cは新たな標本点として使用しないようにする、という簡単な処理により、角度変化が少ない標本点候補の点を削除することができる。これにより、一連の消しゴムストロークデータの点数を削減して、消しゴムストロールの形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる。   Since it comprised as mentioned above, according to 1st Embodiment, in the display screen along the coordinate row | line | column by a series of deletion operation obtained by sampling the coordinate which moves based on a time series at the time of drawing image deletion operation In the electronic blackboard 100 that employs a drawn image erasing method for erasing a drawn image, an input point filtering determination unit 108 is provided to extend the straight line AB derived from the two sampled points A and B and the last sampled. Whether or not to use the sample point candidate point C as a new sample point is determined based on the angle θ1 between the sample point B and the line BC derived from the newly sampled sample point candidate point C. Therefore, by setting a threshold value for the angle θ1 and not reaching the angle, the newly sampled sample point candidate point C is not used as a new sample point. With this simple processing, it is possible to delete sample point candidate points with little angle change. As a result, the time taken for the erasing process of the drawn image can be reduced without changing the number of the eraser stroke data and changing the shape of the eraser stroke.

なお、第1実施形態では、入力点フィルタリング判定部108の機能として、サンプリングした2点A,Bから導かれる直線ABの延長線と、サンプリングした複数の標本点のうちの最後の点Bと新しくサンプリングした標本点候補の点Cから導かれる線BCとの成す角度θ1に基づいて、標本点候補の点Cを新たな標本点として使用するか否かを判定するようにしているが、本発明は、これに限定されるものではない。   In the first embodiment, the input point filtering determination unit 108 functions as an extension of the straight line AB derived from the two sampled points A and B, and the last point B among the plurality of sampled sample points. Whether or not to use the sample point candidate point C as a new sample point is determined based on the angle θ1 formed with the line BC derived from the sampled sample point candidate point C. However, the present invention is not limited to this.

例えば、入力点フィルタリング判定部108の機能として、サンプリングした最後の点Bと標本点候補の点Cから導かれる線BCの長さに基づいて、標本点候補の点Cを新たな標本点として使用するか否かを判定するようしてもよい。例えば、線BCの長さに閾値を設けて、その長さに達していない場合は、新しくサンプリングした標本点候補の点Cは新たな標本点として使用しないようにしてもよい。   For example, as a function of the input point filtering determination unit 108, the sample point candidate point C is used as a new sample point based on the length of the line BC derived from the last sampled point B and the sample point candidate point C. It may be determined whether or not to do so. For example, if a threshold value is provided for the length of the line BC and the length has not been reached, the newly sampled sample point candidate point C may not be used as a new sample point.

また、入力点フィルタリング判定部108の機能として、上述した機能に加えて、サンプリングした複数の標本点から導かれる曲線の離散的な点の座標列に基づき、その曲線の極値を求める機能を備えて、その曲線の極値及び/又はその周辺においては消去操作による座標列のデータ量の削減を実施せず、それ以外の部分においては消去操作による座標列のデータ量の削減を実施するようにしてもよい。   Further, as a function of the input point filtering determination unit 108, in addition to the above-described function, a function for obtaining an extreme value of a curve based on a coordinate sequence of discrete points of a curve derived from a plurality of sampled sample points is provided. Therefore, the extremum of the curve and / or the periphery thereof are not reduced in the data amount of the coordinate string by the erasing operation, and the data amount of the coordinate string is reduced in the other portions by the erasing operation. May be.

(第2実施形態)
次に、本発明の第2実施形態について説明する。
図9は本発明の第2実施形態に係る描画像消去方法が採用された電子黒板の構成を示すブロック図である。
(Second Embodiment)
Next, a second embodiment of the present invention will be described.
FIG. 9 is a block diagram showing the configuration of an electronic blackboard that employs the drawn image erasing method according to the second embodiment of the present invention.

なお、第2実施形態に係る電子黒板の構成は第1実施形態の電子黒板100と同様な構成および機能を備えるものであるため、第1実施形態の電子黒板100の構成と同様な構成を有するものは同一の符号を付することで説明を省略する。   Note that the configuration of the electronic blackboard according to the second embodiment has the same configuration and function as the electronic blackboard 100 of the first embodiment, and therefore has the same configuration as the configuration of the electronic blackboard 100 of the first embodiment. Components are denoted by the same reference numerals and description thereof is omitted.

第2実施形態の電子黒板200は、図9に示すように、制御部203の構成として、入力点フィルタリング判定部208を備え、描画像を消去する際に得られる一連の消去操作による座標列のデータ量を入力点フィルタリング判定部208によって削減するようにしたことを特徴とするものである。   As shown in FIG. 9, the electronic blackboard 200 according to the second embodiment includes an input point filtering determination unit 208 as a configuration of the control unit 203, and a coordinate sequence by a series of erasing operations obtained when erasing a drawn image. The amount of data is reduced by the input point filtering determination unit 208.

電子黒板200は、主に、描画を行うディスプレイ101、記憶部102、各部の動作・処理制御を行う制御部203を備えている。そして、電子黒板200には、手書きペン用のアプリケーションが搭載されている。   The electronic blackboard 200 mainly includes a display 101 that performs drawing, a storage unit 102, and a control unit 203 that controls operation and processing of each unit. The electronic blackboard 200 is loaded with a handwriting pen application.

制御部203は、主に、表示制御部104、入力受付部105、ペン処理部106、消しゴム処理部107を備え、さらに、入力点フィルタリング判定部208を備えることを特徴としている。   The control unit 203 mainly includes a display control unit 104, an input reception unit 105, a pen processing unit 106, an eraser processing unit 107, and further includes an input point filtering determination unit 208.

入力点フィルタリング判定部208は、第1実施形態の入力点フィルタリング判定部108の機能に加えて、サンプリングした最後の標本点と新しくサンプリングした標本点候補の点から導かれる直線と、前記標本点候補の点とさらに新しくサンプリングした次の標本点候補の点とから導かれる直線との角度に基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する機能、を備えることを特徴としている。   In addition to the function of the input point filtering determination unit 108 of the first embodiment, the input point filtering determination unit 208 includes a straight line derived from the last sampled sample point and a newly sampled sample point candidate point, and the sample point candidate. A function for determining whether to use the sample point candidate as a new sample point based on the angle between the point and the straight line derived from the point of the next sample point candidate that has been newly sampled. It is a feature.

入力点フィルタリング判定部208により新たな標本点としないと判定された消しゴム座標のデータは削除される。   The eraser coordinate data determined not to be a new sample point by the input point filtering determination unit 208 is deleted.

次に、第2実施形態の電子黒板200における消しゴム114の座標列のデータを削除する(間引く)アルゴリズムについて説明する。
図10は本発明の第2実施形態に係る描画像消去方法における消しゴム座標を間引くアルゴリズムを説明する説明図である。
Next, an algorithm for deleting (thinning out) the coordinate sequence data of the eraser 114 in the electronic blackboard 200 of the second embodiment will be described.
FIG. 10 is an explanatory diagram for explaining an algorithm for thinning out eraser coordinates in the drawn image erasing method according to the second embodiment of the present invention.

第2実施形態において、消しゴム114のストロークポイントの収集は、第1実施形態と同様に行われるため説明を省略する。   In the second embodiment, the collection of the stroke points of the eraser 114 is performed in the same manner as in the first embodiment, and a description thereof will be omitted.

電子黒板200に搭載されたアプリケーションは、入力点フィルタリング判定部208により消しゴム114の標本点(位置情報)として新たに入力された点を記憶するか否かを以下のようにして判定する。   The application installed in the electronic blackboard 200 determines whether or not to store a newly input point as the sample point (position information) of the eraser 114 by the input point filtering determination unit 208 as follows.

まず、図10に示すように、記憶するかどうか判定する点(標準点候補の点)を点T、記憶するかどうか判定する点Tから1点先の点(次の標準点候補の点)を点N、記憶するかどうか判定する点Tから1つ前の点を点Pとする。   First, as shown in FIG. 10, the point (standard point candidate point) for determining whether to memorize is a point T, and the point one point after the point T for determining whether to memorize (the point for the next standard point candidate) Is point N, and point P is the point one point before point T for determining whether or not to store.

新規に取得された点Tを記憶するかどうかは、記憶するかどうか判定する点Tから1点先の点Nまで先読みして判定する。   Whether or not to store the newly acquired point T is determined by prefetching from the point T for determining whether to store the point T to the point N one point ahead.

(1)消しゴム114がディスプレイ101に触れてから最初の1点は無条件に記憶するものとする。
(2)消しゴム114がディスプレイ101から離れる瞬間に取得された点は記憶するものとする。
(3)連続する同一位置の点は無視する。
(4)点Pと点Tのなす直線PTの延長線(2点鎖線)と、点Tと点Nのなす直線TNとの角度θ2を求め(図10を参照)、その角度θ2が一定以上(例えば、10度超)であれば、点Tを標準点として記憶し、それ以下なら点Tは削除する。
(1) The first point after the eraser 114 touches the display 101 is stored unconditionally.
(2) The point acquired at the moment when the eraser 114 leaves the display 101 is stored.
(3) Ignore consecutive points at the same position.
(4) An angle θ2 between an extended line (two-dot chain line) of the straight line PT formed by the point P and the point T and a straight line TN formed by the point T and the point N is obtained (see FIG. 10), and the angle θ2 is not less than a certain value. If it is (for example, more than 10 degrees), the point T is stored as a standard point, and if it is less than that, the point T is deleted.

このようにして、消しゴム114がディスプレイ101から離れるまでの間、消しゴム114のストロークポイントを収集し、消しゴム114がディスプレイ101から離れたときに、収集した消しゴムストロークデータを取捨選択して削除するとともに、選択された消しゴムのストロークポイントに基づいて手書き線の消去を行う。   In this manner, the stroke point of the eraser 114 is collected until the eraser 114 leaves the display 101, and when the eraser 114 leaves the display 101, the collected eraser stroke data is selected and deleted, Erase the handwritten line based on the selected eraser stroke point.

このアルゴリズムは、将来の点情報を必要とするが、先読みは1点だけであるため、リアルタイムに消しゴム114の位置情報を取捨選択するのに適している。   This algorithm requires future point information, but since only one point is read ahead, it is suitable for selecting the position information of the eraser 114 in real time.

なお、将来の点情報を利用して取捨選択を行う場合には、消しゴム114がディスプレイ101から離れたときに消しゴム114の位置情報を取捨選択するようにしても構わない。   In the case where the selection is performed using future point information, the position information of the eraser 114 may be selected when the eraser 114 leaves the display 101.

次に、第2実施形態の電子黒板200において描画像を消去する時の消しゴムストロークデータを取捨する処理についてフローチャートに沿って説明する。
図11は本発明の第2実施形態に係る描画像消去方法が採用された電子黒板において描画像を消去する時の消しゴムストロークデータを取捨する処理工程の一部の工程を示すフローチャート、図12は図11のフローチャートに続く工程を示すフローチャートである。
Next, a process for discarding eraser stroke data when erasing a drawn image on the electronic blackboard 200 of the second embodiment will be described with reference to a flowchart.
FIG. 11 is a flowchart showing a part of a processing step of discarding eraser stroke data when erasing a drawn image on an electronic blackboard adopting the drawn image erasing method according to the second embodiment of the present invention. 12 is a flowchart illustrating a process following the flowchart of FIG. 11.

電子黒板200において描かれた描画像を消去する場合は、図11に示すように、まず、消しゴム114(または消しゴムとして機能するペン)により入力された消しゴムストロークデータをサンプリングして最初の1点(図10に示す点P)を標準点として記録する(ステップS101)。   When erasing a drawn image drawn on the electronic blackboard 200, as shown in FIG. 11, first, the eraser stroke data input by the eraser 114 (or a pen functioning as an eraser) is sampled and the first point ( The point P) shown in FIG. 10 is recorded as a standard point (step S101).

そして、次の点(図10に示す点T)を取得し(ステップS102)、その次の点(図10に示す点N)を取得する(ステップS103)。そして、点Nが最後の点であるか否かが判断される(ステップS104)。   Then, the next point (point T shown in FIG. 10) is acquired (step S102), and the next point (point N shown in FIG. 10) is acquired (step S103). Then, it is determined whether or not the point N is the last point (step S104).

ステップS104において、点Nが最後の点であると判断された場合は、前の点Pと次の点Tを繋ぐ線PT(図10を参照)を求める(ステップS105)。   When it is determined in step S104 that the point N is the last point, a line PT (see FIG. 10) connecting the previous point P and the next point T is obtained (step S105).

次に、次の点Tとその次の点Nを繋ぐ線TN(図10を参照)を求める(ステップS106)。
そして、線PTの延長線と線TNとの成す角度θ2(図10を参照)を求める(ステップS107)。
そして、角度θ2が10度以下であるか否かが判断される(ステップS108)。
Next, a line TN (see FIG. 10) connecting the next point T and the next point N is obtained (step S106).
Then, an angle θ2 (see FIG. 10) formed by the extension line of the line PT and the line TN is obtained (step S107).
Then, it is determined whether or not the angle θ2 is 10 degrees or less (step S108).

ステップS108において、角度θ2が10度以下であると判断された場合は、点Tを記録せずに削除する(ステップS111)。   If it is determined in step S108 that the angle θ2 is 10 degrees or less, the point T is deleted without being recorded (step S111).

そして、点Nを新しい標準点として記録する(ステップS110)。これにより、消しゴムストロークは直線PNとなる。   Then, the point N is recorded as a new standard point (step S110). As a result, the eraser stroke becomes a straight line PN.

一方、ステップS108において、角度θ2が10度以下ではないと判断された場合は、点Tを新しい標準点として記録する(ステップS109)。   On the other hand, if it is determined in step S108 that the angle θ2 is not less than 10 degrees, the point T is recorded as a new standard point (step S109).

そして、点Nを新しい標準点として記録する(ステップS110)。   Then, the point N is recorded as a new standard point (step S110).

一方、ステップS104において、点Nが最後の点ではないと判断された場合は、ステップS121に進み、前回取得した点と同一座標であるか否かが判断される。   On the other hand, if it is determined in step S104 that the point N is not the last point, the process proceeds to step S121, and it is determined whether or not the point is the same coordinate as the previously acquired point.

ステップS121において、前回取得した点と同一座標であると判断された場合は、点Tを記録せずに消去して(ステップS122)、点Nを新しい標準点として記録する(ステップS128)。そして、ステップS102に戻る。   If it is determined in step S121 that the coordinates are the same as the previously acquired point, the point T is deleted without being recorded (step S122), and the point N is recorded as a new standard point (step S128). Then, the process returns to step S102.

一方、ステップS121において、前回取得した点と同一座標ではないと判断された場合は、前の点Pと次の点Tを繋ぐ線PT(図10を参照)を求める(ステップS123)。   On the other hand, if it is determined in step S121 that the coordinates are not the same as the previously acquired point, a line PT (see FIG. 10) connecting the previous point P and the next point T is obtained (step S123).

次に、次の点Tとその次の点Nを繋ぐ線TN(図10を参照)を求める(ステップS124)。
そして、線PTの延長線と線TNとの成す角度θ2(図10を参照)を求める(ステップS125)。
そして、角度θ2が10度以下であるか否かが判断される(ステップS126)。
Next, a line TN (see FIG. 10) connecting the next point T and the next point N is obtained (step S124).
Then, an angle θ2 (see FIG. 10) formed by the extension line of the line PT and the line TN is obtained (step S125).
Then, it is determined whether or not the angle θ2 is 10 degrees or less (step S126).

ステップS126において、角度θ2が10度以下であると判断された場合は、点Tを記録せずに削除して(ステップS122)、点Nを新しい標準点として記録する(ステップS128)。そして、ステップS102に戻る。   If it is determined in step S126 that the angle θ2 is 10 degrees or less, the point T is deleted without being recorded (step S122), and the point N is recorded as a new standard point (step S128). Then, the process returns to step S102.

一方、ステップS126において、角度θ2が10度以下ではないと判断された場合は、点Tを新しい標準点として記録して(ステップS127)、点Nを新しい標準点として記録する(ステップS128)。そして、ステップS102に戻る。   On the other hand, if it is determined in step S126 that the angle θ2 is not less than 10 degrees, the point T is recorded as a new standard point (step S127), and the point N is recorded as a new standard point (step S128). Then, the process returns to step S102.

このようにして、消しゴム114により入力された点をサンプリングして取得した点(座標)を新しい標準点にするか否かを判断してデータ取捨選択することで、記録する消しゴムストロークデータのデータ量を最小限にすることができる。   In this way, the data amount of the eraser stroke data to be recorded is determined by selecting whether or not the point (coordinates) obtained by sampling the point input by the eraser 114 is a new standard point, and selecting the data. Can be minimized.

以上のように構成したので、第2実施形態によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法を採用した電子黒板200において、入力点フィルタリング判定部208を備えて、サンプリングした最後の点P(標本点)と標本点候補の点Tから導かれる線PTと、標本点候補の点Tとさらに新しくサンプリングした次の標本点候補の点Nとから導かれる直線TNとの角度θ2に基づいて、標本点候補を新たな標本点として使用するか否かを判定するようにしたので、角度θ2に閾値を設けて、その角度に達していない場合は、標本点候補の点Tは新たな標本点として使用しないようにする、という簡単な処理により、角度変化が少ない標本点候補の点を削除することができる。これにより、一連の消しゴムストロークデータの点数を削減して、消しゴムストロールの形状を変化させることなく、描画像の消去処理にかかる時間を短縮することができる。   Since it was configured as described above, according to the second embodiment, a display screen is displayed along a coordinate sequence by a series of erasure operations obtained by sampling coordinates that move based on a time series during a drawn image erasure operation. An electronic blackboard 200 that employs a drawn image erasing method for erasing a drawn image includes an input point filtering determination unit 208, and a line PT derived from the last sampled point P (sample point) and the sample point candidate point T, Based on the angle θ2 between the point T of the sample point candidate and the straight line TN derived from the newly sampled point N of the next sample point, it is determined whether to use the sample point candidate as a new sample point As a result, a threshold is set for the angle θ2, and if the angle is not reached, the sample point candidate point T is not used as a new sample point. Sample point candidate points with little angle change can be deleted. As a result, the time taken for the erasing process of the drawn image can be reduced without changing the number of the eraser stroke data and changing the shape of the eraser stroke.

なお、第2実施形態では、入力点フィルタリング判定部208の機能として、サンプリングした最後の点Pと標本点候補の点Tから導かれる直線PTの延長線と、標本点候補の点Tとさらに新しくサンプリングした次の標本点候補の点Nとから導かれる直線TNとの成す角度θ2に基づいて、標本点候補の点Tを新たな標本点として使用するか否かを判定するようにしているが、本発明は、これに限定されるものではない。   In the second embodiment, as the function of the input point filtering determination unit 208, the extension line of the straight line PT derived from the last sampled point P and the sample point candidate point T, and the sample point candidate point T are further updated. Whether or not to use the sample point candidate point T as a new sample point is determined based on the angle θ2 formed by the straight line TN derived from the sampled point N of the next sample point candidate. However, the present invention is not limited to this.

例えば、入力点フィルタリング判定部208の機能として、標本点候補の点Tとさらに新しくサンプリングした次の標本点候補の点Nとから導かれる直線TNの長さに基づいて、標本点候補の点Tを新たな標本点として使用するか否かを判定するようにしてもよい。例えば、直線TNの長さに閾値を設けて、その長さに達していない場合は、標本点候補の点Tは新たな標本点として使用しないようにしてもよい。   For example, as a function of the input point filtering determination unit 208, based on the length of the straight line TN derived from the sample point candidate point T and the newly sampled next sample point candidate point N, the sample point candidate point T May be used as a new sample point. For example, if a threshold is provided for the length of the straight line TN and the length has not been reached, the sample point candidate point T may not be used as a new sample point.

また、入力点フィルタリング判定部208の機能として、上述した機能に加えて、サンプリングした複数の標本点から導かれる曲線の離散的な点の座標列に基づき、その曲線の極値を求める機能を備えて、その曲線の極値及び/又はその周辺においては消去操作による座標列のデータ量の削減を実施せず、それ以外の部分においては消去操作による座標列のデータ量の削減を実施するようにしてもよい。   Further, as a function of the input point filtering determination unit 208, in addition to the above-described function, a function for obtaining an extreme value of a curve based on a coordinate sequence of discrete points of a curve derived from a plurality of sampled sample points is provided. Therefore, the extremum of the curve and / or the periphery thereof are not reduced in the data amount of the coordinate string by the erasing operation, and the data amount of the coordinate string is reduced in the other portions by the erasing operation. May be.

(第3実施形態)
次に、本発明の第3実施形態について説明する。
図13は本発明の第3実施形態に係る描画像消去方法が採用された電子黒板の構成を示すブロック図である。
(Third embodiment)
Next, a third embodiment of the present invention will be described.
FIG. 13 is a block diagram showing the configuration of an electronic blackboard that employs the drawn image erasing method according to the third embodiment of the present invention.

なお、第3実施形態に係る電子黒板の構成は第1実施形態の電子黒板100と同様な構成および機能を備えるものであるため、第1実施形態の電子黒板100の構成と同様な構成を有するものは同一の符号を付することで説明を省略する。   Note that the configuration of the electronic blackboard according to the third embodiment has the same configuration and function as the electronic blackboard 100 of the first embodiment, and therefore has the same configuration as the configuration of the electronic blackboard 100 of the first embodiment. Components are denoted by the same reference numerals and description thereof is omitted.

第3実施形態の電子黒板300は、図13に示すように、制御部303の構成として、関数近似処理部308を備え、サンプリングした複数の標本点から導かれる曲線を離散的な点によりサンプリングした点列によって近似的にデータ化する関数近似を行い、その曲線の導関数の値に応じてサンプリングを行う頻度を変化させるようにしたことを特徴とするものである。   As illustrated in FIG. 13, the electronic blackboard 300 according to the third embodiment includes a function approximation processing unit 308 as a configuration of the control unit 303, and samples curves derived from a plurality of sampled sample points using discrete points. A function approximation that approximates data by a point sequence is performed, and the sampling frequency is changed in accordance with the value of the derivative of the curve.

電子黒板300は、主に、描画を行うディスプレイ101、記憶部102、各部の動作・処理制御を行う制御部303を備えている。そして、電子黒板300には、手書きペン用のアプリケーションが搭載されている。   The electronic blackboard 300 mainly includes a display 101 that performs drawing, a storage unit 102, and a control unit 303 that controls operation and processing of each unit. The electronic blackboard 300 is loaded with a handwriting pen application.

制御部303は、主に、表示制御部104、入力受付部105、ペン処理部106、消しゴム処理部107を備え、さらに、関数近似処理部308を備えることを特徴としている。   The control unit 303 mainly includes a display control unit 104, an input reception unit 105, a pen processing unit 106, an eraser processing unit 107, and further includes a function approximation processing unit 308.

関数近似処理部308は、サンプリングした複数の標本点から導かれる曲線を離散的な点によりサンプリングした点列によって近似的にデータ化する関数近似を行い、その曲線の導関数の値に応じて、サンプリングを行う頻度を変化させる機能、を備えることを特徴としている。   The function approximation processing unit 308 performs function approximation to approximately convert a curve derived from a plurality of sampled sample points into data using a sequence of points sampled by discrete points, and according to the value of the derivative of the curve, It has a function of changing the frequency of sampling.

第3実施形態において、消しゴム114のストロークポイント(座標列)の収集は、第1実施形態と同様に行われる。そして、消しゴム114の位置情報(座標)は、タッチパネル111から10(ms)毎にアプリケーションに通知される。   In the third embodiment, the collection of stroke points (coordinate sequences) of the eraser 114 is performed in the same manner as in the first embodiment. Then, the position information (coordinates) of the eraser 114 is notified from the touch panel 111 to the application every 10 (ms).

アプリケーションは、通知された消しゴム114の位置情報を消しゴムストローク群収納部122に一旦記憶して、関数近似処理部308において関数近似を行う。なお、必要に応じて消しゴム114のストローク部分ごとに関数近似してもよい。   The application temporarily stores the notified position information of the eraser 114 in the eraser stroke group storage unit 122 and performs function approximation in the function approximation processing unit 308. Note that a function approximation may be performed for each stroke portion of the eraser 114 as necessary.

このようにして得られた曲線を、y=f(x)、のように表す。
そして、このf(x)の導関数f’(x)の絶対値が一定値以下となる領域を求める。
そして、この領域について、点のサンプリングを実施する。
The curve thus obtained is expressed as y = f (x).
Then, a region where the absolute value of the derivative f ′ (x) of f (x) is equal to or smaller than a certain value is obtained.
Then, sampling of points is performed for this region.

これは、消しゴムストロークを縦方向に往復させて描画像を消去する場合に対応できる。   This can be dealt with when the erased image is erased by reciprocating the eraser stroke in the vertical direction.

なお、関数近似の方法によっては、一意の陽関数にできない場合もある。
その時は、陰関数として、h(x,y)=0、のように表す。
Depending on the method of function approximation, a unique explicit function may not be obtained.
At that time, h (x, y) = 0 is expressed as an implicit function.

また、y=f(x)をh(x,y)=0と表現し、偏導関数hx(x,y)又はhy(x,y)の絶対値が一定値以下となる領域についてサンプリングを実施すれば、消しゴムストロークを縦横の何れかの方向に往復させて描画像を消去する場合にも対応できる。   Also, y = f (x) is expressed as h (x, y) = 0, and sampling is performed for a region where the absolute value of the partial derivative hx (x, y) or hy (x, y) is equal to or less than a certain value. If implemented, it is possible to cope with the case where the erased image is erased by reciprocating the eraser stroke in either the vertical or horizontal direction.

また、消しゴムストロークが縦横ではなく、斜め方向に往復させて描画像を消去する可能性もある。この場合には、2階偏導関数|f”(x)|の絶対値が一定値以上である領域について、サンプリングを実施すれば、斜め方向の往復操作にも対応できる。   Further, there is a possibility that the drawn image is erased by moving the eraser stroke back and forth in an oblique direction instead of vertically and horizontally. In this case, if the sampling is performed on the region where the absolute value of the second-order partial derivative | f ″ (x) |

消しゴムストロークの近似関数として、h(x,y)=0の場合には、2階偏導関数はhxx(x,y),hyy(x,y),hxy(x,y),hyx(x,y)のようになる。これらの2階偏導関数の何れかの絶対値が一定値以上領域についてサンプリングを実施すれば、どの方向に往復する消しゴムストロークにも対応できる。   As an approximate function of the eraser stroke, when h (x, y) = 0, the second order partial derivatives are hxx (x, y), hyy (x, y), hxy (x, y), hyx (x , Y). If sampling is performed in a region where the absolute value of any one of these second-order partial derivatives is a certain value or more, it is possible to cope with an eraser stroke that reciprocates in any direction.

また、hxy(x,y),hyx(x,y)が同じになることが分かっている場合には、どちらかだけを計算すればよい。   If it is known that hxy (x, y) and hyx (x, y) are the same, only one of them need be calculated.

また、偏微分不可能な点がないような関数を求めることが望ましいが、もし偏微分不可能な点があった場合には、その点、もしくはその周囲についてもサンプリングを実施する。   Further, it is desirable to obtain a function that does not have a point that cannot be partially differentiated. However, if there is a point that cannot be partially differentiated, sampling is also performed on that point or its surroundings.

以上のように構成したので、第3実施形態によれば、描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去操作による座標列に沿って表示画面中の描画像を消去する描画像消去方法を採用した電子黒板300において、制御部303の構成として、関数近似処理部308を備えて、サンプリングした複数の標本点から導かれる曲線を離散的な点によりサンプリングした点列によって近似的にデータ化する関数近似を行い、その曲線の導関数の値に応じてサンプリングを行う頻度を変化させるようにすることで、消しゴムストロークデータの点数を削減することができる。   Since it comprised as mentioned above, according to 3rd Embodiment, in the display screen along the coordinate row | line | column by a series of deletion operation obtained by sampling the coordinate which moves based on a time series at the time of drawing image deletion operation In the electronic blackboard 300 that employs a drawn image erasing method for erasing a drawn image, the control unit 303 includes a function approximation processing unit 308 and samples curves derived from a plurality of sampled sample points using discrete points. By performing function approximation that approximates data by the sequence of points and changing the frequency of sampling according to the derivative value of the curve, the number of eraser stroke data can be reduced.

また、関数近似処理部308により、曲線の導関数の絶対値が小さいほどサンプリング周波数を高くするようにすることで、消しゴムストロールの形状を変化させることなく、描画像の消去処理を行うことができる。   In addition, the function approximation processing unit 308 can perform the erasure process of the drawn image without changing the shape of the eraser stroller by increasing the sampling frequency as the absolute value of the derivative of the curve is smaller. .

また、関数近似処理部308により、曲線をf(x,y)=0、f(x,y)の偏導関数をfx(x,y),fy(x,y)とするときに、fx(x,y)及びfy(x,y)の値に応じて、サンプリングを行う頻度を変化させるようにして、曲線の導関数の絶対値が小さいほどサンプリング周波数を高くするようにすることで、消しゴムストロールの形状を変化させることなく、描画像の消去処理を行うことができる。   When the function approximation processing unit 308 sets the curve to f (x, y) = 0 and the partial derivative of f (x, y) to fx (x, y), fy (x, y), fx By changing the frequency of sampling according to the values of (x, y) and fy (x, y), and increasing the sampling frequency as the absolute value of the derivative of the curve is smaller, The drawn image can be erased without changing the shape of the eraser stroller.

また、関数近似処理部308により、hxx(x,y),hyy(x,y),hxy(x,y),hyx(x,y)の2階偏導関数の何れかの絶対値がの絶対値が大きいほどサンプリング周波数を高くするようにすることで、消しゴムストロールの形状を変化させることなく、描画像の消去処理を行うことができる。   In addition, the function approximation processing unit 308 determines whether the absolute value of any of the second-order partial derivatives of hxx (x, y), hyy (x, y), hxy (x, y), and hyx (x, y) is By increasing the sampling frequency as the absolute value increases, the drawn image can be erased without changing the shape of the eraser stroller.

また、関数近似処理部308の機能として、曲線の接線が特定の条件を満たす箇所の点を標本点として取得し、曲線の接線の傾きが特定の条件を満たさない箇所についてはサンプリングを実施しない又はサンプリング頻度を下げるようにしてもよい。   In addition, as a function of the function approximation processing unit 308, a point where a curve tangent satisfies a specific condition is acquired as a sample point, and sampling is not performed for a point where the slope of the curve tangent does not satisfy a specific condition, or The sampling frequency may be lowered.

具体的には、曲線の接線の特定の条件を、曲線の接線の傾きが「0」、とすることで、直線部においてはサンプリングを実施しないようにして、消しゴムストロークデータの点数を削減することができる。   Specifically, by setting the slope of the curve tangent to “0” as a specific condition of the curve tangent, sampling is not performed in the straight line portion, and the score of the eraser stroke data is reduced. Can do.

なお、第3実施形態では、f(x,y)=0、など数式を用いている箇所があるが、これは必ずしも数式を用いなければならないということではなく、別の方法を用いて実装することも可能である。   In the third embodiment, there are places where mathematical expressions are used, such as f (x, y) = 0, but this does not necessarily mean that mathematical expressions are used, and implementation is performed using another method. It is also possible.

また、第3実施形態では、2次元において、サンプリングした複数の標本点から導かれる曲線を離散的な点によりサンプリングした点列によって近似的にデータ化する関数近似を行うようにしているが、本発明の描画像消去方法は2次元に限られるものではなく、n次元まで拡張可能である。   In the third embodiment, in two dimensions, function approximation is performed in which a curve derived from a plurality of sampled sample points is converted into data approximately by a sequence of points sampled by discrete points. The drawn image erasing method of the invention is not limited to two dimensions but can be extended to n dimensions.

(第4実施形態)
次に、本発明の第4実施形態について説明する。
第4実施形態は、本発明の描画像消去方法を3Dプリンタ用の設計ソフトウェアに採用したものであり、描画像を消去する消去部材として、3次元空間上の立方体として表現された3次元消しゴムを用いることができるようにしたことを特徴とするものである。
(Fourth embodiment)
Next, a fourth embodiment of the present invention will be described.
In the fourth embodiment, the drawn image erasing method of the present invention is applied to design software for a 3D printer, and a three-dimensional eraser expressed as a cube in a three-dimensional space is used as an erasing member for erasing a drawn image. It is characterized in that it can be used.

第4実施形態では、電子黒板やタブレット等のタッチパネル(入力装置)上で、3次元消しゴムを動かして空間上の描画像を削除するようにされている。   In the fourth embodiment, a three-dimensional eraser is moved on a touch panel (input device) such as an electronic blackboard or a tablet to delete a drawing image in space.

3次元消しゴムの位置情報(座標)は、タッチパネルから10(ms)毎にアプリケーションに通知される。   The position information (coordinates) of the three-dimensional eraser is notified to the application every 10 (ms) from the touch panel.

アプリケーションは、通知された3次元消しゴムの位置情報を記憶部に一旦記憶して、関数近似を行う。必要に応じて3次元消しゴムのストローク部分ごとに関数近似してもよい。   The application temporarily stores the notified position information of the three-dimensional eraser in the storage unit, and performs function approximation. If necessary, function approximation may be performed for each stroke portion of the three-dimensional eraser.

3次元空間上の領域において、消しゴムストロークが3次元であった場合、このストロークをf(x,y,z)=0のように表すとき、xについての偏導関数fx(x,y,z)=0になる点、yについての偏導関数fy(x,y,z)=0、及びzについての偏導関数fz(x,y,z)=0、となる点を標本点として取得することができる。   If the eraser stroke is three-dimensional in an area on a three-dimensional space, the partial derivative fx (x, y, z) with respect to x is expressed when this stroke is expressed as f (x, y, z) = 0. ) = 0, the partial derivative fy (x, y, z) = 0 for y, and the partial derivative fz (x, y, z) = 0 for z are obtained as sample points. can do.

以上のように、第4実施形態によれば、本発明の描画像消去方法は3次元空間上においても、消しゴムストロークにおける標準点を取得することができるので、上述した第3実施形態と同様に、サンプリングした複数の標本点に基づき近似的にデータ化する関数近似を行い、その曲線の導関数の値に応じてサンプリングを行う頻度を変化させることで、消しゴムストロークデータの点数を削減することができる。   As described above, according to the fourth embodiment, since the drawn image erasing method of the present invention can acquire the standard point in the eraser stroke even in the three-dimensional space, the same as in the third embodiment described above. It is possible to reduce the number of eraser stroke data by performing function approximation that approximates data based on a plurality of sampled points and changing the frequency of sampling according to the derivative value of the curve. it can.

なお、本発明は、上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。当業者であれば、特許請求の範囲に記載された範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、すなわち、本発明の要旨を逸脱しない範囲内において適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   In addition, this invention is not limited to embodiment mentioned above, A various change is possible in the range shown to the claim. It is obvious for those skilled in the art that various changes or modifications can be conceived within the scope of the claims, that is, changes are made as appropriate without departing from the scope of the present invention. Embodiments obtained by combining technical means are also included in the technical scope of the present invention.

特に、与えられた消しゴムストロークを用いて描画像を削除する方法は、ハフ変換を用いる方法以外にもさまざまな方法があり、本発明は特許請求の範囲に記載された範疇内において、他の描画像削除方法に対しても適用することができる。   In particular, there are various methods for deleting a drawn image using a given eraser stroke other than a method using a Hough transform, and the present invention falls within the scope of the claims and other drawing methods. It can also be applied to an image deletion method.

100,200,300 電子黒板
101 ディスプレイ
102 記憶部
103,203,303 制御部
104 表示制御部
105 入力受付部
106 ペン処理部
107 消しゴム処理部
108,208 入力点フィルタリング判定部
111 タッチパネル
112 ペン
113 描画像
114 消しゴム
121 ペンストローク群収納部
122 消しゴムストローク群収納部
308 関数近似処理部
100, 200, 300 Electronic blackboard 101 Display 102 Storage units 103, 203, 303 Control unit 104 Display control unit 105 Input reception unit 106 Pen processing unit 107 Eraser processing unit 108, 208 Input point filtering determination unit 111 Touch panel 112 Pen 113 Drawing image 114 Eraser 121 Pen Stroke Group Storage Unit 122 Eraser Stroke Group Storage Unit 308 Function Approximation Processing Unit

Claims (6)

描画像消去操作時に時系列に基づいて移動する座標のサンプリングを行って得られる一連の消去処理座標列の標本点に沿って表示画面中の描画像を消去する描画像消去方法において、
サンプリングした複数の標本点から導かれる直線と、サンプリングした複数の標本点のうちの最後の標本点と新しくサンプリングした標本点候補の点から導かれる直線との成す角度に基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する工程、を備えることを特徴とする描画像消去方法。
In a drawing image erasing method for erasing a drawing image in a display screen along a sample point of a series of erasing processing coordinate sequences obtained by sampling coordinates that move based on a time series during a drawing image erasing operation,
The sample point candidate based on the angle formed by the straight line derived from the sampled sample points and the straight line derived from the last sample point of the sampled sample points and the newly sampled sample point candidate point And a step of determining whether or not to use as a new sample point.
サンプリングした最後の標本点と前記標本点候補の点から導かれる直線の長さに基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する工程、
を備えることを特徴とする請求項1に記載の描画像消去方法。
Determining whether to use the sample point candidate as a new sample point based on the last sample point sampled and the length of a straight line derived from the sample point candidate point;
The drawn image erasing method according to claim 1, further comprising:
サンプリングした最後の標本点と前記標本点候補の点から導かれる直線と、前記標本点候補の点とさらに新しくサンプリングした次の標本点候補の点とから導かれる直線との角度に基づいて、前記標本点候補を新たな標本点として使用するか否かを判定する工程、
を備えることを特徴とする請求項1または2に記載の描画像消去方法。
Based on the angle between the last sample point sampled and the straight line derived from the sample point candidate point, and the straight line derived from the sample point candidate point and the newly sampled next sample point candidate point, Determining whether to use a sample point candidate as a new sample point;
The drawn image erasing method according to claim 1, further comprising:
前記標本点候補の点とさらに新しくサンプリングした次の標本点候補の点とから導かれる直線の長さに基づいて、前記標本点候補の点を新たな標本点として使用するか否かを判定する工程、
を備えることを特徴とする請求項3に記載の描画像消去方法。
Whether or not to use the sample point candidate point as a new sample point is determined based on the length of a straight line derived from the sample point candidate point and the newly sampled next sample point candidate point. Process,
The drawn image erasing method according to claim 3, further comprising:
サンプリングした複数の標本点から導かれる曲線部においては消去操作による座標列のデータ量を削減せず、サンプリングした複数の標本点から導かれる直線部においては消去操作による座標列のデータ量を削減することを特徴とする請求項1から4のうちの何れか一項に記載の描画像消去方法。   In the curve portion derived from a plurality of sampled sample points, the data amount of the coordinate sequence by the erasure operation is not reduced, and in the straight line portion derived from the plurality of sampled sample points, the data amount of the coordinate sequence is reduced. The drawn image erasing method according to claim 1, wherein the drawn image is erased. サンプリングした複数の標本点から導かれる曲線の離散的な点の座標列に基づき、前記曲線の極値を求める工程を備え、
前記曲線の極値及び/又はその周辺においては消去操作による座標列のデータ量の削減を実施せず、それ以外の部分においては消去操作による座標列のデータ量の削減を実施することを特徴とする請求項1から4のうちの何れか一項に記載の描画像消去方法。
Obtaining an extreme value of the curve based on a coordinate sequence of discrete points of the curve derived from a plurality of sampled sample points,
In the extreme value of the curve and / or the periphery thereof, the data amount of the coordinate string is not reduced by the erasing operation, and the data amount of the coordinate string is reduced by the erasing operation in the other portions. The drawn image erasing method according to any one of claims 1 to 4.
JP2014237866A 2014-11-25 2014-11-25 Drawing image erasing method Active JP6490951B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014237866A JP6490951B2 (en) 2014-11-25 2014-11-25 Drawing image erasing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014237866A JP6490951B2 (en) 2014-11-25 2014-11-25 Drawing image erasing method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019036094A Division JP6678791B2 (en) 2019-02-28 2019-02-28 Drawing image erasing method and display device

Publications (2)

Publication Number Publication Date
JP2016099874A JP2016099874A (en) 2016-05-30
JP6490951B2 true JP6490951B2 (en) 2019-03-27

Family

ID=56077202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014237866A Active JP6490951B2 (en) 2014-11-25 2014-11-25 Drawing image erasing method

Country Status (1)

Country Link
JP (1) JP6490951B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007838B (en) * 2019-04-02 2020-12-11 广州视源电子科技股份有限公司 Processing method, device and equipment for erasing control

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277825A (en) * 1988-09-14 1990-03-16 Mitsubishi Electric Corp Hand-written character input display device
JP3250841B2 (en) * 1992-06-12 2002-01-28 新日鉄ソリューションズ株式会社 Graphic data processing method and apparatus
JP3758229B2 (en) * 1996-03-27 2006-03-22 セイコーエプソン株式会社 Line segment extraction method, line segment extraction apparatus, and line segment extraction processing program
JPH1011208A (en) * 1996-06-24 1998-01-16 Sharp Corp Coordinate input device
JP2009042970A (en) * 2007-08-08 2009-02-26 Dainippon Printing Co Ltd Terminal apparatus, program and electronic pen processing system
JP5306528B1 (en) * 2012-09-19 2013-10-02 株式会社東芝 Electronic device and handwritten document processing method

Also Published As

Publication number Publication date
JP2016099874A (en) 2016-05-30

Similar Documents

Publication Publication Date Title
RU2702270C2 (en) Detection of handwritten fragment selection
JP6270565B2 (en) Electronic apparatus and method
US10437466B2 (en) Formula inputting method and apparatus
US20130147809A1 (en) Method and apparatus for calligraphic beautification of handwritten characters
JP6609994B2 (en) Display control method, information processing apparatus, and display control program
JP5604279B2 (en) Gesture recognition apparatus, method, program, and computer-readable medium storing the program
KR20140047733A (en) Dynamic selection of surfaces in real world for projection of information thereon
KR101094636B1 (en) System and method of gesture-based user interface
JP2015162088A (en) Electronic device, method, and program
CN103268363B (en) A kind of Chinese calligraphy's image search method based on elastic HOG feature and DDTW coupling
JP7031947B2 (en) Optical flow calculation method and computing equipment
CN114365075B (en) Method for selecting a graphical object and corresponding device
US20140270529A1 (en) Electronic device, method, and storage medium
JP2013546081A (en) Method, apparatus, and computer program product for overwriting input
JP6141108B2 (en) Information processing apparatus and method
JP6055065B1 (en) Character recognition program and character recognition device
JP6054547B2 (en) Electronic device and method for processing handwritten document information
JP6490951B2 (en) Drawing image erasing method
JP6678791B2 (en) Drawing image erasing method and display device
US20150234587A1 (en) Information processing apparatus, non-transitory readable medium, and handwriting input method
CN105843414A (en) Input correction method for input method and input method device
WO2015174341A1 (en) Information processing device, program, and recording medium
CN113468972B (en) Handwriting track segmentation method for handwriting recognition of complex scene and computer product
US11080875B2 (en) Shape measuring apparatus, shape measuring method, non-transitory computer readable medium storing program
WO2014207985A1 (en) Information processing apparatus, information processing method, and information processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170925

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190111

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: 20190129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190228

R150 Certificate of patent or registration of utility model

Ref document number: 6490951

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150