JP3890619B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP3890619B2
JP3890619B2 JP05165996A JP5165996A JP3890619B2 JP 3890619 B2 JP3890619 B2 JP 3890619B2 JP 05165996 A JP05165996 A JP 05165996A JP 5165996 A JP5165996 A JP 5165996A JP 3890619 B2 JP3890619 B2 JP 3890619B2
Authority
JP
Japan
Prior art keywords
graphic
input
deformation
icon
line segment
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.)
Expired - Fee Related
Application number
JP05165996A
Other languages
Japanese (ja)
Other versions
JPH09245186A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP05165996A priority Critical patent/JP3890619B2/en
Publication of JPH09245186A publication Critical patent/JPH09245186A/en
Application granted granted Critical
Publication of JP3890619B2 publication Critical patent/JP3890619B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、表示された図形について線分の長さや2辺の角度を所望のスケールに変形する画像処理装置に関する。
【0002】
【従来の技術】
従来、この種の画像処理装置においては、表示画面上に描画された図形について、その図形の長さや角度を現スケールとして表示させてから、その現スケールを基準に図形のスケールを変形するという第1の方法や、キーボードから所望のスケールをキー入力してから、そのキー入力された所望のスケールとなるように図形のスケールを変形するという第2の方法がある。
【0003】
【発明が解決しようとする課題】
しかしながら、上述した従来例による画像処理装置は、前述した第1の方法において、描画された図形を表示された現スケールから所望のスケールに変形していくので、その図形と現スケールとの関係を理解することが困難となって、その操作に手間がかかり、一方、前述した第2の方法において、描画された図形についてキー操作によって所望のスケールを入力するようにしたので、スケールの入力ミスから変形ミスを起こす等して操作に連続性をもてないことから、キー操作が煩わしくなり、使い勝手が悪いという問題点があった。
【0004】
本発明は、上述した従来例による問題点を解消するため、簡単な操作によって表示中の図形を所望のスケールに変形することが可能な画像処理装置を提供することを目的とする。
【0005】
【課題を解決するための手段】
請求項1記載の発明に係る画像処理装置は、線図形等を含む図形データを手書き入力する入力手段と、前記入力手段により手書き入力された図形データに基づいて図形を表示する表示手段と、前記表示手段により表示された図形に対して変形情報を手書き入力する変形情報入力手段と、前記変形情報入力手段により手書き入力された変形情報を認識する認識手段と、この認識手段により前記変形情報が数字でないと認識された場合には、当該変形情報である手書き入力の曲線によって結ばれた図形の部分を変形対象の図形データ部分として特定する変形対象特定手段と、前記認識手段により前記変形情報が数字であると認識された場合には、当該認識された数字を指定スケールとして設定する指定スケール設定手段と、前記変形対象特定手段により、数字でないと認識された変形情報により変形対象の図形データ部分が特定され、前記指定スケール設定手段により、数字であると認識された変形情報により当該認識された数字が指定スケールとして設定された際に、前記特定された変形対象の図形データ部分について、前記指定スケール設定手段により設定された指定スケールのサイズに変形表示する変形表示手段とを備えたことを特徴とする。
【0006】
以上の構成によれば、入力手段により線図形等を含む図形データを手書き入力され、表示手段は入力手段により手書き入力された図形データに基づいて図形を表示し、変形情報入力手段により表示手段により表示された図形に対して変形情報が手書き入力され、認識手段は変形情報入力手段により手書き入力された変形情報を認識し、変形対象特定手段は変形情報が数字でない場合には当該変形情報である手書き入力の曲線によって結ばれた図形の部分を変形対象の図形データ部分として特定し、指定スケール設定手段は変形情報が数字である場合には、当該認識された数字を指定スケールとして設定し、数字でないと認識された変形情報により変形対象の図形データ部分が特定され、数字であると認識された変形情報により当該認識された数字が指定スケールとして設定された際に、特定された変形対象の図形データ部分について、設定された指定スケールのサイズに変形表示する。
【0007】
従って、表示中の図形に対して手書きで変形対象の図形データ部分を指定して、所望のスケールを入力するだけでその図形を変形して表示するようにしたので、簡単な操作によって表示中の図形を所望のスケールに変形表示することが可能である。
【0026】
【発明の実施の形態】
以下に添付図面を参照して、本発明に係る好適な実施の形態を詳細に説明する。
図1は本発明に係る画像処理装置の一実施の形態を示すブロック図であり、同図において、1は画像処理装置を示している。
図1に示した画像処理装置1は、例えば、CPU2、ROM3、RAM4、タッチパネル5、指定位置認識部6、文字認識部7、表示駆動回路8、及び表示部9を備えている。なお、この実施の形態では、後述の座標位置検出部5に位置指定を行うためのポインティングデバイスとして入力ペン10が採用される。
【0027】
CPU2は、ROM3に格納された制御プログラムに従って制御装置1全体を制御する中央処理部である。このCPU2は、ROM3、RAM4、指定位置検出部6、文字認識部7、及び表示駆動回路8に結合され、制御プログラムの実行、データのリード/ライト、ペン入力による指定位置や文字の認識(図形寸法設定処理を含む)、表示駆動等の動作を制御する。例えば、図形寸法設定処理は、図13及び図14に示したフローチャートに従う制御プログラムにより実行されるものである。
【0028】
ROM3はCPU2を動作させるための各種制御プログラムや各種プログラムに必要なパラメータ等のデータを格納するメモリであり、例えば、図13及び図14に示したフローチャートに従うプログラムを格納している。
【0029】
RAM4は図形情報メモリ41、表示メモリ42、ワークメモリ43等のメモリを具備している。図形情報メモリ41は後述の図5、図7、図10、図12に示した如く寸法の変形前後の図形情報(第1図形情報、第2図形情報)を格納するメモリである。この第1図形情報には、図形の線種を示す種別(直線、2辺等)、指定スケール(線の長さ、2辺の角度等)、モード(指定スケールへの実寸変形、2つの図形間の相対変形等)、変形前情報(点位置、直線の始点及び終点、2辺の始点、中点及び終点、実寸(線の長さ、2辺の角度等)等)、変形後情報(点位置、直線の始点及び終点、2辺の始点、中点及び終点等)がある。なお、相対変形には第2図形情報も必要となり、その第2図形情報には、第1図形状法と同様に、指定方法、変形前情報、及び変形後情報がある。
【0030】
表示メモリ42は入力ペン10の操作により描画された図形や寸法変形された図形、メニュー、アイコン等の画像データをドット展開してその表示データ(ドットデータ)を表示部2に供給するメモリである。ワークメモリ43はCPU2が各種制御プログラムに従って動作するときのワークエリアとして使用されるメモリである。
【0031】
タッチパネル5は表示部9上面に積層させてその表示部9と座標位置をほぼ一致させてなる構成を有しており、例えば感圧方式を採用して入力ペン10のタッチによりそのタッチ位置を指定位置認識部6及び文字認識部7に供給する。指定位置認識部6はタッチパネル5より供給されたタッチ位置から指定位置(座標位置)を認識してCPU2に座標位置データを供給する。文字認識部7はタッチパネル5より供給されるタッチ位置から入力ペン10のストロークを検出して文字認識を行ってその認識結果をCPU2に供給する。
【0032】
表示駆動回路8はCPU2の制御に従って表示部9を表示駆動させる回路であり、表示部9は表示駆動回路8の制御に従って表示メモリ42に格納された表示データに基づく表示画像を形成する出力装置である。
【0033】
次に、動作について説明する。図2、図3及び図4、図6、図8及び図9、並びに、図11及び図12はそれぞれ本実施の形態における図形寸法設定手順を説明する図であり、図5、図7、図10、及び図12はそれぞれ図形の寸法設定方法に対応させた図形情報メモリ41の記憶内容を示す図である。図13〜図16は本実施の形態における図形寸法設定方法を説明するフローチャートである。なお、図13〜図16に示したフローチャートに従う動作は、CPU2の制御に従って実行されるが、個々の動作については各部で行われるものである。
【0034】
まず、本処理が開始されると、ステップS1において図2(a)に示した如く初期画面が設定される。すなわち、図2(a)において、表示部9の表示画面には、その左上段にアイコンエリア9aが表示形成され、その他の領域に図形作成エリア9bが表示形成される。アイコンエリア9aには、上段左より順に点アイコン91、線分アイコン92、2辺アイコン93が設定され、次段左より順に線分距離アイコン94、角度アイコン94、OKアイコン96が設定される。
【0035】
点アイコン91はに点図形を作成するためのモードを設定するものであり、線分アイコン92は指定位置に線分図形を作成するためのモードを設定するものであり、2辺アイコン93は2辺図形を作成するためのモードを設定するものである。線分距離アイコン94は作成済みの線分図形に対して両端間の距離を入力するモードを設定するものであり、角度アイコン94は作成済みの2辺図形に対してその頂角の角度を入力するためのもどを設定するものであり、OKアイコン96は入力済みの距離や角度に基づいて作成済みの図形を変形するモードを設定するものである。
【0036】
このように、ステップS1により初期画面設定が済むと、ステップS2においてアイコンエリア9aより入力ペン10によるペン入力がセンスされる。このステップS2では、アイコンエリア9a内よりペン入力が検出されると、続くステップS3、S4,S5において、その検出された位置から図形入力か、変形情報入力か、それとも図形変形かの判定がなされる。ステップS3においてその検出位置から図形入力であるという判定結果が得られた場合には、処理はステップS6に移行し、図14に示したフローチャートに従う図形入力処理が実行される。また、変形情報入力であるという判定結果が得られた場合には、処理はステップS7に移行し、図15に示したフローチャートに従う変形情報入力処理が実行される。また、図形変形であるという判定結果が得られた場合には、処理はステップS8に移行し、図16に示したフローチャートに従う図形変形処理が実行される。
【0037】
ここで、具体例を参照して説明を続ける。例えば、図2(b)に示したように、入力ペン10の操作でアイコンエリア9aの線分アイコン92にペンタッチ入力があると、図14のフローにおいてステップS601において点アイコン91へのペン入力でないと判定されることから、ステップS605によりペン入力位置が線分アイコン92であると判定される。
【0038】
その後、処理はステップS606に移行する。このステップS606では、ペン入力された線分アイコン92を反転表示(図2(b)中に斜線で示す)する処理が実行されるとともに、図5に示した如く、図形情報メモリ41の第1図形情報に種別データとして「線分]を示すデータが格納される。続くステップS607では、線分図形のペン入力がセンスされるが、そのペン入力は始点(起点)と終点とを位置指定することにより完了する。図2(c)に示したように、入力ペン10により図形作成エリア9bに始点ST1、終点ED1が位置指定(ペン入力)されると(ステップS607)、ペン入力された始点ST1,終点ED1の各指定位置は図形情報メモリ41に第1座標データ(XA,YA)、第2座標データ(XB,YB)として記憶され(ステップS608)、その2点の座標位置に基づいてその2点ST1,ED1間を直線で結ぶLN1で示した線分が図形作成エリア9b上に描画処理される(ステップS610)。
【0039】
この線分アイコン92に従うモードでは、始点ST1と終点ED1との2点の位置指定があれば線分描画に入れることから、ステップS609において2点の位置指定済みが確認された時点で処理が次のステップS610の線分描画に移行する。
【0040】
このように、図形表示が完了すると、処理は図13に示したフローに戻り、そのステップS9において処理の終了が検出されなければ、再びステップS2においてアイコン入力がセンスされる。なお、点アイコン91がペン入力対象であった場合には(ステップS601)、上述した線分アイコン92にかかる処理と同様にステップS602、S603,S604において、点アイコン91の反転表示、その種別データ「点」の記憶、指定位置(点位置)の記憶、ならびに、点図形の表示形成が実行され、この場合には一点のみの位置指定であることから、ステップS604の後に処理は図13のフローに戻る。
【0041】
上述した図2(c)の表示状態で、今度は図3(a)に示したように線分距離アイコン94にペン入力があると、これは図13のフローにおいて変形情報入力と判定され、処理は図15のステップS701に移行する。このステップS701では、線分距離アイコン94と角度アイコン95との内のいずれのアイコンにペン入力が行われたのかその判定がなされる。この場合には、ステップS701によりペン入力位置が線分距離アイコン94であると判定される。
【0042】
その後、処理はステップS702に移行する。このステップS702では、ペン入力された線分距離アイコン94を反転表示(図中に斜線で示す)する処理が実行される。続くステップS703では、線分図形に対するペン入力がセンスされるが、そのペン入力は始点(起点)と終点とを結ぶように入力ペン10をスライドさせて曲線を描くストローク入力、及び文字(距離を示す数字)ストローク入力である。そこで、入力ペン10により図形作成エリア9bに始点ST1、終点ED1を結ぶストロークDS1がペン入力されると、そのストロークDS1は図3(b)に示した如く表示される(ステップS703及びS704)。続くステップS705では、そのストロークDS1の座標データに基づいて文字認識(数字認識)が行われ、そのストロークDS1が文字認識できず数字でないという判定結果が得られたことから、処理は再びステップS703に戻る。以上のストロークDS1の入力によりこの変形情報入力処理は線分LN1を対象にして変形情報を入力していることを表す。
【0043】
このステップS703において同様にペン入力がセンスされ、今度は数字(文字)の「5」がストローク入力されると、ステップS704において一旦そのストロークは表示され、続くステップS705においてその表示されたストロークは数字の「5」であると文字認識される。その後、予めROM3に格納されたキャラクタージェネレータによって数字「5」のフォントパターンが表示メモリ42にドット展開され、図3(c)に示した如く数字パターンCHR1「5」が表示される。この場合には、ステップS706において数字認識ができたものと判定され、次のステップS707においてその数字認識された「5」が指定スケール「5cm」として図形情報メモリ41に記憶される。
【0044】
そして、ステップS708では、図3(c)に示したように、図形は線分LN1のひとつだけなので、ステップS707により指定スケールが記憶された段階で変形情報入力処理は一旦終了するように処理が実行される。この後、処理は図13に示したフローに戻り、上述したステップS9から再開される。
【0045】
次に、上述した図3(c)の表示状態で、今度は図4(a)に示したようにOKアイコン96にペン入力があると、これは図13のフローにおいて図形変形入力と判定され、処理は図16のステップS801に移行する。このステップS801では、図4(a)に示したようにOKアイコン96を反転表示する処理が実行される。
【0046】
続くステップS802では、図形情報メモリ41に領域を設けた図形情報から指定スケールデータを有する図形情報の数を調べ、その数を図形数として、単数であるか、それとも複数であるかを判定する処理が実行される。図5に示した図形情報メモリ41においては、第1図形情報の領域のみ指定スケールデータが格納されており、ステップS802において単数という判定結果が得られるので、処理はステップS803に移行して実寸変形モードを開始する。その際に、図形情報メモリ41には、第1図形情報のエリアにモードとして実寸変形モードが記憶される。なお、複数の場合には、処理はステップS805に移行して相対変形モードを開始する。
【0047】
図形が単数すなわち実寸変形モードの場合には、変形前の始点ST1の第1座標データ(XA,YA)を変形後も起点(始点ST1)とするので、ステップS803において、始点ST1を起点として線分LN1のベクトル方向に変更後の終点RED1を求められるように、始点ST1の第1座標データ(XA,YA)、終点ED1の第2座標データ(XB,YB)と指定スケールデータ「5cm」とに基づいて終点RED1が算出される。例えば、実寸スケールが7cmであった場合には、線分LN1に対して、指定スケールが5cmであることから、図4(b)に示した如く、変更前の終点ED1が始点ST1に向かってΔd1で示す補正距離「2cm」分の縮小(変形)が与えられ、変形線分RLN1となる。その補正された終点はRED1となり、その座標データは図形情報メモリ41において変更後情報に第2座標データ(XC,YC)として格納される。なお、第1座標データは起点のため変更前後で不変とする。
【0048】
また、この図形縮小(変形)表示の際には、図4(b)に示した如く、ストロークDS1が終点ED1の移動に伴って縮小(変形)され変形ストロークRDS1となるとともに、そのストロークDS1の変形に伴って文字パターンCHR1の表示位置が移動処理される。
【0049】
さて、前述の線分LN1の図形入力処理に続いて図6(a)に示した線分LN2の図形入力処理を行った後に、各線分LN1,LN2に対する変形情報入力処理を行う手順についても説明する。
【0050】
図形入力処理では、線分LN1の場合と同様に、線分LN2にかかるデータは第2図形情報として図形情報メモリ41に格納される。すなわち、線分LN2の変形前情報では、始点ST2の座標データは第1座標データ(XD,YD)として記憶され、終点ED2の座標データは第2座標データ(XE,YE)として記憶される。また、変形情報入力処理においては、図6(a)に示したように、図形作成エリア9bに、ペン入力に応じてストロークDS2及び指定スケールとしての文字パターンCHR2「3cm」が表示形成される。前述の線分LN1だけの変形情報入力処理では、ステップS707で認識結果「5」を指定スケールデータ「5cm」として図形情報メモリ41に記憶した後に、ステップS708ですぐに終了という判定を行っていたが、線分LN2を伴う図6(a)の例では、両線分LN1,LN2についてそれぞれ指定スケールデータを格納するまでは強制終了以外に終了とはならず、再度ステップS703より処理が繰り返し実行される。
【0051】
その後、OKアイコン96が入力ペン10により位置指定されると、前述と同様に処理は図16に示した図形変形処理に移行して、まず、ステップS801において図6(a)に示した如くOKアイコン96を反転表示する処理が実行される。
【0052】
続くステップS802では、今度は図7に示した図形情報メモリ41から明らかなように、指定スケールデータが各第1、第2図形情報に格納されており、これで図形が複数であることが確認できるので、今度は処理はステップS805に移行する。すなわち、このステップS805以降の処理により相対変形モードが実行される。
【0053】
この相対変形モードでは、まず、ステップS805において、基準図形となる第1図形の実寸スケールが変形前情報(図形情報メモリ41)に基づいて算出され記憶される。なお、3つの線分図形が入力され、基準となる第1図形に変形情報が入力されていなかった場合には、第2図形が基準図形として代行され、その実寸スケールが算出される。
【0054】
さて、実寸スケールの算出方法であるが、第1図形である線分LN1について、第1図形情報の変形前情報(第1座標データ(XA,YA)、第2座標データ(XB,YB))から始点ST1、終点ED1間の距離が算出され、その距離が図7に示した如く実寸スケールデータ(例えば「7cm」)として実寸スケールのエリアに格納される。なお、3つ以上の図形入力があり、第1図形について指定スケール(変形情報)が入力されていない場合には、番号の若い第n図形について、第n図形情報の変形前情報(第1座標データ、第2座標データ)から始点STn、終点EDn間の距離が算出され、その距離が実寸スケールデータとして実寸スケールのエリアに格納される。
【0055】
次に、ステップS806において、この相対変形において基準となる図形を第1図形すなわち線分LN1として、この線分LN1のサイズに対して第2図形(他の図形)である線分LN2のサイズが比較され、その比率が算出される。この比較では同一種別同士を条件とするため、第1図形の種別とは異なる他の図形が存在するような場合には、その他の図形は比較対象とはならず、この図形変形処理では原形を保持することになる。
【0056】
具体的には、基準図形となる線分LN1の指定スケール「5cm」を分母とし、他の図形である線分LN2の指定スケール「3cm」を分子とした除算により、その除算結果である比率は3/5=0.6となる。
【0057】
続くステップS807では、ステップS806で求めた比率「0.6」を第2図形の線分LN2の変形に適用するため、基準図形である線分LN1の実寸スケール「7cm」に上記比率「0.6」が掛け合わされ、実寸スケールデータ「4.2cm」が求められる。この線分LN2の実寸スケールデータ「4.2cm」と変形前情報(第1座標(XD,YD)、第2座標(XE,YE))とに基づいて、線分LN2の終点ED2の座標位置を線分LN2のベクトル方向で移動させるように、変形後の座標位置となる終点RED2の第2座標データ(XF,YF)が算出される。この場合、変形後の終点RED2は変形前の終点ED2よりも始点ST2に向かって移動することになり、図6(b)に示したように、変形後となる線分RLN2はその第1座標データ(XD,YD)と第2座標データ(XF,YF)とを結ぶように描画され、変形前の線分LN2よりも始点ST2に向かって縮小(変形)される。
【0058】
例えば、線分LN2の変形前の実寸スケールが5cmであれば、変形量であるΔd2で示した補正距離が「0.8cm」となる。以上の補正された終点RED2の座標データは図形情報メモリ41において変更後情報に第2座標データ(XF,YF)として格納され、第1座標データは起点のため変更前後で不変とする。
【0059】
また、この線分LN2に対する図形縮小(変形)表示の際には、図6(b)に示した如く、ストロークDS2が終点ED2の移動に伴って縮小(変形)され変形ストロークRDS2となるとともに、そのストロークDS2の変形に伴って文字パターンCHR2の表示位置が移動処理される。
【0060】
さて、今度は、図8(a)に示したように、入力ペン10の操作でアイコンエリア9aの2辺アイコン93にペン入力があると、図14のフローにおいてステップS605によりペン入力位置が2辺アイコン93であると判定される。
【0061】
その後、処理はステップS611に移行する。このステップS611では、ペン入力された2辺アイコン93を反転表示(図中に斜線で示す)する処理が実行されるとともに、図10に示した如く、図形情報メモリ41の第1図形情報に種別データとして「2辺]を示すデータが格納される。続くステップS612では、2辺図形のペン入力がセンスされるが、そのペン入力は始点(起点)と、中点と、終点とを位置指定することにより完了する。図8(b)に示したように、入力ペン10により図形作成エリア9bに始点ST3、中点MD3、終点ED3が位置指定(ペン入力)されると(ステップS612)、ペン入力された始点ST3,中点MD3,終点ED3の各指定位置は図形情報メモリ41に第1座標データ(XG,YG)、第2座標データ(XH,YH)、第3座標データ(XI,YI)として記憶され(ステップS613)、その3点の座標位置に基づいてその3点ST3,MD3,ED3間を線分で結ぶLN3、及びLN4で示した2辺が図形作成エリア9b上に描画処理される(ステップS615)。この2辺アイコン93に従うモードにおいては、始点ST3、中点MD3,終点ED3の3点の位置指定があれば線分描画に入れることから、ステップS614において3点の位置指定済みが確認された時点で処理が次のステップS615の2辺描画に移行する。
【0062】
このように、図形表示が完了すると、処理は図13に示したフローに戻り、そのステップS9において処理の終了が検出されなければ、再びステップS2においてアイコン入力がセンスされる。
【0063】
上述した図8(b)の表示状態で、今度は図8(c)に示したように角度アイコン95にペン入力があると、これは図13のフローにおいて変形情報入力と判定され、処理は図15のステップS701に移行する。このステップS701では、線分距離アイコン94と角度アイコン95との内のいずれのアイコンにペン入力が行われたのかその判定がなされる。この場合には、ステップS701によりペン入力位置が角度アイコン95であると判定される。
【0064】
その後、処理はステップS709に移行する。このステップS709では、ペン入力された線分距離アイコン95を反転表示(図中に斜線で示す)する処理が実行される。続くステップS710では、2辺図形に対するペン入力がセンスされるが、そのペン入力は中点MD3近傍に線分LN3と線分LN4とを結ぶように入力ペン10をスライドさせて曲線を描くストローク入力、及び文字(角度を示す数字)ストローク入力である。そこで、入力ペン10により図形作成エリア9bに線分LN3及び線分LN4を結ぶストロークANG1がペン入力されると、そのストロークANG1は図9(a)に示した如く表示される(ステップS710及びS711)。続くステップS712では、そのストロークANG1の座標データに基づいて文字認識(数字認識)が行われ、そのストロークANG1が文字認識できず数字でないという判定結果が得られたことから、処理は再びステップS710に戻る。以上のストロークANG1の入力によりこの変形情報入力処理は2辺(線分LN3及び線分LN4)を対象にして変形情報を入力していることを表す。
【0065】
このステップS710において同様にペン入力がセンスされ、今度は数字(文字)の「45」がストローク入力されると、ステップS711において一旦そのストロークは表示され、続くステップS712においてその表示されたストロークは数字の「45」であると文字認識される。その後、予めROM3に格納されたキャラクタージェネレータによって数字「45」のフォントパターンが表示メモリ42にドット展開され、図9(a)に示した如く数字パターンCHR3「45」が表示される。この場合には、ステップS713において数字認識ができたものと判定され、次のステップS714においてその数字認識された「45」が指定スケール「45゜」として図形情報メモリ41に記憶される。
【0066】
そして、ステップS715では、図9(a)に示したように、図形は線分LN3及びLN4よりなる2辺図形ひとつだけなので、ステップS714により指定スケールが記憶された段階で変形情報入力処理は一旦終了するように処理が実行される。この後、処理は図13に示したフローに戻り、上述したステップS9から再開される。
【0067】
次に、上述した図9(a)の表示状態で、今度は図9(b)に示したようにOKアイコン96にペン入力があると、これは図13のフローにおいて図形変形入力と判定され、処理は図16のステップS801に移行する。このステップS801では、図9(b)に示したようにOKアイコン96を反転表示する処理が実行される。
【0068】
続くステップS802では、図形情報メモリ41に領域を設けた図形情報から指定スケールデータを有する図形情報の数を調べ、その数を図形数として、単数であるか、それとも複数であるかを判定する処理が実行される。図10に示した図形情報メモリ41においては、第1図形情報の領域のみ指定スケールデータが格納されており、ステップS802において単数という判定結果が得られるので、処理はステップS803に移行して実寸変形モードを開始する。その際に、図形情報メモリ41には、図10に示した如く、第1図形情報のエリアにモードとして実寸変形モードが記憶される。なお、複数の場合には、処理はステップS805に移行して相対変形モードを開始する。
【0069】
図形が単数すなわち実寸変形モードの場合には、変形前の線分LN4を変形後も基線として残すために、中点MD3の第2座標データ(XH,YH)及び終点ED3の第3座標データ(XI,YI)は変形後も同一座標データとする。そこで、ステップS803では、まず線分LN3の長さを算出して、その線分LN3の長さを半径とし、中点MD3を軸にして、基線となる線分LN4とのなす角が指定スケールの45゜としたときの始点ST3の変形後の始点RST3が算出して求められる。例えば、実寸スケールが60゜であった場合には、指定スケールが45゜であることから、図9(c)に示した如く、変更前の線分LN3と線分LN4とのなす角はΔθ1で示す補正角「15゜」となって、15゜の閉じ(変形)が与えられる。その結果、変形される図形は線分LN3のみとなり、その変形後を変形線分RLN3とする。すなわち、補正された始点はRST3となり、その座標データは図形情報メモリ41において変更後情報に第1座標データ(XJ,YJ)として格納される。なお、第2座標データ及び第3座標データは基線である線分LN4を形成するので変更前後で不変とする。
【0070】
また、この変形表示の際には、図9(c)に示した如く、ストロークANG1が始点ST3の移動に伴って縮小(変形)され変形ストロークRANG1となるとともに、そのストロークANG1の変形に伴って文字パターンCHR3の表示位置が移動処理される。
【0071】
さて、前述の線分LN3及びLN4よりなる2辺図形の図形入力処理に続いて図11(a)に示した線分LN5及びLN6よりなる2辺図形の図形入力処理を行った後に、各2辺図形に対する変形情報入力処理を行う手順についても説明する。
【0072】
図形入力処理では、線分LN1及びLN2よりなる2辺図形(第1図形)の場合と同様に、線分LN5及びLN6よりなる2辺図形(第2図形)にかかるデータは第2図形情報として図形情報メモリ41に格納される。すなわち、第2図形である2辺図形の変形前情報では、始点ST4の座標データは第1座標データ(XK,YK)として記憶され、中点MD4の座標データは第2座標データ(XL,YL)として記憶され、終点ED4の座標データは第3座標データ(XM,YM)として記憶される。また、変形情報入力処理においては、図11(a)に示したように、図形作成エリア9bに、ペン入力に応じてストロークANG2及び指定スケールとしての文字パターンCHR4「30゜」が表示形成される。前述の第1図形だけの変形情報入力処理では、ステップS707で認識結果「45」を指定スケールデータ「45゜」として図形情報メモリ41に記憶した後に、ステップS708ですぐに終了という判定を行っていたが、第2図形を伴う図11(a)の例では、両第1、第2図形についてそれぞれ指定スケールデータを格納するまでは強制終了以外に終了とはならず、再度ステップS710より処理が繰り返し実行される。
【0073】
その後、OKアイコン96が入力ペン10により位置指定されると、前述と同様に処理は図16に示した図形変形処理に移行して、まず、ステップS801において図11(a)に示した如くOKアイコン96を反転表示する処理が実行される。
【0074】
続くステップS802では、今度は図12に示した図形情報メモリ41から明らかなように、指定スケールデータが各第1、第2図形情報に格納されており、これで図形が複数であることが確認できるので、今度は処理はステップS805に移行する。すなわち、このステップS805以降の処理により相対変形モードが実行される。
【0075】
この相対変形モードでは、まず、ステップS805において、基準図形となる第1図形の実寸スケール(角度)が変形前情報(図形情報メモリ41)に基づいて算出され記憶される。なお、3つの2辺図形が入力され、基準となる第1図形に変形情報が入力されていなかった場合には、第2図形が基準図形として代行され、その実寸スケール(角度)が算出される。なお、この実寸スケールの算出方法については、変形前情報である第1座標、第2座標、第3座標を用いることで、公知の技術により求めることができる。その結果、角度は図12に示した如く実寸スケールデータ(例えば「60゜」)として実寸スケールのエリアに格納される。なお、3つ以上の図形入力があり、第1図形について指定スケール(変形情報)が入力されていない場合には、番号の若い第n図形について、第n図形情報の変形前情報(第1座標データ、第2座標データ、第3座標データ)から2辺のなす角が算出され、その角度が実寸スケールデータとして実寸スケールのエリアに格納される。
【0076】
次に、ステップS806において、この相対変形において基準となる図形を第1図形(線分LN3及びLN4よりなる)として、この第1図形の2辺のなす角に対して第2図形(線分LN5及びLN6よりなる)の2辺のなす角が比較され、その比率が算出される。この比較では同一種別同士を条件とするため、第1図形の種別とは異なる他の図形が存在するような場合には、その他の図形は比較対象とはならず、この図形変形処理では原形を保持することになる。
【0077】
具体的には、基準図形となる第1図形の指定スケール「45゜」を分母とし、他の図形である第2図形の指定スケール「30゜」を分子とした除算により、その除算結果である比率は30/45=2/3となる。
【0078】
続くステップS807では、ステップS806で求めた比率「2/3」を第2図形の変形に適用するため、基準図形である第1図形の実寸スケール「60゜」に上記比率「2/3」が掛け合わされ、実寸スケールデータ「40゜」が求められる。この第2図形の実寸スケールデータ「40゜」と変形前情報(第1座標(XK,YK)、第2座標(XL,YL)、第3座標(XM,YM))とに基づいて、線分LN5の始点ST4の座標位置を、中点MD4を軸に線分LN6を基線として線分LN5が40゜の開きとなるように、変形後の座標位置となる始点RST4の第1座標データ(XN,YN)が算出される。そして、この変形後の始点RST4と(第1座標データ(XN,YN))と不変の中点MD4(第2座標位置データ(XL,YL))とを結ぶように線分RLN5が描画され変形表示が完了する(ステップS808)。
【0079】
例えば、第2図形の変形前の実寸スケールが60゜であれば、変形量であるΔθ2で示した補正角が「20゜」となる。以上の補正された始点RST4の座標データは図形情報メモリ41において変更後情報に第1座標データ(XN,YN)として格納され、第2座標データ及び第3座標データは基線となる線分LN6を形成することから変更前後で不変とする。
【0080】
また、この第2図形に対する図形縮小(変形)表示の際には、図11(b)に示した如く、ストロークANG2が始点ST4の移動に伴って変形され変形ストロークRANG2となるとともに、そのストロークANG2の変形に伴って文字パターンCHR4の表示位置が移動処理される。
【0081】
このように、上述した実施の形態によれば、表示部9に表示中の図形に対して入力ペン10の操作で手書きで変形情報及び図形の種別情報を入力するだけでその図形を図形の種別に応じた工学単位で変形して表示するようにしたので、簡単な操作によって表示中の図形を所望のサイズ又はスケールに所望の工学単位で変形表示することが可能である。
【0082】
また、表示部9に表示中の複数の図形に対してそれぞれ入力ペン10の操作で手書きで変形情報及び図形の種別情報を入力するだけで一図形を基準に他の図形を図形の種別に応じた工学単位で変形して表示するようにしたので、基準となる図形と他の図形との間を変形情報に伴う相対的な変形量で提示して、図形間のサイズや形状等の比較を客観的に行うことが可能であるとともに、簡単な操作によって表示中の図形を所望のサイズ又はスケールに変形表示することが可能である。
【0083】
また、表示部9に表示中の図形の数が単数の場合には変形情報及び図形の種別情報に基づく変形を行い、複数の場合には一図形を基準に他の図形をそれぞれ変形情報及び図形の種別に基づく工学単位で変形して表示するようにしたので、図形を実寸で確認する場合には図形を単数で扱えばよく、一方、図形間の相対的なサイズや形状の比較する場合には図形を複数扱えばよく、いずれの場合にも簡単な操作によって表示中の図形を所望のサイズ又はスケールに変形表示することが可能である。
【0084】
また、入力ペン10の操作で手書き入力された変形情報から数字を認識して、その数字が手書き入力された図形の種別情報から例えば線分の長さ、複数の図形間の距離、図形の角度、複数の図形間の角度、円の半径、円の直径、及び図形の面積のいずれであるかを認識するようにしたので、数字と図形の種別を入力するという簡単な操作によって表示中の図形を所望のサイズ又はスケールに変形表示することが可能である。
【0085】
さて、上述した実施の形態では、変形情報入力の対象として線分図形と2辺図形とを例に挙げてそれぞれ長さ(距離)、角度を変形量となる単位として設定していたが、変形情報入力の対象や単位の設定を以上に限定せず、例えば、複数の点の間の距離、点と線分との距離、線分の傾き、複数の線分間のなす角、平行する線分間の距離、円の半径や直径、円や矩形等の面積としてもよく、その詳細を以下に第1〜第9の変形例として説明する。
【0086】
まず、第1の変形例として複数の点の間の距離を変形する場合について説明する。この第1の変形例による画像処理装置は、前述の実施の形態と同様、図1に示した構成を具備しているので、各部の説明については省略し、動作説明上は同様の符号を用いる。
【0087】
前述の実施の形態と異なる点についてのみ説明する。図17は本実施の形態における図形寸法設定手順の第1の変形例を説明する図である。
この第1の変形例では、図17(a)に示したように表示部9のアイコンエリアに独立した距離アイコン97が追加される。図17(a)には、点アイコン91のペン入力によって図形入力処理(図14参照)された第1図形である点PNT1及び第2図形である点PNT2がそれぞれ表示されている。このふたつの点PNT1,PNT2には、距離アイコン97に対するペン入力に伴う変形情報入力処理(図15参照)によりストロークDS3及び文字パターンCHR5が設定されている。
【0088】
この図17(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図17(b)に示したようにOKアイコン96は反転表示され、実寸スケールが指定スケールよりも短いすなわち距離がなかった場合には図17(c)に示したように補正距離Δd3分の拡大(変形)を行って第2図形である点PNT2を移動させる処理が実行される。その結果、点PNT2は移動により点RPNT2となり、2点PNT1、RPNT2間の距離は実寸スケールで指定スケールに相当する3cmとなる。この変形に伴ってストロークDS3はストロークRDS3に変形されるとともに、そのストロークDS3の変形に伴って文字パターンCHR5は表示位置を移動させられる。
【0089】
次に、第2の変形例として点と線分間の距離を変形する場合について説明する。この第2の変形例による画像処理装置は、前述の第1の変形例と同様、図1に示した構成を具備しているので、各部の説明については省略し、動作説明上は同様の符号を用いる。
【0090】
前述の第1の変形例と異なる点についてのみ説明する。図18は本実施の形態における図形寸法設定手順の第2の変形例を説明する図である。
図18(a)には、線分アイコン92のペン入力によって図形入力処理(図14参照)された第1図形の線分LN7と点アイコン91のペン入力によって図形入力処理(図14参照)された第2図形である点PNT3とがそれぞれ表示されている。このふたつの点PNT3,線分LN7には、距離アイコン97に対するペン入力に伴う変形情報入力処理(図15参照)によりストロークDS4及び文字パターンCHR6が設定されている。
【0091】
この図18(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図18(b)に示したようにOKアイコン96は反転表示され、実寸スケールが指定スケールよりも短いすなわち距離がなかった場合には図18(c)に示したように補正距離Δd4分の拡大(変形)を行って第2図形である点PNT3を移動させる処理が実行される。その結果、点PNT3は移動により点RPNT3となり、点RPNT3と線分LN7間の距離は実寸スケールで指定スケールに相当する3cmとなる。この変形に伴ってストロークDS4はストロークRDS4に変形されるとともに、そのストロークDS4の変形に伴って文字パターンCHR6は表示位置を移動させられる。
【0092】
次に、第3の変形例として平行する線分間の距離を変形する場合について説明する。この第3の変形例による画像処理装置は、前述の第1の変形例と同様、図1に示した構成を具備しているので、各部の説明については省略し、動作説明上は同様の符号を用いる。
【0093】
前述の第1の変形例と異なる点についてのみ説明する。図19は本実施の形態における図形寸法設定手順の第3の変形例を説明する図である。
図19(a)には、線分アイコン92のペン入力によって図形入力処理(図14参照)された第1図形の線分LN8と第2図形の線分LN9とがそれぞれ表示されている。このふたつの線分LN8,LN9には、距離アイコン97に対するペン入力に伴う変形情報入力処理(図15参照)によりストロークDS5及び文字パターンCHR7が設定されている。
【0094】
この図19(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図19(b)に示したようにOKアイコン96は反転表示され、実寸スケールが指定スケールよりも短いすなわち距離がなかった場合には図19(c)に示したように補正距離Δd5分の拡大(変形)を行って第2図形である線分LN9を移動させる処理が実行される。その結果、線分LN9は移動により線分RLN9となり、線分LN8と線分RLN9間の距離は実寸スケールで指定スケールに相当する3cmとなる。この変形に伴ってストロークDS5はストロークRDS5に変形されるとともに、そのストロークDS5の変形に伴って文字パターンCHR7は表示位置を移動させられる。
【0095】
次に、第4の変形例、第5の変形例としてそれぞれ円の半径、直径を変形する場合について説明する。この第4の変形例及び第5の変形例による画像処理装置は、前述の第1の変形例と同様、図1に示した構成を具備しているので、各部の説明については省略し、動作説明上は同様の符号を用いる。
【0096】
前述の第1の変形例と異なる点についてのみ説明する。図20、図21はそれぞれ本実施の形態における図形寸法設定手順の第4の変形例、第5の変形例を説明する図である。
この第4の変形例及び第5の変形例では、図20(a)及び図21(a)に示したように表示部9のアイコンエリアにさらに独立した円アイコン98が追加される。図20(a)には、点アイコン91のペン入力によって図形入力処理(図14参照)された第1図形である点PNT4及び円アイコン98のペン入力によって図形入力処理(図14参照)された第2図形である円CRCL1がそれぞれ表示されている。このふたつの点PNT4、円CRCL1には、距離アイコン97に対するペン入力に伴う変形情報入力処理(図15参照)によりストロークDS6及び文字パターンCHR8が設定されている。この第4の変形例と同様に、第5の変形例では、図21(a)において、点PNT5を越して円CRCL2上の2点を結ぶようにストロークDS7を設定した場合には、第5の変形例による直径の変形処理となる。この場合、距離アイコン97に対するペン入力に伴う変形情報入力処理(図15参照)によりストロークDS7及び文字パターンCHR9を設定することができる。
【0097】
まず、図20(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図20(b)に示したようにOKアイコン96は反転表示され、実寸スケール(半径)が指定スケール(半径)よりも小さい場合には図20(c)に示したように点PNT4を円の中心とする補正半径Δr1分の拡大(変形)を行って第2図形である円CRCL1を拡張させる処理が実行される。その結果、円CRCL1は拡張により円RCRCL1となり、点PNT4と円RCRCL1間の半径距離は実寸スケールで指定スケールに相当する2cmとなる。この変形に伴ってストロークDS6はストロークRDS6に変形されるとともに、そのストロークDS6の変形に伴って文字パターンCHR8は表示位置を移動させられる。
【0098】
第5の変形例も同様に、図21(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図21(b)に示したようにOKアイコン96は反転表示され、実寸スケール(直径)が指定スケール(直径)よりも小さい場合には図21(c)に示したように点PNT5を円の中心とする補正半径Δr2(=Δr3)分の拡大(変形)を行って第2図形である円CRCL2を拡張させる処理が実行される。その結果、円CRCL2は拡張により円RCRCL2となり、点PNT4と円RCRCL1間の直径距離は実寸スケールで指定スケールに相当する3cmとなる。この変形に伴ってストロークDS7はストロークRDS7に変形されるとともに、そのストロークDS7の変形に伴って文字パターンCHR9は表示位置を移動させられる。
【0099】
次に、第6の変形例、第7の変形例としてそれぞれ円の面積、矩形の面積を変形する場合について説明する。この第6の変形例及び第7の変形例による画像処理装置は、前述の実施の形態と同様、図1に示した構成を具備しているので、各部の説明については省略し、動作説明上は同様の符号を用いる。
【0100】
前述の実施の形態と異なる点についてのみ説明する。図22、図23はそれぞれ本実施の形態における図形寸法設定手順の第6の変形例、第7の変形例を説明する図である。
この第6の変形例及び第7の変形例では、図22(a)及び図23(a)に示したように表示部9のアイコンエリアにそれぞれ独立した円アイコン98、矩形アイコン100が追加され、一方、共通の面積アイコン99が追加されている。図22(a)には、点アイコン91のペン入力によって図形入力処理(図14参照)された第1図形である点PNT6及び円アイコン98のペン入力によって図形入力処理(図14参照)された第2図形である円CRCL3がそれぞれ表示されている。この円CRCL3内には、面積アイコン99に対するペン入力に伴う変形情報入力処理(図15参照)により面積を示す文字パターンCHR12が設定されている。この第6の変形例と同様に、第7の変形例では、図23(a)には、点PNT7及び矩形PLY1が図形入力(図14参照)により表示され、この矩形PLY1内には、面積アイコン99に対するペン入力に伴う変形情報入力処理(図15参照)により面積を示す文字パターンCHR13が設定されている。
【0101】
まず、第6の変形例では、図22(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図22(b)に示したようにOKアイコン96は反転表示され、実寸スケール(面積)が指定スケール(面積)よりも小さい場合には図22(c)に示したように点PNT6を起点とした補正半径が算出されその半径を基にして第2図形である円CRCL3を拡張させる処理が実行される。その結果、円CRCL3は拡張により円RCRCL3となる。この変形に伴って文字パターンCHR12は表示位置を移動させられる。同様に、第7の変形例では、図23(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図23(b)に示したようにOKアイコン96は反転表示され、実寸スケール(面積)が指定スケール(面積)よりも小さい場合には図23(c)に示したように点PNT7を起点とした補正面積が算出され第2図形である矩形PLY1を拡張させる処理が実行される。その結果、矩形PLY1は拡張により矩形RPLY1となる。この変形に伴って文字パターンCHR13は表示位置を移動させられる。
【0102】
次に、第8の変形例として線分の傾きを変形する場合について説明する。この第8の変形例による画像処理装置は、前述の実施の形態と同様、図1に示した構成を具備しているので、各部の説明については省略し、動作説明上は同様の符号を用いる。
【0103】
前述の実施の形態と異なる点についてのみ説明する。図24は本実施の形態における図形寸法設定手順の第8の変形例を説明する図である。
この第8の変形例では、図24(a)に示したように表示部9のアイコンエリアに独立した角度アイコン101が追加される。図24(a)には、線分アイコン92のペン入力によって図形入力処理(図14参照)された第1図形である線分LN10が表示されている。この線分LN10には、角度アイコン101に対するペン入力に伴う変形情報入力処理(図15参照)によりストロークANG3及び文字パターンCHR14が設定されている。この文字パターンCHR14によって示される角度は、始点ST5から水平方向に基線BS(図24(c)参照)を設けてその基線BSと線分LN10とのなす角を指定する指定スケールである。
【0104】
この図24(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図24(b)に示したようにOKアイコン96は反転表示され、実寸スケール(角度)が指定スケール(角度)よりも小さかった場合には図24(c)に示したように補正角Δθ3分の拡大(変形)を行う必要があり、第1図形である線分LN10を始点ST5を軸に回転移動させる処理が実行される。その結果、線分LN10の終点ED5は移動により終点RED5となり、ストロークANG3はストロークRANG3に変形されるとともに、そのストロークANG3の変形に伴って文字パターンCHR14は表示位置を移動させられる。
【0105】
次に、第9の変形例として複数の線分のなす角を変形する場合について説明する。この第9の変形例による画像処理装置は、前述の第8の変形例と同様、図1に示した構成を具備しているので、各部の説明については省略し、動作説明上は同様の符号を用いる。
【0106】
前述の第8の変形例と異なる点についてのみ説明する。図25は本実施の形態における図形寸法設定手順の第9の変形例を説明する図である。
図25(a)には、線分アイコン92のペン入力によって図形入力処理(図14参照)された第1図形である線分LN11と第2図形であるLN12がそれぞれ表示されている。この線分LN11及びLN12には、角度アイコン101に対するペン入力に伴う変形情報入力処理(図15参照)によりストロークANG4及び文字パターンCHR15が設定されている。この文字パターンCHR15によって示される角度は、ストロークANG4によって結ばれる線分LN11と線分LN12とのなす角(指定スケール)であり、線分LN11と線分LN12の各始点ST6とST7とをそれぞれ延長させ、交差する点CLS(図25(c)参照)を軸として得られるものである。
【0107】
この図25(a)の表示状態で、OKアイコン96に対してペン入力があると図形変形処理(図16参照)が開始され、図25(b)に示したようにOKアイコン96は反転表示され、実寸スケール(角度)が指定スケール(角度)よりも小さかった場合には図25(c)に示したように補正角Δθ4分の拡大(変形)を行う必要があり、第2図形である線分LN12をCLSを軸に回転移動させる処理が実行される。その結果、線分LN12の終点ED7は移動により終点RED7となり、ストロークANG4はストロークRANG4に変形されるとともに、そのストロークANG4の変形に伴って文字パターンCHR15は表示位置を移動させられる。
【0108】
【発明の効果】
以上説明したように請求項1記載の発明によれば、表示中の図形に対して手書きで変形対象の図形データ部分を指定して、所望のスケールを入力するだけでその図形を変形して表示するようにしたので、簡単な操作によって表示中の図形を所望のスケールに変形表示することが可能な画像処理装置を得られるという効果を奏する。
【図面の簡単な説明】
【図1】本発明に係る画像処理装置の一実施の形態を示すブロック図である。
【図2】本実施の形態における図形寸法設定手順の一例(a),(b),(c)を説明する図である。
【図3】本実施の形態における図形寸法設定手順の一例(a),(b),(c)を説明する図である。
【図4】本実施の形態における図形寸法設定手順の一例(a),(b)を説明する図である。
【図5】本実施の形態において図2、図3、図4に対応させた図形情報メモリの記憶内容を示す図である。
【図6】本実施の形態における図形寸法設定手順の一例(a),(b)を説明する図である。
【図7】本実施の形態にいて図6に対応させた図形情報メモリの記憶内容を示す図である。
【図8】本実施の形態における図形寸法設定手順の他の例(a),(b),(c)を説明する図である。
【図9】本実施の形態における図形寸法設定手順の他の例(a),(b),(c)を説明する図である。
【図10】本実施の形態において図8及び図9に対応させた図形情報メモリの記憶内容を示す図である。
【図11】本実施の形態における図形寸法設定手順の他の例(a),(b)を説明する図である。
【図12】本実施の形態において図11に対応させた図形情報メモリの記憶内容を示す図である。
【図13】本実施の形態における図形寸法設定手順を説明するフローチャートである。
【図14】図13に示した図形入力処理の詳細を説明するフローチャートである。
【図15】図13に示した変形情報入力処理の詳細を説明するフローチャートである。
【図16】図13に示した図形変形処理の詳細を説明するフローチャートである。
【図17】本実施の形態における図形寸法設定手順の第1の変形例(a),(b),(c)を説明する図である。
【図18】本実施の形態における図形寸法設定手順の第2の変形例(a),(b),(c)を説明する図である。
【図19】本実施の形態における図形寸法設定手順の第3の変形例(a),(b),(c)を説明する図である。
【図20】本実施の形態における図形寸法設定手順の第4の変形例(a),(b),(c)を説明する図である。
【図21】本実施の形態における図形寸法設定手順の第5の変形例(a),(b),(c)を説明する図である。
【図22】本実施の形態における図形寸法設定手順の第6の変形例(a),(b),(c)を説明する図である。
【図23】本実施の形態における図形寸法設定手順の第7の変形例(a),(b),(c)を説明する図である。
【図24】本実施の形態における図形寸法設定手順の第8の変形例(a),(b),(c)を説明する図である。
【図25】本実施の形態における図形寸法設定手順の第9の変形例(a),(b),(c)を説明する図である。
【符号の説明】
1 画像処理装置
2 CPU
3 ROM
4 RAM
5 タッチパネル
6 指定位置認識部
7 文字認識部
8 表示駆動回路
9 表示部
41 図形情報メモリ
42 表示メモリ
43 ワークメモリ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus that transforms the length of a line segment and the angle of two sides of a displayed figure into a desired scale.
[0002]
[Prior art]
Conventionally, in this type of image processing apparatus, for a graphic drawn on a display screen, the length and angle of the graphic are displayed as the current scale, and then the graphic scale is deformed based on the current scale. There is a first method or a second method in which a scale of a figure is deformed so as to be the desired scale input by the key after inputting a desired scale from the keyboard.
[0003]
[Problems to be solved by the invention]
However, since the image processing apparatus according to the conventional example described above transforms the drawn figure from the displayed current scale to a desired scale in the first method described above, the relationship between the figure and the current scale is determined. It becomes difficult to understand, and the operation is troublesome. On the other hand, in the second method described above, a desired scale is input by key operation for the drawn figure. Since the operation is not continuous due to a deformation error, the key operation becomes troublesome and the usability is poor.
[0004]
An object of the present invention is to provide an image processing apparatus capable of transforming a figure being displayed to a desired scale by a simple operation in order to solve the problems caused by the above-described conventional example.
[0005]
[Means for Solving the Problems]
An image processing apparatus according to claim 1 is an input means for hand-drawing graphic data including line figures, a display means for displaying a figure based on the figure data handwritten by the input means, Deformation information input means for inputting deformation information by hand to the graphic displayed by the display means; Recognizing means for recognizing deformation information input by handwriting by the deformation information input means; If it is recognized that the The part of the figure connected by the handwritten input curve Graphic data part to be transformed As A deformation target specifying means for specifying, and when the recognizing means recognizes the deformation information as a number, a designated scale setting means for setting the recognized number as a designated scale; The graphic data portion to be deformed is specified by the deformation information recognized as not a number by the deformation target specifying means, and the recognized number is specified by the deformation information recognized as a number by the designated scale setting means. When set as a scale, The graphic data portion to be deformed is further provided with deformation display means for deforming and displaying the specified scale size set by the designated scale setting means.
[0006]
According to the above configuration, the input means By Graphic data including a line graphic or the like is input by handwriting, the display means displays a graphic based on the graphic data input by handwriting by the input means, and deformation information is displayed on the graphic displayed by the display means by the deformation information input means. When the handwriting input is performed, the recognizing unit recognizes the deformation information input by handwriting by the deformation information input unit, and the deformation target specifying unit determines that the deformation information is not a number. , The deformation information The part of the figure connected by the handwritten input curve Graphic data part to be transformed As The specified scale setting means sets the recognized number as the specified scale when the deformation information is a number, When the graphic data part to be deformed is specified by the deformation information recognized as not a number, and when the recognized number is set as the designated scale by the deformation information recognized as a number, The specified graphic data portion to be deformed is deformed and displayed at the specified scale size.
[0007]
Therefore, it is handwritten to the figure being displayed. Specify the graphic data part to be deformed, and the desired scale Since the figure is deformed and displayed simply by inputting, the displayed figure can be transformed and displayed on a desired scale by a simple operation.
[0026]
DETAILED DESCRIPTION OF THE INVENTION
Exemplary embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
FIG. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention. In FIG. 1, reference numeral 1 denotes the image processing apparatus.
The image processing apparatus 1 illustrated in FIG. 1 includes, for example, a CPU 2, a ROM 3, a RAM 4, a touch panel 5, a designated position recognition unit 6, a character recognition unit 7, a display drive circuit 8, and a display unit 9. In this embodiment, the input pen 10 is employed as a pointing device for specifying a position in the coordinate position detection unit 5 described later.
[0027]
The CPU 2 is a central processing unit that controls the entire control device 1 in accordance with a control program stored in the ROM 3. The CPU 2 is coupled to the ROM 3, RAM 4, designated position detection unit 6, character recognition unit 7, and display drive circuit 8. The CPU 2 executes control programs, reads / writes data, and recognizes designated positions and characters by pen input (graphics). Including the dimension setting process) and controlling operations such as display driving. For example, the graphic dimension setting process is executed by a control program according to the flowcharts shown in FIGS.
[0028]
The ROM 3 is a memory for storing various control programs for operating the CPU 2 and data such as parameters necessary for the various programs. For example, the ROM 3 stores programs according to the flowcharts shown in FIGS.
[0029]
The RAM 4 includes memories such as a graphic information memory 41, a display memory 42, and a work memory 43. The graphic information memory 41 is a memory for storing graphic information (first graphic information, second graphic information) before and after deformation of dimensions as shown in FIGS. 5, 7, 10, and 12 described later. The first graphic information includes a type indicating the line type of the graphic (straight line, two sides, etc.), a designated scale (line length, two side angles, etc.), a mode (actual size transformation to the designated scale, two figures Relative deformation between), pre-deformation information (point position, straight line start and end points, two side start points, middle point and end point, actual size (line length, two side angles, etc.)), post-deformation information ( Point position, straight line start point and end point, two side start point, middle point and end point). Note that the second graphic information is also required for the relative deformation, and the second graphic information includes a designation method, pre-deformation information, and post-deformation information as in the FIG. 1 shape method.
[0030]
The display memory 42 is a memory that supplies image data (dot data) to the display unit 2 by expanding dots of image data such as a figure drawn by operating the input pen 10, a figure whose dimensions have been changed, a menu, and an icon. . The work memory 43 is a memory used as a work area when the CPU 2 operates according to various control programs.
[0031]
The touch panel 5 has a configuration in which the display unit 9 is laminated on the upper surface and the coordinate position of the display unit 9 is substantially matched. For example, the touch position is specified by touching the input pen 10 using a pressure-sensitive method. This is supplied to the position recognition unit 6 and the character recognition unit 7. The designated position recognition unit 6 recognizes the designated position (coordinate position) from the touch position supplied from the touch panel 5 and supplies coordinate position data to the CPU 2. The character recognition unit 7 detects the stroke of the input pen 10 from the touch position supplied from the touch panel 5, performs character recognition, and supplies the recognition result to the CPU 2.
[0032]
The display drive circuit 8 is a circuit that drives the display unit 9 under the control of the CPU 2, and the display unit 9 is an output device that forms a display image based on the display data stored in the display memory 42 according to the control of the display drive circuit 8. is there.
[0033]
Next, the operation will be described. 2, FIG. 3 and FIG. 4, FIG. 6, FIG. 8 and FIG. 9, and FIG. 11 and FIG. 12 are diagrams for explaining the graphic dimension setting procedure in the present embodiment, respectively. FIGS. 10 and 12 are diagrams showing the contents stored in the graphic information memory 41 corresponding to the graphic dimension setting method. 13 to 16 are flowcharts for explaining the graphic dimension setting method in the present embodiment. The operations according to the flowcharts shown in FIGS. 13 to 16 are executed according to the control of the CPU 2, but each operation is performed by each unit.
[0034]
First, when this process is started, an initial screen is set in step S1 as shown in FIG. That is, in FIG. 2A, on the display screen of the display unit 9, an icon area 9a is displayed on the upper left, and a graphic creation area 9b is displayed on the other areas. In the icon area 9a, a point icon 91, a line segment icon 92, and a two-sided icon 93 are set in order from the left in the upper stage, and a line segment distance icon 94, an angle icon 94, and an OK icon 96 are set in order from the left in the next stage.
[0035]
The point icon 91 sets a mode for creating a point graphic, the line icon 92 sets a mode for creating a line graphic at a specified position, and the two-side icon 93 has 2 A mode for creating a side figure is set. The line segment distance icon 94 sets a mode for inputting the distance between both ends of the created line segment graphic, and the angle icon 94 inputs the angle of the vertex angle of the created two-side graphic. The OK icon 96 is for setting a mode for deforming a created figure based on the inputted distance and angle.
[0036]
As described above, when the initial screen setting is completed in step S1, pen input by the input pen 10 is sensed from the icon area 9a in step S2. In this step S2, when a pen input is detected from the icon area 9a, in the subsequent steps S3, S4, and S5, it is determined whether the detected position is a graphic input, a deformation information input, or a graphic deformation. The If it is determined in step S3 that a graphic input is obtained from the detected position, the process proceeds to step S6, and a graphic input process according to the flowchart shown in FIG. 14 is executed. If a determination result indicating that the input is deformation information is obtained, the process proceeds to step S7, and the deformation information input process according to the flowchart shown in FIG. 15 is executed. If the determination result is that the figure is deformed, the process proceeds to step S8, and the figure deforming process according to the flowchart shown in FIG. 16 is executed.
[0037]
Here, the description will be continued with reference to specific examples. For example, as shown in FIG. 2B, if there is a pen touch input to the line segment icon 92 in the icon area 9a by operating the input pen 10, it is not a pen input to the point icon 91 in step S601 in the flow of FIG. Therefore, the pen input position is determined to be the line segment icon 92 in step S605.
[0038]
Thereafter, the process proceeds to step S606. In step S606, the line segment icon 92 input by the pen is displayed in reverse video (indicated by hatching in FIG. 2B), and the first information in the graphic information memory 41 is displayed as shown in FIG. In the graphic information, data indicating “line segment” is stored as the type data. In the subsequent step S607, the pen input of the line segment graphic is sensed, and the pen input specifies the start point (start point) and the end point. 2C, when the start point ST1 and the end point ED1 are designated (pen input) in the graphic creation area 9b by the input pen 10 (step S607), the start point input by the pen is performed. The designated positions of ST1 and end point ED1 are stored in the graphic information memory 41 as the first coordinate data (XA, YA) and the second coordinate data (XB, YB) (step S608). Segment indicated by LN1 connecting the two points ST1, ED1 a straight line is drawn processed on Geometry area 9b based on the coordinate position (step S610).
[0039]
In the mode according to the line segment icon 92, if there are two position designations of the start point ST1 and the end point ED1, the line segment drawing is entered. Therefore, when the position designation of the two points is confirmed in step S609, the process is started. The process proceeds to line segment drawing in step S610.
[0040]
Thus, when the graphic display is completed, the process returns to the flow shown in FIG. 13. If the end of the process is not detected in step S9, icon input is sensed again in step S2. When the point icon 91 is a pen input target (step S601), in the same manner as the process related to the line segment icon 92 described above, in step S602, S603, and S604, the point icon 91 is highlighted and its type data is displayed. The storage of “point”, the storage of the specified position (point position), and the display formation of the point graphic are executed. In this case, only the position of one point is specified, and therefore the processing after step S604 is the flow of FIG. Return to.
[0041]
In the display state of FIG. 2C described above, if there is a pen input to the line segment distance icon 94 as shown in FIG. 3A, this is determined as a deformation information input in the flow of FIG. The processing moves to step S701 in FIG. In step S701, a determination is made as to which of the line segment distance icon 94 and the angle icon 95 has been pen-input. In this case, it is determined in step S701 that the pen input position is the line segment distance icon 94.
[0042]
Thereafter, the process proceeds to step S702. In step S702, a process of highlighting the line segment distance icon 94 input by the pen (indicated by hatching in the drawing) is executed. In the subsequent step S703, pen input to the line segment figure is sensed. The pen input is a stroke input for drawing a curve by sliding the input pen 10 so as to connect the start point (start point) and the end point, and a character (distance is set). Number shown) Stroke input. Therefore, when a stroke DS1 connecting the start point ST1 and the end point ED1 is input to the figure creation area 9b by the input pen 10, the stroke DS1 is displayed as shown in FIG. 3B (steps S703 and S704). In the subsequent step S705, character recognition (numeral recognition) is performed based on the coordinate data of the stroke DS1, and a determination result that the stroke DS1 cannot be recognized and is not a number is obtained. Therefore, the process returns to step S703. Return. By the input of the stroke DS1, the deformation information input process indicates that the deformation information is input for the line segment LN1.
[0043]
Similarly, in this step S703, pen input is sensed, and when the numeral (character) “5” is input as a stroke, the stroke is once displayed in step S704. In the subsequent step S705, the displayed stroke is a numeral. The character is recognized as “5”. Thereafter, the character generator previously stored in the ROM 3 develops the font pattern of the number “5” in the display memory 42 and displays the number pattern CHR1 “5” as shown in FIG. In this case, it is determined in step S706 that the number has been recognized, and in step S707, the number-recognized “5” is stored in the graphic information memory 41 as the designated scale “5 cm”.
[0044]
In step S708, as shown in FIG. 3C, since the figure is only one of the line segments LN1, the process is performed so that the deformation information input process is temporarily ended when the designated scale is stored in step S707. Executed. Thereafter, the process returns to the flow shown in FIG. 13 and is resumed from step S9 described above.
[0045]
Next, in the display state of FIG. 3C described above, if there is a pen input to the OK icon 96 as shown in FIG. 4A, this is determined as a graphic deformation input in the flow of FIG. The process proceeds to step S801 in FIG. In step S801, as shown in FIG. 4A, a process of inverting and displaying the OK icon 96 is executed.
[0046]
In the subsequent step S802, the number of pieces of graphic information having designated scale data is checked from the graphic information provided with an area in the graphic information memory 41, and the number is used as the number of figures to determine whether it is singular or plural. Is executed. In the graphic information memory 41 shown in FIG. 5, the designated scale data is stored only in the area of the first graphic information, and a determination result of singular is obtained in step S802. Therefore, the process proceeds to step S803, and the actual size deformation is performed. Start the mode. At that time, the graphic information memory 41 stores an actual size deformation mode as a mode in the area of the first graphic information. In the case of a plurality of processes, the process proceeds to step S805 to start the relative deformation mode.
[0047]
When the figure is single, that is, in the actual size deformation mode, the first coordinate data (XA, YA) of the starting point ST1 before the deformation is used as the starting point (starting point ST1) after the deformation, so in step S803, the line is started from the starting point ST1. The first coordinate data (XA, YA) of the start point ST1, the second coordinate data (XB, YB) of the end point ED1, and the specified scale data “5 cm” are obtained so that the end point RED1 after the change in the vector direction of the minute LN1 can be obtained. The end point RED1 is calculated based on the above. For example, when the actual scale is 7 cm, the designated scale is 5 cm with respect to the line segment LN1, and therefore the end point ED1 before the change is directed toward the start point ST1 as shown in FIG. 4B. Reduction (deformation) corresponding to the correction distance “2 cm” indicated by Δd1 is given to become a deformation line segment RLN1. The corrected end point is RED1, and the coordinate data is stored as the second coordinate data (XC, YC) in the changed information in the graphic information memory 41. Since the first coordinate data is a starting point, it is unchanged before and after the change.
[0048]
Further, at the time of this graphic reduction (deformation) display, as shown in FIG. 4B, the stroke DS1 is reduced (deformation) with the movement of the end point ED1 to become a deformation stroke RDS1, and the stroke DS1 Along with the deformation, the display position of the character pattern CHR1 is moved.
[0049]
Now, after the graphic input process for the line segment LN1, the graphic input process for the line segment LN2 shown in FIG. 6A is performed, and the procedure for performing the deformation information input process for each line segment LN1, LN2 is also described. To do.
[0050]
In the graphic input process, as in the case of the line segment LN1, data related to the line segment LN2 is stored in the graphic information memory 41 as the second graphic information. That is, in the pre-deformation information of the line segment LN2, the coordinate data of the start point ST2 is stored as the first coordinate data (XD, YD), and the coordinate data of the end point ED2 is stored as the second coordinate data (XE, YE). Further, in the deformation information input process, as shown in FIG. 6A, the stroke DS2 and the character pattern CHR2 “3 cm” as the designated scale are displayed and formed in the graphic creation area 9b according to the pen input. In the deformation information input process for only the line segment LN1 described above, the recognition result “5” is stored in the graphic information memory 41 as the designated scale data “5 cm” in step S707, and then it is immediately determined to end in step S708. However, in the example of FIG. 6A accompanied by the line segment LN2, until the designated scale data is stored for each of the line segments LN1 and LN2, the process is not terminated except for the forced termination, and the process is repeatedly executed from step S703 again. Is done.
[0051]
Thereafter, when the position of the OK icon 96 is designated by the input pen 10, the process proceeds to the graphic transformation process shown in FIG. 16 as described above, and first, in step S801, as shown in FIG. A process of highlighting the icon 96 is executed.
[0052]
In the subsequent step S802, as is apparent from the graphic information memory 41 shown in FIG. 7, the designated scale data is stored in each of the first and second graphic information, and it is confirmed that there are a plurality of figures. Since this is possible, the process proceeds to step S805. That is, the relative deformation mode is executed by the processing after step S805.
[0053]
In this relative deformation mode, first, in step S805, the actual scale of the first graphic serving as the reference graphic is calculated and stored based on the pre-deformation information (graphic information memory 41). When three line segment figures are input and no deformation information is input to the first reference figure, the second figure is substituted as the reference figure and its actual scale is calculated.
[0054]
In the actual scale calculation method, the pre-deformation information of the first graphic information (first coordinate data (XA, YA), second coordinate data (XB, YB)) for the line segment LN1 that is the first graphic. The distance between the start point ST1 and the end point ED1 is calculated, and the distance is stored in the actual scale area as the actual scale data (for example, “7 cm”) as shown in FIG. When there are three or more graphic inputs and no specified scale (deformation information) is input for the first graphic, the pre-deformation information (first coordinate) of the n-th graphic information for the n-th graphic with a smaller number The distance between the start point STn and the end point EDn is calculated from the data (second coordinate data), and the distance is stored in the actual scale area as the actual scale data.
[0055]
Next, in step S806, the reference graphic in this relative deformation is defined as the first graphic, that is, the line segment LN1, and the size of the line segment LN2, which is the second graphic (other graphic), is set to the size of the line segment LN1. The comparison is made and the ratio is calculated. In this comparison, since the same type is used as a condition, if there is another figure that is different from the type of the first figure, the other figure is not a comparison target. Will hold.
[0056]
Specifically, by dividing the designated scale “5 cm” of the line segment LN1 as the reference figure as the denominator and the designated scale “3 cm” of the line segment LN2 as another figure as the numerator, the ratio as a result of the division is 3/5 = 0.6.
[0057]
In subsequent step S807, in order to apply the ratio “0.6” obtained in step S806 to the deformation of the line segment LN2 of the second graphic, the ratio “0...” Is added to the actual scale “7 cm” of the line segment LN1 as the reference graphic. 6 "is multiplied to obtain the actual scale data" 4.2 cm ". Based on the actual scale data “4.2 cm” of the line segment LN2 and the pre-deformation information (first coordinate (XD, YD), second coordinate (XE, YE)), the coordinate position of the end point ED2 of the line segment LN2 Is moved in the vector direction of the line segment LN2, the second coordinate data (XF, YF) of the end point RED2 that is the coordinate position after the deformation is calculated. In this case, the end point RED2 after the deformation moves toward the start point ST2 from the end point ED2 before the deformation, and the line segment RLN2 after the deformation has its first coordinates as shown in FIG. 6B. Drawing is performed so as to connect the data (XD, YD) and the second coordinate data (XF, YF), and the data is reduced (deformed) toward the start point ST2 from the line segment LN2 before the deformation.
[0058]
For example, if the actual scale before deformation of the line segment LN2 is 5 cm, the correction distance indicated by Δd2 as the deformation amount is “0.8 cm”. The coordinate data of the corrected end point RED2 is stored as second coordinate data (XF, YF) in the post-change information in the graphic information memory 41, and the first coordinate data is unchanged before and after the change because it is the starting point.
[0059]
Further, when the graphic reduction (deformation) display is performed on the line segment LN2, the stroke DS2 is reduced (deformation) as the end point ED2 moves to become a deformation stroke RDS2 as shown in FIG. Along with the deformation of the stroke DS2, the display position of the character pattern CHR2 is moved.
[0060]
Now, as shown in FIG. 8A, when a pen input is made to the two-sided icon 93 in the icon area 9a by operating the input pen 10, the pen input position is set to 2 in step S605 in the flow of FIG. The side icon 93 is determined.
[0061]
Thereafter, the process proceeds to step S611. In this step S611, a process of highlighting the two-side icon 93 input by the pen (indicated by hatching in the figure) is executed, and the type of the first graphic information in the graphic information memory 41 is classified as shown in FIG. Data indicating “two sides” is stored as data. In the subsequent step S612, pen input of a two-sided figure is sensed, and the pen input specifies the start point (start point), the midpoint, and the end point. 8B, when the start point ST3, the middle point MD3, and the end point ED3 are designated (pen input) in the graphic creation area 9b by the input pen 10 (step S612). The designated positions of the start point ST3, the middle point MD3, and the end point ED3 input by the pen are stored in the graphic information memory 41 in the first coordinate data (XG, YG), the second coordinate data (XH, YH), and the third coordinate data. (XI, YI) are stored (step S613), and two sides indicated by LN3 and LN4 connecting the three points ST3, MD3, and ED3 with line segments based on the coordinate positions of the three points are on the graphic creation area 9b. (Step S615) In the mode according to the two-sided icon 93, if there are three position designations of the start point ST3, the middle point MD3, and the end point ED3, the line segment is drawn. When it is confirmed that the position of the point has been designated, the processing shifts to the two-side drawing in the next step S615.
[0062]
Thus, when the graphic display is completed, the process returns to the flow shown in FIG. 13. If the end of the process is not detected in step S9, icon input is sensed again in step S2.
[0063]
In the display state of FIG. 8B described above, if there is a pen input to the angle icon 95 as shown in FIG. 8C, this is determined as deformation information input in the flow of FIG. The process proceeds to step S701 in FIG. In step S701, a determination is made as to which of the line segment distance icon 94 and the angle icon 95 has been pen-input. In this case, it is determined in step S701 that the pen input position is the angle icon 95.
[0064]
Thereafter, the process proceeds to step S709. In step S709, a process of highlighting the line segment distance icon 95 input by the pen (indicated by hatching in the drawing) is executed. In the subsequent step S710, pen input for a two-sided figure is sensed, and the pen input is a stroke input for drawing a curve by sliding the input pen 10 so as to connect the line segment LN3 and the line segment LN4 near the midpoint MD3. , And character (number indicating the angle) stroke input. Therefore, when a stroke ANG1 connecting the line segment LN3 and the line segment LN4 is input by the input pen 10 to the graphic creation area 9b, the stroke ANG1 is displayed as shown in FIG. 9A (steps S710 and S711). ). In subsequent step S712, character recognition (numeral recognition) is performed based on the coordinate data of the stroke ANG1, and the determination result that the stroke ANG1 cannot be recognized and is not a number is obtained. Therefore, the process returns to step S710. Return. By the input of the stroke ANG1, the deformation information input process indicates that deformation information is input for two sides (line segment LN3 and line segment LN4).
[0065]
Similarly, in this step S710, when a pen input is sensed, and the number (character) “45” is input as a stroke, the stroke is once displayed in step S711. In the subsequent step S712, the displayed stroke is a number. The character is recognized as “45”. Thereafter, the character pattern stored in the ROM 3 in advance develops the font pattern of the number “45” in the display memory 42 and displays the number pattern CHR3 “45” as shown in FIG. In this case, it is determined in step S713 that the number has been recognized, and in step S714, the number-recognized “45” is stored in the graphic information memory 41 as the designated scale “45 °”.
[0066]
In step S715, as shown in FIG. 9A, since the figure is only one figure having two sides consisting of the line segments LN3 and LN4, the deformation information input process is temporarily performed when the designated scale is stored in step S714. Processing is executed to finish. Thereafter, the process returns to the flow shown in FIG. 13 and is resumed from step S9 described above.
[0067]
Next, in the display state of FIG. 9A described above, if there is a pen input to the OK icon 96 as shown in FIG. 9B, this is determined as a graphic deformation input in the flow of FIG. The process proceeds to step S801 in FIG. In step S801, as shown in FIG. 9B, a process of inverting and displaying the OK icon 96 is executed.
[0068]
In the subsequent step S802, the number of pieces of graphic information having designated scale data is checked from the graphic information provided with an area in the graphic information memory 41, and the number is used as the number of figures to determine whether it is singular or plural. Is executed. In the graphic information memory 41 shown in FIG. 10, the designated scale data is stored only in the area of the first graphic information, and a determination result of singular is obtained in step S802. Therefore, the process proceeds to step S803 and the actual size deformation is performed. Start the mode. At that time, the graphic information memory 41 stores the actual size deformation mode as the mode in the area of the first graphic information, as shown in FIG. In the case of a plurality of processes, the process proceeds to step S805 to start the relative deformation mode.
[0069]
When the figure is singular, that is, in the actual size deformation mode, the second coordinate data (XH, YH) of the middle point MD3 and the third coordinate data (XH, YH) of the end point ED3 are used in order to leave the line segment LN4 before the deformation as a baseline. XI, YI) is the same coordinate data after deformation. Therefore, in step S803, first, the length of the line segment LN3 is calculated, the length of the line segment LN3 is set as the radius, and the angle between the midpoint MD3 and the base line segment LN4 is set as the designated scale. The starting point RST3 after deformation of the starting point ST3 when the angle is 45 ° is calculated and obtained. For example, when the actual scale is 60 °, the designated scale is 45 °. Therefore, as shown in FIG. 9C, the angle formed by the line segment LN3 and the line segment LN4 before the change is Δθ1. The correction angle “15 °” shown in FIG. As a result, the figure to be deformed is only the line segment LN3, and the deformed line is defined as a deformed line segment RLN3. That is, the corrected start point is RST3, and the coordinate data is stored as first coordinate data (XJ, YJ) in the changed information in the graphic information memory 41. Note that the second coordinate data and the third coordinate data form a line segment LN4 that is a base line, and are therefore unchanged before and after the change.
[0070]
Further, at the time of this deformation display, as shown in FIG. 9C, the stroke ANG1 is reduced (deformed) with the movement of the start point ST3 to become a deformation stroke RANG1, and along with the deformation of the stroke ANG1. The display position of the character pattern CHR3 is moved.
[0071]
Now, after the graphic input processing of the two-sided graphic consisting of the line segments LN3 and LN4 described above, the graphic input processing of the two-sided graphic consisting of the line segments LN5 and LN6 shown in FIG. A procedure for performing deformation information input processing on a side figure will also be described.
[0072]
In the graphic input process, as in the case of the two-sided graphic (first graphic) consisting of the line segments LN1 and LN2, the data relating to the two-sided graphic (second graphic) consisting of the line segments LN5 and LN6 is used as the second graphic information. It is stored in the graphic information memory 41. That is, in the pre-deformation information of the two-side graphic that is the second graphic, the coordinate data of the start point ST4 is stored as the first coordinate data (XK, YK), and the coordinate data of the midpoint MD4 is the second coordinate data (XL, YL). ) And the coordinate data of the end point ED4 is stored as the third coordinate data (XM, YM). Further, in the deformation information input process, as shown in FIG. 11A, the stroke ANG2 and the character pattern CHR4 “30 °” as the designated scale are displayed and formed in the graphic creation area 9b in accordance with the pen input. . In the deformation information input process for only the first graphic described above, the recognition result “45” is stored as the designated scale data “45 °” in the graphic information memory 41 in step S707, and then it is determined that the process ends immediately in step S708. However, in the example of FIG. 11 (a) with the second graphic, until the designated scale data is stored for each of the first and second graphics, the process is not terminated except for the forced termination, and the process starts again from step S710. It is executed repeatedly.
[0073]
Thereafter, when the position of the OK icon 96 is designated by the input pen 10, the processing shifts to the graphic deformation processing shown in FIG. 16 as described above. First, in step S801, as shown in FIG. A process of highlighting the icon 96 is executed.
[0074]
In the subsequent step S802, as is apparent from the graphic information memory 41 shown in FIG. 12, the designated scale data is stored in each of the first and second graphic information, and it is confirmed that there are a plurality of figures. Since this is possible, the process proceeds to step S805. That is, the relative deformation mode is executed by the processing after step S805.
[0075]
In this relative deformation mode, first, in step S805, the actual size scale (angle) of the first graphic serving as the reference graphic is calculated and stored based on the pre-deformation information (graphic information memory 41). If three two-sided figures are input and no deformation information is input to the first reference figure, the second figure is substituted as the reference figure and its actual scale (angle) is calculated. . In addition, about the calculation method of this exact scale, it can obtain | require by a well-known technique by using the 1st coordinate, 2nd coordinate, and 3rd coordinate which are the information before a deformation | transformation. As a result, the angle is stored in the actual scale area as actual scale data (for example, “60 °”) as shown in FIG. When there are three or more graphic inputs and no specified scale (deformation information) is input for the first graphic, the pre-deformation information (first coordinate) of the n-th graphic information for the n-th graphic with a smaller number The angle formed by the two sides is calculated from the data, the second coordinate data, and the third coordinate data), and the angle is stored in the actual scale area as the actual scale data.
[0076]
Next, in step S806, the reference graphic in this relative deformation is set as the first graphic (consisting of line segments LN3 and LN4), and the second graphic (line segment LN5) is formed with respect to the angle formed by the two sides of the first graphic. And the angle formed by the two sides of LN6 are compared, and the ratio is calculated. In this comparison, since the same type is used as a condition, if there is another figure that is different from the type of the first figure, the other figure is not a comparison target. Will hold.
[0077]
Specifically, the division result is obtained by performing division with the designated scale “45 °” of the first figure as the reference figure as the denominator and the designated scale “30 °” of the second figure as another figure as the numerator. The ratio is 30/45 = 2/3.
[0078]
In subsequent step S807, in order to apply the ratio “2/3” obtained in step S806 to the deformation of the second graphic, the ratio “2/3” is added to the actual scale “60 °” of the first graphic as the reference graphic. The actual scale data “40 °” is obtained by multiplication. Based on the actual scale data “40 °” of the second graphic and the pre-deformation information (first coordinate (XK, YK), second coordinate (XL, YL), third coordinate (XM, YM)) The coordinate position of the start point ST4 of the minute LN5 is the first coordinate data of the start point RST4 that becomes the coordinate position after deformation so that the line segment LN5 is 40 ° apart from the midpoint MD4 as the axis and the line segment LN6 as the base line ( XN, YN) is calculated. A line segment RLN5 is drawn and deformed so as to connect the starting point RST4 after the deformation, (first coordinate data (XN, YN)), and the invariant middle point MD4 (second coordinate position data (XL, YL)). The display is completed (step S808).
[0079]
For example, if the actual scale before deformation of the second graphic is 60 °, the correction angle indicated by Δθ2 as the deformation amount is “20 °”. The coordinate data of the corrected start point RST4 is stored as the first coordinate data (XN, YN) in the post-change information in the graphic information memory 41, and the second coordinate data and the third coordinate data are the base line segment LN6. Because it is formed, it will be unchanged before and after the change.
[0080]
Further, when the figure is reduced (deformed) with respect to the second figure, as shown in FIG. 11B, the stroke ANG2 is deformed as the start point ST4 is moved to become a deformed stroke RANG2, and the stroke ANG2 is displayed. The display position of the character pattern CHR4 is moved according to the deformation.
[0081]
As described above, according to the above-described embodiment, simply by inputting the deformation information and the type information of the figure by hand by operating the input pen 10 with respect to the figure being displayed on the display unit 9, the figure is classified into the type of the figure. Therefore, it is possible to display the figure being displayed in a desired size or scale in a desired engineering unit by a simple operation.
[0082]
In addition, by simply inputting deformation information and figure type information by handwriting with respect to a plurality of figures being displayed on the display unit 9, each figure can be changed based on one figure according to the figure type. Since it is displayed in a modified engineering unit, it is possible to compare the size and shape between figures by presenting the reference figure and other figures as relative deformation amounts according to the deformation information. It can be performed objectively, and the figure being displayed can be transformed and displayed in a desired size or scale by a simple operation.
[0083]
In addition, when the number of graphics displayed on the display unit 9 is singular, the transformation is performed based on the transformation information and the type information of the graphics. Since the display is transformed with the engineering unit based on the type of the figure, when checking the figure at the actual size, it is only necessary to handle the figure by one, while when comparing the relative size and shape between the figures It is sufficient to handle a plurality of figures, and in any case, the figure being displayed can be transformed and displayed in a desired size or scale by a simple operation.
[0084]
Further, a number is recognized from the deformation information input by handwriting by the operation of the input pen 10, and the length of the line segment, the distance between a plurality of figures, the angle of the figure is determined from the type information of the figure in which the number is input by handwriting. Because it recognizes the angle between multiple figures, the radius of a circle, the diameter of a circle, or the area of a figure, the figure being displayed by a simple operation of entering the number and type of figure Can be transformed to a desired size or scale.
[0085]
In the above-described embodiment, a line figure and a two-sided figure are taken as examples of deformation information input, and the length (distance) and angle are set as units of deformation amount. Information input target and unit settings are not limited to the above. For example, distance between multiple points, distance between points and line segments, slope of line segments, angles formed by multiple line segments, parallel line segments , The radius and diameter of the circle, and the area of a circle or rectangle, the details of which will be described below as first to ninth modifications.
[0086]
First, a case where the distance between a plurality of points is modified as a first modification will be described. Since the image processing apparatus according to the first modification has the configuration shown in FIG. 1 as in the above-described embodiment, the description of each part is omitted, and the same reference numerals are used in describing the operation. .
[0087]
Only differences from the above-described embodiment will be described. FIG. 17 is a diagram for explaining a first modification of the graphic dimension setting procedure in the present embodiment.
In this first modification, an independent distance icon 97 is added to the icon area of the display unit 9 as shown in FIG. In FIG. 17A, a point PNT1 that is a first graphic and a point PNT2 that is a second graphic that have been subjected to graphic input processing (see FIG. 14) by pen input of the point icon 91 are displayed. A stroke DS3 and a character pattern CHR5 are set at the two points PNT1 and PNT2 by a deformation information input process (see FIG. 15) accompanying a pen input to the distance icon 97.
[0088]
In the display state of FIG. 17A, when there is a pen input to the OK icon 96, graphic deformation processing (see FIG. 16) is started, and the OK icon 96 is highlighted as shown in FIG. 17B. When the actual scale is shorter than the designated scale, that is, when there is no distance, the point PNT2, which is the second graphic, is moved by enlarging (deforming) the correction distance Δd3 as shown in FIG. Processing is executed. As a result, the point PNT2 becomes the point RPNT2 due to the movement, and the distance between the two points PNT1 and RPNT2 becomes 3 cm corresponding to the designated scale on the actual scale. Along with this deformation, the stroke DS3 is deformed to the stroke RDS3, and the character pattern CHR5 is moved in the display position according to the deformation of the stroke DS3.
[0089]
Next, a case where the distance between a point and a line segment is deformed will be described as a second modification. Since the image processing apparatus according to the second modified example has the configuration shown in FIG. 1 as in the first modified example, the description of each part is omitted, and the same reference numerals are used for the explanation of the operation. Is used.
[0090]
Only differences from the first modification will be described. FIG. 18 is a diagram for explaining a second modification of the graphic dimension setting procedure in the present embodiment.
In FIG. 18A, a graphic input process (see FIG. 14) is performed by the pen input of the line segment LN7 of the first graphic and the point icon 91 which has been subjected to the graphic input process (see FIG. 14) by the pen input of the line icon 92. A point PNT3, which is the second graphic, is displayed. In these two points PNT3 and line segment LN7, a stroke DS4 and a character pattern CHR6 are set by a deformation information input process (see FIG. 15) accompanying pen input to the distance icon 97.
[0091]
In the display state of FIG. 18A, when there is a pen input to the OK icon 96, graphic deformation processing (see FIG. 16) is started, and the OK icon 96 is highlighted as shown in FIG. 18B. When the actual scale is shorter than the designated scale, that is, when there is no distance, enlargement (deformation) of the correction distance Δd4 is performed as shown in FIG. Processing is executed. As a result, the point PNT3 becomes a point RPNT3 due to the movement, and the distance between the point RPNT3 and the line segment LN7 is 3 cm corresponding to the designated scale on the actual scale. Along with this deformation, the stroke DS4 is deformed to the stroke RDS4, and the character pattern CHR6 is moved in the display position according to the deformation of the stroke DS4.
[0092]
Next, a case where the distance between parallel line segments is modified as a third modification will be described. Since the image processing apparatus according to the third modified example has the configuration shown in FIG. 1 as in the first modified example, the description of each part is omitted, and the same reference numerals are used for describing the operation. Is used.
[0093]
Only differences from the first modification will be described. FIG. 19 is a diagram for explaining a third modification of the graphic dimension setting procedure in the present embodiment.
In FIG. 19A, a line segment LN8 of the first graphic and a line segment LN9 of the second graphic that have been subjected to graphic input processing (see FIG. 14) by pen input of the line segment icon 92 are displayed. In these two line segments LN8 and LN9, the stroke DS5 and the character pattern CHR7 are set by the deformation information input process (see FIG. 15) accompanying the pen input to the distance icon 97.
[0094]
In the display state of FIG. 19A, when there is a pen input to the OK icon 96, graphic deformation processing (see FIG. 16) is started, and the OK icon 96 is highlighted as shown in FIG. 19B. If the actual scale is shorter than the designated scale, that is, there is no distance, the line segment LN9, which is the second graphic, is moved by enlarging (deforming) the correction distance Δd5 as shown in FIG. Is executed. As a result, the line segment LN9 becomes a line segment RLN9 due to the movement, and the distance between the line segment LN8 and the line segment RLN9 is 3 cm corresponding to the designated scale on the actual scale. Along with this deformation, the stroke DS5 is deformed to the stroke RDS5, and the character pattern CHR7 is moved in the display position according to the deformation of the stroke DS5.
[0095]
Next, a case where the radius and diameter of a circle are deformed as a fourth modification and a fifth modification, respectively, will be described. Since the image processing apparatuses according to the fourth and fifth modifications have the configuration shown in FIG. 1 as in the first modification, the description of each part is omitted and the operation is omitted. Similar symbols are used in the description.
[0096]
Only differences from the first modification will be described. 20 and 21 are diagrams for explaining a fourth modification and a fifth modification of the graphic dimension setting procedure in the present embodiment, respectively.
In the fourth modification and the fifth modification, an independent circle icon 98 is added to the icon area of the display unit 9 as shown in FIGS. 20 (a) and 21 (a). In FIG. 20A, the graphic input processing (see FIG. 14) is performed by the pen input of the point PNT4 and the circle icon 98 which are the first graphic processed by the graphic input processing (see FIG. 14) by the pen input of the point icon 91. A circle CRCL1, which is the second graphic, is displayed. A stroke DS6 and a character pattern CHR8 are set in these two points PNT4 and circle CRCL1 by a deformation information input process (see FIG. 15) accompanying pen input to the distance icon 97. Similar to the fourth modified example, in the fifth modified example, when the stroke DS7 is set so as to connect two points on the circle CRCL2 beyond the point PNT5 in FIG. This is a diameter deformation process according to the modified example. In this case, the stroke DS7 and the character pattern CHR9 can be set by the deformation information input process (see FIG. 15) accompanying the pen input to the distance icon 97.
[0097]
First, when there is a pen input to the OK icon 96 in the display state of FIG. 20 (a), graphic deformation processing (see FIG. 16) is started, and the OK icon 96 is inverted as shown in FIG. When the actual scale (radius) is smaller than the specified scale (radius), the point PNT4 is enlarged (deformed) by the correction radius Δr1 with the point PNT4 as the center of the circle as shown in FIG. A process of expanding the circle CRCL1, which is the second graphic, is executed. As a result, the circle CRCL1 becomes a circle RCRCL1 by expansion, and the radial distance between the point PNT4 and the circle RCRCL1 becomes 2 cm corresponding to the designated scale on the actual scale. Accompanying this deformation, the stroke DS6 is deformed to the stroke RDS6, and the character pattern CHR8 is moved in the display position according to the deformation of the stroke DS6.
[0098]
Similarly, in the fifth modified example, when there is a pen input to the OK icon 96 in the display state of FIG. 21A, graphic deformation processing (see FIG. 16) is started, as shown in FIG. In this manner, the OK icon 96 is highlighted, and when the actual scale (diameter) is smaller than the designated scale (diameter), as shown in FIG. 21C, the correction radius Δr2 (= A process of expanding (deforming) Δr3) and expanding the circle CRCL2 as the second graphic is executed. As a result, the circle CRCL2 becomes a circle RCRCL2 by expansion, and the diameter distance between the point PNT4 and the circle RCRCL1 becomes 3 cm corresponding to the designated scale on the actual scale. Along with this deformation, the stroke DS7 is deformed to the stroke RDS7, and the display position of the character pattern CHR9 is moved along with the deformation of the stroke DS7.
[0099]
Next, a case where the area of a circle and the area of a rectangle are deformed as a sixth modification and a seventh modification, respectively, will be described. Since the image processing apparatuses according to the sixth and seventh modifications have the configuration shown in FIG. 1 as in the above-described embodiment, the description of each part is omitted, and the operation is described. Uses the same symbols.
[0100]
Only differences from the above-described embodiment will be described. 22 and 23 are diagrams illustrating a sixth modification and a seventh modification of the graphic dimension setting procedure in the present embodiment, respectively.
In the sixth and seventh modified examples, as shown in FIGS. 22A and 23A, independent circle icons 98 and rectangular icons 100 are added to the icon areas of the display unit 9, respectively. On the other hand, a common area icon 99 is added. In FIG. 22A, the graphic input process (see FIG. 14) is performed by the pen input of the point PNT6 and the circle icon 98 which are the first graphic subjected to the graphic input process by the pen input of the point icon 91 (see FIG. 14). A circle CRCL3, which is the second graphic, is displayed. In this circle CRCL3, a character pattern CHR12 indicating an area is set by deformation information input processing (see FIG. 15) accompanying pen input to the area icon 99. Similar to the sixth modification, in the seventh modification, the point PNT7 and the rectangle PLY1 are displayed by graphic input (see FIG. 14) in FIG. 23A, and the area within the rectangle PLY1 is the area. A character pattern CHR13 indicating an area is set by deformation information input processing (see FIG. 15) accompanying pen input to the icon 99.
[0101]
First, in the sixth modification, when there is a pen input to the OK icon 96 in the display state of FIG. 22A, graphic deformation processing (see FIG. 16) is started, as shown in FIG. 22B. In this manner, the OK icon 96 is highlighted, and when the actual scale (area) is smaller than the specified scale (area), the correction radius starting from the point PNT6 is calculated as shown in FIG. A process of expanding the circle CRCL3, which is the second graphic, is executed based on the above. As a result, the circle CRCL3 becomes a circle RCRCL3 by expansion. Along with this deformation, the display position of the character pattern CHR12 is moved. Similarly, in the seventh modification, when there is a pen input to the OK icon 96 in the display state of FIG. 23A, graphic deformation processing (see FIG. 16) is started, which is shown in FIG. As shown in FIG. 23, the OK icon 96 is highlighted, and when the actual scale (area) is smaller than the specified scale (area), the correction area starting from the point PNT7 is calculated as shown in FIG. A process of expanding the rectangle PLY1 that is two figures is executed. As a result, the rectangle PLY1 becomes a rectangle RPLY1 by expansion. Along with this deformation, the display position of the character pattern CHR13 is moved.
[0102]
Next, the case where the inclination of a line segment is deformed will be described as an eighth modification. Since the image processing apparatus according to the eighth modification has the configuration shown in FIG. 1 as in the above-described embodiment, the description of each part is omitted, and the same reference numerals are used for the description of the operation. .
[0103]
Only differences from the above-described embodiment will be described. FIG. 24 is a diagram for explaining an eighth modification of the graphic dimension setting procedure in the present embodiment.
In the eighth modification, an independent angle icon 101 is added to the icon area of the display unit 9 as shown in FIG. In FIG. 24A, a line segment LN10, which is the first graphic subjected to the graphic input process (see FIG. 14) by the pen input of the line segment icon 92, is displayed. In this line segment LN10, the stroke ANG3 and the character pattern CHR14 are set by the deformation information input process (see FIG. 15) accompanying the pen input to the angle icon 101. The angle indicated by the character pattern CHR14 is a designated scale for providing a base line BS (see FIG. 24C) in the horizontal direction from the start point ST5 and designating an angle formed by the base line BS and the line segment LN10.
[0104]
In the display state of FIG. 24A, when there is a pen input to the OK icon 96, graphic deformation processing (see FIG. 16) is started, and the OK icon 96 is displayed in reverse as shown in FIG. If the actual scale (angle) is smaller than the specified scale (angle), it is necessary to enlarge (deform) the correction angle Δθ3 as shown in FIG. 24C, which is the first figure. A process of rotating the line segment LN10 about the start point ST5 is executed. As a result, the end point ED5 of the line segment LN10 is moved to the end point RED5, the stroke ANG3 is transformed into the stroke RANG3, and the display position of the character pattern CHR14 is moved along with the transformation of the stroke ANG3.
[0105]
Next, a case where the angle formed by a plurality of line segments is deformed will be described as a ninth modification. Since the image processing apparatus according to the ninth modification has the configuration shown in FIG. 1 as in the above-described eighth modification, the description of each part is omitted, and the same reference numerals are used for the operation description. Is used.
[0106]
Only differences from the above-described eighth modification will be described. FIG. 25 is a diagram for explaining a ninth modification of the graphic dimension setting procedure in the present embodiment.
In FIG. 25A, a line segment LN11 which is a first graphic and a second graphic LN12 which have been subjected to graphic input processing (see FIG. 14) by pen input of the line segment icon 92 are displayed. In the line segments LN11 and LN12, a stroke ANG4 and a character pattern CHR15 are set by deformation information input processing (see FIG. 15) accompanying pen input to the angle icon 101. The angle indicated by the character pattern CHR15 is an angle (designated scale) formed by the line segment LN11 and the line segment LN12 connected by the stroke ANG4, and extends the start points ST6 and ST7 of the line segment LN11 and the line segment LN12, respectively. And an intersection point CLS (see FIG. 25C) is obtained as an axis.
[0107]
In the display state of FIG. 25A, when there is a pen input to the OK icon 96, graphic deformation processing (see FIG. 16) is started, and the OK icon 96 is displayed in reverse as shown in FIG. If the actual scale (angle) is smaller than the specified scale (angle), it is necessary to enlarge (deform) the correction angle Δθ4 as shown in FIG. A process of rotating the line segment LN12 about the CLS is executed. As a result, the end point ED7 of the line segment LN12 becomes the end point RED7 due to the movement, the stroke ANG4 is transformed into the stroke RANG4, and the display position of the character pattern CHR15 is moved along with the transformation of the stroke ANG4.
[0108]
【The invention's effect】
As described above, according to the first aspect of the present invention, the figure being displayed is handwritten. Specify the graphic data part to be deformed, and the desired scale Since the figure is deformed and displayed only by inputting "," it is possible to obtain an image processing apparatus capable of deforming and displaying the figure being displayed on a desired scale by a simple operation.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention.
FIGS. 2A and 2B are diagrams for explaining examples (a), (b), and (c) of a figure dimension setting procedure in the present embodiment.
FIGS. 3A and 3B are diagrams for explaining examples (a), (b), and (c) of a figure dimension setting procedure in the present embodiment.
FIGS. 4A and 4B are diagrams for explaining examples (a) and (b) of a figure dimension setting procedure in the present embodiment.
FIG. 5 is a diagram showing the contents stored in the graphic information memory corresponding to FIGS. 2, 3, and 4 in the present embodiment;
FIGS. 6A and 6B are diagrams for explaining an example (a) and (b) of a figure dimension setting procedure in the present embodiment.
7 is a diagram showing the contents stored in a graphic information memory corresponding to FIG. 6 in the present embodiment. FIG.
FIGS. 8A and 8B are diagrams for explaining other examples (a), (b), and (c) of the graphic dimension setting procedure in the present embodiment.
FIGS. 9A and 9B are diagrams for explaining other examples (a), (b), and (c) of the graphic dimension setting procedure in the present embodiment.
FIG. 10 is a diagram showing the contents stored in the graphic information memory corresponding to FIGS. 8 and 9 in the present embodiment.
FIGS. 11A and 11B are diagrams for explaining other examples (a) and (b) of the graphic dimension setting procedure in the present embodiment;
12 is a diagram showing the storage contents of a graphic information memory corresponding to FIG. 11 in the present embodiment. FIG.
FIG. 13 is a flowchart for explaining a graphic dimension setting procedure in the present embodiment;
14 is a flowchart for explaining details of the graphic input process shown in FIG. 13; FIG.
FIG. 15 is a flowchart illustrating details of deformation information input processing shown in FIG. 13;
16 is a flowchart for explaining the details of the graphic transformation process shown in FIG. 13;
FIG. 17 is a diagram for explaining a first modification (a), (b), (c) of the graphic dimension setting procedure in the present embodiment;
FIGS. 18A and 18B are diagrams illustrating a second modification (a), (b), and (c) of the graphic dimension setting procedure in the present embodiment;
FIG. 19 is a diagram for explaining a third modification (a), (b), (c) of the figure dimension setting procedure in the present embodiment;
FIGS. 20A and 20B are diagrams illustrating a fourth modification (a), (b), and (c) of the graphic dimension setting procedure in the present embodiment.
FIG. 21 is a diagram for explaining a fifth modification (a), (b), (c) of the graphic dimension setting procedure in the present embodiment;
FIG. 22 is a diagram for explaining a sixth modification (a), (b), (c) of the figure dimension setting procedure in the present embodiment;
FIG. 23 is a diagram for explaining a seventh modification (a), (b), and (c) of the figure dimension setting procedure in the present embodiment;
FIGS. 24A and 24B are diagrams illustrating an eighth modification (a), (b), and (c) of the graphic dimension setting procedure in the present embodiment;
FIG. 25 is a diagram for explaining a ninth modification (a), (b), (c) of the graphic dimension setting procedure in the present embodiment;
[Explanation of symbols]
1 Image processing device
2 CPU
3 ROM
4 RAM
5 Touch panel
6 Designated position recognition part
7 Character recognition part
8 Display drive circuit
9 Display section
41 Graphic information memory
42 Display memory
43 Work memory

Claims (2)

線図形等を含む図形データを手書き入力する入力手段と、
前記入力手段により手書き入力された図形データに基づいて図形を表示する表示手段と、
前記表示手段により表示された図形に対して変形情報を手書き入力する変形情報入力手段と、
前記変形情報入力手段により手書き入力された変形情報を認識する認識手段と、
この認識手段により前記変形情報が数字でないと認識された場合には、当該変形情報である手書き入力の曲線によって結ばれた図形の部分を変形対象の図形データ部分として特定する変形対象特定手段と、
前記認識手段により前記変形情報が数字であると認識された場合には、当該認識された数字を指定スケールとして設定する指定スケール設定手段と、
前記変形対象特定手段により、数字でないと認識された変形情報により変形対象の図形データ部分が特定され、前記指定スケール設定手段により、数字であると認識された変形情報により当該認識された数字が指定スケールとして設定された際に、前記特定された変形対象の図形データ部分について、前記指定スケール設定手段により設定された指定スケールのサイズに変形表示する変形表示手段と
を備えたことを特徴とする画像処理装置。
Input means for handwriting input of graphic data including line figures,
Display means for displaying a figure based on the figure data handwritten by the input means;
Deformation information input means for handwriting input deformation information for the graphic displayed by the display means;
Recognizing means for recognizing deformation information input by handwriting by the deformation information input means;
When the deformation information is recognized as non-numeric by this recognition means, a transformation target specifying means for specifying by a portion of the graphics that are connected by the curves of the handwritten input is the deformation information and graphic data portion of deformable object ,
If the recognizing means recognizes that the deformation information is a number, a designated scale setting means for setting the recognized number as a designated scale;
The graphic data portion to be deformed is specified by the deformation information recognized as not a number by the deformation target specifying means, and the recognized number is specified by the deformation information recognized as a number by the designated scale setting means. An image comprising: a deformation display means for deforming and displaying the specified graphic data portion to be deformed to a size of the designated scale set by the designated scale setting means when set as a scale. Processing equipment.
前記指定スケールには、線分の長さ、図形の角度含まれることを特徴とする請求項1に記載の画像処理装置。Wherein the designated scale is an image processing apparatus according to claim 1, characterized in that it contains the length, the angle of the figure of the line segment.
JP05165996A 1996-03-08 1996-03-08 Image processing device Expired - Fee Related JP3890619B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05165996A JP3890619B2 (en) 1996-03-08 1996-03-08 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05165996A JP3890619B2 (en) 1996-03-08 1996-03-08 Image processing device

Publications (2)

Publication Number Publication Date
JPH09245186A JPH09245186A (en) 1997-09-19
JP3890619B2 true JP3890619B2 (en) 2007-03-07

Family

ID=12893015

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05165996A Expired - Fee Related JP3890619B2 (en) 1996-03-08 1996-03-08 Image processing device

Country Status (1)

Country Link
JP (1) JP3890619B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3638176B2 (en) * 1996-05-24 2005-04-13 松下電器産業株式会社 Handwritten data editing apparatus and handwritten data editing method
US10956765B2 (en) 2016-08-19 2021-03-23 Sony Corporation Information processing device and information processing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0812668B2 (en) * 1984-10-31 1996-02-07 株式会社日立製作所 Handwriting proofreading method
JPH05298380A (en) * 1992-04-24 1993-11-12 Meidensha Corp Method for aligning parts in graphic editor
JPH06208654A (en) * 1993-01-08 1994-07-26 Hitachi Software Eng Co Ltd Pen input graphic editing system
JPH07200656A (en) * 1993-12-30 1995-08-04 Casio Comput Co Ltd Graphic output device

Also Published As

Publication number Publication date
JPH09245186A (en) 1997-09-19

Similar Documents

Publication Publication Date Title
JP3025121B2 (en) Information processing method and apparatus
KR100952306B1 (en) Method and Apparatus Processing Image Based on the First Inputted Command
CN108780365B (en) Apparatus, system and method for inputting commands or characters using a touch screen
JP3890619B2 (en) Image processing device
JPH1153093A (en) Input device
US9396390B2 (en) Systems and methods for sketch processing
JPH0721007A (en) Information processor and menu selecting system
JP4000570B2 (en) Information processing apparatus and method
JP2001075721A (en) Device and method for graphic input and recording medium where program for graphic input is recorded
JP6043581B2 (en) Caricature data creation method, caricature data creation apparatus, program, computer-readable recording medium, and cutting apparatus
JP3174162B2 (en) Coordinate input control method and device
JP3464874B2 (en) Method and apparatus for tracing point sequence by Bezier curve
JPH087120A (en) Device and method for processing image
JP6000496B1 (en) Numerical controller
CN109991928B (en) Method for realizing segmented variable slope machining
JP6994056B2 (en) Grouping device and grouping method
JP7170312B2 (en) Program, information processing device, and information processing method
JP2001188922A (en) System and method for three-dimensional shape processing and storage medium stored with program for implementing the method
CN108572624B (en) Program generation device and program generation method in program generation device
JP3363611B2 (en) Graphic information processing method and apparatus
JP3254328B2 (en) Ellipse data processing device
JP2904994B2 (en) Coordinate connection display method
JPH0766396B2 (en) Graphic information processing system
CN116257308A (en) Vehicle, cabin and screen display control method and device
JP2985260B2 (en) Character processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060822

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061018

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061127

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121215

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121215

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131215

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees