JP2014045873A - Embroidery data processing device, embroidery data processing program, and sewing machine - Google Patents
Embroidery data processing device, embroidery data processing program, and sewing machine Download PDFInfo
- Publication number
- JP2014045873A JP2014045873A JP2012190049A JP2012190049A JP2014045873A JP 2014045873 A JP2014045873 A JP 2014045873A JP 2012190049 A JP2012190049 A JP 2012190049A JP 2012190049 A JP2012190049 A JP 2012190049A JP 2014045873 A JP2014045873 A JP 2014045873A
- Authority
- JP
- Japan
- Prior art keywords
- color
- embroidery
- embroidery data
- data processing
- colors
- 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.)
- Pending
Links
Images
Landscapes
- Sewing Machines And Sewing (AREA)
- Automatic Embroidering For Embroidered Or Tufted Products (AREA)
Abstract
Description
本発明は、刺繍模様をミシンにより縫製するための刺繍データを処理する刺繍データ処理装置、刺繍データ処理プログラム及びミシンに関する。 The present invention relates to an embroidery data processing apparatus, an embroidery data processing program, and a sewing machine that process embroidery data for sewing an embroidery pattern with a sewing machine.
従来より、刺繍データに基づいて刺繍模様を縫製するミシンがある。このようなミシンでは、ミシンに内蔵された記憶装置、或はメモリカード等の外部の記憶装置に、複数の刺繍模様の刺繍データが記憶されている。ユーザは、複数の刺繍模様の中から、所望の刺繍模様を選択する。そして、ミシンは、選択された刺繍模様の刺繍データを読み込んで、加工布を保持した刺繍枠を移送機構により移送させながら、加工布に刺繍模様を刺繍する。 Conventionally, there is a sewing machine that sews an embroidery pattern based on embroidery data. In such a sewing machine, embroidery data of a plurality of embroidery patterns is stored in a storage device built in the sewing machine or an external storage device such as a memory card. The user selects a desired embroidery pattern from a plurality of embroidery patterns. The sewing machine reads the embroidery data of the selected embroidery pattern and embroidery the embroidery pattern on the work cloth while transferring the embroidery frame holding the work cloth by the transfer mechanism.
ところで、刺繍模様は、異なる色(糸色)で縫製される複数の色別模様部からなるものと、単色で縫製されるものがある。前者の刺繍模様における色別模様部の色は、予め規定の色に設定されている。また、刺繍データ編集装置には、予め好ましい色の組合せを示す配色データを記憶させておき、当該配色データと生地(加工布)の色等を示す生地データとに基づいて、刺繍模様の色別模様部の色を設定するようにしたものがある(例えば特許文献1参照)。 By the way, the embroidery pattern includes a pattern composed of a plurality of color-specific pattern parts sewn with different colors (thread colors) and a pattern embroidered with a single color. The color of the pattern portion by color in the former embroidery pattern is set in advance to a prescribed color. Further, the embroidery data editing apparatus stores color arrangement data indicating a preferable combination of colors in advance, and the embroidery data for each color of the embroidery pattern is based on the color arrangement data and the cloth data indicating the color of the cloth (work cloth). There is one in which the color of the pattern portion is set (see, for example, Patent Document 1).
特許文献1の刺繍データ編集装置では、生地の色と配色データに基づき、刺繍模様の色別模様部の色が一義的に決定される。しかし、ユーザとしては、色別模様部の色が生地の色で制約されるのではなく、色別模様部の夫々について「規定の色」ではない好みの色や或は奇抜な色で縫製したい場合もある。しかしながら、このような刺繍模様の色の指定を行うには、色別模様部のデータを1つ1つ読み出して該当する糸色データの確認や指定を行わなければならず、手間がかかり面倒である。
また、単色で縫製する刺繍模様の場合は、ユーザが、多色で縫製する刺繍模様に変更することはできなかった。
In the embroidery data editing apparatus of
In the case of an embroidery pattern sewn with a single color, the user cannot change to an embroidery pattern sewn with multiple colors.
本発明は上記事情に鑑みてなされたものであり、その目的は、刺繍模様をより多くの色を用いて多彩に表現することができると共に、多彩な配色パターンを簡単に得ることができる刺繍データ処理装置、刺繍データ処理プログラム及びミシンを提供することである。 The present invention has been made in view of the above circumstances, and an object of the present invention is to embroidery data that can express a variety of embroidery patterns using more colors and can easily obtain a variety of color arrangement patterns. A processing apparatus, an embroidery data processing program, and a sewing machine are provided.
上記した目的を達成するために、本発明の請求項1の刺繍データ処理装置は、刺繍模様をミシンにより縫製するための刺繍データを処理するものであり、前記刺繍データに基づいて刺繍模様を複数の部分領域に分割する模様分割手段と、予め定義されている複数色を記憶する色記憶手段と、前記模様分割手段で分割された前記部分領域毎に、前記色記憶手段に記憶されている複数色の中から当該部分領域の色を特定する糸色データとして用いる色をランダムに抽出して割り当てる割当手段と、を備えることを特徴とする。
To achieve the above object, an embroidery data processing apparatus according to
請求項1の刺繍データ処理装置によれば、刺繍模様について複数の部分領域に分割し、それら部分領域に対して割当手段により抽出された色を割り当ててランダムな配色を行うことができる。従って、元の刺繍データが単色の刺繍模様であっても、これを分割して、多くの色を用いた刺繍模様とすることができる。また、糸色データの確認や指定といった面倒な作業を省略して、刺繍模様の配色を簡単に行うことができる。刺繍模様について、偶然性や意外性のある配色が可能となり、規定の配色にとらわれない多様な配色パターンを得ることができる。 According to the embroidery data processing apparatus of the first aspect, the embroidery pattern can be divided into a plurality of partial areas, and the colors extracted by the assigning unit can be assigned to the partial areas to perform random color arrangement. Therefore, even if the original embroidery data is a single color embroidery pattern, it can be divided into embroidery patterns using many colors. Further, the troublesome work such as confirmation and designation of the thread color data can be omitted, and the embroidery pattern can be easily colored. With regard to the embroidery pattern, it is possible to have a color scheme that is accidental or unexpected, and a variety of color scheme patterns that are not confined to the prescribed color scheme can be obtained.
以下、本発明を家庭用ミシン(以下、ミシンMと称す)に適用した一実施形態について、図1〜図18を参照しながら説明する。図1において、ミシンMは、左右方向に延びるベッド部1と、ベッド部1の右端部から上方に立上がる脚柱部2と、脚柱部2の上部からに左方に延びるアーム部3とを一体に備えて構成されている。アーム部3内には、ミシン主軸(図示略)が左右方向に延びるように設けられている。脚柱部2内には、前記ミシン主軸を回転させるミシンモータ4(図2参照)が配設されている。
Hereinafter, an embodiment in which the present invention is applied to a household sewing machine (hereinafter referred to as a sewing machine M) will be described with reference to FIGS. In FIG. 1, the sewing machine M includes a
アーム部3の先端部には、縫針5を装着した針棒5aと、押え足6を備えた押え棒(図示略)とが設けられている。また、図示は省略するが、アーム部3内には、前記針棒をミシン主軸の回転に基づき上下動させる針棒駆動機構、針棒を布送り方向と直交する方向(左右方向)に揺動させる針棒揺動機構、天秤を針棒の上下動に同期して上下動させる天秤駆動機構、前記押え棒を上下動させる押え棒駆動機構等が配設されている。
アーム部3には、上面側を開閉するカバー3aが開閉可能に設けられている。カバー3aを開けた状態におけるアーム部3の手前側の中央部には、糸駒10を収容するための収容部10aが設けられている。糸駒10から延びる上糸は、前記天秤等を含む糸供給経路を経由して縫針5に供給される。
A
The
アーム部3の前面側には、ミシンMの縫製動作の起動と停止を指令する起動停止スイッチ8a等の各種のスイッチ類と、縫製速度(ミシン主軸の回転速度)を設定するための速度調節ツマミ8bが設けられている。尚、ミシンMに対して使用者(ユーザ)が位置する方向、つまりミシンMにおけるスイッチ類(或は以下の表示手段)の側を前方とし、その反対方向を後方とする。また、脚柱部2が位置する側を右側とし、その反対側を左側とする。
On the front side of the
脚柱部2の前面には、大型で縦長形状をなしフルカラー表示が可能なディスプレイ9が設けられている。ディスプレイ9は、例えば液晶カラーディスプレイから構成された表示手段であり、多数色の表示が可能である。ディスプレイ9には、実用模様や刺繍模様等の種々の縫製模様(図4参照)、縫製作業に必要な各種の機能を実行させる機能名、及び後述する配色処理に係る設定を行うための設定画面等が表示される。また、ディスプレイ9の前面には、透明電極からなる複数のタッチキーを有するタッチパネル9a(図2参照)が設けられている。タッチキーがユーザの指又は図示しないタッチペンで押圧操作(以後、タッチ操作と称す)されることで、前記の縫製模様の選択、各種機能の指示、各種のパラメータ等の設定が可能になっている。
脚柱部2の右側面には、各種の刺繍模様の刺繍データ等が記憶されているメモリカード11(図2にのみ図示)が挿入されるカードスロット12が設けられている。
A
A
ベッド部1の上面には、図示しない針板が設けられている。また、いずれも図示は省略するが、ベッド部1内には、前記針板の下側に位置して、送り歯を上下方向及び前後方向に移動させる布送り機構、下糸ボビンを収容し縫針5と協働して縫目を形成する水平回転釜、上糸と下糸を切断する糸切り機構等が配設されている。
ベッド部1の左側部分には、刺繍枠移送装置13が取外し可能に装着される。刺繍枠移送装置13は、ベッド部1の上面と同じ高さになる本体部14と、本体部14の上面部に左右方向に移動可能に設けられた可動部15とを備えている。可動部15には、キャリッジ17が前後方向に移動可能に設けられている。キャリッジ17には、縫製対象たる加工布CLを保持する刺繍枠16が着脱可能に装着される。本体部14内には、キャリッジ17を可動部15ごと左右方向に駆動させるX方向移送機構(図示略)が設けられる。可動部15内には、キャリッジ17を前後方向に移動させるY方向移送機構(図示略)が設けられている。刺繍枠16は、前記刺繍模様の刺繍データに基づいて、X方向移送機構及びY方向移送機構の夫々の駆動モータ(後述するX軸モータ18及びY軸モータ19、図2参照)の駆動により、左右方向たるX方向、或は前後方向たるY方向へ移動される。
A needle plate (not shown) is provided on the upper surface of the
An embroidery
続いて、ミシンMの制御系の構成について、図2のブロック図を参照しながら説明する。
制御装置21は、マイクロコンピュータを主体に構成されており、内部にCPU22、ROM23、RAM24、EEPROM25、カードスロット12、入力インターフェース27a、出力インターフェース27b、それらを結ぶバス28等を有する。入力インターフェース27aには、起動停止スイッチ8a、タッチパネル9aが接続されている。出力インターフェース27bには、ミシンモータ4、X軸モータ18、Y軸モータ19、ディスプレイ9を夫々駆動する駆動回路31,32,33,34が接続されている。制御装置21、ディスプレイ9及び駆動回路34は、表示手段に相当する。また、制御装置21、タッチパネル9a、ディスプレイ9、駆動回路34等から、刺繍データ作成装置30が構成される。
Next, the configuration of the control system of the sewing machine M will be described with reference to the block diagram of FIG.
The
ROM23には、刺繍データ、刺繍データ処理プログラム、縫製制御プログラム、表示制御プログラム、全糸情報テーブルが記憶されている。このうち、刺繍データ処理プログラムは、刺繍データを作成するための各種処理手段としてコンピュータを機能させるためのプログラムである。全糸情報テーブルは、刺繍縫製に用いられる複数種類の糸に関する全ての情報であって後述の糸の色情報や品番等を含み、表示制御プログラムは、ディスプレイ9を制御する。また、ROM23には、後述する刺繍模様を分割するための種々の分割線を規定するテンプレートパターンデータが記憶されている(図5の分割線L1〜L9、図19(a)の分割線L11〜L16、図19(b)の分割線L21〜L23参照)。尚、これら各種のプログラムやデータは、EEPROM25等を含む他の内部記憶手段や、メモリカード11等の外部記憶手段に記憶されてもよい。例えば刺繍データ処理プログラムが外部記憶手段に記憶されている場合、制御装置21は、当該プログラムをRAM24上に読み込んで実行する。
The
RAM24は、上記のプログラムやデータ、タッチパネル9aの操作等で入力された各種の設定値、制御装置21で演算された演算結果等を一時的に記憶するための記憶領域を有する。詳細には、図3に示すように、RAM24には、プログラム記憶領域241、設定記憶領域242、刺繍データ記憶領域243、フラグ記憶領域244、パレット記憶領域245、色情報記憶領域246、画像表示データ記憶領域247、作業領域248、抽出データ記憶領域249等、複数の記憶領域が設けられている。プログラム記憶領域241は、ROM23等から読み出された各種のプログラムを記憶する。設定記憶領域242は、プログラムの実行の際に参照される設定値等を記憶する。刺繍データ記憶領域243は、刺繍データ作成時の元(基準)となるデータを記憶する。フラグ記憶領域244は、プログラムの実行の際に使用される各種フラグを記憶する。パレット記憶領域245は、後述するパレットテーブルから選定した色を記憶する。
The
色情報記憶領域246は、刺繍模様の配色に用いられるデータを記憶する濃淡別バッファを備える。詳しくは後述するように、濃淡別バッファは、当該データについて色の濃淡レベル毎に複数のグループに分けて記憶するための記憶領域として構成されている。また、抽出データ記憶領域249は、ランダムに抽出した色を一時的に記憶する。尚、画像表示データ記憶領域247は、ディスプレイ9に表示する画面の画像データや表示設定を記憶し、作業領域248は、各種のプログラムの実行時に設定値等を予備的に記憶する。
The color
前記刺繍データについて、図4に示すディスプレイ9の画面100に表示された「花」の刺繍模様40を例に説明する。「花」の刺繍模様40は、異なる色(糸色)で縫製される複数の色別模様部からなるが、本実施形態においては説明を簡単にする為、単色で縫製される刺繍模様であるとする。刺繍データは、刺繍模様をミシンMにより縫製するためのデータであって、刺繍模様40の縦方向及び横方向の大きさを示すマスクデータ、刺繍模様40の閉領域400における針落ち位置を示す針落ち位置データ、当該データの終了を示すコード等を含む。マスクデータは、図5(a)に示すように刺繍模様40の輪郭を囲う最小の矩形枠Fのデータである。つまり、マスクデータは、刺繍模様40の輪郭のX座標における最小値及び最大値、並びに当該輪郭のY座標における最小値及び最大値を示す。
The embroidery data will be described by taking an example of the “flower”
針落ち位置データは、例えば一針毎の針落ち位置(加工布CLのXY方向の送り量)を指示するデータの集合である。針落ち位置データは、少なくとも刺繍模様40の輪郭上に針落ち位置を配置して、閉領域400の内部を例えばサテン縫いのステッチにより塗り潰す(埋め尽くす)ように設定されている。また、刺繍模様40の針落ち位置データは、例えば閉領域400のうち最もX座標の小さい点(図5で左端の点)が刺繍開始点P1、最もX座標の大きい点が刺繍終了点Peとして設定されている。従って、図6(a)の拡大図で模式的に示すように、サテン縫いのステッチは、閉領域400内を左側から塗り潰すようにして形成される。尚、同図において、符号P1,P2,P3,…は針落ち順序に対応する。
The needle drop position data is, for example, a set of data indicating the needle drop position (feed amount in the XY direction of the work cloth CL) for each stitch. The needle drop position data is set so that the needle drop position is arranged at least on the outline of the
また、刺繍データは、刺繍模様40の閉領域400の色を特定するための糸色データと、刺繍模様40をディスプレイ9に表示する画像データ(例えばビットマップデータ(図示略))を含む。糸色データは、閉領域400の縫製で用いられる糸色を示すものとして、例えばRGB値で設定されている。例えば、「赤」の糸色データがRGB値で与えられている場合、刺繍模様40はディスプレイ9の画面100において、「赤」で表示される。尚、糸色データは、前記閉領域や後述する部分領域の色を特定するデータであればよく、例えば、閉領域400に係る前記ビットマップデータの各画素において「赤」の色を表わすデータを含む。
The embroidery data includes thread color data for specifying the color of the
EEPROM25は、前記糸色データとして刺繍模様40に割り当てられる色情報を記憶しており、前記RAM24と共に色記憶手段に相当する。色情報は、例えば、ミシンMにおいて使用可能な糸駒10の糸色に関する情報であって、RGB値で予め定義されている。具体的には、例えば300色分のRGB値と当該RGB値に夫々対応付けられた1〜300のパレット別色番号とからなるパレットテーブルがEEPROM25に記憶されている。パレットテーブルの色は、その300色分についてパレット別色番号により識別される。
The
本実施形態では、RGB値の他、当該RGB値に対応するHSV空間における色相(Hue)、彩度(Saturation)、明度(Value)により定義されるHSV値が用いられる。HSV値は、制御装置21によってRGB値に基づき公知の算出方法により演算される値で、色相値H、彩度値S、及び明度値Vで表される。この場合、色相とは赤、紫、青等の色の種類で、Hの値は例えば0〜360の範囲にある。彩度は色の鮮やかさで、Sの値は例えば0.0〜1.0の範囲にある。明度は色の明るさで、Vの値は例えば0.0〜1.0の範囲にある。
In the present embodiment, in addition to RGB values, HSV values defined by hue (Hue), saturation (Saturation), and lightness (Value) in the HSV space corresponding to the RGB values are used. The HSV value is a value calculated by a known calculation method based on the RGB value by the
前記色情報は、複数のカテゴリ別に分類することができる。カテゴリとして例えば「グラデーション」の他、「ビビッド」、「ソフト」の分類基準が用意されている。これらカテゴリには、上記のHSV値で示される閾値が夫々設定され、各色情報は、当該カテゴリ毎に閾値で区分される。
即ち、「グラデーション」は、各色情報のうちの1つの色の色相レベルを中心値とした所定の色相レベルの閾値HG1〜HG2で画されるカテゴリである(図11のステップD1参照)。このため、「グラデーション」のカテゴリに属する色は、ある1つの色、例えば紫に対して、閾値HG1に相応する赤〜閾値HG2に相応する青の範囲内にある、カラーグラデーションを呈する。
The color information can be classified into a plurality of categories. For example, in addition to “gradation”, “Vivid” and “soft” classification criteria are prepared. In these categories, threshold values indicated by the HSV values are set, and each color information is classified by threshold value for each category.
That is, “gradation” is a category defined by thresholds H G1 to H G2 of a predetermined hue level centered on the hue level of one color of each color information (see step D1 in FIG. 11). For this reason, a color belonging to the “gradation” category exhibits a color gradation that falls within a range of red corresponding to the threshold value H G1 to blue corresponding to the threshold value H G2 for a certain color, for example, purple.
「ビビッド」は、彩度値Sに係る閾値が設定されることで分類される色であって、各色情報のうち彩度値Sが当該閾値よりも高い数値の色で構成されるカテゴリである。「ビビッド」のカテゴリに属する色は、何れもビビッドで鮮明な色調を有し、比較的彩度のレベルが高いものとされる。「ソフト」は、彩度値Sに係る閾値の下限及び上限が設定されることで分類される色であって、各色情報のうち彩度値Sが当該閾値の下限及び上限の範囲の色で構成されるカテゴリである。「ソフト」のカテゴリに属する色は、何れも互いの彩度のレベルに大差が無く全体としてソフトな色合いを呈する。上記した「グラデーション」、「ビビッド」、「ソフト」の各閾値に係る情報は、例えばEEPROM25に記憶されている。
“Vivid” is a color that is classified by setting a threshold value related to the saturation value S, and is a category that is composed of numerical values having a saturation value S higher than the threshold value in each color information. . All the colors belonging to the “Vivid” category have a vivid and clear color tone and a relatively high saturation level. “Soft” is a color that is classified by setting a lower limit and an upper limit of a threshold value related to the saturation value S, and the saturation value S in each color information is a color in a range of the lower limit and the upper limit of the threshold value. It is a category that consists of. All the colors belonging to the “soft” category exhibit a soft hue as a whole with no great difference in the level of saturation. Information relating to the above threshold values of “gradation”, “vivid”, and “soft” is stored in the
また、本実施形態の制御装置21は、図5に示すように刺繍模様40を複数の部分領域401〜410に分割する。そして、これら部分領域401〜410の糸色データとして用いる色を、上記したカテゴリに属する色、或は前記濃淡別バッファの色の中からランダムに抽出し、所定の配列規則に従い部分領域401〜410の位置に対応させて割り当てる割当処理を行う。これにより、単色の刺繍模様40の刺繍データを元に、配色バランスのとれた複数の糸色で縫製される刺繍模様40の刺繍データを簡単に得ることができる。
Further, the
即ち、制御装置21は、前記マスクデータ及びテンプレートパターンデータに基づいて、図5(a)に示すように刺繍模様40を包含する矩形枠Fを設定すると共に、当該矩形枠F内を例えば10等分するように区分けする分割線L1〜L9を設定する。また、制御装置21は、針落ち位置データを順次読み出して分割線L1〜L9の位置情報と照合することにより、1つの閉領域400を、第1部分領域401〜第10部分領域410に分割した針落ち位置データを作成する。
That is, the
一方、制御装置21は、「グラデーション」のカテゴリが設定されている場合、そのカテゴリに属する色について、前記彩度値Sに基づき濃淡レベルLVを判別するための濃淡レベルテーブルを作成する。詳しくは後述するように、濃淡レベルLVの区分数Dは、部分領域401〜410の総数xの範囲内で任意に設定される(x≧D≧2)。例えば図7(a)に示すように、濃淡レベルLVの区分数が部分領域401〜410の総数xと一致するように設定された場合、濃淡レベルテーブルにおける彩度値Sは、部分領域401〜410の総数xで区分(除算)した彩度単位UXで表わされる。これにより、彩度値Sが0%超UX%以下の範囲を濃淡レベルLV1、UX%超2UX%以下の範囲を濃淡レベルLV2、…、(x−1)UX%超100%以下の範囲を濃淡レベルLVxに設定する。尚、詳しい説明は省略するが、本実施形態では彩度値Sが0%の無彩色(白、黒、灰色)について、明度値Vに基づいて濃淡レベルLVが判別されるようになっており、例えば白は濃淡レベルLV1に、黒は濃淡レベルLVxに区分される。また、濃淡レベルは、彩度値や明度値に基づく区分に限定するものではなく、RGB値を利用して設定してもよい。
On the other hand, when the “gradation” category is set, the
制御装置21は、前記濃淡別バッファ(RAM24の色情報記憶領域246)に、上記のカテゴリに属する色のRGB値を、濃淡レベル毎にLV1〜LVxのグループに分けて記憶させる。この場合、濃淡別バッファには、各グループに属する複数色のRGB値が、当該RGB値に夫々対応付けられた濃淡別色番号と共に記憶される。こうして、制御装置21は、前記パレットテーブル或は上記したカテゴリに属する色を、濃淡により分割数に応じた複数のグループに配分する。
The
また、制御装置21は、前記割当処理においてランダムに配色するために乱数を発生させる乱数発生手段として構成されている。そして、詳しくは後述するように、制御装置21は、部分領域401〜410の位置に対応させて、所定の配列規則に従い該当する濃淡レベルLVに属する色の中から、乱数を利用して糸色データとして用いる色をランダムに抽出して割り当てる。
Further, the
次に、刺繍データ処理プログラムの動作について、前記糸色データに関する配色を中心に図8〜図17を参照しながら説明する。図8〜図17は、刺繍データ処理プログラムに基づいて制御装置21が実行する処理手順を示すフローチャートである。
ユーザは、タッチパネル9aをタッチ操作して、ROM23から刺繍データを読み取り、その刺繍データに従ってディスプレイ9の模様選択画面(図示略)を表示する。模様選択画面における複数の刺繍模様の中から、ユーザが所望の刺繍模様をタッチ操作により選択すると、当該刺繍模様を表示した図4の拡大表示画面100に切換わる。これにより、選択した刺繍模様について刺繍データ処理プログラムが開始される。図8に示すように、刺繍データ処理プログラムでは、刺繍模様における同色の閉領域に対して分割線を設定する処理(ステップA1)と、その分割線により閉領域を複数の部分領域に分割する処理(ステップA2)と、分割した部分領域毎に配色する処理(ステップA3)とが実行される。以下、ステップA1〜A3について、刺繍模様40を選択した場合を例に詳述する。
Next, the operation of the embroidery data processing program will be described with reference to FIGS. 8 to 17, focusing on the color scheme relating to the thread color data. 8 to 17 are flowcharts showing a processing procedure executed by the
The user touches the
図9はステップA1における分割線設定処理の流れを示している。先ず制御装置21は、刺繍模様40の分割に係るユーザの指定が無い場合(ステップB1にてNO)、ROM23から分割線のテンプレートパターンデータを読み込む(ステップB2)。この場合、テンプレートパターンデータと刺繍模様40のマスクデータに基づいて、図5(a)に示す境界枠としての矩形枠F内を、例えば10等分するように区分けする分割線L1〜L9が自動的に設定される(ステップB3、B5)。この分割線L1〜L9は、例えば矩形枠F内において刺繍開始点P1から刺繍終了点Peに向かう左右方向に等間隔に並列し、矩形枠F内を所定の大きさの区域A1〜A10に区分けする。
FIG. 9 shows the flow of the dividing line setting process in step A1. First, when there is no user designation for dividing the embroidery pattern 40 (NO in step B1), the
一方、ユーザは、ステップA1においてタッチパネル9aをタッチ操作し、種々の分割線のパターンの中から所望する分割線Lと、その分割線Lによる分割数を指定することができる(ステップB1にてYES、ステップB4)。制御装置21は、指定された分割線Lの種類と分割数に基づいて、矩形枠F内を等分し或は分割線Lを並列させるように設定する。例えば、縦方向を指向する分割線L及び分割数「10」が指定された場合、制御装置21は、矩形枠Fの上辺(或は下辺)の長さを分割数で除算し、その算出値を分割線Lの間隔として設定することで、矩形枠F内が上記と同じ区域A1〜A10に区分けされる(ステップB5)。
On the other hand, the user can touch the
次いで、分割線L1〜L9により刺繍模様40の閉領域400を複数の部分領域401〜410分割するステップA2の分割処理に移行する(図10参照)。分割処理において、制御装置21は、針落ち順序が1番目の針落ち位置データを取得し、分割線L1〜L9の座標データと照合して、当該針落ち位置P1が矩形枠F内で何れの区域A1〜A10にあるか識別する(ステップC1,C2)。当該針落ち位置は、図5で左端の区域A1にあり、且つ前述した刺繍開始点P1である(ステップC3にてYES)。
Next, the process shifts to the dividing process of step A2 in which the
そこで、制御装置21は、続く2番目の針落ち位置データを取得し、その針落ち位置P1について1番目の針落ち位置P1と同様に何れの区域A1〜A10にあるか識別する(ステップC1,C2)。ここで、識別した2番目の針落ち位置P1の区域と、1番目の針落ち位置P2の区域A1とが一致するか否かを判断し、両針落ち位置P1,P2の区域がA1で一致する場合には、再度ステップC1にリターンする(ステップC3にてYES)。このように、3番目以降の針落ち位置P3〜についても、その一針前の針落ち位置の区域と一致しない(ステップC3にてNO)と判断されるまで、ステップC1〜C3が繰り返し実行される。
Therefore, the
ここで、図6(b)の模式図において、符号P16とP17で示す針落ち位置間を通る分割線L1が設定されているものと仮定する。この場合、針落ち位置P17の区域A2と、その一針前の針落ち位置P16の区域A1とが一致しない(ステップC3にてNO)。このとき、制御装置21は、一針前の針落ち位置P17までを区域A1における第1部分領域401とし、その針落ち位置データの末尾として「停止コード」を付加する(ステップC4、図6(c)参照)。或は、制御装置21は、針落ち位置P16,P17間を結ぶ線分と分割線L1との交点(図6(b)参照)の座標を算出する。その交点を第1部分領域401の針落ち位置の終了点とする針落ち位置データと「停止コード」を付加すると共に、当該交点を第2部分領域402の針落ち位置の開始点P1とする針落ち位置データを付加するようにしてもよい。
Here, in the schematic diagram of FIG. 6B, it is assumed that a dividing line L1 passing between the needle drop positions indicated by reference numerals P16 and P17 is set. In this case, the area A2 of the needle drop position P17 does not match the area A1 of the needle drop position P16 one stitch before (NO in step C3). At this time, the
針落ち位置P17以降つまり区域A2以降の右側の区域についても(ステップC5にてNO)、針落ち順序に従い一針毎にステップC1〜C3が実行される。そして、前記ステップC2で識別された針落ち位置が、その一針前の針落ち位置の区域と一致せず、分割線を跨ぐ度に(ステップC3にてNO)、第1部分領域401と同様に「停止コード」が付加される(ステップC4)。こうして、刺繍模様40の針落ち位置データは、一針毎に読み取られてステップC1〜C5が繰り返し実行されることにより、区域毎に「停止コード」が夫々付加されたデータ群として、第1部分領域401、第2部分領域402、…、第10部分領域410の順に縫製動作を実行するように分割される(図5(a)参照)。そして、制御装置21は、前述した刺繍終了点Peの針落ち位置データまで読み取ると(ステップC5にてYES)、分割処理を終了してステップA3に移行する。
Also after the needle drop position P17, that is, the right zone after the zone A2 (NO in step C5), steps C1 to C3 are executed for each stitch according to the needle drop order. Each time the needle drop position identified in step C2 does not coincide with the area of the needle drop position immediately before that stitch and crosses the dividing line (NO in step C3), the same as in the first
尚、図5の刺繍模様40では、一つの部分領域(例えば第2部分領域402)が互いに離間した複数の領域402a,402bで構成されている。このような場合には、当該部分領域402に関し、それら領域402a,402b間を所謂ジャンプ縫いにより順に連続して縫製動作を実行するように、前記「停止コード」と併せて「ジャンプ縫いコード」を付加すればよい。ジャンプ縫いに係る構成については、本出願人が出願した特開平07−003608号公報や特開2005−279069号公報に開示していることから、詳細な説明は省略する。
In the
図11は、上記した分割処理後に実行されるステップA3での配色処理の流れを示している。配色処理では、「グラデーション」のカテゴリが設定されている場合、そのカテゴリに属する色を抽出する(ステップD1)。
即ち、制御装置21は、例えば前記パレットテーブルの色の数に対応する1〜300までの乱数を発生させる。次いで、発生した乱数と一致するパレットテーブルの1〜300のパレット別色番号を照合し、当該パレット別色番号に対応するRGB値を抽出する。また、制御装置21は、抽出したRGB値に基づいてHSV値を演算し、その色相値Hを中心値とする範囲(閾値HG1、HG2)を設定する。そして、パレット別色番号1のRGB値に基づいて色相値Hを演算し、色相値Hが閾値HG1〜HG2の範囲内にあるか否かを判断する。ここで、パレット別色番号1の色について、色相値Hが閾値HG1〜HG2の範囲内にある場合に、「グラデーション」のカテゴリに属する色として選定され(RAM24のパレット記憶領域245に記憶され)、閾値HG1〜HG2の範囲外にある場合には選定されない。
FIG. 11 shows the flow of color arrangement processing in step A3 executed after the above-described division processing. In the color arrangement process, when the “gradation” category is set, colors belonging to the category are extracted (step D1).
That is, the
パレット別色番号2以降の色についても、パレット別色番号1と同様に、色相値Hが演算されて閾値HG1〜HG2の範囲内にあるか否かが判断されることで、パレット記憶領域245への保存の有無が判断される。こうして、「グラデーション」のカテゴリが設定されている場合、パレットテーブルは、その300色の中から「グラデーション」のカテゴリに属する色が選定(更新)され、その更新後の内容でパレット記憶領域245に記憶される。
Similarly to the palette-
そして、制御装置21は、乱数を利用して刺繍模様40における部分領域401〜410のうち、何れか2つの部分領域を任意に決定する(ステップD2)。このうち一方の部分領域は、刺繍模様40において最も高い濃淡レベル(濃色ピークHp)の色を配色するための部分領域とされ、他方の部分領域は、最も低い濃淡レベル(淡色ピークLp)の色を配色するための部分領域とされる。ここで、例えば、図5(a)に示すように淡色ピークLpが第3部分領域403に、濃色ピークHpが第7部分領域407に夫々決定されたものとする。
And the
ステップD3では、彩度値Sについて、淡色ピークLpから濃色ピークHpまでの部分領域の数(この場合、第3〜第7部分領域403〜407までの5つ)で除算して彩度単位Uを求める。これにより、淡色ピークLp及び濃色ピークHpとなる部分領域403,407の位置に応じて彩度単位U(濃度単位)で区分した濃淡レベルテーブルを作成すると共に色分け処理を実行する。
In step D3, the saturation value S is divided by the number of partial regions from the light color peak Lp to the dark color peak Hp (in this case, five from the third to seventh
具体的には、図7(b)の濃淡レベルテーブルに示すように、制御装置21は、彩度値Sを第3〜第7部分領域403〜407に対応する5つに区分することで(区分数D=5)、彩度単位Uを20%に設定する。また、色分け処理において、制御装置21は、前記ステップD1で更新したパレットテーブルのパレット別色番号1に対応するRGB値を読み出す。次いで、制御装置21は、読み出したRGB値に基づいて彩度値Sを演算し、前記濃淡レベルテーブルを照合する。これにより、パレット別色番号1の色は、該当する濃淡レベルLVにおける新たな濃淡別色番号1の色として色情報記憶領域246の濃淡別バッファに記憶される。パレット別色番号が2以降の色についてもRGB値が読み出され、該当する濃淡レベルLV別に新たに濃淡別色番号が付与されて、濃淡別バッファに記憶される。こうして、前記ステップD1で更新したパレットテーブルの色は、濃淡レベルLV1〜LV5のグループ毎に濃淡別色番号が新たに付与されて濃淡別バッファに記憶される。
Specifically, as shown in the shading level table of FIG. 7B, the
そして、制御装置21は、部分領域401〜410毎に、上記した濃淡別バッファのデータに基づき、淡色ピークLp或は濃色ピークHpとなる部分領域403,407の位置に対応させてランダムに配色する(ステップD4〜)。
即ち先ずステップD4において、制御装置21は、RAM24の濃淡別バッファを参照し、濃淡レベルLV1に属する色の総数の範囲内で乱数を発生させる。例えば、色の総数つまり濃淡別色番号の最大値が例えば25の場合、1〜25の範囲で乱数を発生させる。次いで、制御装置21は、濃淡レベルLV1において発生した乱数と一致する濃淡別色番号を照合し、該当する濃淡別色番号の色(RGB値)を抽出する。これにより、淡色ピークLpとなる第3部分領域403に対して、最も低い濃淡レベルLV1に属する色の中から糸色データとして用いる色がランダムに抽出される。また、抽出された色は、第3部分領域403に割り当てる色として、RAM24の抽出データ記憶領域249に記憶される。
Then, the
That is, first in step D4, the
ステップD5では、配色対象を、淡色ピークLpの第3部分領域403から濃色ピークHp側へ一個分、隣り(図5(b)で右隣り)に移した第4部分領域404に設定する。そして、先に配色した第3部分領域403の濃淡レベルLV1よりも一つ高いLV2に属する色の中から、上記と同様にランダムに色を抽出する(ステップD6)。抽出した色は、第4部分領域404に割り当てる色として、抽出データ記憶領域249に記憶される(ステップD7)。続けて濃色ピークHp側へ順次配色を行うべく(ステップD8にてNO)、配色対象を、第4部分領域404の右隣りの第5部分領域405に設定する(ステップD5)。そして、第5部分領域405に対して割り当てる色を、第4部分領域404の濃淡レベルLV2よりも一つ高いLV3に属する色の中からランダムに抽出し、抽出データ記憶領域249に記憶する(ステップD6,D7)。
In step D5, the color arrangement target is set to the fourth
こうして、ステップD5〜D8が繰り返し実行されることで、第4部分領域404、第5部分領域405、第6部分領域406に対して、濃淡レベルLV2,LV3,LV4の色が割り当てられ、濃色ピークHpとなる第7部分領域407に、最も高い濃淡レベルLV5の色が割り当てられる(ステップD8にてYES)。これにより、淡色ピークLpの第3部分領域403から濃色ピークHpの第7部分領域407にわたる夫々の糸色データは、それら部分領域403〜407の位置に応じてグラデーション状に濃くなる色が割り当てられる。その後、ステップD9とステップD10では、刺繍模様40において残る未配色の左側の部分領域401,402と右側の部分領域408〜410とが夫々配色される。
In this way, steps D5 to D8 are repeatedly executed, so that the colors of the light and shade levels LV2, LV3, and LV4 are assigned to the fourth
図12は、ステップD9に係る左側の部分領域401,402の配色処理の流れを示している。先ず、ステップE1では、配色対象となる領域TLを、淡色ピークLpの第3部分領域403から濃色ピークHpとは反対側に一個分、隣り(図5(b)で左隣り)の第2部分領域402に設定する。そして、刺繍模様40における淡色ピークLpより左側の部分領域402,401について、前記ステップD4〜D8で抽出した色を用いて、左側へ向かうに従い順次濃くなるグラデーション状の配色を行う(ステップE2、図13参照)。
FIG. 12 shows the flow of color arrangement processing of the left
即ち、制御装置21はステップF1にて、現在の配色対象領域TLたる部分領域402を、配色開始領域SLに設定する(図5(b)参照)。次いで、制御装置21は、配色開始領域SLから配色対象領域TLまでの部分領域の数NL、つまり淡色ピークLpの部分領域403よりも左側で配色を終えた部分領域の数NLを算出する(ステップF2)。そして、既に配色済みの部分領域403〜407のうち淡色ピークLpの部分領域403から(NL+1)個分隣りの色を、配色対象領域TLに割り当てる色として抽出データ記憶領域249に記憶する(ステップF3)。従って、上記ステップF2,F3における第2部分領域402については、NL=0であり、淡色ピークLpの右隣りの第4部分領域404と同じ色が割り当てられることとなる(図5(b)参照)。
That is, the
その後、ステップF4では、淡色ピークLpより左側の部分領域402,401において、Nc個分の配色を終えたか否かが判断される。ここで、個数Ncは、淡色ピークLpの部分領域403と濃色ピークHpの部分領域407とで挟まれる部分領域404〜406の数(Nc=3個)である。また、ステップF5では、配色対象領域TLが、刺繍模様40における左端の部分領域401,407か否かが判断される。第2部分領域402については、1個分(<Nc(3個))の配色を終えたにすぎず(ステップF4にてNO)、且つ左端の部分領域401,407に該当しない(ステップF5にてNO)。従って、配色対象領域TLは、部分領域402の左隣りの第1部分領域401に設定される(ステップF6、ステップF2にリターン)。
Thereafter, in step F4, it is determined whether or not Nc color arrangements have been completed in the
第1部分領域401についても、ステップF2でNLが算出され(この場合NL=1)、淡色ピークLpの部分領域403から(NL+1)個分、右隣りの部分領域405と同じ色が割り当てられる(ステップF3)。上記した刺繍模様40の例では、淡色ピークLpより左側に、部分領域402,401が2個しか存在しない(ステップF4にてNO)。従って、第1部分領域401の配色を終えると、刺繍模様40の左端までの配色が完了したと判断され(ステップF5にてYES、図12のステップE3にてYES)、図11のステップD10へ移行する。この時点で、第1部分領域401〜第7部分領域407にわたって、左側から順に濃淡レベルLV3,LV2,LV1,LV2,LV3,LV4,LV5の色が並ぶ配色が行われたこととなる。
Also for the first
上記した刺繍模様40の例とは異なり、淡色ピークLpより左側の部分領域の数が、両ピークHp,Lp間の部分領域の数Nc以上となる場合がある(図18の概念図参照)。この場合、前記ステップF2〜F6が繰り返し実行され、淡色ピークLpより左側の部分領域において、両ピークHp,Lp間の部分領域の数Ncと同数の配色を終えると(Nc=NL、ステップF4にてYES)、図12のステップE3に移行する。そして、最後に配色した対象領域TLが、刺繍模様における左端の部分領域でない場合(ステップE3にてNO)、更に左隣りの部分領域について配色が行われる(ステップE4〜)。
Unlike the example of the
即ち、淡色ピークLpより左側の部分領域において、前記Nc=NL個(図18では3個)の配色が行われた後、更に左隣りを配色対象領域TLとして、濃色ピークHpの色と同じ色を配色する(ステップE4)。これにより、刺繍模様における淡色ピークLpを中心として、濃色ピークHpの色が対称となる位置に配色される。そして、ステップE4で配色した濃色ピークHpの部分領域が、刺繍模様における左端の部分領域でない場合(ステップE5にてNO)、配色対象領域TLを更に左隣りに設定して(ステップE6)、ステップE7に移行する。 That is, after the Nc = N L (three in FIG. 18) coloration is performed in the partial region on the left side of the light color peak Lp, the color of the dark color peak Hp is further set to the color arrangement target region TL on the left side. The same color is arranged (step E4). Thereby, the color of the dark color peak Hp is symmetric with respect to the light color peak Lp in the embroidery pattern. If the partial area of the dark color peak Hp that is colored in step E4 is not the leftmost partial area in the embroidery pattern (NO in step E5), the color arrangement target area TL is further set to the left (step E6). The process proceeds to step E7.
図14は、ステップE7において、濃色ピークHpに続き順次淡くなる色を割り当てる処理の流れを示している。この点で、ステップE7は、淡色ピークLpに続き順次濃くなる色を割り当てる前記ステップE2(図13のステップF1〜F6)と異なる。具体的には、ステップG1において、現在の配色対象領域TLを、配色開始領域SL´として設定する(図18参照)。次いで、配色開始領域SL´から配色対象領域TLまでの部分領域の数NL´を算出する(現時点ではNL´=0個、ステップG2)。そして、前記ピークHp,Lp間の部分領域のうち、淡色ピークLpの部分領域から(Nc−NL´)個分隣り、つまり3個分右隣りの濃淡レベルLV4の色を、配色開始領域SL´に割り当てる色として、抽出データ記憶領域249に記憶する(ステップG3、図18参照)。 FIG. 14 shows a flow of processing for assigning a color that becomes lighter after the dark color peak Hp in step E7. In this respect, step E7 is different from step E2 (steps F1 to F6 in FIG. 13) in which a color that gradually increases after the light color peak Lp is assigned. Specifically, in step G1, the current color arrangement target area T L is set as the color arrangement start area S L ′ (see FIG. 18). Next, the number N L ′ of partial areas from the color arrangement start area S L ′ to the color arrangement target area T L is calculated (currently N L ′ = 0, step G2). In the partial region between the peaks Hp and Lp, the color of the lightness level LV4 that is adjacent to the partial region of the light color peak Lp by (Nc−N L ′), that is, right by 3 is displayed in the color arrangement start region S. The color to be assigned to L ′ is stored in the extracted data storage area 249 (see step G3, FIG. 18).
また、配色開始領域SL´を配色しても、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えておらず(ステップG4にてNO)、且つ刺繍模様における左端の部分領域でない場合(ステップG5にてNO)、配色開始領域SL´の左隣りに配色対象領域TLが移される(ステップG6)。こうして、ステップG2〜G6が繰り返し実行されることにより、配色開始領域SL´から左側の部分領域に対して、前記ピークHp,Lp間の部分領域と同じ並びの色、つまり濃淡レベルLV4,LV3,LV2の色が順次配色される。 Even when the color arrangement start area S L ′ is colored, the same number of color arrangements as the number Nc of the partial areas between the peaks Hp and Lp are not finished (NO in step G4), and the leftmost part of the embroidery pattern If it is not an area (NO in step G5), the color arrangement target area TL is moved to the left of the color arrangement start area S L ′ (step G6). Thus, by repeatedly executing Steps G2 to G6, the same color as the partial region between the peaks Hp and Lp, that is, the light and dark levels LV4 and LV3, with respect to the partial region on the left side from the color arrangement start region S L ′. , LV2 are sequentially arranged.
これにより、前記ピークHp,Lp間の部分領域と同数の配色を終えると(Nc=NL´ステップG4にてYES)、図12のステップE8に移行する。そして、最後に配色した対象領域TLが、刺繍模様における左端の部分領域でない場合(ステップE8にてNO)、更に左隣りを配色対象領域TLとして、淡色ピークLpと同じ色を配色する(ステップE9、図18参照)。ステップE9で配色した淡色ピークLpの部分領域が、刺繍模様における左端の部分領域でない場合(ステップE10にてNO)、配色対象領域TLを左隣りの部分領域に移し(ステップE11)、ステップE2へリターンする。更に、左側の部分領域についても、当初設定した淡色ピークLpを基準に、当初設定した濃色ピークHpとは反対側(左側)へ順次濃くなり(ステップE2,E4)、或は順次淡くなる色の配色(ステップE7,E9)が交互に行われる。そして、刺繍模様の左端まで配色が行われると(ステップE3,E5,E8,E10の何れかのステップでYES)、ステップD10に移行する。 Thus, when the same number of colors as the partial region between the peaks Hp and Lp is finished (Nc = N L 'YES in step G4), the process proceeds to step E8 in FIG. If the last target area TL that has been colored is not the leftmost partial area in the embroidery pattern (NO in step E8), the color adjacent to the left is set as the coloration target area TL , and the same color as the light color peak Lp is colored ( Step E9, see FIG. 18). If the partial area of the light color peak Lp colorized in step E9 is not the leftmost partial area in the embroidery pattern (NO in step E10), the color arrangement target area TL is moved to the left adjacent partial area (step E11), and step E2 Return to Further, the left partial region also becomes darker in sequence toward the opposite side (left side) to the initially set dark color peak Hp (left side) with reference to the initially set light color peak Lp (step E2, E4), or a color that becomes lighter sequentially. (Steps E7 and E9) are alternately performed. When the coloring is performed up to the left end of the embroidery pattern (YES in any of steps E3, E5, E8, and E10), the process proceeds to step D10.
図15は、ステップD10に係る右側の部分領域の配色処理の流れを示している。先ず、ステップH1では、配色対象となる領域TRを、当初設定した濃色ピークHpから淡色ピークLpとは反対側に一個分隣り(図18で右隣り)の部分領域に設定する。そして、当該濃色ピークHpより右側の部分領域について、既に抽出した色を用いて、右側へ向かうに従い順次淡くなるグラデーション状の配色を行う(ステップH2、図16参照)。 FIG. 15 shows the flow of the color arrangement process for the right partial area according to step D10. First, at step H1, the region T R to be color target, the light-colored peak Lp from dark peak Hp initially set to set in the partial region of the next one minute to the opposite side (next to the right in FIG. 18). Then, for the partial region on the right side of the dark color peak Hp, a gradation-like color arrangement that gradually becomes lighter toward the right side is performed using the already extracted color (step H2, see FIG. 16).
即ち、制御装置21はステップI1にて、現在の配色対象領域TRを、配色開始領域SRに設定する(図18参照)。次いで、配色開始領域SRから配色対象領域TRまでの部分領域の数NR、つまり当初設定した濃色ピークHpよりも右側で配色を終えた部分領域の数NRを算出する(ステップI2)。そして、両ピークHp,Lp間の部分領域のうち濃色ピークHpの部分領域から(NR+1)個分隣り、つまり左隣りの色を、配色対象領域TRに割り当てる色として抽出データ記憶領域249に記憶する(ステップI3)。従って、上記ステップI2,I3で配色開始領域SRを配色する場合(NR=0)、濃色ピークHpの左隣りの部分領域の色(濃淡レベルLV4)と同じ色が割り当てられる(図18参照)。
That is, the
また、配色開始領域SRを配色しても、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えておらず(ステップI4にてNO)、且つ刺繍模様における右端の部分領域でない場合(ステップI5にてNO)、配色開始領域SRの右隣りに配色対象領域TRが移される(ステップI6)。こうして、ステップI2〜I6が繰り返し実行されることにより、配色開始領域SLから左側の部分領域に対して、前記ピークHp,Lp間の部分領域の色を用いて、順次淡くなる色の配色が行われる(図18参照)。 Furthermore, even if color color scheme initiation region S R, the peak Hp, not after the same number of colors as the number Nc of the partial region between Lp (NO in step I4), and the right end of the partial region in the embroidery pattern If not (nO at step I5), right next to the color target area T R color arrangement initiation region S R is transferred (step I6). Thus, by step I2~I6 is repeatedly performed with respect to color initiation region S L from the left side of the partial region, the peak Hp, using the color of partial areas between the Lp, the color of the color scheme comprising successively lighter Performed (see FIG. 18).
この点、刺繍模様40の例では、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えると(Nc=NR、ステップI4にてYES)、全ての部分領域401〜410の配色が完了したと判断され(図15のステップH3にてYES)、この処理を終了する(エンド)。この場合、制御装置21は、図5(b)に示すように第1部分領域401〜第10部分領域410にわたって、左側から順に濃淡レベルLV3,LV2,LV1,LV2,LV3,LV4,LV5,LV4,LV3,LV2の色が並ぶ配色後の刺繍模様40を、ディスプレイ9の画面100に表示する。
In this regard, in the example of the
刺繍模様40の例とは異なり、図18に示すように、当初設定した濃色ピークHpよりも右側の部分領域の数が、前記ピークHp,Lp間の部分領域の数Nc以上となる場合がある。この場合、当該濃色ピークHpより右側の部分領域において、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えると(Nc=NR、ステップI4にてYES)、図15のステップH3に移行する。そして、最後に配色した対象領域TRが、刺繍模様における右端の部分領域でない場合(ステップH3にてNO)、更に右隣りの部分領域について順次配色が行われる(ステップH4〜)。
Unlike the example of the
即ち、前記Nc=NR個(図18では3個)の配色が行われた後、更に右隣りを配色対象領域TRとして、淡色ピークLpの色と同じ色を配色する(ステップH4)。これにより、当初設定した濃色ピークHpを中心として、淡色ピークLpの色が対称となる位置に配色される。そして、ステップH4で配色した淡色ピークLpの部分領域が、刺繍模様における右端の部分領域でない場合(ステップH5にてNO)、配色対象領域TRを更に右隣りに設定して(ステップH6)、ステップH7に移行する。 That is, after the color of the Nc = N R number (in FIG. 18, three) has been performed, further the next right as color arrangement target region T R, to color the same color as the color of light-colored peak Lp (step H4). As a result, the color of the light color peak Lp is symmetric with respect to the initially set dark color peak Hp. The partial area of the light-colored peak Lp was color in step H4 is, if not at the right end of the partial region in the embroidery pattern (NO at step H5), and set the color target area T R further next right (step H6), Control goes to step H7.
図17は、ステップH7において、淡色ピークLpに続き順次濃くなる色を割り当てる処理の流れを示している。この点で、ステップH7は、濃色ピークHpに続き順次淡くなる色を割り当てる前記ステップH2(図16のステップI1〜I6)と異なる。具体的には、ステップJ1において、現在の配色対象領域TRを、配色開始領域SR´に設定する(図18参照)。次いで、配色開始領域SR´から配色対象領域TRまでの部分領域の数NR´を算出する(現時点ではNR´=0個、ステップJ2)。そして、前記ピークHp,Lp間の部分領域のうち、濃色ピークHpの部分領域から(Nc−NR´)個分隣り、つまり3個分左隣りの色(濃淡レベルLV2の色)を、配色開始領域SR´に割り当てる色として、抽出データ記憶領域249に記憶する(ステップJ3、図18参照)。 FIG. 17 shows the flow of processing for assigning a color that gradually increases after the light color peak Lp in step H7. In this respect, step H7 is different from step H2 (steps I1 to I6 in FIG. 16) in which a lighter color is sequentially added following the dark color peak Hp. More specifically, in step J1, the current color scheme target region T R, sets the color scheme initiation region S R '(see FIG. 18). Next, the number N R ′ of partial areas from the color arrangement start area S R ′ to the color arrangement target area T R is calculated (currently N R ′ = 0, step J2). Then, among the partial regions between the peaks Hp and Lp, the color (Nc−N R ′) adjacent to the partial region of the dark peak Hp, that is, the color adjacent to the left by three (the color of the light and dark level LV2), The color to be assigned to the color arrangement start area S R ′ is stored in the extracted data storage area 249 (see step J3, FIG. 18).
また、配色開始領域SR´を配色しても、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えておらず(ステップJ4にてNO)、且つ刺繍模様における右端の部分領域でない場合(ステップJ5にてNO)、配色開始領域SR´の右隣りに配色対象領域TRが移される(ステップJ6)。こうして、ステップJ2〜J6が繰り返し実行されることにより、配色開始領域SR´から右側の部分領域に対して、前記ピークHp,Lp間の部分領域と同じ並びの色、つまり濃淡レベルLV2,LV3,LV4の色が順次配色される。 Further, even when the coloring start region S R ′ is colored, the same number of colorings as the number Nc of the partial regions between the peaks Hp and Lp are not finished (NO in step J4), and the right end portion of the embroidery pattern If not region (nO in step J5), color target area T R is moved next to the right of the color start region S R '(step J6). Thus, by repeatedly executing Steps J2 to J6, the same color as the partial region between the peaks Hp and Lp, that is, the light and dark levels LV2 and LV3, with respect to the partial region on the right side from the color arrangement start region S R ′. , LV4 colors are sequentially arranged.
また、これにより、前記ピークHp,Lp間の部分領域と同数の配色を終えると(Nc=NR´ステップJ4にてYES)、図15のステップH8に移行する。そして、最後に配色した対象領域TRが、刺繍模様における右端の部分領域でない場合(ステップH8にてNO)、更に右隣りを配色対象領域TRとして、濃色ピークHpと同じ色を配色する(ステップH9、図18参照)。ステップH9で配色した濃色ピークHpの部分領域が、刺繍模様における右端の部分領域でない場合(ステップH10にてNO)、配色対象領域TRを右隣りの部分領域に移し(ステップH11)、ステップH2へリターンする。更に、右側の部分領域についても、当初設定した濃色ピークHpを基準に、当初設定した淡色ピークLpとは反対側(右側)へ順次淡くなり(ステップH2,H4)、或は順次濃くなる色の配色(ステップH7,H9)が交互に行われる。 As a result, when the same number of colors as the partial region between the peaks Hp and Lp is finished (Nc = N R ′ YES in step J4), the process proceeds to step H8 in FIG. Finally, the target region T R that color scheme is, if not at the right end of the partial region in the embroidery pattern (NO at step H8), further next right as color arrangement target region T R, to color the same color as the dark peak Hp (Step H9, see FIG. 18). Step H9 subregion of dark peak Hp was color scheme is, if not at the right end of the partial region in the embroidery pattern (NO in step H10), transferred to a partial region of the adjacent right color target area T R (step H11), step Return to H2. Further, with respect to the right partial region, the color gradually becomes lighter toward the opposite side (right side) from the initially set light color peak Lp (right side) with reference to the initially set dark color peak Hp (steps H2 and H4). Are arranged alternately (steps H7 and H9).
前記ステップH2〜H11が実行されることにより、刺繍模様の右端まで全ての配色が完了し(ステップH3,H5,H8,H10の何れかのステップでYES)、この処理を終了する(エンド)。こうして、上記刺繍データ処理プログラムの実行により、ランダムに抽出した色を糸色データとして、グラデーション状に変化するように各部分領域に割り当てた刺繍データが作成される(図18参照)。そして、当該刺繍模様は、複数の部分領域に対し糸色データに割り当てられた色で、ディスプレイ9の画面100に表示される。
By executing the steps H2 to H11, all the color arrangements to the right end of the embroidery pattern are completed (YES in any one of the steps H3, H5, H8, and H10), and this process is ended (END). In this way, by executing the embroidery data processing program, embroidery data assigned to each partial region so as to change in gradation is created using the randomly extracted color as thread color data (see FIG. 18). The embroidery pattern is displayed on the
上記したステップA1,A2の実行に係る制御装置21は、刺繍データに基づいて刺繍模様を複数の部分領域に分割する模様分割手段に相当する。また、前記ステップA3の実行に係る制御装置21は、模様分割手段で分割された部分領域毎に、前記色記憶手段に記憶されている複数色の中から当該部分領域の色を特定する糸色データとして用いる色をランダムに抽出して割り当てる割当手段に相当する。
The
以上のように本実施形態の刺繍データ作成装置30は、元の刺繍データを模様分割手段により刺繍模様を複数の部分領域に分割し、その分割した部分領域毎に、前記色記憶手段に記憶されている複数色の中から当該部分領域の色を特定する糸色データとして用いる色を、割当手段によりランダムに抽出して割り当てる。
これによれば、刺繍模様について複数の部分領域に分割し、それら部分領域に対して割当手段により抽出された色を割り当ててランダムな配色を行うことができる。従って、元の刺繍データが単色の刺繍模様であっても、これを分割して、多くの色を用いた刺繍模様とすることができる。また、糸色データの確認や指定といった面倒な作業を省略して、刺繍模様の配色を簡単に行うことができる。刺繍模様について、偶然性や意外性のある配色が可能となり、規定の配色にとらわれない多様な配色パターンを得ることができる。
As described above, the embroidery
According to this, the embroidery pattern can be divided into a plurality of partial areas, and the colors extracted by the assigning means can be assigned to the partial areas to perform random coloring. Therefore, even if the original embroidery data is a single color embroidery pattern, it can be divided into embroidery patterns using many colors. Further, the troublesome work such as confirmation and designation of the thread color data can be omitted, and the embroidery pattern can be easily colored. With regard to the embroidery pattern, it is possible to have a color scheme that is accidental or unexpected, and a variety of color scheme patterns that are not confined to the prescribed color scheme can be obtained.
前記割当手段は、前記色記憶手段からランダムに抽出した複数の色を、所定の配列規則に従い複数の部分領域の位置に対応させて割り当てる。これによれば、複数の部分領域の位置に合わせて規則性を持たせた配色を行うことができる。従って、例えば単色の刺繍模様を分割してランダムな配色を行う構成としても、全体として統一感のある配色パターンを得ることができる。 The assigning means assigns a plurality of colors randomly extracted from the color storage means in correspondence with the positions of the plurality of partial areas according to a predetermined arrangement rule. According to this, it is possible to perform color arrangement with regularity according to the positions of the plurality of partial areas. Accordingly, for example, even when a single color embroidery pattern is divided and random color arrangement is performed, a color arrangement pattern with a sense of unity as a whole can be obtained.
前記配列規則は、前記色記憶手段からランダムに抽出した複数の色を、色の濃淡に基づいて配列するものである。これによれば、各部分領域に対して、夫々の部分領域の位置に対応する色の濃淡をつけた刺繍データを簡単に得ることができる。
また、配列規則は、前記色記憶手段からランダムに抽出した複数の色を、グラデーション状に変化するように配列するものである。これによれば、例えば図5(b)、図18に示したように複数の部分領域の位置に応じて段階的に濃くなり或は淡くなる色を割り当てることができる。よって、刺繍模様についてランダムな配色としながらも、複数の部分領域の位置に応じたグラデーションを示す色調を簡単に得ることができる。
The arrangement rule is to arrange a plurality of colors randomly extracted from the color storage means based on the color density. According to this, it is possible to easily obtain embroidery data in which shades of colors corresponding to the positions of the respective partial areas are added to each partial area.
The arrangement rule is to arrange a plurality of colors randomly extracted from the color storage means so as to change in a gradation. According to this, for example, as shown in FIG. 5B and FIG. 18, it is possible to assign a color that becomes darker or lighter in stages according to the positions of the plurality of partial regions. Therefore, it is possible to easily obtain a color tone indicating gradation according to the positions of the plurality of partial areas while making the embroidery pattern a random color scheme.
前記制御装置21は、元の刺繍データに基づいて刺繍模様を包含する境界枠(矩形枠Fを設定する境界枠設定手段、及び当該境界枠内を区分けする分割線により、刺繍模様を複数の部分領域に分割する分割線設定手段として構成されている(ステップB1〜B5、ステップC1〜C5参照)。これによれば、刺繍模様の大きさに応じた分割線を設定して、刺繍模様を適切に分割することができる。
前記分割線設定手段は、境界枠内を略等分するように区分けする1つ以上の分割線を設定する(図5(a)の分割線L1〜L9参照)。これによれば、刺繍模様について、分割線により略等分した所期の大きさの部分領域を得ることができ、前記配列規則と相俟って配色バランスのよいものとすることができる。
The
The dividing line setting means sets one or more dividing lines for dividing the boundary frame so as to be substantially equally divided (see dividing lines L1 to L9 in FIG. 5A). According to this, it is possible to obtain a partial area of an expected size substantially equally divided by the dividing line for the embroidery pattern, and to achieve a good color balance in combination with the arrangement rule.
また、分割線設定手段は、略等間隔に並列する複数の分割線を設定する。これによれば、上記した分割線L1〜L9、或は後述する曲線状の分割線(図19参照)のように、見映えのよい整った分割線の配置形態とすることができる。
前記表示手段は、刺繍模様を複数の部分領域の前記糸色データに割り当てられた色で表示する。これによれば、上記ステップA1〜A3で処理した刺繍データについて、色別模様部の色を視覚的に容易に把握することができる。
The dividing line setting means sets a plurality of dividing lines arranged in parallel at substantially equal intervals. According to this, it can be set as the arrangement line of the dividing line with the good appearance like the above-mentioned dividing lines L1-L9 or the curved dividing line (refer FIG. 19) mentioned later.
The display means displays the embroidery pattern in a color assigned to the thread color data of a plurality of partial areas. According to this, for the embroidery data processed in the above steps A1 to A3, the color of the pattern part by color can be easily grasped visually.
本発明は、上記した実施形態にのみ限定されるものではなく、次のように変形または拡張できる。
刺繍データ作成装置はミシンMに備えられる構成に限定するものではなく、所謂パーソナルコンピュータである装置本体(専用機でもよい)と、この装置本体に接続されるマウス、キーボード、メモリカードコネクタ、ディスプレイ等から構成してもよい。また、本実施形態と異なり、ミシンMと刺繍データ作成装置とが別体で構成される場合、ミシンMと刺繍データ作成装置とを有線又は無線で接続し、データを送受信するようにしてもよい。
The present invention is not limited to the above-described embodiment, and can be modified or expanded as follows.
The embroidery data creation device is not limited to the configuration provided in the sewing machine M, but a so-called personal computer device main body (may be a dedicated machine) and a mouse, keyboard, memory card connector, display, etc. connected to the device main body. You may comprise. Also, unlike the present embodiment, when the sewing machine M and the embroidery data creation device are configured separately, the sewing machine M and the embroidery data creation device may be connected by wire or wireless to transmit and receive data. .
前記配列規則は、前記色記憶手段からランダムに抽出した複数の色を、色の色彩に基づいて配列するものでもよい。例えば、前記ステップD3において、濃淡レベルテーブルに代えて、0〜360の色相値Hを前記ピークLp,Hpとなる部分領域の位置に応じて色相単位で区分した色相レベルテーブルを作成してもよい。この場合、例えば前記閾値HG1〜HG2を利用して、最も低い色相レベルをピークLpに、最も高い色相レベルをピークHpに対応させる。そして、前記ステップD4において、ピークLpとなる部分領域に対して、最も低い色相レベルに属する色の中から糸色データとして用いる色をランダムに抽出して割り当てる処理を実行する。このように、部分領域の配色処理(ステップA3)において、色相レベルテーブルを用いて配色を行うことにより、部分領域の位置に対応させてグラデーションを示す色合い(色彩)を得ることができる。 The arrangement rule may arrange a plurality of colors randomly extracted from the color storage unit based on the color of the color. For example, in the step D3, instead of the gray level table, a hue level table in which the hue values H of 0 to 360 are divided in units of hues according to the positions of the partial areas where the peaks Lp and Hp are generated may be created. . In this case, for example, the lowest hue level is made to correspond to the peak Lp and the highest hue level is made to correspond to the peak Hp by using the threshold values H G1 to H G2 . In step D4, a process of randomly extracting and assigning a color to be used as thread color data from the colors belonging to the lowest hue level to the partial region having the peak Lp is executed. As described above, in the color arrangement processing of the partial area (step A3), by performing color arrangement using the hue level table, it is possible to obtain a hue (color) indicating gradation corresponding to the position of the partial area.
また、前記ステップD1において「グラデーション」のカテゴリに属する色を選定し、その選定した色について濃淡レベルテーブルを作成したが、これに限定するものではない。即ち、ステップD1において「ビビッド」若しくは「ソフト」のカテゴリに属する色を選定し、又はステップD1を経ることなく直接、前記パレットテーブルの全部の色を用いて、濃淡レベルテーブルや色相レベルテーブル等のレベル別テーブルを作成してもよい。 In step D1, a color belonging to the “gradation” category is selected, and a gray level table is created for the selected color. However, the present invention is not limited to this. That is, a color belonging to the category “Vivid” or “Soft” is selected in Step D1, or all the colors of the palette table are directly used without going through Step D1, and a tone level table, a hue level table, etc. A level-specific table may be created.
分割線は、刺繍模様を複数の部分領域に分割するためのものであればよく、図5に示す直線状の分割線L1〜L9に限定するものではない。例えば図19(a)に示すように、矩形枠F内にて同心状をなす複数の円を、相互に略等間隔をなす径寸法に設定した分割線L11〜L16としてもよい。また、図19(b)に示すように、矩形枠F内にて所謂サインカーブをなす複数の曲線を、相互に略等間隔に並列するように設定した分割線L21〜L23としてもよい。また、分割線L1〜L9が延びる方向については、縦方向ではなく、横方向又は斜め方向であってもよい。また、分割線L11〜L16の形状は、楕円であってもよいし、同心円状に並ぶのではなく、徐々に偏心するように設定してもよい。上記した「略等間隔」及び「略等分」は等間隔及び等分を排除するものではなく、複数の分割線は、矩形枠F内を等分し且つ等間隔に並列するように設定してもよい。また、境界枠は矩形枠Fに限らず、刺繍模様を包含する形状であればよい。 The dividing line only needs to be used for dividing the embroidery pattern into a plurality of partial areas, and is not limited to the linear dividing lines L1 to L9 shown in FIG. For example, as shown in FIG. 19 (a), a plurality of concentric circles in the rectangular frame F may be set as the dividing lines L11 to L16 set to diameters that are substantially equally spaced from each other. Further, as shown in FIG. 19B, a plurality of curves forming a so-called sine curve in the rectangular frame F may be set as dividing lines L21 to L23 set so as to be parallel to each other at substantially equal intervals. Further, the direction in which the dividing lines L1 to L9 extend may be a horizontal direction or an oblique direction instead of the vertical direction. Moreover, the shape of the dividing lines L11 to L16 may be an ellipse, or may be set so as to be gradually decentered instead of being arranged concentrically. The above “substantially equal intervals” and “substantially equal divisions” do not exclude equal intervals and equal divisions, and the plurality of dividing lines are set so as to equally divide the inside of the rectangular frame F and to be arranged at equal intervals. May be. The boundary frame is not limited to the rectangular frame F, and may be any shape that includes an embroidery pattern.
本実施形態においては、刺繍模様40は、単色で縫製する刺繍模様としたが、異なる色(糸色)で縫製する複数の色別模様部からなる刺繍模様である場合には、個々の色別模様部を複数の部分領域に分割して、同様の配色処理を行うようにしてもよい。或は、複数の色別模様部からなる刺繍模様の刺繍データを、単色で縫製する刺繍データに変換した後、同様の配色処理を行うようにしてもよい。
In the present embodiment, the
色記憶手段は、RAM24やEEPROM25に限定されるものではなく、ミシン或は刺繍データ作成装置に内蔵される他の内部記憶手段や、ミシン或は刺繍データ作成装置に着脱可能に装着される外部記憶手段でもよい。
前記刺繍データ処理プログラムを記録した記録媒体は、ROM23に限定されるものではなく、CD−ROM、フレキシブルディスク、DVD、メモリカード等の各種の記録媒体であってもよい。この場合、その記録媒体のプログラムを、前記専用機等のコンピュータにより読み込んで実行させることにより、上記実施形態と同様の作用及び効果を奏する。
The color storage means is not limited to the
The recording medium on which the embroidery data processing program is recorded is not limited to the
M ミシン
F 境界枠
L1〜L9,L11〜L16,L21〜L23 分割線
9 ディスプレイ(表示手段)
21 制御装置(模様分割手段、割当手段、境界枠設定手段、分割線設定手段、表示手段)
24,25 色記憶手段
30 刺繍データ作成装置
34 駆動回路(表示手段)
M sewing machine F boundary frames L1 to L9, L11 to L16, L21 to L23
21 Control device (pattern dividing means, assigning means, boundary frame setting means, dividing line setting means, display means)
24, 25 Color storage means 30 Embroidery
Claims (11)
前記刺繍データに基づいて刺繍模様を複数の部分領域に分割する模様分割手段と、
予め定義されている複数色を記憶する色記憶手段と、
前記模様分割手段で分割された前記部分領域毎に、前記色記憶手段に記憶されている複数色の中から当該部分領域の色を特定する糸色データとして用いる色をランダムに抽出して割り当てる割当手段と、
を備えることを特徴とする刺繍データ処理装置。 An embroidery data processing device for processing embroidery data for sewing an embroidery pattern with a sewing machine,
Pattern dividing means for dividing the embroidery pattern into a plurality of partial areas based on the embroidery data;
Color storage means for storing a plurality of predefined colors;
Allocation by randomly extracting and assigning a color to be used as thread color data for specifying a color of the partial area from among a plurality of colors stored in the color storage means for each partial area divided by the pattern dividing means Means,
An embroidery data processing apparatus comprising:
前記刺繍データに基づいて前記刺繍模様を包含する境界枠を設定する境界枠設定手段と、
前記境界枠設定手段で設定した境界枠内を区分けする分割線により、前記刺繍模様を前記複数の部分領域に分割する分割線設定手段と、を備えることを特徴とする請求項1から5の何れかに記載の刺繍データ処理装置。 The pattern dividing means includes
Boundary frame setting means for setting a boundary frame including the embroidery pattern based on the embroidery data;
6. A dividing line setting unit that divides the embroidery pattern into the plurality of partial areas by dividing lines that divide the boundary frame set by the boundary frame setting unit. An embroidery data processing device according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012190049A JP2014045873A (en) | 2012-08-30 | 2012-08-30 | Embroidery data processing device, embroidery data processing program, and sewing machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012190049A JP2014045873A (en) | 2012-08-30 | 2012-08-30 | Embroidery data processing device, embroidery data processing program, and sewing machine |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014045873A true JP2014045873A (en) | 2014-03-17 |
Family
ID=50606182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012190049A Pending JP2014045873A (en) | 2012-08-30 | 2012-08-30 | Embroidery data processing device, embroidery data processing program, and sewing machine |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014045873A (en) |
-
2012
- 2012-08-30 JP JP2012190049A patent/JP2014045873A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2012157451A (en) | Embroidery data creating device, embroidery data processing program and sewing machine | |
JPH08141244A (en) | Embroidering data preparing device | |
US9371606B2 (en) | Embroidery data generator, sewing machine, and non-transitory computer readable storing medium | |
US5751583A (en) | Embroidery data processing method | |
JP4915434B2 (en) | Embroidery data creation device and embroidery data creation program | |
US8793009B2 (en) | Data generator, computer readable recording medium, and sewing machine | |
US9109314B2 (en) | Embroidery data generator, sewing machine and non-transitory computer-readable storage medium | |
US8655474B2 (en) | Embroidery data generating apparatus, embroidery data generating method, and non-transitory computer-readable medium storing embroidery data generating program | |
US7991500B2 (en) | Sewing order for basic elements in embroidery | |
JP2014050632A (en) | Embroidery data creation device, embroidery data processing program, and sewing machine | |
JP2013070753A (en) | Embroidery data generation device, embroidery data processing program and sewing machine | |
US8694147B2 (en) | Embroidery data generating device, computer-readable storage medium storing embroidery data processing program and sewing machine | |
CN105369492B (en) | The embroidery sewing conversion equipment and conversion method of embroidery machine | |
CN107488943A (en) | A kind of dynamic of spininess quilting apparatus matches somebody with somebody needle method | |
WO2019172230A1 (en) | Non-transitory computer-readable medium and embroidery data generation method | |
US8731705B2 (en) | Data generator, computer readable recording medium, and sewing machine | |
JP2013034697A (en) | Multi-needle sewing machine | |
JP2014045873A (en) | Embroidery data processing device, embroidery data processing program, and sewing machine | |
JP5530107B2 (en) | Sewing machine that can embroidery | |
JP3959800B2 (en) | Thread color setting device | |
JP2006034695A (en) | Differential feeding sewing machine | |
KR101317291B1 (en) | Embroidering machine and Design edit method thereof | |
JPH0747068B2 (en) | Sewing data creation device for automatic sewing machine | |
JPH0418158A (en) | Multineedle multihead embroidery sewing machine | |
JP2006204368A (en) | Complex data processor |