JP2003154181A - Embroidery data preparing device, embroidery data preparation program, and recording medium with embroidery data preparation program recorded thereon - Google Patents

Embroidery data preparing device, embroidery data preparation program, and recording medium with embroidery data preparation program recorded thereon

Info

Publication number
JP2003154181A
JP2003154181A JP2001355820A JP2001355820A JP2003154181A JP 2003154181 A JP2003154181 A JP 2003154181A JP 2001355820 A JP2001355820 A JP 2001355820A JP 2001355820 A JP2001355820 A JP 2001355820A JP 2003154181 A JP2003154181 A JP 2003154181A
Authority
JP
Japan
Prior art keywords
line segment
block
embroidery data
pixels
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001355820A
Other languages
Japanese (ja)
Other versions
JP4082019B2 (en
Inventor
Kenji Yamada
健司 山田
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 JP2001355820A priority Critical patent/JP4082019B2/en
Publication of JP2003154181A publication Critical patent/JP2003154181A/en
Application granted granted Critical
Publication of JP4082019B2 publication Critical patent/JP4082019B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Sewing Machines And Sewing (AREA)

Abstract

PROBLEM TO BE SOLVED: To prepare embroidery data in which stitches are not so many, on the basis of the natural image of a photograph, or the like, while effectively utilizing the merit thereof. SOLUTION: In respect to pixels comprising an image, line segment data are prepared while having the angle component of a line segment corresponding to each pixel (S2). A block composed of the prescribed number of units of pixels is imagined and line segment data corresponding to the predetermined fixed number of the line segments passing through this block are selected (S3). The embroidery data are prepared so that the stitches can be formed along with the line segment specified by the line segment data (S7).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、カラーや濃淡で表
現された写真画像を表す画像データに基づいて刺繍ミシ
ンの動作に必要な刺繍データを作成する刺繍データ処理
装置、刺繍データ作成プログラム、及び刺繍データ処理
プログラムを記録したコンピュータ読み取り可能な記録
媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an embroidery data processing device, an embroidery data creating program, and an embroidery data creating program for creating embroidery data necessary for the operation of an embroidery sewing machine based on image data representing a photographic image expressed in color or shade. The present invention relates to a computer-readable recording medium recording an embroidery data processing program.

【0002】[0002]

【従来の技術】従来、例えば、家庭用ミシンの分野にお
いては、イメージスキャナ装置などで読み込んだ図柄や
図形等の画像データに基いて刺繍データを作成する刺繍
データ処理装置が種々提案され、実用化されている。こ
の種の刺繍データ処理装置としては、一般的に、パーソ
ナルコンピュータに、イメージスキャナ装置、ハードデ
ィスク装置、キーボード、CRTディスプレイ等を接続
して構成されている。刺繍データを作成する場合には、
先ず、刺繍縫いに供する所望の図柄や図形を描いた原画
の画像データがイメージスキャナ装置で読み取られる。
2. Description of the Related Art Conventionally, in the field of household sewing machines, for example, various embroidery data processing devices for creating embroidery data based on image data such as designs and figures read by an image scanner device have been proposed and put into practical use. Has been done. An embroidery data processing device of this type is generally configured by connecting an image scanner device, a hard disk device, a keyboard, a CRT display and the like to a personal computer. When creating embroidery data,
First, the image data of the original image on which a desired design or figure to be used for embroidery sewing is drawn is read by the image scanner device.

【0003】次に、その画像データに基づいて、刺繍を
施す閉領域の輪郭線や中心線が抽出され、その輪郭線に
囲まれた閉領域の内部にタタミ縫いやサテン縫いを施す
縫目の刺繍データを作成する一方、輪郭線上に走り縫い
や千鳥縫いを施す刺繍データを作成したり、中心線に沿
って走り縫いや千鳥縫いを施す刺繍データを作成するよ
うにしている。このように、従来の刺繍データ処理装置
においては、画像データは、刺繍縫製に供する閉領域の
輪郭線を求める為にだけに使用されており、しかも、イ
メージスキャナ装置で読み込む画像としては、図柄の領
域の輪郭を確実に求められるような画像に限定されるこ
とが多かった。
Next, based on the image data, the contour line and the center line of the closed region to be embroidered are extracted, and the stitches to be subjected to the tatami or satin stitch inside the closed region surrounded by the contour line. While creating the embroidery data, the embroidery data for running and staggering stitches on the contour line is created, and the embroidery data for running and staggering stitches along the center line is created. As described above, in the conventional embroidery data processing device, the image data is used only for obtaining the contour line of the closed area used for embroidery sewing, and moreover, as an image read by the image scanner device, a pattern In many cases, the image was limited to an image in which the contour of the area can be reliably obtained.

【0004】それ故、濃淡や色などが2次元的に連続し
て変化するような写真画像の画像データについては、図
柄の輪郭を確実に求められないことから、刺繍データ作
成に相応しくないとされていた。ところで、最近、画像
データに含まれている濃淡や色などが2次元的に変化す
る場合でも、その変化を演算で求め、自動的に糸色の変
更を刺繍データに反映させるようにした刺繍データ処理
装置が種々提案されている。
Therefore, image data of a photographic image in which shades and colors change continuously in a two-dimensional manner is not suitable for creating embroidery data because the contour of the design cannot be reliably obtained. Was there. By the way, recently, even when the shade or color included in the image data changes two-dimensionally, the change is calculated and the change of the thread color is automatically reflected in the embroidery data. Various processing devices have been proposed.

【0005】例えば、特開平2−221453号公報に
おいては、画像データの濃淡や色の変化を糸色変更に反
映させるようにした刺繍データ作成装置が記載されてい
る。即ち、この刺繍データ作成装置においては、イメー
ジスキャナ装置で読み込んだ画像データを、マトリック
ス状の複数の小矩形領域の分割画像データに分割する一
方、各小矩形領域の階調値に対応してモザイク化し、異
なる階調値を有する小矩形領域を縫製するに際して糸替
えできるように、その糸替えする位置に縫製停止を指令
する停止コード(ストップコード)を随時挿入するよう
にして、モザイク化した領域毎にクロスステッチ縫目を
形成する刺繍データを作成するようにしている。
For example, Japanese Unexamined Patent Publication No. 2-221453 discloses an embroidery data creation device that reflects changes in shades and colors of image data in thread color changes. That is, in this embroidery data creation device, the image data read by the image scanner device is divided into divided image data of a plurality of small rectangular areas in a matrix, and the mosaic data is generated corresponding to the gradation value of each small rectangular area. In order to change the thread when sewing a small rectangular area having different gradation values, a stop code (stop code) for instructing a sewing stop is inserted at the thread changing position at any time to create a mosaiced area. The embroidery data for forming the cross-stitch stitch is created for each item.

【0006】例えば、特開平11−169568号公報
においては、画像データの濃淡や色の変化を糸色変更に
反映させるようにした刺繍データ作成装置が記載されて
いる。即ち、この刺繍データ作成装置においては、イメ
ージスキャナ装置で読み込んだ画像データを、マトリッ
クス状の複数の小矩形領域の分割画像データに分割する
一方、各小矩形領域の階調値に対応してモザイク化し、
異なる階調値を有する小矩形領域を縫製するに際して糸
替えできるように、その糸替えする位置に縫製停止を指
令する停止コード(ストップコード)を随時挿入するよ
うにして、モザイク化した領域毎にサテンステッチ縫目
を形成する刺繍データを作成するようにしている。
For example, Japanese Unexamined Patent Application Publication No. 11-169568 discloses an embroidery data creation device that reflects changes in shades and colors of image data in thread color changes. That is, in this embroidery data creation device, the image data read by the image scanner device is divided into divided image data of a plurality of small rectangular areas in a matrix, and the mosaic data is generated corresponding to the gradation value of each small rectangular area. Turned into
In order to change the thread when sewing a small rectangular area having different gradation values, a stop code (stop code) for instructing the sewing stop is inserted at the thread changing position at any time, and for each mosaiced area. The embroidery data that forms the satin stitch seam is created.

【0007】また、特開平11−114260号公報に
おいては、画像データの濃淡変化の特徴に基づいて、図
柄を刺繍で表現するのにふさわしい縫目方向と糸密度を
持っモザイク風の刺繍縫目の刺繍データを自動的に作成
することの可能な刺繍データ処理装置が記載されてい
る。即ち、この刺繍データ作成装置においては、イメー
ジスキャナ装置で読み込んだ画像データを、マトリック
ス状の複数の小矩形領域の分割画像データに分割する一
方、画像データからエッジを抽出し、小矩形領域毎にそ
の小矩形領域に対応するエッジに基づいて縫目方向を算
出する。そして小矩形領域毎にその小矩形領域における
平均濃度に基づいて糸密度を算出し、小矩形領域毎に先
に算出された縫目方向と、糸密度とに基づいて、小矩形
領域を埋める刺繍縫目に展開され、それらの刺繍縫目を
接続した所定の図柄の刺繍データを作成するようにして
いる。
Further, in Japanese Patent Laid-Open No. 11-114260, a mosaic-like embroidery stitch having a stitch direction and a thread density suitable for expressing a design by embroidery is based on the characteristics of the change in density of image data. An embroidery data processing device capable of automatically creating embroidery data is described. That is, in this embroidery data creation device, the image data read by the image scanner device is divided into divided image data of a plurality of small rectangular areas in a matrix, while the edges are extracted from the image data to extract each small rectangular area. The stitch direction is calculated based on the edge corresponding to the small rectangular area. Then, the thread density is calculated for each small rectangular area based on the average density in the small rectangular area, and the small rectangular area is filled with embroidery based on the stitch direction and the thread density calculated previously for each small rectangular area. The embroidery data of a predetermined pattern developed on the seams and connecting the embroidery seams is created.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、これら
上に挙げた方法はいずれも、解像度の問題と色の問題と
いう二つの問題点を解消できないでいる。解像度の問題
とは、ミシンで縫製を行なう場合、少なくとも針や糸の
太さよりも小さくは縫えないという事である。また現実
には、非常に近い点を何度も縫う事で糸の切れや絡みが
発生するといった問題があり、現実的な縫製の最低長は
2〜3mm程度である。一方、色の問題とは、カラー写
真などの自然画像を元に刺繍データを作成する場合、何
百・何千色の糸を用意するというのは現実的ではない、
ということである。
However, none of the above-mentioned methods can solve the two problems of resolution and color. The problem of resolution is that when sewing with a sewing machine, it is not possible to sew at least smaller than the thickness of the needle or thread. In reality, there is a problem that thread breakage or entanglement may occur due to stitching very close points many times, and the minimum practical sewing length is about 2 to 3 mm. On the other hand, with the problem of color, when creating embroidery data based on natural images such as color photographs, it is not realistic to prepare threads of hundreds or thousands of colors.
That's what it means.

【0009】上に挙げた3つの例ではいずれも、この解
像度の問題を回避するために、画像をモザイク状に変換
してから刺繍データを作成している。逆に言えばミシン
が縫製できる最低長よりも細かくは画像を表現できない
という事である。
In all of the above three examples, the embroidery data is created after the image is converted into a mosaic pattern in order to avoid this resolution problem. Conversely, it means that the image cannot be expressed more finely than the minimum length that the sewing machine can sew.

【0010】また、特開平2−221453号公報と特
開平11−169568号公報では、色の問題を回避す
るため、色数や階調値を落とすといった処理を行なって
いる。また、特開平11−114260号公報では、カ
ラーの刺繍データを作成する方法は提案されていない。
Further, in JP-A-2-221453 and JP-A-11-169568, in order to avoid the problem of color, the number of colors and the gradation value are reduced. Further, Japanese Patent Laid-Open No. 11-114260 does not propose a method for creating color embroidery data.

【0011】この問題を解消するために、本出願人は先
に、特願2000−10139号において、画像データ
から各部の角度の特徴を抽出し、その特徴に従った線分
(細長い小領域)を画像全体に対して配置し、各線分の
色を周囲の色を反映しながら限られた色数に減色して、
各線分を一本の縫目に変換する刺繍データ作成装置を提
案している。
In order to solve this problem, the present applicant has previously proposed, in Japanese Patent Application No. 2000-10139, to extract a characteristic of the angle of each part from image data and to draw a line segment (an elongated small area) according to the characteristic. Is arranged for the entire image, and the color of each line segment is reduced to a limited number of colors while reflecting the surrounding colors,
An embroidery data creation device that converts each line segment into one stitch is proposed.

【0012】この方法では、解像度の問題・色の問題と
もに、従来の方法に比べて良くなっており、「写真を刺
繍した」といえるレベルの出力が得られている。例えば
図6の画像にこの方法を適用すると、図26のようにな
る。しかし、詳細な表現を行うために、針数(ステッチ
数)がかなり多くなっている。例えば図26において針
数は60975針である。同程度の面積をタタミ縫いで
縫い埋めるように縫製した図39の針数は28574針
である。このように図26では針数が多いため、何度も
重ねて縫う個所が発生し、縫製品質を悪化させている。
With this method, both the problem of resolution and the problem of color are improved as compared with the conventional method, and the output at the level of "embroidering a photograph" can be obtained. For example, when this method is applied to the image of FIG. 6, it becomes as shown in FIG. However, the number of stitches (the number of stitches) is considerably increased in order to make a detailed expression. For example, in FIG. 26, the number of needles is 60975. The number of stitches in FIG. 39, which is sewn so that the same area is sewn with the tatami stitch, is 28,574 stitches. As described above, in FIG. 26, since the number of stitches is large, there are some places where the needles are sewn repeatedly, which deteriorates the quality of the sewn product.

【0013】本発明は、上述した問題点を解決するため
になされたものであり、写真などの自然画像を元に、そ
の特長を生かし、かつ、針数がそれほど多くない刺繍デ
ータを作成する刺繍データ処理装置、刺繍データ作成プ
ログラム及び刺繍データ処理装置プログラムを格納した
記録媒体を提供することを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and based on a natural image such as a photograph, embroidery which makes the best use of its features and creates embroidery data with a small number of stitches. An object of the present invention is to provide a data processing device, an embroidery data creation program, and a recording medium storing the embroidery data processing device program.

【0014】[0014]

【課題を解決するための手段及びその効果】上記の目的
を達成するために、請求項1に記載の発明の刺繍データ
作成装置は、画素の集合体からなる任意の画像を特定す
る画像データに基づいて刺繍データを作成する刺繍デー
タ作成装置において、前記画素毎に対応する線分を求
め、その角度成分を示す線分データを作成する線分デー
タ作成手段と、所定単位数の画素からなるブロックを仮
想し、そのブロック内の各々の画素に対応する前記線分
から所定の基準に従って所定の数の線分を選択する線分
データ選択手段と、前記選択された線分に沿って縫目が
形成されるように、前記刺繍データを作成する刺繍デー
タ作成手段とを備えていることを技術的特徴とする。
In order to achieve the above-mentioned object, the embroidery data creation apparatus of the present invention uses image data for specifying an arbitrary image composed of a set of pixels. In an embroidery data creation device that creates embroidery data based on the above, a line segment data creating unit that finds a line segment corresponding to each pixel and creates line segment data indicating the angle component, and a block including a predetermined number of pixels And a line segment data selecting means for selecting a predetermined number of line segments from the line segments corresponding to the respective pixels in the block according to a predetermined reference, and stitches are formed along the selected line segment. As described above, the technical feature is that the embroidery data creating means for creating the embroidery data is provided.

【0015】また、請求項17に記載の刺繍データ作成
プログラムは、画素の集合体からなる任意の画像を特定
する画像データに基づいて刺繍データを作成する刺繍デ
ータ作成プログラムにおいて、前記画素毎に対応する線
分を求め、その角度成分を示す線分データを作成する線
分データ作成手段と、所定単位数の画素からなるブロッ
クを仮想し、そのブロック内の各々の画素に対応する前
記線分から所定の基準に従って所定の数の線分を選択す
る線分データ選択手段と、前記選択された線分に沿って
縫目が形成されるように、前記刺繍データを作成する刺
繍データ作成手段とを備えていることを技術的特徴とす
る。
The embroidery data creation program according to a seventeenth aspect of the invention is an embroidery data creation program that creates embroidery data based on image data that specifies an arbitrary image consisting of a set of pixels. Line segment data creating means for creating the line segment data indicating the angle component and a block consisting of a predetermined number of pixels, and a predetermined line segment corresponding to each pixel in the block. Line segment data selecting means for selecting a predetermined number of line segments in accordance with the above criteria, and embroidery data creating means for creating the embroidery data so that stitches are formed along the selected line segments. Is a technical feature.

【0016】以上のように構成された刺繍データ作成装
置及びプログラムは、画像を構成する画素に対して、画
素毎に対応する線分の角度成分を有する線分データを作
成し、所定単位数の画素からなるブロックを仮想し、そ
のブロック内を通る予め決められた数の線分に対応する
線分データを選択する。そして、選択された線分データ
によって特定される線分に沿って縫目が形成されるよう
に、刺繍データを作成する。画素毎に対応する線分の角
度成分を有する線分データを作成するため、写真などの
自然画像を元に、その特長を生かし、刺繍データを作成
できる。また、ブロック内を通る予め決められた数の線
分に対応する線分データを選択するようにしたため、針
数がそれほど多くない刺繍データを作成することが可能
になる。
The embroidery data creation apparatus and program configured as described above creates line segment data having angle components of line segments corresponding to each pixel for pixels forming an image, and sets the predetermined number of units. A block of pixels is hypothesized, and line segment data corresponding to a predetermined number of line segments passing through the block is selected. Then, the embroidery data is created so that the stitches are formed along the line segment specified by the selected line segment data. Since the line segment data having the angle component of the line segment corresponding to each pixel is created, embroidery data can be created based on a natural image such as a photograph, taking advantage of its features. Further, since the line segment data corresponding to a predetermined number of line segments passing through the block is selected, it is possible to create embroidery data having a small number of stitches.

【0017】請求項2の刺繍データ作成装置及び請求項
18の刺繍データ作成プログラムでは、線分データ選択
手段(処理)は、糸密度、単位長さ当たりの画素数、前
記ブロック内の画素数、及びステッチ幅から、前記各ブ
ロック内で選択する線分の数を決定する。このため、最
適な数の線分数を決定することができる。
In the embroidery data creation device of the second aspect and the embroidery data creation program of the eighteenth aspect, the line segment data selection means (process) includes the thread density, the number of pixels per unit length, the number of pixels in the block, And the stitch width, the number of line segments selected in each block is determined. Therefore, the optimum number of line segments can be determined.

【0018】請求項3の刺繍データ作成装置及び請求項
18の刺繍データ作成プログラムでは、線分データ選択
手段(処理)は、前記画像を構成する画素の色情報と、
その画素の周りの画素の色情報との違いから算出した角
度成分を含んだ角度特徴の強さに基づいて、前記線分を
選択する。このため、写真などの自然画像を構成する画
素に対応した、色相、明度、彩度などの色情報を元に線
分データが選択されるので、その視覚的な特長を生かす
ようにステッチ角度を選び、刺繍データを作成できる。
In the embroidery data creation device of the third aspect and the embroidery data creation program of the eighteenth aspect, the line segment data selection means (process) includes color information of pixels forming the image,
The line segment is selected based on the strength of the angle feature including the angle component calculated from the difference with the color information of the pixels around the pixel. For this reason, line segment data is selected based on color information such as hue, brightness, and saturation, which correspond to the pixels that make up a natural image such as a photograph, so the stitch angle can be selected to take advantage of its visual features. You can select and create embroidery data.

【0019】請求項4の刺繍データ作成装置及び請求項
20の刺繍データ作成プログラムでは、線分データ選択
手段(処理)は、前記角度特徴の強度と、他の線分との
重なりの少なさに基づいて前記線分を選択する。このた
め、自然画像を元に、その特長を生かしながら、糸で埋
め尽くすようにステッチを配置することができる。さら
に、糸のムダは重なりの少ない状態で埋め尽くすので、
必要以上に針数を増やさないでも自然画像の特徴を生か
したステッチの配置ができる。
In the embroidery data creation device of claim 4 and the embroidery data creation program of claim 20, the line segment data selection means (process) determines that the intensity of the angular feature and the overlap of other line segments are small. Based on this, the line segment is selected. Therefore, based on the natural image, the stitches can be arranged so as to be filled with the yarn while making the best use of the feature. In addition, the waste of the threads fills up with a little overlap, so
Even if the number of stitches is not increased more than necessary, it is possible to arrange stitches that take advantage of the features of natural images.

【0020】請求項5の刺繍データ作成装置及び請求項
21の刺繍データ作成プログラムでは、前記線分データ
選択手段(処理)は、前記各ブロック内の画素数と前記
選択された線分の数との比が一定になるように前記線分
を選択する。このため、ブロックを構成する画素数にか
かわらず均一な密度になるようにステッチを配置するこ
とができる。
In the embroidery data creation device of claim 5 and the embroidery data creation program of claim 21, the line segment data selection means (process) determines the number of pixels in each block and the number of selected line segments. The line segment is selected so that the ratio of is constant. Therefore, the stitches can be arranged so as to have a uniform density regardless of the number of pixels forming the block.

【0021】請求項6の刺繍データ作成装置及び請求項
22の刺繍データ作成プログラムでは、線分データ選択
手段(処理)は、1のブロックの線分の数に対応した線
分を選択する際に、当該1のブロックに隣接する複数の
ブロックにまたがり前記所定の数に対応した線分を選択
する。このため、写真などの自然画像を元に、仮想した
ブロックの外形の影響が少ない形でその特長を生かすよ
うに刺繍データを作成できる。
In the embroidery data creation device of claim 6 and the embroidery data creation program of claim 22, the line segment data selection means (process) selects the line segment corresponding to the number of line segments in one block. , A line segment corresponding to the predetermined number is selected over a plurality of blocks adjacent to the one block. Therefore, it is possible to create embroidery data based on a natural image such as a photograph so as to make the best use of the features thereof in a form in which the influence of the outer shape of the virtual block is small.

【0022】請求項7の刺繍データ作成装置及び請求項
23の刺繍データ作成プログラムでは、線分データ選択
手段(処理)は、1つのブロックの線分の数に対応した
線分を選択する際に、前記1ブロック内で前記所定の数
に対応した線分を選択する。このため、演算処理の対象
を注目するブロックを構成する画素に限定すればよく、
処理が容易である。
In the embroidery data creation device of claim 7 and the embroidery data creation program of claim 23, the line segment data selecting means (process) selects the line segment corresponding to the number of line segments in one block. , A line segment corresponding to the predetermined number is selected within the one block. Therefore, the target of the arithmetic processing may be limited to the pixels forming the block of interest,
Easy to process.

【0023】請求項8の刺繍データ作成装置及び請求項
24の刺繍データ作成プログラムでは、線分データ選択
手段(処理)は、前記各ブロック内の線分の数が所定の
上限から下限の間になるように前記線分を選択する。こ
のため、何度も重ねて縫う個所が発生することで縫製品
質が悪化してしまうことのない範囲で、刺繍密度の高い
部位と、低い部位とが発生し、針数が少ないにもかかわ
らず、自然画像の特徴を反映した風合いを醸し出すこと
ができる。
In the embroidery data creation device of claim 8 and the embroidery data creation program of claim 24, the line segment data selecting means (process) causes the number of line segments in each block to fall between a predetermined upper limit and a lower limit. The line segment is selected so that For this reason, in a range in which the quality of the sewn product is not deteriorated by the occurrence of repeated stitching points, a high embroidery density area and a low embroidery density area are generated, and the number of stitches is small. The texture that reflects the characteristics of the natural image can be produced.

【0024】請求項9の刺繍データ作成装置及び請求項
25の刺繍データ作成プログラムでは、線分データ選択
手段(処理)は、前記各ブロック内の画素の角度特徴の
強さに基づいて、前記線分の数が所定の上限から下限の
間になるように前記線分を選択する。このため、写真な
どの自然画像を元に、その特長を生かしながら、刺繍密
度の高い部位と、低い部位とが発生し、風合いを醸し出
すことができる。
In the embroidery data creation device of the ninth aspect and the embroidery data creation program of the twenty-fifth aspect, the line segment data selection means (process) determines the line based on the strength of the angular feature of the pixel in each block. The line segment is selected so that the number of minutes is between a predetermined upper and lower limit. Therefore, based on a natural image such as a photograph, while taking advantage of its features, a portion having a high embroidery density and a portion having a low embroidery density are generated, and a texture can be created.

【0025】請求項10の刺繍データ作成装置及び請求
項26の刺繍データ作成プログラムでは、線分データ選
択手段(処理)は、前記各ブロック内の画素の色情報に
基づいて、前記線分の数が所定の上限から下限の間にな
るように前記線分を選択する。このため、色相、明度、
彩度などの元の画像を特徴づける色情報に基づいて、刺
繍密度の高い部位と、低い部位とが発生し、風合いを醸
し出すことができる。
In the embroidery data creation device of the tenth aspect and the embroidery data creation program of the twenty-sixth aspect, the line segment data selection means (process) determines the number of the line segments based on the color information of the pixels in each block. The line segment is selected so that is between a predetermined upper limit and a lower limit. Therefore, the hue, brightness,
Based on the color information that characterizes the original image, such as the saturation, a portion with high embroidery density and a portion with low embroidery density are generated, and a texture can be created.

【0026】請求項11の刺繍データ作成装置は、画素
の集合体からなる任意の画像を特定する画像データに基
づいて刺繍データを作成する刺繍データ作成装置におい
て、前記画像を構成する画素に対して、所定単位数の画
素からなるブロックを仮想し、このブロックに関連する
色情報に基づき、当該ブロックの角度特徴を求めるデー
タ作成手段と、求められた角度特徴に従い、当該ブロッ
クに、予め決められた数の線分を設定する線分設定手段
と、前記ブロックに関連する色情報に基づいて、前記設
定された線分の色を決定する線分色設定手段と、前記設
定された線分に沿って前記設定された色で縫目が形成さ
れるように、前記線分に対して設定された色に関する情
報を含んだ前記刺繍データを作成する刺繍データ作成手
段とを備えていることを技術的特徴とする。
An embroidery data creation apparatus according to claim 11 is an embroidery data creation apparatus that creates embroidery data based on image data that specifies an arbitrary image composed of a set of pixels. , A data unit for imagining a block composed of a predetermined number of pixels and obtaining the angle characteristic of the block based on the color information related to this block, and a predetermined block for the block according to the obtained angle characteristic Line segment setting means for setting a number of line segments, line segment color setting means for determining the color of the set line segment based on color information related to the block, and line segment setting means And an embroidery data creating unit that creates the embroidery data including information about the color set for the line segment so that a stitch is formed in the set color. And technical features of the door.

【0027】また、請求項27は、画素の集合体からな
る任意の画像を特定する画像データに基づいて刺繍デー
タを作成する刺繍データ作成プログラムにおいて、前記
画像を構成する画素に対して、所定単位数の画素からな
るブロックを仮想し、このブロックに関連する明るさに
関する情報に基づき、当該ブロックの角度特徴を求める
データ作成処理と、求められた角度特徴に対応させて、
当該ブロックに、当該角度特徴に対応する角度の予め決
められた数の線分に対応する線分データを設定する線分
データ選択処理と、前記ブロックに関連する画像データ
に含まれる色情報に基づいて、前記設定された線分デー
タと対応する線分の色を決定する線分色設定処理と、前
記設定された線分データによって特定される線分に沿っ
て前記設定された色で縫目が形成されるように、前記線
分に対して設定された色に関する情報を含んだ前記刺繍
データを作成する刺繍データ作成処理とを備えている技
術的特徴とする。
According to a twenty-seventh aspect of the present invention, in an embroidery data creating program for creating embroidery data based on image data specifying an arbitrary image composed of a set of pixels, a predetermined unit is set for each pixel forming the image. Virtualizing a block consisting of several pixels, based on the information about the brightness related to this block, in accordance with the data creation process for obtaining the angle feature of the block, and the obtained angle feature,
Based on line segment data selection processing for setting line segment data corresponding to a predetermined number of line segments of an angle corresponding to the angle feature in the block, and color information included in image data related to the block Line segment color setting processing for determining the color of the line segment corresponding to the set line segment data, and stitches in the set color along the line segment specified by the set line segment data. So as to form the embroidery data, the embroidery data creation process for creating the embroidery data including the information about the color set for the line segment.

【0028】請求項11の刺繍データ作成装置及び請求
項27の刺繍データ作成プログラムでは、画像を構成す
る画素に対して、所定単位数の画素からなるブロックを
仮想し、このブロックに関連する色情報に基づき、当該
ブロックの角度特徴を求め、求められた角度特徴に対応
させて、当該ブロックに、当該角度特徴に対応する角度
の予め決められた数の線分に対応する線分データを設定
し、前記ブロックに関連する色情報に基づいて、前記設
定された線分データと対応する線分の色を決定する。前
記設定された線分データによって特定される線分に沿っ
て前記設定された色で縫目が形成されるように、前記線
分に対して設定された色に関する情報を含んだ前記刺繍
データを作成する。このため、写真などの自然画像を構
成する画素に対応した色相、明度、彩度などの色情報を
元に線分データが選択され色が決定されるので、その視
覚的な特長を生かすようにステッチ角度及び色を選び、
刺繍データを作成できる。また、ブロックに予め決めら
れた数の線分に対応する線分データを設定するため、全
体を均一に刺繍することが可能になる。
According to the embroidery data creation device of the eleventh aspect and the embroidery data creation program of the twenty-seventh aspect, with respect to the pixels forming the image, a block consisting of a predetermined number of units of pixels is hypothesized, and color information related to this block is set. Based on the above, the angle characteristic of the block is obtained, and the line segment data corresponding to a predetermined number of line segments of the angle corresponding to the angle feature is set in the block in correspondence with the obtained angle feature. The color of the line segment corresponding to the set line segment data is determined based on the color information related to the block. The embroidery data including information on the color set for the line segment is formed so that a stitch is formed in the set color along the line segment specified by the set line segment data. create. Therefore, the line segment data is selected and the color is determined based on the color information such as hue, lightness, and saturation corresponding to the pixels that make up a natural image such as a photograph. Select stitch angle and color,
You can create embroidery data. Further, since the line segment data corresponding to a predetermined number of line segments is set in the block, it is possible to uniformly embroider the whole.

【0029】請求項12は、画素の集合体からなる任意
の画像を特定する画像データに基づいて刺繍データを作
成する刺繍データ作成装置において、前記画像を構成す
る画素に対して、所定単位数の画素からなるブロックを
仮想し、このブロックに関連する色情報に基づき、当該
ブロックの角度特徴を求めるデータ作成手段と、求めら
れた角度特徴に対応させて、当該ブロックに、当該角度
特徴に対応する角度で予め決められた数の第1の線分を
設定する第1線分データ選択手段と、当該ブロック内の
各画素に対応する色情報から算出された角度特徴の強度
に基づいて、前記画素について求められた前記角度特徴
に対応する角度の第2の線分を作成する線分データ作成
手段と、当該ブロック内で、一定数の画素の前記第2線
分を選択する第2線分データ選択手段と、前記設定され
た第1線分及び選択された第2線分に沿って縫目が形成
されるように、前記刺繍データを作成する刺繍データ作
成手段とを備えていることを技術的特徴とする。
According to a twelfth aspect of the present invention, in an embroidery data creation device that creates embroidery data based on image data that specifies an arbitrary image composed of a set of pixels, a predetermined unit number of pixels is formed for each pixel forming the image. A block of pixels is hypothesized, and data creating means for obtaining the angle characteristic of the block based on color information related to this block, and the obtained angle characteristic are associated with the block, and the block is associated with the angle characteristic. First line segment data selecting means for setting a predetermined number of first line segments by angle, and the pixel based on the intensity of the angle feature calculated from the color information corresponding to each pixel in the block. Line segment data creating means for creating a second line segment of an angle corresponding to the angle feature obtained for, and second for selecting the second line segment of a certain number of pixels in the block. And an embroidery data creating unit that creates the embroidery data so that stitches are formed along the set first line segment and the selected second line segment. Is a technical feature.

【0030】また、請求項28は、画素の集合体からな
る任意の画像を特定する画像データに基づいて刺繍デー
タを作成する刺繍データ作成プログラムにおいて、前記
画像を構成する画素に対して、所定単位数の画素からな
るブロックを仮想し、このブロックに関連する明るさに
関する情報に基づき、当該ブロックの角度特徴を求める
データ作成処理と、求められた角度特徴に対応させて、
当該ブロックに、当該角度特徴に対応する角度で予め決
められた数の第1の線分に対応する第1の線分データを
設定する第1線分データ選択処理と、当該ブロック内の
画素に対して算出された前記角度特徴の強度に基づい
て、前記画素について求められた前記角度特徴に対応す
る角度の第2の線分に対応する第2の線分データを作成
する線分データ作成処理と、当該ブロック内で、一定数
の画素の前記第2線分データを選択する第2線分データ
選択処理と、前記設定された第1線分データ及び選択さ
れた第2線分データによって特定される線分に沿って縫
目が形成されるように、前記刺繍データを作成する刺繍
データ作成処理とを備えていることを技術的特徴とす
る。
According to a twenty-eighth aspect of the present invention, in an embroidery data creation program for creating embroidery data based on image data specifying an arbitrary image composed of a set of pixels, a predetermined unit is set for each pixel forming the image. Virtualizing a block consisting of several pixels, based on the information about the brightness related to this block, in accordance with the data creation process for obtaining the angle feature of the block, and the obtained angle feature,
A first line segment data selection process of setting first line segment data corresponding to a predetermined number of first line segments at an angle corresponding to the angle feature in the block, and pixels in the block Line segment data creation processing for creating second line segment data corresponding to a second line segment of an angle corresponding to the angle feature obtained for the pixel based on the intensity of the angle feature calculated for the pixel And a second line segment data selection process for selecting the second line segment data of a certain number of pixels in the block, and the first line segment data set and the second line segment data selected. A technical feature is that the embroidery data creating process for creating the embroidery data is provided so that a stitch is formed along the line segment.

【0031】請求項12の刺繍データ作成装置及び請求
項28の刺繍データ作成プログラムでは、画像を構成す
る画素に対して、所定単位数の画素からなるブロックを
仮想し、このブロックに関連する色情報に基づき、当該
ブロックの角度特徴を求め、求められた角度特徴に対応
させて、当該ブロックに、当該角度特徴に対応する角度
で予め決められた数の第1の線分に対応する第1の線分
データを設定する。そして、当該ブロック内の各画素に
対応する色情報から算出された角度特徴の強度に基づい
て、前記画素について求められた前記角度特徴に対応す
る角度の第2の線分に対応する第2の線分データを作成
し、また、当該ブロック内で、一定数の画素の前記第2
線分データを選択し、設定された第1線分データ及び選
択された第2線分データによって特定される線分に沿っ
て縫目が形成されるように、前記刺繍データを作成す
る。ブロックの角度特徴に応じて、ブロックに予め決め
られた数の第1に対応する線分データを設定するため、
全体を均一の密度に刺繍することができる。さらに、画
素の角度特徴に応じて、第2の線分データを配置するた
め、写真などの自然画像を元に、さらにその特長を生か
すようなステッチ角度及び色を選び、刺繍データを作成
できる。
According to the embroidery data creation device of the twelfth aspect and the embroidery data creation program of the twenty-eighth aspect, a block consisting of a predetermined number of units of pixels is hypothesized with respect to the pixels forming the image, and the color information related to this block is set. Based on, the angle characteristic of the block is obtained, and the block is made to correspond to the obtained angle characteristic, and the block is provided with a first line segment corresponding to a predetermined number of first line segments at an angle corresponding to the angle feature. Set the line segment data. Then, based on the intensity of the angle feature calculated from the color information corresponding to each pixel in the block, the second line segment corresponding to the second line segment of the angle corresponding to the angle feature obtained for the pixel is obtained. Line segment data is created, and the second number of pixels of a certain number of pixels are generated in the block.
The line segment data is selected, and the embroidery data is created so that a stitch is formed along the line segment specified by the set first line segment data and the selected second line segment data. In order to set a predetermined number of line segment data corresponding to the first to the block according to the angle feature of the block,
The whole can be embroidered to a uniform density. Further, since the second line segment data is arranged according to the angle characteristic of the pixel, it is possible to create the embroidery data by selecting the stitch angle and the color that make the best use of the characteristic based on the natural image such as the photograph.

【0032】請求項13の刺繍データ作成装置及び請求
項29の刺繍データ作成プログラムでは、データ作成手
段(処理)は、前記画像を構成する画素に対して所定単
位数の画素からなるブロックを仮想し、このブロック内
の各画素について、前記画素の色情報と、その画素の周
りの画素の色情報との違いから算出した角度成分を含ん
だ角度特徴及び角度特徴の強度に基づいて、前記ブロッ
クの角度特徴を求める。写真などの自然画像を元に、そ
の特長をさらに生かすようにステッチ及び色を選び、刺
繍データを作成できる。
In the embroidery data creation device of claim 13 and the embroidery data creation program of claim 29, the data creation means (process) virtually creates a block consisting of a predetermined number of pixels with respect to the pixels forming the image. , For each pixel in this block, based on the intensity of the angle feature and the angle feature including the angle component calculated from the difference between the color information of the pixel and the color information of the pixels around the pixel, Find the angle feature. Based on natural images such as photographs, stitches and colors can be selected to create the embroidery data so that the features can be further utilized.

【0033】請求項14の刺繍データ作成装置及び請求
項30の刺繍データ作成プログラムでは、前記ブロック
を四角形にしたため容易に演算処理を行える。
In the embroidery data creation device of claim 14 and the embroidery data creation program of claim 30, since the block is a quadrangle, arithmetic processing can be easily performed.

【0034】請求項15の刺繍データ作成装置及び請求
項31の刺繍データ作成プログラムでは、前記ブロック
を段違いに配置させたため、ブロックの継ぎ目が目立た
なくなる。
In the embroidery data creation device according to the fifteenth aspect and the embroidery data creation program according to the thirty-first aspect, since the blocks are arranged in different stages, the seams of the blocks are inconspicuous.

【0035】請求項15の刺繍データ作成装置及び請求
項31の刺繍データ作成プログラムでは、前記ブロック
を6角形にしたため、ブロックの継ぎ目が目立たなくな
る。
In the embroidery data creation device according to the fifteenth aspect and the embroidery data creation program according to the thirty-first aspect, since the blocks are hexagonal, the seams of the blocks are inconspicuous.

【0036】[0036]

【発明の実施の形態】以下、実施の形態について図面を
参照して説明する。 [第1実施形態]まず、刺繍ミシンは、ミシンベッド上に
配置された、刺繍を施そうとする加工布を保持する刺繍
枠を、水平移動機構によって装置固有のX・Y座標系で
示される所定位置に移動させながら、縫い針及び釜機構
による縫製動作を行うことにより、その加工布に所定の
図柄の刺繍を施すようになっており、前記水平移動機構
や針棒等は、刺繍ミシンに内蔵されたマイクロコンピュ
ータ等から構成される制御装置により制御される。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments will be described below with reference to the drawings. [First Embodiment] First, in an embroidery sewing machine, an embroidery frame, which is arranged on a sewing machine bed and holds a work cloth to be embroidered, is indicated by a horizontal movement mechanism in an XY coordinate system unique to the apparatus. By performing the sewing operation by the sewing needle and the hook mechanism while moving it to a predetermined position, the work cloth is embroidered with a predetermined pattern, and the horizontal movement mechanism, the needle bar, etc. are provided on the embroidery sewing machine. It is controlled by a control device including a built-in microcomputer and the like.

【0037】刺繍ミシンには、メモリーカード装置が搭
載されており、一針毎の加工布のX・Y方向の移動量、
即ち、針落ち位置を指示する刺繍データ(ステッチデー
タ)が記録されたメモリカードをメモリカード装置に装
着することにより、外部から刺繍データが供給され、こ
の刺繍データに基づいて、制御装置が自動的に刺繍動作
を実行するようになっている。
The embroidery sewing machine is equipped with a memory card device for moving the work cloth in the X and Y directions for each stitch.
That is, when a memory card in which embroidery data (stitch data) indicating a needle drop position is recorded is attached to the memory card device, embroidery data is supplied from the outside, and the control device automatically operates based on the embroidery data. The embroidery operation is executed.

【0038】図1及び図2に示すように、この刺繍デー
タ作成装置1は、上述したように、不揮発性のメモリカ
ードに記録した状態で刺繍ミシンに供給される刺繍デー
タを作成、編集するためのものであり、基本的には、装
置本体10と、この装置本体10に接続されるマウス2
1、キーボード22、メモリカードコネクタ23、表示
装置24及びイメージスキャナ装置25から構成されて
いる。
As shown in FIGS. 1 and 2, the embroidery data creating apparatus 1 creates and edits the embroidery data supplied to the embroidery sewing machine in the state of being recorded in the non-volatile memory card as described above. Basically, the device main body 10 and the mouse 2 connected to the device main body 10
1, a keyboard 22, a memory card connector 23, a display device 24, and an image scanner device 25.

【0039】前記装置本体10は、図2に示すように、
CPUll、ROM12、RAM13及びI/Oインタ
ーフェイス14を備えており、マウス21、キーボード
22、メモリカードコネクタ23、表示装置24及びイ
メージスキャナ装置25がI/0インターフェイス14
に接続されている。
As shown in FIG. 2, the main body 10 of the apparatus is
The CPU 21, the ROM 12, the RAM 13, and the I / O interface 14 are provided, and the mouse 21, the keyboard 22, the memory card connector 23, the display device 24, and the image scanner device 25 include the I / O interface 14.
It is connected to the.

【0040】前記CPU11は、読み出し専用の記憶素
子であるROM12に記憶された本発明の刺繍データ作
成プログラムに従って、各種演算及び処理を実行するも
のであり、上述した線分データ作成手段、線分データ選
択手段、及び、刺繍データ作成手段に相当する。なお、
専用機の場合は、ROMにプログラムが記憶されている
が、汎用機(パーソナルコンピュータ等)の場合は、ハ
ードディスク等に記憶されたプログラムをRAM上に読
み込んで実行する。
The CPU 11 executes various calculations and processings in accordance with the embroidery data creation program of the present invention stored in the ROM 12 which is a read-only storage element. It corresponds to the selecting means and the embroidery data creating means. In addition,
In the case of a dedicated machine, the program is stored in the ROM, but in the case of a general-purpose machine (personal computer or the like), the program stored in the hard disk or the like is read into the RAM and executed.

【0041】前記RAM13は、任意に読み書き可能な
記憶素子であり、イメージスキャナ装置25で読み込ん
だ画像データや、図示しないハードディスク、CD−R
OM、CD−R等の外部記憶装置から読み出された画像
データも記憶することができるようになっている。
The RAM 13 is an arbitrarily readable / writable storage element, and includes image data read by the image scanner device 25, a hard disk (not shown), and a CD-R.
Image data read from an external storage device such as an OM or a CD-R can also be stored.

【0042】以上のように構成された刺繍データ作成装
置1を使用して、図6に示す写真画像を元に刺繍データ
を作成する処理手順について、図3〜図5に示すフロー
チャートに基づいて説明する。
A processing procedure for creating embroidery data based on the photographic image shown in FIG. 6 by using the embroidery data creation apparatus 1 configured as described above will be described with reference to the flowcharts shown in FIGS. To do.

【0043】まず図3において、イメージスキャナ装置
25によって、図6に示す写真画像を読み込むことによ
って取得した画像データを装置本体10に入力する(S
l)。この画像データには色あいの指標である色相、明
るさの指標である明度、あざやかさの指標である彩度な
どの色情報が含まれている。なお、上述したように、ハ
ードディスク、CD−ROM、CD−R等の外部記憶装
置から読み出された画像データを装置本体10に直接入
力することも可能である。
First, in FIG. 3, the image data obtained by reading the photographic image shown in FIG. 6 by the image scanner device 25 is input to the device main body 10 (S).
l). The image data includes color information such as hue which is an index of hue, brightness which is an index of brightness, and saturation which is an index of vividness. As described above, it is also possible to directly input the image data read from the external storage device such as the hard disk, the CD-ROM, the CD-R or the like into the apparatus main body 10.

【0044】次に、入力された画像データを構成する各
画素データについて、線分データ作成手段によって、そ
の角度特徴及び角度特徴の強度を算出する(S2)。具
体的な算出方法については、図4に示すフローチャート
に基づいて、以下に詳細に説明する。
Next, for each pixel data forming the input image data, the line segment data creating means calculates the angle feature and the intensity of the angle feature (S2). A specific calculation method will be described in detail below based on the flowchart shown in FIG.

【0045】まず、入力された画像データをグレースケ
ール化する(S21)。これは、カラー画像をモノクロ
画像に変換する処理であり、ここでは、RGBの3原色
成分からなる画像データを構成している各画素データ
(R、G、B)のうち、最大値と最小値の和の1/2
を、その画素の明るさの指標である輝度値として設定し
ている。例えば、ある画素のRGB値が(200、10
0、50)である場合の輝度値は、(200+50)÷
2=125となる。なお、画像データをグレースケール
化する方法は、上述した方法に限定されるものではな
く、例えば、各画素データ(R、G、B)の最大値を輝
度値として設定することも可能である。
First, the input image data is grayscaled (S21). This is a process of converting a color image into a monochrome image, and here, among the pixel data (R, G, B) forming the image data composed of the three primary color components of RGB, the maximum value and the minimum value are set. 1/2 of the sum of
Is set as a luminance value which is an index of the brightness of the pixel. For example, if the RGB value of a pixel is (200, 10
0,50), the luminance value is (200 + 50) ÷
2 = 125. The method of converting the image data into gray scale is not limited to the method described above, and for example, the maximum value of each pixel data (R, G, B) can be set as the brightness value.

【0046】次に、S21において、グレースケール化
された画像データに対して、ラプラス変換処理を行う
(S22)。なお、ここで用いたラプラス変換のオペレ
ータを図7(a)に、ラプラス変換処理後の画像を同図
(b)に示す。但し、図7(b)に示す画像は、白黒を
反転したものである。
Next, in S21, the Laplace transform process is performed on the grayscale image data (S22). The Laplace transform operator used here is shown in FIG. 7A, and the image after the Laplace transform process is shown in FIG. 7B. However, the image shown in FIG. 7B is a black-and-white inverted image.

【0047】そして、S22において得られたラプラス
変換画像に基づいて、画像を構成する各画素についての
角度特徴と角度特徴の強度を算出する(S23)。具体
的な算出方法は以下に示すとおりである。まず、画像を
構成するある画素に注目し、この注目画素の周囲Nドッ
トの画素を参照しながら、その注目画素の画素データが
有する角度特徴を計算する。ここでは、簡単のために、
N=1の場合について説明する。
Then, based on the Laplace transformed image obtained in S22, the angle feature and the intensity of the angle feature for each pixel forming the image are calculated (S23). The specific calculation method is as follows. First, attention is paid to a certain pixel forming an image, and the angle feature of the pixel data of the pixel of interest is calculated with reference to pixels of N dots around the pixel of interest. Here for simplicity,
The case of N = 1 will be described.

【0048】例えば、注目画素を中心とした3×3の画
素について、それぞれの画素データが、図8(a)に示
すような輝度値を有しているとする。ここで、輝度値
は、0〜255の範囲の数値によって特定され、輝度値
が「0」の場合が「黒」、輝度値が「255」の場合が
「白」である。まず、同図(b)に示すように、各画素
データについて、右方向の画素データとの差の絶対値を
それぞれ計算する。この場合、一番右側の3つの画素に
ついては計算されない。そして、同図(c)、(d)、
(e)に示すように、右下方向、下方向及び左下方向に
ついても、同様の計算を行う。この計算結果に基づい
て、最終的に角度特徴を求める。手順としては、領域中
の画素値の不連続性が高い方向に相当する、角度特徴の
法線方向の角度を求める。続いて、この角度に90度を
加えることにより、求める角度特徴とする。
For example, suppose that the pixel data of a 3 × 3 pixel centered on the pixel of interest has a brightness value as shown in FIG. 8A. Here, the brightness value is specified by a numerical value in the range of 0 to 255, and is "black" when the brightness value is "0" and "white" when the brightness value is "255". First, as shown in FIG. 9B, the absolute value of the difference between each pixel data and the pixel data in the right direction is calculated. In this case, the rightmost three pixels are not calculated. And, the same figure (c), (d),
As shown in (e), the same calculation is performed for the lower right direction, the lower direction, and the lower left direction. Based on the calculation result, the angle feature is finally obtained. As a procedure, the angle in the normal direction of the angle feature, which corresponds to the direction in which the pixel value discontinuity in the region is high, is obtained. Subsequently, 90 degrees is added to this angle to obtain the angle characteristic to be obtained.

【0049】すなわち、各方向の計算結果に基づいて、
それぞれの計算結果の和Sb、Sc、Sd、Seを求め
ると、Sb=300、Sc=0、Sd=300、Se=
450となる。このようにして得られたSb、Sc、S
d、Seから、水平成分及び垂直成分の和をそれぞれ求
め、アークタンジェントを計算する。このとき、右下方
向の水平・垂直成分と、左下方向の水平・垂直成分とは
うち消し合うと考える。
That is, based on the calculation result of each direction,
When the sums Sb, Sc, Sd, and Se of the respective calculation results are obtained, Sb = 300, Sc = 0, Sd = 300, Se =
It will be 450. Sb, Sc, S thus obtained
The sum of the horizontal component and the vertical component is obtained from d and Se, and the arc tangent is calculated. At this time, it is considered that the lower right horizontal / vertical component and the lower left horizontal / vertical component cancel each other out.

【0050】右下方向(45度方向)の和Scが、左下
方向(135度方向)の和Seよりも大きいとき、結果
として得たい値は0〜90度であるので、右下方向を水
平・垂直成分における+(プラス)成分、左下方向を水
平・垂直成分における−(マイナス)成分と考え、水平
成分の和はSb+Sc−Se、垂直成分の和はSd+S
c−Seとする。逆に、右下方向の和Scが、左下方向
の和Seよりも小さいときは、結果として得たい値が9
0〜180度であるので、左下方向を水平・垂直成分に
おける+(プラス)成分、左上方向を水平・垂直成分に
おける−(マイナス)成分と考え、水平成分の和はSb
−Sc+Se、垂直成分の和はSd−Sc+Seとす
る。このときは、結果として得たい値が90〜180度
であるので、アークタンジェントを計算する前に全体に
−1をかけることにする。
When the sum Sc in the lower right direction (45 degree direction) is larger than the sum Se in the lower left direction (135 degree direction), the desired value is 0 to 90 degrees, so the lower right direction is horizontal.・ The + (plus) component of the vertical component and the lower left direction are considered as the- (minus) component of the horizontal and vertical components, the sum of the horizontal components is Sb + Sc-Se, and the sum of the vertical components is Sd + S.
c-Se. On the contrary, when the sum Sc in the lower right direction is smaller than the sum Se in the lower left direction, the desired value is 9
Since it is 0 to 180 degrees, the lower left direction is considered as a + (plus) component in the horizontal / vertical components, and the upper left direction is considered as a- (minus) component in the horizontal / vertical components, and the sum of the horizontal components is Sb.
The sum of −Sc + Se and the vertical component is Sd−Sc + Se. At this time, since the desired value is 90 to 180 degrees, the whole value is multiplied by -1 before calculating the arc tangent.

【0051】例えば、図8(b)〜(e)に示す場合は
Sc<Seであるので、結果として得たい値は90〜1
80度となる。水平成分の和は300−0+450=7
50、垂直成分の和は300−0+450=750とな
り、アークタンジェントを計算する前に全体に−1を掛
けて、arctan(−750/750)=−45度となる。
この角度が、求めようとしている「角度特徴」の法線方
向の角度となる。計算結果として算出されたこの角度
は、注目領域内における画素データの不連続性が高い方
向を示しているということである。従って、この場合の
注目画素の角度特徴としては、−45+90=45度と
なる。ここで、右下方向を水平・垂直成分における+成
分と考えているので、ここで求めた45度は、右下方向
ということになる。上述の例では、注目した画素の周り
の画素が有する色情報との違いにより、角度特徴を求め
ていると言える。この場合、色情報としては各画素に対
応した明るさを用いているが、あざやかさや色あいを用
いても同様の結果が得られる。
For example, in the case shown in FIGS. 8 (b) to 8 (e), Sc <Se, so the desired value is 90 to 1
It will be 80 degrees. The sum of horizontal components is 300-0 + 450 = 7
The sum of 50 and the vertical component is 300-0 + 450 = 750, and the whole is multiplied by -1 before calculating the arc tangent to be arctan (-750/750) =-45 degrees.
This angle is the angle in the normal direction of the "angle feature" to be obtained. This angle calculated as the calculation result indicates that the pixel data in the attention area has a high discontinuity. Therefore, the angle characteristic of the pixel of interest in this case is −45 + 90 = 45 degrees. Here, since the lower right direction is considered as the + component in the horizontal / vertical components, the 45 degrees obtained here is the lower right direction. In the above example, it can be said that the angle feature is obtained based on the difference from the color information of the pixels around the pixel of interest. In this case, although the brightness corresponding to each pixel is used as the color information, the same result can be obtained by using the brightness and the color tone.

【0052】また、このようにして算出された角度特徴
の強度は、数1に示す数式を用いて計算する。この場
合、差の総和は、Sb、Sc、Sd、Seの和であるの
で、1050×(255−100)÷255÷16=3
9.9となる。ここで、角度特徴は明るさの変化の方
向、角度特徴の強度は明るさの変化の大きさを示してい
る。
The intensity of the angle feature calculated in this way is calculated using the mathematical formula shown in Equation 1. In this case, the sum of the differences is the sum of Sb, Sc, Sd, and Se, so 1050 × (255-100) ÷ 255 ÷ 16 = 3
It becomes 9.9. Here, the angle feature indicates the direction of change in brightness, and the intensity of the angle feature indicates the magnitude of change in brightness.

【0053】[0053]

【数1】 [Equation 1]

【0054】なお、第1実施形態では、画像を構成する
各画素についての角度特徴及びその強度を求めるため
に、上述したような方法を採用したが、これに限定され
るものではなく、図9(a)、(b)に示すようなPr
ewittのオペレータや、同図(c)、(d)に示す
ようなSobelのオペレータをグレースケール化され
た画像データに対して適用することで、画像を構成する
各画素についての角度特徴及びその強度を求めることも
可能である。例えば、Sobelのオペレータを用いる
場合、座標(x、y)において、水平オペレータを適用
した結果をsx、垂直オペレータを適用した結果をsy
とすると、座標(x、y)における角度特徴及びその強
度は、数2に示す数式によって計算することができる。
In the first embodiment, the method as described above is adopted in order to obtain the angular feature and its intensity for each pixel forming the image, but the present invention is not limited to this, and FIG. Pr as shown in (a) and (b)
By applying the operator of Ewitt or the operator of Sobel as shown in (c) and (d) of the figure to the grayscale image data, the angular feature and its strength of each pixel constituting the image It is also possible to ask For example, when the Sobel operator is used, at the coordinates (x, y), the result of applying the horizontal operator is sx, and the result of applying the vertical operator is sy.
Then, the angular feature at the coordinates (x, y) and its intensity can be calculated by the mathematical formula shown in Formula 2.

【0055】[0055]

【数2】 [Equation 2]

【0056】次に、S2において求めた各画素における
角度特徴とその強度に基づいて、線分データを作成す
る。この線分データによって特定される線分が、最終的
に刺繍データの縫目(ステッチ)となるものである。
Next, line segment data is created on the basis of the angle feature and intensity of each pixel obtained in S2. The line segment specified by this line segment data finally becomes the stitch of the embroidery data.

【0057】最終的に作成される線分データは、角度成
分、長さ成分及び色成分から構成されるが、ここでは、
まず、角度成分及び長さ成分を有する線分データを作成
する。角度成分については、S2において、各画素に対
して算出された角度特徴がそのまま設定されることにな
るが、長さ成分については、予め設定された固定値また
は操作者が入力した入力値が設定されることになる。具
体的には、図10に示すように、注目画素を中心に、設
定された角度成分及び長さ成分を有する線分が配置され
るような線分データが作成される。なお、図10では、
角度成分が45度の場合を示してある。
The line segment data finally created is composed of an angle component, a length component and a color component.
First, line segment data having an angle component and a length component is created. For the angle component, the angle feature calculated for each pixel in S2 is set as it is, but for the length component, a preset fixed value or an input value input by the operator is set. Will be done. Specifically, as shown in FIG. 10, line segment data is created such that line segments having the set angle component and length component are arranged around the pixel of interest. In addition, in FIG.
The case where the angle component is 45 degrees is shown.

【0058】ここで、画像を構成する全ての画素に対し
て線分データを作成すると、この線分データに基づいて
作成される刺繍データに従って刺繍縫製を行うとき、針
数が極端に多くなったり、同じところを何度も縫うこと
になって縫製品質が損なわれると共に、角度特徴の強度
の小さい画素についてもー律に線分データが作成される
ことになるので、画像全体としての特徴が効果的に反映
されない刺繍データが作成されることになる。
Here, if line segment data is created for all pixels forming an image, the number of stitches becomes extremely large when performing embroidery sewing according to the embroidery data created based on this line segment data. , As the same product is sewn many times, the quality of the sewn product is impaired, and line segment data is created even for pixels with small angle feature strength, so the features of the entire image are effective. The embroidery data that is not reflected on the screen is created.

【0059】このため、第1実施形態では、仮想的に画
像をブロックに分け、各ブロックにおける線分データの
数、即ち、ステッチの数が同一になるように線分データ
を選択する処理を図3に示す線分仮配置(S3)にて行
う。この線分仮配置処理のサブルーチンを図5に示す。
For this reason, in the first embodiment, the image is virtually divided into blocks, and the line segment data is selected so that the number of line segment data in each block, that is, the number of stitches, is selected. The line segment temporary arrangement (S3) shown in FIG. FIG. 5 shows a subroutine of this line segment temporary placement processing.

【0060】ここで、第1実施形態の刺繍データ作成装
置の説明を分かりやすくするため、入力画像と刺繍デー
タのサイズの関係を図11に示す。図6を参照して上述
した画像は390×540画素である。これを元に、1
30×180mmの刺繍データを作るので、3画素が1m
mに相当している。また、ステッチ幅を3mmに設定す
る。この場合、1ステッチは9画素に相当することにな
る。
Here, in order to make the description of the embroidery data creation apparatus of the first embodiment easier to understand, the relationship between the input image and the size of the embroidery data is shown in FIG. The image described above with reference to FIG. 6 has 390 × 540 pixels. Based on this, 1
Since 30x180mm embroidery data is created, 3 pixels are 1m
It corresponds to m. Also, the stitch width is set to 3 mm. In this case, one stitch corresponds to 9 pixels.

【0061】すなわち、図11中に示すように、 3画素(dot)/mm 3mm/stitch 9画素(dot)/stitchである。That is, as shown in FIG. 3 pixels (dot) / mm 3mm / stitch 9 pixels / dot.

【0062】先ず、図5に示すサブルーチンの糸密度設
定処理(S31)で糸の密度を決定する。画素は所定サ
イズの仮想的なブロックに分けられているので、糸の密
度が決まれば自ずとブロック内を通る糸の数、すなわち
線分の数も決まる。糸の密度としては予め定められた値
でも良いし、ユーザーが予め入力できるようにしても良
い。ここでは糸密度を3本/mmとする。
First, the yarn density is determined in the yarn density setting process (S31) of the subroutine shown in FIG. Since the pixels are divided into virtual blocks of a predetermined size, the number of threads passing through the block, that is, the number of line segments, is naturally determined when the density of threads is determined. The yarn density may be a predetermined value or may be input by the user in advance. Here, the thread density is 3 threads / mm.

【0063】2値画像作成処理(S32)で、入力画像
と同じサイズ(390×540画素)の2値画像(白)
を用意する。ここでの処理は、上述したS21、S22
と同様の処理であるため、詳細な説明を省略する。
In the binary image creation process (S32), a binary image (white) having the same size (390 × 540 pixels) as the input image.
To prepare. The processing here is the same as S21 and S22 described above.
Since the processing is the same as, the detailed description will be omitted.

【0064】マトリックスに分割処理(S33)で、入
力画像を図12に示すようにマトリックスに分割する。
この時マトリックスの各ブロックの一辺は、任意の値で
良いが、ここでは設定されたステッチ長(3mm=9画
素)をブロックの縦横の一辺とする。この値は予め定め
られた値でも良いし、ユーザーが入力できるようにして
も良い。
In the matrix division processing (S33), the input image is divided into matrices as shown in FIG.
At this time, one side of each block of the matrix may have an arbitrary value, but here, the set stitch length (3 mm = 9 pixels) is one side of the block. This value may be a predetermined value or may be input by the user.

【0065】線分数n計算処理(S34)で各ブロック
を通過する線分数nを計算する。上で設定した糸密度を
元に、ブロックひとつあたりを通る線分の数を計算す
る。 n=[密度]÷[1mmあたりの画素数]×[ブロック
内の画素数]÷[1ステッチあたりの画素数] この場合、n=3÷3×81÷9=9本/ブロックであ
る。
In the line segment number n calculation process (S34), the line segment number n passing through each block is calculated. Based on the yarn density set above, calculate the number of line segments that pass through each block. n = [density] / [number of pixels per 1 mm] × [number of pixels in block] / [number of pixels per stitch] In this case, n = 3/3 × 81/9 = 9 lines / block.

【0066】これは、図13(a)に示すように3×3
mm(9又9画素)のブロックに、密度3本/mmで全
ての線分を水平に配置した時、9本の線分が配置される
と言うことからも直感的に分かる。即ち、線分の数n
は、ブロック内に均等に糸が配置された際に、ブロック
内を埋めることができる数に相当する。
This is 3 × 3 as shown in FIG.
It can be intuitively understood from the fact that when all the line segments are arranged horizontally in a block of mm (9 or 9 pixels) at a density of 3 lines / mm, 9 line segments are arranged. That is, the number of line segments n
Corresponds to the number that can fill the inside of the block when the threads are evenly arranged in the block.

【0067】この時、画像の下端に正方形でないブロッ
クが発生するが、これらのブロックについても、上と同
様の計算で、各ブロックを通る線分数を計算する。図1
3(b)に示すように図12中に示す下端のブロック
が、幅が9画素,高さが3画素(=540を9で割った
余り)である場合、ブロック内の画素数は3×9=27
画素なので、n=3÷3×27÷9=3本/ブロックと
計算される。
At this time, blocks that are not squares occur at the lower end of the image. For these blocks, the number of line segments passing through each block is calculated by the same calculation as above. Figure 1
As shown in FIG. 3B, when the bottom block shown in FIG. 12 has a width of 9 pixels and a height of 3 pixels (= 540 divided by 9), the number of pixels in the block is 3 ×. 9 = 27
Since it is a pixel, n = 3/3 * 27/9 = 3 lines / block is calculated.

【0068】いずれのブロックにおいても、そのブロッ
ク内の画素数とこのブロックを通る線分の数との比は一
定になっている。線分優先順位決定処理(S35)で、
ステップ2で求めた角度特徴に従い、各ブロックに中心
点を持つ線分を当該ブロック内にある各画素に対応して
仮定し、優先順位をつける。各画素は、それぞれ角度特
徴とその強さを持っており、それぞれの画素を中心に線
分を配置する。
In each block, the ratio between the number of pixels in the block and the number of line segments passing through this block is constant. In the line segment priority order determination process (S35),
According to the angle feature obtained in step 2, a line segment having a center point in each block is assumed to correspond to each pixel in the block, and priorities are set. Each pixel has an angle characteristic and its strength, and a line segment is arranged around each pixel.

【0069】ここで、ブロックに含まれる全ての画素に
ついて角度特徴の強さに従って順位をつけていく。これ
は、次に述べる各ブロックの線分検索における優先順位
である。例えばあるブロックに含まれる画素の角度特徴
の強さが図14(a)のようであった時、線分検索にお
ける優先順位は図14(b)に示すようになる(なお、
図14では、簡単のためブロックを9×9ではなく4×
4画素で例示している点に注意されたい)
Here, all pixels included in the block are ranked according to the strength of the angle feature. This is the priority in the line segment search of each block described below. For example, when the strength of the angular characteristics of the pixels included in a certain block is as shown in FIG. 14A, the priority order in the line segment search is as shown in FIG.
In FIG. 14, the blocks are 4 × instead of 9 × 9 for simplicity.
(Note that it is illustrated with 4 pixels)

【0070】線分決定処理(S36)で先ず一本目の線
分を決める。この場合、予め決められた糸の密度から求
められるブロック内を通る線分の数に対応して、線分検
索における優先順位の高い順に選べばよい。これによ
り、写真などの自然画像に対しては、結果として、その
特徴を生かした線分のデータを得ることができ、針数も
それほど多くない刺繍データが作成できる。さらに、第
1実施形態では、角度特徴の強度が高く、且つ、他の線
分データとの重なりの少ない線分データを優先的に選択
することで、ブロック内の画素の特徴に忠実なステッチ
の方向性を保ちながら、ブロック内を糸で埋め尽くせる
ようにする。具体的には、図14を参照して上述した角
度特徴の強い順に設定した線分検索における優先順位に
従いながら、最も多く白い画素の上を通る線分を探す。
即ち、図15(なお、図15は簡単のため、ブロックを
9×9ではなく6×6画素で、線分の長さ(=1ステッ
チ)を6画素で例示している点に注意されたい)で、線
分検索の優先順位1番が注目画素A、優先順位2番が注
目画素Bであったとするなら、上記S32で用意した2
値画像上を各画素の角度特徴に従って線分が通るとした
時、より多く白い画素の上を通る線分を選択する。図1
5の場合、注目画素AとBでは、Bを中心とする線分が
選ばれる。なお、図中で黒い画素は、他のブロックの処
理において既に配置された線分(線分データ)を示して
いる。
In the line segment determination process (S36), the first line segment is first determined. In this case, it suffices to select in descending order of priority in the line segment search, corresponding to the number of line segments passing through the block, which is obtained from a predetermined thread density. As a result, with respect to a natural image such as a photograph, as a result, the data of the line segment that makes the best use of the characteristic can be obtained, and the embroidery data having a small number of stitches can be created. Further, in the first embodiment, by preferentially selecting line segment data having a high intensity of the angle feature and having a small overlap with other line segment data, a stitch faithful to the feature of the pixel in the block can be obtained. Be able to fill the inside of the block with threads while maintaining the directionality. Specifically, the line segment that passes over the most white pixels is searched for according to the priority order in the line segment search set in the order of strongest angle feature described above with reference to FIG.
That is, FIG. 15 (note that for the sake of simplicity, FIG. 15 illustrates a block with 6 × 6 pixels instead of 9 × 9, and a line segment length (= 1 stitch) with 6 pixels. ), If the priority 1 of the line segment search is the target pixel A and the priority 2 is the target pixel B, then 2 prepared in S32
When it is assumed that a line segment passes on the value image according to the angle feature of each pixel, a line segment that passes over more white pixels is selected. Figure 1
In the case of 5, for the target pixels A and B, a line segment centered on B is selected. The black pixels in the figure indicate line segments (line segment data) that have already been arranged in the processing of other blocks.

【0071】ただし、通過する画素数だけで単純に計算
すると、角度が異なる時に実際の距離を反映できないの
で、距離を反映できるように換算する。例えば図15
で、画素Aは45度の角度特徴を持ち、画素Aを中心と
する線分は、白い画素の上を4画素通る。この時、距離
を反映した値は4÷c o s(45)≒5.6となる。
同様に画素Bは−30度の角度特徴を持ち、画素Bを中
心とする線分は、白い画素の上を5画素通る。この時、
距離を反映した値は5÷c o s(−30)≒5.8と
なる。
However, if the calculation is simply performed using only the number of passing pixels, the actual distance cannot be reflected when the angles are different, so the conversion is performed so that the distance can be reflected. For example, in FIG.
Then, the pixel A has an angle feature of 45 degrees, and a line segment centered on the pixel A passes four pixels on the white pixel. At this time, the value reflecting the distance is 4 ÷ cos (45) ≈5.6.
Similarly, the pixel B has an angle characteristic of −30 degrees, and a line segment centered on the pixel B passes over the white pixel by 5 pixels. At this time,
The value reflecting the distance is 5 ÷ cos (−30) ≈5.8.

【0072】なお、ここでは、優先順位に従い上位2つ
の注目画素で、多く白い画素の上を通る線分側を選択す
ることにしたが、上位3以上の注目画素で、最も多く白
い画素の上を通る線分を選択するようにもできる。この
場合は、同じだけ白い画素の上を通る線分がある場合
は、順位の高いもの(特徴の強いもの)を優先する。こ
のような線分の選択方法により、他の線分との重なりの
少ないものから線分が選ばれることになる。ここで決定
した線分の通過個所に、2値画像上に黒点を描画する。
Here, according to the priority order, it is decided to select the line segment side that passes over the many white pixels in the top two target pixels, but in the top three or more target pixels, select the line with the most white pixels. You can also select the line segment that passes through. In this case, if there is a line segment that passes over the same white pixel, the one with the higher rank (the one with the strongest feature) is given priority. By such a line segment selection method, a line segment is selected from those having a small overlap with other line segments. A black dot is drawn on the binary image at the passing point of the line segment determined here.

【0073】1本分の線分データを決定すると、図5に
示すように、以上のようにして、これまで決定した線分
の数と、注目しているブロックを通るとして予め決めら
れている線分の数nとの大小関係を判別する。この場
合、線分数<n(S37)の判断はYesとなり、S3
6の処理に戻り、2本目の線分を選択する。この場合、
図15中に示す優先順位1番の注目画素Aと、図示しな
い優先順位3番の注目画素Cとで、より多く白い画素の
上を通る線分側を選択することになる。
When the line segment data for one line is determined, as shown in FIG. 5, it is determined in advance as described above that the number of line segments determined so far and that the block of interest passes through. The magnitude relationship with the number n of line segments is determined. In this case, the determination of the number of line segments <n (S37) is Yes, and S3
Returning to the process of 6, the second line segment is selected. in this case,
With the target pixel A having the first priority and the target pixel C having the third priority (not shown) shown in FIG. 15, the line segment side that passes over more white pixels is selected.

【0074】n本分の線分データを決定する前は、決定
した線分数<nのS37の判断がYesとなり、S36
の処理に戻り、3〜n本目の線分を順次選択していく。
Before determining the line segment data for n lines, the determination in S37 of the determined number of line segments <n is Yes, and S36
The process returns to step 3 and the 3rd to nth line segments are sequentially selected.

【0075】当該ブロックについての線分をn本選択す
ると(S37:No)、全ブロックに対して線分の選択
を完了したかを判断し(S38)、完了するまでは(S
38:No)、S34に戻り、S34〜S37の処理を
繰り返し、画像上の全てのブロックについてn本の線分
を決定する。
When n line segments have been selected for the block (S37: No), it is determined whether the line segments have been selected for all blocks (S38), and until the completion (S38).
38: No), the process returns to S34, and the processes of S34 to S37 are repeated to determine n line segments for all blocks on the image.

【0076】このようにして、画像上の全てのブロック
について予め決められている線分の数であるn本の線分
が決定されると、次に、各線分データについての色成分
を決定する(図3中に示す線分の色演算:S5)。色成
分を決定するに際して、まず、使用する刺繍糸の糸色を
設定することになるが、これには、まず、使用する刺繍
糸の糸色数を入力した後、図21(a)に示すような入
力画面に従って、入力された糸色数だけ、使用する刺繍
糸の糸色情報とカラーコードとを入力することで、同図
(b)に示すような糸色対応テーブルを作成する。ま
た、このとき、糸色の縫い順を同時に設定する。糸色の
縫い順は、予め設定しておいてもよく、入力画面に従っ
て、操作者が入力するようにしてもよい。
In this way, when the number n of line segments, which is the predetermined number of line segments, is determined for all the blocks on the image, the color component for each line segment data is then determined. (Color calculation of line segment shown in FIG. 3: S5). When determining the color components, first, the thread color of the embroidery thread to be used is set. First, the thread color number of the embroidery thread to be used is input, and then shown in FIG. By inputting the thread color information and the color code of the embroidery thread to be used, the thread color correspondence table as shown in FIG. 9B is created by inputting the number of the input thread colors in accordance with such an input screen. At this time, the sewing order of thread colors is set at the same time. The sewing order of thread colors may be set in advance, or may be input by the operator according to the input screen.

【0077】続いて、作成された各線分データの色成分
を決定していくことになるが、まず、入力された元画像
の色を参照する範囲(反映参照高)を設定した後、線分
を描画するために、元画像と同じサイズの画像(変換画
像)を用意する。なお、元画像の色を参照する範囲につ
いては、予め設定しておいてもよく、操作者が入力する
ようにしてもよい。
Subsequently, the color components of the created line segment data will be determined. First, after setting the range (reflected reference height) for referring to the color of the input original image, the line segment is set. In order to draw, an image of the same size as the original image (converted image) is prepared. The range for referring to the color of the original image may be set in advance or may be input by the operator.

【0078】次に、ある注目画素について作成された線
分データによって特定される線分を変換画像上に描画す
る際、図16(a)に示すように、その線分を挟んでそ
の線分の法線方向に上述した反映参照高を有する所定の
参照領域を設定し、この参照領域内に含まれる全ての画
素について、それぞれのR・G・B値の和Cslを求め
る。また、この和Cslを算出するために用いた画素数
をd1とする。ただし、このとき線分が描画されていな
い(通っていない)画素及びこれから描画しようとする
線分が通る画素については、計算に含めないこととす
る。
Next, when a line segment specified by the line segment data created for a certain pixel of interest is drawn on the converted image, the line segment is sandwiched as shown in FIG. 16A. A predetermined reference area having the above-mentioned reflected reference height is set in the normal direction of, and the sum Csl of the respective R, G, B values is obtained for all the pixels included in this reference area. Further, the number of pixels used to calculate this sum Csl is d1. However, at this time, pixels for which a line segment is not drawn (not passed) and pixels through which a line segment to be drawn from now pass are not included in the calculation.

【0079】一方、同図(b)に示すように、元画像の
該当する参照領域についても、その参照領域内に含まれ
る全ての画素について、それぞれのR・G・B値の和C
s2を求める。また、その参照領域内の画素数をd2と
する。
On the other hand, as shown in (b) of the figure, with respect to the corresponding reference area of the original image, the sum C of the R, G, and B values of all the pixels included in the reference area is calculated.
Find s2. Further, the number of pixels in the reference area is d2.

【0080】そして、これから描画しようとする線分の
画素数をslとして、(Csl+CL×sl)÷(sl
+d1)=Cs2÷d2となるCLを算出する。これ
は、即ち、これから描画しようとする線分の色CLを設
定したとき、その参照領域内の線分の色の平均値と、元
画像の該当する参照領域内の色の平均値が等しくなると
いうことである。
Then, assuming that the number of pixels of the line segment to be drawn is sl, (Csl + CL × sl) ÷ (sl
CL is calculated such that + d1) = Cs2 ÷ d2. That is, when the color CL of the line segment to be drawn is set, the average value of the color of the line segment in the reference area becomes equal to the average value of the color in the corresponding reference area of the original image. That's what it means.

【0081】最後に、入力した糸色の中で、線分の色C
LにRGB空間で最も距離の近い糸色を求め、これを線
分データの色成分として設定する。なお、RGB空間で
の距離dは、算出した色CLのRGB値をr0、g0、
b0、入力した糸色のRGB値をrn、gn、bnとす
ると、数3に示す数式に基づいて算出される。
Finally, of the inputted thread colors, the color C of the line segment
The thread color closest to L in the RGB space is obtained, and this is set as the color component of the line segment data. The distance d in the RGB space is calculated by using the calculated RGB values of the color CL as r0, g0,
Letting b0 be the RGB values of the input thread color be rn, gn, and bn, calculation is performed based on the mathematical formula shown in Formula 3.

【0082】[0082]

【数3】 [Equation 3]

【0083】上述した色成分の決定処理の具体例につい
て、以下に説明する。なお、ここでは、簡単のために、
色の値としてR・G・B値ではなく輝度値を用いること
とする。まず、変換中の画像が図17(a)、元画像が
同図(b)のようになっていた場合(参照領域は3×3
画素)、 Csl=40+35+45+45+50=215 d1=5 Cs2=30×3+20×3+40×3=270 d2=9 sl=3 ここで、(Csl+CL×sl)÷(sl−
d1)=Cs2÷d2となるCLを求めると、CL=
((Cs2÷d2)×(sl+d1)−Csl)÷sl
=((270÷ 9)×(3 + 5)−215)÷
3≒8.3となり、この値8.3を線分の色として変換
中の画像に描画すると、図17(c)に示すようにな
る。このとき、元画像における領域内の色の平均値及び
変換画像における参照領域内の色の平均値はそれぞれ3
0となる。
A specific example of the above-described color component determination processing will be described below. Here, for simplicity,
As the color value, the luminance value is used instead of the R, G, B values. First, when the image being converted is as shown in FIG. 17A and the original image is as shown in FIG. 17B (the reference area is 3 × 3).
Pixel), Csl = 40 + 35 + 45 + 45 + 50 = 215 d1 = 5 Cs2 = 30 × 3 + 20 × 3 + 40 × 3 = 270 d2 = 9 sl = 3 where (Csl + CL × sl) ÷ (sl−
If CL that is d1) = Cs2 ÷ d2 is obtained, CL =
((Cs2 ÷ d2) × (sl + d1) −Csl) ÷ sl
= ((270 ÷ 9) × (3 + 5) −215) ÷
3≈8.3, and when this value 8.3 is drawn as the color of the line segment on the image being converted, the result is as shown in FIG. 17 (c). At this time, the average value of colors in the area in the original image and the average value of colors in the reference area in the converted image are each 3
It becomes 0.

【0084】なお、第1実施形態では、使用する刺繍糸
の糸色と対応するカラーコードを入力することで糸色対
応テーブルを作成したが、糸色を入力するのではなく、
図22に示すように、予め糸色対応テーブル(図23参
照)が作成された糸色の中から操作者が使用する糸色を
選択するようにしてもよい。
In the first embodiment, the thread color correspondence table is created by inputting the color code corresponding to the thread color of the embroidery thread to be used. However, instead of inputting the thread color,
As shown in FIG. 22, the thread color used by the operator may be selected from the thread colors for which the thread color correspondence table (see FIG. 23) is created in advance.

【0085】また、色を参照する参照領域についても、
上述したような、線分を挟んでその線分の法線方向にそ
れぞれ反映参照高を有する矩形領域に限定されるもので
はなく、例えば、線分の角度成分が0〜45度または1
35〜180度のときは、図18(a)に示すように、
垂直方向に反映参照高を有する平行四辺形の領域とし、
線分の角度成分が45〜135度のときは、同図(b)
に示すように、水平方向に反映参照高を有する平行四辺
形の領域とすることも可能である。
Further, regarding the reference area for referencing the color,
As described above, the present invention is not limited to the rectangular areas having the reflected reference heights in the normal direction of the line segment with the line segment sandwiched therebetween. For example, the angle component of the line segment is 0 to 45 degrees or 1
At 35 to 180 degrees, as shown in FIG.
A parallelogram area having a reflected reference height in the vertical direction,
When the angle component of the line segment is 45 to 135 degrees, FIG.
It is also possible to form a parallelogram area having a reflected reference height in the horizontal direction as shown in FIG.

【0086】続いて、以上のようにして画像を構成する
複数の画素に対して作成された、角度成分、長さ成分及
び色成分を有する線分データ群に基づいて刺繍データを
作成する(図3に示す刺繍データ作成:S7)。線分デ
ータ群に基づく刺繍データの作成は、基本的には、同一
色成分毎に、各線分データによって特定される各線分の
始点、終点及び色成分を、縫目(ステッチ)の始点、終
点及び色に変換することによって行われる。ただし、全
ての線分を独立した縫目に変換すると、線分の数だけ渡
り縫い部分が発生し、それぞれに留め縫いが入ると、縫
製品質も悪くなるので、できる限り各線分を連続した縫
目に変換するために、以下に示すような処理を行う。
Subsequently, the embroidery data is created based on the line segment data group having the angle component, the length component and the color component created for the plurality of pixels forming the image as described above (see FIG. Embroidery data creation shown in 3: S7). The creation of the embroidery data based on the line segment data group basically involves setting the start point, the end point, and the color component of each line segment specified by each line segment data for each same color component as the start point and the end point of the stitch (stitch). And by converting to color. However, if all line segments are converted into independent stitches, there will be as many cross stitches as there are line segments, and if fastening stitches enter each, the quality of the sewn product will deteriorate. In order to convert to eyes, the following processing is performed.

【0087】まず、各線分データによって特定される全
体の線分群を、色成分毎の線分群に分割する。次に、あ
る色成分の線分群について、最も左上に位置する端点を
有する線分を検索し、その端点をその線分(開始線分)
の始点とし、その線分のもう一方の端点を終点とする。
そして、この終点から最も近い端点を有する他の線分を
検索し、この端点を次の線分の始点とし、その線分のも
う一方の端点を終点とする。この処理を繰り返すことに
よって、その色成分の線分群についての縫製順序を決定
し、これを全ての色成分の線分群に対して行う。なお、
この処理を行う場合、既に順序が決定された線分につい
ては、それ以降の順序決定の検索から除外することはい
うまでもない。
First, the entire line segment group specified by each line segment data is divided into line segment groups for each color component. Next, for a line segment group of a certain color component, a line segment having an endpoint located at the upper left is searched, and that endpoint is the line segment (starting line segment).
And the other end point of the line segment as the end point.
Then, another line segment having an end point closest to this end point is searched, this end point is set as the start point of the next line segment, and the other end point of the line segment is set as the end point. By repeating this processing, the sewing order for the line segment group of the color component is determined, and this is performed for all the color component line segment groups. In addition,
When this process is performed, it goes without saying that the line segments whose order has already been determined are excluded from the subsequent search for order determination.

【0088】このようにして縫製順序が決定された線分
群における各線分が縫目(ステッチ)になり、連続する
緑分間が渡り縫いされることになるが、ここで、連続す
る線分同士を繋ぐ渡り縫い部分を走り縫いに変換する処
理が行われる。まず、上記S5において設定された糸色
の縫い順に従って、各線分群について連続する線分を繋
ぐ渡り縫い部分を検査し、その渡り縫い部分が後から縫
われる別の色の刺繍糸で縫い埋められるのであれば、そ
の渡り縫い部分を走り縫いに変換する。具体的には、あ
る色の渡り縫い部分があったときに、変換画像上でその
渡り縫いが通る経路上の画素を調べ、もし、その経路上
の画素にその渡り縫いの色よりも後に縫われる色成分を
有する線分が存在していれば、その渡り縫い部分を走り
縫いに変換する。
In this way, each line segment in the line segment group for which the sewing order is determined becomes a stitch, and continuous green segments are sewn together. Here, continuous line segments are connected to each other. Processing for converting the connecting cross stitch portion into running stitch is performed. First, according to the sewing order of the thread color set in the above S5, a cross stitch portion connecting continuous line segments is inspected for each line segment group, and the cross stitch portion is sewn with an embroidery thread of another color to be sewn later. If, then the cross stitch portion is converted to running stitch. Specifically, when there is a cross stitch portion of a certain color, the pixel on the path through which the cross stitch passes is checked on the converted image, and if the pixel on that path is sewn after the color of the cross stitch. If there is a line segment having a color component that is called, the cross stitch portion is converted to running stitch.

【0089】また、以下に示すような処理を行うことも
可能である。ある渡り縫い部分があったときに、色差の
総和CCを調べるカウンタを用意し、そのカウンタを
「0」で初期化しておく。そして、変換画像上で渡り縫
いが通る経路上の画素を調べる。このとき、その経路上
にある画素の色が、渡り縫いの色よりも後に縫われる色
である場合は、カウンタに対してなにも加算しない。も
し、その経路上にある画素の色が、渡り縫いの色よりも
前に縫われる色であれば、これら2つの色のRGB空間
での距離を計算し、その距離をカウンタに加算する。こ
のようにして、渡り縫いが通る経路上の全ての画素につ
いて検査し、色差の総和CCを求め、この色差の総和C
Cが所定の閾値よりも小さいときは、渡り縫いを走り縫
いに変換する。なお、色差の総和についての閾値は、予
め設定された固定値を採用してもよく、操作者が入力し
た入力値を採用してもよい。
It is also possible to perform the following processing. A counter for checking the sum CC of color differences when a certain cross stitch portion is present is prepared, and the counter is initialized to "0". Then, the pixels on the path through which the cross stitches pass are checked on the converted image. At this time, if the color of the pixel on the path is a color sewn after the color of the cross stitch, nothing is added to the counter. If the color of the pixel on the path is a color sewn before the color of the cross stitch, the distance between these two colors in the RGB space is calculated, and the distance is added to the counter. In this way, all the pixels on the path through which the cross stitch passes are inspected, the total color difference CC is obtained, and the total color difference C
When C is smaller than the predetermined threshold value, the cross stitch is converted into the running stitch. The threshold value for the total sum of color differences may be a preset fixed value or an input value input by the operator.

【0090】また、第1実施形態では、既に順序が決定
された線分の終点から最も近い端点を有する線分を次の
線分として決定した後、渡り縫い部分を走り縫いに変換
することができるか否かを検査しているが、既に順序が
決定された線分の終点から、まだ順序が決定されていな
い全ての線分の両端点との経路を調べ、走り縫いに変換
できる経路、即ち、後から別の色で縫い埋められる経路
が存在すれば、その経路の点を端点とする線分を次の線
分とすることも可能である。この処理を、上述した色差
の総和CCに基づいて渡り縫いを走り縫いに変換する手
法に従えば、色差の総和CCが前記閾値より小さくなる
点を選び、その点を端点とする線分を次の線分とするこ
とになる。
Further, in the first embodiment, after the line segment having the end point closest to the end point of the line segment whose order has already been determined is determined as the next line segment, the cross stitch portion can be converted into running stitch. I am inspecting whether or not it is possible, but from the end point of the line segment whose order has already been determined, check the route with the end points of all line segments that have not yet been determined, and the route that can be converted to running stitch, That is, if there is a route to be sewn with a different color later, it is possible to use the line segment having the point of the route as an end point as the next line segment. If this process is performed according to the method of converting the cross stitch into the running stitch based on the color difference summation CC described above, a point at which the color difference summation CC becomes smaller than the threshold value is selected, and the line segment having the point as the end point is next selected. Will be the line segment of.

【0091】上述したように線分の順序を決定した場
合、同一の色成分を有する線分群において、図19に示
すように、渡り縫い部分をその上から走り縫いするよう
な場合が想定される。自動的に渡り糸を切除するタイプ
の刺繍ミシンでは特に問題とはならないが、そうでない
刺繍ミシンでは、同一色の縫目を全て縫製した後に渡り
糸を切除することになるので、上述したように、渡り縫
いの上から走り縫いされると、渡り糸の切除処理を行い
にくいといった問題が発生する。従って、後から走り縫
いされる部分には渡り縫いが存在しないように線分の順
序を決定しておくことが望ましい。具体的には、線分の
順序を決定する際に、順序が決定した線分については、
変換画像上で印を付けておく(例えば、画素の色を白に
設定する)。そして、変換画像上で渡り縫いが発生する
経路を調べ、その経路上に渡り縫いの色と同じ色の画素
が存在すれば、即ち、同一色の糸で後から縫われる場合
は、そういった渡り縫いが発生しないように、次の線分
を決定する。
When the order of the line segments is determined as described above, in the line segment group having the same color component, as shown in FIG. 19, it is assumed that the cross stitch portion is sewn from above. . This is not a problem for embroidery sewing machines that automatically cut the crossover thread, but for embroidery sewing machines that do not, the crossover thread is cut off after all the stitches of the same color are sewn. If the running stitch is sewn from the top of the cross stitch, there is a problem that it is difficult to cut off the cross stitch. Therefore, it is desirable to determine the order of the line segments so that the cross stitch does not exist in the portion to be subsequently sewn. Specifically, when determining the order of line segments,
Make a mark on the converted image (for example, set the pixel color to white). Then, the route in which the cross stitch is generated on the converted image is checked, and if there is a pixel of the same color as the color of the cross stitch on the route, that is, if the same color thread is sewn later, such cross stitch is performed. The next line segment is determined so that does not occur.

【0092】また、実際に縫製してみると、縫製品質を
損なう重ね縫いが多くなり、しかも、その重ねかたにば
らつきが発生するので、重ね縫いの数をできるだけ少な
く、また、均一にすることが望まれる。そこで、S3に
おいて線分データを作成する際、先にも述べたような次
の処理を付加しておくことが望ましい。まず、変換画像
の全ての画素に対して、作成された線分データによって
特定される線分の通過回数を数えるカウンタを用意す
る。そして、角度特徴の強度の大きい画素から順に線分
データを作成していき、作成された線分データによって
特定される線分が通過する画素のカウンタには+1を加
算する。ここで、線分データを作成する際、これから作
成しようとする線分データによって特定される線分が通
過する全ての画素のカウンタを調べ、各カウンタ値の総
和が閾値よりも大きければ、その線分データは作成しな
いこととする。この処理を行うことによって重ね縫いを
少なくすることができる。なお、前記閾値は、予め設定
された固定値を採用してもよく、操作者が入力した入力
値を採用してもよい。
Further, when sewing is actually performed, the number of overlapped stitches which impairs the quality of the sewn product is increased, and moreover, the overlapping manners vary, so that the number of overlapped stitches should be as small as possible and uniform. Is desired. Therefore, when the line segment data is created in S3, it is desirable to add the following process described above. First, a counter for counting the number of passages of the line segment specified by the created line segment data is prepared for all the pixels of the converted image. Then, the line segment data is created in order from the pixel having the highest intensity of the angle feature, and +1 is added to the counter of the pixels through which the line segment specified by the created line segment data passes. Here, when creating line segment data, check the counters of all pixels through which the line segment specified by the line segment data to be created passes, and if the sum of each counter value is greater than the threshold value, the line Minute data will not be created. By performing this process, it is possible to reduce overlapped stitches. The threshold may be a preset fixed value or an input value input by the operator.

【0093】また、第1実施形態では、上述したよう
に、渡り縫いを走り縫いに変換するようにしているが、
例えば、図20(a)に示すように、渡り縫いの経路中
に、既に他の色刺繍糸で縫われた領域Xがある場合は、
この領域Xの上を走り縫いすることができない。そこ
で、渡り縫いの経路上に既に縫われた領域が存在する場
合は、この領域を迂回することによって、渡り縫いを走
り縫いに変換することが可能となる。
Further, in the first embodiment, as described above, the cross stitch is converted into the running stitch.
For example, as shown in FIG. 20A, when there is a region X already sewn with an embroidery thread of another color in the crossover stitch path,
It is not possible to run and sew on this area X. Therefore, if there is a region already sewn on the path of the cross stitch, it is possible to convert the cross stitch to the running stitch by bypassing this region.

【0094】具体的には、以下のようにして迂回路を決
定する。まず、前の線分の終点aから次の線分の始点b
への経路を順に検査する。ここで、既に他の色で縫われ
ている領域Xが存在する場合は、同図(b)に示すよう
に、その領域Xの周囲に沿って検査を行い、同図(c)
に示すように、現在の検査点cと前の線分の終点aとを
結ぶ経路上及び現在の検査点と次の線分の始点bとを結
ぶ経路上の双方に、既に縫われた領域Xが存在しなけれ
ば、前の線分の終点aから現在の検査点を通って次の線
分の始点bに至る経路を迂回路として採用し、この迂回
路に沿って渡り縫いを行うようにする。ただし、この渡
り縫いを走り縫いに変換するためには、その渡り縫い部
分が後から別の色の糸で縫い埋められる必要があるの
で、迂回路として採用するためには、その迂回路が後か
ら別の色の糸で縫い埋められる必要がある。
Specifically, the bypass route is determined as follows. First, from the end point a of the previous line segment to the start point b of the next line segment
Inspect the route to. If there is a region X already sewn in another color, the inspection is performed along the periphery of the region X as shown in FIG.
As shown in FIG. 3, the areas already sewn on both the path connecting the current inspection point c and the end point a of the previous line segment and the path connecting the current inspection point and the start point b of the next line segment. If X does not exist, the route from the end point a of the previous line segment to the start point b of the next line segment through the current inspection point is adopted as a detour, and cross stitching is performed along this detour. To However, in order to convert this cross stitch to running stitch, it is necessary to sew the cross stitch part later with a thread of a different color. Needs to be sewn with thread of another color from.

【0095】図6を参照して上述した画像データから作
成した刺繍データを元に刺繍を行ったものを図25中に
示す。針数は35338である。一方、特願2000−
010139号の方法に従い作成した刺繍データに基づ
き刺繍を行ったものを図26中に示す。針数は6097
5である。図25に示す第1実施形態の針数は3533
8であり、線分データの数を制限しない図26に比べて
約42%低減しながら、特願2000−010139号
の方法と比べても詳細さが損なわれていないことが分か
る。
FIG. 25 shows the result of embroidery based on the embroidery data created from the image data described above with reference to FIG. The number of stitches is 35338. On the other hand, Japanese Patent Application 2000-
FIG. 26 shows the result of embroidery based on the embroidery data created according to the method of No. 010139. Number of stitches is 6097
It is 5. The number of stitches in the first embodiment shown in FIG.
8, which is about 42% less than that in FIG. 26 in which the number of line segment data is not limited, and the details are not impaired even when compared with the method of Japanese Patent Application No. 2000-010139.

【0096】図27は、特願2000−010139号
の方法で、第1実施形態の刺繍と針数がほぼ等しくなる
ように(針数は34386)、図6の画像に基づき作成
した刺繍データである。即ち、線分データを選択する際
の閾値を調整することで針数を減らした例を示してい
る。第1実施形態に係る図25と先行技術に係る図27
を比べると、針数が同程度の場合、先行技術の方法に比
べ詳細に表現できていることが分かる。
FIG. 27 shows embroidery data created based on the image of FIG. 6 by the method of Japanese Patent Application No. 2000-010139 so that the number of stitches is almost equal to that of the embroidery of the first embodiment (the number of stitches is 34386). is there. That is, an example is shown in which the number of stitches is reduced by adjusting the threshold value when selecting line segment data. FIG. 25 according to the first embodiment and FIG. 27 according to the prior art.
It can be seen from the comparison of the above-mentioned items that, when the number of stitches is approximately the same, the details can be expressed compared to the method of the prior art.

【0097】第1実施形態では、上記ステップで、図2
4(a)に示すように画像と同じサイズの2値画像
(白)を用意した。この代わりに、図24(b)に示す
ように各ブロックの線分を検索する毎に、ブロックと同
じサイズの2値画像を用意しても良い。このようにする
ことで、処理中に使用するメモリを節約することができ
る。ただしこの場合、各ブロック内を塗りつぶす線分を
優先するため、ブロックの分かれ目が目立つようにな
る。
In the first embodiment, the above steps are performed as shown in FIG.
As shown in FIG. 4A, a binary image (white) having the same size as the image was prepared. Alternatively, a binary image of the same size as the block may be prepared every time the line segment of each block is searched as shown in FIG. By doing so, the memory used during processing can be saved. However, in this case, since the line segment that fills the inside of each block is prioritized, the division of blocks becomes conspicuous.

【0098】また、上述した第1実施形態では、色の情
報を扱うためにRGB空間を用いたが、その代わりにL
***空間やL***空間、YIQ空間、HSI空間
等を利用してもよい。また、上述した第1実施形態で
は、画像を構成する画素単位で線分データを作成するよ
うにしたが、例えば、大きな画像に対して、小さな縫製
結果を得たい場合は、画素毎に線分データを作成する
と、縫製の密度が必要以上に大きくなってしまうため、
画素の集合(画素群)を1つのブロックとし、ブロック
単位で線分データを作成することが望ましい。
In the above-described first embodiment, the RGB space is used to handle color information, but instead of this, L space is used.
* a * b * space, L * u * v * space, YIQ space, HSI space, etc. may be used. Further, in the above-described first embodiment, the line segment data is created for each pixel forming the image. However, for example, when a small sewing result is desired for a large image, the line segment is created for each pixel. If you create data, the sewing density will be higher than necessary, so
It is desirable that a set of pixels (pixel group) be one block and line segment data be created in block units.

【0099】なお、本実施の形態では、刺繍データを刺
繍ミシンと別体の刺繍データ作成装置により作成し、メ
モリカードに記録する。さらに、このメモリカードを刺
繍ミシンに装置しなおして実際に刺繍をするとしていた
が、刺繍ミシンと刺繍データ作成装置間の刺繍データの
授受の形態としては装置に対して着脱可能な記録媒体で
あるメモリカードを介する方法に限るものではない。刺
繍データ作成装置で作成された刺繍データが適切に刺繍
装置のミシンに渡されるものであれば、その形態は自由
である。例えば、RS232C、USB、IEEE13
94等のインターフェースを用いて信号線を介して、刺
繍データを受け渡すように構成することもできる。ま
た、モデムのような通信手段を有して構成し、LAN、
インターネット、公衆回線等を利用するネットワークを
介したデータの受け渡しを行うように構成してもよい。
In this embodiment, the embroidery data is created by an embroidery data creation device which is separate from the embroidery sewing machine and recorded in the memory card. Further, although the memory card is re-equipped in the embroidery sewing machine to actually embroider, the embroidery data is exchanged between the embroidery sewing machine and the embroidery data creating device by using a recording medium detachable from the device. It is not limited to the method via a memory card. The form is arbitrary as long as the embroidery data created by the embroidery data creation device is appropriately delivered to the sewing machine of the embroidery device. For example, RS232C, USB, IEEE13
The interface such as 94 may be used to transfer the embroidery data via the signal line. In addition, a communication means such as a modem is provided to configure the LAN,
The data may be transferred via a network using the Internet, a public line, or the like.

【0100】[第2実施形態]引き続き、本発明の第2実
施形態に係る刺繍データ作成装置について説明する。上
述した第1実施形態では、密度(単位領域あたりの線分
本数)を一定数に制御することで、一様な密度の従来よ
りも針数の少ない刺繍データを実現した。しかしなが
ら、糸の部分的な疎密が刺繍の風合いを醸し出している
と言う一面もある。このため、第2実施形態の刺繍デー
タ作成装置では、単位面積あたりの線分本数である密度
に上限と下限を設けることで、密度の疎密を作り出す。
第2実施形態の刺繍データ作成装置によれば、密度の上
限と下限を指定できるため、極端に密度の高いところ・
低いところが発生することなく、刺繍の風合いを醸し出
す疎密を発生させることができる。
[Second Embodiment] Next, an embroidery data creation device according to a second embodiment of the present invention will be described. In the above-described first embodiment, by controlling the density (the number of line segments per unit area) to be a constant number, embroidery data having a uniform density and a smaller number of stitches than in the conventional art is realized. However, there is another aspect that the partial density of the threads creates the texture of embroidery. Therefore, in the embroidery data creation device of the second embodiment, the density, which is the number of line segments per unit area, is set to have an upper limit and a lower limit, thereby making the density uneven.
According to the embroidery data creation device of the second embodiment, since the upper limit and the lower limit of the density can be specified, the place where the density is extremely high.
It is possible to generate sparseness that creates the texture of embroidery without generating low places.

【0101】第2実施形態の刺繍データ作成装置では、
角度特徴の強さの平均に比例させ密度の上限下限を定め
る。この第2実施形態の刺繍データ作成装置での処理
は、図5を参照して上述した線分仮決定処理を除きほぼ
同一であるため、第2実施形態の線分仮決定処理につい
て、図28を参照して説明する。
In the embroidery data creation device of the second embodiment,
The upper and lower limits of the density are determined in proportion to the average of the strength of the angle feature. Since the process in the embroidery data creation device of the second embodiment is almost the same except for the line segment provisional determination process described above with reference to FIG. 5, the line segment provisional determination process of the second embodiment will be described with reference to FIG. Will be described with reference to.

【0102】ここで、第2実施形態の線分仮決定処理
で、糸密度設定(S31)〜マトリクスに分割(S3
3)までは、図5を参照して上述した第1実施形態と同
一であるため、密度最大値、最小値設定処理(S33−
2)から説明を開始する。当該密度最大値、最小値設定
処理(S33−2)で、ブロック内の線分の密度の最大
値Dmax、最小値Dminを設定する。これは予め定められ
た値でも良いし、ユーザーが入力できるようにしても良
い。
Here, in the line segment provisional determination processing of the second embodiment, the thread density setting (S31) to the matrix division (S3).
Up to 3), since it is the same as the first embodiment described above with reference to FIG. 5, the density maximum value / minimum value setting process (S33-
The explanation starts from 2). In the density maximum value / minimum value setting process (S33-2), the maximum value Dmax and the minimum value Dmin of the line segment density in the block are set. This may be a predetermined value or may be input by the user.

【0103】次に、ブロックの角度特徴の平均値算出処
理(S33−3)で、画像全体についての角度特徴の強
さの平均値P1を求める。
Next, the average value P1 of the intensity of the angle feature for the entire image is obtained in the average value calculation process of the angle feature of the block (S33-3).

【0104】次に、ブロックの角度特徴の平均値算出処
理(S33−4)で、各ブロックについて角度特徴の強
さの平均値を求める。
Next, in the average value calculation process of the angular characteristics of the block (S33-4), the average value of the strength of the angular characteristics is obtained for each block.

【0105】そして、線分数n計算処理(S34)で、
当該ブロックにおける線分数nを求める。ここで、ある
ブロックの角度特徴の強さの平均値がP2であった時、
このブロックを通る線分数をn=P2÷P1×[ブロッ
ク内の画素数]÷[1ステッチあたりの画素数]と計算
する。すなわち、ブロックの角度特徴の強さの平均値P
2が全体の角度特徴の強さの平均値P1と等しければ、
線分数は[ブロック内の画素数]÷[1ステッチあたり
の画素数]となり、P2>P1の時には線分数は[ブロ
ック内の画素数]÷[1ステッチあたりの画素数]より
多くなり、P2<P1の時には線分数は[ブロック内の
画素数]÷[1ステッチあたりの画素数]より少なくな
る。
Then, in the line segment number n calculation process (S34),
The line segment number n in the block is calculated. Here, when the average value of the strength of the angle feature of a block is P2,
The number of line segments passing through this block is calculated as n = P2 ÷ P1 × [number of pixels in block] ÷ [number of pixels per stitch]. That is, the average value P of the strength of the angle characteristics of the block
If 2 is equal to the average value P1 of the strength of the entire angle feature,
The number of line segments is [the number of pixels in the block] / [the number of pixels per stitch], and when P2> P1, the number of the line segments is larger than [the number of pixels in the block] / [the number of pixels per stitch], and P2 When <P1, the number of line segments is smaller than [the number of pixels in a block] / [the number of pixels per stitch].

【0106】ただしこの時、線分数nが密度最大の時の
本数 nmax=Dmax÷[1mmあたりの画素数]×[ブロック
内の画素数]÷[1ステッチあたりの画素数]よりも大
きければ、n=nmaxとする。また、線分数nが密度最
小の時の本数nmin=Dmin÷[1mmあたりの画素数]
×[ブロック内の画素数]÷[1ステッチあたりの画素
数]よりも小さければ、n=nminとする。この場合、
ブロックを通る線分の数は、ブロック毎に画像全体の角
度特徴の平均値に対する注目ブロックの角度特徴の平均
値の割合いで求め、その数に上限値nmaxと下限値nmin
で制限を加えているが、線分の数を求める場合に、例え
ば、ブロックの角度特徴の最大値を用いてもよい。ある
いは、別の算出条件の下で得られる値を用いてもよい。
However, at this time, if the number of line segments n is greater than the maximum number nmax = Dmax / [the number of pixels per 1 mm] × [the number of pixels in a block] / [the number of pixels per stitch], Let n = nmax. Further, the number of line segments when the density n is the minimum density nmin = Dmin ÷ [the number of pixels per 1 mm]
If n is smaller than [number of pixels in block] / [number of pixels per stitch], then n = nmin. in this case,
The number of line segments passing through the block is determined by the ratio of the average value of the angle features of the target block to the average value of the angle features of the entire image for each block, and the number is determined by the upper limit value nmax and the lower limit value nmin.
However, the maximum value of the angle feature of the block may be used when the number of line segments is obtained, for example. Alternatively, a value obtained under another calculation condition may be used.

【0107】線分優先順位決定処理(S35)以降の処
理は、図5を参照して上述した第1実施形態と同様であ
るため説明を省略する。
The process after the line segment priority order determination process (S35) is the same as that of the first embodiment described above with reference to FIG.

【0108】このようにして図6に示す画像データから
作成した刺繍データを図29に示す。画像サイズ、刺繍
データサイズ、ブロックのサイズなどは、第1実施形態
での図25と同様である。最小密度は1本/mm、最大
密度は6本/mmに設定してある。なお、図29は、結
果が分かり易いように作成した例である。針数は342
35であり、図25とほとんど変わらないが、特徴の強
い部分が密になり強調され、特徴の弱い部分が疎になっ
ていることが分かる。より自然画像の特徴が風合いとし
て表現されていると言える。
FIG. 29 shows the embroidery data created from the image data shown in FIG. 6 in this way. The image size, embroidery data size, block size, etc. are the same as those in FIG. 25 in the first embodiment. The minimum density is set to 1 line / mm and the maximum density is set to 6 lines / mm. Note that FIG. 29 is an example created so that the result can be easily understood. The number of stitches is 342
35, which is almost the same as in FIG. 25, it can be seen that the strong feature portions are densely emphasized and the weak feature portions are sparse. It can be said that the feature of the natural image is expressed as a texture.

【0109】[第2実施形態の第1改変例]上述した第2
実施形態では、角度特徴の強さの平均に比例させ密度の
上限下限を定めた。これに対して、第2実施形態の第1
改変例では、明るさの平均に比例させて密度の上限下限
を定める。第1改変例の線分仮決定処理について、図3
0のフローチャートを参照して説明する。
[First Modification of Second Embodiment] Second Modification
In the embodiment, the upper and lower limits of the density are set in proportion to the average of the strengths of the angle features. On the other hand, the first of the second embodiment
In the modified example, the upper and lower limits of the density are determined in proportion to the average brightness. FIG. 3 shows the line provisional determination process of the first modified example.
This will be described with reference to the flowchart of No. 0.

【0110】S31〜S33の処理に続いて、密度最大
値、最小値設定処理(S33−2)で、密度の最大値D
max、最小値Dminを設定する。これは予め定められた値
でも良いし、ユーザーが入力できるようにしても良い。
Subsequent to the processing of S31 to S33, the maximum density value D is set to the maximum density value D in the minimum value setting processing (S33-2).
Set max and minimum value Dmin. This may be a predetermined value or may be input by the user.

【0111】次に、各ブロックの明るさ平均値算出処理
(S33−3)で、ブロック内の画素の明るさの平均値
Lを求める。
Next, in the brightness average value calculation processing (S33-3) of each block, the average value L of the brightness of the pixels in the block is obtained.

【0112】線分数n計算処理(S34)で、明るさの
最小値(最も暗い)を0、最大値(最も明るい)をLma
xとして、また、密度最大・最小の時の1画素を通る線
分数 Gmax=Dmax÷[1mmあたりの画素数] Gmin=Dmin÷[1mmあたりの画素数]を求め、該ブ
ロックを通る線分数nをn=(Gmin+(Gmax−Gmi
n)×(Lmax−L)÷Lmax)×[ブロック内の画素
数]÷[1ステッチあたりの画素数]として求める。
In the line segment number n calculation process (S34), the minimum value (brightest) of brightness is 0, and the maximum value (brightest) is Lma.
As x, the number of line segments passing through one pixel when the density is maximum / minimum Gmax = Dmax / [number of pixels per 1 mm] Gmin = Dmin / [number of pixels per 1 mm], and the number of line segments passing through the block n N = (Gmin + (Gmax-Gmi
n) × (Lmax−L) ÷ Lmax) × [number of pixels in block] ÷ [number of pixels per stitch].

【0113】Lが最も小さい(L=0:暗い)時、 nmax=Gmax×[ブロック内の画素数]÷[1ステッチ
あたりの画素数] Lが最も大きい(L=Lmax:明るい)時、 nmin=Gmin×[ブロック内の画素数]÷[1ステッチ
あたりの画素数] となる。
When L is smallest (L = 0: dark), nmax = Gmax × [number of pixels in block] ÷ [number of pixels per stitch] When L is largest (L = Lmax: bright), nmin = Gmin × [number of pixels in block] ÷ [number of pixels per stitch]

【0114】以降の処理は、図5を参照して上述した第
1実施形態と同様であるため説明を省略する。
Subsequent processing is the same as that of the first embodiment described above with reference to FIG.

【0115】このようにして図6の画像データから作成
した刺繍データを図31に示す。画像サイズ、刺繍デー
タサイズ、ブロックのサイズなどは、第1の図25と同
様である。最小密度は0本/mmに、最大密度は5.5
本/mmに設定してある。なお、図31は、結果が分か
り易いように作成した例である。針数は35567であ
り、図25とほとんど変わらないが、暗い部分は密にな
り、明るい部分は疎になっていることが分かる。この場
合、線分数nを求めるのに明るさの平均値を用いている
が、明るさの最大値を用いてもよいし、別の算出条件の
下で得られる値を用いてもよい。
FIG. 31 shows the embroidery data created from the image data of FIG. 6 in this way. The image size, embroidery data size, block size, etc. are the same as those in the first FIG. Minimum density is 0 / mm, maximum density is 5.5
This is set to books / mm. Note that FIG. 31 is an example created so that the results are easy to understand. The number of stitches is 35567, which is almost the same as in FIG. 25, but it can be seen that the dark part is dense and the bright part is sparse. In this case, the average value of brightness is used to obtain the line segment number n, but the maximum value of brightness may be used, or a value obtained under another calculation condition may be used.

【0116】この第2実施形態の刺繍データ作成装置で
は、密度の最小値・最大値を自由に設定し、刺繍データ
に疎な部分と密な部分を作ることができるので、針数を
制御しつつ、入力された写真などの自然画像の特徴を反
映した刺繍独特の風合いを醸し出すことができる。ま
た、必要以上の重ね縫いなども発生しないため、縫製晶
質を保つことができる。更に、特徴の強さの平均に比例
させる方法では、特徴の強い部分に多くのステッチを配
することができ、詳細な表現が可能になる。
In the embroidery data creation device of the second embodiment, the minimum and maximum density values can be set freely, and sparse and dense areas can be created in the embroidery data, so the number of stitches is controlled. At the same time, the texture unique to embroidery that reflects the characteristics of a natural image such as an input photograph can be created. In addition, since unnecessary lap stitches and the like do not occur, it is possible to maintain the sewing crystal quality. Further, in the method in which the feature strength is proportional to the average, many stitches can be arranged in the strong feature portion, and detailed expression is possible.

【0117】また、明るさの平均に比例させる第2実施
形態の第1改変例では、例えば布地が白の場合、濃い色
を密に縫うことで、地の色を見えないようにし、また、
薄い色を疎に縫うことで、地の色を生かした表現が可能
になる。
Further, in the first modified example of the second embodiment in which the brightness is proportional to the average, for example, when the cloth is white, the dark color is closely sewn so that the background color cannot be seen.
By sewing light colors sparsely, it is possible to make expressions that make the most of the color of the ground.

【0118】ここでは色情報である明るさを用いている
が、色あいやあざやかさを用いてもよいし、これらを組
み合わせた色情報、例えば、RGB空間L***
間、L***空間、YIG空間等を利用してもよい。
さらに、上述の第2実施形態及びその第1改変例では、
単位面積当たりの線分数をその上限値と下限値とを用い
て指定する場合、角度特徴の強さや明るさの平均値を利
用しているが、与えられた画像データを特徴づけている
指標の最大値、最小値あるいは所定の条件に適合する特
定値を利用してもよい。 [第3実施形態]第1、第2実施形態では、各ブロック内
に仮定されている線分の中から、最もよく縫い埋める線
分を指定の本数選択すると言う処理を行った。この方法
の代わりに、第3実施形態の刺繍データ作成装置では、
縫い埋めることを優先して、各ブロックに一定の角度の
線分を平行に配置する。
Although the brightness, which is the color information, is used here, it is also possible to use the hue and the vividness, or color information combining these, for example, the RGB space L * a * b * space, L * w. * v * space, YIG space, etc. may be used.
Furthermore, in the above-described second embodiment and its first modification,
When specifying the number of line segments per unit area using the upper limit value and the lower limit value, the average value of the strength and brightness of the angle feature is used, but it is an index that characterizes the given image data. A maximum value, a minimum value, or a specific value that meets a predetermined condition may be used. [Third Embodiment] In the first and second embodiments, a process of selecting a designated number of line segments to be most sewn from among the line segments assumed in each block is performed. Instead of this method, in the embroidery data creation device of the third embodiment,
Prioritizing the embedding, line segments with a certain angle are arranged in parallel in each block.

【0119】第3実施形態の線分仮決定処理について、
図32のフローチャートを参照して説明する。
Regarding the line segment provisional determination processing of the third embodiment,
This will be described with reference to the flowchart in FIG.

【0120】S31〜S33の処理に続いて、ブロック
の角度特徴算出処理(S35)で、各ブロックに含まれ
るすべての画素について、それぞれの画素の角度特徴θ
1、角度特徴の強さPとして 水平方向成分 s1=P× cos(θ1) 垂直方向成分 s2=P× sin(θ1)を計算す
る。これをそれぞれ、ブロックに含まれるすべての画素
について加算する。ブロックに含まれるすべての画素に
ついての水平方向成分の総和S1、垂直方向成分の総和
S2を求め、S2/S1のアークタンジェントを求め
る。こうして求めた値を該ブロックの角度特徴として設
定する。この場合、ブロックの角度特徴を求めるのに用
いた各画素の角度特徴としては、注目画素とその周りの
画素の色情報、例えば、明るさの違いから求めてもよ
い。明るさ以外に、色あいやあざやかさも使える。この
ように、画素毎に角度特徴を求めるのではなく、画素の
集合(画素群)を1つのブロックとしてとらえ、このブ
ロック単位で角度特徴を求めてもよい。
Subsequent to the processing of S31 to S33, in a block angle characteristic calculation processing (S35), for all pixels included in each block, the angle characteristic θ of each pixel is calculated.
1. As the strength P of the angle feature, the horizontal component s1 = P × cos (θ1) and the vertical component s2 = P × sin (θ1) are calculated. This is added for each of all the pixels included in the block. The sum S1 of horizontal components and the sum S2 of vertical components of all pixels included in the block are obtained, and the arctangent of S2 / S1 is obtained. The value thus obtained is set as the angle characteristic of the block. In this case, the angular feature of each pixel used to obtain the angular feature of the block may be obtained from the color information of the pixel of interest and the surrounding pixels, for example, the difference in brightness. In addition to brightness, you can also use color and vividness. In this way, instead of obtaining the angle characteristic for each pixel, the set of pixels (pixel group) may be regarded as one block, and the angle characteristic may be obtained for each block.

【0121】線分決定処理(S36)で、求めた角度特
徴に従い、ブロックを埋めるように線分を配置する。図
33は、線分配置の例である。ブロックの中心を通るよ
うに、角度特徴の法線方向に線を引き(図33の点
線)、該点線を線分数で等分する点を求め、各点を中心
にするように線分を配置する。以降の処理は、第1実施
形態と同様であるため説明を省略する。
In the line segment determination process (S36), line segments are arranged so as to fill the blocks in accordance with the obtained angle characteristics. FIG. 33 shows an example of line segment arrangement. A line is drawn in the normal direction of the angle feature so as to pass through the center of the block (dotted line in FIG. 33), points that equally divide the dotted line by the number of line segments are obtained, and line segments are arranged so that each point is the center. To do. Subsequent processing is the same as that in the first embodiment, so description thereof will be omitted.

【0122】図34は、第3実施形態の刺繍データ作成
装置で作成した刺繍データである。ステッチ幅は3m
m、3画素/mm、3mm/stitch、9画素/s
titch、ブロックの幅と高さを3mmに設定したも
ので、針数は32514である。
FIG. 34 shows embroidery data created by the embroidery data creation device of the third embodiment. Stitch width is 3m
m, 3 pixels / mm, 3 mm / stitch, 9 pixels / s
Titch, the width and height of the block are set to 3 mm, and the number of stitches is 32514.

【0123】第1実施形態の図25と比べて、全体に一
様で、少ない針数で必要な部分を縫い埋められているこ
とが分かる。
As compared with FIG. 25 of the first embodiment, it can be seen that the necessary portion is sewn with a uniform number and a small number of stitches.

【0124】[第3実施形態の第1改変例]第3実施形態
で挙げた方法では、注目するブロックに含まれる画素か
ら得られた角度特徴を元に、当該ブロックの角度特徴を
求め、これに対応した角度で予め決められた数の線分を
設定していた。ここでは、さらに、この様にして求めら
れた線分に加えて、各画素から得られた角度特徴を元に
して、一定数の線分を選ぶ。これにより、全体を均一の
密度に刺繍できるとともに、写真等の自然画像の特徴を
生かした刺繍データを作成できる。なお、各画素から得
る角度特徴はその周りの画素の色情報との違いに基づい
て求めてもよい。
[First Modification of Third Embodiment] In the method described in the third embodiment, the angle feature of the block is obtained based on the angle feature obtained from the pixels included in the block of interest. A predetermined number of line segments were set at an angle corresponding to. Here, in addition to the line segment thus obtained, a fixed number of line segments are selected based on the angle feature obtained from each pixel. As a result, the whole can be embroidered with a uniform density, and at the same time, embroidery data can be created that takes advantage of the characteristics of a natural image such as a photograph. The angle characteristic obtained from each pixel may be obtained based on the difference from the color information of the surrounding pixels.

【0125】[第3実施形態の第2改変例]第3実施形態
で挙げた方法では、各ブロックに一定の角度の線分を平
行に配置すると言う方法をとったため、刺繍データ上に
ブロックの境界が見える。このため、第3実施形態の第
2改変例では、図35に示すようにブロックの区切り方
を段違いにしたり、六角形にすることで、このような境
界を見え難くしている。図36は六角形のマトリックス
を用いて作成した刺繍データの一例である。
[Second Modification of Third Embodiment] In the method described in the third embodiment, since a line segment having a constant angle is arranged in parallel in each block, the block of the block is placed on the embroidery data. You can see the boundaries. For this reason, in the second modified example of the third embodiment, such a boundary is made difficult to be seen by making the block division method staggered or hexagonal as shown in FIG. FIG. 36 shows an example of embroidery data created using a hexagonal matrix.

【0126】なお、第3実施形態に係る図34は、いわ
ば画像をモザイク状にした物なので、第1実施形態に係
る図25に比べると、詳細さが損なわれている。このた
め、第3実施形態の第1改変例では、画像中の特徴の強
い部分を補うことで、詳細さを補っている。図40は、
第3実施形態の第1改変例に係る線分仮配置処理を示す
フローチャートである。S44にて上述した線分を付加
する処理を行う。図41は、第3実施形態の第1改変例
に係る刺繍データ作成処理を示すフローチャートであ
る。S5にて、第1実施形態と同様に線分の色を演算す
る。
The image in FIG. 34 according to the third embodiment is, so to speak, a mosaic image, and thus the details are lost as compared with FIG. 25 in the first embodiment. For this reason, in the first modified example of the third embodiment, the details are supplemented by supplementing a portion having a strong feature in the image. FIG. 40 shows
It is a flow chart which shows line segment temporary arrangement processing concerning the 1st modification of a 3rd embodiment. In step S44, the above-described line segment adding process is performed. FIG. 41 is a flowchart showing the embroidery data creation processing according to the first modification of the third embodiment. In S5, the color of the line segment is calculated as in the first embodiment.

【0127】第3実施形態の第1改変例では、各ブロッ
ク内に、平行な線分のみを配置し、さらに、各ブロック
に含まれる画素のうち、角度特徴の強さが閉値以上の画
素について、その画素を中心とする線分を配置する。た
だし、角度特徴の強さが閾値以上の画素が多くあった場
合、線分数が多くなり、ステッチ数の増加を招くので、
図37に示すように付加する線分数の上限を決め、特徴
の強いものから選択するようにする。第3実施形態の第
1改変例の刺繍データ作成装置で作成した刺繍データを
図38に示す。針数は38531である。第3実施形態
に係る図34に比べ詳細な表現ができている。
In the first modified example of the third embodiment, only parallel line segments are arranged in each block, and among the pixels included in each block, the pixel whose angle feature strength is a closed value or more. With respect to, a line segment centered on the pixel is arranged. However, if there are many pixels with the strength of the angle feature equal to or more than the threshold value, the number of line segments increases and the number of stitches increases.
As shown in FIG. 37, the upper limit of the number of line segments to be added is determined, and one having a strong characteristic is selected. FIG. 38 shows embroidery data created by the embroidery data creation device of the first modified example of the third embodiment. The number of stitches is 38531. More detailed expression can be made as compared with FIG. 34 according to the third embodiment.

【0128】この第3実施形態では、少ない針数で、全
体的に一様に縫い埋めるような刺繍データを作成するこ
とができる。表現の詳細さを余り必要としない場合に特
に有効である。
In the third embodiment, it is possible to create the embroidery data so as to sew the stitches uniformly with a small number of stitches. It is especially effective when the detail of the expression is not required.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の第1実施形態に係る刺繍データ作成
装置を示す概略構成図である。
FIG. 1 is a schematic configuration diagram showing an embroidery data creation device according to a first embodiment of the present invention.

【図2】第1実施形態に係る刺繍データ作成装置の制御
系を示すブロック図である。
FIG. 2 is a block diagram showing a control system of the embroidery data creation device according to the first embodiment.

【図3】第1実施形態に係る刺繍データ作成装置におけ
る刺繍データの作成処理を示すフローチャートである。
FIG. 3 is a flowchart showing an embroidery data creation process in the embroidery data creation device according to the first embodiment.

【図4】図3中に示す各画素の角度特徴及びその強度の
算出処理を示すフローチャートである。
FIG. 4 is a flowchart showing a calculation process of an angle characteristic of each pixel shown in FIG. 3 and its intensity.

【図5】図3中に示す線分仮配置処理を示すフローチャ
ートである。
FIG. 5 is a flowchart showing a line segment temporary placement process shown in FIG.

【図6】元画像である写真画像を示す図である。FIG. 6 is a diagram showing a photographic image which is an original image.

【図7】(a)はラプラス変換のオペレータを示す図、
(b)はラプラス変換後の画像を示す図である。
7A is a diagram showing an operator of Laplace transform, FIG.
(B) is a figure which shows the image after a Laplace transform.

【図8】(a)〜(e)は角度特徴及びその強度の算出
方法を説明するための説明図である。
8A to 8E are explanatory diagrams for explaining a method of calculating an angle feature and its intensity.

【図9】(a)、(b)はPrewittのオペレータ
を示す図、(c)、(d)はSobeIのオペレータを
示す図である。
9A and 9B are diagrams showing a Prewitt operator, and FIGS. 9C and 9D are diagrams showing a SobeI operator.

【図10】ある画素について作成された線分データによ
って特定される線分を配置した様子を示す図である。
FIG. 10 is a diagram showing a state in which a line segment specified by line segment data created for a certain pixel is arranged.

【図11】入力画像と刺繍データのサイズ関係を表す説
明図である。
FIG. 11 is an explanatory diagram showing a size relationship between an input image and embroidery data.

【図12】入力画像のブロックへの分割を表す説明図で
ある。
FIG. 12 is an explanatory diagram showing division of an input image into blocks.

【図13】(a)、(b)はブロックに配置される線分
を表す説明図である。
13A and 13B are explanatory diagrams showing line segments arranged in a block.

【図14】(a)はブロック内の各画素の角度特徴の強
さを示す図、(b)は、ブロック内の線分配置における
優先順位を示す図である。
FIG. 14A is a diagram showing the strength of angular characteristics of each pixel in a block, and FIG. 14B is a diagram showing priorities of line segment arrangement in the block.

【図15】ブロック内に配置される線分を示す説明図で
ある。
FIG. 15 is an explanatory diagram showing line segments arranged in a block.

【図16】(a)、(b)は線分データにおける色成分
を決定する際に参照する画像の参照範囲を示す図であ
る。
16A and 16B are diagrams showing a reference range of an image to be referred to when determining a color component in line segment data.

【図17】(a)〜(c)は同上の色成分の決定方法を
説明するための説明図である。
17 (a) to (c) are explanatory views for explaining a method of determining a color component in the above.

【図18】(a)、(b)は線分データにおける色成分
を決定する際に参照する画像の参照範囲を示す図であ
る。
18 (a) and 18 (b) are diagrams showing a reference range of an image referred to when determining a color component in line segment data.

【図19】渡り縫いの上を走り縫いしている様子を示す
図である。
FIG. 19 is a diagram showing a state in which running sewing is performed on crossover stitches.

【図20】(a)〜(c)は渡り縫い部分についての迂
回路を決定する方法を説明するための説明図である。
20A to 20C are explanatory diagrams for explaining a method of determining a bypass route for a cross stitch portion.

【図21】(a)は糸色情報とカラーコードの入力画面
を示す図、(b)は糸色対応テーブルを示す図である。
21A is a diagram showing a thread color information and color code input screen, and FIG. 21B is a diagram showing a thread color correspondence table.

【図22】糸色の選択画面を示す図である。FIG. 22 is a diagram showing a thread color selection screen.

【図23】糸色対応テーブルを示す図である。FIG. 23 is a diagram showing a thread color correspondence table.

【図24】(a)は画像と同じサイズの2値画像(白)
を用意した場合の説明図であり、(b)はブロックと同
じサイズの2値画像を用意した場合の説明図である。
FIG. 24A is a binary image (white) having the same size as the image.
And (b) is an explanatory diagram of a case where a binary image having the same size as the block is prepared.

【図25】第1実施形態に係る刺繍データ作成装置によ
る縫製結果を示す図である。
FIG. 25 is a view showing a sewing result by the embroidery data creation device according to the first embodiment.

【図26】特願2000−10139号に係る刺繍デー
タ作成装置による縫製結果を示す図である。
FIG. 26 is a view showing a sewing result by the embroidery data creation device according to Japanese Patent Application No. 2000-10139.

【図27】特願2000−10139号に係る刺繍デー
タ作成装置で、図26の場合と同程度の針数となるよう
に刺繍した結果を示す図である。
27 is a diagram showing a result of embroidering with the embroidery data creation device according to Japanese Patent Application No. 2000-10139 so that the number of stitches is about the same as in the case of FIG.

【図28】第2実施形態に係る線分仮配置処理を示すフ
ローチャートである。
FIG. 28 is a flowchart showing line segment temporary placement processing according to the second embodiment.

【図29】第2実施形態に係る刺繍データ作成装置によ
る縫製結果を示す図である。
FIG. 29 is a view showing a sewing result by the embroidery data creation device according to the second embodiment.

【図30】第2実施形態の第1改変例に係る線分仮配置
処理を示すフローチャートである。
FIG. 30 is a flowchart showing a line segment temporary placement process according to a first modification of the second embodiment.

【図31】第2実施形態の第1改変例に係る刺繍データ
作成装置による縫製結果を示す図である。
FIG. 31 is a view showing a sewing result by the embroidery data creation device according to the first modified example of the second embodiment.

【図32】第3実施形態に係る線分仮配置処理を示すフ
ローチャートである。
FIG. 32 is a flowchart showing line segment temporary placement processing according to the third embodiment.

【図33】第3実施形態の線分配置の例を示す説明図で
ある。
FIG. 33 is an explanatory diagram showing an example of line segment arrangement according to the third embodiment.

【図34】第3実施形態に係る刺繍データ作成装置によ
る縫製結果を示す図である。
FIG. 34 is a diagram showing a sewing result by the embroidery data creation device according to the third embodiment.

【図35】第3実施形態の第1改変例に係るブロック配
置の例を示す説明図である。
FIG. 35 is an explanatory diagram showing an example of a block arrangement according to a first modification of the third embodiment.

【図36】第3実施形態の第1改変例に係る刺繍データ
作成装置による縫製結果を示す図である。
FIG. 36 is a view showing a sewing result by the embroidery data creation device according to the first modified example of the third embodiment.

【図37】第3実施形態の第2改変例に係る線分付加を
示す説明図である。
FIG. 37 is an explanatory diagram showing line segment addition according to a second modification of the third embodiment.

【図38】第3実施形態の第2改変例に係る刺繍データ
作成装置による縫製結果を示す図である。
FIG. 38 is a diagram showing a sewing result by the embroidery data creation device according to the second modification of the third embodiment.

【図39】図29と同程度の面積をタタミ縫いで縫い埋
めるように縫製した結果を示す図である。
FIG. 39 is a diagram showing a result of sewing so that an area equivalent to that in FIG. 29 is sewn with tatami stitches.

【図40】第3実施形態の第2改変例に係る線分仮配置
処理を示すフローチャートである。
FIG. 40 is a flowchart showing a line segment temporary placement process according to a second modification of the third embodiment.

【図41】第3実施形態の第2改変例に係る刺繍データ
作成処理を示すフローチャートである。
FIG. 41 is a flowchart showing embroidery data creation processing according to a second modification of the third embodiment.

【符号の説明】[Explanation of symbols]

1 刺繍データ作成装置 10 装置本体 11 CPU 12 ROM 13 RAM 14 I/Oインターフェイス 21 マウス 22 キーボード 23 メモリカードコネクタ23 24 表示装置 25 イメージスキャナ装置 1 Embroidery data creation device 10 Device body 11 CPU 12 ROM 13 RAM 14 I / O interface 21 mice 22 keyboard 23 memory card connector 23 24 display 25 Image Scanner

Claims (33)

【特許請求の範囲】[Claims] 【請求項1】 画素の集合体からなる任意の画像を特定
する画像データに基づいて刺繍データを作成する刺繍デ
ータ作成装置において、 前記画素毎に対応する線分を求め、その角度成分を示す
線分データを作成する線分データ作成手段と、 所定単位数の画素からなるブロックを仮想し、そのブロ
ック内の各々の画素に対応する前記線分から所定の基準
に従って所定の数の線分を選択する線分データ選択手段
と、 前記選択された線分に沿って縫目が形成されるように、
前記刺繍データを作成する刺繍データ作成手段とを備え
ていることを特徴とする刺繍データ作成装置。
1. A device for creating embroidery data based on image data specifying an arbitrary image composed of a set of pixels, wherein a line segment corresponding to each pixel is obtained and a line indicating an angle component thereof is obtained. Line segment data creating means for creating segment data and a block consisting of a predetermined number of pixels are hypothesized, and a predetermined number of line segments are selected from the line segments corresponding to each pixel in the block according to a predetermined reference. Line segment data selection means, so that stitches are formed along the selected line segment,
An embroidery data creation device comprising: an embroidery data creation unit that creates the embroidery data.
【請求項2】 前記線分データ選択手段は、糸密度、単
位長さ当たりの画素数、前記ブロック内の画素数、及び
ステッチ幅から、前記各ブロック内で選択する線分の数
を決定することを特徴とする請求項1に記載の刺繍デー
タ作成装置。
2. The line segment data selecting means determines the number of line segments selected in each block from the thread density, the number of pixels per unit length, the number of pixels in the block, and the stitch width. The embroidery data creation device according to claim 1, wherein
【請求項3】 前記線分データ選択手段は、前記画像を
構成する画素の色情報と、その画素の周りの画素の色情
報との違いから算出した角度成分を含んだ角度特徴の強
さに基づいて、前記線分を選択することを特徴とする請
求項1または請求項2に記載の刺繍データ作成装置。
3. The line segment data selecting means determines the strength of an angle feature including an angle component calculated from the difference between the color information of the pixels forming the image and the color information of the pixels around the pixel. The embroidery data creation device according to claim 1, wherein the line segment is selected based on the line segment.
【請求項4】 前記線分データ選択手段は、前記角度特
徴の強度と、他の線分との重なりの少なさに基づいて前
記線分を選択することを特徴とする請求項1〜請求項3
のいずれか1に記載の刺繍データ作成装置。
4. The line segment data selecting means selects the line segment based on the intensity of the angle feature and the degree of overlap with other line segments. Three
The embroidery data creation device described in any one of 1.
【請求項5】 前記線分データ選択手段は、前記各ブロ
ック内の画素数と前記選択された線分の数との比が一定
になるように前記線分を選択することを特徴とする請求
項1〜請求項4のいずれか1に記載の刺繍データ作成装
置。
5. The line segment data selecting means selects the line segment so that a ratio between the number of pixels in each block and the number of the selected line segment is constant. The embroidery data creation device according to any one of claims 1 to 4.
【請求項6】 前記線分データ選択手段は、1のブロッ
クの線分の数に対応した線分を選択する際に、当該1の
ブロックに隣接する複数のブロックにまたがり前記所定
の数に対応した線分を選択することを特徴とする請求項
1〜請求項5のいずれか1に記載の刺繍データ作成装
置。
6. The line segment data selection means, when selecting a line segment corresponding to the number of line segments of one block, corresponds to the predetermined number across a plurality of blocks adjacent to the one block. 6. The embroidery data creation device according to claim 1, wherein the selected line segment is selected.
【請求項7】 前記線分データ選択手段は、1つのブロ
ックの線分の数に対応した線分を選択する際に、前記1
ブロック内で前記所定の数に対応した線分を選択するこ
とを特徴とする請求項1〜請求項5のいずれか1に記載
の刺繍データ作成装置。
7. The line segment data selecting means selects the line segment corresponding to the number of line segments in one block from the 1
6. The embroidery data creation device according to claim 1, wherein a line segment corresponding to the predetermined number is selected in a block.
【請求項8】 前記線分データ選択手段は、前記各ブロ
ック内の線分の数が所定の上限から下限の間になるよう
に前記線分を選択することを特徴とする請求項1〜請求
項7のいずれか1に記載の刺繍データ作成装置。
8. The line segment data selecting means selects the line segments such that the number of line segments in each block is between a predetermined upper limit and a predetermined lower limit. Item 8. The embroidery data creation device according to any one of items 7.
【請求項9】 前記線分データ選択手段は、前記各ブロ
ック内の画素の角度特徴の強さに基づいて、前記線分の
数が所定の上限から下限の間になるように前記線分を選
択することを特徴とする請求項8に記載の刺繍データ作
成装置。
9. The line segment data selecting means selects the line segments so that the number of the line segments is between a predetermined upper limit and a lower limit based on the strength of angular characteristics of pixels in each block. 9. The embroidery data creation device according to claim 8, wherein the device is selected.
【請求項10】 前記線分データ選択手段は、前記各ブ
ロック内の画素の色情報に基づいて、前記線分の数が所
定の上限から下限の間になるように前記線分を選択する
ことを特徴とする請求項8に記載の刺繍データ作成装
置。
10. The line segment data selecting means selects the line segment so that the number of the line segments is between a predetermined upper limit and a lower limit, based on color information of pixels in each block. The embroidery data creation device according to claim 8.
【請求項11】 画素の集合体からなる任意の画像を特
定する画像データに基づいて刺繍データを作成する刺繍
データ作成装置において、 前記画像を構成する画素に対して、所定単位数の画素か
らなるブロックを仮想し、このブロックに関連する色情
報に基づき、当該ブロックの角度特徴を求めるデータ作
成手段と、 求められた角度特徴に従い、当該ブロックに、予め決め
られた数の線分を設定する線分設定手段と、 前記ブロックに関連する色情報に基づいて、前記設定さ
れた線分の色を決定する線分色設定手段と、 前記設定された線分に沿って前記設定された色で縫目が
形成されるように、前記線分に対して設定された色に関
する情報を含んだ前記刺繍データを作成する刺繍データ
作成手段とを備えていることを特徴とする刺繍データ作
成装置。
11. An embroidery data creation device that creates embroidery data based on image data that specifies an arbitrary image made up of a set of pixels, wherein the embroidery data creation device includes a predetermined number of pixels with respect to the pixels that form the image. A data creating means for imagining a block and obtaining the angle characteristic of the block based on the color information related to the block, and a line for setting a predetermined number of line segments in the block according to the obtained angle characteristic Segment setting means, line segment color setting means for determining the color of the set line segment based on color information related to the block, and sewing with the set color along the set line segment. Embroidery data creation means for creating the embroidery data including information about colors set for the line segments so that eyes are formed. Apparatus.
【請求項12】 画素の集合体からなる任意の画像を特
定する画像データに基づいて刺繍データを作成する刺繍
データ作成装置において、 前記画像を構成する画素に対して、所定単位数の画素か
らなるブロックを仮想し、このブロックに関連する色情
報に基づき、当該ブロックの角度特徴を求めるデータ作
成手段と、 求められた角度特徴に対応させて、当該ブロックに、当
該角度特徴に対応する角度で予め決められた数の第1の
線分を設定する第1線分データ選択手段と、 当該ブロック内の各画素に対応する色情報から算出され
た角度特徴の強度に基づいて、前記画素について求めら
れた前記角度特徴に対応する角度の第2の線分を作成す
る線分データ作成手段と、 当該ブロック内で、一定数の画素の前記第2線分を選択
する第2線分データ選択手段と、 前記設定された第1線分及び選択された第2線分に沿っ
て縫目が形成されるように、前記刺繍データを作成する
刺繍データ作成手段とを備えていることを特徴とする刺
繍データ作成装置。
12. An embroidery data creation device that creates embroidery data based on image data that specifies an arbitrary image composed of a collection of pixels, wherein the embroidery data creation device includes a predetermined number of pixels with respect to the pixels that form the image. Virtualizing a block, based on color information related to this block, data creating means for obtaining an angle characteristic of the block, and corresponding to the obtained angle characteristic, the block is previously set with an angle corresponding to the angle characteristic. The first line segment data selecting means for setting a predetermined number of first line segments and the intensity of the angle feature calculated from the color information corresponding to each pixel in the block are obtained for the pixel. Line segment data creating means for creating a second line segment of an angle corresponding to the angle feature, and a second line segment data for selecting the second line segment of a certain number of pixels in the block. A selection unit and an embroidery data creation unit that creates the embroidery data so that stitches are formed along the set first line segment and the selected second line segment. A device for creating embroidery data.
【請求項13】 前記データ作成手段は、前記画像を構
成する画素に対して所定単位数の画素からなるブロック
を仮想し、このブロック内の各画素について、前記画素
の色情報と、その画素の周りの画素の色情報との違いか
ら算出した角度成分を含んだ角度特徴及び角度特徴の強
度に基づいて、前記ブロックの角度特徴を求めることを
特徴とする請求項11または請求項12に記載の刺繍デ
ータ作成装置。
13. The data creating means virtualizes a block composed of a predetermined number of pixels with respect to pixels forming the image, and for each pixel in the block, color information of the pixel and the pixel information of the pixel. 13. The angle feature of the block is obtained based on the intensity of the angle feature and the angle feature including the angle component calculated from the difference with the color information of the surrounding pixels. Embroidery data creation device.
【請求項14】 前記ブロックを四角形にしたことを特
徴とする請求項11から請求項13のいずれか1に記載
の刺繍データ作成装置。
14. The embroidery data creation device according to claim 11, wherein the block has a rectangular shape.
【請求項15】 前記ブロックを段違いに配置させたこ
とを特徴とする請求項11〜請求項14のいずれか1に
記載の刺繍データ作成装置。
15. The embroidery data creation device according to claim 11, wherein the blocks are arranged in different stages.
【請求項16】 前記ブロックを6角形にしたことを特
徴とする請求項11〜請求項13のいずれか1に記載の
刺繍データ作成装置。
16. The embroidery data creation device according to claim 11, wherein the block has a hexagonal shape.
【請求項17】 画素の集合体からなる任意の画像を特
定する画像データに基づいて刺繍データを作成する刺繍
データ作成プログラムにおいて、 前記画素毎に対応する線分を求め、その角度成分を示す
線分データを作成する線分データ作成手段と、 所定単位数の画素からなるブロックを仮想し、そのブロ
ック内の各々の画素に対応する前記線分から所定の基準
に従って所定の数の線分を選択する線分データ選択手段
と、 前記選択された線分に沿って縫目が形成されるように、
前記刺繍データを作成する刺繍データ作成手段とを備え
ていることを特徴とする刺繍データ作成プログラム。
17. In an embroidery data creation program for creating embroidery data based on image data specifying an arbitrary image composed of a set of pixels, a line segment corresponding to each pixel is obtained, and a line indicating an angle component thereof is obtained. Line segment data creating means for creating segment data and a block consisting of a predetermined number of pixels are hypothesized, and a predetermined number of line segments are selected from the line segments corresponding to each pixel in the block according to a predetermined reference. Line segment data selection means, so that stitches are formed along the selected line segment,
An embroidery data creating program comprising: an embroidery data creating unit that creates the embroidery data.
【請求項18】 前記線分データ選択手段は、糸密度、
単位長さ当たりの画素数、前記ブロック内の画素数、及
びステッチ幅から、前記各ブロック内で選択する線分の
数を決定することを特徴とする請求項17に記載の刺繍
データ作成プログラム。
18. The line segment data selecting means is a yarn density,
18. The embroidery data creation program according to claim 17, wherein the number of line segments selected in each block is determined from the number of pixels per unit length, the number of pixels in the block, and the stitch width.
【請求項19】 前記線分データ選択手段は、前記画像
を構成する画素の色情報と、その画素の周りの画素の色
情報との違いから算出した角度成分を含んだ角度特徴の
強さに基づいて、前記線分を選択することを特徴とする
請求項17または請求項18に記載の刺繍データ作成プ
ログラム。
19. The line segment data selecting means determines the strength of an angle feature including an angle component calculated from the difference between the color information of a pixel forming the image and the color information of pixels surrounding the pixel. 19. The embroidery data creation program according to claim 17, wherein the line segment is selected based on the line segment.
【請求項20】 前記線分データ選択手段は、前記角度
特徴の強度と、他の線分との重なりの少なさに基づいて
前記線分を選択することを特徴とする請求項17〜請求
項19のいずれか1に記載の刺繍データ作成プログラ
ム。
20. The line segment data selecting means selects the line segment based on the intensity of the angular feature and the degree of overlap with other line segments. 19. The embroidery data creation program described in any one of 19.
【請求項21】 前記線分データ選択手段は、前記各ブ
ロック内の画素数と前記選択された線分の数との比が一
定になるように前記線分を選択することを特徴とする請
求項17〜請求項20のいずれか1に記載の刺繍データ
作成プログラム。
21. The line segment data selecting means selects the line segment such that a ratio between the number of pixels in each block and the number of the selected line segment is constant. The embroidery data creation program according to any one of Items 17 to 20.
【請求項22】 前記線分データ選択手段は、1のブロ
ックの線分の数に対応した線分を選択する際に、当該1
のブロックに隣接する複数のブロックにまたがり前記所
定の数に対応した線分を選択することを特徴とする請求
項17〜請求項21のいずれか1に記載の刺繍データ作
成プログラム。
22. The line segment data selecting means selects one line segment corresponding to the number of line segments in one block.
22. The embroidery data creation program according to claim 17, wherein the line segment corresponding to the predetermined number is selected over a plurality of blocks adjacent to the block.
【請求項23】 前記線分データ選択手段は、1つのブ
ロックの線分の数に対応した線分を選択する際に、前記
1ブロック内で前記所定の数に対応した線分を選択する
ことを特徴とする請求項17〜請求項21のいずれか1
に記載の刺繍データ作成プログラム。
23. The line segment data selecting means, when selecting a line segment corresponding to the number of line segments of one block, selects the line segment corresponding to the predetermined number within the one block. Any one of claims 17 to 21 characterized by
Embroidery data creation program described in.
【請求項24】 前記線分データ選択手段は、前記各ブ
ロック内の線分の数が所定の上限から下限の間になるよ
うに前記線分を選択することを特徴とする請求項17〜
請求項23のいずれか1に記載の刺繍データ作成プログ
ラム。
24. The line segment data selecting means selects the line segment such that the number of line segments in each block is between a predetermined upper limit and a predetermined lower limit.
The embroidery data creation program according to claim 23.
【請求項25】 前記線分データ選択手段は、前記各ブ
ロック内の画素の角度特徴の強さに基づいて、前記線分
の数が所定の上限から下限の間になるように前記線分を
選択することを特徴とする請求項24に記載の刺繍デー
タ作成プログラム。
25. The line segment data selecting means selects the line segments so that the number of the line segments is between a predetermined upper limit and a lower limit based on the strength of the angular characteristics of the pixels in each block. The embroidery data creation program according to claim 24, which is selected.
【請求項26】 前記線分データ選択手段は、前記各ブ
ロック内の画素の色情報に基づいて、前記線分の数が所
定の上限から下限の間になるように前記線分を選択する
ことを特徴とする請求項24に記載の刺繍データ作成プ
ログラム。
26. The line segment data selecting means selects the line segment based on color information of pixels in each block such that the number of the line segments is between a predetermined upper limit and a lower limit. 25. The embroidery data creation program according to claim 24.
【請求項27】 画素の集合体からなる任意の画像を特
定する画像データに基づいて刺繍データを作成する刺繍
データ作成プログラムにおいて、 前記画像を構成する画素に対して、所定単位数の画素か
らなるブロックを仮想し、このブロックに関連する色情
報に基づき、当該ブロックの角度特徴を求めるデータ作
成手段と、 求められた角度特徴に従い、当該ブロックに、予め決め
られた数の線分を設定する線分設定手段と、 前記ブロックに関連する色情報に基づいて、前記設定さ
れた線分の色を決定する線分色設定手段と、 前記設定された線分に沿って前記設定された色で縫目が
形成されるように、前記線分に対して設定された色に関
する情報を含んだ前記刺繍データを作成する刺繍データ
作成手段とを備えていることを特徴とする刺繍データ作
成プログラム。
27. In an embroidery data creation program for creating embroidery data based on image data specifying an arbitrary image composed of a set of pixels, the embroidery data creation program comprises a predetermined number of pixels for the pixels forming the image. A data creating means for imagining a block and obtaining the angle characteristic of the block based on the color information related to the block, and a line for setting a predetermined number of line segments in the block according to the obtained angle characteristic Segment setting means, line segment color setting means for determining the color of the set line segment based on color information related to the block, and sewing with the set color along the set line segment. Embroidery data creating means for creating the embroidery data including information about colors set for the line segments so that eyes are formed. Data creation program.
【請求項28】 画素の集合体からなる任意の画像を特
定する画像データに基づいて刺繍データを作成する刺繍
データ作成プログラムにおいて、 前記画像を構成する画素に対して、所定単位数の画素か
らなるブロックを仮想し、このブロックに関連する色情
報に基づき、当該ブロックの角度特徴を求めるデータ作
成手段と、 求められた角度特徴に対応させて、当該ブロックに、当
該角度特徴に対応する角度で予め決められた数の第1の
線分を設定する第1線分データ選択手段と、 当該ブロック内の各画素に対応する色情報から算出され
た角度特徴の強度に基づいて、前記画素について求めら
れた前記角度特徴に対応する角度の第2の線分を作成す
る線分データ作成手段と、 当該ブロック内で、一定数の画素の前記第2線分を選択
する第2線分データ選択手段と、 前記設定された第1線分及び選択された第2線分に沿っ
て縫目が形成されるように、前記刺繍データを作成する
刺繍データ作成手段とを備えていることを特徴とする刺
繍データ作成プログラム。
28. An embroidery data creating program for creating embroidery data based on image data specifying an arbitrary image composed of a set of pixels, wherein the embroidery data creating program comprises a predetermined number of pixels for the pixels forming the image. Virtualizing a block, based on color information related to this block, data creating means for obtaining an angle characteristic of the block, and corresponding to the obtained angle characteristic, the block is previously set with an angle corresponding to the angle characteristic. The first line segment data selecting means for setting a predetermined number of first line segments and the intensity of the angle feature calculated from the color information corresponding to each pixel in the block are obtained for the pixel. Line segment data creating means for creating a second line segment of an angle corresponding to the angle feature, and a second line for selecting the second line segment of a certain number of pixels in the block. Data selection means and embroidery data creation means for creating the embroidery data so that stitches are formed along the set first line segment and selected second line segment. A characteristic embroidery data creation program.
【請求項29】 前記データ作成手段は、前記画像を構
成する画素に対して所定単位数の画素からなるブロック
を仮想し、このブロック内の各画素について、前記画素
の色情報と、その画素の周りの画素の色情報との違いか
ら算出した角度成分を含んだ角度特徴及び角度特徴の強
度に基づいて、前記ブロックの角度特徴を求めることを
特徴とする請求項27または請求項28に記載の刺繍デ
ータ作成プログラム。
29. The data creating means virtualizes a block composed of a predetermined number of pixels for pixels forming the image, and for each pixel in the block, color information of the pixel and the pixel information of the pixel. 29. The angle feature of the block is obtained based on the angle feature including an angle component calculated from the difference from the color information of surrounding pixels and the intensity of the angle feature. Embroidery data creation program.
【請求項30】 前記ブロックを四角形にしたことを特
徴とする請求項27から請求項29のいずれか1に記載
の刺繍データ作成プログラム。
30. The embroidery data creation program according to claim 27, wherein the block is a quadrangle.
【請求項31】 前記ブロックを段違いに配置させたこ
とを特徴とする請求項27〜請求項29のいずれか1に
記載の刺繍データ作成プログラム。
31. The embroidery data creation program according to claim 27, wherein the blocks are arranged in different stages.
【請求項32】 前記ブロックを6角形にしたことを特
徴とする請求項27〜請求項29のいずれか1に記載の
刺繍データ作成プログラム。
32. The embroidery data creation program according to claim 27, wherein the block is hexagonal.
【請求項33】 請求項17〜請求項32のいずれか1
の刺繍データ作成プログラムを記憶したコンピュータ読
取り可能な記録媒体。
33. Any one of claims 17 to 32.
A computer-readable recording medium storing the embroidery data creation program.
JP2001355820A 2001-11-21 2001-11-21 Embroidery data creation device, embroidery data creation program, and recording medium recorded with embroidery data creation program Expired - Fee Related JP4082019B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001355820A JP4082019B2 (en) 2001-11-21 2001-11-21 Embroidery data creation device, embroidery data creation program, and recording medium recorded with embroidery data creation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001355820A JP4082019B2 (en) 2001-11-21 2001-11-21 Embroidery data creation device, embroidery data creation program, and recording medium recorded with embroidery data creation program

Publications (2)

Publication Number Publication Date
JP2003154181A true JP2003154181A (en) 2003-05-27
JP4082019B2 JP4082019B2 (en) 2008-04-30

Family

ID=19167450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001355820A Expired - Fee Related JP4082019B2 (en) 2001-11-21 2001-11-21 Embroidery data creation device, embroidery data creation program, and recording medium recorded with embroidery data creation program

Country Status (1)

Country Link
JP (1) JP4082019B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693598B2 (en) 2006-04-03 2010-04-06 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and embroidery data creation program recorded in computer-readable recording medium
US7946235B2 (en) 2006-04-03 2011-05-24 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and embroidery data creation program recorded in computer-readable recording medium
US8065030B2 (en) 2008-12-05 2011-11-22 Brother Kogyo Kabushiki Kaisha Embroidery data generating device and computer-readable medium storing embroidery data generating program
US8090466B2 (en) 2006-10-30 2012-01-03 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and computer-readable medium encoding an embroidery data creation program
US8200357B2 (en) 2007-05-22 2012-06-12 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and computer-readable recording medium storing embroidery data creation program
WO2019172230A1 (en) * 2018-03-08 2019-09-12 ブラザー工業株式会社 Non-transitory computer-readable medium and embroidery data generation method
CN114782581A (en) * 2022-06-24 2022-07-22 杭州小影创新科技股份有限公司 Image embroidery special effect conversion method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693598B2 (en) 2006-04-03 2010-04-06 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and embroidery data creation program recorded in computer-readable recording medium
US7946235B2 (en) 2006-04-03 2011-05-24 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and embroidery data creation program recorded in computer-readable recording medium
US8090466B2 (en) 2006-10-30 2012-01-03 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and computer-readable medium encoding an embroidery data creation program
US8200357B2 (en) 2007-05-22 2012-06-12 Brother Kogyo Kabushiki Kaisha Embroidery data creation apparatus and computer-readable recording medium storing embroidery data creation program
US8065030B2 (en) 2008-12-05 2011-11-22 Brother Kogyo Kabushiki Kaisha Embroidery data generating device and computer-readable medium storing embroidery data generating program
WO2019172230A1 (en) * 2018-03-08 2019-09-12 ブラザー工業株式会社 Non-transitory computer-readable medium and embroidery data generation method
US11851793B2 (en) 2018-03-08 2023-12-26 Brother Kogyo Kabushiki Kaisha Non-transitory computer-readable medium and method of generating embroidery data
CN114782581A (en) * 2022-06-24 2022-07-22 杭州小影创新科技股份有限公司 Image embroidery special effect conversion method and device

Also Published As

Publication number Publication date
JP4082019B2 (en) 2008-04-30

Similar Documents

Publication Publication Date Title
US6629015B2 (en) Embroidery data generating apparatus
JP3424956B2 (en) Embroidery data creation device
JP2001259268A (en) Embroidery data creating device and recording medium recorded with embroidery data creating program
US6324441B1 (en) Embroidery data processor and recording medium storing embroidery data processing program
US5839380A (en) Method and apparatus for processing embroidery data
US5740057A (en) Embroidery data creating device
US8200357B2 (en) Embroidery data creation apparatus and computer-readable recording medium storing embroidery data creation program
US5794553A (en) Embroidery data processing apparatus
US8798781B2 (en) Method and system for converting an image to a color-reduced image mapped to embroidery thread colors
JP4915434B2 (en) Embroidery data creation device and embroidery data creation program
JP2007275105A (en) Embroidery data preparing device, embroidery data preparing program and computer-readable recording medium
EA000989B1 (en) Method for manipulation of images of floor coverings or other fabrics and system therefor
JP2007275104A (en) Embroidery data preparing device, embroidery data preparing program and computer-readable recording medium
US8090466B2 (en) Embroidery data creation apparatus and computer-readable medium encoding an embroidery data creation program
US20090138120A1 (en) Embroidery data generating apparatus and computer readable medium storing embroidery data generating program
JPH07238464A (en) Method for preparing embroidery data
JP2012100842A (en) Embroidery data generating device, embroidery data generating program, and computer-readable medium storing embroidery data generating program
JP2003154181A (en) Embroidery data preparing device, embroidery data preparation program, and recording medium with embroidery data preparation program recorded thereon
JP2014213107A (en) Embroidery data preparation device and computer-readable media
US11851793B2 (en) Non-transitory computer-readable medium and method of generating embroidery data
JPH07136357A (en) Embroidery data generating device
JP3436420B2 (en) Image graphic processing method and image graphic processing apparatus
JP2012239772A (en) Embroidery data creating apparatus, embroidery data creating program and computer readable medium storing embroidery data creating program
JP2013192579A (en) Embroidery data creating device, embroidery data creating program and computer-readable medium storing embroidery data creating program
JPH11114260A (en) Embroidery data processing apparatus and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041008

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20051207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070220

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070423

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080122

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080204

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110222

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120222

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120222

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130222

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees