JP3671575B2 - Embroidery data processing device - Google Patents

Embroidery data processing device Download PDF

Info

Publication number
JP3671575B2
JP3671575B2 JP03667297A JP3667297A JP3671575B2 JP 3671575 B2 JP3671575 B2 JP 3671575B2 JP 03667297 A JP03667297 A JP 03667297A JP 3667297 A JP3667297 A JP 3667297A JP 3671575 B2 JP3671575 B2 JP 3671575B2
Authority
JP
Japan
Prior art keywords
embroidery
data
tracking
branch
data processing
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
JP03667297A
Other languages
Japanese (ja)
Other versions
JPH10230089A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP03667297A priority Critical patent/JP3671575B2/en
Priority to US09/024,578 priority patent/US6192292B1/en
Publication of JPH10230089A publication Critical patent/JPH10230089A/en
Application granted granted Critical
Publication of JP3671575B2 publication Critical patent/JP3671575B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、被縫製体に対して所定の図柄の刺繍を形成するミシンのための、刺繍の形成に必要な刺繍縫製データを作成するための刺繍データ処理装置に係り、特に輪郭画を原画として用いて図柄の刺繍データを処理する装置に関する。
【0002】
【従来の技術】
従来より、需要者の嗜好の多様化、高級化、刺繍ミシンの性能の向上などの諸事情を背景にして、家庭用の刺繍ミシンであっても、予め記憶されている刺繍データに基づく図柄の刺繍形成だけでなく、使用者の所望する図柄の刺繍を形成することを可能とする比較的安価で操作の容易な刺繍データ処理装置が提供されている。これらの多くは、原紙上にペンで書いた絵をハンディースキャナー等を用いて読み取り、刺繍データを作成するものである。
【0003】
従来、この種の刺繍データ処理装置では、複数の色を用いた刺繍データを作成するためには、各色に対応する複数の原紙を用い色ごとに原紙のスキャンを行うものや、特開平7−236784号公報に示すように初めに輪郭線を描いた原紙をスキャンし、後に指定する部分を塗りつぶし再び原紙のスキャンを行うもの等があった。
【0004】
【発明が解決しようとする課題】
先に記した従来の刺繍データ処理装置のうち前者のものでは、輪郭線や各色ごとにそれぞれ原画を作成し、スキャナー等を用い入力を行う。そのために、図17に示すような「葉」の模様のデータを作成する時は、タタミ縫いの原画では枝の部分を塗りつぶしておけば(図18)、輪郭線のサテン幅が非常に狭い時や、輪郭線が走り縫いであっても図17の部分Dにおいてタタミ縫いと輪郭線との間に隙間を生じる事は無かった(図19)。しかし、各色ごとに異なった原画を作成しなくてはならない為に、各原画にずれがあった場合には、出来上がるデータ間にずれが発生する。また、原画にずれが無い場合においても、各スキャンごとの読み取り誤差などによってもずれは発生する。そのため、ずれの少ない刺繍データを作成するには作業に多くの時間がかかり、面倒で意外と熟練を要するものであった。
【0005】
また、後者の刺繍データ処理装置においては、初めにスキャンされた輪郭線画像をもとに、内部タタミ縫い領域のデータを作成するため、輪郭線がタタミ縫いの時には、ずれが発生しにくい。しかしながら、輪郭線をサテン縫いにすると、ずれが発生しやすかった。
【0006】
この理由としては、次のような事情が背景として存在する。図柄の原画をイメージスキャナ等で読み取って画像データとし、それから刺繍データに自動変換を行う手法の1つとして、図柄を表す画素の集まりの輪郭を抽出し、その結果得られるいわゆるアウトラインで図柄形状を扱うものがある。輪郭線として描かれた図柄を、イメージスキャナで読み取って変換される画像データでは、輪郭線とはいってもある程度の広がりを持った面状の領域とならざるを得ないため、そこからアウトラインを取り出したときには原画の(ある程度太さをもつ)輪郭線の両側に経路を有するようなアウトライン(円のような閉領域の場合、離間している少なくもと2本の線)が取り出される。輪郭線がタタミ縫いの場合はそのアウトラインで挟まれた内部を縫うようなデータを作成すれば、内部タタミ縫いと輪郭線との間の縫いずれの問題は発生しにくいのである。しかし、輪郭線を走り縫い、サテン縫い等にしようとする時には、このようなデータでは、自動処理によって刺繍データを作成できない。
【0007】
なぜかというと、輪郭線のようなものに対しては、その両側に径路があるような形状規定線ではなく、その中心にただひとつの径路を有する径路規定線で表されるのが、何かと都合が良いためである。そして、このような要請に対しては、画像データ処理技法として知られている細線化処理が適しており、それを適用することによって得られる細線を径路規定線とすれば、前述の走り縫い、サテン縫いのデータ変換も自在に可能となるのである。
【0008】
しかし、内部タタミ縫い領域を細線化前のデータより作成すると、細線化を行う際に、細線化前後のアウトラインデータにずれが生じるために、輪郭線が走り縫いの場合やサテン幅が非常に細い場合には、輪郭線と内部タタミ縫い部分との間に隙間が生じてしまうことになっていた。
【0009】
それに対しては、内部タタミ縫いのデータを輪郭線のデータと同じく、入力された輪郭画像を細線化した細線画像より作成するとすれば問題は発生しない。しかし、この場合においては図17で示した部分Dに関するデータが、同じ画素を2回辿るために非常に近くなったり、交差をおこしてしまう。すると、縫目が詰って仕上がりが美しくなかったり、運針データが作成できない恐れがあった。
【0010】
本発明は上記事情に鑑みてなされたものであり、その目的は、入力画像に対する内部タタミ縫いの刺繍データを作る際に、部分Dのような枝があった場合その枝を削除し、できるだけ単純なデータを作成することであり、専門的な知識や熟練がなくても容易に短時間で美麗な刺繍縫いデータの作成を可能とする刺繍データ処理装置を提供するにある。
【0011】
【課題を解決するための手段】
このような課題を克服するために本発明の請求項1に記載の刺繍データ処理装置は、刺繍図柄を表す原画の画像データを細線画像に変換する細線化手段と、前記細線化手段により変換された細線画像を細線追跡する細線追跡手段と、前記細線追跡において枝があった場合、その枝を削除する枝削除手段とを備えている。従って、枝のある原画を入力した場合、枝を削除し刺繍データが自動的に作成される。
【0012】
また、本発明の請求項2に記載の刺繍データ処理装置では、細線化手段により細線化された細線画像より、前記刺繍図柄を構成する輪郭線を抽出する輪郭線抽出手段と、抽出された輪郭線が成す図形の輪郭を構成する縫目若しくは抽出された閉領域が成す図形の内部を縫いつくす縫目の少なくとも一方のための縫製データ作成手段を備えるため、多様な刺繍データの作成が可能となる。
【0013】
また、本発明の請求項3に記載の刺繍データ処理装置では、細線追跡によって既に細線追跡を行った画素を再び追跡した場合、閉ループを検出したとし、それを内部輪郭線をして領域処理する閉ループ処理手段を備え、枝削除手段は閉ループ処理手段よりも先に適用されることを特徴とするために、枝を発見した時に閉ループを発見したという誤認識をしないでデータの作成が可能となる。
【0014】
また、本発明の請求項4に記載の刺繍データ処理装置では、細線追跡において、その追跡方向が前回の追跡方向と180度異なるか否を判断する方向判断手段を有し、枝削除手段は方向判断手段によって、前回の追跡方向と今回の追跡方向が180度異なることが判断された場合、前回の追跡に関わる枝を削除することを特徴とするため、枝を発見及び削除するデータ処理が容易となる。
【0015】
さらに、本発明の請求項5に記載の刺繍データ処理装置では、枝削除手段及び閉ループ処理手段は、図形の一部ずつを繰り返し処理することを特徴とするために、正しく枝及び閉ループの処理を行いデータの作成が可能になる。
【0016】
それから、輪郭線データや内部縫いデータの少なくとも一方のために更に針落ち点を確定する処理を施されるデータを、同一の細線化されたデータに基づき作成するので、輪郭線の縫い幅を非常に細くした場合においても、輪郭線と内部縫い間の隙間が発生しにくく、刺繍内部において下地の出現が少なくなり、専門的な知識や熟練がなくても簡単に高品質の刺繍データの作成が可能になる。また、輪郭線の入力より、その輪郭線縫いのみや内部タタミ縫いのみ、或いはその両方のデータを作成することも可能になり、多様な刺繍データの作成作業が可能になる。さらに、輪郭線及び内部縫いのデータを同一の細線画像より作成するために輪郭線と内部縫い間の隙間が発生しにくく、刺繍内部において下地の出現が少なくなり、専門的な知識や熟練がなくても簡単に高品質の刺繍データの作成が可能になる。
【0017】
【発明の実施の形態】
以下、本発明を家庭用刺繍ミシンのための刺繍データ処理装置に適用した一実施の形態について、図を参照して説明する。なお、本実施の形態では、図4に示すような「ねこ」の刺繍図柄Aにおける刺繍データを作成する場合を具体例として挙げながら、同処理装置で行われる刺繍データ処理の内容を説明する。
【0018】
まず、図示はしないが、家庭用刺繍ミシンについて簡単に触れておく。刺繍ミシンは、ミシンベッド上に配置され刺繍が施される加工布を保持する刺繍枠を、水平移動機構により装置固有のX、Y座標系で示される所定位置に移動させつつ、縫い針及び釜機構による縫製動作を行うことにより、その加工布に所定の図柄の刺繍を施すようになっている(特開平5−49766号公報参照)。
【0019】
この場合、前記水平移動機構や針棒などは、マイクロコンピュータなどから構成される制御装置により制御されるようになっており、従って、一針毎の加工布のX、Y方向の移動量、即ち針落ち位置を指示する刺繍データ(ステッチデータ)が与えられることにより、制御装置は、刺繍動作を自動的に実行することが可能となるのである。また、本実施の形態では、刺繍ミシンにはフラッシュメモリ(カードメモリ)により、外部から刺繍データが与えられるように構成されている。本実施の形態に係わる刺繍データ処理装置は、このような刺繍データを自動的に作成する機能を有するものである。
【0020】
次に、本実施の形態に係わる刺繍データ処理装置の全体構成について、図1および図2を参照して述べる。図1は刺繍データ処理装置の外観を示し、また図2はその電気的構成を表している。ここで、処理装置本体1はマイクロコンピュータを主体として成り、CPU2、ROM3、RAM4、フラッシュメモリ装置(FMD)5、入出力インターフェイス6(I/O)がバスを介して相互に接続して構成されている。
【0021】
処理装置本体1の上面部には、読み取った図柄や刺繍領域等を画面7aに表示するための液晶ディスプレイ(LCD)7が設けられている。この液晶ディスプレイ7は、表示制御装置(LCDC)8により制御されるようになっており、この表示制御装置8には表示記憶装置(VRAM)9が接続され、モノクロのビットマップグラフィックス表示が可能なように構成されている。また、前記フラッシュメモリ装置5には、記憶媒体としてのフラッシュメモリ10が着脱可能に装着されるようになっている。そして、処理装置本体1には、操作者が縫製様式など各種の選択や設定の指示を行うための操作キー11、および、図柄原画を読み込むためのイメージスキャナ12が、前記入出力インターフェイス6を介してCPU2に接続されている。
【0022】
このイメージスキャナ12は、モノクロの図柄原画を二値のビットマップ画像データとして読み取り可能ないわゆるハンドスキャナから成り、操作者がその上部を手で持って下面の読み取り部を図柄原画用紙上に宛い、ボタンを押しながら原画に沿ってなぞるように一定方向に移動させることにより、図柄の画像の読み取りが行われるようになっている。読み取られた図柄画像データはラスター形式のビットマップとして、画素毎に白であれば「0」、黒であれば「1」の値を持つ1ビットデータで表現され、図3に示すようなRAM4の図柄画像データ記憶領域4aに記憶されるようになっている。
【0023】
さて処理装置本体1は、そのソフトウェア構成により、例えば図9に示すような「ねこ」の刺繍図柄Aの原画に基づいて、刺繍データの作成処理を自動的に行うように構成されている。このソフトウェアは、ROM3にCPU2を制御するプログラムコードとして格納されている。以下ではこの場合の動作を、図4から図7のフローチャートを参照しながら詳述する。この刺繍データを作成するにあたって、まず操作者は、図9に示す図柄輪郭画を、例えば白色の原紙に黒のペンで描くなどして用意する。
【0024】
操作者は、イメージスキャナ12により図柄Aの原画を読み取らせる。このイメージスキャナ12により読み取られた画像は図10のような2値のビットマップ画像データとしてメモリ上の図柄画像データ記憶領域4aに記憶される。次に、この画像データは細線化処理(細線化手段)により図11のように細線化され、RAM4の細線画像記憶領域4bに記憶される(S1000)。細線化の方法はすでに多くが知られているが、この場合、線幅が1画素になればどのような方法を用いてもよい。
【0025】
図5及び図6に示すように、細線化処理が行われた細線画像記憶領域4bに記憶された図柄Aの細線画像データはベクトル化処理によって、各々が適当な長さと方向をもつ線分データの連鎖、つまりショートベクトルの集合に変換され、RAM4のベクトル記憶領域4cに記憶される。ベクトル化処理の方法としては、画像中の細線図形を構成する画素のうちの任意の画素を開始点として、細線図形を構成する画素の連鎖を順に辿りながら適当な間隔で細線図形を構成する画素の座標値をサンプルして形状構成点の集合を得る方法などがある。そしてこのベクトルデータをもとに輪郭線の刺繍データを作成する(S2000)。
【0026】
次に、操作者は先ほど入力した原画に対して、タタミ縫いを行う領域を指定すると、CPU2はその領域を抽出する(S3000:Yes,S4000)。この指定の方法は多種考えられるが、一例を挙げると、先に入力した原画のタタミ縫いを希望する領域を塗りつぶし、再度スキャナーにより読み込む方法などが考えられる。そして、この指定された閉領域に対するベクトルデータの抽出方法は、以下に示す手順(図6参照)を内部輪郭線(図5:S5100)及び外部輪郭線に適用し(図5:S5300)、選られた径路を変換することによって実現される。
【0027】
手順1:指定された領域の輪郭線に対応する細線ビットマップ上の最上点を開始点Pとする(図6:S1及び図20)。
【0028】
手順2:開始点Pに隣接する構成点に向かう径路のうち、内部輪郭線では最も左に向かう経路を、外部輪郭線では最も右に向かう径路を選択し、そちらへ進む方向に径路を辿る(S1)。
【0029】
手順3:進行方向に関して最も右方に向かう径路を選択し進む、という規則に従って径路を辿る(S2)。
【0030】
手順4:辿った先の画素が開始点Pの場合は径路を記憶し、終了する(S3:Yes,S10)。また、今回辿った径路と前回辿った径路の方向が180度異なる時(S4:Yes)は、枝を発見したとして前回の径路を消去し(S5)、手順3に戻る。尚、本発明で言う「枝」とは、閉領域の内部に向かって伸張する線分である。
【0031】
手順5:今回辿った経路と前回辿った経路の方向が180度異ならないとき(S4:No)、今回辿った径路を記憶する(S6)。今回辿った径路の先の画素が既に辿られているか調べ(S7)、辿られていなければ(S7:No)今回の画素を記憶し(S12)、手順3に戻る。尚、このS7では、開始点P以外の点について辿ったか否かが調べられる。
【0032】
手順6:今回の径路の先の画素が既に辿られていた場合は(S7:Yes)、前回その画素に入ってきている径路と、今回これから出て行く径路の方向を調べ(S8)180度異なっていなければ(S8:No)手順3に戻る。
【0033】
手順7:今回これから出て行く径路の方向が180度異なっている時(S8:Yes)、閉ループを発見したとして、その閉ループを今処理している領域の内部輪郭線として処理し(S9)、手順3に戻る。
【0034】
手順3の規則を詳しく説明すると以下のようになる(図7参照)。
【0035】
手順1’:前回の径路が上、下、右、左か、あるいは右上、左上、左下、右下かを調べる(S100)。ただし、文中の上、下、左、右、右上、左上、左下、右下は図13に示すxy座標に対しての方向である。また、「右方」とか「・・・方」とあるのは、進行方向に対する方向である。
【0036】
手順2’:前回の径路が上、下、右、左の場合(一方の座標軸に直交する方向の場合)は(S100:No)前回の径路に対して右前方、前方、左前方、後方の順番で(S105〜S125:図8(a))、前回の径路が右上、右下、左上、左下の場合(座標軸に直交しない方向の場合)は(S100:Yes)前回の径路に対して右方、右前方、前方、左前方、左方、後方の順番で画素が存在するかを調べる(S135〜S160)。
【0037】
手順3’:最初に調べて存在した画素およびその画素への径路を、次の画素、次の径路として、RAM4の径路記憶領域4d、画素記憶領域4eに記憶する(S130)。
【0038】
次に、図8に例として、上と右上に径路を辿ってきた場合の画素を調べる順番を示す。
【0039】
図柄Aを細線化したビットマップデータについて、以上の手順実施によりなされる処理を説明するものが図11である。「ねこの顔」の領域(図12(a)斑点部)のデータ作成を例として説明する。このビットマップデータは、先の細線画像記憶領域4bに記憶されている。
【0040】
この「ねこの顔」の領域は内部輪郭線1及び2、外部輪郭線3を持つ(図12(b))。まず内部輪郭線1及び2の径路が、上述した手順1から手順7に従い辿られ(図12(c))、ベクトルデータに変換される。内部輪郭線1及び2では、枝及び閉ループが存在しないために手順4、6、7は行われない。
【0041】
続いて外部輪郭線3の径路を、手順1から手順7に従い辿る。図12(d)の矢印部分は枝及び閉ループが存在しないため、手順4、6は行われず、手順5により辿った径路がRAM4の径路記憶領域4dに、辿った画素がRAM4の画素記憶領域4eに記憶されて行く。
【0042】
図12(d)の部分Bを拡大した図13に示すように、上方から辿ってきて、枝分かれしている。画素1まで画素を辿ってくると、次の画素は今までの径路の進行方向に対して左方、前方、右方に存在するので、次の径路は右方へと進む(矢印a:S2)。画素2まで辿った時の径路は、図13に示されている部分では、左下、下、左下、左上(矢印a)、左上(矢印b)となっている。次のとるべき径路は右下(矢印c)となっており、この矢印cは前回の径路(矢印b)とは方向が180度異なっている(S4:Yes)。そのために、この場合は手順4により前回の径路(矢印b)は径路記憶領域4dから消去され、今回の径路(矢印c)も記憶されない(S5)。
【0043】
そうすると、今記憶されている径路は、左下、下、左下、左上(矢印a)となり、今辿られた画素は画素3である状態になる。今回の径路は右下(矢印d)であり、やはり記憶されている前回の径路(矢印a)と方向が180度異なるために、前回の径路は消去され、今回の径路は記憶されない。この様にして、図13に示されたように画素を全て辿り終わると、記憶されている径路は、左下、下、左下、左下、左下、左下、左となり、矢印a〜dの枝の部分は、一旦記憶されているが結局径路から消去されている。
【0044】
次に、図12( d )の部分Cを拡大した図14に示すように、右側より手順1から6に従い径路を辿ってくる。矢印eに従い画素4を辿った時は、この画素を辿るのはまだ1回目なので手順5は行われない(S7:No)。続いて、環状部を反時計まわりに辿って、矢印gに従い再び画素4を辿ると、先ほど画素4を辿った時に、手順5により辿った画素がRAM4の画素記憶領域4eに記録されているために、この画素を辿るのは2回目と分かり(S7:Yes)、閉ループがある事が発見される。この画素から、次に辿る経路(矢印h)と前回この画素に入ってきている径路(矢印e)の方向を調べ、180度異なっていた場合のみ閉ループを切り離す処理を行う(S9)。これは、閉ループが接している時(図15)には切り離しを行わないためである。閉ループが接している場合には、同様の2つの径路(矢印iと矢印j)の方向は180度異ならない。
【0045】
図14の場合では、矢印fから矢印gまでの径路を閉ループとして切り離し、現在処理している領域の内部輪郭線として処理をする。そのため、記憶されている径路は左、左上、上、上、となる。そして、今回の径路は下であるために、手順4に従い、記憶されている最後の径路(矢印e)は消去され、今回の径路(矢印h)も記憶されない。
【0046】
つまり、閉ループが存在した場合には、閉ループ部分を切り離し内部輪郭線として処理するために、残った部分では先ほど説明した枝の削除と同じ処理が行われるのである。そのために、図14に示された画素を全て辿った後記憶されている径路は、左、左、左上、左下、左、左、となる。
【0047】
細線追跡の開始点は、図20に示すフローチャートのように、図11の画素について図13のような直交する座標系を想定し、図12の「ねこ」の絵の右上の座標を1画素ずつ座標値に演算する。その手順は、有効な画素(黒塗りの画素)について、X方向で最大座標を検出する度にその最大座標(Xmax)を更新すると共に引き続きその画素のY座標についても同様に最大値(Ymax)を越えるかを調べ、越える場合その座標を更新する(S410乃至S442)。そして、先の処理を繰り返してすべての画素について座標を調べた後に、最終的に抽出した(Xmax、Ymax)に相当する画素を開始点とする(S440:YES,S444)。
【0048】
以上の説明に従い、「ねこの顔」の内部輪郭線及び外部輪郭線を上記処理により作成したものが図12(e)である。内部輪郭線は処理前に比べて、1つ増え(新内部輪郭線)3つになっており、4本のひげ及び鼻の下部の線が消去されたデータができている事が分かる。このため、輪郭線のサテン幅を非常に細くした場合や、輪郭線を走り縫いで行うような場合においても、輪郭線縫製部(図16(b),(d))とタタミ縫いの領域(図16(a))との間に隙間が生じる事が無くなり、その両方によって形成される模様(図16(c),(e))を美しく刺繍する事が可能になるのである。尚、輪郭線縫製部を走り縫い及びサテン縫いの両方で構成してもよい。
【0049】
以上の説明から明らかなように、枝削除処理によれば、4連結、8連結の連結性をもつ細線ビットマップに関して枝を削除するために、内部縫いデータの形状が単純になりデータ量が減少し、輪郭線の幅を細くできるため、高品質の刺繍データの作成が可能になる。また、枝削除は閉領域及び輪郭線のデータ作成時に適用可能のため、データが単純になり、高品質の刺繍データの作成が可能になる。また、ノイズ除去にも使用できる。更に、既に細線追跡を行ったか否かに基づき処理し、枝削除利は閉ループ処理より先に行うので、枝と閉ループの判断をすることができるために正しくデータを作成することが可能になる。そして、追跡の前回と今回とで180度方向が異なることに基づいて処理しているので、細線追跡中に枝を発見した時、その枝をデータ上より削除することが可能になる。図名の一部ずつ繰り返し処理しているので、各ステップごとに枝削除、閉ループ発見を行うために、効率的にデータを作成することができる。
【0050】
それから、輪郭線データや内部縫いデータの少なくとも一方のために更に針落ち点を確定する処理を施されるデータを、同一の細線化されたデータに基づき作成するので、輪郭線の縫い幅を非常に細くした場合においても、輪郭線と内部縫い間の隙間が発生しにくく、刺繍内部において下地の出現が少なくなり、専門的な知識や熟練がなくても簡単に高品質の刺繍データの作成が可能になる。また、輪郭線の入力より、その輪郭線縫いのみや内部タタミ縫いのみ、或いはその両方のデータを作成することも可能になり、多様な刺繍データの作成作業が可能になる。さらに、輪郭線及び内部縫いのデータを同一の細線画像より作成するために輪郭線と内部縫い間の隙間が発生しにくく、刺繍内部において下地の出現が少なくなり、専門的な知識や熟練がなくても簡単に高品質の刺繍データの作成が可能になる。
【0051】
また、再び追跡をしたか否かに基づき閉ループを検出するので、閉領域内に閉領域が存在し、それらが枝によってつながっている時は内側の閉領域を内部輪郭線として処理することが可能になり、高品質の刺繍データの作成が可能になる。更に、閉ループ検出を行う際に追跡方向に基づくので、一層細かな判断を行え、高品質なデータの作成が可能になる。それから、細線追跡された画素のデータに基づき既に追跡されたか否かが判断されるので、細線追跡中に閉ループが存在した場合、容易に発見することが可能になる。さらに、追跡方向に対する180度に基づき閉ループの検出を行うので、閉領域内に閉領域が存在し、それらが枝によりつながっている時に、閉領域どうしの距離等の条件により、内側の閉領域を内部輪郭線として処理するか否かの判断をすることができる。
【0052】
上述した実施の形態においては、縫製データのうち縫い目を形成するための針落ち点データを作成したが、刺繍図柄を表す表示データを、同様にドットデータより作成しても良い。また、上述した実施の形態では、輪郭部分とその内部部分との両方の縫目を形成できるように構成されている装置であるが、その片方しか作成できない装置であっても良い。例えば、輪郭内部に相当する部分をアップリケにする場合、その輪郭内部を縫い尽くすデータは不要であるので、輪郭部分だけのデータが必要である。その逆に、輪郭部分を無くして意識的に布地を露出させて、輪郭線とする場合も考えられ、その場合、輪郭内部だけのデータが必要である。そのいずれの場合であっても、原画に忠実であることが望まれることは言うまでもなく、本発明を実施することによって良好なデータを取得することができる。
【0053】
【発明の効果】
以上の説明から明らかなように、請求項1に記載の刺繍データ処理装置によれば、枝削除手段は4連結、8連結の連結性をもつ細線ビットマップに関して枝を削除するために、内部縫いデータの形状が単純になりデータ量が減少し、輪郭線の幅を細くできるため、高品質の刺繍データの作成が可能になる。
【0054】
また、請求項2に記載の刺繍データ処理装置によれば、枝削除は閉領域及び輪郭線のデータ作成時に適用可能のため、データが単純になり、高品質の刺繍データの作成が可能になる。また、ノイズ除去にも使用できる。
【0055】
また、請求項3に記載の刺繍データ処理装置によれば、枝と閉ループの判断をすることができるために正しくデータを作成することが可能になる。
【0056】
また、請求項4に記載の刺繍データ処理装置によれば、細線追跡中に枝を発見した時、その枝をデータ上より削除することが可能になる。
【0057】
さらに、請求項5に記載の刺繍データ処理装置によれば、各ステップごとに枝削除、閉ループ発見を行うために、効率的にデータを作成することができる。
【図面の簡単な説明】
【図1】刺繍データ処理装置の外観を示す斜視図である。
【図2】刺繍データ処理装置の電気的構成を示すブロック図である。
【図3】刺繍データ処理装置のRAMを示す図である。
【図4】本発明の実施の形態の刺繍データ処理装置による刺繍データ処理の全体の手順の一例を示すフローチャートである。
【図5】本発明の実施の形態の刺繍データ処理装置による指定領域のデータ処理手順の一例を示すフローチャートである。
【図6】本発明の実施の形態の刺繍データ処理装置による輪郭線のデータ処理手順の一例を示すフローチャートである。
【図7】本発明の実施の形態の刺繍データ処理装置による径路を調べるデータ処理手順の一例を示すフローチャートである。
【図8】前回径路に対する周囲8近傍の検索の順番を示す図である。
【図9】刺繍図柄原画の一例を示す図である。
【図10】刺繍図柄原画を読み取ったビットマップ画像の部分を示す図である。
【図11】刺繍図柄の細線化ビットマップ画像の部分を示す図である。
【図12】閉領域の内部輪郭線及び外部輪郭線の抽出過程を説明する図である。
【図13】枝があった場合の径路の辿りかたとx−y座標を示す図である。
【図14】閉ループがあった場合の径路の辿りかたを説明する図である。
【図15】閉ループが接していた場合の径路の辿りかたを説明する図である。
【図16】作成される刺繍縫目の一例を示す図である。
【図17】枝の存在する原画を示す図である。
【図18】領域を指定する原画を示す図である。
【図19】作成される刺繍縫目の一例を示す図である。
【図20】本発明の実施の形態の刺繍データ処理装置による追跡の開始点を抽出するためのフローチャートである。
【符号の説明】
2 CPU
3 ROM
4 RAM
5 フラッシュメモリ装置
6 入出力インターフェイス
7 液晶ディスプレイ(LCD)7
10 フラッシュメモリ10
12 イメージスキャナ12
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an embroidery data processing apparatus for creating embroidery sewing data necessary for forming an embroidery for a sewing machine that forms an embroidery of a predetermined pattern on a sewing object. In particular, an outline image is used as an original image. The present invention relates to an apparatus for processing design embroidery data.
[0002]
[Prior art]
Conventionally, against the backdrop of various circumstances such as diversifying consumer preferences, upgrading, and improving the performance of embroidery sewing machines, even for home embroidery sewing machines, the design of patterns based on pre-stored embroidery data There is provided an embroidery data processing apparatus that is relatively inexpensive and easy to operate, which enables not only embroidery formation but also embroidery of a pattern desired by a user. Many of them read a picture drawn with a pen on a base paper using a handy scanner or the like, and create embroidery data.
[0003]
Conventionally, in this type of embroidery data processing apparatus, in order to create embroidery data using a plurality of colors, a plurality of base papers corresponding to each color is used to scan the base paper for each color. As disclosed in Japanese Patent No. 236784, there is a technique in which a base paper on which a contour line is drawn is scanned first, a portion to be specified later is painted, and the base paper is scanned again.
[0004]
[Problems to be solved by the invention]
In the former embroidery data processing apparatus described above, an original image is created for each contour line and each color, and input is performed using a scanner or the like. Therefore, when creating the data of the “leaf” pattern as shown in FIG. 17, if the branch portion is filled in the original image of the tatami stitch (FIG. 18), the contour line has a very narrow satin width. In addition, even if the contour line was running, there was no gap between the tatami stitch and the contour line in part D of FIG. 17 (FIG. 19). However, since a different original picture must be created for each color, if there is a deviation in each original picture, a deviation occurs between the completed data. Even when there is no deviation in the original image, the deviation occurs due to a reading error for each scan. Therefore, it takes a lot of time to create embroidery data with little deviation, which is cumbersome and surprisingly skillful.
[0005]
Further, in the latter embroidery data processing apparatus, data of the internal tapping area is created based on the outline image scanned first, so that the deviation hardly occurs when the outline is tapped. However, when the contour line is satin-sewn, deviation tends to occur.
[0006]
This is because of the following circumstances. As one of the methods of reading an original image of a design with an image scanner or the like to convert it into image data and then automatically converting it into embroidery data, the outline of a group of pixels representing the design is extracted, and the resulting shape is represented by a so-called outline. There is something to handle. In the image data that is converted by reading the image drawn as an outline with an image scanner, it must be a planar area with a certain extent even though it is an outline, so the outline is extracted from there. In such a case, an outline having a path on both sides of an outline (having a certain thickness) of the original image (at least two lines that are separated in the case of a closed region such as a circle) is taken out. If the contour line is a tail stitch, if data that sew the inside sandwiched between the outlines is created, the problem of any stitches between the internal stitch and the contour line is unlikely to occur. However, when trying to make the contour line run, satin, etc., embroidery data cannot be created by automatic processing with such data.
[0007]
The reason is that for things like contour lines, it is not a shape-defining line with a path on both sides, but a path-defining line with only one path in the center. This is because it is convenient. And for such a request, thinning processing known as an image data processing technique is suitable, and if the thin line obtained by applying it is used as a route regulation line, the above-mentioned running stitching, Data conversion for satin sewing is also possible.
[0008]
However, if the internal tatami stitching area is created from the data before thinning, the outline data before and after thinning will be shifted when thinning, so the contour line is run and the satin width is very thin. In such a case, a gap is to be generated between the contour line and the internal stitch portion.
[0009]
On the other hand, there is no problem if the internal tatami stitching data is created from the thin line image obtained by thinning the input outline image in the same manner as the contour line data. However, in this case, the data relating to the portion D shown in FIG. 17 becomes very close or crosses because the same pixel is traced twice. Then, there is a possibility that the stitches are clogged and the finish is not beautiful, or the hand movement data cannot be created.
[0010]
The present invention has been made in view of the above circumstances, and an object of the present invention is to delete a branch such as a portion D when creating embroidery data for internal tapping stitches for an input image, and to simplify the process as much as possible. It is an object of the present invention to provide an embroidery data processing apparatus that can easily create beautiful embroidery data in a short time without specialized knowledge or skill.
[0011]
[Means for Solving the Problems]
In order to overcome such problems, the embroidery data processing apparatus according to claim 1 of the present invention is converted by the thinning means for converting the image data of the original image representing the embroidery design into a thin line image, and the thinning means. A fine line tracking unit that finely traces the thin line image, and a branch deletion unit that deletes the branch when there is a branch in the fine line tracking. Therefore, when an original image with branches is input, the branches are deleted and embroidery data is automatically created.
[0012]
In the embroidery data processing apparatus according to claim 2 of the present invention, an outline extracting means for extracting an outline constituting the embroidery pattern from a thin line image thinned by the thinning means, and an extracted outline Since it has sewing data creation means for at least one of the stitches that form the outline of the figure formed by the line or the inside of the figure formed by the extracted closed region, it is possible to create various embroidery data Become.
[0013]
In the embroidery data processing apparatus according to claim 3 of the present invention, when a pixel that has already been traced by fine line tracking is tracked again, it is assumed that a closed loop has been detected, and this is processed as an internal contour line. Since it has a closed loop processing means and the branch deletion means is applied before the closed loop processing means, it is possible to create data without misrecognizing that a closed loop has been found when a branch is found. .
[0014]
In the embroidery data processing apparatus according to claim 4 of the present invention, in the fine line tracking, the embroidery data processing apparatus has direction determining means for determining whether or not the tracking direction is 180 degrees different from the previous tracking direction, and the branch deletion means is the direction. When the determination means determines that the previous tracking direction is different from the current tracking direction by 180 degrees, the branch related to the previous tracking is deleted, so that data processing for finding and deleting the branch is easy. It becomes.
[0015]
Furthermore, in the embroidery data processing apparatus according to claim 5 of the present invention, the branch deleting means and the closed loop processing means repeatedly process a part of the figure one by one. Data can be created.
[0016]
Then, the data to be processed to further determine the needle entry point for at least one of the contour line data and the internal sewing data is created based on the same thinned data, so that the width of the contour line is greatly reduced. Even if it is made thinner, the gap between the contour line and the internal stitching is less likely to occur, the appearance of the groundwork is reduced within the embroidery, and high-quality embroidery data can be easily created without specialized knowledge or skill. It becomes possible. In addition, by inputting the contour line, it is possible to create data for only the contour line stitch, only the internal stitches, or both, and various embroidery data can be created. Furthermore, since the contour line and internal stitching data are created from the same thin line image, the gap between the contour line and the internal stitching is less likely to occur, the appearance of the groundwork is reduced inside the embroidery, and there is no specialized knowledge or skill. Even high-quality embroidery data can be created easily.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment in which the present invention is applied to an embroidery data processing apparatus for a home embroidery sewing machine will be described with reference to the drawings. In the present embodiment, the contents of the embroidery data processing performed by the processing apparatus will be described by taking as an example the case of creating embroidery data in the embroidery pattern A of “Cat” as shown in FIG.
[0018]
First of all, although not shown, a home embroidery sewing machine will be briefly described. The embroidery sewing machine has a sewing needle and a shuttle hook while moving an embroidery frame, which is placed on a sewing machine bed and holding a work cloth to be embroidered, to a predetermined position indicated by an X and Y coordinate system unique to the apparatus by a horizontal movement mechanism. By performing the sewing operation by the mechanism, the work cloth is embroidered with a predetermined pattern (refer to Japanese Patent Laid-Open No. 5-49766).
[0019]
In this case, the horizontal movement mechanism, the needle bar, and the like are controlled by a control device composed of a microcomputer or the like, and accordingly, the movement amount of the work cloth in each of the needles in the X and Y directions, that is, When the embroidery data (stitch data) instructing the needle drop position is given, the control device can automatically execute the embroidery operation. In the present embodiment, the embroidery machine is configured so that embroidery data is given from the outside by a flash memory (card memory). The embroidery data processing apparatus according to the present embodiment has a function of automatically creating such embroidery data.
[0020]
Next, the overall configuration of the embroidery data processing apparatus according to the present embodiment will be described with reference to FIGS. FIG. 1 shows the appearance of the embroidery data processing apparatus, and FIG. 2 shows its electrical configuration. Here, the processing device main body 1 is mainly composed of a microcomputer, and is constituted by a CPU 2, a ROM 3, a RAM 4, a flash memory device (FMD) 5, and an input / output interface 6 (I / O) connected to each other via a bus. ing.
[0021]
A liquid crystal display (LCD) 7 is provided on the upper surface of the processing apparatus main body 1 to display the read pattern, embroidery area, and the like on the screen 7a. The liquid crystal display 7 is controlled by a display control device (LCDC) 8, and a display storage device (VRAM) 9 is connected to the display control device 8 so that monochrome bitmap graphics can be displayed. It is configured as follows. The flash memory device 5 is detachably mounted with a flash memory 10 as a storage medium. An operation key 11 for an operator to instruct various selections and settings such as a sewing style and an image scanner 12 for reading a pattern original image are provided in the processing apparatus main body 1 via the input / output interface 6. Are connected to the CPU 2.
[0022]
This image scanner 12 is a so-called hand scanner capable of reading a monochrome pattern original image as binary bitmap image data, and the operator holds the upper part by hand and directs the lower surface reading portion onto the pattern original image paper. The image of the symbol is read by moving in a certain direction so as to trace along the original image while pressing the button. The read design image data is represented as a bit map in raster format as 1-bit data having a value of “0” for each pixel and “1” for black, and the RAM 4 as shown in FIG. Are stored in the symbol image data storage area 4a.
[0023]
The processing apparatus main body 1 is configured to automatically perform embroidery data creation processing based on the original image of the “Neko” embroidery symbol A as shown in FIG. This software is stored in the ROM 3 as program code for controlling the CPU 2. Hereinafter, the operation in this case will be described in detail with reference to the flowcharts of FIGS. In creating the embroidery data, first, the operator prepares a pattern contour image shown in FIG. 9 by drawing it with a black pen on a white base paper, for example.
[0024]
The operator causes the image scanner 12 to read the original image of the pattern A. The image read by the image scanner 12 is stored in the symbol image data storage area 4a on the memory as binary bitmap image data as shown in FIG. Next, the image data is thinned as shown in FIG. 11 by thinning processing (thinning means) and stored in the thin line image storage area 4b of the RAM 4 (S1000). Many thinning methods are already known. In this case, any method may be used as long as the line width is one pixel.
[0025]
As shown in FIG. 5 and FIG. 6, the thin line image data of the pattern A stored in the thin line image storage area 4b subjected to the thinning process is subjected to vectorization processing, and line segment data each having an appropriate length and direction. Is converted to a set of short vectors, and stored in the vector storage area 4 c of the RAM 4. As a method of vectorization processing, pixels constituting a thin line figure at an appropriate interval while sequentially tracing the chain of pixels constituting the thin line figure, starting from an arbitrary pixel of the pixels constituting the thin line figure in the image There is a method of obtaining a set of shape composing points by sampling the coordinate values. Based on this vector data, embroidery data of the contour line is created (S2000).
[0026]
Next, when the operator designates an area for performing the tail stitching on the original image input earlier, the CPU 2 extracts the area (S3000: Yes, S4000). There are various ways of specifying this, but as an example, a method may be considered in which an area of the input original image which is desired to be stitched is filled and read again by a scanner. The vector data extraction method for the designated closed region applies the following procedure (see FIG. 6) to the inner contour line (FIG. 5: S5100) and the outer contour line (FIG. 5: S5300). This is realized by converting the determined path.
[0027]
Procedure 1: The highest point on the thin line bitmap corresponding to the contour line of the designated area is set as the start point P (FIG. 6: S1 and FIG. 20).
[0028]
Step 2: Among the paths to the constituent points adjacent to the start point P, the path that is leftmost is selected as the inner contour line, and the path that is rightward is selected as the outer contour line, and the path is traced in the direction of proceeding to the path ( S1).
[0029]
Procedure 3: The path is traced in accordance with the rule of selecting and proceeding to the path that goes to the rightmost in the traveling direction (S2).
[0030]
Procedure 4: When the traced pixel is the start point P, the path is stored and the process ends (S3: Yes, S10). When the direction of the path traced this time is different from the direction of the path traced last time by 180 degrees (S4: Yes), the previous path is deleted (S5) because the branch is found, and the procedure returns to step 3. The “branch” referred to in the present invention is a line segment extending toward the inside of the closed region.
[0031]
Procedure 5: When the direction of the route traced this time is not different from the direction of the route traced last time by 180 degrees (S4: No), the route traced this time is stored (S6). It is checked whether or not the previous pixel of the path traced this time has already been traced (S7). If not traced (S7: No), the current pixel is stored (S12), and the procedure returns to step 3. In S7, it is checked whether or not a point other than the start point P has been traced.
[0032]
Step 6: If the previous pixel of the current path has already been traced (S7: Yes), the path that has entered the previous pixel and the direction of the path that will be exited this time are checked (S8) 180 degrees. If not different (S8: No), the procedure returns to step 3.
[0033]
Step 7: When the direction of the path to be output this time is different by 180 degrees (S8: Yes), if a closed loop is found, the closed loop is processed as an inner contour line of the region currently processed (S9). Return to step 3.
[0034]
The rule of procedure 3 will be described in detail as follows (see FIG. 7).
[0035]
Procedure 1 ': It is checked whether the previous path is up, down, right, left or upper right, upper left, lower left, lower right (S100). However, upper, lower, left, right, upper right, upper left, lower left, and lower right in the sentence are directions with respect to the xy coordinates shown in FIG. Further, “right” or “...” Is a direction with respect to the traveling direction.
[0036]
Step 2 ': When the previous path is up, down, right, left (in the case of a direction orthogonal to one coordinate axis) (S100: No), the right front, front, left front, rear of the previous path In order (S105 to S125: FIG. 8A), if the previous path is upper right, lower right, upper left, lower left (in a direction that is not orthogonal to the coordinate axis) (S100: Yes), the right of the previous path It is checked whether pixels exist in the following order: right, front right, front, left front, left, and rear (S135 to S160).
[0037]
Procedure 3 ′: The pixel that was first examined and the path to the pixel are stored in the path storage area 4d and the pixel storage area 4e of the RAM 4 as the next pixel and the next path (S130).
[0038]
Next, as an example, FIG. 8 shows the order in which the pixels are examined when the path is traced up and right.
[0039]
FIG. 11 illustrates the processing performed by performing the above procedure for the bitmap data obtained by thinning the pattern A. Data creation of the “cat face” area (spotted portion in FIG. 12A) will be described as an example. This bitmap data is stored in the thin line image storage area 4b.
[0040]
This “cat face” region has inner contour lines 1 and 2 and an outer contour line 3 (FIG. 12B). First, the paths of the inner contour lines 1 and 2 are traced according to the above-described procedure 1 to procedure 7 (FIG. 12C) and converted into vector data. For inner contour lines 1 and 2, steps 4, 6, and 7 are not performed because there are no branches and closed loops.
[0041]
Subsequently, the path of the outer contour 3 is traced according to the procedure 1 to the procedure 7. Since there are no branches and closed loops in the arrow portion of FIG. 12D, steps 4 and 6 are not performed, the path traced by procedure 5 is the path storage area 4d of the RAM 4, and the traced pixel is the pixel storage area 4e of the RAM 4. Going to memorized.
[0042]
As shown in FIG. 13 in which the portion B in FIG. 12 (d) is enlarged, it branches from the top. When the pixel is traced to the pixel 1, since the next pixel exists on the left, front, and right with respect to the traveling direction of the current path, the next path proceeds to the right (arrow a: S2). ). In the portion shown in FIG. 13, the path when tracing to the pixel 2 is lower left, lower, lower left, upper left (arrow a), and upper left (arrow b). The next path to be taken is the lower right (arrow c), and this arrow c is 180 degrees different in direction from the previous path (arrow b) (S4: Yes). Therefore, in this case, the previous path (arrow b) is deleted from the path storage area 4d by the procedure 4, and the current path (arrow c) is not stored (S5).
[0043]
Then, the currently stored paths are the lower left, the lower, the lower left, and the upper left (arrow a), and the pixel traced now is the pixel 3. The current path is in the lower right (arrow d) and the direction is 180 degrees different from the previous path (arrow a) that is also stored, so the previous path is erased and the current path is not stored. In this way, when all the pixels are traced as shown in FIG. 13, the stored paths are the lower left, the lower, the lower left, the lower left, the lower left, the lower left, and the left, and the branches of the arrows a to d Is once stored, but is eventually erased from the path.
[0044]
Next, as shown in FIG. 14 in which the portion C of FIG. 12 (d) is enlarged, the path is followed from the right according to steps 1 to 6. When the pixel 4 is traced according to the arrow e, the procedure 5 is not performed because the pixel is traced for the first time (S7: No). Subsequently, when the annular portion is traced counterclockwise and the pixel 4 is traced again according to the arrow g, when the pixel 4 is traced earlier, the pixel traced by the procedure 5 is recorded in the pixel storage area 4e of the RAM 4. In addition, it is understood that this pixel is traced for the second time (S7: Yes), and it is found that there is a closed loop. From this pixel, the direction of the path to follow next (arrow h) and the direction of the path (arrow e) that has entered this pixel last time are checked, and the process of cutting off the closed loop is performed only when they differ by 180 degrees (S9). This is because disconnection is not performed when the closed loop is in contact (FIG. 15). When the closed loop is in contact, the directions of the two similar paths (arrow i and arrow j) do not differ by 180 degrees.
[0045]
In the case of FIG. 14, the path from the arrow f to the arrow g is cut off as a closed loop and processed as an internal contour line of the currently processed region. Therefore, the stored paths are left, upper left, upper, upper. Since the current path is down, the last stored path (arrow e) is deleted according to the procedure 4, and the current path (arrow h) is not stored.
[0046]
That is, when a closed loop exists, in order to cut off the closed loop portion and process it as an internal contour line, the remaining portion is subjected to the same processing as the branch deletion described above. Therefore, the paths stored after tracing all the pixels shown in FIG. 14 are left, left, upper left, lower left, left, left.
[0047]
As shown in the flowchart of FIG. 20, the thin line tracking start point assumes an orthogonal coordinate system as shown in FIG. 13 for the pixels of FIG. Calculates the coordinate value. The procedure is to update the maximum coordinate (Xmax) every time the maximum coordinate is detected in the X direction for an effective pixel (black pixel) and continue to the maximum value (Ymax) for the Y coordinate of the pixel. If so, the coordinates are updated (S410 to S442). Then, after repeating the previous processing and examining the coordinates for all the pixels, the pixel corresponding to the finally extracted (Xmax, Ymax) is set as the starting point (S440: YES, S444).
[0048]
FIG. 12E shows the inner contour line and the outer contour line of the “cat face” created according to the above processing in accordance with the above description. The inner contour line is increased by one (new inner contour line) to three compared with before processing, and it can be seen that data in which the lines of the four whiskers and the lower part of the nose are erased are created. For this reason, even when the satin width of the contour line is very thin, or when the contour line is formed by running sewing, the contour stitching portion (FIGS. 16B and 16D) and the tatami stitching region ( A gap is not generated between FIG. 16A and the pattern formed by both of them (FIGS. 16C and 16E) can be embroidered beautifully. In addition, you may comprise a contour line sewing part by both running sewing and satin sewing.
[0049]
As is clear from the above description, according to the branch deletion process, the branches are deleted with respect to the thin-line bitmap having 4-connection and 8-connection connectivity, so that the shape of the internal sewing data is simplified and the data amount is reduced. However, since the width of the contour line can be reduced, high quality embroidery data can be created. Further, since branch deletion can be applied when creating data for closed areas and contour lines, the data becomes simple and high quality embroidery data can be created. It can also be used for noise removal. Furthermore, processing is performed based on whether or not thin line tracking has already been performed, and branch deletion is performed prior to closed loop processing. Therefore, since it is possible to determine branches and closed loops, it is possible to create data correctly. Since the processing is based on the difference in the direction of 180 degrees between the previous tracking and the current tracking, when a branch is found during thin line tracking, the branch can be deleted from the data. Since part of the figure name is iteratively processed, data can be efficiently created to perform branch deletion and closed loop discovery at each step.
[0050]
Then, the data to be processed to further determine the needle entry point for at least one of the contour line data and the internal sewing data is created based on the same thinned data, so that the width of the contour line is greatly reduced. Even if it is made thinner, the gap between the contour line and the internal stitching is less likely to occur, the appearance of the groundwork is reduced within the embroidery, and high-quality embroidery data can be easily created without specialized knowledge or skill. It becomes possible. In addition, by inputting the contour line, it is possible to create data for only the contour line stitch, only the internal stitches, or both, and various embroidery data can be created. Furthermore, since the contour line and internal stitching data are created from the same thin line image, the gap between the contour line and the internal stitching is less likely to occur, the appearance of the groundwork is reduced inside the embroidery, and there is no specialized knowledge or skill. Even high-quality embroidery data can be created easily.
[0051]
In addition, since the closed loop is detected based on whether or not tracking is performed again, when the closed region exists in the closed region and they are connected by branches, it is possible to process the inner closed region as an inner contour line. Thus, high quality embroidery data can be created. Furthermore, since the closed loop detection is based on the tracking direction, a finer judgment can be made and high quality data can be created. Then, since it is determined whether or not the tracking has already been performed based on the data of the pixel that has been traced by the thin line, if a closed loop exists during the tracking of the thin line, it can be easily detected. Further, since the closed loop is detected based on 180 degrees with respect to the tracking direction, when the closed region exists in the closed region and they are connected by branches, the inner closed region is determined according to the conditions such as the distance between the closed regions. It can be determined whether or not to process as an internal contour line.
[0052]
In the embodiment described above, needle drop point data for forming a stitch is generated from the sewing data, but display data representing an embroidery pattern may be similarly generated from dot data. In the above-described embodiment, the device is configured to be able to form both the contour portion and the inner portion thereof, but may be a device that can create only one of them. For example, when applicating a portion corresponding to the inside of the contour, data for sewing up the inside of the contour is not necessary, and therefore data for only the contour portion is necessary. On the other hand, there may be a case in which the contour portion is eliminated and the fabric is intentionally exposed to form a contour line. In this case, only data inside the contour is necessary. In either case, it goes without saying that it is desired to be faithful to the original picture, and good data can be acquired by implementing the present invention.
[0053]
【The invention's effect】
As is apparent from the above description, according to the embroidery data processing apparatus of claim 1, the branch deletion means deletes the branch with respect to the thin line bitmap having the 4-connection and 8-connection connectivity. Since the data shape is simplified, the amount of data is reduced, and the width of the contour line can be narrowed, high-quality embroidery data can be created.
[0054]
Further, according to the embroidery data processing apparatus of the second aspect, since the branch deletion can be applied when creating the data of the closed region and the contour line, the data becomes simple and high quality embroidery data can be created. . It can also be used for noise removal.
[0055]
Further, according to the embroidery data processing apparatus according to the third aspect, it is possible to determine branches and closed loops, so that data can be created correctly.
[0056]
Further, according to the embroidery data processing apparatus of the fourth aspect, when a branch is found during thin line tracking, the branch can be deleted from the data.
[0057]
Furthermore, according to the embroidery data processing apparatus of the fifth aspect, since the branch deletion and the closed loop discovery are performed at each step, data can be efficiently created.
[Brief description of the drawings]
FIG. 1 is a perspective view showing an external appearance of an embroidery data processing apparatus.
FIG. 2 is a block diagram showing an electrical configuration of the embroidery data processing apparatus.
FIG. 3 is a diagram illustrating a RAM of the embroidery data processing apparatus.
FIG. 4 is a flowchart showing an example of an overall procedure of embroidery data processing by the embroidery data processing apparatus according to the embodiment of the present invention;
FIG. 5 is a flowchart showing an example of a data processing procedure of a designated area by the embroidery data processing apparatus according to the embodiment of the present invention.
FIG. 6 is a flowchart illustrating an example of a contour data processing procedure by the embroidery data processing apparatus according to the embodiment of this invention;
FIG. 7 is a flowchart showing an example of a data processing procedure for examining a path by the embroidery data processing apparatus according to the embodiment of the present invention.
FIG. 8 is a diagram showing an order of searching around 8 around the previous path.
FIG. 9 is a diagram illustrating an example of an embroidery pattern original image.
FIG. 10 is a diagram showing a portion of a bitmap image obtained by reading an original embroidery pattern.
FIG. 11 is a diagram showing a portion of a thinned bitmap image of an embroidery pattern.
FIG. 12 is a diagram for explaining a process of extracting an inner contour line and an outer contour line of a closed region.
FIG. 13 is a diagram illustrating how to follow a path and xy coordinates when there is a branch.
FIG. 14 is a diagram for explaining how to follow a path when there is a closed loop;
FIG. 15 is a diagram for explaining how to follow a path when a closed loop is in contact;
FIG. 16 is a diagram showing an example of an embroidery stitch to be created.
FIG. 17 is a diagram showing an original picture having branches.
FIG. 18 is a diagram showing an original picture for designating an area.
FIG. 19 is a diagram illustrating an example of an embroidery stitch to be created.
FIG. 20 is a flowchart for extracting a tracking start point by the embroidery data processing apparatus according to the embodiment of the present invention;
[Explanation of symbols]
2 CPU
3 ROM
4 RAM
5 Flash memory device
6 I / O interface
7 Liquid crystal display (LCD) 7
10 Flash memory 10
12 Image scanner 12

Claims (5)

刺繍図柄を表す画像データに基づいて、該図柄の刺繍を形成するためのデータを処理する装置であって、
前記画像データを細線化する細線化手段と、
前記細線化手段により変換された細線画像に関して細線追跡する細線追跡手段と、
前記細線追跡において枝があった場合、その枝を削除する枝削除手段と
を具備することを特徴とする刺繍データ処理装置。
An apparatus for processing data for forming an embroidery of a design based on image data representing the embroidery design,
Thinning means for thinning the image data;
Fine line tracking means for tracing a fine line with respect to the fine line image converted by the thinning means;
An embroidery data processing apparatus comprising branch deletion means for deleting a branch when there is a branch in the thin line tracking.
前記細線化手段により細線化された細線画像より、前記刺繍図柄を構成する輪郭線を抽出する輪郭線抽出手段と、
前記抽出された輪郭線が成す図形の輪郭を構成する縫目若しくは抽出された閉領域が成す図形の内部を縫いつくす縫目の少なくとも一方のための縫製データ作成手段を備えることを特徴とする請求項1に記載の刺繍データ処理装置。
Contour extracting means for extracting contour lines constituting the embroidery pattern from the thin line image thinned by the thinning means;
A sewing data creating means is provided for at least one of stitches forming a contour of the figure formed by the extracted contour line or stitches stitching the inside of the figure formed by the extracted closed region. Item 4. The embroidery data processing device according to item 1.
前記細線追跡手段によって既に細線追跡を行った画素を再び追跡した場合、閉ループを検出したとし、それを内部輪郭線として領域処理する閉ループ処理手段を備え、前記枝削除手段は前記閉ループ処理手段よりも先に適用されることを特徴とする請求項1に記載の刺繍データ処理装置。When a pixel that has already been traced by the fine line tracking means is tracked again, it is assumed that a closed loop is detected, and includes a closed loop processing means for processing the area as an internal contour line. The embroidery data processing apparatus according to claim 1, which is applied first. 前記細線追跡手段による細線追跡において、その追跡方向が前回の追跡方向と180度異なるか否を判断する方向判断手段を有し、前記枝削除手段は前記方向判断手段によって、前回の追跡方向と今回の追跡方向が180度異なることが判断された場合、前回の追跡に関わる枝を削除することを特徴とする請求項2に記載の刺繍データ処理装置。In the fine line tracking by the fine line tracking means, there is a direction determining means for determining whether or not the tracking direction is 180 degrees different from the previous tracking direction, and the branch deleting means determines the previous tracking direction and the current time by the direction determining means. 3. The embroidery data processing apparatus according to claim 2, wherein when it is determined that the tracking direction is different by 180 degrees, a branch related to the previous tracking is deleted. 前記枝削除手段及び前記閉ループ処理手段は、図形の一部ずつを繰り返し処理することを特徴とする請求項3に記載の刺繍データ処理装置。4. The embroidery data processing apparatus according to claim 3, wherein the branch deletion unit and the closed loop processing unit repeatedly process a part of a figure.
JP03667297A 1997-02-20 1997-02-20 Embroidery data processing device Expired - Fee Related JP3671575B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP03667297A JP3671575B2 (en) 1997-02-20 1997-02-20 Embroidery data processing device
US09/024,578 US6192292B1 (en) 1997-02-20 1998-02-18 Embroidery data processor for preparing high quality embroidery sewing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03667297A JP3671575B2 (en) 1997-02-20 1997-02-20 Embroidery data processing device

Publications (2)

Publication Number Publication Date
JPH10230089A JPH10230089A (en) 1998-09-02
JP3671575B2 true JP3671575B2 (en) 2005-07-13

Family

ID=12476357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03667297A Expired - Fee Related JP3671575B2 (en) 1997-02-20 1997-02-20 Embroidery data processing device

Country Status (1)

Country Link
JP (1) JP3671575B2 (en)

Also Published As

Publication number Publication date
JPH10230089A (en) 1998-09-02

Similar Documents

Publication Publication Date Title
JP3908804B2 (en) Embroidery data processing device
JPH10230088A (en) Embroidery data processor
US5592891A (en) Embroidery data processing apparatus and process of producing an embroidery product
JP3424956B2 (en) Embroidery data creation device
JPH10118367A (en) Image data processing apparatus and embroidey data processing apparatus
JPH10179964A (en) Method and apparatus for processing embroidery data
US6192292B1 (en) Embroidery data processor for preparing high quality embroidery sewing
JP2001259268A (en) Embroidery data creating device and recording medium recorded with embroidery data creating program
US5740056A (en) Method and device for producing embroidery data for a household sewing machine
JP3467077B2 (en) Embroidery data creation device
US5960726A (en) Embroidery data processor
US5576968A (en) Embroidery data creating system for embroidery machine
JPH07136357A (en) Embroidery data generating device
JP3671575B2 (en) Embroidery data processing device
JP3702565B2 (en) Embroidery data processing device
JP3457388B2 (en) Embroidery data creation device
JP3741381B2 (en) Embroidery data creation device
JP3939827B2 (en) Embroidery data creation device
JPH07136361A (en) Embroidery data generating device
JPH09105068A (en) Embroidery data processing apparatus
JPH0852291A (en) Embroidery data preparing device
JP3593740B2 (en) Embroidery data creation device for sewing machine
JP2002263386A (en) Embroidery data-making system and program
JP3596123B2 (en) Embroidery data processing device
JP3669018B2 (en) Sewing pattern processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20031222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050228

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050411

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110428

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130428

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees