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 PDF

Info

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
Application number
JP2012190049A
Other languages
Japanese (ja)
Inventor
Ryutaro Maki
龍太郎 眞木
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 JP2012190049A priority Critical patent/JP2014045873A/en
Publication of JP2014045873A publication Critical patent/JP2014045873A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Sewing Machines And Sewing (AREA)
  • Automatic Embroidering For Embroidered Or Tufted Products (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an embroidery data processing device, an embroidery data processing program and a sewing machine, capable of expressing an embroidery pattern in a wide variety by using more many colors, and capable of acquiring various color arrangement patterns easily.SOLUTION: An embroidery data processing device includes color storage means for storing a plurality of colors which are defined beforehand. The embroidery data processing device executes: a processing for dividing an embroidery pattern into a plurality of partial regions based on embroidery data; and a processing for randomly extracting colors used as thread color data specifying colors of the partial regions out of a plurality of colors stored in the color storage means, for each of the partial regions, and allocating them.

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).

特開平11−57262号公報Japanese Patent Laid-Open No. 11-57262

特許文献1の刺繍データ編集装置では、生地の色と配色データに基づき、刺繍模様の色別模様部の色が一義的に決定される。しかし、ユーザとしては、色別模様部の色が生地の色で制約されるのではなく、色別模様部の夫々について「規定の色」ではない好みの色や或は奇抜な色で縫製したい場合もある。しかしながら、このような刺繍模様の色の指定を行うには、色別模様部のデータを1つ1つ読み出して該当する糸色データの確認や指定を行わなければならず、手間がかかり面倒である。
また、単色で縫製する刺繍模様の場合は、ユーザが、多色で縫製する刺繍模様に変更することはできなかった。
In the embroidery data editing apparatus of Patent Document 1, the color of the pattern portion for each color of the embroidery pattern is uniquely determined based on the color of the fabric and the color arrangement data. However, the user does not want to restrict the color of the color-specific pattern part by the color of the fabric, but wants to sew with a favorite color or an unusual color that is not a “specified color” for each color-specific pattern part. In some cases. However, in order to specify the color of such an embroidery pattern, it is necessary to read out the data for each color pattern portion one by one and check and specify the corresponding thread color data, which is troublesome and cumbersome. is there.
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 claim 1 of the present invention processes embroidery data for sewing an embroidery pattern with a sewing machine, and a plurality of embroidery patterns are processed based on the embroidery data. A pattern dividing unit that divides the image into partial areas, a color storage unit that stores a plurality of predefined colors, and a plurality of patterns stored in the color storage unit for each of the partial areas divided by the pattern dividing unit. And assigning means for randomly extracting and assigning colors to be used as thread color data for specifying the color of the partial area from the colors.

請求項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.

一実施形態を示すミシンの外観斜視図External perspective view of sewing machine showing one embodiment 電気的構成を示すブロック図Block diagram showing electrical configuration ミシンのRAMの記憶領域を説明するための概念図Conceptual diagram for explaining the storage area of the sewing machine RAM ディスプレイに表示された分割前の刺繍模様の一例を示す図The figure which shows an example of the embroidery pattern before the division | segmentation displayed on the display (a)及び(b)は、複数の部分領域に分割する処理及びそれら部分領域に対して配色する処理の説明図(A) And (b) is explanatory drawing of the process divided | segmented into a some partial area, and the process colored with respect to these partial areas (a)は刺繍開始点近傍におけるサテン縫いのステッチを拡大して示す模式図、(b)及び(c)は、刺繍模様を分割する処理の説明図として分割線近傍におけるステッチを拡大して示す模式図(A) is a schematic diagram showing enlarged satin stitches in the vicinity of the embroidery start point, and (b) and (c) are enlarged views showing stitches in the vicinity of the dividing line as an explanatory diagram of the process of dividing the embroidery pattern. Pattern diagram (a)及び(b)は、区分数を部分領域の総数及び5つとした場合における濃淡レベルテーブルの一例を示す図(A) And (b) is a figure which shows an example of the light / dark level table in the case where the number of divisions is the total number of partial areas and five. 刺繍模様の分割及び配色に関し、全体の大まかな処理の流れを示すフローチャートFlow chart showing the overall process flow for embroidery pattern division and color scheme 分割線の設定処理に係るフローチャートFlow chart for setting process of dividing line 刺繍模様の分割処理に係るフローチャートFlowchart for embroidery pattern division processing 部分領域の配色処理に係るフローチャートFlow chart related to partial area color arrangement processing 刺繍模様における一方向側への配色処理のフローチャートFlow chart of color arrangement processing in one direction in embroidery pattern 淡色ピークから順次濃くなる色を割り当てる処理のフローチャートFlow chart of processing to assign colors that gradually increase from light color peak 濃色ピークから順次淡くなる色を割り当てる処理のフローチャートFlow chart of processing for assigning colors that lighten sequentially from the dark peak 刺繍模様における他方向側への配色処理のフローチャートFlow chart of color arrangement processing to the other direction side in the embroidery pattern 図14相当図14 equivalent diagram 図13相当図Figure 13 equivalent 多数の部分領域からなる刺繍模様の配色処理を説明するための概念図Conceptual diagram for explaining the color arrangement processing of an embroidery pattern composed of a large number of partial areas (a)及び(b)は、分割線の変更形態を示す図(A) And (b) is a figure which shows the change form of a dividing line.

以下、本発明を家庭用ミシン(以下、ミシン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 bed portion 1 that extends in the left-right direction, a leg column portion 2 that rises upward from the right end portion of the bed portion 1, and an arm portion 3 that extends to the left from the upper portion of the leg column portion 2. Are integrally provided. A sewing machine main shaft (not shown) is provided in the arm portion 3 so as to extend in the left-right direction. A sewing machine motor 4 (see FIG. 2) that rotates the sewing machine main shaft is disposed in the pedestal 2.

アーム部3の先端部には、縫針5を装着した針棒5aと、押え足6を備えた押え棒(図示略)とが設けられている。また、図示は省略するが、アーム部3内には、前記針棒をミシン主軸の回転に基づき上下動させる針棒駆動機構、針棒を布送り方向と直交する方向(左右方向)に揺動させる針棒揺動機構、天秤を針棒の上下動に同期して上下動させる天秤駆動機構、前記押え棒を上下動させる押え棒駆動機構等が配設されている。
アーム部3には、上面側を開閉するカバー3aが開閉可能に設けられている。カバー3aを開けた状態におけるアーム部3の手前側の中央部には、糸駒10を収容するための収容部10aが設けられている。糸駒10から延びる上糸は、前記天秤等を含む糸供給経路を経由して縫針5に供給される。
A needle bar 5 a on which a sewing needle 5 is mounted and a presser bar (not shown) provided with a presser foot 6 are provided at the tip of the arm part 3. Although not shown, a needle bar drive mechanism that moves the needle bar up and down based on the rotation of the main spindle of the sewing machine in the arm 3 and swings the needle bar in a direction (left and right direction) perpendicular to the cloth feed direction. There are provided a needle bar swinging mechanism for moving the balance, a balance driving mechanism for moving the balance up and down in synchronization with the vertical movement of the needle bar, a presser bar driving mechanism for moving the presser bar up and down, and the like.
The arm part 3 is provided with a cover 3a that opens and closes the upper surface side. An accommodation portion 10a for accommodating the yarn spool 10 is provided in the central portion on the front side of the arm portion 3 in a state where the cover 3a is opened. The upper thread extending from the thread spool 10 is supplied to the sewing needle 5 via a thread supply path including the balance and the like.

アーム部3の前面側には、ミシンMの縫製動作の起動と停止を指令する起動停止スイッチ8a等の各種のスイッチ類と、縫製速度(ミシン主軸の回転速度)を設定するための速度調節ツマミ8bが設けられている。尚、ミシンMに対して使用者(ユーザ)が位置する方向、つまりミシンMにおけるスイッチ類(或は以下の表示手段)の側を前方とし、その反対方向を後方とする。また、脚柱部2が位置する側を右側とし、その反対側を左側とする。   On the front side of the arm unit 3, various switches such as a start / stop switch 8a for instructing start and stop of the sewing operation of the sewing machine M, and a speed adjustment knob for setting a sewing speed (rotation speed of the main spindle of the sewing machine). 8b is provided. The direction in which the user (user) is located with respect to the sewing machine M, that is, the switch (or the following display means) side of the sewing machine M is the front, and the opposite direction is the rear. The side on which the pedestal 2 is located is the right side, and the opposite side is the left side.

脚柱部2の前面には、大型で縦長形状をなしフルカラー表示が可能なディスプレイ9が設けられている。ディスプレイ9は、例えば液晶カラーディスプレイから構成された表示手段であり、多数色の表示が可能である。ディスプレイ9には、実用模様や刺繍模様等の種々の縫製模様(図4参照)、縫製作業に必要な各種の機能を実行させる機能名、及び後述する配色処理に係る設定を行うための設定画面等が表示される。また、ディスプレイ9の前面には、透明電極からなる複数のタッチキーを有するタッチパネル9a(図2参照)が設けられている。タッチキーがユーザの指又は図示しないタッチペンで押圧操作(以後、タッチ操作と称す)されることで、前記の縫製模様の選択、各種機能の指示、各種のパラメータ等の設定が可能になっている。
脚柱部2の右側面には、各種の刺繍模様の刺繍データ等が記憶されているメモリカード11(図2にのみ図示)が挿入されるカードスロット12が設けられている。
A large display 9 having a vertically long shape and capable of full color display is provided on the front surface of the pedestal 2. The display 9 is a display means composed of a liquid crystal color display, for example, and can display many colors. The display 9 has various sewing patterns such as a practical pattern and an embroidery pattern (see FIG. 4), function names for executing various functions necessary for the sewing work, and a setting screen for performing settings relating to the color arrangement processing described later. Etc. are displayed. Further, on the front surface of the display 9, a touch panel 9a (see FIG. 2) having a plurality of touch keys made of transparent electrodes is provided. When the touch key is pressed with a user's finger or a touch pen (not shown) (hereinafter referred to as touch operation), selection of the sewing pattern, instruction of various functions, setting of various parameters, and the like are possible. .
A card slot 12 into which a memory card 11 (shown only in FIG. 2) in which embroidery data of various embroidery patterns is stored is provided on the right side surface of the pedestal 2.

ベッド部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 bed 1. Although not shown in the drawings, the bed portion 1 is located below the needle plate and accommodates a cloth feed mechanism for moving the feed dog in the vertical direction and the front-rear direction, a lower thread bobbin, and a sewing needle. 5, a horizontal rotary hook that forms a seam, a thread trimming mechanism that cuts an upper thread and a lower thread, and the like are disposed.
An embroidery frame transfer device 13 is detachably mounted on the left side portion of the bed portion 1. The embroidery frame transfer device 13 includes a main body portion 14 having the same height as the upper surface of the bed portion 1 and a movable portion 15 provided on the upper surface portion of the main body portion 14 so as to be movable in the left-right direction. A carriage 17 is provided on the movable portion 15 so as to be movable in the front-rear direction. An embroidery frame 16 that holds a work cloth CL to be sewn is detachably mounted on the carriage 17. An X-direction transfer mechanism (not shown) that drives the carriage 17 in the left-right direction together with the movable portion 15 is provided in the main body portion 14. A Y-direction transfer mechanism (not shown) that moves the carriage 17 in the front-rear direction is provided in the movable portion 15. The embroidery frame 16 is driven on the basis of the embroidery data of the embroidery pattern by driving the respective drive motors of the X-direction transfer mechanism and the Y-direction transfer mechanism (X-axis motor 18 and Y-axis motor 19 described later, see FIG. 2). It is moved in the X direction which is the left-right direction or the Y direction which is the front-rear direction.

続いて、ミシン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 control device 21 is mainly composed of a microcomputer, and has a CPU 22, a ROM 23, a RAM 24, an EEPROM 25, a card slot 12, an input interface 27a, an output interface 27b, a bus 28 connecting them, and the like. A start / stop switch 8a and a touch panel 9a are connected to the input interface 27a. Connected to the output interface 27b are drive circuits 31, 32, 33, and 34 for driving the sewing machine motor 4, the X-axis motor 18, the Y-axis motor 19, and the display 9, respectively. The control device 21, the display 9, and the drive circuit 34 correspond to display means. The embroidery data creation device 30 is composed of the control device 21, the touch panel 9a, the display 9, the drive circuit 34, and the like.

ROM23には、刺繍データ、刺繍データ処理プログラム、縫製制御プログラム、表示制御プログラム、全糸情報テーブルが記憶されている。このうち、刺繍データ処理プログラムは、刺繍データを作成するための各種処理手段としてコンピュータを機能させるためのプログラムである。全糸情報テーブルは、刺繍縫製に用いられる複数種類の糸に関する全ての情報であって後述の糸の色情報や品番等を含み、表示制御プログラムは、ディスプレイ9を制御する。また、ROM23には、後述する刺繍模様を分割するための種々の分割線を規定するテンプレートパターンデータが記憶されている(図5の分割線L1〜L9、図19(a)の分割線L11〜L16、図19(b)の分割線L21〜L23参照)。尚、これら各種のプログラムやデータは、EEPROM25等を含む他の内部記憶手段や、メモリカード11等の外部記憶手段に記憶されてもよい。例えば刺繍データ処理プログラムが外部記憶手段に記憶されている場合、制御装置21は、当該プログラムをRAM24上に読み込んで実行する。   The ROM 23 stores embroidery data, an embroidery data processing program, a sewing control program, a display control program, and an all-thread information table. Among these, the embroidery data processing program is a program for causing a computer to function as various processing means for creating embroidery data. The all-thread information table is all information related to a plurality of types of threads used for embroidery sewing, and includes thread color information and product numbers, which will be described later, and the display control program controls the display 9. Further, the ROM 23 stores template pattern data defining various dividing lines for dividing an embroidery pattern to be described later (the dividing lines L1 to L9 in FIG. 5 and the dividing lines L11 to L11 in FIG. 19A). L16, see the dividing lines L21 to L23 in FIG. 19B). These various programs and data may be stored in other internal storage means including the EEPROM 25 or the like, or external storage means such as the memory card 11. For example, when the embroidery data processing program is stored in the external storage means, the control device 21 reads the program onto the RAM 24 and executes it.

RAM24は、上記のプログラムやデータ、タッチパネル9aの操作等で入力された各種の設定値、制御装置21で演算された演算結果等を一時的に記憶するための記憶領域を有する。詳細には、図3に示すように、RAM24には、プログラム記憶領域241、設定記憶領域242、刺繍データ記憶領域243、フラグ記憶領域244、パレット記憶領域245、色情報記憶領域246、画像表示データ記憶領域247、作業領域248、抽出データ記憶領域249等、複数の記憶領域が設けられている。プログラム記憶領域241は、ROM23等から読み出された各種のプログラムを記憶する。設定記憶領域242は、プログラムの実行の際に参照される設定値等を記憶する。刺繍データ記憶領域243は、刺繍データ作成時の元(基準)となるデータを記憶する。フラグ記憶領域244は、プログラムの実行の際に使用される各種フラグを記憶する。パレット記憶領域245は、後述するパレットテーブルから選定した色を記憶する。   The RAM 24 has a storage area for temporarily storing the above programs and data, various setting values input by operating the touch panel 9a, the calculation results calculated by the control device 21, and the like. Specifically, as shown in FIG. 3, the RAM 24 has a program storage area 241, a setting storage area 242, an embroidery data storage area 243, a flag storage area 244, a palette storage area 245, a color information storage area 246, and image display data. A plurality of storage areas such as a storage area 247, a work area 248, and an extracted data storage area 249 are provided. The program storage area 241 stores various programs read from the ROM 23 or the like. The setting storage area 242 stores setting values that are referred to when the program is executed. The embroidery data storage area 243 stores data serving as a source (reference) when creating embroidery data. The flag storage area 244 stores various flags used when the program is executed. The palette storage area 245 stores a color selected from a palette table described later.

色情報記憶領域246は、刺繍模様の配色に用いられるデータを記憶する濃淡別バッファを備える。詳しくは後述するように、濃淡別バッファは、当該データについて色の濃淡レベル毎に複数のグループに分けて記憶するための記憶領域として構成されている。また、抽出データ記憶領域249は、ランダムに抽出した色を一時的に記憶する。尚、画像表示データ記憶領域247は、ディスプレイ9に表示する画面の画像データや表示設定を記憶し、作業領域248は、各種のプログラムの実行時に設定値等を予備的に記憶する。   The color information storage area 246 includes a shading buffer for storing data used for the color scheme of the embroidery pattern. As will be described in detail later, the shading buffer is configured as a storage area for storing the data divided into a plurality of groups for each shading level of the color. The extracted data storage area 249 temporarily stores a randomly extracted color. The image display data storage area 247 stores image data and display settings for the screen displayed on the display 9, and the work area 248 preliminarily stores setting values and the like when various programs are executed.

前記刺繍データについて、図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” embroidery pattern 40 displayed on the screen 100 of the display 9 shown in FIG. The “flower” embroidery pattern 40 is composed of a plurality of color-specific pattern parts sewn in different colors (thread colors). In this embodiment, the embroidery pattern is an embroidery pattern sewn in a single color for the sake of simplicity. And The embroidery data is data for sewing the embroidery pattern by the sewing machine M, mask data indicating the vertical and horizontal sizes of the embroidery pattern 40, and a needle indicating the needle drop position in the closed region 400 of the embroidery pattern 40. It includes drop position data, a code indicating the end of the data, and the like. The mask data is data of a minimum rectangular frame F that surrounds the outline of the embroidery pattern 40 as shown in FIG. That is, the mask data indicates the minimum value and the maximum value in the X coordinate of the contour of the embroidery pattern 40 and the minimum value and the maximum value in the Y coordinate of the contour.

針落ち位置データは、例えば一針毎の針落ち位置(加工布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 embroidery pattern 40 and the inside of the closed region 400 is filled (filled) with, for example, satin stitches. The needle drop position data of the embroidery pattern 40 includes, for example, the point having the smallest X coordinate (the leftmost point in FIG. 5) in the closed region 400 as the embroidery start point P1, and the point having the largest X coordinate as the embroidery end point Pe. Is set. Therefore, as schematically shown in the enlarged view of FIG. 6A, the satin stitch is formed by filling the closed region 400 from the left side. In the figure, symbols P1, P2, P3,... Correspond to the needle drop order.

また、刺繍データは、刺繍模様40の閉領域400の色を特定するための糸色データと、刺繍模様40をディスプレイ9に表示する画像データ(例えばビットマップデータ(図示略))を含む。糸色データは、閉領域400の縫製で用いられる糸色を示すものとして、例えばRGB値で設定されている。例えば、「赤」の糸色データがRGB値で与えられている場合、刺繍模様40はディスプレイ9の画面100において、「赤」で表示される。尚、糸色データは、前記閉領域や後述する部分領域の色を特定するデータであればよく、例えば、閉領域400に係る前記ビットマップデータの各画素において「赤」の色を表わすデータを含む。   The embroidery data includes thread color data for specifying the color of the closed region 400 of the embroidery pattern 40 and image data (for example, bitmap data (not shown)) for displaying the embroidery pattern 40 on the display 9. The thread color data is set as an RGB value, for example, indicating the thread color used for sewing the closed region 400. For example, when “red” thread color data is given as RGB values, the embroidery pattern 40 is displayed in “red” on the screen 100 of the display 9. The thread color data may be data specifying the color of the closed region or a partial region described later. For example, data representing the color of “red” in each pixel of the bitmap data related to the closed region 400 may be used. Including.

EEPROM25は、前記糸色データとして刺繍模様40に割り当てられる色情報を記憶しており、前記RAM24と共に色記憶手段に相当する。色情報は、例えば、ミシンMにおいて使用可能な糸駒10の糸色に関する情報であって、RGB値で予め定義されている。具体的には、例えば300色分のRGB値と当該RGB値に夫々対応付けられた1〜300のパレット別色番号とからなるパレットテーブルがEEPROM25に記憶されている。パレットテーブルの色は、その300色分についてパレット別色番号により識別される。   The EEPROM 25 stores color information assigned to the embroidery pattern 40 as the thread color data, and corresponds to a color storage means together with the RAM 24. The color information is information relating to the thread color of the thread spool 10 that can be used in the sewing machine M, for example, and is defined in advance with RGB values. Specifically, for example, a palette table including RGB values for 300 colors and 1 to 300 color numbers for each palette associated with the RGB values is stored in the EEPROM 25. The colors of the palette table are identified by palette-specific color numbers for the 300 colors.

本実施形態では、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 control device 21, and is represented by a hue value H, a saturation value S, and a lightness value V. In this case, the hue is a type of color such as red, purple, and blue, and the value of H is in the range of 0 to 360, for example. The saturation is the vividness of the color, and the value of S is in the range of 0.0 to 1.0, for example. The brightness is the brightness of the color, and the value of V is in the range of 0.0 to 1.0, for example.

前記色情報は、複数のカテゴリ別に分類することができる。カテゴリとして例えば「グラデーション」の他、「ビビッド」、「ソフト」の分類基準が用意されている。これらカテゴリには、上記の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 EEPROM 25, for example.

また、本実施形態の制御装置21は、図5に示すように刺繍模様40を複数の部分領域401〜410に分割する。そして、これら部分領域401〜410の糸色データとして用いる色を、上記したカテゴリに属する色、或は前記濃淡別バッファの色の中からランダムに抽出し、所定の配列規則に従い部分領域401〜410の位置に対応させて割り当てる割当処理を行う。これにより、単色の刺繍模様40の刺繍データを元に、配色バランスのとれた複数の糸色で縫製される刺繍模様40の刺繍データを簡単に得ることができる。   Further, the control device 21 of the present embodiment divides the embroidery pattern 40 into a plurality of partial areas 401 to 410 as shown in FIG. Then, the colors used as the thread color data of these partial areas 401 to 410 are randomly extracted from the colors belonging to the above-mentioned categories or the colors of the shaded buffers, and the partial areas 401 to 410 are according to a predetermined arrangement rule. An allocation process is performed in accordance with the positions of As a result, the embroidery data of the embroidery pattern 40 that is sewn with a plurality of thread colors in a balanced color arrangement can be easily obtained based on the embroidery data of the single color embroidery pattern 40.

即ち、制御装置21は、前記マスクデータ及びテンプレートパターンデータに基づいて、図5(a)に示すように刺繍模様40を包含する矩形枠Fを設定すると共に、当該矩形枠F内を例えば10等分するように区分けする分割線L1〜L9を設定する。また、制御装置21は、針落ち位置データを順次読み出して分割線L1〜L9の位置情報と照合することにより、1つの閉領域400を、第1部分領域401〜第10部分領域410に分割した針落ち位置データを作成する。   That is, the control device 21 sets a rectangular frame F including the embroidery pattern 40 as shown in FIG. 5A based on the mask data and the template pattern data, and within the rectangular frame F, for example, 10 etc. Dividing lines L1 to L9 that are divided so as to be divided are set. Further, the control device 21 sequentially reads the needle drop position data and collates it with the position information of the dividing lines L1 to L9, thereby dividing one closed region 400 into the first partial region 401 to the tenth partial region 410. Create needle entry position data.

一方、制御装置21は、「グラデーション」のカテゴリが設定されている場合、そのカテゴリに属する色について、前記彩度値Sに基づき濃淡レベルLVを判別するための濃淡レベルテーブルを作成する。詳しくは後述するように、濃淡レベルLVの区分数Dは、部分領域401〜410の総数xの範囲内で任意に設定される(x≧D≧2)。例えば図7(a)に示すように、濃淡レベルLVの区分数が部分領域401〜410の総数xと一致するように設定された場合、濃淡レベルテーブルにおける彩度値Sは、部分領域401〜410の総数xで区分(除算)した彩度単位Uで表わされる。これにより、彩度値Sが0%超U%以下の範囲を濃淡レベルLV1、U%超2U%以下の範囲を濃淡レベルLV2、…、(x−1)U%超100%以下の範囲を濃淡レベルLVxに設定する。尚、詳しい説明は省略するが、本実施形態では彩度値Sが0%の無彩色(白、黒、灰色)について、明度値Vに基づいて濃淡レベルLVが判別されるようになっており、例えば白は濃淡レベルLV1に、黒は濃淡レベルLVxに区分される。また、濃淡レベルは、彩度値や明度値に基づく区分に限定するものではなく、RGB値を利用して設定してもよい。 On the other hand, when the “gradation” category is set, the control device 21 creates a light / dark level table for determining the light / dark level LV based on the saturation value S for colors belonging to the category. As will be described in detail later, the number of divisions D of the light and dark level LV is arbitrarily set within the range of the total number x of the partial areas 401 to 410 (x ≧ D ≧ 2). For example, as shown in FIG. 7A, when the number of divisions of the light / dark level LV is set to coincide with the total number x of the partial areas 401 to 410, the saturation value S in the light / dark level table is set to the partial areas 401 to 401. It is represented by a saturation unit U X divided (divided) by the total number x of 410. Thus, the saturation S is 0% Super U X% less range gray levels LV1, U X% ultra 2U X% less range gray level LV2, ..., (x-1 ) U X% more than 100% The following range is set to the light / dark level LVx. Although not described in detail, in the present embodiment, the gray level LV is determined based on the lightness value V for an achromatic color (white, black, gray) having a saturation value S of 0%. For example, white is divided into light and shade levels LV1, and black is divided into light and shade levels LVx. Further, the shading level is not limited to the classification based on the saturation value or the lightness value, and may be set using RGB values.

制御装置21は、前記濃淡別バッファ(RAM24の色情報記憶領域246)に、上記のカテゴリに属する色のRGB値を、濃淡レベル毎にLV1〜LVxのグループに分けて記憶させる。この場合、濃淡別バッファには、各グループに属する複数色のRGB値が、当該RGB値に夫々対応付けられた濃淡別色番号と共に記憶される。こうして、制御装置21は、前記パレットテーブル或は上記したカテゴリに属する色を、濃淡により分割数に応じた複数のグループに配分する。   The control device 21 stores the RGB values of the colors belonging to the above categories in groups of LV1 to LVx for each light / dark level in the light / dark buffer (the color information storage area 246 of the RAM 24). In this case, the RGB values of a plurality of colors belonging to each group are stored in the shade-specific buffer together with the shade-specific color numbers respectively associated with the RGB values. In this way, the control device 21 distributes the colors belonging to the pallet table or the above-described category to a plurality of groups according to the number of divisions based on shading.

また、制御装置21は、前記割当処理においてランダムに配色するために乱数を発生させる乱数発生手段として構成されている。そして、詳しくは後述するように、制御装置21は、部分領域401〜410の位置に対応させて、所定の配列規則に従い該当する濃淡レベルLVに属する色の中から、乱数を利用して糸色データとして用いる色をランダムに抽出して割り当てる。   Further, the control device 21 is configured as a random number generating means for generating random numbers for randomly assigning colors in the assignment process. As will be described in detail later, the control device 21 uses a random number to select the thread color from among the colors belonging to the corresponding light and shade level LV according to a predetermined arrangement rule in correspondence with the positions of the partial areas 401 to 410. Colors used as data are randomly extracted and assigned.

次に、刺繍データ処理プログラムの動作について、前記糸色データに関する配色を中心に図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 control device 21 based on the embroidery data processing program.
The user touches the touch panel 9a, reads embroidery data from the ROM 23, and displays a pattern selection screen (not shown) on the display 9 according to the embroidery data. When the user selects a desired embroidery pattern from a plurality of embroidery patterns on the pattern selection screen by a touch operation, the screen is switched to the enlarged display screen 100 of FIG. 4 displaying the embroidery pattern. Thereby, the embroidery data processing program is started for the selected embroidery pattern. As shown in FIG. 8, in the embroidery data processing program, a process of setting a dividing line for the same color closed area in the embroidery pattern (step A1) and a process of dividing the closed area into a plurality of partial areas by the dividing line. (Step A2) and a process (Step A3) for arranging colors for each of the divided partial areas are executed. Hereinafter, steps A1 to A3 will be described in detail by taking as an example the case where the embroidery pattern 40 is selected.

図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 control device 21 reads dividing line template pattern data from the ROM 23 (step B2). In this case, based on the template pattern data and the mask data of the embroidery pattern 40, the dividing lines L1 to L9 that divide the rectangular frame F as the boundary frame shown in FIG. (Steps B3 and B5). The dividing lines L1 to L9 are, for example, arranged in the rectangular frame F at equal intervals in the left-right direction from the embroidery start point P1 to the embroidery end point Pe, and the rectangular frame F is divided into sections A1 to A10 having a predetermined size. To do.

一方、ユーザは、ステップ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 touch panel 9a in step A1 to specify a desired dividing line L from among various dividing line patterns and the number of divisions by the dividing line L (YES in step B1). Step B4). Based on the type and number of division lines L that are designated, the control device 21 divides the inside of the rectangular frame F or sets the division lines L in parallel. For example, when the dividing line L pointing in the vertical direction and the number of divisions “10” are designated, the control device 21 divides the length of the upper side (or the lower side) of the rectangular frame F by the number of divisions, and the calculated value Is set as the interval between the dividing lines L, the rectangular frame F is divided into the same areas A1 to A10 as described above (step B5).

次いで、分割線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 closed area 400 of the embroidery pattern 40 is divided into a plurality of partial areas 401 to 410 by the dividing lines L1 to L9 (see FIG. 10). In the dividing process, the control device 21 acquires the first needle drop position data in the needle drop order and collates with the coordinate data of the dividing lines L1 to L9, so that the needle drop position P1 is within the rectangular frame F. It is identified whether it is in the area A1 to A10 (steps C1 and C2). The needle drop position is in the leftmost area A1 in FIG. 5 and is the embroidery start point P1 described above (YES in step C3).

そこで、制御装置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 control device 21 acquires the subsequent second needle drop position data, and identifies which zone A1 to A10 the needle drop position P1 is in the same manner as the first needle drop position P1 (step C1, C2). Here, it is determined whether or not the identified area of the second needle drop position P1 matches the area A1 of the first needle drop position P2, and the areas of both needle drop positions P1 and P2 match with A1. If yes, the process returns to step C1 again (YES in step C3). As described above, steps C1 to C3 are repeatedly executed until it is determined that the third and subsequent needle drop positions P3 do not coincide with the area of the previous needle drop position (NO in step C3). 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 control device 21 sets the first partial area 401 in the section A1 up to the needle drop position P17 one stitch before, and adds a “stop code” as the end of the needle drop position data (step C4, FIG. 6 ( c)). Alternatively, the control device 21 calculates the coordinates of the intersection (see FIG. 6B) between the line segment connecting the needle drop positions P16 and P17 and the dividing line L1. Needle drop position data having the intersection as the end point of the needle drop position in the first partial area 401 and a “stop code” are added, and the needle having the intersection as the start point P1 of the needle drop position in the second partial area 402 is added. Drop position data may be added.

針落ち位置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 partial region 401. "Stop code" is added to (step C4). In this way, the needle drop position data of the embroidery pattern 40 is read for each stitch and the steps C1 to C5 are repeatedly executed, whereby the first part is obtained as a data group to which “stop codes” are added for each section. The area 401, the second partial area 402,..., And the tenth partial area 410 are divided in this order so as to execute the sewing operation (see FIG. 5A). Then, when the control device 21 reads up to the needle drop position data of the embroidery end point Pe described above (YES in step C5), the dividing process is ended and the process proceeds to step A3.

尚、図5の刺繍模様40では、一つの部分領域(例えば第2部分領域402)が互いに離間した複数の領域402a,402bで構成されている。このような場合には、当該部分領域402に関し、それら領域402a,402b間を所謂ジャンプ縫いにより順に連続して縫製動作を実行するように、前記「停止コード」と併せて「ジャンプ縫いコード」を付加すればよい。ジャンプ縫いに係る構成については、本出願人が出願した特開平07−003608号公報や特開2005−279069号公報に開示していることから、詳細な説明は省略する。   In the embroidery pattern 40 of FIG. 5, one partial region (for example, the second partial region 402) is composed of a plurality of regions 402a and 402b that are separated from each other. In such a case, regarding the partial area 402, the “jump sewing code” is combined with the “stop code” so that the sewing operation is sequentially performed between the areas 402a and 402b by so-called jump sewing. Add it. The configuration related to jump stitching is disclosed in Japanese Patent Application Laid-Open No. 07-003608 and Japanese Patent Application Laid-Open No. 2005-279069 filed by the present applicant, and thus detailed description thereof is omitted.

図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 control device 21 generates random numbers from 1 to 300 corresponding to the number of colors in the palette table, for example. Next, the palette-specific color numbers 1 to 300 in the palette table that match the generated random number are collated, and the RGB values corresponding to the palette-specific color numbers are extracted. Further, the control device 21 calculates an HSV value based on the extracted RGB values, and sets a range (threshold values H G1 and H G2 ) having the hue value H as a center value. Then, the hue value H is calculated based on the RGB value of color number 1 for each palette, and it is determined whether or not the hue value H is within the range of the thresholds H G1 to H G2 . Here, when the hue value H is within the range of the threshold values H G1 to H G2 for the color of color number 1 by palette, it is selected as a color belonging to the “gradation” category (stored in the palette storage area 245 of the RAM 24). Is not selected if it is outside the range of the thresholds H G1 to H G2 .

パレット別色番号2以降の色についても、パレット別色番号1と同様に、色相値Hが演算されて閾値HG1〜HG2の範囲内にあるか否かが判断されることで、パレット記憶領域245への保存の有無が判断される。こうして、「グラデーション」のカテゴリが設定されている場合、パレットテーブルは、その300色の中から「グラデーション」のカテゴリに属する色が選定(更新)され、その更新後の内容でパレット記憶領域245に記憶される。 Similarly to the palette-specific color number 1, the colors after the palette-specific color number 2 are also stored in the palette storage by calculating whether the hue value H is within the range of the thresholds H G1 to H G2. Whether there is storage in area 245 is determined. In this way, when the “gradation” category is set, a color belonging to the “gradation” category is selected (updated) from the 300 colors in the palette table, and the updated contents are stored in the palette storage area 245. Remembered.

そして、制御装置21は、乱数を利用して刺繍模様40における部分領域401〜410のうち、何れか2つの部分領域を任意に決定する(ステップD2)。このうち一方の部分領域は、刺繍模様40において最も高い濃淡レベル(濃色ピークHp)の色を配色するための部分領域とされ、他方の部分領域は、最も低い濃淡レベル(淡色ピークLp)の色を配色するための部分領域とされる。ここで、例えば、図5(a)に示すように淡色ピークLpが第3部分領域403に、濃色ピークHpが第7部分領域407に夫々決定されたものとする。   And the control apparatus 21 arbitrarily determines any two partial areas among the partial areas 401-410 in the embroidery pattern 40 using a random number (step D2). One of the partial areas is a partial area for arranging the color of the highest light and shade level (dark color peak Hp) in the embroidery pattern 40, and the other partial area is the lowest light and shade level (light color peak Lp). It is a partial area for arranging colors. Here, for example, as shown in FIG. 5A, it is assumed that the light color peak Lp is determined in the third partial region 403 and the dark color peak Hp is determined in the seventh partial region 407, respectively.

ステップ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 partial regions 403 to 407) to obtain a saturation unit. Find U. As a result, a light / dark level table divided by the saturation unit U (density unit) according to the positions of the partial regions 403 and 407 to be the light color peak Lp and the dark color peak Hp is created and the color classification process is executed.

具体的には、図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 control device 21 divides the saturation value S into five corresponding to the third to seventh partial regions 403 to 407 ( The number of divisions D = 5) and the saturation unit U are set to 20%. In the color classification process, the control device 21 reads out the RGB value corresponding to the palette-specific color number 1 in the palette table updated in step D1. Next, the control device 21 calculates a saturation value S based on the read RGB values and collates the gray level table. As a result, the color of palette-specific color number 1 is stored in the shade-specific buffer of the color information storage area 246 as a new shade-specific color number 1 color at the corresponding shade level LV. The RGB values are also read out for colors with palette-specific color numbers of 2 and later, and new color-specific color numbers are assigned to the corresponding light-dark levels LV and stored in the light-dark buffer. In this way, the color of the palette table updated in step D1 is newly assigned with a color code for each density group LV1 to LV5 and stored in the density buffer.

そして、制御装置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 control device 21 randomly colors each of the partial areas 401 to 410 in correspondence with the positions of the partial areas 403 and 407 where the light color peak Lp or the dark color peak Hp is based on the data of the above-described dark and light buffers. (Step D4 ~).
That is, first in step D4, the control device 21 refers to the shade-specific buffer in the RAM 24 and generates a random number within the range of the total number of colors belonging to the shade level LV1. For example, when the total number of colors, that is, the maximum value of the color number for each shade is 25, random numbers are generated in the range of 1-25. Next, the control device 21 collates the color numbers classified by shade that match the random numbers generated at the shade level LV1, and extracts the color (RGB value) of the corresponding shade-specific color number. As a result, for the third partial region 403 having the light color peak Lp, the color used as the thread color data is randomly extracted from the colors belonging to the lowest lightness level LV1. The extracted color is stored in the extracted data storage area 249 of the RAM 24 as a color assigned to the third partial area 403.

ステップ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 partial region 404 that has moved from the third partial region 403 of the light color peak Lp to the dark peak Hp side by one (right adjacent in FIG. 5B). Then, a color is randomly extracted from the colors belonging to LV2 that is one higher than the light and shade level LV1 of the third partial region 403 previously arranged (step D6). The extracted color is stored in the extracted data storage area 249 as a color assigned to the fourth partial area 404 (step D7). Subsequently, the color arrangement target is set to the fifth partial area 405 on the right side of the fourth partial area 404 (step D5) in order to sequentially perform color arrangement toward the dark color peak Hp side (NO in step D8). Then, the color assigned to the fifth partial area 405 is randomly extracted from the colors belonging to LV3 that is one higher than the light and shade level LV2 of the fourth partial area 404 and stored in the extracted data storage area 249 (step D6, D7).

こうして、ステップ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 partial region 404, the fifth partial region 405, and the sixth partial region 406. The color of the highest lightness level LV5 is assigned to the seventh partial region 407 having the peak Hp (YES in step D8). As a result, each of the thread color data from the third partial region 403 of the light color peak Lp to the seventh partial region 407 of the dark color peak Hp is assigned a color that darkens in a gradation according to the position of the partial regions 403 to 407. It is done. Thereafter, in Step D9 and Step D10, the left partial areas 401, 402 and the right partial areas 408 to 410, which are left uncolored in the embroidery pattern 40, are respectively colored.

図12は、ステップD9に係る左側の部分領域401,402の配色処理の流れを示している。先ず、ステップE1では、配色対象となる領域Tを、淡色ピーク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 partial areas 401 and 402 according to step D9. First, in step E1, the region TL to be color-coded is one adjacent to the opposite side of the dark peak Hp from the third partial region 403 of the light color peak Lp (the left adjacent in FIG. 5B). Two partial areas 402 are set. Then, for the partial regions 402 and 401 on the left side of the light color peak Lp in the embroidery pattern 40, a gradation-like color scheme is formed that gradually increases toward the left side using the colors extracted in steps D4 to D8 (step E2, FIG. 13).

即ち、制御装置21はステップF1にて、現在の配色対象領域Tたる部分領域402を、配色開始領域Sに設定する(図5(b)参照)。次いで、制御装置21は、配色開始領域Sから配色対象領域Tまでの部分領域の数N、つまり淡色ピークLpの部分領域403よりも左側で配色を終えた部分領域の数Nを算出する(ステップF2)。そして、既に配色済みの部分領域403〜407のうち淡色ピークLpの部分領域403から(N+1)個分隣りの色を、配色対象領域Tに割り当てる色として抽出データ記憶領域249に記憶する(ステップF3)。従って、上記ステップF2,F3における第2部分領域402については、N=0であり、淡色ピークLpの右隣りの第4部分領域404と同じ色が割り当てられることとなる(図5(b)参照)。 That is, the control device 21 in step F1, the current color scheme target region T L serving partial region 402 is set to a color arrangement initiation region S L (see Figure 5 (b)). Then, the control unit 21, the number N L of partial areas from the color arrangement initiation region S L to color the target region T L, i.e. the number N L of partial areas having been subjected to the color on the left side than the partial region 403 of the light-colored peak Lp Calculate (step F2). Then, (N L +1) adjacent colors from the partial region 403 of the light color peak Lp among the already colored partial regions 403 to 407 are stored in the extracted data storage region 249 as colors to be assigned to the coloring target region TL. (Step F3). Therefore, for the second partial region 402 in steps F2 and F3, N L = 0, and the same color as the fourth partial region 404 on the right side of the light color peak Lp is assigned (FIG. 5B). reference).

その後、ステップF4では、淡色ピークLpより左側の部分領域402,401において、Nc個分の配色を終えたか否かが判断される。ここで、個数Ncは、淡色ピークLpの部分領域403と濃色ピークHpの部分領域407とで挟まれる部分領域404〜406の数(Nc=3個)である。また、ステップF5では、配色対象領域Tが、刺繍模様40における左端の部分領域401,407か否かが判断される。第2部分領域402については、1個分(<Nc(3個))の配色を終えたにすぎず(ステップF4にてNO)、且つ左端の部分領域401,407に該当しない(ステップF5にてNO)。従って、配色対象領域Tは、部分領域402の左隣りの第1部分領域401に設定される(ステップF6、ステップF2にリターン)。 Thereafter, in step F4, it is determined whether or not Nc color arrangements have been completed in the partial regions 402 and 401 on the left side of the light color peak Lp. Here, the number Nc is the number (Nc = 3) of the partial regions 404 to 406 sandwiched between the partial region 403 of the light color peak Lp and the partial region 407 of the dark color peak Hp. In step F5, it is determined whether the color arrangement target region TL is the leftmost partial regions 401 and 407 in the embroidery pattern 40. For the second partial region 402, only one (<Nc (three)) color scheme is finished (NO in step F4), and does not correspond to the leftmost partial regions 401 and 407 (step F5). NO). Accordingly, the color arrangement target region TL is set to the first partial region 401 on the left side of the partial region 402 (return to step F6 and step F2).

第1部分領域401についても、ステップF2でNが算出され(この場合N=1)、淡色ピークLpの部分領域403から(N+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 partial region 401, N L is calculated in step F2 (in this case, N L = 1), and the same color as that of the partial region 405 on the right by (N L +1) from the partial region 403 of the light color peak Lp. Is assigned (step F3). In the example of the embroidery pattern 40 described above, there are only two partial regions 402 and 401 on the left side of the light color peak Lp (NO in step F4). Therefore, when the color arrangement of the first partial area 401 is completed, it is determined that the color arrangement to the left end of the embroidery pattern 40 is completed (YES in step F5, YES in step E3 in FIG. 12), and proceeds to step D10 in FIG. Transition. At this time, the color arrangement in which the colors of the light and shade levels LV3, LV2, LV1, LV2, LV3, LV4, and LV5 are arranged in order from the left side is performed over the first partial region 401 to the seventh partial region 407.

上記した刺繍模様40の例とは異なり、淡色ピークLpより左側の部分領域の数が、両ピークHp,Lp間の部分領域の数Nc以上となる場合がある(図18の概念図参照)。この場合、前記ステップF2〜F6が繰り返し実行され、淡色ピークLpより左側の部分領域において、両ピークHp,Lp間の部分領域の数Ncと同数の配色を終えると(Nc=N、ステップF4にてYES)、図12のステップE3に移行する。そして、最後に配色した対象領域Tが、刺繍模様における左端の部分領域でない場合(ステップE3にてNO)、更に左隣りの部分領域について配色が行われる(ステップE4〜)。 Unlike the example of the embroidery pattern 40 described above, the number of partial regions on the left side of the light color peak Lp may be equal to or greater than the number Nc of partial regions between both peaks Hp and Lp (see the conceptual diagram of FIG. 18). In this case, the steps F2 to F6 are repeatedly executed, and in the partial region on the left side of the light color peak Lp, when the same number of colors as the number Nc of the partial regions between the peaks Hp and Lp is finished (Nc = N L , step F4). YES), the process proceeds to step E3 in FIG. If the last color-targeted region TL is not the leftmost partial region in the embroidery pattern (NO in step E3), coloration is further performed on the left adjacent partial region (steps E4 to E4).

即ち、淡色ピークLpより左側の部分領域において、前記Nc=N個(図18では3個)の配色が行われた後、更に左隣りを配色対象領域Tとして、濃色ピークHpの色と同じ色を配色する(ステップE4)。これにより、刺繍模様における淡色ピークLpを中心として、濃色ピークHpの色が対称となる位置に配色される。そして、ステップE4で配色した濃色ピークHpの部分領域が、刺繍模様における左端の部分領域でない場合(ステップE5にてNO)、配色対象領域Tを更に左隣りに設定して(ステップ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において、現在の配色対象領域Tを、配色開始領域S´として設定する(図18参照)。次いで、配色開始領域S´から配色対象領域Tまでの部分領域の数N´を算出する(現時点ではN´=0個、ステップG2)。そして、前記ピークHp,Lp間の部分領域のうち、淡色ピークLpの部分領域から(Nc−N´)個分隣り、つまり3個分右隣りの濃淡レベルLV4の色を、配色開始領域S´に割り当てる色として、抽出データ記憶領域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).

また、配色開始領域S´を配色しても、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えておらず(ステップG4にてNO)、且つ刺繍模様における左端の部分領域でない場合(ステップG5にてNO)、配色開始領域S´の左隣りに配色対象領域Tが移される(ステップG6)。こうして、ステップG2〜G6が繰り返し実行されることにより、配色開始領域S´から左側の部分領域に対して、前記ピーク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=N´ステップG4にてYES)、図12のステップE8に移行する。そして、最後に配色した対象領域Tが、刺繍模様における左端の部分領域でない場合(ステップE8にてNO)、更に左隣りを配色対象領域Tとして、淡色ピークLpと同じ色を配色する(ステップE9、図18参照)。ステップE9で配色した淡色ピークLpの部分領域が、刺繍模様における左端の部分領域でない場合(ステップE10にてNO)、配色対象領域Tを左隣りの部分領域に移し(ステップ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では、配色対象となる領域Tを、当初設定した濃色ピーク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にて、現在の配色対象領域Tを、配色開始領域Sに設定する(図18参照)。次いで、配色開始領域Sから配色対象領域Tまでの部分領域の数N、つまり当初設定した濃色ピークHpよりも右側で配色を終えた部分領域の数Nを算出する(ステップI2)。そして、両ピークHp,Lp間の部分領域のうち濃色ピークHpの部分領域から(N+1)個分隣り、つまり左隣りの色を、配色対象領域Tに割り当てる色として抽出データ記憶領域249に記憶する(ステップI3)。従って、上記ステップI2,I3で配色開始領域Sを配色する場合(N=0)、濃色ピークHpの左隣りの部分領域の色(濃淡レベルLV4)と同じ色が割り当てられる(図18参照)。 That is, the control device 21 in Step I1, the current color scheme target region T R, sets the color scheme initiation region S R (see Figure 18). Then, the number N R of the partial region from the color arrangement initiation region S R to color the target region T R, that is, calculates the number N R of the partial region having been subjected to the color on the right side than the dark peak Hp initially set (step I2 ). Then, both peaks Hp, the partial region of the dark peak Hp among the partial region between Lp (N R +1) pieces worth next, that is, the color of the adjacent left, the extracted data storage area as a color to be assigned to color the target region T R It memorize | stores in 249 (step I3). Therefore, when color coloration initiation region S R in step I2, I3 (N R = 0 ), is assigned the same color (gray level LV4) of the left next to the partial region of the dark peak Hp (Fig. 18 reference).

また、配色開始領域Sを配色しても、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えておらず(ステップI4にてNO)、且つ刺繍模様における右端の部分領域でない場合(ステップI5にてNO)、配色開始領域Sの右隣りに配色対象領域Tが移される(ステップI6)。こうして、ステップI2〜I6が繰り返し実行されることにより、配色開始領域Sから左側の部分領域に対して、前記ピーク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=N、ステップ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 embroidery pattern 40, when the same number of colors as the number Nc of the partial areas between the peaks Hp and Lp is finished (Nc = N R , YES in step I4), all the partial areas 401 to 410 are displayed. It is determined that the color arrangement has been completed (YES in step H3 in FIG. 15), and this process ends (END). In this case, as shown in FIG. 5 (b), the control device 21 covers the first partial area 401 to the tenth partial area 410 in order from the left to the lightness levels LV3, LV2, LV1, LV2, LV3, LV4, LV5, and LV4. , LV3, and LV2 are arranged on the screen 100 of the display 9 after the color arrangement.

刺繍模様40の例とは異なり、図18に示すように、当初設定した濃色ピークHpよりも右側の部分領域の数が、前記ピークHp,Lp間の部分領域の数Nc以上となる場合がある。この場合、当該濃色ピークHpより右側の部分領域において、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えると(Nc=N、ステップI4にてYES)、図15のステップH3に移行する。そして、最後に配色した対象領域Tが、刺繍模様における右端の部分領域でない場合(ステップH3にてNO)、更に右隣りの部分領域について順次配色が行われる(ステップH4〜)。 Unlike the example of the embroidery pattern 40, as shown in FIG. 18, the number of partial regions on the right side of the initially set dark color peak Hp may be greater than or equal to the number Nc of partial regions between the peaks Hp and Lp. is there. In this case, in the partial region on the right side of the dark color peak Hp, when the same number of colors as the number Nc of the partial regions between the peaks Hp and Lp is finished (Nc = N R , YES in step I4), FIG. The process proceeds to step H3. 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 in step H3), sequential color scheme is carried out for further right of partial regions (step H4~).

即ち、前記Nc=N個(図18では3個)の配色が行われた後、更に右隣りを配色対象領域Tとして、淡色ピークLpの色と同じ色を配色する(ステップH4)。これにより、当初設定した濃色ピークHpを中心として、淡色ピークLpの色が対称となる位置に配色される。そして、ステップH4で配色した淡色ピークLpの部分領域が、刺繍模様における右端の部分領域でない場合(ステップH5にてNO)、配色対象領域Tを更に右隣りに設定して(ステップ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において、現在の配色対象領域Tを、配色開始領域S´に設定する(図18参照)。次いで、配色開始領域S´から配色対象領域Tまでの部分領域の数N´を算出する(現時点ではN´=0個、ステップJ2)。そして、前記ピークHp,Lp間の部分領域のうち、濃色ピークHpの部分領域から(Nc−N´)個分隣り、つまり3個分左隣りの色(濃淡レベルLV2の色)を、配色開始領域S´に割り当てる色として、抽出データ記憶領域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).

また、配色開始領域S´を配色しても、前記ピークHp,Lp間の部分領域の数Ncと同数の配色を終えておらず(ステップJ4にてNO)、且つ刺繍模様における右端の部分領域でない場合(ステップJ5にてNO)、配色開始領域S´の右隣りに配色対象領域Tが移される(ステップJ6)。こうして、ステップJ2〜J6が繰り返し実行されることにより、配色開始領域S´から右側の部分領域に対して、前記ピーク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=N´ステップJ4にてYES)、図15のステップH8に移行する。そして、最後に配色した対象領域Tが、刺繍模様における右端の部分領域でない場合(ステップH8にてNO)、更に右隣りを配色対象領域Tとして、濃色ピークHpと同じ色を配色する(ステップH9、図18参照)。ステップH9で配色した濃色ピークHpの部分領域が、刺繍模様における右端の部分領域でない場合(ステップH10にてNO)、配色対象領域Tを右隣りの部分領域に移し(ステップ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 screen 100 of the display 9 in a color assigned to the thread color data for a plurality of partial areas.

上記したステップA1,A2の実行に係る制御装置21は、刺繍データに基づいて刺繍模様を複数の部分領域に分割する模様分割手段に相当する。また、前記ステップA3の実行に係る制御装置21は、模様分割手段で分割された部分領域毎に、前記色記憶手段に記憶されている複数色の中から当該部分領域の色を特定する糸色データとして用いる色をランダムに抽出して割り当てる割当手段に相当する。   The control device 21 related to the execution of steps A1 and A2 described above corresponds to a pattern dividing unit that divides an embroidery pattern into a plurality of partial areas based on the embroidery data. Further, the control device 21 according to the execution of the step A3, for each partial region divided by the pattern dividing unit, specifies a color of the partial region from among a plurality of colors stored in the color storage unit This corresponds to assigning means for randomly extracting and assigning colors used as data.

以上のように本実施形態の刺繍データ作成装置30は、元の刺繍データを模様分割手段により刺繍模様を複数の部分領域に分割し、その分割した部分領域毎に、前記色記憶手段に記憶されている複数色の中から当該部分領域の色を特定する糸色データとして用いる色を、割当手段によりランダムに抽出して割り当てる。
これによれば、刺繍模様について複数の部分領域に分割し、それら部分領域に対して割当手段により抽出された色を割り当ててランダムな配色を行うことができる。従って、元の刺繍データが単色の刺繍模様であっても、これを分割して、多くの色を用いた刺繍模様とすることができる。また、糸色データの確認や指定といった面倒な作業を省略して、刺繍模様の配色を簡単に行うことができる。刺繍模様について、偶然性や意外性のある配色が可能となり、規定の配色にとらわれない多様な配色パターンを得ることができる。
As described above, the embroidery data creation apparatus 30 according to the present embodiment divides the original embroidery data into a plurality of partial areas by the pattern dividing means, and the divided partial areas are stored in the color storage means. A color used as thread color data for specifying the color of the partial area is randomly extracted from the plurality of colors and assigned by the assigning means.
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 control device 21 divides the embroidery pattern into a plurality of parts by using a boundary frame (boundary frame setting means for setting the rectangular frame F and a dividing line for dividing the boundary frame) that includes the embroidery pattern based on the original embroidery data. (See Steps B1 to B5 and Steps C1 to C5.) According to this, the dividing line is set according to the size of the embroidery pattern, and the embroidery pattern is set appropriately. Can be divided into
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 embroidery pattern 40 is an embroidery pattern sewn with a single color. However, when the embroidery pattern is an embroidery pattern composed of a plurality of color-specific pattern parts sewn with different colors (thread colors), the embroidery pattern 40 The pattern portion may be divided into a plurality of partial areas and the same color arrangement process may be performed. Alternatively, after the embroidery data of an embroidery pattern composed of a plurality of color-specific pattern portions is converted into embroidery data that is sewn with a single color, the same color arrangement processing may be performed.

色記憶手段は、RAM24やEEPROM25に限定されるものではなく、ミシン或は刺繍データ作成装置に内蔵される他の内部記憶手段や、ミシン或は刺繍データ作成装置に着脱可能に装着される外部記憶手段でもよい。
前記刺繍データ処理プログラムを記録した記録媒体は、ROM23に限定されるものではなく、CD−ROM、フレキシブルディスク、DVD、メモリカード等の各種の記録媒体であってもよい。この場合、その記録媒体のプログラムを、前記専用機等のコンピュータにより読み込んで実行させることにより、上記実施形態と同様の作用及び効果を奏する。
The color storage means is not limited to the RAM 24 or the EEPROM 25, but other internal storage means built in the sewing machine or the embroidery data creation apparatus, or an external storage detachably attached to the sewing machine or the embroidery data creation apparatus. It may be a means.
The recording medium on which the embroidery data processing program is recorded is not limited to the ROM 23, and may be various recording media such as a CD-ROM, a flexible disk, a DVD, and a memory card. In this case, the program of the recording medium is read and executed by a computer such as the dedicated machine, so that the same operations and effects as in the above-described embodiment are obtained.

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 Dividing line 9 display (display means)
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 data creation device 34 Drive circuit (display means)

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記載の刺繍データ処理装置。   2. The embroidery data processing apparatus according to claim 1, wherein the assigning means assigns a plurality of colors randomly extracted from the color storage means in accordance with positions of the plurality of partial areas according to a predetermined arrangement rule. . 前記配列規則は、前記色記憶手段からランダムに抽出した複数の色を、色の濃淡に基づいて配列することを特徴とする請求項2記載の刺繍データ処理装置。   3. The embroidery data processing apparatus according to claim 2, wherein the arrangement rule arranges a plurality of colors randomly extracted from the color storage unit based on color shades. 前記配列規則は、前記色記憶手段からランダムに抽出した複数の色を、色の色彩に基づいて配列することを特徴とする請求項2記載の刺繍データ処理装置。   3. The embroidery data processing apparatus according to claim 2, wherein the arrangement rule arranges a plurality of colors randomly extracted from the color storage unit based on the color of the color. 前記配列規則は、前記色記憶手段からランダムに抽出した複数の色を、グラデーション状に変化するように配列することを特徴とする請求項2から4の何れかに記載の刺繍データ処理装置。   5. The embroidery data processing apparatus according to claim 2, wherein the arrangement rule arranges a plurality of colors randomly extracted from the color storage means so as to change in a gradation. 前記模様分割手段は、
前記刺繍データに基づいて前記刺繍模様を包含する境界枠を設定する境界枠設定手段と、
前記境界枠設定手段で設定した境界枠内を区分けする分割線により、前記刺繍模様を前記複数の部分領域に分割する分割線設定手段と、を備えることを特徴とする請求項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.
前記分割線設定手段は、前記境界枠内を略等分するように区分けする1つ以上の分割線を設定することを特徴とする請求項6記載の刺繍データ処理装置。   7. The embroidery data processing apparatus according to claim 6, wherein the dividing line setting means sets one or more dividing lines that divide the boundary frame so as to be substantially equally divided. 前記分割線設定手段は、略等間隔に並列する複数の分割線を設定することを特徴とする請求項6又は7記載の刺繍データ処理装置。   The embroidery data processing apparatus according to claim 6 or 7, wherein the dividing line setting means sets a plurality of dividing lines arranged in parallel at substantially equal intervals. 前記刺繍模様を前記複数の部分領域の前記糸色データに割り当てられた色で表示する表示手段を備えることを特徴とする請求項1から8の何れかに記載の刺繍データ処理装置。   The embroidery data processing apparatus according to claim 1, further comprising display means for displaying the embroidery pattern in a color assigned to the thread color data of the plurality of partial areas. 請求項1から9の何れかに記載の刺繍データ処理装置のコンピュータに、前記各種処理手段として機能させるための刺繍データ処理プログラム。   An embroidery data processing program for causing a computer of the embroidery data processing apparatus according to any one of claims 1 to 9 to function as the various processing means. 請求項1から9の何れかに記載の刺繍データ処理装置を備えたことを特徴とするミシン。   A sewing machine comprising the embroidery data processing device according to claim 1.
JP2012190049A 2012-08-30 2012-08-30 Embroidery data processing device, embroidery data processing program, and sewing machine Pending JP2014045873A (en)

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)

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