JPH06154445A - Sewing data preparing device for sewing machine - Google Patents

Sewing data preparing device for sewing machine

Info

Publication number
JPH06154445A
JPH06154445A JP31188892A JP31188892A JPH06154445A JP H06154445 A JPH06154445 A JP H06154445A JP 31188892 A JP31188892 A JP 31188892A JP 31188892 A JP31188892 A JP 31188892A JP H06154445 A JPH06154445 A JP H06154445A
Authority
JP
Japan
Prior art keywords
picture image
points
image
sewing
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP31188892A
Other languages
Japanese (ja)
Inventor
Yuichi Sukegawa
祐一 助川
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.)
Juki Corp
Original Assignee
Juki Corp
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 Juki Corp filed Critical Juki Corp
Priority to JP31188892A priority Critical patent/JPH06154445A/en
Publication of JPH06154445A publication Critical patent/JPH06154445A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To satisfactorily finish a pattern or the like having the varied direction by forming needle location points so that segments having end points alternated with equal pitch position provide a sewing line while tracing the profile of a watched picture image among original picture images from a picture image inputting device in the clockwise and counterclockwise direction. CONSTITUTION:Original picture images are taken in from a picture image inputting device 12, subjected to the binary data quantization and housed in an original picture image memory 16 as picture image data. Next, one lump of serial picture images is taken out of the original picture image data and housed in a watched picture image memory 18 and then the profile line of one housed watched picture image is extract. Next, the profile of the watched picture image is scanned from the left upper side for example and the starting point is searched and registered. A certain number of picture elements are traced clockwise along the profile line to register the points. The movement of registering the coordinate of every a certain number of points as input points is carried out until the trace in the clockwise direction coincide with the trace in the counterclockwise direction so that after the completion of the trace the stitch data having stitches obtained by dividing the segment interconnecting the registering points are formed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、刺繍ミシンなどに装着
されるミシンの縫いデータ作成装置に係り、特に、図形
を縫い潰す方向をキーボード等から逐一的に入力したり
横方向に一意に決定して縫い潰したりすることなく、方
向が変化する模様などを良好に仕上げられるミシンの縫
いデータ作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sewing data creating device for a sewing machine mounted on an embroidery sewing machine or the like, and in particular, the direction in which a figure is sewn is input one by one from a keyboard or the like and uniquely determined in the lateral direction. The present invention relates to a sewing data creating device for a sewing machine, which can satisfactorily finish a pattern or the like whose direction changes without sewing.

【0002】[0002]

【従来の技術】ミシンの縫いデータ作成装置が装着され
る電子ミシンに関する公知例としては、例えば、特開昭
58ー198381号の電子刺繍ミシンの発明などが挙
げられる。この発明は、針を上下動して被縫布に縫い目
を形成するミシンと、被縫布を保持する保持枠と、駆動
手段と、第1記憶手段と、パターン選択手段と、拡大手
段と、演算手段と、第2記憶手段と、中央演算処理装置
とを設け、あらかじめ記憶した刺繍模様データに基づい
て被縫布を移動させることにより、被縫布上に刺繍模様
を形成するようにしたものであり、本願の出願人と同一
人が特許出願したものである。
2. Description of the Related Art As a known example of an electronic sewing machine to which a sewing data creating device of a sewing machine is attached, there is, for example, the invention of an electronic embroidery sewing machine disclosed in JP-A-58-198181. According to the present invention, a sewing machine that moves a needle up and down to form a stitch on a sewn cloth, a holding frame that holds the sewn cloth, a driving means, a first storing means, a pattern selecting means, and an enlarging means, An embroidery pattern is formed on the sewn cloth by providing a computing means, a second storage means, and a central processing unit, and moving the sewn cloth based on prestored embroidery pattern data. The same applicant as the applicant of the present application has applied for a patent.

【0003】一方、ミシンの縫いデータ作成装置は、従
来、取り込んだ画像の1となる画素が横方向に連なって
いる線分を縫い線とし、図形を縫い潰す方向をキーボー
ド等から指定するようになっていた。
On the other hand, a sewing data creating apparatus for a sewing machine has conventionally used a line segment in which 1 pixels of a captured image are connected in a horizontal direction as a sewing line, and a direction in which a figure is sewn is designated by a keyboard or the like. Was becoming.

【0004】このように図形を縫い潰す方向をキーボー
ド等から逐一的に入力したり、横方向に一意に決定して
縫い潰しているため、方向が変化する模様などの仕上が
りが悪いという問題があった。
As described above, since the direction in which the figure is sewn is input one by one from the keyboard or the like is uniquely determined in the lateral direction and the stitch is sewn, there is a problem that the finish such as a pattern in which the direction changes is poor. It was

【0005】特に、図形が円の場合には、図形の輪郭線
方向と無関係に縫い線が出来上がるため、美観を損ねる
結果を招くという問題もあった。
In particular, when the figure is a circle, a sewing line is formed regardless of the direction of the contour line of the figure, so that there is a problem that the appearance is spoiled.

【0006】[0006]

【発明が解決しようとする課題】本発明は、かかる状況
に鑑み、上述のような従来例の問題などを解消せんとし
て成されたものであり、図形を縫い潰す方向をキーボー
ド等から逐一的に入力したり横方向に一意に決定して縫
い潰したりすることなく、方向が変化する模様などを良
好に仕上げられるミシンの縫いデータ作成装置を提供す
ることを目的とする。
SUMMARY OF THE INVENTION In view of the above situation, the present invention has been made in order to solve the above-mentioned problems of the conventional example, and the direction in which a figure is sewn is changed step by step from a keyboard or the like. An object of the present invention is to provide a sewing data creating device for a sewing machine, which can satisfactorily finish a pattern whose direction changes without inputting or uniquely determining in the lateral direction and sewing.

【0007】[0007]

【課題を達成するための手段】本発明は、刺繍ミシンな
どに装着されるミシンの縫いデータ作成装置において、
画像入力装置によって読み込まれた模様の原画を映像信
号として入力して2値化する第1手段と、該第1手段か
ら得られた画像を分割する第2手段と、画像の輪郭線を
抽出する第3手段と、輪郭線を追跡する第4手段とを設
け、輪郭線の特定の点を基準として時計回り方向と反時
計回り方向の両方向に輪郭線を追跡し、該両方向からの
追跡が一致したときに追跡を中止し、該追跡線における
所定の画素分毎の点を交互に結ぶ線分を縫い線として縫
いデータを生成することにより、前記課題を解決したも
のである。
The present invention provides a sewing data creating device for a sewing machine mounted on an embroidery sewing machine,
First means for inputting the original image of the pattern read by the image input device as a video signal and binarizing it, second means for dividing the image obtained from the first means, and extracting contour lines of the image. The third means and the fourth means for tracking the contour line are provided, and the contour line is tracked in both the clockwise direction and the counterclockwise direction with reference to a specific point of the contour line, and the tracking from both directions is the same. The above problem is solved by stopping the tracking at the time of doing and generating the sewing data by using the line segment that alternately connects the points for each predetermined pixel in the tracking line as the sewing line.

【0008】[0008]

【作用】本発明は、次のように作用する。The present invention operates as follows.

【0009】即ち、画像入力装置によって読み込まれた
模様の原画を映像信号として入力して2値化した後、得
られた画像を分割し、その後、画像の輪郭線を抽出す
る。
That is, the original image of the pattern read by the image input device is inputted as a video signal and binarized, the obtained image is divided, and thereafter the contour line of the image is extracted.

【0010】次いで、該画像の輪郭線を追跡、すなわ
ち、図1に示す如く、輪郭線の特定の点を基準(開始
点)として時計回り方向と反時計回り方向の両方向に輪
郭線を追跡し、これら両方向からの追跡が一致したとき
に追跡を中止する。
Then, the contour line of the image is traced, that is, the contour line is traced in both the clockwise direction and the counterclockwise direction with a specific point of the contour line as a reference (start point), as shown in FIG. , When the tracking from both directions coincides, the tracking is stopped.

【0011】また、追跡線における所定の画素分毎の点
を交互に結ぶ線分を縫い線として縫いデータを生成す
る。
Further, sewing data is generated by using a line segment that alternately connects points for each predetermined pixel in the tracking line as a sewing line.

【0012】このようにして、図形を縫い潰す方向をキ
ーボード等から逐一的に入力したり横方向に一意に決定
して縫い潰したりすることなく、方向が変化する模様な
どを良好に仕上げることが可能となる。
In this way, it is possible to satisfactorily finish a pattern whose direction changes without inputting the direction in which the figure is sewn one by one from the keyboard or the like and uniquely determining in the lateral direction and sewn. It will be possible.

【0013】[0013]

【実施例】以下、図面を参照して本発明の実施例につい
て詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0014】図2は、本実施例のブロック構成説明図で
あり、図中、12は下絵10を読み取る画像入力装置、
14は画像入力装置12用のインターフェイス、16は
画像入力装置12によって読み取られた原画A、Bを記
憶する原画像メモリ、18は画像入力装置12によって
読み取られた原画A、Bのうちの着目画像(例えば、原
画Aと同一の画像)を記憶する着目画像メモリ、20は
着目画像の輪郭(例えば、原画Aと同一画像の輪郭)を
記憶する輪郭画像メモリ、22は例えばフロッピーでな
る縫いデータ格納媒体、24は縫いデータ格納媒体用の
インターフェイス、26は中央処理装置(CPU)であ
る。
FIG. 2 is an explanatory diagram of a block configuration of the present embodiment, in which 12 is an image input device for reading a sketch 10.
Reference numeral 14 is an interface for the image input device 12, 16 is an original image memory for storing the original images A and B read by the image input device 12, and 18 is a target image of the original images A and B read by the image input device 12. (For example, the same image as the original image A), a target image memory, 20 is a contour image memory for storing the contour of the target image (for example, the same image as the original image A), and 22 is sewing data storage made of, for example, a floppy disk. A medium, 24 is an interface for a sewing data storage medium, and 26 is a central processing unit (CPU).

【0015】図3は本実施例の動作を説明するためのフ
ローチャートであり、以下、このフローチャートに従が
い、本実施例の動作について詳しく説明する。
FIG. 3 is a flow chart for explaining the operation of this embodiment, and the operation of this embodiment will be described in detail below according to this flow chart.

【0016】図3のステップ110における本実施例の
動作が開始されると、ステップ112において、画像入
力装置から原画像を取り込み2値データ化が行われる。
When the operation of this embodiment is started in step 110 of FIG. 3, the original image is taken in from the image input device and converted into binary data in step 112.

【0017】即ち、図2の下絵10における図形A、B
等が画像入力装置12で読み込まれ、該映像信号が所定
のレベル信号との比較によって2値化され、画像データ
として原画像メモリ16に格納される。
That is, figures A and B in the sketch 10 of FIG.
And the like are read by the image input device 12, the video signal is binarized by comparison with a predetermined level signal, and stored in the original image memory 16 as image data.

【0018】ここで、画像の2値化は次のようにして行
われる。即ち、画像入力装置12によって読み込まれた
信号は、一般に、特定位置における原画の濃度を示して
おり、しかも、連続した値となっている。このような信
号をコンピュータで処理できる形態とするために、所定
の濃度レベルと比較し、該濃度レベルより大きいときは
1とし小さいときは零とする決定が行われる。
Here, binarization of the image is performed as follows. That is, the signal read by the image input device 12 generally indicates the density of the original image at a specific position and is a continuous value. In order to make such a signal into a form that can be processed by a computer, it is determined that the signal is compared with a predetermined density level and that if the signal is higher than the density level, it is 1;

【0019】次に、図3のステップ114において着目
画像の切出しが行われ、その後、ステップ114におい
て着目画像の輪郭抽出が行われ、次いで、ステップ11
8において開始点の検索と登録が行われる。
Next, in step 114 of FIG. 3, the image of interest is cut out, then in step 114 the contour of the image of interest is extracted, and then in step 11.
At 8, the starting point is searched and registered.

【0020】即ち、原画像データから一塊の連続した画
像が取り出され、図2の着目画像メモリ18に格納さ
れ、その後、格納された1つの着目画像の輪郭線が抽出
される。次いで、着目画像の輪郭線を例えば左上側から
走査し、最初に検出される点を開始点とすると共に、該
開始点の検索と登録が行われる。
That is, one continuous image is extracted from the original image data, stored in the target image memory 18 of FIG. 2, and then the outline of one stored target image is extracted. Next, the contour line of the image of interest is scanned, for example, from the upper left side, and the first detected point is set as the starting point, and the starting point is searched and registered.

【0021】次に、ステップ120において、輪郭線に
沿って時計回りに、ある個数の画素を追跡し、その後、
ステップ122において、その点を登録する。
Next, in step 120, a number of pixels are tracked clockwise along the contour line, after which
In step 122, that point is registered.

【0022】即ち、輪郭線上の特定の点を基準として時
計回りに輪郭線を追跡してゆき、ある個数毎の点の座標
を入力点として登録する。
That is, the contour line is traced clockwise with reference to a specific point on the contour line, and the coordinates of a certain number of points are registered as input points.

【0023】次に、ステップ124において、輪郭線に
沿って反時計回りに、ある個数の画素を追跡し、その
後、ステップ126において、その点を登録する。
Next, in step 124, a certain number of pixels are tracked counterclockwise along the contour line, and then in step 126 the point is registered.

【0024】即ち、輪郭線上の上記特定点を基準として
反時計回りに輪郭線を追跡してゆき、ある個数毎の点の
座標を入力点として登録する。
That is, the contour line is traced counterclockwise with the specific point on the contour line as a reference, and the coordinates of a certain number of points are registered as input points.

【0025】次いで、ステップ128において追跡が終
了したか否かが判断され、終了していないと判断された
場合には、ステップ120からステップ126までの動
作が繰り返される。
Next, in step 128, it is judged whether or not the tracking is completed. If it is judged that the tracking is not completed, the operations from step 120 to step 126 are repeated.

【0026】即ち、輪郭線上の上記特定点を基準として
時計回りと反時計回りに輪郭線を追跡してゆき、ある個
数毎の点の座標を入力点として登録する動作を、時計回
り方向からの追跡と反時計回りからの追跡が一致するま
で行う。
That is, the operation of tracing the contour line clockwise and counterclockwise with the specific point on the contour line as a reference and registering the coordinates of a certain number of points as input points from the clockwise direction. Repeat until the tracking and the counterclockwise tracking match.

【0027】また、ステップ128において追跡が終了
したと判断された場合には、ステップ130において、
登録点を結ぶ線分を分割して縫い目とする縫いデータの
生成が行われ、その後、ステップ132において縫いデ
ータの登録が行われる。
If it is determined in step 128 that the tracking has ended, in step 130,
The sewing data is generated by dividing the line segment connecting the registration points into stitches, and then, in step 132, the sewing data is registered.

【0028】即ち、追跡が終了したと判断された場合に
は、登録した点を順に結ぶ線分が縫い線として決定され
ると共に、所定のピッチで該縫い線が分割された点が針
落点となるようにミシンの縫いデータが変換される。
That is, when it is determined that the tracking has been completed, a line segment that connects the registered points in order is determined as a sewing line, and the points where the sewing line is divided at a predetermined pitch are needle drop points. The sewing data of the sewing machine is converted so that

【0029】次いで、ステップ134において全画像が
終了したか否か、即ち、着目画像の全てについてステッ
プ120からステップ132までの動作が終了したか否
かが判断され、終了していないと判断された場合には、
ステップ114からステップ132までの動作が繰り返
される。
Next, in step 134, it is judged whether or not all the images have been completed, that is, whether or not the operations from step 120 to step 132 have been completed for all the target images, and it is judged that they have not been completed. in case of,
The operations from step 114 to step 132 are repeated.

【0030】また、ステップ134において全画像が終
了したと判断された場合には、ステップ136において
動作が終了する。
If it is determined in step 134 that all the images are finished, the operation is finished in step 136.

【0031】ところで、本実施例における画像の分割は
次のようにして行われる。即ち、一塊の画像を取り出す
ことを目的として図2の原画像メモリ16に記憶されて
いる画像を走査し、平面的に1の画素が続いている画
像、すなわち前後、左右、及び斜めの何れかが1となっ
ている画像を取り出す。
By the way, the image division in this embodiment is performed as follows. That is, the image stored in the original image memory 16 of FIG. 2 is scanned for the purpose of extracting a lump of images, and an image in which one pixel continues in a plane, that is, one of front, rear, left, and right The image in which is 1 is taken out.

【0032】ここで、水平方向の走査によって零から1
若しくは1から零への変化が各々1回である場合には、
内部に零の画素が存在しないと判断するようになってい
る。また、内部に零の画素が存在しないことが以降の処
理の条件となっている。
Here, 0 to 1 is obtained by scanning in the horizontal direction.
Or if there is one change from 1 to zero,
It is determined that there is no zero pixel inside. Further, the condition of the subsequent processing is that there is no zero pixel inside.

【0033】従って、取り出した画像の内部に零の画素
が存在する場合には、内部に画像が存在するか否かを調
べ、例えば、水平方向の走査によって零から1若しくは
1から零への変化が各々3回以上あるときは、内部に画
像が存在すると判断する。
Therefore, when there are zero pixels inside the taken-out image, it is checked whether or not the image exists inside, and, for example, the change from zero to one or from one to zero is performed by scanning in the horizontal direction. When each is three times or more, it is determined that an image exists inside.

【0034】また、内部に画像が存在すると判断した場
合には、その画像領域を分割し、内部に画像がなくなる
まで上述の動作を繰り返すと共に、その画像を図1の着
目画像メモリ18に記憶させる。
When it is determined that the image exists inside, the image area is divided, the above-mentioned operation is repeated until the image disappears, and the image is stored in the image memory 18 of interest in FIG. .

【0035】図4はこのようにして図1の着目画像メモ
リ18に記憶された着目画像を示す図であり、図中、Q
点は零すなわち白であることを示し、P点は1すなわち
黒であることを示している。
FIG. 4 is a diagram showing the image of interest stored in the image of interest image memory 18 of FIG. 1 in this manner.
The point indicates that it is zero or white, and the point P indicates that it is 1 or black.

【0036】一方、本実施例における輪郭線抽出の動作
を更に詳しく説明すると図5のようになる。即ち、ステ
ップ210において輪郭線抽出が開始すると、ステップ
212において、抽出すべき画素すなわち着目点のY座
標値が零に設定され、その後、ステップ214におい
て、該着目点のX座標値が零に設定される。
On the other hand, the operation of contour line extraction in this embodiment will be described in more detail as shown in FIG. That is, when the contour line extraction is started in step 210, the Y coordinate value of the pixel to be extracted, that is, the target point is set to zero in step 212, and then the X coordinate value of the target point is set to zero in step 214. To be done.

【0037】次に、ステップ216において着目点の周
囲8つの点の全ての値をチェックする。即ち、D(X−
1,Y−1)、D(X,Y−1)、D(X+1,Y−
1)、D(X−1,Y)、D(X+1,Y)、D(X−
1,Y+1)、D(X+1,Y+1)という8つの点の
全ての値をチェックする。
Next, in step 216, all values of eight points around the point of interest are checked. That is, D (X-
1, Y-1), D (X, Y-1), D (X + 1, Y-
1), D (X-1, Y), D (X + 1, Y), D (X-
1, Y + 1), D (X + 1, Y + 1), all 8 values are checked.

【0038】その後、ステップ218において全て同じ
値か否かが判断され、全て同じ値であると判断された場
合には、ステップ220においてP点の座標(X,Y)
が零に設定され、全て同じ値ではないと判断された場合
には、ステップ222においてP点の座標(X,Y)が
1に設定される。
Thereafter, in step 218, it is determined whether or not all have the same value, and when it is determined that all have the same value, in step 220, coordinates of point P (X, Y).
Are set to zero and it is determined that they are not all the same value, the coordinates (X, Y) of the point P are set to 1 in step 222.

【0039】即ち、着目点の周囲8個の画像状態を調
べ、全てが1若しくは零となって同一ならばその位置を
1とし、それ以外の場合には零とする。
That is, eight image states around the point of interest are examined, and if all are 1 or zero and are the same, the position is set to 1, and otherwise the position is set to 0.

【0040】次に、ステップ224において着目点のX
座標値を1進めてX+1とし、その後、ステップ226
においてX方向が終了したか否かが判断される。
Next, in step 224, the X of the point of interest is
The coordinate value is advanced by 1 to X + 1, and then step 226
At, it is determined whether or not the X direction has ended.

【0041】ステップ226においてX方向が終了して
いないと判断された場合には、ステップ216からステ
ップ224の動作が繰り返される。
If it is determined in step 226 that the X direction has not ended, the operations of steps 216 to 224 are repeated.

【0042】また、ステップ226においてY方向が終
了していると判断された場合には、ステップ228にお
いて着目点のY座標値を1進めてY+1とし、その後、
ステップ230においてY方向が終了したか否かが判断
される。
If it is determined in step 226 that the Y direction has ended, then in step 228 the Y coordinate value of the point of interest is advanced by 1 to Y + 1, and thereafter,
In step 230, it is determined whether the Y direction has ended.

【0043】ステップ230においてY方向が終了して
いないと判断された場合には、ステップ214からステ
ップ228までの動作が繰り返される。
If it is determined in step 230 that the Y direction has not ended, the operations from step 214 to step 228 are repeated.

【0044】ステップ230においてY方向が終了した
と判断された場合には、ステップ232において輪郭線
抽出が終了する。
If it is determined in step 230 that the Y direction has ended, the contour line extraction ends in step 232.

【0045】図6は、このようにして図2の輪郭画像メ
モリ18に記憶された輪郭線抽出画像を示す図であり、
図4を用いて詳述した着目画像の輪郭が示されている。
FIG. 6 is a diagram showing the contour line extraction image stored in the contour image memory 18 of FIG. 2 in this way,
The contour of the target image described in detail with reference to FIG. 4 is shown.

【0046】また、本実施例における輪郭線追跡の動作
を更に詳しく説明すると図7のようになる。即ち、ステ
ップ310において輪郭線追跡が開始すると、ステップ
312において前回の位置番号iを得、その後、ステッ
プ314において位置番号iを1進めてi+1とする。
The operation of contour line tracking in this embodiment will be described in more detail as shown in FIG. That is, when the contour line tracking is started in step 310, the previous position number i is obtained in step 312, and then the position number i is advanced by 1 in step 314 to be i + 1.

【0047】即ち、下記の表1に示す回転テーブルの値
において、前の点の位置番号iの次の値i+1を検索開
始番号とする。換言するならば、図8の回転テーブル
で、前の点の位置番号iの次の値i+1が検索開始番号
となるようにする。
That is, among the values of the rotation table shown in Table 1 below, the value i + 1 next to the position number i of the previous point is set as the search start number. In other words, in the rotation table of FIG. 8, the value i + 1 next to the position number i of the previous point is set as the search start number.

【0048】[0048]

【表1】 [Table 1]

【0049】次に、ステップ316において、回転テー
ブルのi番目に示されるオフセットを着目位置座標に足
した位置の値を得、ステップ318において、その値が
黒か否かが判断される。
Next, in step 316, the value of the position obtained by adding the i-th offset of the rotary table to the position coordinate of interest is obtained, and in step 318, it is determined whether or not the value is black.

【0050】即ち、回転テーブルの位置番号に相当する
場所から各座標のオフセット値を取り出し、着目点の座
標に加算した位置の値を得、その値が黒か否か即ち1で
あるか零であるかが判断される。
That is, the offset value of each coordinate is taken out from the position corresponding to the position number of the rotary table, and the position value added to the coordinate of the point of interest is obtained. Whether the value is black or not, that is, 1 or 0 is obtained. It is determined whether there is.

【0051】次に、ステップ318においてその値が黒
でないと判断された場合には、上記位置番号iに代えて
(i+1)を8で割った値を用い、その後、ステップ3
22において7回終了したか否かを判断する。
Next, when it is determined in step 318 that the value is not black, the value obtained by dividing (i + 1) by 8 is used instead of the position number i, and then step 3
In 22, it is judged whether or not the process is completed 7 times.

【0052】ステップ322において7回終了していな
いと判断された場合には、ステップ316からステップ
322までの動作を繰り返す。
If it is determined in step 322 that the processing has not been completed seven times, the operations from step 316 to step 322 are repeated.

【0053】即ち、着目点の座標に加算した位置の値が
黒でない即ち零であると判断された場合には、回転テー
ブルの位置番号をずらして同一の動作を繰り返す。
That is, when it is determined that the value of the position added to the coordinates of the point of interest is not black, that is, zero, the position number of the rotary table is shifted and the same operation is repeated.

【0054】一方、ステップ322において7回終了し
たと判断された場合には、ステップ324において端点
として扱い、その後、ステップ326においてiの位置
を戻す。
On the other hand, if it is determined in step 322 that the processing has been completed seven times, it is treated as an end point in step 324, and then the position of i is returned in step 326.

【0055】また、ステップ318においてその値が黒
である即ち1であると判断された場合には、位置番号i
−4の位置を前回の位置として退避し、その後、ステッ
プ326において、位置番号をiの位置に戻し、最後
に、ステップ330において輪郭線追跡を終了する。
If it is determined in step 318 that the value is black, that is, 1, the position number i
The position of -4 is saved as the previous position, then the position number is returned to the position of i in step 326, and finally the contour line tracking is ended in step 330.

【0056】即ち、最初に見つかった1の位置が次の点
となるというように1点づつ追跡し、時計回りの各点と
反時計回りの各点が一致したり、前後1点以内の範囲に
到達したら、輪郭線追跡を終了する。
That is, the position of 1 found first is tracked one by one such that it becomes the next point, and each point in the clockwise direction and each point in the counterclockwise direction coincide with each other, or within 1 point before and after. When it reaches, the contour tracking is finished.

【0057】図9は、このようにして行なった輪郭線追
跡の様子を示す図であり、図中、実線は縫い線を示し、
×印は分割点を示している。
FIG. 9 is a diagram showing the manner of contour line tracking performed in this way, in which the solid line indicates the sewing line,
A cross mark indicates a division point.

【0058】尚、本発明は図2ないし図9などを用いて
詳述した実施例に限定されることなく種々の変形が可能
であり、例えば、読込み機能を実行した結果として指定
データが存在しないという結果が得られるならば前述し
た検索機能に代えて他の検索機能にしても良い。
The present invention is not limited to the embodiment described in detail with reference to FIGS. 2 to 9, and various modifications are possible. For example, there is no designated data as a result of executing the read function. If such a result is obtained, another search function may be used instead of the above-mentioned search function.

【0059】[0059]

【発明の効果】以上詳しく説明したように、本発明によ
れば、画像入力装置から得られた原画像のうちの着目画
像の輪郭を時計方向と反時計方向の両方向に追跡しなが
ら、等ピッチの位置を交互に端点とする線分が縫い線と
なるように針落点を生成できる利点がある。
As described above in detail, according to the present invention, the contour of the image of interest in the original image obtained from the image input device is tracked in both the clockwise direction and the counterclockwise direction while maintaining the equal pitch. There is an advantage that the needle drop points can be generated so that the line segments whose end points are alternately the positions become the sewing lines.

【0060】また、本発明によれば、図形を縫い潰す方
向をキーボード等から逐一的に入力したり横方向に一意
に決定して縫い潰したりすることなく、方向が変化する
模様などを良好に仕上げられるという利点もある。
Further, according to the present invention, a pattern in which the direction is changed can be improved without inputting the direction in which the figure is sewn one by one from the keyboard or the like and uniquely determining in the lateral direction and sewn. It also has the advantage of being finished.

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

【図1】本発明の概要を説明するための線図FIG. 1 is a diagram for explaining an outline of the present invention.

【図2】本発明の実施例を説明するためのブロック回路
FIG. 2 is a block circuit diagram for explaining an embodiment of the present invention.

【図3】本実施例の動作を説明するためのフローチャー
FIG. 3 is a flowchart for explaining the operation of this embodiment.

【図4】本実施例における着目画像を説明するための図FIG. 4 is a diagram for explaining an image of interest in this embodiment.

【図5】本実施例における輪郭線抽出の動作を説明する
ためのフローチャート
FIG. 5 is a flowchart for explaining the operation of contour line extraction in the present embodiment.

【図6】本実施例における輪郭線抽出を説明するための
FIG. 6 is a diagram for explaining contour line extraction in the present embodiment.

【図7】本実施例における輪郭線追跡の動作を説明する
ためのフローチャート
FIG. 7 is a flowchart for explaining the operation of contour line tracking in the present embodiment.

【図8】本実施例における回転テーブルを説明するため
の図
FIG. 8 is a diagram for explaining a rotary table in the present embodiment.

【図9】本実施例における輪郭線追跡を説明するための
FIG. 9 is a diagram for explaining contour line tracking in the present embodiment.

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

10…下絵 12…画像入力装置 14、24、28…インターフェイス 18…原画像メモリ 20…輪郭画像メモリ 22…縫いデータ格納媒体 26…CPU 30…表示装置 10 ... Basic image 12 ... Image input device 14, 24, 28 ... Interface 18 ... Original image memory 20 ... Contour image memory 22 ... Sewing data storage medium 26 ... CPU 30 ... Display device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】画像入力装置によって読み込まれた模様の
原画を映像信号として入力して2値化する第1手段と、 該第1手段から得られた画像を分割する第2手段と、 前記画像の輪郭線を抽出する第3手段と、 前記輪郭線を追跡する第4手段とを備え、 前記輪郭線の特定の点を基準として時計回り方向と反時
計回り方向の両方向に前記輪郭線を追跡し、該両方向か
らの追跡が一致したときに追跡を中止し、該追跡線にお
ける所定の画素分毎の点を交互に結ぶ線分を縫い線とし
て縫いデータを生成することを特徴とするミシンの縫い
データ作成装置。
1. A first means for inputting an original image of a pattern read by an image input device as a video signal to binarize it, a second means for dividing the image obtained from the first means, and the image. And a fourth means for tracing the contour line, and tracing the contour line in both the clockwise direction and the counterclockwise direction with reference to a specific point of the contour line. However, when the tracking from both directions coincides with each other, the tracking is stopped, and the sewing data is generated with the line segment alternately connecting the points for each predetermined pixel in the tracking line as the sewing line. Sewing data creation device.
JP31188892A 1992-11-20 1992-11-20 Sewing data preparing device for sewing machine Pending JPH06154445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31188892A JPH06154445A (en) 1992-11-20 1992-11-20 Sewing data preparing device for sewing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31188892A JPH06154445A (en) 1992-11-20 1992-11-20 Sewing data preparing device for sewing machine

Publications (1)

Publication Number Publication Date
JPH06154445A true JPH06154445A (en) 1994-06-03

Family

ID=18022625

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31188892A Pending JPH06154445A (en) 1992-11-20 1992-11-20 Sewing data preparing device for sewing machine

Country Status (1)

Country Link
JP (1) JPH06154445A (en)

Similar Documents

Publication Publication Date Title
JPH05256796A (en) Inspecting system
CN111242966A (en) Image boundary correction method, device, electronic equipment and storage medium
JPH06154445A (en) Sewing data preparing device for sewing machine
JP2002042112A (en) Part mounting inspecting method for circuit board and its system
US5301264A (en) Figure encoder
JPS5941230B2 (en) Contour extraction method
JP3095470B2 (en) Character recognition device
JP4027689B2 (en) Image rotation angle detection method, apparatus and recording medium
JP2587482B2 (en) Pattern matching method
JP2864510B2 (en) Shape discriminator
JPH07104137B2 (en) Method of detecting the rotation angle of the target pattern
JPS634379A (en) Pattern matching device
JP2838556B2 (en) Image processing device
JP3024033B2 (en) Image processing device
JP3037504B2 (en) Image processing method and apparatus
JP3521574B2 (en) Automatic tracking device
JPH0490078A (en) Centroid detector
KR20230148999A (en) High-resolution image stitching method for semiconductor defect inspection
JPH0535872A (en) Contour tracing system for binary image
JPH07120392B2 (en) Character pattern cutting device
CN117974844A (en) Image stitching method and device and electronic equipment
JP2882056B2 (en) How to identify specific patterns
JPH04188379A (en) Picture pattern recognizing method
JPH1069536A (en) Image synthesizer
JPH0554189A (en) Picture information processor