JP3802901B2 - Pattern image correction processing device and pattern image correction processing recording medium - Google Patents

Pattern image correction processing device and pattern image correction processing recording medium Download PDF

Info

Publication number
JP3802901B2
JP3802901B2 JP2004028722A JP2004028722A JP3802901B2 JP 3802901 B2 JP3802901 B2 JP 3802901B2 JP 2004028722 A JP2004028722 A JP 2004028722A JP 2004028722 A JP2004028722 A JP 2004028722A JP 3802901 B2 JP3802901 B2 JP 3802901B2
Authority
JP
Japan
Prior art keywords
pattern
mask
image
pattern image
correction processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004028722A
Other languages
Japanese (ja)
Other versions
JP2005223554A (en
Inventor
章弘 石川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IBARAKI PREFECTURAL GOVERNMENT
Original Assignee
IBARAKI PREFECTURAL GOVERNMENT
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 IBARAKI PREFECTURAL GOVERNMENT filed Critical IBARAKI PREFECTURAL GOVERNMENT
Priority to JP2004028722A priority Critical patent/JP3802901B2/en
Publication of JP2005223554A publication Critical patent/JP2005223554A/en
Application granted granted Critical
Publication of JP3802901B2 publication Critical patent/JP3802901B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、例えば手書きで作成した原画を織物生地等にパターンの配列で描画するのに際し、特に図柄の縁の部分に生じる画素が大きく欠けたパターンを整理、修正し、生地に表示するのに良好な図柄を得ることを目的とした画像修正処理装置とその機能をコンピュータ上で実現させるためのコンピュータのソフトウェアを記録したパターン画像修正処理用記録媒体に関する。   The present invention, for example, when drawing an original picture created by handwriting on a textile fabric or the like in an array of patterns, especially for organizing, correcting, and displaying on a fabric a pattern lacking large pixels generated at the edge of a pattern. The present invention relates to an image correction processing apparatus for obtaining a good design and a recording medium for pattern image correction processing on which computer software for realizing the function on a computer is recorded.

例えば、茨城県南西部における伝統的な地場織物産業として、結城紬織りがある。この結城紬の生地に描かれる図柄は、原画が手描きにより描かれ、図9に示すような亀甲と呼ばれる単位の図形、すなわちパターンが使用される。この亀甲パターンを生地上で規則正しく縦横、斜めに二次元配列されるように織り糸を捺染し、生地上でその亀甲パターンの集合により図12に示すような例の柄を描く。柄を描く場合、柄の中央部分は亀甲パターンの形が完全に現れるが、柄の輪郭にあたる部分では亀甲パターンの形が完全には現れない。この輪郭の部分では、図9に示すような「柱」、「ちらし」、「山」、「十字」等と呼ばれる亀甲パターンを構成する各要素の部分的な形状で輪郭を構成するように描く。また、柱については柄の形に合わせてその半分の長さとする場合もある。こうして修正処理された図柄が図15に示す図柄である。   For example, as a traditional local textile industry in the southwestern part of Ibaraki Prefecture, there is Yuki woven weaving. As for the pattern drawn on the cloth of this Yuki cocoon, the original picture is drawn by hand drawing, and a unit figure called a turtle shell as shown in FIG. 9, that is, a pattern is used. The weaving thread is printed so that the turtle shell pattern is regularly arranged two-dimensionally vertically and horizontally and diagonally on the fabric, and an example pattern as shown in FIG. 12 is drawn on the fabric by the collection of the turtle shell pattern. When drawing a pattern, the shape of the tortoiseshell pattern appears completely at the center of the pattern, but the shape of the tortoiseshell pattern does not appear completely at the portion corresponding to the outline of the pattern. In this contour portion, the contour is drawn with a partial shape of each element constituting the turtle shell pattern called “pillar”, “flyer”, “mountain”, “cross”, etc. as shown in FIG. . Also, the column may be half as long as the shape of the handle. The symbol corrected in this way is the symbol shown in FIG.

このような結城紬織りの図柄処理の手法は、現在パソコンの画像処理ソフトウェアを利用して設計図案を描く仕組みも用いられている。使用する画像処理ソフトウェアはラスター画像を処理するソフトウェアである。ラスター画像では、ピクセルと呼ばれる画素を所要の解像度に従って二次元平面上に規則正しく縦横に配置し、前述した亀甲等の個々のパターンを表示する。   Such Yuki Saori weaving pattern processing methods currently use a mechanism for drawing design designs using image processing software on a personal computer. The image processing software used is software for processing raster images. In a raster image, pixels called pixels are regularly arranged vertically and horizontally on a two-dimensional plane according to a required resolution, and individual patterns such as the above-mentioned turtle shell are displayed.

パソコンの画像処理ソフトウェアを利用する場合、その基本機能であるマスク機能を用いて原画を処理し、パターン画像を得る。マスク機能とは、描画部分に描かれた原画に対してマスクをかけることで、マスクを透かして描画部分を表示させる機能である。
例えば、結城紬の図柄については、あらかじめ亀甲のマスクを作成しておき、原画をこのマスクでマスキングすることで仮想の生地の上に柄を描き、この柄から織り糸に捺染を施し、この捺染糸から生地を織る。
When using image processing software of a personal computer, the original image is processed using a mask function, which is its basic function, to obtain a pattern image. The mask function is a function for displaying the drawing portion through the mask by applying a mask to the original image drawn in the drawing portion.
For example, with regard to the design of Yuki Kaoru, a mask of turtle shell is created in advance, a pattern is drawn on a virtual fabric by masking the original picture with this mask, and the weaving thread is printed from this pattern. Weave the dough.

しかしながら、このような画像処理ソフトウェアにより得られたパターン画像には、その輪郭部分にパターンの一部が欠落したいわゆるパターンの欠けが生じる。そのため、結城紬の図柄の場合、それを仮想の生地の上に描いた場合、柄の輪郭部分における亀甲パターンの形状が極めて粗雑になる。本来あるべき亀甲パターンの輪郭の柄にするためには、各輪郭部分において手作業によって粗雑な箇所を修正する必要がある。この修正は柄が複雑なほど手間がかかる作業である。   However, a pattern image obtained by such image processing software has a so-called pattern defect in which a part of the pattern is missing in the contour portion. Therefore, in the case of a Yuki tsumugi pattern, when it is drawn on a virtual fabric, the shape of the turtle shell pattern in the contour portion of the pattern becomes extremely rough. In order to obtain the contour pattern of the tortoiseshell pattern that should originally be, it is necessary to manually correct rough portions in each contour portion. This modification is more work as the pattern becomes more complicated.

従来、コンピュータにより画像の輪郭部分に生じる凹凸等をコンピュータを用いた画像処理により修正処理するものが提案されている。しかしながら、結城紬の亀甲パターンのような特殊な形状をしたパターンで表示される画像の輪郭の修正処理には必ずしも適するものではなく、現実の糸染め、生地織りの現場での使用は不可能である。
特開平7−44700号公報 特開平11−112805号公報
2. Description of the Related Art Conventionally, there has been proposed a method in which irregularities or the like generated in the contour portion of an image are corrected by image processing using a computer. However, it is not necessarily suitable for correcting the contours of images displayed in a specially shaped pattern such as the Yuki turtle tortoise pattern, and it cannot be used in actual yarn dyeing and fabric weaving. .
JP 7-44700 A JP-A-11-112805

本発明は、このような従来の画像修正処理における課題に鑑み、簡単な操作によりパターン画像の輪郭部分のパターンを手作業によらず自動的に修正処理することが出来るパターン画像修正処理装置及びその機能をコンピュータ上で実現することが出来るソフトウェアを記録したパターン画像修正処理用記録媒体を提供することを目的とする。   In view of the problems in the conventional image correction processing, the present invention provides a pattern image correction processing apparatus capable of automatically correcting a pattern of a contour portion of a pattern image by a simple operation without using manual operations, and the same It is an object of the present invention to provide a recording medium for pattern image correction processing in which software capable of realizing functions on a computer is recorded.

本発明では、手作業により作成された原画を第一のマスクでマスキングし、その原画に従い所定の画素群により全体として所定の形状に表示されたパターンを縦横に規則正しく配列した第一のパターン画像を得る。さらに第一のパターン画像の主として縁の部分にある画素が大きく欠けたパターンを除き、その他のパターン位置に欠けの無いパターンを再現するものである。そのため、第一のパターン画像のパターンの一部を検知する仮想の窓が配列された第二のマスクを使用する。この第二のマスクで前記第一のパターン画像をマスキングし、例えばパターンが検出された位置にのみ完全な形のパターンを付与し、パターンが検出されない位置にはパターンを付与しないようにする。 In the present invention, the first pattern image and the original image that was created masked with a first mask, regularly arranged the pattern displayed in a predetermined shape as a whole by a predetermined pixel group follow the original vertically and horizontally by hand the Ru obtained. Further , except for the pattern in which the pixels mainly in the edge portion of the first pattern image are largely missing, a pattern having no defect at other pattern positions is reproduced. Therefore, a second mask in which virtual windows for detecting a part of the pattern of the first pattern image are arranged is used. The first pattern image is masked with this second mask, for example, a complete pattern is given only at the position where the pattern is detected , and no pattern is given at the position where the pattern is not detected.

本発明によるパターン画像修正処理装置は、同じパターンの繰り返し縦横斜め等の二次元配列により表示された図柄に対し、その図柄のパターンが欠けた部分を修正する装置であって、同じ形状の仮想の窓が縦横に規則正しく配列された第一のマスクと、この第一のマスクの個々の窓と座標上対応させてそれらの窓より狭い仮想の窓が縦横に規則正しく配列された第二のマスクと、前記第一のマスクにより原画をマスキングし、第一のパターン画像を得る処理手段と、前記第二のマスクにより前記第一のパターン画像をマスキングし、第二のパターン画像を得る処理手段と、この第二のパターン画像の座標上対応する位置に前記第一のパターンを配置して第三のパターン画像を得るパターン配置手段とを有するものである。 A pattern image correction processing device according to the present invention is a device that corrects a portion of a pattern displayed in a two-dimensional array such as repeated vertical and horizontal diagonals of the same pattern and lacks the pattern of the same pattern, and has a virtual shape of the same shape. A first mask in which windows are regularly arranged vertically and horizontally, and a second mask in which virtual windows narrower than those windows are coordinately aligned with the individual windows of the first mask and are regularly arranged vertically and horizontally; Processing means for masking the original image with the first mask to obtain a first pattern image; processing means for masking the first pattern image with the second mask to obtain a second pattern image; and Pattern placement means for placing the first pattern at a position corresponding to the coordinates of the second pattern image to obtain a third pattern image.

パターン画像のパターンは、複数の画素群により表示される。第二のマスクは、第一のマスクの仮想の窓の一部分にのみ対応する仮想の窓を有する。第二のマスクは、それぞれ第一のマスクの窓のそれぞれ異なる部分に対応する窓を有するためのものが複数備えられている。 The pattern of the pattern image is displayed by a plurality of pixel groups. The second mask has a virtual window that corresponds only to a portion of the virtual window of the first mask. A plurality of second masks are provided for having windows corresponding to different portions of the windows of the first mask.

このようなパターン画像修正処理装置では、第一のマスクにより、原画に従って座標上に第一のパターンを配置して原画に対応した第一のパターン画像を得る。その後、前記第一のマスクの仮想の窓と同じ配置で且つその窓より小さい仮想の窓を配置した第二のマスクを使用し、前記第一のパターン画像をマスキングし、その第一のパターン画像のパターンが検知された位置にみに別の第二のパターンを配置して第二のパターン画像を得る。例えば最も単純なケースとしてパターンが円や正方形の場合、その中央の狭い部分の画素のみを第二のマスクでマスキングし、第二のパターン画像を得る。 In such a pattern image correction processing device, the first pattern is arranged on the coordinates according to the original image by the first mask, and the first pattern image corresponding to the original image is obtained. Then, using a second mask positioning the first and windows of the window is smaller than the virtual in the same arrangement as the virtual window of the mask, masking the first pattern image, the first pattern image A second pattern image is obtained by arranging another second pattern only at the position where the pattern is detected . For example, in the simplest case, when the pattern is a circle or square, only the narrow pixel at the center is masked with the second mask to obtain the second pattern image.

その後第二のパターン画像のパターンの位置に欠けの無い完全な形の第一のパターンを再配置し、第三のパターン画像を得る。すると、第一のパターン画像の輪郭部分で、仮にパターン欠けがある部分でも、第二のパターン画像で第二のパターンが存在する位置には完全な形の第一のパターンが再配置される。他方、第二のパターン画像で第二のパターンが無い位置には、第一のパターンが再配置されない。その結果、第一のパターン画像の欠けパターンのうち、或る一定の画素を占有するパターンの部分では、欠けパターンが完全なパターンとして補完され、或る一定の画素を占有しないパターンの部分では、欠けパターンが除去されることになる。これにより、特にパターン画像の輪郭部分でパターンの補完、削除が行われ、修正された第二のパターン画像が得られる。 Then re-place the complete first pattern shape with no chipping at the position of the second pattern image pattern, to obtain a third pattern image. Then, even if there is a missing pattern in the contour portion of the first pattern image, the complete first pattern is rearranged at the position where the second pattern exists in the second pattern image. On the other hand, the first pattern is not rearranged at a position where there is no second pattern in the second pattern image. As a result, in the portion of the pattern that occupies a certain pixel in the missing pattern of the first pattern image, the missing pattern is complemented as a complete pattern, and in the portion of the pattern that does not occupy a certain pixel, The missing pattern is removed. As a result, the pattern is complemented and deleted particularly at the contour portion of the pattern image, and a corrected second pattern image is obtained.

このようなパターン画像修正処理装置における、パターン画像修正処理工程は、コンピュータに取り込まれる画像に対し、仮想のマスクを用いて自動処理することにより容易に実現することが出来る。このような機能をコンピュータ上で実現させる手段は、コンピュータプログラムとして構成され、それを記録したことを記録媒体によりコンピュータにセットアップすることが出来る。   The pattern image correction processing step in such a pattern image correction processing apparatus can be easily realized by automatically processing an image captured by a computer using a virtual mask. The means for realizing such a function on a computer is configured as a computer program, and the fact that it has been recorded can be set up in the computer by a recording medium.

本発明は、簡単な操作によりパターン画像の輪郭部分のパターンを手作業によらず自動的に修正することが出来るので、例えば、亀甲パターンの配列により柄を表す結城紬の柄の下絵処理等において、格段の能率の向上を図ることが出来る。特に、柄の複雑さの如何に拘わらず、同様にしてパターン画像の輪郭部分のパターンを簡単に修正処理することが可能となる。   Since the present invention can automatically correct the pattern of the contour portion of the pattern image by a simple operation without any manual work, for example, in the background processing of the Yuki tsumugi pattern representing the pattern by the arrangement of the turtle shell pattern, etc. A marked improvement in efficiency can be achieved. In particular, the pattern of the contour portion of the pattern image can be easily corrected regardless of the complexity of the pattern.

本発明は、コンピュータにおける画像処理手法において用いられるマスキング機能を利用し、一定の形状を有するパターンを規則正しく配置して表示される画像に対し、その特に輪郭部分でのパターン欠けを自動的に修正処理出来るようにした。
以下、このような本発明の実施例について、図面を参照しながら具体例を挙げて詳細に説明する。
The present invention uses a masking function used in an image processing method in a computer, and automatically corrects a pattern defect particularly in an outline portion of an image displayed by regularly arranging patterns having a certain shape. I made it possible.
Hereinafter, examples of the present invention will be described in detail with specific examples with reference to the drawings.

図1は、本発明の第1実施の形態に係る画像修正処理装置の構成を示すブロック図である。図中、1は実施の形態の画像修正処理装置全体を示し、制御部2、表示部3、ビデオメモリ4、キーボード5、及びマウスなどのポインティングデバイス6を主要構成要素としている。さらに、手書き等で作成した原画を取り込むイメージスキャナやデジタルカメラ等の画像入力装置12も付属している。これらの各構成要素は、システムバス7を介して互いに接続されている。   FIG. 1 is a block diagram showing the configuration of the image correction processing apparatus according to the first embodiment of the present invention. In the figure, reference numeral 1 denotes an entire image correction processing apparatus according to the embodiment, and includes a control unit 2, a display unit 3, a video memory 4, a keyboard 5, and a pointing device 6 such as a mouse as main components. Further, an image input device 12 such as an image scanner or a digital camera for capturing an original image created by handwriting or the like is also attached. These components are connected to each other via a system bus 7.

制御部2は、本実施の形態の画像修正処理装置1全体を制御するもので、マイクロプロセッサ等のCPU8、RAM等により構成されるプログラムメモリ9、I/Oインターフェース部10及びハードディスク装置や光学記録再生ドライブ等の外部記憶装置11等を備えている。CPU8は、後述するフローチャートで表される、プログラムメモリ9に記憶されたプログラムに従って本装置1全体を制御している。プログラムメモリ9は前記プログラムを格納するとともに、CPU8による制御処理の実行時、マスクデータや各種データを記憶するためのワークエリアとしても使用され、各種データの一時補間領域を備えている。   The control unit 2 controls the entire image correction processing apparatus 1 according to the present embodiment. The control unit 2 includes a CPU 8 such as a microprocessor, a program memory 9 including a RAM, an I / O interface unit 10, a hard disk device, and an optical recording device. An external storage device 11 such as a reproduction drive is provided. The CPU 8 controls the entire apparatus 1 according to a program stored in a program memory 9 represented by a flowchart described later. The program memory 9 stores the program and is also used as a work area for storing mask data and various data when the CPU 8 executes control processing, and includes a temporary interpolation area for various data.

この実施の形態では、I/Oインターフェース部10は、外部記憶装置11としてのハードディスク装置とのインターフェース制御を行っている。ハードディスク装置は、ディスク上の磁気記録媒体にデータを記録して読み書きする外部記憶装置11で、作成された画像データやプログラム・メモリ9にダウンロードされて実行される各種アプリケーション・プログラム等も記憶している。   In this embodiment, the I / O interface unit 10 performs interface control with a hard disk device as the external storage device 11. The hard disk device is an external storage device 11 that records and reads / writes data on a magnetic recording medium on the disk, and stores the created image data and various application programs that are downloaded to the program memory 9 and executed. Yes.

表示部3は、入力された図柄や処理された図柄やオペレータへのメッセージ等を画面に表示するもので、CRT或は液晶等で構成されている。ビデオメモリ4は、表示部3の画面に表示されるイメージデータが記憶されている。キーボード5及びポインティングデバイス6は、いずれもオペレータにより操作され、各種のデータや指示コマンドを入力するものである。画像入力装置12は、手書き等で作成した原画を取り込むもので、イメージスキャナやデジタルカメラ等の機器が使用される。   The display unit 3 displays input symbols, processed symbols, messages to the operator, etc. on the screen, and is composed of a CRT or liquid crystal. The video memory 4 stores image data to be displayed on the screen of the display unit 3. Both the keyboard 5 and the pointing device 6 are operated by an operator to input various data and instruction commands. The image input device 12 captures an original image created by handwriting or the like, and devices such as an image scanner and a digital camera are used.

次に、図2のフローチャートと、図3〜図8に示す画像図を参照して、本実施の形態の画像修正処理装置1における図形処理を説明する。なお、図3〜図8に示す画像図は、図柄の修正処理の行程が分かりやすいように、パターンとして最も単純な正方形のパターンを使用して図柄を表示するものについて示してある。   Next, graphic processing in the image correction processing apparatus 1 of the present embodiment will be described with reference to the flowchart of FIG. 2 and the image diagrams shown in FIGS. Note that the image diagrams shown in FIGS. 3 to 8 show the symbols displayed using the simplest square pattern as the pattern so that the process of the symbol correction process can be easily understood.

先ず原画を用意する。原画は、手書きのものを画像入力装置12によりコンピュータである画像修正処理装置1に取り込む手法か或いは画像修正処理装置1にセットアップされた画像作成ソフトウェアを使用し、キーボード5、及びマウスなどのポインティングデバイス6により作成し、外部記憶装置11に記録する。このような原画は、所要の解像度により画面上に配列された画素(ピクセル)により表示部3に表示される。原画の例を図3に示す。   First, prepare the original picture. The original image is a technique of taking a handwritten image into the image correction processing device 1 that is a computer by the image input device 12 or using image creation software set up in the image correction processing device 1, and a pointing device such as a keyboard 5 and a mouse. 6 and recorded in the external storage device 11. Such an original picture is displayed on the display unit 3 by pixels (pixels) arranged on the screen with a required resolution. An example of the original picture is shown in FIG.

次に、コンピュータである画像修正処理装置1に内蔵する第一のマスクを使用し、原画をマスキングする。例えば第一のマスクは、図4に示すようなもので、原画からパターンとなる画素を抽出するため、同じ形状の仮想の窓が縦横に規則正しく配列されたものである。図3の例では、正方形の窓が縦横に一定の間隔で配列されている。この第一のマスクで原画をマスキングすることにより、複数の画素の集合により表示される同じ形状の第一のパターンの縦横への配列により図柄が表示される。このようにして原画を第一のマスクによりマスキングして得られる第一のパターン画像を図5に示す。 Next, the original image is masked using the first mask built in the image correction processing apparatus 1 which is a computer. For example, the first mask is as shown in FIG. 4, in which virtual windows of the same shape are regularly arranged in the vertical and horizontal directions in order to extract the pixels as the pattern from the original picture. In the example of FIG. 3, square windows are arranged vertically and horizontally at regular intervals. By masking the original image with this first mask, the design is displayed by the vertical and horizontal arrangement of the first pattern of the same shape displayed by the set of a plurality of pixels. FIG. 5 shows a first pattern image obtained by masking the original image with the first mask in this way.

次に、コンピュータである画像修正処理装置1に内蔵する第二のマスクを使用し、前記第一のパターン画像をマスキングする。例えば第二のマスクは、図6に示すようなもので、第一のマスクと同じ間隔で配列された仮想の窓を有し、個々の窓は第一のマスクの仮想の窓とそれぞれ座標上対応する位置にある。但しこの第二のマスクの窓は、第一のマスクの仮想の窓より十分小さく、その仮想の窓は第一のマスクの仮想の窓一部分にぞれぞれ対応している。最も一般的には、第一のマスクの仮想の窓は、第二のマスクの仮想の窓の中央位置にそれぞれ対応している。図6の例では、第二のマスクには、ドット状の仮想の窓が第一のマスクの仮想の窓と同じ間隔で縦横に一定の間隔で配列されており、前者の各仮想の窓は後者の仮想の窓の中央位置に対応している。 Next, the first pattern image is masked by using a second mask built in the image correction processing apparatus 1 which is a computer. For example, the second mask is as shown in FIG. 6 and has virtual windows arranged at the same interval as the first mask, and each window is coordinated with the virtual window of the first mask. In the corresponding position. However windows of the second mask is sufficient from the virtual window of the first mask small windows that virtual corresponds Zorezore to a portion of the virtual window of the first mask. Most commonly, the virtual window of the first mask corresponds to the center position of the virtual window of the second mask, respectively. In the example of FIG. 6, the second mask has dot-like virtual windows arranged at regular intervals in the vertical and horizontal directions at the same intervals as the virtual windows of the first mask. It corresponds to the center position of the latter virtual window.

この第二のマスクにより前記第一のパターン画像をマスキングすると、例えば第一のパターン画像の中央部のように、第一のパターンを構成する画素がほぼ揃っている部分では、第二のマスクにより第二のパターン画像上ではドット状の第二のパターンが表示される。他方、例えば第一のパターン画像の輪郭部のように、第一のパターンを構成する画素が一部存在せず、部分的にしかない場合、次のような結果となる。まず、第二のマスクの仮想の窓に対応する中央部に第一のパターンの画素が存在する場合、第二のマスクにより第二のパターン画像上でドット状の第二のパターンが配置される。他方、第二のマスクの仮想の窓に対応する第一のパターンの中央部に画素が存在しない部分では、第二のパターン画像上でドット状の第二のパターンは配置されない。こうして図6に示すような第二のマスクにより図5に示すような第一のパターン画像をマスキングすると、第一のパターン画像の輪郭部分のように、画素が一部欠けている第一のパターンについては、残っている画素の占める割合により、個々のパターンをスクリーニングすることが出来る。その結果得られる第二のパターン画像を図7に示す。 When masking the first pattern image by the second mask, for example as in the central portion of the first pattern image, the partial pixels constituting the first pattern is substantially aligned, the second mask On the second pattern image, a dot-like second pattern is displayed . On the other hand, for example, when the pixels constituting the first pattern are not partially present and only partially, such as the contour portion of the first pattern image, the following results are obtained. First, when the pixel of the first pattern exists in the center corresponding to the virtual window of the second mask , the dot-like second pattern is arranged on the second pattern image by the second mask . . On the other hand, the dot-like second pattern is not arranged on the second pattern image in the portion where the pixel does not exist in the central portion of the first pattern corresponding to the virtual window of the second mask. When the first pattern image as shown in FIG. 5 is masked by the second mask as shown in FIG. 6 in this way, the first pattern in which some pixels are missing as in the outline portion of the first pattern image. For, individual patterns can be screened according to the ratio of the remaining pixels. The second pattern image obtained as a result is shown in FIG.

最後に第二のパターン画像のドット状の第二のパターンの周囲に、画素が欠けていない完全な第一のパターンの画素を再配置することにより、図8に示すような第三のパターン画像が得られる。この第三のパターン画像は、輪郭部分を含めて全ての第一のパターンの画素が揃っており、画像を構成する全てのパターンが欠けの無い完全な第一のパターンからなる。以上によりパターン画像の修正が完了する。 Finally, the third pattern image as shown in FIG. 8 is obtained by rearranging the pixels of the complete first pattern in which no pixels are missing around the dot-like second pattern of the second pattern image. Is obtained. This third pattern image includes all the first pattern pixels including the outline portion, and all the patterns constituting the image are complete first patterns without any defects. The pattern image correction is thus completed.

これらの行程は、全てコンピュータの画像処理により行われる。原画や各パターン画像及び仮想のマスクはそれぞれ異なる画層として外部記録装置に記録され、適宜プログラムメモリに読み込まれ、コンピュータの画面上に表示されて画像とマスクとが重ね合わせられ、前述のような修正処理が行われる。
このような機能を達成するプログラミングは、光学記録媒体等の記録媒体に記録され、そのプログラミングをパソコンの基本ソフト(OS)の機能によりセットアップすることが出来る。
These processes are all performed by computer image processing. The original image, each pattern image, and the virtual mask are recorded in the external recording device as different layers, appropriately read into the program memory, displayed on the computer screen, and the image and the mask are overlaid. Correction processing is performed.
Programming that achieves such a function is recorded on a recording medium such as an optical recording medium, and the programming can be set up by the function of the basic software (OS) of the personal computer.

次に、本発明による画像修正処理手法を、個々のパターンとして図9に示すような亀甲模様を使用した結城紬の織り柄の修正処理に適用する場合について説明する。基本的には、前述の正方形のパターンを使用したパターン画像の修正処理行程と同じなので、主に異なる点を中心として説明する。   Next, the case where the image correction processing method according to the present invention is applied to the correction processing of the woven pattern of Yuki cocoons using the turtle shell pattern as shown in FIG. 9 as individual patterns will be described. Since this is basically the same as the pattern image correction process using the square pattern described above, the description will mainly focus on the differences.

図9により既に述べた通り、結城紬の亀甲パターンは、基本的に六角形であり、「柱」、「ちらし」、「山」、「十字」等と呼ばれる各要素からなる。結城紬では、生地の図柄において、隣接する亀甲パターンが横、上下、斜めに隣接しており、それぞれ隣接する亀甲パターンは、「柱」、「ちらし」、「山」の要素を共有している。   As already described with reference to FIG. 9, the turtle shell pattern of Yuki Pass is basically hexagonal, and is composed of elements called “pillars”, “flyers”, “mountains”, “crosses” and the like. In Yuki Pass, adjacent turtle shell patterns are adjacent horizontally, vertically, and diagonally in the design of the fabric, and each adjacent turtle shell pattern shares the elements of "pillar", "flyer", and "mountain".

先ず原画を用意する点は前述の例と同じであり、前述の例と同様にして作成する。図10はその原画の例を示す。
次に、コンピュータである画像修正処理装置1に内蔵する第一のマスクを使用し、原画をマスキングする。この第一のマスクは、図11に示すようなもので、結城紬の亀甲パターンが横、上下、斜め方向に規則正しく配列されている。この第一のマスクで原画をマスキングすることにより、原画が亀甲パターンの横、上下、斜め方向への配列として表示される。このようにして原画を第一のマスクによりマスキングして得られる第一のパターン画像を図12に示す。
First, the original image is prepared in the same manner as in the above example, and is created in the same manner as in the above example. FIG. 10 shows an example of the original picture.
Next, the original image is masked using the first mask built in the image correction processing apparatus 1 which is a computer. This first mask is as shown in FIG. 11, and the turtle shell pattern of Yuki is regularly arranged in the horizontal, vertical, and diagonal directions. By masking the original image with this first mask, the original image is displayed as an array in the horizontal, vertical, and diagonal directions of the turtle shell pattern. FIG. 12 shows a first pattern image obtained by masking the original image with the first mask in this way.

次に、コンピュータである画像修正処理装置1に内蔵する第二のマスクを使用し、原画をマスキングする。例えば第二のマスクは、図13に示すようなもので、第一のマスクと同じ間隔で配列された仮想の窓を有するものである。但しこの窓は、亀甲パターンの要素の一部のみをマスキングするもので、この個々仮想の窓は第一のマスクの対応する各亀甲パターンの要素の位置に対応している。例えば、図13に示す第二のマスクのマスキングパターンは、図9に示す亀甲パターンの柱の下半部とその下端のやまの要素のみを含んだ逆T字形のものである。第二のマスクの柱の下半部とその下端のやまの要素の仮想の窓は、第一のマスクの各亀甲パターンの柱の下半部とその下端のやまの位置に対応している。   Next, the original image is masked using the second mask built in the image correction processing apparatus 1 which is a computer. For example, the second mask is as shown in FIG. 13 and has virtual windows arranged at the same interval as the first mask. However, this window masks only a part of the elements of the turtle shell pattern, and this individual virtual window corresponds to the position of each corresponding turtle shell pattern element of the first mask. For example, the masking pattern of the second mask shown in FIG. 13 is an inverted T-shape that includes only the lower half of the column of the turtle shell pattern shown in FIG. The virtual windows of the lower half of the second mask column and the lower mountain component of the second mask correspond to the positions of the lower half of the first mask column and the lower mountain of the first mask.

この第二のマスクにより前記第一のパターン画像をマスキングすると、第二のマスクの逆T字形の仮想の窓により、図12の亀甲パターンのその要素のみが抽出される。その後マスキングした後の、亀甲パターンの柱の下半部とその下端のやまの各要素の長さにより、それらの要素を付与するか削除するかが決定される。マスキング画像上でそれらの要素の長さが完全に現れている個所には、当然ながらそれらの要素を付与し、それらの要素が全く現れていない個所にはそれらの要素を付与しない。また、各要素の長さが不完全である場合は、各要素の予め定められた一点にその要素の画素が存在するか否かによって決める。そその一点は,画像処理ソフトウェアの基本機能であるチャンネル機能にあらかじめ保存しておく。チャンネル機能とは型を保存する機能で、通常は画面に表示されない。   When the first pattern image is masked by the second mask, only the elements of the turtle shell pattern of FIG. 12 are extracted by the inverted T-shaped virtual window of the second mask. After masking, the length of each element of the lower half of the column of the tortoiseshell pattern and the lower end of the column determines whether to add or delete those elements. Of course, those elements are added to the portions where the lengths of the elements appear completely on the masking image, and those elements are not added to the portions where the elements do not appear at all. Further, when the length of each element is incomplete, it is determined by whether or not the pixel of that element exists at a predetermined point of each element. One of them is stored in advance in the channel function, which is the basic function of the image processing software. The channel function is a function that saves the mold and is not usually displayed on the screen.

こうして処理し、亀甲パターンの柱の下半部とその下端のやまの要素を付与すべき個所に付与し、それ以外の個所から不完全な要素を除去して処理し、そこに各要素の画素を再配置したのが図14に示すパターン画像である。
さらに他の要素についても、第二のマスクを備え、同様の処理を行う。これら複数の第二のマスクは、前記のチャンネル機能と共に異なる画層に記録させておき、順次呼び出して処理する。
Processing is performed in this way, the lower half of the column of the tortoiseshell pattern and the lower end of the column are added to the points to be added, incomplete elements are removed from the other points, and the pixel of each element is processed there. The pattern image shown in FIG. 14 is rearranged.
Further, other elements are also provided with a second mask and the same processing is performed. The plurality of second masks are recorded on different layers together with the channel function, and sequentially called and processed.

こうして亀甲パターンの全ての要素について処理し、その画素を再配置することにより、図15に示すような亀甲パターン画像が得られる。この亀甲パターン画像は、その輪郭部分で欠けた亀甲パターンを修正していることにより、これを原画として括り糸に捺染し、織物を織ったときに、生地に現れた柄の輪郭部分亀甲パターンが粗雑にならない。   By processing all the elements of the tortoiseshell pattern in this way and rearranging the pixels, a tortoiseshell pattern image as shown in FIG. 15 is obtained. This tortoiseshell pattern image corrects the tortoiseshell pattern missing at the contour part, and when this is printed on the binding yarn as an original image and the woven fabric is woven, the contour part tortoiseshell pattern that appears on the fabric is Don't get rough.

図3〜図8により説明した前述の例では、正方形の個々のパターンを一つの第二のマスクでマスキングし、処理した。これに対し、この亀甲パターンの例では、亀甲パターンの各要素を個々のパターンとして扱い、複数の第二のマスキングでそれぞれ単独または数個ずつ別々に処理を繰り返す。その点のみが異なるだけで、基本的な考え方や手順に格段の差は無い。   In the example described above with reference to FIGS. 3 to 8, each square pattern was masked with one second mask and processed. On the other hand, in this example of the turtle shell pattern, each element of the turtle shell pattern is treated as an individual pattern, and the process is repeated individually or several by a plurality of second masking. The only difference is that there is no significant difference in basic ideas and procedures.

本発明の一実施形態による画像修正処理装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the image correction processing apparatus by one Embodiment of this invention. 同画像修正処理装置による画像の修正処理工程の概略を示すフローチャートである。It is a flowchart which shows the outline of the correction process process of the image by the image correction processing apparatus. 本発明の一実施例による画像修正処理装置において使用する原画の例を示す図である。It is a figure which shows the example of the original picture used in the image correction processing apparatus by one Example of this invention. 同原画をマスキングして第一のパターン画像を得るための第一のマスクを示す図である。It is a figure which shows the 1st mask for masking the original picture and obtaining a 1st pattern image. 同原画を第一のマスクによりマスキングして得た第一のパターン画像を示す図である。It is a figure which shows the 1st pattern image obtained by masking the same original picture with a 1st mask. 同第一のパターン画像をマスキングして第二のパターン画像を得るための第二のマスクを示す図である。It is a figure which shows the 2nd mask for masking the 1st pattern image and obtaining a 2nd pattern image. 同第一のパターン画像を第二のマスクによりマスキングして得た第二のパターン画像を示す図である。It is a figure which shows the 2nd pattern image obtained by masking the 1st pattern image with a 2nd mask. 同第二のパターン画像の画素の周囲にパターンの残りの画素を付与して得た修正処理済の画像を示す図である。It is a figure which shows the image after the correction process obtained by giving the remaining pixel of a pattern around the pixel of the said 2nd pattern image. 結城紬織の絵柄を表すのに使用される亀甲パターンを構成する各要素の配置とその名称を示す図である。It is a figure which shows arrangement | positioning and the name of each element which comprise the tortoiseshell pattern used to represent the design of Yuki Saori. 本発明の他の実施例による画像修正処理装置において使用する原画の例を示す図である。It is a figure which shows the example of the original picture used in the image correction processing apparatus by other Examples of this invention. 同原画をマスキングして第一のパターン画像を得るための第一のマスクを示す図である。It is a figure which shows the 1st mask for masking the original picture and obtaining a 1st pattern image. 同原画を第一のマスクによりマスキングして得た第一のパターン画像を示す図である。It is a figure which shows the 1st pattern image obtained by masking the same original picture with a 1st mask. 同第一のパターン画像をマスキングして第二のパターン画像を得るための第二のマスクの一つを示す図である。It is a figure which shows one of the 2nd masks for masking the said 1st pattern image and obtaining a 2nd pattern image. 同第一のパターン画像を第二のマスクによりマスキングして得た第二のパターン画像を示す図である。It is a figure which shows the 2nd pattern image obtained by masking the 1st pattern image with a 2nd mask. 他の第二のマスクを使用して修正処理を繰り返し、最終的に得られる修正処理済の画像を示す図である。It is a figure which shows the image after the correction process finally obtained by repeating correction process using another 2nd mask.

Claims (5)

同じパターンの繰り返し二次元配列により表示された図柄に対し、その図柄のパターンが欠けた部分を修正する装置であって、同じ形状の仮想の窓が縦横に規則正しく配列された第一のマスクと、この第一のマスクの個々の窓と座標上対応させてそれらの窓より狭い仮想の窓が縦横に規則正しく配列された第二のマスクと、前記第一のマスクにより原画をマスキングし、第一のパターン画像を得る処理手段と、前記第二のマスクにより前記第一のパターン画像をマスキングし、第二のパターン画像を得る処理手段と、この第二のパターン画像の座標上対応する位置に前記第一のパターンを配置して第三のパターン画像を得るパターン配置手段とを有することを特徴とするパターン画像修正処理装置。 A device for correcting a portion of a pattern displayed by repeated two-dimensional arrangement of the same pattern, the first mask in which virtual windows of the same shape are regularly arranged vertically and horizontally, The first mask masks the original image with a second mask in which virtual windows narrower than those windows are coordinately aligned with the individual windows of the first mask, and the first mask masks the original image. Processing means for obtaining a pattern image; processing means for masking the first pattern image with the second mask to obtain a second pattern image; and the second pattern image at a position corresponding to the coordinates of the second pattern image. A pattern image correction processing apparatus, comprising: a pattern arranging unit that arranges one pattern to obtain a third pattern image. パターン画像のパターンは、複数の画素群により表示されることを特徴とする請求項1に記載のパターン画像修正処理装置。 The pattern image correction processing apparatus according to claim 1, wherein the pattern image pattern is displayed by a plurality of pixel groups. 第二のマスクは、第一のマスクの仮想の窓の一部分にのみ対応する仮想の窓を有することを特徴とする請求項2に記載のパターン画像修正処理装置。 The pattern image correction processing apparatus according to claim 2, wherein the second mask has a virtual window corresponding to only a part of the virtual window of the first mask . 第二のマスクは、それぞれ第一のマスクの窓のそれぞれ異なる部分に対応する窓を有するためのものが複数備えられていることを特徴とする請求項に記載のパターン画像修正処理装置。 4. The pattern image correction processing apparatus according to claim 3 , wherein a plurality of second masks are provided for having windows corresponding to different portions of the windows of the first mask . 前記請求項1〜4に記載のパターン画像修正処理装置について、その機能をコンピュータ上で実現させる手段をコンピュータのプログラムとして記録したことを特徴とするパターン画像修正処理用記録媒体。 5. The pattern image correction processing apparatus according to claim 1, wherein means for realizing the function on a computer is recorded as a computer program.
JP2004028722A 2004-02-05 2004-02-05 Pattern image correction processing device and pattern image correction processing recording medium Expired - Fee Related JP3802901B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004028722A JP3802901B2 (en) 2004-02-05 2004-02-05 Pattern image correction processing device and pattern image correction processing recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004028722A JP3802901B2 (en) 2004-02-05 2004-02-05 Pattern image correction processing device and pattern image correction processing recording medium

Publications (2)

Publication Number Publication Date
JP2005223554A JP2005223554A (en) 2005-08-18
JP3802901B2 true JP3802901B2 (en) 2006-08-02

Family

ID=34998863

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004028722A Expired - Fee Related JP3802901B2 (en) 2004-02-05 2004-02-05 Pattern image correction processing device and pattern image correction processing recording medium

Country Status (1)

Country Link
JP (1) JP3802901B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5011757B2 (en) 2005-08-02 2012-08-29 日産自動車株式会社 Vehicle steering system

Also Published As

Publication number Publication date
JP2005223554A (en) 2005-08-18

Similar Documents

Publication Publication Date Title
US6266054B1 (en) Automated removal of narrow, elongated distortions from a digital image
JPH06100910B2 (en) Overscan image display method and display device
US5412767A (en) Image processing system utilizing brush profile
JP2001203876A (en) Document decorating device and image processor
US20040101206A1 (en) Preview image display method, and preview image display device
CN115188349B (en) Method and system for editing user-defined content of mobile variable traffic information board
JP3802901B2 (en) Pattern image correction processing device and pattern image correction processing recording medium
US7715650B2 (en) Method and apparatus for digital processing of images
CN111145126B (en) Image character fast erasing method
JP2006203595A (en) Device for partially replacing color in image color space and color partially replacing system
JPH04284246A (en) Coloring treatment method of picrure region
JP4008333B2 (en) Multi-image projection method using a plurality of projectors, projector apparatus for using the method, program, and recording medium
JP6056511B2 (en) Image processing apparatus, method, program, and imaging apparatus
JP3890096B2 (en) Image editing system
US6282329B1 (en) Pattern editing system
JPH0767136B2 (en) Image processing device
JP2999538B2 (en) Wipe pattern designation device
JPH0762852B2 (en) Textile design equipment
JP2996735B2 (en) Abstract printing plate making method for printing building materials
JP7358186B2 (en) Information processing device, its control method and program
JP2818066B2 (en) Image layout processing device
JP6650129B2 (en) Image forming apparatus and image forming method
JPH0676035A (en) Picture data processing system
JPH1153513A (en) Method and device for setting region in image
JP3296834B2 (en) Split screen display device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060227

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060428

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100512

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110512

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees