JP2011232881A - Image processor, display device, image processing method, image processing program and recording medium - Google Patents

Image processor, display device, image processing method, image processing program and recording medium Download PDF

Info

Publication number
JP2011232881A
JP2011232881A JP2010101233A JP2010101233A JP2011232881A JP 2011232881 A JP2011232881 A JP 2011232881A JP 2010101233 A JP2010101233 A JP 2010101233A JP 2010101233 A JP2010101233 A JP 2010101233A JP 2011232881 A JP2011232881 A JP 2011232881A
Authority
JP
Japan
Prior art keywords
image processing
icon
size
unit
distance
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.)
Granted
Application number
JP2010101233A
Other languages
Japanese (ja)
Other versions
JP5657269B2 (en
Inventor
Shinichi Kajitani
進一 閑治谷
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 JP2010101233A priority Critical patent/JP5657269B2/en
Publication of JP2011232881A publication Critical patent/JP2011232881A/en
Application granted granted Critical
Publication of JP5657269B2 publication Critical patent/JP5657269B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a display device allowing a user to freely and easily set a range to be image-processed such as drawing of a background color for a target image through multi touch.SOLUTION: A display device 100 comprises a position detection part 21b that detects position coordinates of two different points on a touch panel display part 10 when touched with a finger or the like and a size and angle detection part 21d that calculates a distance A between the two points. And an image processing part 22c sets a region with a blackboard eraser icon having a short side length of A and a long side length of 2A displayed on an icon display part as a region to be erased or drawn with a background color.

Description

本発明は、主に、画像を処理する画像処理装置、画像処理方法、画像処理プログラムおよびコンピュータ読み取り可能な記録媒体に関する。   The present invention mainly relates to an image processing apparatus for processing an image, an image processing method, an image processing program, and a computer-readable recording medium.

近年、ディスプレイ等の表示装置のタッチパネル化や、ノートPC等の情報処理装置にインストールされるOSや画像編集ソフトウェアのタッチパネル機能への対応等に伴い、画像編集ソフトウェアの操作性が非常に向上してきている。   In recent years, the operability of image editing software has been greatly improved with the touch panel of a display device such as a display, the OS installed in an information processing device such as a notebook PC, and the touch panel function of image editing software. Yes.

すなわち、画像編集ソフトウェアにおいては、マウスやタブレットペンなどのポインティングデバイスを操作することにより画像を編集するのが一般的であるが、タッチパネル機能に対応した画像編集ソフトウェアを用いると、ユーザは、タッチパネル操作により直接キャンパスに絵を描くような感覚で画像を編集することができる。   That is, in image editing software, it is common to edit an image by operating a pointing device such as a mouse or a tablet pen. However, if image editing software corresponding to a touch panel function is used, the user can operate the touch panel. This allows you to edit images as if you were painting directly on the campus.

さらに、タッチパネルは、当初、シングルタッチのみに対応するタッチパネルしか存在しなかったが、最近発売されているノートPCやディスプレイにはタッチパネルがマルチタッチに対応したものもある。また、これに伴い、最近発売されているOSや画像処理ソフトウェアもマルチタッチ対応を謳ったものがある。   In addition, the touch panel initially has only a touch panel that supports only a single touch, but some recently-released notebook PCs and displays have a touch panel that supports multi-touch. Along with this, some OSs and image processing software that have been recently released are designed for multi-touch.

そして、マルチタッチ対応の画像編集ソフトウェアには、マルチタッチの操作により表示されている画像を回転したり拡大や縮小をしたりすることができるなど、画像編集ソフトウェアの操作性が優れたものとなっている。   The image editing software that supports multi-touch has excellent operability of image editing software, such as being able to rotate, enlarge, and reduce images displayed by multi-touch operations. ing.

ポインティングデバイスで画像を編集する画像編集ソフトウェアとしては、例えば、特許文献1に記載の画像処理装置に記録されている画像処理のプログラムが挙げられる。このプログラムでは、画像に筆書き処理を行うための筆パターン画像を編集可能であり、筆パターン画像の編集における削除処理のための消しゴムの大きさを所定の異なる大きさの中から選択できるようになっている。   As image editing software for editing an image with a pointing device, for example, an image processing program recorded in an image processing apparatus described in Patent Document 1 can be cited. In this program, it is possible to edit a brush pattern image for performing brush writing processing on the image, and to select a size of an eraser for deletion processing in editing the brush pattern image from predetermined different sizes. It has become.

また、タッチパネル操作による画像の編集が可能な画像編集ソフトウェアとしては、特許文献2に記載のPCにインストールされた絵描きソフトウェアが挙げられる。特許文献2に記載の絵描きソフトウェアでは、PCに接続された表示装置のタッチパネルが押圧されている間、一定時間ごとに消しゴムアイコンの大きさを段階的に変化させることができるようになっている。   Further, as image editing software capable of editing an image by operating a touch panel, there is a drawing software installed in a PC described in Patent Document 2. In the drawing software described in Patent Document 2, the size of the eraser icon can be changed step by step while the touch panel of the display device connected to the PC is being pressed.

特開2002−109557号公報(平成14年4月12日公開)JP 2002-109557 A (published April 12, 2002) 特開平3−286267号公報(平成3年12月17日公開)Japanese Patent Laid-Open No. 3-286267 (published on December 17, 1991)

しかしながら、上記従来の構成では、画像上で消しゴムアイコンが掃過された範囲を削除する(すなわち、背景色にする)ことができるものの、消しゴムアイコンの大きさをたかだか段階的にしか設定できないという問題があった。   However, in the above-described conventional configuration, although the range where the eraser icon has been swept on the image can be deleted (that is, the background color), the size of the eraser icon can only be set in steps. was there.

また、マルチタッチ対応の画像編集ソフトウェアにおいても、ユーザがマルチタッチにより自由に画像処理を施す範囲を設定することができないという問題があった。   In addition, the multi-touch compatible image editing software has a problem that the user cannot freely set a range for image processing by multi-touch.

本発明は、上記課題に鑑みてなされたものであり、その主な目的は、画像処理を施す範囲をユーザがマルチタッチにより自由に且つ手軽に設定することが可能な画像処理装置を実現することにある。   The present invention has been made in view of the above problems, and a main object thereof is to realize an image processing apparatus that allows a user to freely and easily set a range for image processing by multi-touch. It is in.

本発明の画像処理装置は、上記課題を解決するために、画像を表示する表示画面上の異なる2箇所に対象物が接触した場合に、接触した上記2箇所の位置を検出する位置検出手段と、上記位置検出手段が検出した上記2箇所の位置の間の距離を算出する距離算出手段と、画像処理を施すべき処理対象領域のサイズを、上記距離算出手段が算出した距離に応じたサイズに設定する領域設定手段と、を備えている、ことを特徴としている。   In order to solve the above-described problem, the image processing apparatus of the present invention includes a position detection unit that detects the positions of the two touched locations when an object touches two different locations on the display screen that displays the image. The distance calculation means for calculating the distance between the two positions detected by the position detection means, and the size of the processing target area to be subjected to image processing to a size corresponding to the distance calculated by the distance calculation means And an area setting means for setting.

上記の構成によれば、ユーザが表示画面上の異なる2箇所の位置に指先を接触させた場合に、画像処理装置は、接触した2箇所の位置の距離を算出し、画像処理を施す領域のサイズを、算出した距離に応じたサイズに設定する。   According to the above configuration, when the user touches the fingertip at two different positions on the display screen, the image processing apparatus calculates the distance between the two touched positions and performs the image processing. Set the size according to the calculated distance.

したがって、画像処理装置は、ユーザに、画像処理を施す範囲をマルチタッチにより自由に且つ手軽に設定させることが可能であるという効果を奏する。   Therefore, the image processing apparatus has an effect that the user can freely and easily set the range for image processing by multi-touch.

本発明の画像処理方法は、上記課題を解決するために、画像を表示する表示画面上の異なる2箇所の位置に対象物が接触した場合に、接触した上記2箇所の位置を検出する位置検出工程と、上記位置検出工程にて検出された上記2箇所の位置の間の距離を算出する距離算出工程と、画像処理を施すべき処理対象領域のサイズを、上記距離算出工程にて算出された距離に応じたサイズに設定する領域設定工程と、を含んでいることを特徴としている。   In order to solve the above-described problem, the image processing method of the present invention detects a position of the two touched positions when an object touches two different positions on a display screen for displaying an image. A distance calculating step for calculating a distance between the two positions detected in the step and the position detecting step, and a size of a processing target region to be subjected to image processing is calculated in the distance calculating step. And an area setting step for setting the size according to the distance.

上記の構成によれば、本発明の画像処理方法は、本発明の画像処理装置と同様の作用効果を奏する。   According to said structure, the image processing method of this invention has an effect similar to the image processing apparatus of this invention.

本発明の画像処理装置は、上記領域設定手段が設定する上記処理対象領域を、上記画像に対して背景色を描画する領域とすることが望ましい。   In the image processing apparatus according to the aspect of the invention, it is preferable that the processing target area set by the area setting unit is an area for drawing a background color on the image.

上記の構成によれば、画像処理装置は、ユーザに、画像中の背景色を描画する範囲をマルチタッチにより自由に且つ手軽に設定させることが可能であるというさらなる効果を奏する。   According to the above configuration, the image processing apparatus has an additional effect that the user can freely and easily set the range for drawing the background color in the image by multi-touch.

本発明の画像処理装置は、上記距離算出手段が算出した距離に応じたサイズのアイコンを上記表示画面に表示する表示制御手段をさらに備え、上記領域設定手段は、上記表示制御手段により表示されたアイコンが掃過する領域に背景色を描画することが望ましい。   The image processing apparatus of the present invention further includes display control means for displaying an icon having a size corresponding to the distance calculated by the distance calculation means on the display screen, and the region setting means is displayed by the display control means. It is desirable to draw the background color in the area where the icon is swept.

上記の構成によれば、画像処理装置は、背景色を描画する領域をアイコンによりユーザに視認させることができるというさらなる効果を奏する。   According to said structure, an image processing apparatus has the further effect that a user can visually recognize the area | region which draws a background color with an icon.

本発明の画像処理装置は、上記表示制御手段が、上記アイコンが表示される領域の境界線上に上記位置検出手段が検出した上記2箇所の位置が含まれるように、上記アイコンを表示することが望ましい。   In the image processing apparatus of the present invention, the display control unit may display the icon so that the two positions detected by the position detection unit are included on a boundary line of a region where the icon is displayed. desirable.

上記の構成によれば、画像処理装置は、ユーザに、黒板消しや消しゴム等を握るような感覚で背景色を描画する領域を指定させることができる。   According to the above configuration, the image processing apparatus can allow the user to designate an area for drawing the background color as if holding a blackboard eraser or eraser.

本発明の画像処理装置は、上記表示制御手段が、表示中の上記アイコンのサイズを、上記アイコンが表示された後に上記距離算出手段が算出した距離に応じたサイズに変更することが望ましい。   In the image processing apparatus of the present invention, it is preferable that the display control unit changes the size of the icon being displayed to a size corresponding to the distance calculated by the distance calculation unit after the icon is displayed.

上記の構成によれば、画像処理装置は、変更後のアイコンのサイズに応じて画像処理を施す領域のサイズを変更する。   According to the above configuration, the image processing apparatus changes the size of the area to be subjected to image processing according to the changed icon size.

したがって、上記画像処理装置は、画像処理を施す領域のサイズをユーザに手軽に再設定させることができるというさらなる効果を奏する。   Therefore, the image processing apparatus has an additional effect that the user can easily reset the size of the area to be subjected to image processing.

本発明の画像処理装置は、上記アイコンの形状が長方形であり、上記表示制御手段が表示中の上記アイコンのサイズを変更するのは、表示中の上記アイコンの各長辺または各短辺への接触を上記位置検出手段が検出した場合に限られていることが望ましい。   In the image processing apparatus of the present invention, the icon has a rectangular shape, and the display control means changes the size of the icon being displayed to each long side or each short side of the icon being displayed. It is desirable that the contact is limited to when the position detecting means detects the contact.

上記の構成によれば、画像処理装置は、ユーザが不用意に画像処理を施す領域のサイズを再設定してしまうことを防ぐことができるというさらなる効果を奏する。   According to said structure, there exists the further effect that an image processing apparatus can prevent that a user resets the size of the area | region which performs image processing carelessly.

本発明の画像処理装置は、上記距離算出手段が算出した距離を表わすオブジェクトを上記表示画面に表示する表示制御手段をさらに備えていることが望ましい。ここで、オブジェクトとは、例えば、位置検出手段が検出した2箇所の位置を指し示す両端矢印であってもよいし、距離を数値として表わすものであってもよい。   The image processing apparatus of the present invention preferably further comprises display control means for displaying an object representing the distance calculated by the distance calculation means on the display screen. Here, the object may be, for example, double-ended arrows indicating two positions detected by the position detecting means, or may represent the distance as a numerical value.

上記の構成によれば、画像処理装置は、画像処理を施す領域のサイズを設定しようとするユーザに、設定されることになる領域のサイズを把握させることができるというさらなる効果を奏する。   According to the above configuration, the image processing apparatus has a further effect that the user who wants to set the size of the area to be subjected to image processing can grasp the size of the area to be set.

本発明の画像処理装置は、上記画像処理を施す旨の指示をユーザから受け付ける指示受付手段を備え、上記指示受付手段が上記指示を受け付けてから規定の時間が経過するまでに上記位置検出手段が上記2箇所の位置を検出しない場合には、上記領域設定手段が、上記処理対象領域のサイズを規定のサイズに設定することが望ましい。   An image processing apparatus according to the present invention includes an instruction receiving unit that receives an instruction to perform the image processing from a user, and the position detecting unit receives the instruction from the instruction receiving unit until a predetermined time elapses. When the two positions are not detected, it is preferable that the area setting unit sets the size of the processing target area to a predetermined size.

上記の構成によれば、画像処理装置は、画像処理を施す領域のサイズを規定のサイズにすることが多いユーザにとって、領域のサイズをマルチタッチにより設定する手間を減らすことができるというさらなる効果を奏する。   According to the above configuration, the image processing apparatus has a further effect that, for a user who often sets the size of the area to be subjected to image processing to a specified size, it is possible to reduce the trouble of setting the area size by multi-touch. Play.

本発明の画像処理装置は、上記領域設定手段が、上記距離算出手段が算出した距離の2乗に比例するように、上記処理対象領域のサイズを設定することが望ましい。   In the image processing apparatus of the present invention, it is desirable that the area setting unit sets the size of the processing target area so that the area setting unit is proportional to the square of the distance calculated by the distance calculation unit.

上記の構成によれば、画像処理装置は、ユーザが表示画面上の2箇所に指先を接触させた場合、2箇所の位置の間の距離の2乗に比例するサイズの処理対象領域を設定する。ここで、2次元で表わされるオブジェクトのサイズを1次元の量で指定する場合には、オブジェクトのサイズが1次元の量の2乗に比例することが一般的である。   According to the above configuration, the image processing apparatus sets a processing target area having a size proportional to the square of the distance between the two positions when the user touches the fingertip at two positions on the display screen. . Here, when the size of an object represented in two dimensions is specified by a one-dimensional quantity, the size of the object is generally proportional to the square of the one-dimensional quantity.

したがって、ユーザの感覚に素直な態様で、画像処理を施すべき処理対象領域のサイズをユーザに設定させることができるというさらなる効果を奏する。   Therefore, there is an additional effect that the user can set the size of the processing target area to be subjected to image processing in a manner that is straightforward to the user's sense.

本発明の画像処理装置は、上記位置検出手段が、2箇所の位置を検出した後に、さらに、該2箇所の位置と少なくとも1箇所以上異なる2箇所の位置への接触を検出した場合、上記領域設定手段が、後に検出された2箇所の位置を結ぶ直線の接触角度から、先に検出された2箇所の位置を結ぶ直線の接触角度を減じて得られる角度だけ、上記処理対象領域を回転させることが望ましい。   In the image processing apparatus of the present invention, when the position detection unit detects two positions, and further detects contact with two positions different from the two positions by at least one position, the area The setting means rotates the processing target region by an angle obtained by subtracting the contact angle of the straight line connecting the two previously detected positions from the contact angle of the straight line connecting the two positions detected later. It is desirable.

上記の構成によれば、画像処理装置は、ユーザに、画像処理を施すべき処理対象領域を手軽に回転移動させることができるというさらなる効果を奏する。   According to said structure, an image processing apparatus has the further effect that a user can rotate and move the process target area | region which should perform an image process easily.

なお、本発明は、上記画像処理装置に上記表示画面を備えた表示装置として実現してもよい。   The present invention may be realized as a display device including the display screen in the image processing device.

また、上記画像処理装置は、コンピュータによって実現してもよい。この場合、コンピュータを上記各手段として動作させることにより上記画像処理装置をコンピュータにおいて実現する画像処理プログラム、およびその画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The image processing apparatus may be realized by a computer. In this case, an image processing program for realizing the image processing apparatus in the computer by operating the computer as each of the above means and a computer-readable recording medium on which the image processing program is recorded also fall within the scope of the present invention.

本発明の画像処理装置は、以上のように、画像処理を施す範囲をユーザがマルチタッチにより自由に且つ手軽に設定することができるという効果を奏する。   As described above, the image processing apparatus of the present invention has an effect that a user can freely and easily set a range for performing image processing by multi-touch.

(a)は本発明の画像処理装置の一実施形態に係る表示装置の構成を示したブロック図であり、(b)は表示装置の外観を示した図である。(A) is the block diagram which showed the structure of the display apparatus which concerns on one Embodiment of the image processing apparatus of this invention, (b) is the figure which showed the external appearance of the display apparatus. 表示装置のコマンド記憶部に記録されている各コマンドに関する情報を表として示した図である。It is the figure which showed the information regarding each command currently recorded on the command memory | storage part of the display apparatus as a table | surface. (a)(b)は、消しゴムコマンドのジェスチャーの例を示した図である。(A) and (b) are the figures which showed the example of the gesture of the eraser command. (a)(b)は、サイズ指定矢印の長さをピンチインやピンチアウトで変更可能であることを示した図である。(A) and (b) are the figures which showed that the length of the size designation | designated arrow could be changed by pinch in and pinch out. (a)は黒板消しアイコンの外観を示した図であり、(b)は黒板消しアイコンの機能を表わす図である。(A) is the figure which showed the external appearance of the blackboard erase icon, (b) is a figure showing the function of the blackboard erase icon. (a)は黒板消しアイコンの表示角度が変更可能であることを示した図であり、(b)は黒板消しアイコンのサイズが変更可能であることを示した図である。(A) is a diagram showing that the display angle of the blackboard erase icon can be changed, and (b) is a diagram showing that the size of the blackboard erase icon can be changed. 表示装置の消しゴムコマンドに関する動作の前半部分を示すフローチャートである。It is a flowchart which shows the first half part of the operation | movement regarding the eraser command of a display apparatus. 表示装置の消しゴムコマンドに関する動作の後半部分を示すフローチャートである。It is a flowchart which shows the second half part of the operation | movement regarding the eraser command of a display apparatus. (a)(b)は、表示装置のタッチパネル式表示部への指先の接触位置と、コンパスコマンドにより表示されるサイズ指定矢印の位置と、の関係を示した図であり、(c)は接触位置と、描画する円弧の位置と、の関係を示した図である。(A) (b) is the figure which showed the relationship between the contact position of the fingertip to the touchscreen type display part of a display apparatus, and the position of the size designation | designated arrow displayed by a compass command, (c) is a contact. It is the figure which showed the relationship between a position and the position of the circular arc to draw.

本発明の画像処理装置の一実施形態について図に基づいて説明する。図1(a)は、本実施形態の表示装置100の概略構成を示すブロック図であり、図1(b)は表示装置100の外観を示した図である。   An image processing apparatus according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1A is a block diagram illustrating a schematic configuration of the display device 100 of the present embodiment, and FIG. 1B is a diagram illustrating an appearance of the display device 100.

図1(b)に示すように、本実施形態に係る表示装置100は、タッチパネル式表示部10を備えている。また、タッチパネル式表示部10のタッチパネルはマルチタッチに対応している。すなわち、表示装置100は、表示画面上の異なる2点に指など(対象物)が同時に接触した場合に、その2点の位置を検出することができる。   As shown in FIG. 1B, the display device 100 according to this embodiment includes a touch panel display unit 10. The touch panel of the touch panel display unit 10 supports multi-touch. That is, the display device 100 can detect the position of two points when a finger or the like (target object) contacts two different points on the display screen at the same time.

また、表示装置100は、予め登録されている各種コマンドに応じた画像処理を表示中の画像(以下、「対象画像」と呼称する)に施すことができるようになっており、ユーザからタッチパネル式表示部10を介してコマンドの指定を受け付けることができるようになっている。   In addition, the display device 100 can perform image processing according to various pre-registered commands on a displayed image (hereinafter referred to as “target image”). A command designation can be received via the display unit 10.

以下、表示装置100の構成について図1(a)を参照しながら説明する。   Hereinafter, the configuration of the display device 100 will be described with reference to FIG.

(表示装置100の構成)
図1(a)に示すように、表示装置100は、タッチパネル式表示部10、制御部20、および記憶部30を備えている。
(Configuration of display device 100)
As illustrated in FIG. 1A, the display device 100 includes a touch panel display unit 10, a control unit 20, and a storage unit 30.

タッチパネル式表示部10は、表示部11およびタッチパネル12を備えている。   The touch panel display unit 10 includes a display unit 11 and a touch panel 12.

表示部11は、対象画像を表示する表示画面である。また、タッチパネル12は、表示部11に指などが接触している間、連続的に、接触した位置を検出するとともにその位置を示す位置情報を制御部20に出力する。   The display unit 11 is a display screen that displays a target image. In addition, while the finger or the like is in contact with the display unit 11, the touch panel 12 continuously detects the contacted position and outputs position information indicating the position to the control unit 20.

制御部20は、入力検出部21、表示制御部22、および時間測定部23を備えている。   The control unit 20 includes an input detection unit 21, a display control unit 22, and a time measurement unit 23.

入力検出部21は、タッチパネル式表示部10からの位置情報に基づいて、タッチパネルへの接触の有無および接触した位置の座標を検出する。また、入力検出部21は、座標を連続的に検出することにより、ユーザにより特定のコマンドの指定が行われたことを検出することができる。入力検出部21は、接触検出部21a、位置検出部21b、コマンド検出部21cおよびサイズ・角度検出部21dを備えている。   The input detection unit 21 detects the presence or absence of contact with the touch panel and the coordinates of the contacted position based on the position information from the touch panel display unit 10. Further, the input detection unit 21 can detect that a specific command has been designated by the user by continuously detecting coordinates. The input detection unit 21 includes a contact detection unit 21a, a position detection unit 21b, a command detection unit 21c, and a size / angle detection unit 21d.

表示制御部22は、表示部11への対象画像の表示を制御するものであり、位置決定部22a、アイコン表示部22b、および画像処理部22cを備えている。表示制御部22は、対象画像を表示部11の表示画面全体に表示することも、表示画面内の一部の領域に表示することもできるようになっている。   The display control unit 22 controls display of the target image on the display unit 11, and includes a position determination unit 22a, an icon display unit 22b, and an image processing unit 22c. The display control unit 22 can display the target image on the entire display screen of the display unit 11 or display it on a part of the display screen.

時間測定部23は、特定の状態になった時からの経過時間を計測する。この計測は、該特定の状態を維持しなくなるか、あるいは、所定の時間を経過するまで行われる。なお、「特定の状態になった時」とは、位置検出部21bが位置座標を検出しなくなった時や、位置検出部21bが同じ位置座標を連続して検出するようになった時が挙げられる。   The time measurement unit 23 measures the elapsed time from when the specific state is reached. This measurement is performed until the specific state is not maintained or until a predetermined time elapses. Note that “when a specific state is reached” includes when the position detection unit 21b no longer detects position coordinates or when the position detection unit 21b detects the same position coordinates continuously. It is done.

記憶部30は、各種情報を記録するメモリであり、入力座標記憶部31、図形描画情報記憶部32、およびコマンド記憶部33を備えている。   The storage unit 30 is a memory that records various types of information, and includes an input coordinate storage unit 31, a graphic drawing information storage unit 32, and a command storage unit 33.

以下、入力検出部21、表示制御部22、および記憶部30の要部構成について説明する。   Hereinafter, the main configuration of the input detection unit 21, the display control unit 22, and the storage unit 30 will be described.

(入力検出部21)
接触検出部21aは、タッチパネル12から位置情報が送信されている場合にタッチパネルへの接触があることを検出し、タッチパネル12から位置情報が送信されていない場合にタッチパネルへの接触がないことを検出する。
(Input detection unit 21)
The contact detection unit 21a detects that there is a touch on the touch panel when the position information is transmitted from the touch panel 12, and detects that there is no contact on the touch panel when the position information is not transmitted from the touch panel 12. To do.

位置検出部21bは、接触検出部21aがタッチパネル12への接触があることを検出した場合に、検出した接触が対象画像上での接触であったか否かをタッチパネル12から送信された位置情報に基づいて判定し、対象画像上での接触であったと判定した場合、位置情報に基づいて対象画像上における(すなわち、対象画像の左上を原点とした場合の)接触位置を示す位置座標を検出する。位置検出部21bは、この位置座標を同時に2点検出することが可能である。   Based on the position information transmitted from the touch panel 12, the position detection unit 21 b determines whether the detected contact is a contact on the target image when the contact detection unit 21 a detects that there is a contact with the touch panel 12. When it is determined that the contact is on the target image, position coordinates indicating a contact position on the target image (that is, when the upper left of the target image is the origin) are detected based on the position information. The position detection unit 21b can detect two points of this position coordinate at the same time.

コマンド検出部21cは、入力座標記憶部31を参照することにより位置検出部21bが検出する位置座標を連続的にモニタリングし、各位置座標を結ぶ軌跡の形状がコマンド記憶部33に予め登録されているコマンドの軌跡(ジェスチャー)とマッチングすることを検出する。これにより、コマンド検出部21cは、マッチングすることを検出したジェスチャーに対応するコマンドの指定が行われたことを検出する。   The command detection unit 21c continuously monitors the position coordinates detected by the position detection unit 21b by referring to the input coordinate storage unit 31, and the shape of the trajectory connecting the position coordinates is registered in the command storage unit 33 in advance. Detects matching with a command trajectory (gesture). Thereby, the command detection unit 21c detects that a command corresponding to the gesture that has been detected to be matched has been designated.

サイズ・角度検出部21dは、位置検出部21bが位置座標を同時に2点検出した場合に、検出した2点間の距離を算出する。   The size / angle detection unit 21d calculates the distance between the detected two points when the position detection unit 21b detects two position coordinates at the same time.

(表示制御部22)
位置決定部22aは、時間測定部23が計測した経過時間が所定の時間になったときに位置検出部21bが検出した位置座標を、アイコン表示部22bおよび画像処理部22cに参照させる座標として決定する。
(Display control unit 22)
The position determination unit 22a determines the position coordinates detected by the position detection unit 21b when the elapsed time measured by the time measurement unit 23 has reached a predetermined time as the coordinates to be referred to by the icon display unit 22b and the image processing unit 22c. To do.

アイコン表示部22bは、位置決定部22aが決定した2点の位置座標をアイコンが表示される領域の境界線上に含むように、サイズ決定部21dが決定したサイズのアイコンを表示する。例えば、消しゴムコマンドが指定された場合、画像処理部22c、位置決定部22aが決定した2点を結ぶ線分を一辺とし、他辺をその2倍の長さとする長方形の黒板消しアイコンを表示する。   The icon display unit 22b displays the icon of the size determined by the size determination unit 21d so that the position coordinates of the two points determined by the position determination unit 22a are included on the boundary line of the area where the icon is displayed. For example, when an eraser command is designated, a rectangular blackboard eraser icon is displayed in which a line segment connecting two points determined by the image processing unit 22c and the position determining unit 22a is one side, and the other side is twice as long. .

また、アイコン表示部22bは、アイコンだけでなく、アイコンのサイズをユーザに選択させるためのサイズ指定矢印(オブジェクト)を表示するようになっている。ユーザは、サイズ指定矢印が示す2点に指を接触させてピンチインやピンチアウトを行うことによりアイコンのサイズを選択できるが、アイコン表示部22bは、ピンチインやピンチアウトの間に接触中の2点を指すようにサイズ指定矢印を再描画するようになっている。   The icon display unit 22b displays not only icons but also size designation arrows (objects) for allowing the user to select the icon size. The user can select the size of the icon by touching the two points indicated by the size designation arrow and performing pinch-in and pinch-out, but the icon display unit 22b has two points that are in contact during pinch-in and pinch-out. The size specification arrow is redrawn to point to.

画像処理部22cは、位置決定部22aが決定した位置座標に基づいて対象画像中の画像処理を施す範囲(処理対象領域)を決定し、その範囲に画像処理を施す。この範囲は位置決定部22aが決定した2点を結ぶ線分の長さに応じた範囲となる。例えば、消しゴムコマンドが指定された場合、画像処理部22cは、対象画像中の消去する範囲を黒板消しアイコンが表示される範囲と同一とするようになっている。   The image processing unit 22c determines a range (processing target region) to be subjected to image processing in the target image based on the position coordinates determined by the position determination unit 22a, and performs image processing on the range. This range is a range corresponding to the length of the line segment connecting the two points determined by the position determination unit 22a. For example, when an eraser command is designated, the image processing unit 22c makes the range to be erased in the target image the same as the range in which the blackboard erase icon is displayed.

(記憶部30)
入力座標記憶部31は、位置検出部21bが検出した位置座標を一定期間保持する記憶領域である。
(Storage unit 30)
The input coordinate storage unit 31 is a storage area that holds the position coordinates detected by the position detection unit 21b for a certain period.

図形描画情報記憶部32は、対象画像の画像情報を保持する記憶領域である。   The graphic drawing information storage unit 32 is a storage area that holds image information of the target image.

コマンド記憶部33は、コマンド毎に、ジャスチャーの情報と、表示するアイコンのデフォルトサイズと、を関連づけて保持する記憶領域である。コマンド記憶部33には、図2に示すように、消しゴムコマンドや定規コマンド、図示はしていないがコンパスコマンド等が登録されている。   The command storage unit 33 is a storage area that holds gesture information and the default size of an icon to be displayed in association with each command. As shown in FIG. 2, an eraser command, a ruler command, a compass command (not shown), and the like are registered in the command storage unit 33.

また、コマンド記憶部33には、各コマンドについて、アイコン表示部22bが実際に表示するアイコンの中心位置の座標、表示サイズおよび表示角度が記録されるようになっている。ここで、表示角度とは、位置検出部21bが検出した2点を結ぶ線分が表示画面の縦軸方向となす角度として定義される。   The command storage unit 33 is configured to record the coordinates of the center position, display size, and display angle of the icon that the icon display unit 22b actually displays for each command. Here, the display angle is defined as an angle formed by a line segment connecting two points detected by the position detection unit 21b with the vertical axis direction of the display screen.

消しゴムコマンドは、図5(b)に示すように、対象画像中の黒板消しアイコンが掃過した範囲を消去する(背景色にする)ためのコマンドである。定規コマンドは定規上の選択された2点間に直線を引くためのコマンドであり、コンパスコマンドは円弧上の曲線を描画するためのコマンドである。   As shown in FIG. 5B, the eraser command is a command for erasing (making the background color) the range where the blackboard erase icon in the target image has been swept. The ruler command is a command for drawing a straight line between two selected points on the ruler, and the compass command is a command for drawing a curve on an arc.

次に、タッチパネル式表示部10の対象画像上にユーザが指を接触させた場合の表示装置100の動作について図7および図8を参照しながら説明する。図7および図8は、表示装置100の動作を示すフローチャートである。なお、以下では、ユーザが消しゴムコマンドを指定して対象画像内を消去する場合の動作を中心に説明する。   Next, the operation of the display device 100 when the user touches the target image on the touch panel display unit 10 with reference to FIGS. 7 and 8 will be described. 7 and 8 are flowcharts showing the operation of the display device 100. FIG. In the following, the operation when the user designates an eraser command and erases the target image will be mainly described.

(表示装置100の動作)
最初に、接触検出部21aは、タッチパネル式表示部10への接触の有無を検出する(ステップS1)。接触を検出した場合(ステップS1においてYES)、位置検出部21bは、対象画像上における接触位置を示す位置座標を検出して(ステップS2)、入力座標記憶部31に記録する。一方、接触がないことを検出した場合(ステップS1においてNO)、ステップS1に戻る。
(Operation of Display Device 100)
Initially, the contact detection part 21a detects the presence or absence of the contact to the touchscreen type display part 10 (step S1). When contact is detected (YES in step S1), the position detection unit 21b detects position coordinates indicating the contact position on the target image (step S2) and records them in the input coordinate storage unit 31. On the other hand, when it is detected that there is no contact (NO in step S1), the process returns to step S1.

ステップS2の次に、コマンド検出部21cは、現在までの一定期間内におけるS2の処理で検出した入力座標記憶部31に記録されている複数の位置座標と、コマンド記憶部33に記録されているジェスチャーの情報と、に基づいて、コマンドの指定が検出されたか否かを判定する(ステップS3)。例えば、上記一定期間内に、ユーザがタッチパネル式表示部10に表示されている対象画像上で図3(a)に示すような軌跡を描くように指を移動させた場合、コマンド検出部21cは、入力座標記憶部31に記録されている複数の位置情報を結んだ軌跡が、コマンド記憶部33に記録されている消しゴムコマンドのジェスチャーとマッチングすることを検出する。この場合、コマンド検出部21cは、消しゴムコマンドの指定を検出することになる。   After step S2, the command detection unit 21c is recorded in the command storage unit 33 and a plurality of position coordinates recorded in the input coordinate storage unit 31 detected in the process of S2 within a certain period until now. Based on the gesture information, it is determined whether or not a command designation is detected (step S3). For example, when the user moves his / her finger so as to draw a trajectory as shown in FIG. 3A on the target image displayed on the touch panel display unit 10 within the predetermined period, the command detection unit 21c Then, it is detected that the locus connecting the plurality of pieces of position information recorded in the input coordinate storage unit 31 matches the gesture of the eraser command recorded in the command storage unit 33. In this case, the command detector 21c detects the designation of the eraser command.

コマンドの指定が検出されなかったと判定した場合(ステップS3においてNO)、その旨の通知をコマンド検出部21cから受けた画像処理部22cは、検出した位置座標に点を描画してステップS1に戻る。   When it is determined that the command designation has not been detected (NO in step S3), the image processing unit 22c that has received the notification from the command detection unit 21c draws a point at the detected position coordinate, and returns to step S1. .

一方、コマンドの指定が検出されたと判定した場合(ステップS3においてYES)、ステップS5に進む。入力コマンドが消しゴムコマンド以外のコマンドである場合(ステップS5においてNO)、制御部20はその他のコマンド処理を実行して(ステップS6)、ステップS1に戻る。   On the other hand, when it is determined that the designation of the command is detected (YES in step S3), the process proceeds to step S5. If the input command is a command other than the eraser command (NO in step S5), control unit 20 executes other command processing (step S6) and returns to step S1.

入力コマンドが消しゴムコマンドである場合(ステップS5においてYES)、ステップS7に進む。   If the input command is an eraser command (YES in step S5), the process proceeds to step S7.

コマンド検出部21cから通知を受けたアイコン表示部22bは、コマンド記憶部33に記録されている消しゴムコマンドに関するデフォルトサイズ(規定のサイズ):30x60(短辺:30ドット、長辺:60ドット)を参照し、図4(a)または図4(b)の左側に示すような上記短辺の長さの両端矢印(以下、「サイズ指定矢印」と呼称する)を表示部111の対象画像上に表示する(ステップS7)。また、時間測定部23は、S7の処理の時点からの経過時間を計測する。なお、図4(a)や図4(b)に示すように、片手や両手でピンチインやピンチアウトを行うことにより、サイズ指定矢印の長さを変えることが可能である。   The icon display unit 22b that receives the notification from the command detection unit 21c sets the default size (specified size) 30x60 (short side: 30 dots, long side: 60 dots) related to the eraser command recorded in the command storage unit 33. Referring to FIG. 4A or FIG. 4B, a double-sided arrow having the short side length (hereinafter referred to as a “size designation arrow”) as shown on the left side of FIG. Display (step S7). Moreover, the time measurement part 23 measures the elapsed time from the time of the process of S7. As shown in FIGS. 4A and 4B, the length of the size designation arrow can be changed by pinching in and out with one hand or both hands.

接触検出部21aは、タッチパネル式表示部10への接触の有無を検出する(ステップS8)。接触を検出した場合(ステップS8においてYES)、その旨の通知を接触検出部21aから受けた位置検出部21bは、対象画像上における接触位置を示す位置座標を検出する(ステップS10)。位置検出部21bがステップS10において1点のみを検出した場合、または、検出した2点の位置座標がサイズ指定矢印の両端を示す座標でないとサイズ・角度検出部21dが判定した場合(ステップS11においてNO)、S9の処理に進む。また、接触検出部21aがタッチパネル式表示部10への接触がないことを検出した場合(ステップS8においてNO)もS9の処理に進む。   The contact detection unit 21a detects the presence or absence of contact with the touch panel display unit 10 (step S8). When the contact is detected (YES in step S8), the position detection unit 21b that receives the notification from the contact detection unit 21a detects the position coordinates indicating the contact position on the target image (step S10). When the position detection unit 21b detects only one point in step S10, or when the size / angle detection unit 21d determines that the detected position coordinates of the two points are not coordinates indicating both ends of the size designation arrow (in step S11) NO), the process proceeds to S9. Also, when the contact detection unit 21a detects that there is no contact with the touch panel display unit 10 (NO in step S8), the process proceeds to S9.

ステップS9において、時間測定部23は、経過時間が所定の時間に達したか否かを判定する。達していないと判定した場合(S9においてNO)、S8の処理に戻る。一方、達していると判定した場合(S9においてYES)、サイズ・角度検出部21dは、コマンド記憶部33に記録されている黒板消しアイコンのデフォルトサイズを参照し、コマンド記憶部33に、黒板消しアイコンの表示サイズとして“30x60”、表示角度として”0度”、中心位置として”(X−A、Y+A/2)”を記録する(ステップS12)。ここで、(X、Y)はサイズ指定矢印の上端の座標である。   In step S9, the time measuring unit 23 determines whether or not the elapsed time has reached a predetermined time. If it is determined that it has not been reached (NO in S9), the process returns to S8. On the other hand, when it is determined that the size has been reached (YES in S9), the size / angle detection unit 21d refers to the default size of the blackboard erase icon recorded in the command storage unit 33, and stores the blackboard eraser in the command storage unit 33. “30 × 60” is displayed as the icon display size, “0 degree” is displayed as the display angle, and “(X−A, Y + A / 2)” is recorded as the center position (step S12). Here, (X, Y) is the coordinates of the upper end of the size designation arrow.

一方、位置検出部21bがステップS10において2点を検出し、かつ、検出した2点の位置座標がサイズ指定矢印の両端を示す座標であるとサイズ・角度検出部21dが判定した場合(ステップS11においてYES)、サイズ・角度検出部21dは、位置検出部21bが検出した2点間の距離を算出する(ステップS13)。そして、サイズ・角度検出部21dは、検出した2点間の距離が変更されたか否かを判定する(ステップS14)。   On the other hand, when the position detection unit 21b detects two points in step S10 and the size / angle detection unit 21d determines that the position coordinates of the two detected points are coordinates indicating both ends of the size designation arrow (step S11). In step S13, the size / angle detection unit 21d calculates the distance between the two points detected by the position detection unit 21b. Then, the size / angle detection unit 21d determines whether or not the detected distance between the two points has been changed (step S14).

距離が変更されたと判定した場合(ステップS14においてYES)、その旨の通知を受けたアイコン表示部22bは、ステップS10の処理で検出した2点を示すようにサイズ指定矢印の長さを変更する(ステップS15)。その後、ステップS8の処理に戻る。なお、S15の処理が行われるタイミングで、時間測定部23は、経過時間の計測を開始する。   If it is determined that the distance has been changed (YES in step S14), the icon display unit 22b that has received the notification changes the length of the size designation arrow to indicate the two points detected in the process of step S10. (Step S15). Thereafter, the process returns to step S8. The time measurement unit 23 starts measuring elapsed time at the timing when the process of S15 is performed.

距離が変更されていないと判定した場合(ステップS14においてNO)、ステップS16に進む。そして、検出する2点間の距離が一定になってからの時間が所定の時間未満である場合(ステップS16においてNO)、ステップS13に戻り、所定の時間に達した場合(ステップS16においてYES)、ステップS17の処理に進む。このように動作するために、ステップS14において連続して2回、検出した2点間の距離が変更されなかったとサイズ・角度検出部21dが判定し終えた時点から、時間測定部23は、経過時間の計測を開始する。そして、時間測定部23は、計測中の経過時間が上記所定の時間に達したと判定した場合にステップS17の処理に進むことになる。   If it is determined that the distance has not been changed (NO in step S14), the process proceeds to step S16. If the time after the distance between the two detected points becomes constant is less than the predetermined time (NO in step S16), the process returns to step S13, and if the predetermined time is reached (YES in step S16). The process proceeds to step S17. In order to operate in this way, the time measurement unit 23 has elapsed since the time when the size / angle detection unit 21d has determined that the distance between the two detected points has not been changed twice in succession in step S14. Start measuring time. When the time measurement unit 23 determines that the elapsed time during measurement has reached the predetermined time, the time measurement unit 23 proceeds to the process of step S17.

ステップS17において、サイズ・角度検出部21dは、コマンド記憶部33に、黒板消しアイコンの表示サイズとして“Ax2A”、表示角度として”0度”を記録する。ここで、Aはサイズ・角度検出部21dが最後に算出した2点間の距離である。また、サイズ・角度検出部21dは、コマンド記憶部33に、中心位置として”(X−A、Y+A/2)”を記録する。そして、サイズ・角度検出部21dは、アイコン表示部22bに黒板消しアイコンを表示するよう通知する。   In step S17, the size / angle detection unit 21d records “Ax2A” as the display size of the blackboard erase icon and “0 degrees” as the display angle in the command storage unit 33. Here, A is the distance between the two points last calculated by the size / angle detector 21d. The size / angle detection unit 21 d records “(X−A, Y + A / 2)” as the center position in the command storage unit 33. Then, the size / angle detection unit 21d notifies the icon display unit 22b to display the blackboard erase icon.

ステップS18において、通知を受けたアイコン表示部22bは、コマンド記憶部33に記録されている、黒板消しアイコンの中心位置、表示サイズ、および表示角度の各値を参照し、これらの値に基づいて黒板消しアイコンを表示部11に表示する。なお、ステップS17の説明から明らかなように、表示される黒板消しアイコンは、図5(a)に示すように長辺の短辺に対する比率が常に2(一定)であり、そのサイズは、2点間の距離の2乗に比例するようになっている。また、ステップS9においてYESと判定され、かつ、ステップS11において一度もYESと判定されなかった場合には、表示される黒板消しアイコンのサイズはデフォルトサイズ(規定のサイズ)となることは明らかである。   In step S18, the icon display unit 22b that has received the notification refers to the values of the center position, display size, and display angle of the blackboard eraser icon recorded in the command storage unit 33, and based on these values. A blackboard erase icon is displayed on the display unit 11. As is clear from the description of step S17, the blackboard erase icon displayed has a ratio of the long side to the short side always 2 (constant) as shown in FIG. It is proportional to the square of the distance between points. If YES is determined in step S9 and YES is not determined in step S11, the size of the blackboard eraser icon to be displayed is clearly the default size (specified size). .

以上が黒板消しアイコンを表示するまでの表示装置100の動作であるが、ここからは、図6(a)に示すような黒板消しアイコンの回転(表示角度の変更)や図6(b)に示すような黒板消しアイコンのサイズ変更に関する処理を中心に表示装置100の動作を説明する。なお、図6(a)に示すように、回転の中心(図中で黒丸の部分)は、黒板消しアイコンの中心に一致するようになっている。また、図6(b)に示すように、サイズ変更は、黒板消しアイコンの一方の短辺と他方の短辺とに指を接触させてピンチイン・ピンチアウトすることにより行われる。   The above is the operation of the display device 100 until the blackboard erase icon is displayed. From now on, the rotation of the blackboard erase icon (change of the display angle) as shown in FIG. 6A and the display of FIG. The operation of the display device 100 will be described focusing on the processing related to the size change of the blackboard erase icon as shown. Note that, as shown in FIG. 6A, the center of rotation (the black circle in the figure) coincides with the center of the blackboard erase icon. Further, as shown in FIG. 6B, the size is changed by pinching in and pinching out by bringing a finger into contact with one short side and the other short side of the blackboard erase icon.

ステップS19において、接触検出部21aは、タッチパネル式表示部10への接触の有無を検出する。なお、ステップS19において接触を連続して2回検出しなかった時点で、時間測定部23は、経過時間の計測を開始する。接触していないことを検出した場合(ステップS19においてNO)、ステップS20において、時間測定部23は、経過時間が所定の時間に達したか否かを判定する。達していないと判定した場合(S20においてNO)、S19の処理に戻る。一方、達していると判定した場合(S20においてYES)、アイコン表示部22bは、黒板消しアイコンを消去するとともに、コマンド記憶部33が保持している消しゴムコマンドに関する情報(中心位置、表示サイズ、および表示角度の情報)を削除して処理を終了する。   In step S <b> 19, the contact detection unit 21 a detects the presence or absence of contact with the touch panel display unit 10. Note that when the contact is not continuously detected twice in step S19, the time measuring unit 23 starts measuring the elapsed time. When it is detected that no contact has occurred (NO in step S19), in step S20, time measuring unit 23 determines whether or not the elapsed time has reached a predetermined time. If it is determined that it has not been reached (NO in S20), the process returns to S19. On the other hand, when it is determined that it has been reached (YES in S20), the icon display unit 22b erases the blackboard eraser icon, and information on the eraser command held by the command storage unit 33 (center position, display size, and The display angle information) is deleted and the process is terminated.

一方、タッチパネル式表示部10への接触を検出した場合(ステップS19においてYES)、その旨の通知を接触検出部21aから受けた位置検出部21bは、対象画像上における接触位置を示す位置座標を検出する(ステップS21)。位置検出部21bがステップS21において2点の位置座標を検出した場合(ステップS22においてYES)ステップS19に戻り、1点の位置座標しか検出しなかった場合(ステップS22においてNO)、サイズ・角度検出部21dは、位置検出部21bが検出した2点の位置座標がアイコンの両端にあるか否かを判定する(ステップS23)。具体的には、サイズ・角度検出部21dは、一方の位置座標が黒板消しアイコンの一方の短辺上にあり、かつ、他方の位置座標が他方の短辺上にある場合に、「検出した位置座標がアイコンの両端にある」と判定し、そうでない場合に「検出した位置座標がアイコンの両端にない」と判定する。   On the other hand, when contact with the touch panel type display unit 10 is detected (YES in step S19), the position detection unit 21b that has received the notification from the contact detection unit 21a indicates the position coordinates indicating the contact position on the target image. It detects (step S21). If the position detection unit 21b detects the position coordinates of two points in step S21 (YES in step S22), the process returns to step S19, and if only one position coordinate is detected (NO in step S22), the size / angle detection is performed. The unit 21d determines whether or not the position coordinates of the two points detected by the position detection unit 21b are at both ends of the icon (step S23). Specifically, the size / angle detection unit 21d detects “detected” when one position coordinate is on one short side of the blackboard erase icon and the other position coordinate is on the other short side. It is determined that the position coordinates are at both ends of the icon. Otherwise, it is determined that the detected position coordinates are not at both ends of the icon.

「2点の位置座標がアイコンの両端にある」と判定された場合(ステップS23においてYES)、サイズ・角度検出部21dは、位置検出部21bが検出した2点間の長辺方向成分の距離を算出する(ステップS30)。ここで、「2点間の長辺方向成分の距離」とは、長辺に平行な座標軸をi軸とし、短辺に平行な座標軸をj軸とした場合に定まる2点を結ぶベクトルのi成分の絶対値である。   When it is determined that “the position coordinates of the two points are at both ends of the icon” (YES in step S23), the size / angle detection unit 21d detects the distance of the long-side direction component between the two points detected by the position detection unit 21b. Is calculated (step S30). Here, the “distance of the long side direction component between two points” is the i of a vector connecting two points determined when the coordinate axis parallel to the long side is the i axis and the coordinate axis parallel to the short side is the j axis. The absolute value of the component.

その後、サイズ・角度検出部21dは、コマンド記憶部33に記録されている、黒板消しアイコンの表示サイズを“A’x2A’”に更新する(ステップS31)。ここで、2A’は直前のステップS30においてサイズ・角度検出部21dが算出した2点間の長辺方向成分の距離である。ステップS31の処理を終了すると、ステップS32の処理に進むことになる。   Thereafter, the size / angle detection unit 21d updates the display size of the blackboard erase icon recorded in the command storage unit 33 to “A′x2A ′” (step S31). Here, 2A 'is the distance of the long side direction component between the two points calculated by the size / angle detection unit 21d in the immediately preceding step S30. When the process of step S31 ends, the process proceeds to step S32.

一方、ステップS23において「2点の位置座標がアイコンの両端にない」と判定された場合、サイズ・角度検出部21dは、位置検出部21bが検出した2点の位置座標を結ぶ直線の傾きmに基づいて、対象画像の水平右方向に対する該直線の角度θ=arctan(m)*2/π(0≦θ<180°、以下、「接触角度」と呼称する)を算出する(ステップS24)。そして、サイズ・角度検出部21dは、接触角度の変更があったか否かを判定する(ステップS25)。   On the other hand, if it is determined in step S23 that “the position coordinates of the two points are not at both ends of the icon”, the size / angle detection unit 21d determines the slope m of the straight line connecting the position coordinates of the two points detected by the position detection unit 21b. Based on the above, the angle θ = arctan (m) * 2 / π (0 ≦ θ <180 °, hereinafter referred to as “contact angle”) of the straight line with respect to the horizontal right direction of the target image is calculated (step S24). . Then, the size / angle detection unit 21d determines whether or not the contact angle has been changed (step S25).

接触角度の変更があったと判定された場合(S25においてYES)、サイズ・角度検出部21dは、ステップS24において検出した接触角度から90°を引いた値をコマンド記憶部33に表示角度として記録する(ステップS26)。例えば、接触角度が90°から100°に変更されたことを検出した場合、図2(b)に示すように、表示角度を10°に設定する。ステップS26の後、ステップS29に進む。   When it is determined that the contact angle has been changed (YES in S25), the size / angle detection unit 21d records a value obtained by subtracting 90 ° from the contact angle detected in step S24 as a display angle in the command storage unit 33. (Step S26). For example, when it is detected that the contact angle has been changed from 90 ° to 100 °, the display angle is set to 10 ° as shown in FIG. After step S26, the process proceeds to step S29.

接触角度の変更がなかったと判定された場合(S25においてNO)、サイズ・角度検出部21dは、位置検出部21bが直前のステップS21にて検出した2点間の距離を算出し、表示中の黒板消しアイコンの短辺の長さと一致するか否かを判定する(ステップS27)。すなわち、コマンド記憶部33に表示サイズとして記録されている値を参照し、参照した値が示す短辺の長さに位置検出部21bが直前のステップS21にて検出した2点間の距離が一致するか否かを判定する。例えば、図2(b)に示すように表示サイズが“40x80”である場合、サイズ・角度検出部21dは、位置検出部21bが検出した2点間の距離が40であるか否かを判定することになる。短辺の長さと一致しないと判定された場合(ステップS27においてNO)、ステップS19に戻る。   When it is determined that the contact angle has not been changed (NO in S25), the size / angle detection unit 21d calculates the distance between the two points detected by the position detection unit 21b in the immediately preceding step S21, and is being displayed. It is determined whether or not it matches the length of the short side of the blackboard erase icon (step S27). That is, referring to the value recorded as the display size in the command storage unit 33, the distance between the two points detected by the position detection unit 21b in the immediately preceding step S21 matches the length of the short side indicated by the referenced value. It is determined whether or not to do. For example, as shown in FIG. 2B, when the display size is “40 × 80”, the size / angle detection unit 21d determines whether the distance between the two points detected by the position detection unit 21b is 40 or not. Will do. If it is determined that the length does not match the length of the short side (NO in step S27), the process returns to step S19.

一方、短辺の距離と一致すると判定された場合(ステップS27においてYES)、サイズ・角度検出部21dは、直前のステップS21の処理にて検出した2点の位置座標に基づき中心位置の検出を行う(ステップS28)が、具体的には、以下のように処理を行う。   On the other hand, if it is determined that the distance is equal to the short-side distance (YES in step S27), the size / angle detection unit 21d detects the center position based on the position coordinates of the two points detected in the immediately preceding step S21. This is performed (step S28). Specifically, the processing is performed as follows.

すなわち、直前のステップS21にて検出した2点の位置座標が表示中の黒板消しアイコンの長辺上にあるか否かを判定し、長辺上にあると判定した場合、コマンド記憶部33に記録されている中心位置の値を、検出すべき中心位置とする。ここで、2点の位置座標が長辺上にあるか否かは、コマンド記憶部33に記録されている中心位置、表示サイズ、および表示角度の各値を参照することにより判定可能であることは明らかである。   That is, it is determined whether or not the position coordinates of the two points detected in the immediately preceding step S21 are on the long side of the blackboard eraser icon being displayed. The value of the recorded center position is set as the center position to be detected. Here, whether or not the position coordinates of the two points are on the long side can be determined by referring to the respective values of the center position, display size, and display angle recorded in the command storage unit 33. Is clear.

2点の位置座標が長辺上にない場合、直前のステップS21にて検出した2点の位置座標を結ぶ線分が、前回のステップS28の処理の対象になった2点の位置座標を結ぶ線分から平行移動した距離(a、b)を算出する。そして、サイズ・角度検出部21dは、コマンド記憶部33に記録されている中心位置の値を、x成分にaを加え、y成分にbを加えることにより更新する。   If the position coordinates of the two points are not on the long side, the line segment connecting the position coordinates of the two points detected in the immediately preceding step S21 connects the position coordinates of the two points that were the targets of the previous step S28. The distance (a, b) translated from the line segment is calculated. Then, the size / angle detection unit 21d updates the value of the center position recorded in the command storage unit 33 by adding a to the x component and adding b to the y component.

以上、ステップS28の具体的な処理を説明したが、その後、アイコン機能の実行を行う(ステップS29)。すなわち、画像処理部22cは、コマンド記憶部33に記録されている中心位置、表示サイズ、および表示角度の各値を参照する。そして、画像処理部22cは、これらの値に応じて定まる範囲(次のステップS32において黒板消しアイコンを描画する範囲)を消去(背景色に)する画像処理を、図形描画情報記憶部32に記録されている対象画像に施す。   The specific processing in step S28 has been described above, but thereafter, the icon function is executed (step S29). That is, the image processing unit 22c refers to each value of the center position, display size, and display angle recorded in the command storage unit 33. Then, the image processing unit 22c records, in the graphic drawing information storage unit 32, image processing for erasing (making the background color) a range determined according to these values (a range for drawing the blackboard erase icon in the next step S32). To the target image.

ステップS32において、アイコン表示部22bは、コマンド記憶部33に記録されている中心位置、表示サイズ、および表示角度の各値を参照し、これらの値に基づいて定まる範囲に黒板消しアイコンを表示し、ステップS19に戻る。具体的には、図2(b)の例で言えば、アイコン表示部22bは、黒板消しアイコンを10°の表示角度で表示するようになる。なお、ステップS25において接触角度が90°から100°に変更されたことを検出していた場合、ステップS32の直前には黒板消しアイコンが0°の表示角度で表示されていたことになる。すなわち、ステップS32の処理によって、変更後の接触角度100°から変更前の接触角度90°を引いた角度10°だけ黒板消しアイコンが回転したことになる。   In step S32, the icon display unit 22b refers to the center position, display size, and display angle values recorded in the command storage unit 33, and displays the blackboard erase icon in a range determined based on these values. Return to step S19. Specifically, in the example of FIG. 2B, the icon display unit 22b displays the blackboard eraser icon at a display angle of 10 °. If it is detected in step S25 that the contact angle has been changed from 90 ° to 100 °, the blackboard eraser icon is displayed at a display angle of 0 ° immediately before step S32. That is, the blackboard erase icon is rotated by an angle of 10 ° obtained by subtracting the contact angle of 90 ° before the change from the contact angle of 100 ° after the change by the process of step S32.

また、ステップS31およびステップS32からわかるように、画像処理部22cは、黒板消しアイコンが掃過する範囲を消去することになる。   Further, as can be seen from step S31 and step S32, the image processing unit 22c erases the range where the blackboard erase icon is swept.

(表示装置100の利点)
以上のように、表示装置100では、消しゴムコマンドが指定された場合、タッチパネル式表示部10の異なる2点に指等が接触した場合に、接触した上記2点の位置座標を位置検出部21bが検出し、2点間の距離Aをサイズ・角度検出部21dが算出する。そして、画像処理部22cは、短辺の長さがAであり長辺の長さが2Aであるような黒板消しアイコンがアイコン表示部22bにより表示される領域を、消去する(背景色に描画する)領域として設定する。
(Advantages of the display device 100)
As described above, in the display device 100, when the eraser command is designated, when the finger or the like touches two different points on the touch panel type display unit 10, the position detection unit 21b indicates the position coordinates of the two touched points. Then, the size / angle detector 21d calculates the distance A between the two points. Then, the image processing unit 22c erases the area where the blackboard eraser icon having the short side length A and the long side length 2A is displayed by the icon display unit 22b (drawn in the background color). Set as an area.

したがって、対象画像に対して背景色を描画する範囲を、ユーザがマルチタッチにより自由に且つ手軽に設定することが可能である。   Therefore, the user can freely and easily set the range in which the background color is drawn on the target image by multi-touch.

(コンパスコマンドについて)
ここでは、コンパスコマンドの機能について簡単に説明する。
(Compass command)
Here, the function of the compass command will be briefly described.

コンパスコマンドは前述したように表示装置100に円弧上の曲線を描画させるためのコマンドである。ユーザは、コンパスコマンドを指定し、タッチパネル式表示部10に表示されている対象画像上に2本の指の指先を接触させ、一方の指先を同じ位置に接触させながら他方の指先を前述した接触角度が変化するように動かすことにより、表示装置100に円弧上の曲線を描画させることが可能である。すなわち、正確な円弧を描くように他方の指先を動かさなくとも、正確な円弧を表示装置100に描画させることが可能になっている。   The compass command is a command for causing the display device 100 to draw a curve on an arc as described above. The user designates a compass command, touches the fingertip of two fingers on the target image displayed on the touch panel display unit 10, and touches the other fingertip as described above while bringing one fingertip into contact with the same position. By moving the angle so as to change, it is possible to cause the display device 100 to draw a curve on an arc. In other words, it is possible to cause the display device 100 to draw an accurate arc without moving the other fingertip so as to draw an accurate arc.

また、表示装置100に円弧を描画させる前(すなわち、接触角度が変化するように他方の指先を動かし始める前)に、接触させている指先を、指先間を結ぶ直線上で移動させることにより、描画させる円弧の中心や半径を指定することができるようになっている。   Further, before the display device 100 draws an arc (that is, before starting to move the other fingertip so that the contact angle changes), the touching fingertip is moved on a straight line connecting the fingertips, The center and radius of the arc to be drawn can be specified.

以下、コンパスコマンドが指定される場合の表示装置100の動作を、図9を参照しながら説明する。図9(a)および図9(b)は、タッチパネル式表示部10への指先の接触位置と、コンパスコマンドにより表示されるサイズ指定矢印の位置と、の関係を示した図である。また、図9(c)は、接触位置と、描画する円弧の位置と、の関係を示した図である。   Hereinafter, the operation of the display device 100 when the compass command is designated will be described with reference to FIG. FIG. 9A and FIG. 9B are diagrams showing the relationship between the position of the fingertip touching the touch panel display 10 and the position of the size designation arrow displayed by the compass command. FIG. 9C is a diagram showing the relationship between the contact position and the position of the arc to be drawn.

コンパスコマンドの指定を検出すると、時間測定部23は、経過時間の計測を開始する。経過時間が所定の時間に達した場合にはコンパスコマンドに関する動作をキャンセルし、経過時間が所定の時間に達する前に2点の位置座標を位置検出部21bが検出すると、以下の処理を行う。   When detecting the designation of the compass command, the time measuring unit 23 starts measuring the elapsed time. When the elapsed time reaches a predetermined time, the operation relating to the compass command is canceled, and when the position detection unit 21b detects two position coordinates before the elapsed time reaches the predetermined time, the following processing is performed.

すなわち、図9(a)に示すように、アイコン表示部22bは、2点の位置座標(X1,Y1)、(X2,Y2)を指すサイズ指定矢印を表示部11に表示し、2点間の距離rをコマンド記憶部33に記録しておく。   That is, as shown in FIG. 9A, the icon display unit 22b displays a size designation arrow indicating the position coordinates (X1, Y1) and (X2, Y2) of the two points on the display unit 11, and between the two points. Is recorded in the command storage unit 33.

そして、アイコン表示部22bは、次に位置検出部21bが2点(点Q,点R)の位置座標を検出した場合に、その2点の位置座標が共に、(X1,Y1)、(X2,Y2)を結ぶ直線L上にあるか否かを判定する。図9(b)に示すように、アイコン表示部22bは、2点の位置座標が共に直線L上にあると判定した場合、判定の対象となった2点の位置座標をサイズ指定矢印が指すようにサイズ指定矢印を再描画するとともに、2点間の距離rの値を更新する。この判定処理、再描画処理、および更新処理は、判定処理において2点の位置座標のうち1点以上の位置座標が直線L上にないと判定されるまで行われる。   Then, when the position detection unit 21b detects the position coordinates of two points (point Q, point R) next, the icon display unit 22b has the position coordinates of the two points (X1, Y1), (X2 , Y2). As illustrated in FIG. 9B, when the icon display unit 22b determines that the position coordinates of the two points are both on the straight line L, the size designation arrow indicates the position coordinates of the two points that are the objects of the determination. In this manner, the size designation arrow is redrawn and the value of the distance r between the two points is updated. The determination process, the redrawing process, and the update process are performed until it is determined in the determination process that one or more position coordinates out of the two position coordinates are not on the straight line L.

一方、判定処理において1点以上の位置座標が直線L上にないと判定された場合、2点(P,Q)の位置座標(判定対象座標)のうち一方の位置座標が、前回直線L上にあると判定された2点の位置座標(被判定対象座標)のうちの一方の位置座標と一致するか否かを判定する。一致しないと判定された場合にはコンパスコマンドに関する動作をキャンセルし、一致すると判定された場合(例えば、ユーザが一方の指先を同じ位置に接触させながら他方の指先を接触角度が変化するように動かしたような場合)には、以下の円弧描画処理を行う。   On the other hand, when it is determined in the determination process that one or more position coordinates are not on the straight line L, one of the two point (P, Q) position coordinates (determination target coordinates) is on the previous straight line L. It is determined whether or not it coincides with one of the position coordinates (determined target coordinates) of the two points determined to be in the position. When it is determined that they do not match, the operation related to the compass command is canceled, and when it is determined that they match (for example, the user moves one fingertip to the same position while moving the other fingertip so that the contact angle changes). In such a case, the following arc drawing process is performed.

画像処理部22cは、一致する一方(点Q)の位置座標を中心とする半径rの円周上の円弧であって、点Qから点Pへの半直線HLが円弧と交差する交点Sと被判定対象座標のうちの他方の位置座標Rとを結ぶ劣弧を表示部11に表示する。この表示処理を、図9(c)を参照しながらより具体的に説明すると以下の通りである。   The image processing unit 22c is an arc on a circumference having a radius r centered on the position coordinate of one of the coincident points (point Q), and an intersection S where the half line HL from the point Q to the point P intersects the arc. A subarc connecting the other position coordinates R of the determination target coordinates is displayed on the display unit 11. This display process will be described more specifically with reference to FIG. 9C.

すなわち、画像処理部22cは、判定対象座標の点Q(X3,Y3)、点P(X5,Y5)について角度θ1=arctan(Y5−Y3/X5−X3)を算出し、点S(X6,Y6)=(r*cosθ1+X3,r*sinθ1+Y3)を算出する。そして、画像処理部22cは、点RQSにより定まる2つの円弧(優弧および劣弧)のうち劣弧の部分を描画色で描画することになる。 That is, the image processing unit 22c calculates the angle θ 1 = arctan (Y5-Y3 / X5-X3) for the point Q (X3, Y3) and the point P (X5, Y5) of the determination target coordinates, and the point S (X6 , Y6) = (r * cos θ 1 + X3, r * sin θ 1 + Y3). Then, the image processing unit 22c draws the inferior arc portion of the two arcs (dominant arc and inferior arc) determined by the point RQS with the drawing color.

以上の円弧描画処理は、点Qを含む2点の位置座標を位置検出部21bが検出している限り繰り返し行われる。すなわち、位置検出部21bがさらに点Q(X3,Y3)および点T(X7、Y7)を検出した場合、判定対象座標の点Q(X3,Y3)、点T(X7,Y7)について角度θ2=arctan(Y7−Y3/X7−X3)を算出し、点U(X8,Y8)=(r*cosθ2+X3,r*sinθ2+Y3)を算出する。そして、画像処理部22cは、点SQUにより定まる劣弧の部分を描画色で描画することになる。 The above arc drawing process is repeated as long as the position detection unit 21b detects the position coordinates of two points including the point Q. That is, when the position detection unit 21b further detects the point Q (X3, Y3) and the point T (X7, Y7), the angle θ with respect to the point Q (X3, Y3) and the point T (X7, Y7) of the determination target coordinates 2 = arctan (Y7−Y3 / X7−X3) is calculated, and point U (X8, Y8) = (r * cos θ 2 + X3, r * sin θ 2 + Y3) is calculated. Then, the image processing unit 22c draws the inferior arc portion determined by the point SQU with the drawing color.

以上のように、表示装置100では、コンパスコマンドが指定された場合、タッチパネル式表示部10の異なる2点(点Q,点R)に指等が接触すると、接触した上記2点の位置座標を位置検出部21bが検出し、2点間の距離rをサイズ・角度検出部21dが算出する。そして、ユーザが点Q,点Pに指等を接触させた場合、画像処理部22cは、半径がrとなるような円弧の領域を描画色で描画する領域として設定する。   As described above, in the display device 100, when a compass command is designated, when a finger or the like touches two different points (point Q, point R) on the touch panel display unit 10, the position coordinates of the two points touched are displayed. The position detection unit 21b detects, and the size / angle detection unit 21d calculates the distance r between the two points. When the user touches the point Q and the point P with a finger or the like, the image processing unit 22c sets a circular arc region having a radius of r as a drawing color drawing region.

したがって、対象画像に対して円弧を描画する範囲を、ユーザがマルチタッチにより自由に且つ手軽に設定することが可能である。   Therefore, the user can freely and easily set the range in which the arc is drawn on the target image by multi-touch.

(付記事項)
表示装置100は記憶部30を備えているものとしたが、表示装置100は記憶部30を必ずしも備えていなくともよい。すなわち、記憶部30を表示装置100に装填される外部メディアによって実現してもよい。
(Additional notes)
Although the display device 100 includes the storage unit 30, the display device 100 does not necessarily include the storage unit 30. That is, the storage unit 30 may be realized by an external medium loaded in the display device 100.

また、上記実施形態では本発明の画像処理装置を表示装置100として実現したが、本発明の画像処理装置はこれに限定されない。すなわち、画像処理装置は、制御部20を備えているがタッチパネル式表示部10を備えていないPC等の情報処理装置(図示せず)として実現してもよい。この場合、本発明は、情報処理装置にタッチパネル式表示装置を別途接続することにより実施されることになる。   In the above embodiment, the image processing apparatus of the present invention is realized as the display apparatus 100. However, the image processing apparatus of the present invention is not limited to this. That is, the image processing apparatus may be realized as an information processing apparatus (not shown) such as a PC that includes the control unit 20 but does not include the touch panel display unit 10. In this case, the present invention is implemented by separately connecting a touch panel display device to the information processing device.

また、消しゴムコマンドを指定するジェスチャーは、図3(a)に示すようなジェスチャーに限らず、図3(b)に示すようなバツマークのジェスチャーであってもよい。   The gesture for designating the eraser command is not limited to the gesture shown in FIG. 3A, but may be a cross-shaped gesture as shown in FIG.

上記実施形態は、サイズ・角度検出部21dが「検出した位置座標がアイコンの両端にある」と判定するのは、一方の位置座標が黒板消しアイコンの一方の短辺上(端部)にあり、かつ、他方の位置座標が他方の短辺上(端部)にある場合であるものとしたが、これに限定されない。すなわち、一方の位置座標が黒板消しアイコンの一方の長辺上にあり、かつ、他方の位置座標が他方の長辺上にある場合に、「検出した位置座標がアイコンの両端にある」と判定するようにしてもよい。なお、このように判定した場合、ステップS30において、サイズ・角度検出部21dは、位置検出部21bが検出した2点間の短辺方向成分の距離を算出する(ステップS30)。ここで、「2点間の短辺方向成分の距離」とは、長辺に平行な座標軸をi軸とし、短辺に平行な座標軸をj軸とした場合に定まる2点を結ぶベクトルのj成分の絶対値である。   In the above embodiment, the size / angle detection unit 21d determines that “the detected position coordinates are at both ends of the icon” because one position coordinate is on one short side (end part) of the blackboard eraser icon. In addition, it is assumed that the other position coordinate is on the other short side (end), but the present invention is not limited to this. That is, when one position coordinate is on one long side of the blackboard erase icon and the other position coordinate is on the other long side, it is determined that “the detected position coordinates are at both ends of the icon”. You may make it do. If determined in this way, in step S30, the size / angle detector 21d calculates the distance of the short side direction component between the two points detected by the position detector 21b (step S30). Here, the “distance of the short-side direction component between two points” is the vector j connecting two points determined when the coordinate axis parallel to the long side is the i-axis and the coordinate axis parallel to the short side is the j-axis. The absolute value of the component.

また、2点の位置座標がサイズ指定矢印の両端にあるか、アイコンの両端にあるか、直線L上にあるか等の判定処理について説明したが、判定処理は、2点の位置座標がこれらの位置(サイズ指定矢印の両端、アイコンの両端、直線L上等)にあるか否かに基づいていなくともよい。すなわち、2点の位置座標が、これらの位置から規定の範囲内にあるか規定の範囲外にあるかに基づいて判定処理を行ってもよい。   In addition, although the determination process such as whether the position coordinates of the two points are at both ends of the size designation arrow, the both ends of the icon, or on the straight line L has been described, the determination process includes the position coordinates of the two points. It is not necessary to be based on whether it is in the position (both ends of the size designation arrow, both ends of the icon, straight line L, etc.). That is, the determination process may be performed based on whether the position coordinates of the two points are within a specified range or outside the specified range from these positions.

上記実施形態では、各コマンドについて定められたアイコンの具体例として、消しゴムコマンドに対する黒板消しアイコンについて述べ、その形状が長方形であるものと説明したが、アイコンの形状は任意の形状であってよい。   In the above embodiment, as a specific example of the icon defined for each command, the blackboard erase icon for the eraser command has been described and described as having a rectangular shape, but the shape of the icon may be any shape.

さらに、上記実施形態では、画像処理部22cは、黒板消しアイコンが表示される領域と同じ領域を消去するものとしたが、必ずしもこのようになっていなくともよい。すなわち、黒板消しアイコンが表示される領域のサイズと、消去する領域のサイズと、は必ずしも一致しなくともよい。また、黒板消しアイコンが表示される領域と、アイコンが表示される領域とは、少なくとも一部が重なっていればよい。   Furthermore, in the above-described embodiment, the image processing unit 22c erases the same area as the area where the blackboard erase icon is displayed, but this need not necessarily be the case. That is, the size of the area where the blackboard erase icon is displayed and the size of the area to be erased do not necessarily match. Moreover, the area | region where a blackboard eraser icon is displayed, and the area | region where an icon is displayed should just overlap at least partially.

また、表示画面上の2点への接触を検出した場合に表示するオブジェクトの例としてサイズ指定矢印を示したが、サイズ指定矢印でなく他のオブジェクト(例えば、2点間の距離を数値として表わすオブジェクト)であってもよい。   In addition, although a size designation arrow is shown as an example of an object to be displayed when contact with two points on the display screen is detected, other objects (for example, the distance between the two points is expressed as a numerical value instead of the size designation arrow) Object).

(プログラム、記録媒体)
最後に、表示装置100や情報処理装置の制御部20は、ハードウェアロジックによって構成してもよいし、次のようにCPUを用いてソフトウェアによって実現してもよい。
(Program, recording medium)
Finally, the display device 100 and the control unit 20 of the information processing device may be configured by hardware logic, or may be realized by software using a CPU as follows.

すなわち、表示装置100や情報処理装置は、各機能を実現する制御プログラムの命令を実行するCPU(central processing unit)、上記プログラムを格納したROM(read only memory)、上記プログラムを展開するRAM(random access memory)、上記プログラム及び各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の目的は、上述した機能を実現するソフトウェアである表示装置100や情報処理装置の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、表示装置100や情報処理装置に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。   In other words, the display device 100 and the information processing device include a CPU (central processing unit) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, and a RAM (random) that expands the program. access memory), a storage device (recording medium) such as a memory for storing the program and various data. The object of the present invention is to record the program code (execution format program, intermediate code program, source program) of the control program for the display device 100 or the information processing device, which is software for realizing the functions described above, so that it can be read by a computer. This can also be achieved by supplying the recording medium to the display device 100 or the information processing apparatus, and the computer (or CPU or MPU) reading and executing the program code recorded on the recording medium.

上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などを用いることができる。   Examples of the recording medium include a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a floppy (registered trademark) disk / hard disk, and an optical disk such as a CD-ROM / MO / MD / DVD / CD-R. Card system such as IC card, IC card (including memory card) / optical card, or semiconductor memory system such as mask ROM / EPROM / EEPROM / flash ROM.

また、表示装置100や情報処理装置を通信ネットワークと接続可能に構成し、上記プログラムコードを、通信ネットワークを介して供給してもよい。この通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、IEEE802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   Further, the display device 100 and the information processing device may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication. A net or the like is available. Further, the transmission medium constituting the communication network is not particularly limited. For example, even in the case of wired such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared rays such as IrDA and remote control, Bluetooth ( (Registered trademark), IEEE802.11 radio, HDR, mobile phone network, satellite line, terrestrial digital network, and the like can also be used. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.

本発明の画像処理装置は、大型インフォーメーションディスプレイに好適に適用することができる。   The image processing apparatus of the present invention can be suitably applied to a large information display.

10 タッチパネル式表示部(表示画面)
11 表示部
12 タッチパネル
20 制御部
21 入力検出部
21a 接触検出部
21b 位置検出部(位置検出手段)
21c コマンド検出部(指示受付手段)
21d サイズ・角度検出部(距離算出手段)
22 表示制御部
22a 位置決定部
22b アイコン表示部(表示制御手段)
22c 画像処理部(領域設定手段)
30 記憶部
100 表示装置(画像処理装置)
10 Touch panel display (display screen)
DESCRIPTION OF SYMBOLS 11 Display part 12 Touch panel 20 Control part 21 Input detection part 21a Contact detection part 21b Position detection part (position detection means)
21c Command detector (instruction receiving means)
21d Size / angle detector (distance calculation means)
22 display control unit 22a position determination unit 22b icon display unit (display control means)
22c Image processing unit (region setting means)
30 storage unit 100 display device (image processing device)

Claims (14)

画像を表示する表示画面上の異なる2箇所に対象物が接触した場合に、接触した上記2箇所の位置を検出する位置検出手段と、
上記位置検出手段が検出した上記2箇所の位置の間の距離を算出する距離算出手段と、
画像処理を施すべき処理対象領域のサイズを、上記距離算出手段が算出した距離に応じたサイズに設定する領域設定手段と、を備えている、ことを特徴とする画像処理装置。
A position detecting means for detecting the positions of the two places in contact when the object touches two different places on the display screen for displaying an image;
Distance calculating means for calculating a distance between the two positions detected by the position detecting means;
An image processing apparatus comprising: an area setting unit that sets a size of a processing target area to be subjected to image processing to a size corresponding to the distance calculated by the distance calculation unit.
上記領域設定手段が設定する上記処理対象領域は、上記画像に対して背景色を描画する領域であることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the processing target area set by the area setting unit is an area for drawing a background color on the image. 上記距離算出手段が算出した距離に応じたサイズのアイコンを上記表示画面に表示する表示制御手段をさらに備え、
上記領域設定手段は、上記表示制御手段により表示されたアイコンが掃過する領域に背景色を描画することを特徴とする請求項1または2に記載の画像処理装置。
Display control means for displaying an icon of a size corresponding to the distance calculated by the distance calculation means on the display screen;
The image processing apparatus according to claim 1, wherein the area setting unit draws a background color in an area where the icon displayed by the display control unit is swept.
上記表示制御手段は、上記アイコンが表示される領域の境界線上に上記位置検出手段が検出した上記2箇所の位置が含まれるように、上記アイコンを表示することを特徴とする請求項3に記載の画像処理装置。   The said display control means displays the said icon so that the position of the said 2 places detected by the said position detection means may be included on the boundary line of the area | region where the said icon is displayed. Image processing apparatus. 上記表示制御手段は、表示中の上記アイコンのサイズを、上記アイコンが表示された後に上記距離算出手段が算出した距離に応じたサイズに変更することを特徴とする請求項3に記載の画像処理装置。   The image processing according to claim 3, wherein the display control unit changes the size of the icon being displayed to a size corresponding to the distance calculated by the distance calculation unit after the icon is displayed. apparatus. 上記アイコンの形状は長方形であり、
上記表示制御手段が表示中の上記アイコンのサイズを変更するのは、表示中の上記アイコンの各長辺または各短辺への接触を上記位置検出手段が検出した場合に限られていることを特徴とする請求項5に記載の画像処理装置。
The shape of the icon is a rectangle,
The display control means changes the size of the icon being displayed only when the position detection means detects contact with each long side or each short side of the icon being displayed. The image processing apparatus according to claim 5, wherein:
上記距離算出手段が算出した距離を表わすオブジェクトを上記表示画面に表示する表示制御手段をさらに備えていることを特徴とする請求項1から3のいずれか1項に記載の画像処理装置。   4. The image processing apparatus according to claim 1, further comprising display control means for displaying an object representing the distance calculated by the distance calculation means on the display screen. 上記画像処理を施す旨の指示をユーザから受け付ける指示受付手段を備え、
上記指示受付手段が上記指示を受け付けてから規定の時間が経過するまでに上記位置検出手段が上記2箇所の位置を検出しない場合には、上記領域設定手段は、上記処理対象領域のサイズを規定のサイズに設定することを特徴とする請求項1から7のいずれか1項に記載の画像処理装置。
An instruction receiving means for receiving an instruction to perform the image processing from a user;
If the position detection unit does not detect the two positions before the specified time elapses after the instruction receiving unit receives the instruction, the region setting unit defines the size of the processing target region. The image processing apparatus according to claim 1, wherein the image processing apparatus is set to a size of 1.
上記領域設定手段は、上記距離算出手段が算出した距離の2乗に比例するように、上記処理対象領域のサイズを設定することを特徴とする請求項1から8のいずれか1項に記載の画像処理装置。   The said area setting means sets the size of the said process target area | region so that it may be proportional to the square of the distance which the said distance calculation means calculated, The any one of Claim 1 to 8 characterized by the above-mentioned. Image processing device. 上記位置検出手段が、2箇所の位置を検出した後に、さらに、該2箇所の位置と少なくとも1箇所以上異なる2箇所の位置への接触を検出した場合、上記領域設定手段は、後に検出された2箇所の位置を結ぶ直線の接触角度から、先に検出された2箇所の位置を結ぶ直線の接触角度を減じて得られる角度だけ、上記処理対象領域を回転させることを特徴とする請求項1から9のいずれか1項の記載の画像処理装置。   After the position detecting means detects two positions, and further detects contact with two positions different from the two positions by at least one place, the area setting means is detected later. 2. The region to be processed is rotated by an angle obtained by subtracting a contact angle of a straight line connecting two previously detected positions from a contact angle of a straight line connecting two positions. The image processing apparatus according to any one of claims 1 to 9. 請求項1から10のいずれか1項に記載の画像処理装置に上記表示画面を備えたことを特徴とする表示装置。   A display device comprising the image processing device according to claim 1, wherein the display screen is provided. 画像を表示する表示画面上の異なる2箇所の位置に対象物が接触した場合に、接触した上記2箇所の位置を検出する位置検出工程と、
上記位置検出工程にて検出された上記2箇所の位置の間の距離を算出する距離算出工程と、
画像処理を施すべき処理対象領域のサイズを、上記距離算出工程にて算出された距離に応じたサイズに設定する領域設定工程と、を含んでいることを特徴とする画像処理方法。
A position detecting step for detecting the positions of the two places that are in contact when the object comes into contact with two different positions on the display screen for displaying an image;
A distance calculating step of calculating a distance between the two positions detected in the position detecting step;
And a region setting step of setting a size of a processing target region to be subjected to image processing to a size corresponding to the distance calculated in the distance calculation step.
請求項1から10のいずれか1項に記載の画像処理装置を動作させるプログラムであって、コンピュータを上記の各手段として機能させるための画像処理プログラム。   A program for operating the image processing apparatus according to any one of claims 1 to 10, wherein the image processing program causes a computer to function as each of the means. 請求項13に記載の画像処理プログラムを記録しているコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the image processing program according to claim 13 is recorded.
JP2010101233A 2010-04-26 2010-04-26 Image processing apparatus, display apparatus, image processing method, image processing program, and recording medium Active JP5657269B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010101233A JP5657269B2 (en) 2010-04-26 2010-04-26 Image processing apparatus, display apparatus, image processing method, image processing program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010101233A JP5657269B2 (en) 2010-04-26 2010-04-26 Image processing apparatus, display apparatus, image processing method, image processing program, and recording medium

Publications (2)

Publication Number Publication Date
JP2011232881A true JP2011232881A (en) 2011-11-17
JP5657269B2 JP5657269B2 (en) 2015-01-21

Family

ID=45322151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010101233A Active JP5657269B2 (en) 2010-04-26 2010-04-26 Image processing apparatus, display apparatus, image processing method, image processing program, and recording medium

Country Status (1)

Country Link
JP (1) JP5657269B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013137736A (en) * 2011-11-30 2013-07-11 Ricoh Co Ltd Image display control device, image display system, method, and program
JP2015049804A (en) * 2013-09-03 2015-03-16 シャープ株式会社 Display device
JP2020061193A (en) * 2020-01-22 2020-04-16 グリー株式会社 Control program, method for control, and information processor

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04289979A (en) * 1991-03-18 1992-10-14 Omron Corp Image erasing device
JP2001290585A (en) * 2000-01-31 2001-10-19 Canon Inc Position information processor, position information processing method and program, and operation device and its method and program
JP2002109557A (en) * 2000-10-03 2002-04-12 Ricoh Co Ltd Switching system of icon
JP2002304256A (en) * 2001-04-06 2002-10-18 Sony Corp Information processor
JP2005234610A (en) * 2001-05-07 2005-09-02 T Five:Kk Freehand-input pattern editing system
JP2007018261A (en) * 2005-07-07 2007-01-25 Ricoh Co Ltd Image editing device, image sampling method, program, and storage medium
JP2009200612A (en) * 2008-02-19 2009-09-03 Fujifilm Imaging Co Ltd Image forming system and method
JP2009276926A (en) * 2008-05-13 2009-11-26 Ntt Docomo Inc Information processor and display information editing method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04289979A (en) * 1991-03-18 1992-10-14 Omron Corp Image erasing device
JP2001290585A (en) * 2000-01-31 2001-10-19 Canon Inc Position information processor, position information processing method and program, and operation device and its method and program
JP2002109557A (en) * 2000-10-03 2002-04-12 Ricoh Co Ltd Switching system of icon
JP2002304256A (en) * 2001-04-06 2002-10-18 Sony Corp Information processor
JP2005234610A (en) * 2001-05-07 2005-09-02 T Five:Kk Freehand-input pattern editing system
JP2007018261A (en) * 2005-07-07 2007-01-25 Ricoh Co Ltd Image editing device, image sampling method, program, and storage medium
JP2009200612A (en) * 2008-02-19 2009-09-03 Fujifilm Imaging Co Ltd Image forming system and method
JP2009276926A (en) * 2008-05-13 2009-11-26 Ntt Docomo Inc Information processor and display information editing method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013137736A (en) * 2011-11-30 2013-07-11 Ricoh Co Ltd Image display control device, image display system, method, and program
US10901526B2 (en) 2011-11-30 2021-01-26 Ricoh Company, Ltd. Image display control device, image display system, and computer program product
US10901525B2 (en) 2011-11-30 2021-01-26 Ricoh Company, Ltd. Image display control device, image display system, and computer program product
US11481045B2 (en) 2011-11-30 2022-10-25 Ricoh Company, Ltd. Image display control device, image display system, and computer program product
JP2015049804A (en) * 2013-09-03 2015-03-16 シャープ株式会社 Display device
JP2020061193A (en) * 2020-01-22 2020-04-16 グリー株式会社 Control program, method for control, and information processor

Also Published As

Publication number Publication date
JP5657269B2 (en) 2015-01-21

Similar Documents

Publication Publication Date Title
US11023055B2 (en) Devices, methods, and graphical user interfaces for an electronic device interacting with a stylus
US8854325B2 (en) Two-factor rotation input on a touchscreen device
US8988342B2 (en) Display apparatus, remote controlling apparatus and control method thereof
JP5703873B2 (en) Information processing apparatus, information processing method, and program
US9459704B2 (en) Method and apparatus for providing one-handed user interface in mobile device having touch screen
JP2008146243A (en) Information processor, information processing method and program
AU2014312481B2 (en) Display apparatus, portable device and screen display methods thereof
TWI547855B (en) Information processing device, information processing method and program
US20130300710A1 (en) Method and electronic device thereof for processing function corresponding to multi-touch
KR20140046345A (en) Multi display device and method for providing tool thereof
US20140035851A1 (en) Method for controlling user input and electronic device thereof
JP2014132427A (en) Information processor and information processing method, and computer program
US20160349946A1 (en) User terminal apparatus and control method thereof
JP2013114559A (en) Information processing apparatus, control method for information processing apparatus, and program
JP2010102395A (en) Image processing apparatus, image processing method, and program
KR20170082722A (en) User terminal apparatus and control method thereof
EP2829967A2 (en) Method of processing input and electronic device thereof
KR102098258B1 (en) Method for editing contents and display device implementing the same
JP5865615B2 (en) Electronic apparatus and control method
TWI442305B (en) A operation method and a system of the multi-touch
JP5657269B2 (en) Image processing apparatus, display apparatus, image processing method, image processing program, and recording medium
JP2014056519A (en) Portable terminal device, incorrect operation determination method, control program, and recording medium
EP3433713B1 (en) Selecting first digital input behavior based on presence of a second, concurrent, input
JP2015102946A (en) Information processing apparatus, control method of information processing apparatus, and program
KR102033710B1 (en) Method for controlling touch screen GUI

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140528

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141126

R150 Certificate of patent or registration of utility model

Ref document number: 5657269

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150