JP2011216027A - Color drawing creation apparatus, color drawing creation method, and color drawing creation program - Google Patents

Color drawing creation apparatus, color drawing creation method, and color drawing creation program Download PDF

Info

Publication number
JP2011216027A
JP2011216027A JP2010085549A JP2010085549A JP2011216027A JP 2011216027 A JP2011216027 A JP 2011216027A JP 2010085549 A JP2010085549 A JP 2010085549A JP 2010085549 A JP2010085549 A JP 2010085549A JP 2011216027 A JP2011216027 A JP 2011216027A
Authority
JP
Japan
Prior art keywords
coloring
area
region
colored
target
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
JP2010085549A
Other languages
Japanese (ja)
Inventor
Haruo Nakano
春雄 中野
Kenji Nakano
賢司 中野
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.)
SYSTEM RUN KK
Original Assignee
SYSTEM RUN KK
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 SYSTEM RUN KK filed Critical SYSTEM RUN KK
Priority to JP2010085549A priority Critical patent/JP2011216027A/en
Publication of JP2011216027A publication Critical patent/JP2011216027A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a color drawing creation apparatus, a color drawing creation method, and a color drawing creation program capable of further shortening the working time with respect to coloring of a drawing.SOLUTION: A color drawing creation apparatus 10 includes a coloring-target area setting means 13, which sets a coloring target area 31 as a closed area in a coloring target drawing 30; a color-area setting means 14 which sets a color area 33 as a closed area in a color image 32; an area deforming means 15, which deforms the shape of the color area into the shape of a coloring target area; and a coloring processing means 16, which performs the coloring processing on the coloring target area on the basis of the deformed color area. The area deforming means divides the color area into a plurality of polygonal patches 41 and disposes points 52, that correspond to vertices 42 of respective polygonal patches in the coloring target area, to divide the coloring target area into a plurality of patches 51 and deforms the polygonal patches of the color area into shapes that correspond to patches of the coloring target area to thereby deform the shape of the color area into the shape of the coloring target area.

Description

本発明は、着色図面作成装置、着色図面作成方法及び着色図面作成プログラムに係るものである。   The present invention relates to a colored drawing creating apparatus, a colored drawing creating method, and a colored drawing creating program.

コンピュータによるデジタル画像の生成を初め、デジタルカメラ、あるいはイメージ入力装置等によるデジタル画像の利用は急速に普及し、パーソナルコンピュータやインクジェットカラープリンタ等の出力機の普及と共に、そのデジタル画像の加工技術も身近なソフトウェアとして普及してきた。   The use of digital images by digital cameras, image input devices, etc. has begun to spread rapidly, including the generation of digital images by computers, and with the spread of output machines such as personal computers and inkjet color printers, the processing technology of digital images is also familiar. Has become popular as software.

元画像の明暗、濃淡、色調などの調整や、部分的切り出し・貼付、複数枚画像の連結(パノラマ画像作成)処理等の処理については既に実用に供されているが、更に、これらの加工技術は、加工対象となるデジタル画像への着色処理技術を伴うソフトウェアとして提供される場合が多い。このような着色処理技術としては、一つの画像からその一部を切り出し、他の画像に重ね合わせて着色するものが知られている(例えば特許文献1参照)。   Processes such as the adjustment of light and darkness, shading, and color tone of the original image, partial cutout / paste, and connection of multiple images (panorama image creation) have already been put to practical use. Are often provided as software with a technique for coloring a digital image to be processed. As such a coloring processing technique, a technique is known in which a part of one image is cut out and is superimposed and colored on another image (see, for example, Patent Document 1).

特開平7−37066号公報JP 7-37066 A

ところで、重ね合わせに用いる画像と着色したい領域との大きさが異なる場合、重ね合わせに用いる画像の全体枠に用意された操作ポイントを重ね合わせた後に拡縮操作して変形させていた。しかしながら、この場合には、微妙な調整に作業時間を要し、結果として、着色に対する作業時間が長くなる傾向にあった。   By the way, when the size of the image used for superimposition and the region to be colored are different, the operation points prepared in the entire frame of the image used for superimposition are superimposed and then deformed by an enlargement / reduction operation. However, in this case, work time is required for fine adjustment, and as a result, work time for coloring tends to be long.

そこで、本発明は、図面の着色に対する作業時間をより短縮可能な着色図面作成装置、着色図面作成方法及び着色図面作成プログラムを提供することを目的とする。   Therefore, an object of the present invention is to provide a colored drawing creation apparatus, a colored drawing creation method, and a colored drawing creation program that can further reduce the work time for coloring a drawing.

本発明に係る着色図面作成装置は、着色すべき着色対象領域を着色対象図面に閉領域として設定する着色対象領域設定手段と、着色対象図面の着色に使用する着色領域を着色が施された着色画像に閉領域として設定する着色領域設定手段と、着色領域の形状を着色対象領域の形状に変形する領域変形手段と、変形された着色領域に基づいて着色対象領域に着色処理を行う着色処理手段と、を備え、領域変形手段は、着色領域を複数の多角形パッチに分割すると共に、各多角形パッチの頂点に対する対応点を着色対象領域に配置して着色対象領域を複数のパッチに分割し、着色領域が有する多角形パッチを、対応する着色対象領域のパッチの形状に変形することによって、着色領域の形状を着色対象領域の形状に変形する、ことを特徴とする。   The coloring drawing creation apparatus according to the present invention includes a coloring target region setting means for setting a coloring target region to be colored as a closed region in the coloring target drawing, and coloring in which the coloring region used for coloring the coloring target drawing is colored. Coloring area setting means for setting as a closed area in an image, area deforming means for deforming the shape of the coloring area into the shape of the coloring target area, and coloring processing means for performing coloring processing on the coloring target area based on the deformed coloring area And the area deforming means divides the coloring area into a plurality of polygon patches and arranges corresponding points for the vertices of each polygon patch in the coloring object area to divide the coloring object area into a plurality of patches. The shape of the colored region is changed to the shape of the coloring target region by changing the polygonal patch of the coloring region into the shape of the patch of the corresponding coloring target region.

また、本発明に係る着色図面作成方法は、着色対象領域設定手段、着色領域設定手段、領域変形手段及び着色処理手段を備える着色図面作成装置において着色図面を作成する方法であって、着色対象領域設定手段が、着色される着色対象図面に、着色対象領域を閉領域として設定するステップと、着色領域設定手段が、着色が施された画像に、着色対象図面の着色に使用する着色領域を設定するステップと、領域変形手段が、着色領域を複数の多角形パッチに分割すると共に、各多角形パッチの頂点に対する対応点を着色対象領域に配置して着色対象領域を複数のパッチに分割し、着色領域が有する多角形パッチを、対応する着色対象領域のパッチの形状に変形することによって、着色領域の形状を着色対象領域の形状に変形するステップと、着色処理手段が、変形された着色領域に基づいて着色対象領域を着色するステップと、を備えることを特徴とする。   A coloring drawing creation method according to the present invention is a method for creating a coloring drawing in a coloring drawing creation apparatus including a coloring target region setting unit, a coloring region setting unit, a region deformation unit, and a coloring processing unit, and the coloring target region The setting unit sets the coloring target region as a closed region in the coloring target drawing to be colored, and the coloring region setting unit sets the coloring region to be used for coloring the coloring target drawing in the colored image. And the step of transforming the colored region into a plurality of polygonal patches, dividing the colored target region into a plurality of patches by arranging corresponding points for the vertices of each polygonal patch in the colored target region, Transforming the shape of the coloring region into the shape of the coloring target region by transforming the polygonal patch of the coloring region into the shape of the patch of the corresponding coloring target region; Colored processing means, characterized in that it comprises the steps of: coloring a coloring object region on the basis of the modified colored region.

更に、本発明に係る着色図面作成プログラムは、コンピュータを、着色すべき着色対象領域を着色対象図面に閉領域として設定する着色対象領域設定手段、着色対象図面の着色に使用する着色領域を着色が施された着色画像に閉領域として設定する着色領域設定手段、着色領域の形状を前記着色対象領域の形状に変形する領域変形手段、及び、変形された着色領域に基づいて前記着色対象領域に着色処理を行う着色処理手段として機能させ、領域変形手段は、着色領域を複数の多角形パッチに分割すると共に、各多角形パッチの頂点に対する対応点を着色対象領域に配置して着色対象領域を複数のパッチに分割し、着色領域が有する多角形パッチを、対応する着色対象領域のパッチの形状に変形することによって、着色領域の形状を着色対象領域の形状に変形する、ことを特徴とする。   Further, the coloring drawing creation program according to the present invention is a computer that sets a coloring target region to be colored as a closed region in the coloring target drawing, and coloring the coloring region used for coloring the coloring target drawing. Colored area setting means for setting the applied colored image as a closed area, area deformation means for changing the shape of the colored area to the shape of the colored object area, and coloring the colored object area based on the deformed colored area The area deformation means divides the colored area into a plurality of polygon patches, and arranges corresponding points for the vertices of each polygon patch in the coloring target area, thereby providing a plurality of coloring target areas. By dividing the polygonal patch of the colored area into the patch shape of the corresponding colored area, the shape of the colored area is changed to the colored object. Deformed into a shape of band, and wherein the.

この構成では、着色対象図面及び着色画像に着色対象領域及び着色領域を設定すると、着色領域の形状を、着色対象図面において設定した着色対象領域の形状に変形した後、変形後の着色領域に基づいて着色対象領域を着色する。よって、着色対象図面において設定した着色対象領域と、上記画像において設定した着色領域との形状が異なっていても、着色対象図面及び着色画像に着色対象領域及び着色領域を設定することで、着色対象図面に着色を施すことが可能である。その結果、着色図面の作成に要する時間を短縮することができる。   In this configuration, when the coloring target region and the coloring region are set in the coloring target drawing and the coloring image, the shape of the coloring region is changed to the shape of the coloring target region set in the coloring target drawing, and then based on the deformed coloring region. To color the area to be colored. Therefore, even if the coloring target area set in the coloring target drawing and the coloring area set in the above image are different, by setting the coloring target area and the coloring area in the coloring target drawing and the coloring image, the coloring target It is possible to color the drawing. As a result, the time required for creating a colored drawing can be shortened.

本発明に係る着色図面作成装置では、着色領域の周縁上の多角形パッチの頂点と、着色対象領域の周縁上の対応点との対応関係を変更することによって、着色領域を着色対象領域に対して回転させる着色状態変更手段を更に備えることが好ましい。また、本発明に係る着色図面作成方法では、着色領域の周縁上の多角形パッチの頂点と、着色対象領域の周縁上の対応点との対応関係を変更することによって、着色領域を着色対象領域に対して回転させるステップを更に備えることが好適である。更にまた、本発明に係る着色図面作成プログラムでは、上記コンピュータを、着色領域の周縁上の多角形パッチの頂点と、着色対象領域の周縁上の対応点との対応関係を変更することによって、着色領域を着色対象領域に対して回転させる着色状態変更手段として機能せしめる、ことが好ましい。   In the coloring drawing creation apparatus according to the present invention, the coloring area is changed with respect to the coloring target area by changing the correspondence between the vertex of the polygon patch on the peripheral edge of the coloring area and the corresponding point on the peripheral edge of the coloring target area. It is preferable to further include coloring state changing means for rotating the rotating state. Further, in the coloring drawing creation method according to the present invention, the coloring region is changed to the coloring target region by changing the correspondence between the vertex of the polygon patch on the periphery of the coloring region and the corresponding point on the periphery of the coloring target region. Preferably, the method further comprises a step of rotating with respect to. Furthermore, in the coloring drawing creation program according to the present invention, the computer performs coloring by changing the correspondence between the vertex of the polygon patch on the periphery of the coloring area and the corresponding point on the periphery of the coloring target area. It is preferable to make the region function as a coloring state changing unit that rotates the region with respect to the coloring target region.

この構成により、着色領域を着色対象領域に対して回転させることができるので、一つの着色領域に基づいて、複数の着色パターンを実現することができる。   With this configuration, since the colored region can be rotated with respect to the coloring target region, a plurality of colored patterns can be realized based on one colored region.

本発明によれば、図面の着色に対する作業時間をより短縮可能な着色図面作成装置、着色図面作成方法及び着色図面作成プログラムを提供することができる。   According to the present invention, it is possible to provide a colored drawing creation apparatus, a colored drawing creation method, and a colored drawing creation program that can further reduce the work time for coloring a drawing.

本発明に係る着色図面作成装置の一実施形態の機能ブロック図である。It is a functional block diagram of one embodiment of a colored drawing creating apparatus according to the present invention. 図2(a)は、図1に示した着色図面作成装置で着色すべき着色対象図面の一例を示す図面である。図2(b)は、図2(a)に示した着色対象図面の着色に用いる着色画像の一例を示す図面である。図2(c)は、図2(a)に示した着色対象図面の一部を着色した着色図面の一例を示す図面である。FIG. 2A is a drawing showing an example of a coloring object drawing to be colored by the coloring drawing creation apparatus shown in FIG. FIG. 2B is a drawing showing an example of a colored image used for coloring the coloring object drawing shown in FIG. FIG.2 (c) is drawing which shows an example of the coloring drawing which colored a part of coloring object drawing shown to Fig.2 (a). 着色領域に対して生成した三角形パッチの一例を示す図面である。It is drawing which shows an example of the triangular patch produced | generated with respect to the coloring area | region. 着色領域のパッチ網と着色対象領域の対応パッチ網との対応関係を示すための図面である。It is drawing for showing the correspondence between the patch network of the coloring region and the corresponding patch network of the coloring target region. 着色領域のワーピング処理の前後の対応関係を示す図面である。It is drawing which shows the correspondence before and behind the warping process of a coloring area | region. 表示部が表示する作業ウィンドウの一例を示す模式図である。It is a schematic diagram which shows an example of the work window which a display part displays. 図1に示した着色図面作成装置の一実施形態のハードウェアの構成を示すブロック図である。It is a block diagram which shows the structure of the hardware of one Embodiment of the coloring drawing production apparatus shown in FIG. 着色図面作成装置における着色図面作成方法のフローチャートを示す図面である。It is drawing which shows the flowchart of the coloring drawing preparation method in a coloring drawing preparation apparatus. 着色図面作成装置による着色の実施例1を説明するための図面である。It is drawing for demonstrating Example 1 of coloring by the coloring drawing preparation apparatus. 着色図面作成装置による着色の実施例2を説明するための図面である。It is drawing for demonstrating Example 2 of coloring by the coloring drawing preparation apparatus. 三次元的な着色の原理を説明するための図面である。It is drawing for demonstrating the principle of three-dimensional coloring.

以下、添付の図面を参照して本発明の実施形態を説明する。同一の要素には同一の符号を付し、重複する説明は省略する。   Embodiments of the present invention will be described below with reference to the accompanying drawings. The same reference numerals are assigned to the same elements, and duplicate descriptions are omitted.

図1は、本発明に係る着色図面作成装置の一実施形態の機能ブロック図である。図2(a)は、図1に示した着色図面作成装置で着色すべき着色対象図面の一例を示す図面である。図2(b)は、図2(a)に示した着色対象図面の着色に用いる着色画像の一例を示す図面である。図2(c)は、図2(a)に示した着色対象図面の一部を着色した着色図面の一例を示す図面である。   FIG. 1 is a functional block diagram of an embodiment of a colored drawing creating apparatus according to the present invention. FIG. 2A is a drawing showing an example of a coloring object drawing to be colored by the coloring drawing creation apparatus shown in FIG. FIG. 2B is a drawing showing an example of a colored image used for coloring the coloring object drawing shown in FIG. FIG.2 (c) is drawing which shows an example of the coloring drawing which colored a part of coloring object drawing shown to Fig.2 (a).

着色図面作成装置10は、図2(a)〜図2(c)に示すように、輪郭線からなる着色対象図面30内の任意形状の着色対象領域31を、既に着色が施された他の着色画像32内の任意形状の着色領域33に基づいて着色することによって着色図面34を作成するための装置である。   As shown in FIGS. 2 (a) to 2 (c), the coloring drawing creation apparatus 10 is configured to add another colored object region 31 in an arbitrary shape in the coloring object drawing 30 formed of a contour line. It is an apparatus for creating a colored drawing 34 by coloring based on a colored region 33 having an arbitrary shape in the colored image 32.

図1に示すように、着色図面作成装置10は、機能的な構成要素として、ユーザからの各種指示を受け付ける入力部11、着色対象図面となるべき複数の図面の図面データ及び着色画像となるべき複数の画像の画像データを格納すると共に、アプリケーションソフトとしてのプログラムを格納する記憶部12、着色対象図面30に着色対象領域31を設定する着色対象領域設定部(着色対象領域設定手段)13、着色に使用する領域である着色領域33を着色画像32に設定する着色領域設定部(着色領域設定手段)14、着色領域33の形状を着色対象領域31の形状に変形する領域変形部(領域変形手段)15、変形された着色領域33を利用して着色対象領域31を着色する着色処理部(着色処理手段)16、着色対象領域31の着色状態を変更する着色状態変更部(着色状態変更手段)17、及び処理中又は処理結果の図面及び画像等をユーザに示すために表示する表示部18を有する。   As shown in FIG. 1, the colored drawing creating apparatus 10 should be an input unit 11 that receives various instructions from the user, drawing data of a plurality of drawings to be colored drawings, and colored images as functional components. A storage unit 12 that stores image data of a plurality of images and stores a program as application software, a coloring target region setting unit (coloring target region setting unit) 13 that sets a coloring target region 31 in the coloring target drawing 30, and coloring A coloring area setting unit (coloring area setting means) 14 for setting the coloring area 33 which is an area used for the coloring image 32, and an area changing part (area deformation means for changing the shape of the coloring area 33 into the shape of the coloring target area 31 15) A coloring processing unit (coloring processing means) 16 for coloring the coloring target region 31 using the modified coloring region 33, and coloring of the coloring target region 31 A display unit 18 for displaying colored state changing unit that changes the state (colored state changing means) 17, and the process or process result to the drawings and images or the like to indicate to the user.

着色対象領域設定部13は、記憶部12に格納されている図面のうちの一つを着色対象図面30として選択する旨のユーザからの指示を受け付けると、選択された着色対象図面30の図面データを記憶部12から抽出し、表示部18でユーザに表示する。更に、着色対象領域設定部13は、ユーザからの指示に基づいて着色対象図面30に着色対象領域31を設定する。この領域設定のために、着色対象領域設定部13は、領域分割部13Aと、領域選択部13Bとを含む。領域分割部13Aは、ユーザからの領域指定を受け付けて、その指定された領域を閉領域として分割する。領域選択部13Bは、その閉領域を着色対象領域31として選択する旨のユーザの指示を受け付けて、指定された閉領域を着色対象領域31として設定する。   When the coloring target area setting unit 13 receives an instruction from the user to select one of the drawings stored in the storage unit 12 as the coloring target drawing 30, the drawing data of the selected coloring target drawing 30 is displayed. Is extracted from the storage unit 12 and displayed on the display unit 18 to the user. Furthermore, the coloring target area setting unit 13 sets the coloring target area 31 in the coloring target drawing 30 based on an instruction from the user. For this region setting, the coloring target region setting unit 13 includes a region dividing unit 13A and a region selecting unit 13B. The area dividing unit 13A receives an area designation from the user and divides the designated area as a closed area. The region selection unit 13 </ b> B receives a user instruction to select the closed region as the coloring target region 31, and sets the designated closed region as the coloring target region 31.

着色領域設定部14は、記憶部12に格納されている着色済みの画像のうち一つを、着色画像32として選択する旨のユーザからの指示を受け付けると、選択された着色画像32の画像データを記憶部12から抽出し、表示部18でユーザに表示する。更に、着色領域設定部14は、ユーザからの指示に基づいて着色画像32に着色領域33を設定する。この領域設定のために、着色領域設定部14は、領域分割部14Aと、領域選択部14Bとを含む。領域分割部14Aは、ユーザからの着色領域33の指定を受け付け、その指定領域を閉領域として分割する。領域選択部14Bは、その閉領域を着色領域33として選択する旨のユーザの指示を受け付けて、指定された閉領域を着色領域33として設定する。   When the colored region setting unit 14 receives an instruction from the user to select one of the colored images stored in the storage unit 12 as the colored image 32, the image data of the selected colored image 32 is received. Is extracted from the storage unit 12 and displayed on the display unit 18 to the user. Furthermore, the coloring area setting unit 14 sets the coloring area 33 in the coloring image 32 based on an instruction from the user. For this region setting, the coloring region setting unit 14 includes a region dividing unit 14A and a region selecting unit 14B. The area dividing unit 14A receives designation of the coloring area 33 from the user, and divides the designated area as a closed area. The area selection unit 14 </ b> B receives a user instruction to select the closed area as the colored area 33 and sets the designated closed area as the colored area 33.

ここでは、着色対象領域設定部13及び着色領域設定部14がそれぞれ領域分割部13A,14A及び領域選択部13B,14Bを有するとしたが、共通の領域分割部及び領域選択部を有してもよい。この場合、着色対象領域設定部13及び着色領域設定部14が共通の領域分割部及び領域選択部を利用して領域設定する。また、着色対象領域設定部13及び着色領域設定部14は、入力部11を介してユーザからの指示を受け付ける。   Here, the coloring target region setting unit 13 and the coloring region setting unit 14 have the region dividing units 13A and 14A and the region selecting units 13B and 14B, respectively, but may have a common region dividing unit and a region selecting unit. Good. In this case, the coloring target region setting unit 13 and the coloring region setting unit 14 perform region setting using a common region dividing unit and region selecting unit. In addition, the coloring target area setting unit 13 and the coloring area setting unit 14 receive an instruction from the user via the input unit 11.

領域変形部15は、着色領域33の形状を着色対象領域31の形状に変形する。領域変形部15は、着色対象領域31と着色領域33とにパッチ網を生成するパッチ網生成部15Aと、パッチ網生成部15Aで生成されたパッチ網を利用して着色領域33の形状を着色対象領域31の形状に変形する変形処理部15Bとを有する。   The region deforming unit 15 deforms the shape of the coloring region 33 into the shape of the coloring target region 31. The area deformation unit 15 colors the shape of the coloring area 33 using the patch net generation unit 15A that generates a patch net in the coloring target area 31 and the coloring area 33, and the patch net generated by the patch net generation unit 15A. A deformation processing unit 15B that deforms into the shape of the target region 31.

パッチ網生成部15Aは、着色領域33にパッチ網40を生成すると共に、着色対象領域31にパッチ網40に対応する対応パッチ網50を生成する。このようなパッチ網は、例えば、次のようにして生成する。   The patch network generation unit 15 </ b> A generates a patch network 40 in the coloring region 33 and generates a corresponding patch network 50 corresponding to the patch network 40 in the coloring target region 31. Such a patch network is generated as follows, for example.

まず、着色画像32に複数のサンプル点42を配置して、着色画像32をドロネー分割する。この際、パッチ網生成部15Aは、着色領域33の外縁線(境界線)である周縁33a上にサンプル点42を配置しておく。次に、パッチ網生成部15Aが、閉領域である着色領域33の内側か否かを判定して、着色領域33の外側の三角形パッチ(多角形パッチ)41を除去し、パッチ網生成部15Aが、図3に示すように、着色領域33に三角形パッチ網であるパッチ網40を生成する。サンプル点42は、パッチ網40を構成する複数の三角形パッチ41の各頂点に対応する。よって、以下では、三角形パッチ41の各頂点を頂点42とも称す。   First, a plurality of sample points 42 are arranged on the colored image 32 and the colored image 32 is divided into Delaunay. At this time, the patch net generation unit 15 </ b> A arranges the sample points 42 on the peripheral edge 33 a that is the outer edge line (boundary line) of the coloring region 33. Next, the patch network generation unit 15A determines whether or not it is inside the colored region 33 that is a closed region, removes the triangular patch (polygonal patch) 41 outside the colored region 33, and then creates a patch network generation unit 15A. However, as shown in FIG. 3, a patch network 40 that is a triangular patch network is generated in the colored region 33. The sample point 42 corresponds to each vertex of the plurality of triangular patches 41 that constitute the patch network 40. Therefore, hereinafter, each vertex of the triangular patch 41 is also referred to as a vertex 42.

パッチ網生成部15Aは、着色領域33にパッチ網40を生成すると、各三角形パッチ41の頂点42に対応する対応点52を着色対象領域31に設定して着色対象領域31に対応パッチ網50を生成する。この対応パッチ網50の生成は、パッチ網40の生成方法と同様とすることができる。すなわち、配置した対応点52に基づいて、着色対象図面30をドロネー分割し、着色対象領域31の内外を判定して、着色対象領域31内にパッチ網50を生成する。   When the patch net generation unit 15A generates the patch net 40 in the coloring area 33, the corresponding point 52 corresponding to the vertex 42 of each triangular patch 41 is set in the coloring target area 31, and the corresponding patch net 50 is set in the coloring target area 31. Generate. The generation of the corresponding patch network 50 can be the same as the generation method of the patch network 40. That is, based on the corresponding points 52 arranged, Delaunay division of the coloring target drawing 30 is performed, the inside / outside of the coloring target region 31 is determined, and the patch net 50 is generated in the coloring target region 31.

図4(a)及び図4(b)は、パッチ網生成部15Aが生成するパッチ網40と対応パッチ網50との対応関係を示すための図面である。図4(a)中の角括弧内の番号は、説明の便宜のために付した各頂点42の頂点番号である。図4(b)中の角括弧内の番号は、各対応点52に対応する頂点42の頂点番号である。図4(a)に示した着色領域33は、説明のために模式的に円形としている。また、図4(b)は着色対象領域31の模式図である。図4(a)及ぶ図4(b)に示すように、着色対象領域31における対応点52において、隣接する対応点52,52にそれぞれ対応する頂点42,42の頂点番号の関係は、着色領域33における隣接する頂点42,42の頂点番号の関係と同じとなっている。   FIGS. 4A and 4B are diagrams for illustrating a correspondence relationship between the patch network 40 generated by the patch network generation unit 15 </ b> A and the corresponding patch network 50. The numbers in square brackets in FIG. 4 (a) are the vertex numbers of each vertex 42 given for convenience of explanation. The numbers in square brackets in FIG. 4B are the vertex numbers of the vertices 42 corresponding to the corresponding points 52. The colored region 33 shown in FIG. 4A is schematically circular for the sake of explanation. FIG. 4B is a schematic diagram of the coloring target region 31. As shown in FIG. 4A and FIG. 4B, in the corresponding points 52 in the coloring target region 31, the relationship between the vertex numbers of the vertices 42 and 42 corresponding to the adjacent corresponding points 52 and 52 is as follows. This is the same as the relationship between the vertex numbers of the adjacent vertices 42 and 42 in FIG.

変形処理部15Bは、パッチ網生成部15Aが、着色領域33にパッチ網40を形成し、着色対象領域31に対応点52を配置すると、三角形パッチ41の各頂点42と、着色対象領域31の対応点52との配置関係から複数の頂点42間及び複数の対応点52間の拡縮情報をそれぞれ抽出する。変形処理部15Bは、ワーピング(Warping)処理により、着色領域33を着色対象領域31の形状に変形する。   When the patch network generation unit 15A forms the patch network 40 in the coloring region 33 and places the corresponding points 52 in the coloring target region 31, the deformation processing unit 15B and each vertex 42 of the triangular patch 41 and the coloring target region 31 The enlargement / reduction information between the plurality of vertices 42 and between the plurality of corresponding points 52 is extracted from the arrangement relationship with the corresponding points 52. The deformation processing unit 15B deforms the colored region 33 into the shape of the coloring target region 31 by a warping process.

ここで、本実施形態のワーピング処理による形状変形の概念について説明する。本実施形態では、パッチ網生成部15Aで生成された各三角形パッチ41の各辺がバネで構成されているとしたバネモデルを採用している。そして、各辺に加わる力をf、バネののびをu及びバネ定数をkとして、各辺に対して成立する剛性方程式に基づいて、バネモデルの平衡状態を求めることで、各三角形パッチ41を、対応パッチ網50を構成するパッチ51(図4参照)の形状に変形する。バネ定数は、三角形パッチ41の剛性を表すことになるので、バネ定数を着色領域33内の位置に応じて調整することで、着色領域33の変形状態を調整することができる。例えば、着色領域33の内部側のバネ定数を周縁33a近傍のバネ定数より大きくすることで、着色領域33の内部側の変形を抑制し、周縁部の変形量が大きくなる。   Here, the concept of shape deformation by the warping process of the present embodiment will be described. In the present embodiment, a spring model is adopted in which each side of each triangular patch 41 generated by the patch network generation unit 15A is configured by a spring. Each triangular patch 41 is obtained by obtaining the equilibrium state of the spring model based on the stiffness equation established for each side, where f is the force applied to each side, u is the spring extension, and k is the spring constant. The shape of the patch 51 (see FIG. 4) constituting the corresponding patch network 50 is changed. Since the spring constant represents the rigidity of the triangular patch 41, the deformation state of the colored region 33 can be adjusted by adjusting the spring constant according to the position in the colored region 33. For example, by making the spring constant on the inner side of the colored region 33 larger than the spring constant in the vicinity of the peripheral edge 33a, the deformation on the inner side of the colored region 33 is suppressed, and the deformation amount of the peripheral portion is increased.

図5は、着色領域33のワーピング処理の前後の対応関係を示す図面である。図5における図5(a)は、処理前の着色領域33の一例を示しており、図4(a)の着色領域33の形状に対応する。図5(b)は、図5(a)に示した着色領域33を、図4(b)の着色対象領域31の形状に変形した図面である。図5(a)における頂点番号5−6−1で規定される三角形パッチ(図5(a)中のハッチング部)41が図5(b)の頂点番号5−6−1で規定されるパッチ(図5(b)中のハッチング部)に変形されていることになる。なお、上述したように三角形パッチ41をバネモデルで表すため、バネ定数等の関係上、変形後の三角形パッチ41の形状は、図5(b)に示すように部分的に若干湾曲した線を有する場合もある。   FIG. 5 is a diagram showing the correspondence before and after the warping process of the colored region 33. FIG. 5A in FIG. 5 shows an example of the colored region 33 before processing, and corresponds to the shape of the colored region 33 in FIG. FIG. 5B is a diagram in which the colored region 33 shown in FIG. 5A is transformed into the shape of the coloring target region 31 in FIG. 4B. A patch (hatched portion in FIG. 5A) 41 defined by a vertex number 5-6-1 in FIG. 5A is a patch defined by a vertex number 5-6-1 in FIG. 5B. (The hatched portion in FIG. 5B) is deformed. Since the triangular patch 41 is represented by a spring model as described above, the deformed triangular patch 41 has a partially curved line as shown in FIG. 5B due to the spring constant and the like. In some cases.

図1に戻って、図面作成装置10の構成について更に説明する。着色処理部16は、変形処理部15Bで変形した三角形パッチ41に、元の三角形パッチ41のテクスチャをマッピングし、変形された着色領域33を着色対象領域31に貼付する貼付画像とし、この貼付画像を着色対象領域31に貼り付けることで、着色対象領域31に着色を施す。   Returning to FIG. 1, the configuration of the drawing creation apparatus 10 will be further described. The coloring processing unit 16 maps the texture of the original triangular patch 41 to the triangular patch 41 deformed by the deformation processing unit 15B, and uses the deformed colored region 33 as a pasted image to be pasted on the coloring target region 31. Is attached to the coloring target region 31, thereby coloring the coloring target region 31.

変形前の三角形パッチ41と、変形後のパッチとの間のテクスチャマッピングにおいて、画素のマッチング処理を実施する。この際、着色画像32の画素情報を線形補間して得られる計算結果に基づいて変形後のパッチに含まれる各画素に対応する画素情報を適宜取得する。また、着色処理部16は、着色対象領域31の周縁31aに対して内外で色彩の急激な変化を抑制するための、境界領域にぼかし処理等によるなじませ処理を施す機能を有してもよい。   Pixel matching processing is performed in texture mapping between the triangular patch 41 before deformation and the patch after deformation. At this time, pixel information corresponding to each pixel included in the patch after deformation is appropriately acquired based on a calculation result obtained by linear interpolation of the pixel information of the colored image 32. In addition, the coloring processing unit 16 may have a function of performing a blending process such as a blurring process on the boundary region in order to suppress a sudden change in color inside and outside the peripheral edge 31a of the coloring target region 31. .

着色状態変更部17は、着色対象領域31に対して着色領域33を回転させる。着色状態変更部17は、変形処理部15Bにおいて、設定した三角形パッチ41の周縁33a上の頂点42と、対応パッチ網50の周縁50a上の対応点52との対応関係を、ユーザから入力される回転角情報に基づいて変更することで、着色対象領域31に対して着色領域33を回転させる。   The coloring state changing unit 17 rotates the coloring region 33 with respect to the coloring target region 31. The coloring state changing unit 17 receives, from the user, the correspondence between the vertexes 42 on the peripheral edge 33a of the set triangular patch 41 and the corresponding points 52 on the peripheral edge 50a of the corresponding patch network 50 in the deformation processing unit 15B. By changing the rotation angle information based on the rotation angle information, the coloring region 33 is rotated with respect to the coloring target region 31.

図6は、表示部18が表示する作業ウィンドウの一例を示す模式図である。図6に示すように作業ウィンドウ60は、着色作業のために着色対象図面30や着色画像32等の作業対象を表示する作業対象表示領域61と、作業のための領域指定ツールやブラシ等の各種ツールを選択するためのツール選択領域62と、作業ウィンドウ60上部のメニューバーの機能を利用して記憶部12から選択した着色対象図面30や着色画像32等の一覧を表示すると共に、それらを適宜アクティブにするために選択可能な作業対象選択領域63と、着色状態を変更するための状態変更指示領域64と、アクティブな作業対象をサムネイル表示するためのサムネイル領域65と、を有する。作業対象選択領域63は、着色対象図面30や着色画像32等の記憶部12からの選択機能を有してもよい。また、サムネイル領域65は、ブラシ機能などを一覧表示すると共に、選択可能な表示画面に切り替えることも可能となっている。   FIG. 6 is a schematic diagram illustrating an example of a work window displayed on the display unit 18. As shown in FIG. 6, the work window 60 includes a work object display area 61 for displaying work objects such as the coloring object drawing 30 and the coloring image 32 for coloring work, and various kinds of work area designation tools, brushes, and the like. The tool selection area 62 for selecting a tool and a menu bar at the top of the work window 60 are used to display a list of the coloring target drawing 30 and the coloring image 32 selected from the storage unit 12, and appropriately display them. A work target selection area 63 that can be selected for activation, a state change instruction area 64 for changing a coloring state, and a thumbnail area 65 for displaying an active work target as a thumbnail are provided. The work target selection area 63 may have a selection function from the storage unit 12 such as the coloring target drawing 30 and the coloring image 32. The thumbnail area 65 displays a list of brush functions and the like, and can be switched to a selectable display screen.

ユーザは、作業対象選択領域63を利用して作業対象としての着色対象図面30等を選択すると、選択された図面又は画像が作業対象表示領域61に表示され、アクティブ状態となる。これにより、作業対象表示領域61に表示された着色対象図面30や着色画像32に領域指定等のためのツールを利用してユーザは、領域指定などが実施可能となっている。また、状態変更指示領域64に示された回転角を変更するための回転角指定部などを利用して着色状態を変更するための回転角の入力等が可能となっている。図6では、一つの作業ウィンドウに上記領域が表示されているとしたが、機能選択メニュー等により、適宜別ウィンドウやツールバーを表示するようにしてもよい。   When the user selects the coloring target drawing 30 or the like as the work target using the work target selection area 63, the selected drawing or image is displayed in the work target display area 61 and becomes active. As a result, the user can perform area designation using a tool for area designation on the coloring object drawing 30 or the colored image 32 displayed in the work object display area 61. In addition, it is possible to input a rotation angle for changing the coloring state by using a rotation angle designation unit for changing the rotation angle shown in the state change instruction area 64. In FIG. 6, it is assumed that the above-mentioned area is displayed in one work window. However, another window or a toolbar may be appropriately displayed by a function selection menu or the like.

図7は、図1に示した着色図面作成装置の一実施形態のハードウェアの構成を示すブロック図である。着色図面作成装置10は、いわゆるコンピュータ装置であり、物理的な構成要素として、マウスやキーボードといった入力デバイスを有する入力部11、各種データやアプリケーションソフトを記憶する記憶部12及びディスプレイといった表示部18と共に、処理結果を出力するプリンタ19、論理演算を処理するCPU20、論理演算に必要なデータやプログラム等を一時的に記憶するRAM21、論理演算を実行するためのプログラム等を記憶するROM22、CD−ROMやDVDといった各種コンピュータ読取り可能記録媒体を読み取る記録媒体読取り部23及びデータの通信機能を有する通信部24を備えている。これらの各構成要素は、送受信用のバス25で接続されており、データの送受信が行われるようになっている。また、各種図面データや画像データは、記録媒体読取り部23又は通信部24を利用して着色図面作成装置10に入力可能となっている。図1を利用して説明した着色図面作成装置10の各機能は、コンピュータにアプリケーションソフトとしてインストールされた着色図面作成プログラム80を作動させて実現される。   FIG. 7 is a block diagram showing a hardware configuration of an embodiment of the coloring drawing creation apparatus shown in FIG. The coloring drawing creation device 10 is a so-called computer device, and includes, as physical components, an input unit 11 having an input device such as a mouse and a keyboard, a storage unit 12 for storing various data and application software, and a display unit 18 such as a display. A printer 19 that outputs processing results, a CPU 20 that processes logical operations, a RAM 21 that temporarily stores data and programs necessary for logical operations, a ROM 22 that stores programs and the like for executing logical operations, and a CD-ROM A recording medium reading unit 23 for reading various computer-readable recording media such as DVD and DVD, and a communication unit 24 having a data communication function. Each of these components is connected by a transmission / reception bus 25 so that data can be transmitted and received. Various drawing data and image data can be input to the colored drawing creating apparatus 10 using the recording medium reading unit 23 or the communication unit 24. Each function of the colored drawing creating apparatus 10 described with reference to FIG. 1 is realized by operating a colored drawing creating program 80 installed as application software in a computer.

次に、図8を参照して、着色図面作成装置10を利用した着色図面の作成方法について説明する。図8は、着色図面作成装置10における着色図面作成方法のフローチャートを示す図面である。   Next, with reference to FIG. 8, the coloring drawing creation method using the coloring drawing creation apparatus 10 will be described. FIG. 8 is a diagram showing a flowchart of a colored drawing creation method in the colored drawing creation apparatus 10.

まず、着色図面作成装置10は、着色対象図面30に着色対象領域31を設定する着色対象領域設定ステップS10として、着色対象図面の表示ステップS11、領域分割ステップS12及び領域選択ステップS13を実施する。具体的には、ユーザによる着色対象図面30の選択指示に基づいて、着色対象領域設定部13が、記憶部12に格納されている図面データから、選択された着色対象図面30を選択し、表示部18に表示する(表示ステップS11)。次いで、着色対象領域設定部13は、着色対象図面30に対するユーザからの領域指定の指示に基づいて、指定された領域を閉領域に分割する(領域分割ステップS12)。更に、着色対象領域設定部13は、ユーザからの閉領域の選択指示に基づいて、指定された閉領域を選択して、着色対象領域31として設定する(領域選択ステップS13)。   First, the coloring drawing creating apparatus 10 performs a coloring target drawing display step S11, a region dividing step S12, and a region selecting step S13 as a coloring target region setting step S10 for setting the coloring target region 31 in the coloring target drawing 30. Specifically, based on a user's selection instruction for the coloring target drawing 30, the coloring target region setting unit 13 selects and displays the selected coloring target drawing 30 from the drawing data stored in the storage unit 12. It displays on the part 18 (display step S11). Next, the coloring target area setting unit 13 divides the specified area into closed areas based on an instruction for specifying the area from the user with respect to the coloring target drawing 30 (area dividing step S12). Further, the coloring target area setting unit 13 selects the designated closed area based on the selection instruction of the closed area from the user, and sets it as the coloring target area 31 (area selection step S13).

次に、着色図面作成装置10は、着色画像32に着色領域33を設定する着色領域設定ステップS20として、着色画像32の表示ステップS21、領域分割ステップS22及び領域選択ステップS23を実施する。具体的には、着色領域設定部14が、ユーザによる着色画像32の選択を受け付けると、記憶部12に格納されている画像データに基づいて、着色画像32を表示部18に表示する(表示ステップS21)。着色領域設定部14が、ユーザからの領域指定の指示に基づいて、指定された領域を閉領域に分割する(領域分割ステップS22)。次いで、着色領域設定部14は、ユーザからの閉領域の選択指示に基づいて、指定された閉領域を選択して、着色領域33として設定する(領域選択ステップS23)。   Next, the colored drawing creating apparatus 10 performs a display step S21 of the colored image 32, a region dividing step S22, and a region selecting step S23 as a colored region setting step S20 for setting the colored region 33 in the colored image 32. Specifically, when the coloring area setting unit 14 accepts the selection of the coloring image 32 by the user, the coloring image 32 is displayed on the display unit 18 based on the image data stored in the storage unit 12 (display step). S21). The coloring area setting unit 14 divides the designated area into closed areas based on an area designation instruction from the user (area division step S22). Next, the colored area setting unit 14 selects the designated closed area based on the selection instruction of the closed area from the user, and sets it as the colored area 33 (area selection step S23).

着色領域設定部14が着色領域33を設定すると、着色図面作成装置10は、領域変形ステップS30として、パッチ網生成ステップS31及び変形処理ステップS32を実施する。具体的には、領域変形部S15が、着色領域33に対してパッチ網40を生成すると共に、三角形パッチ41の頂点42に対応する対応点52を着色対象領域31に設定し、対応パッチ網50を形成する(パッチ網生成ステップS31)。次いで、領域変形部14は、ワーピング処理により、着色領域33の形状を、着色対象領域31の形状に変形する(変形処理ステップS32)。   When the coloring area setting unit 14 sets the coloring area 33, the coloring drawing creation apparatus 10 performs a patch network generation step S31 and a deformation processing step S32 as the area deformation step S30. Specifically, the region deforming unit S15 generates the patch network 40 for the colored region 33, sets the corresponding point 52 corresponding to the vertex 42 of the triangular patch 41 in the coloring target region 31, and sets the corresponding patch network 50. (Patch network generation step S31). Next, the region deforming unit 14 deforms the shape of the colored region 33 into the shape of the coloring target region 31 by a warping process (deformation processing step S32).

続いて、着色図面作成装置10は、着色処理ステップS40を実施する。すなわち、着色処理部16が、変形された着色領域33の各パッチにテクスチャを貼り付けて、貼付画像とした後、その貼付画像を着色対象領域31に貼り付けることで、着色対象領域31を着色する。この際、着色処理部16は、着色対象領域31の境界近傍において、ぼかし処理などを実施してもよい。   Subsequently, the colored drawing creating apparatus 10 performs a coloring process step S40. That is, the coloring processing unit 16 applies a texture to each patch of the colored region 33 that has been deformed to form a pasted image, and then pastes the pasted image to the target color region 31 to color the target color region 31. To do. At this time, the coloring processing unit 16 may perform blurring processing or the like near the boundary of the coloring target region 31.

その後、着色図面作成装置10は、着色状態変更部17が、ユーザからの回転角の入力を受け付けると(S50でYES)、着色状態変更ステップS51を実施する。すなわち、着色状態変更部17が、着色領域33の周縁33a上の頂点42と、それに対応する着色対象領域31の周縁31a上の対応点52との対応関係を、入力された回転角に応じて変更する。変更後、変形処理ステップS32に戻り、着色を実施する。図8に示すように、着色処理ステップS40の後に、ユーザからの回転角の入力を受け付けなければ(S50でNO)、着色作業を終了する。   Thereafter, when the coloring state changing unit 17 receives an input of the rotation angle from the user (YES in S50), the coloring drawing creating apparatus 10 performs the coloring state changing step S51. That is, the coloring state changing unit 17 determines the correspondence between the vertex 42 on the periphery 33a of the coloring region 33 and the corresponding point 52 on the periphery 31a of the coloring target region 31 according to the input rotation angle. change. After the change, the process returns to the deformation process step S32 to perform coloring. As shown in FIG. 8, after the coloring process step S40, if the input of the rotation angle from the user is not accepted (NO in S50), the coloring work is ended.

本実施形態の着色図面作成装置10を用いた図面の着色方法では、ユーザが、着色対象図面30中に、任意の閉領域を着色対象領域31として設定することができると共に、着色画像32から着色対象領域31の着色に使用したい所望の領域を着色領域33として任意に設定することができる。そして、上記2つの領域を設定すると、着色図面作成装置10は、着色領域33の形状を着色対象領域31の形状に自動的に変形し、テクスチャマッピングにより得られた貼付画像が着色対象領域31に貼りつけられる。   In the drawing coloring method using the coloring drawing creation apparatus 10 of the present embodiment, the user can set an arbitrary closed region as the coloring target region 31 in the coloring target drawing 30 and color from the coloring image 32. A desired area desired to be used for coloring the target area 31 can be arbitrarily set as the colored area 33. When the above two areas are set, the coloring drawing creation apparatus 10 automatically transforms the shape of the coloring area 33 into the shape of the coloring target area 31, and the pasted image obtained by texture mapping is changed to the coloring target area 31. Can be pasted.

このように、ユーザが着色対象領域31及び着色領域33を選択することで、自動的に、任意形状の着色領域33を変形して任意形状の着色対象領域31に着色できるので、着色対象図面30の着色に要する時間を短縮することができる。また、着色領域33を着色対象領域31の形状に自動的に変形するため、着色画像32から所望の色調や質感の領域を任意に選択する可能である。その結果、着色図面を所望の色調や質感を有したものに短時間で仕上げやすい。   As described above, since the user selects the coloring target region 31 and the coloring region 33, the coloring region 33 having an arbitrary shape can be automatically deformed and colored to the coloring target region 31 having an arbitrary shape. The time required for coloring can be shortened. In addition, since the coloring area 33 is automatically deformed into the shape of the coloring target area 31, it is possible to arbitrarily select an area having a desired color tone and texture from the coloring image 32. As a result, it is easy to finish a colored drawing with a desired color tone and texture in a short time.

更に、例えば画家等に予め依頼して作成したもらった着色済みの画像を着色画像32として使用することで、画家等が使用している色使いなどを着色対象図面30の着色に適用することができる。そのため、ユーザ自身で新たに色使いなどを考慮して着色図面34を作成するよりも作業時間を大幅に短縮可能である。   Further, for example, by using a colored image that has been created by requesting a painter or the like in advance as the colored image 32, the color usage used by the painter or the like can be applied to the coloring of the coloring object drawing 30. it can. Therefore, it is possible to significantly reduce the work time as compared with the case where the user himself / herself newly creates the colored drawing 34 in consideration of color usage.

例えば、都市計画や、新築住宅又は住宅の改修の場合などの完成予想図などでは、水彩画風の作風を用いる場合がある。この場合、色調や質感などを新たに作り出すのは作業時間を要する一方、完成予想図などの提示を早急に求められることもある。これに対して、着色図面作成装置10では、着色対象領域30及び着色領域33を設定することで、自動的に、着色領域33の色調や質感を有した着色を施せるので、上記完成予想図などの作成作業を大幅に短縮できる。また、所望の色調などを実現できることも前述したとおりである。   For example, a watercolor-style style may be used in a city plan, a completed construction plan such as a new house or a renovation of a house, and the like. In this case, it takes work time to newly create a color tone, texture, and the like, but there is a case where presentation of a completed predicted drawing or the like is urgently required. On the other hand, in the coloring drawing creation apparatus 10, by setting the coloring target area 30 and the coloring area 33, the coloring area 33 can be automatically colored with the color tone and texture. The creation work can be greatly shortened. In addition, as described above, a desired color tone can be realized.

図9は、着色図面作成装置10による着色の実施例1を説明するための図面である。図9(a)は、着色画像32の一例を示す図面である。この着色画像32は、予め画家に依頼して作成してもらったものである。図9(b)は、着色対象図面30の一例を示す図面である。使用した着色対象図面30では、人物を輪郭線で表している。図9(c)は、図9(a)に使用されている色を利用して、図9(b)の着色対象図面30を着色した着色図面である。図9(a)〜図9(c)に示すように、着色画像32と着色対象図面30との大きさや形状が異なっていても、容易に着色が可能である。また、例えば、図9(b)の人物が持っているバック等に、図9(a)におけるブーツの色合いを適用するなどから理解されるように、着色画像32に含まれている色合いであれば、それらを利用して、着色対象図面30の任意の領域を着色可能である。   FIG. 9 is a diagram for explaining a coloring example 1 by the coloring drawing creation apparatus 10. FIG. 9A shows an example of the colored image 32. This colored image 32 was previously prepared by requesting the painter. FIG. 9B shows an example of the coloring object drawing 30. In the coloring object drawing 30 used, a person is represented by an outline. FIG. 9C is a coloring drawing in which the coloring object drawing 30 of FIG. 9B is colored using the colors used in FIG. 9A. As shown in FIGS. 9A to 9C, even if the color image 32 and the coloring object drawing 30 are different in size and shape, they can be easily colored. Further, for example, the color included in the colored image 32 may be understood from applying the color of the boot in FIG. 9A to the back of the person in FIG. 9B. For example, an arbitrary region of the coloring object drawing 30 can be colored using them.

図10は、着色図面作成装置10による着色の実施例2を説明するための図面である。図10(a)は、着色画像32の一例を示す図面である。この着色画像32は、実施例1の場合と同様に、予め画家に依頼して作成してもらったものである。図10(b)は、着色対象図面30の一例を示す図面である。図10(b)に示すように、車を輪郭線で表している。図10(c)は、図10(a)に使用されている色を利用して、図10(b)の着色対象図面30を着色した後の図面である。実施例1の場合と同様に、実施例2の場合においても、着色画像32と着色対象図面30との大きさや形状が異なっていても、容易に着色が可能である。   FIG. 10 is a view for explaining a coloring example 2 by the coloring drawing creating apparatus 10. FIG. 10A shows an example of the colored image 32. As in the case of the first embodiment, the colored image 32 is prepared by requesting a painter in advance. FIG. 10B shows an example of the coloring object drawing 30. As shown in FIG. 10B, the car is represented by a contour line. FIG. 10C is a diagram after the coloring object drawing 30 of FIG. 10B is colored using the colors used in FIG. 10A. Similarly to the case of the first embodiment, in the case of the second embodiment, even if the size and shape of the colored image 32 and the coloring object drawing 30 are different, the coloring can be easily performed.

また、着色図面作成装置10が、図1に示したように、着色状態変更部17を備えている場合には、着色した後に、着色領域33を着色対象領域31に対して回転させることができる。この場合、同じ着色領域33を使用して、異なった着色状態を実現することができる。例えば、着色領域33の周縁33a上にほぼ等間隔で360個のサンプル点42を配置しておけば、対応点52も着色対象領域31の周縁31a上に360個配置されることになる。よって、回転角1度につき、着色領域33の周縁33a上の頂点と、着色対象領域31の周縁33a上の対応点52との対応関係を一つずつずらすことで、一つの着色領域33を利用して360通りの着色状態を実現できる。その結果、着色のための素材の選択の幅が広がり、ユーザは、種々の色合いを容易に実現することができる。   In addition, as shown in FIG. 1, when the coloring drawing creation apparatus 10 includes the coloring state changing unit 17, the coloring region 33 can be rotated with respect to the coloring target region 31 after coloring. . In this case, different colored states can be realized using the same colored region 33. For example, if 360 sample points 42 are arranged at substantially equal intervals on the peripheral edge 33 a of the coloring region 33, 360 corresponding points 52 are also arranged on the peripheral edge 31 a of the coloring target region 31. Therefore, one colored area 33 is used by shifting the correspondence between the apex on the peripheral edge 33a of the colored area 33 and the corresponding point 52 on the peripheral edge 33a of the coloring target area 31 one by one for each rotation angle. Thus, 360 colored states can be realized. As a result, the range of selection of materials for coloring is widened, and the user can easily realize various shades.

以上、本発明の実施形態について説明したが、本発明は上記実施形態に限定されない。着色状態変更部17は着色領域33を回転させるとした。すなわち、着色状態変更部17は着色領域33を回転させる回転処理部として機能するとして説明した。   As mentioned above, although embodiment of this invention was described, this invention is not limited to the said embodiment. The coloring state changing unit 17 rotates the coloring region 33. That is, the coloring state changing unit 17 has been described as functioning as a rotation processing unit that rotates the coloring region 33.

しかしながら、着色状態変更部17は、上記回転機能に加えて又は回転機能の代わりに、着色領域33を拡大又は縮小する拡縮調整部としての機能を備えるとすることもできる。拡縮調整部は、ユーザの指示に基づいて、領域分割部14Aで分割された閉領域の大きさを拡大及び縮小する。例えば、最初にユーザにより指定された着色領域33の大きさが、着色対象領域31より大きい場合には、着色領域33の変形により、画素を間引く量が多くなる。この場合、例えば、拡縮調整部で、着色領域33を小さくすることで、画素の間引きが抑制されるので、着色画像32における着色領域33の色合いをより反映することができる。なお、着色領域33の色合いをより忠実に反映するために、例えば、着色領域33に等高線を設定しておき、ユーザからの指示に応じて、境界領域として等高線を適宜選択することで、着色領域33の大きさを変更することが可能である。   However, the coloring state changing unit 17 may have a function as an enlargement / reduction adjustment unit that enlarges or reduces the coloring region 33 in addition to the rotation function or instead of the rotation function. The enlargement / reduction adjustment unit enlarges / reduces the size of the closed region divided by the region division unit 14A based on a user instruction. For example, when the size of the coloring region 33 initially designated by the user is larger than the coloring target region 31, the amount of pixels to be thinned out increases due to the deformation of the coloring region 33. In this case, for example, by reducing the color region 33 by the enlargement / reduction adjustment unit, pixel thinning is suppressed, so that the color of the color region 33 in the color image 32 can be more reflected. In order to reflect the hue of the colored region 33 more faithfully, for example, a contour line is set in the colored region 33, and the contour region is appropriately selected as a boundary region according to an instruction from the user. It is possible to change the size of 33.

更に、上記実施形態では、二次元平面での着色について説明したが、着色対象領域30に対して任意の曲面情報を加味した三次元的な着色を実施する機能を図面作成装置10に付加することもできる。この三次元的な着色方法について説明する。任意の曲面情報の付加は、着色対象領域30に対して、着色領域33のパッチ網40に対応する対応パッチ網50を形成した後に実施する。  Furthermore, in the above-described embodiment, coloring on a two-dimensional plane has been described. However, a function for performing three-dimensional coloring with arbitrary curved surface information added to the coloring target region 30 is added to the drawing creating apparatus 10. You can also. This three-dimensional coloring method will be described. Arbitrary curved surface information is added after the corresponding patch network 50 corresponding to the patch network 40 of the coloring region 33 is formed for the coloring target region 30.

図11は、曲面情報を付加した三次元的な着色の原理を説明するための図面である。図11では、説明の便宜上、着色対象領域31内の対応点52を接続する線を、他の線と区別するために一点鎖線で示している。以下、曲面情報を付加した三次元的な着色の方法について説明する。   FIG. 11 is a diagram for explaining the principle of three-dimensional coloring to which curved surface information is added. In FIG. 11, for convenience of explanation, a line connecting corresponding points 52 in the coloring target region 31 is indicated by a one-dot chain line in order to distinguish from other lines. Hereinafter, a three-dimensional coloring method to which curved surface information is added will be described.

図11に示すように、着色対象領域31に任意形状の曲面90を重ね合わせる。そして、着色対象領域31の周縁31a上の対応点52の座標は維持しておく一方、着色対象領域31の内部の対応点52を曲面90上に投影する。対応点52が曲面90に投影された点を投影点53と称す。これにより、着色対象領域31の内部の対応点52に、指定した任意の曲面90の形状に応じた高さ情報が加えられ、着色対象領域31に形成されたパッチ網50を構成するパッチ51の座標が変換される。そして、着色対象領域31の周縁31a上の対応点52及び任意の曲面形状に投影された投影点53の位置情報に基づいて、着色領域33のワーピング処理を実施する。これにより、周縁31a上の対応点52と投影点53とにより形成されるパッチ網であって、パッチ網50を三次元的に拡張したパッチ網の形状に着色領域33を変形できる。なお、着色対象領域31の周縁31a上の対応点52と、曲面90上の投影点53とを接続する線は、曲面90の形状とは一致しないので、滑らかな曲面となるように曲線計算を適宜実施する。   As shown in FIG. 11, an arbitrarily shaped curved surface 90 is superimposed on the coloring target region 31. Then, while maintaining the coordinates of the corresponding point 52 on the peripheral edge 31 a of the coloring target region 31, the corresponding point 52 inside the coloring target region 31 is projected onto the curved surface 90. A point where the corresponding point 52 is projected onto the curved surface 90 is referred to as a projection point 53. Thereby, height information corresponding to the shape of the specified arbitrary curved surface 90 is added to the corresponding point 52 inside the coloring target region 31, and the patch 51 constituting the patch net 50 formed in the coloring target region 31 is added. Coordinates are converted. And the warping process of the coloring area | region 33 is implemented based on the positional information on the corresponding point 52 on the periphery 31a of the coloring object area | region 31, and the projection point 53 projected on arbitrary curved surface shapes. As a result, the colored region 33 can be deformed into a patch network formed by the corresponding points 52 and the projection points 53 on the peripheral edge 31a, in which the patch network 50 is expanded three-dimensionally. Since the line connecting the corresponding point 52 on the peripheral edge 31a of the coloring target region 31 and the projection point 53 on the curved surface 90 does not match the shape of the curved surface 90, the curve calculation is performed so as to be a smooth curved surface. Implement as appropriate.

ワーピング処理後の着色処理は、上記実施形態の場合と同様である。すなわち、ワーピング処理により、変形した三角形パッチ41に、元の三角形パッチ41のテクスチャをマッピングし、変形された着色領域33を、着色対象領域31に貼付する貼付画像とする。そして、この貼付画像を着色対象領域31に貼り付けることで、着色対象領域31に三次元的な着色を施す。これにより、着色対象領域31に曲面情報を付加した三次元的な着色が可能となる。   The coloring process after the warping process is the same as that in the above embodiment. That is, the texture of the original triangular patch 41 is mapped to the deformed triangular patch 41 by the warping process, and the deformed colored region 33 is used as a pasted image to be pasted on the coloring target region 31. Then, by pasting this pasted image on the coloring target region 31, the coloring target region 31 is colored three-dimensionally. Thereby, three-dimensional coloring in which curved surface information is added to the coloring target region 31 is possible.

図11では、曲面90を、平面を凸状に曲げたものを例示したが、曲面90の形状はこれに限定されず、例えば、球面状のものとすることも可能である。また、三次元的着色に使用する曲面90は、予め複数の曲面形状を用意していてもよいし、適宜、曲面90を表す式などで指定してもよい。   In FIG. 11, the curved surface 90 is illustrated by bending the plane into a convex shape, but the shape of the curved surface 90 is not limited to this, and may be a spherical shape, for example. In addition, the curved surface 90 used for three-dimensional coloring may have a plurality of curved surface shapes prepared in advance, or may be designated by an expression representing the curved surface 90 as appropriate.

図1に示した実施形態では、着色状態変更部17を備えるとして説明したが、着色状態変更部17は必ずしも備えていなくてもよい。   In the embodiment shown in FIG. 1, the coloring state changing unit 17 is described as being provided. However, the coloring state changing unit 17 is not necessarily provided.

また、領域変形部15において、パッチ網40を生成する際に、ドロネー分割を利用したが、パッチへの分割手法はドロネー分割に限らない。また、パッチの形状も三角形に限定されず、多角形のパッチであればよい。   In addition, the Delaunay division is used when the patch network 40 is generated in the area deforming unit 15, but the division method into patches is not limited to the Delaunay division. Further, the shape of the patch is not limited to a triangle, and may be a polygonal patch.

本発明は、各種図面に着色を施す場合に適用することができるが、例えば、開発・建設計画や、住居などの構造物の完成予想図の作成において、予め用意した輪郭線からなる設計図面に着色する場合に等に好適に適用することができる。また、服飾、玩具及び生活用品のイメージ図の作成や、各種デザインのシミュレーションにも適用することができる。   The present invention can be applied when coloring various drawings. For example, in the development / construction plan and the creation of a completed expected drawing of a structure such as a residence, the design drawing is made of a contour line prepared in advance. It can be suitably applied to coloring. It can also be applied to the creation of image diagrams of clothing, toys and household goods, and simulations of various designs.

10…着色図面作成装置、13…着色対象領域設定部(着色対象領域設定手段)、14…着色領域設定部(着色領域設定手段)、15A…パッチ網生成部、15B…変形処理部、16…着色処理部(着色処理手段)、17…着色状態変更部(着色状態変更手段)、30…着色対象図面、31…着色対象領域、32…着色画像、33…着色領域、33a…周縁、34…着色図面、40…パッチ網、41…三角形パッチ(多角形パッチ)、42…サンプル点,頂点、50…対応パッチ網(パッチ網)、50a…周縁、51…パッチ、52…対応点。   DESCRIPTION OF SYMBOLS 10 ... Coloring drawing production apparatus, 13 ... Coloring object area | region setting part (coloring object area | region setting means), 14 ... Coloring area setting part (coloring area setting means), 15A ... Patch net production | generation part, 15B ... Deformation processing part, 16 ... Coloring processing section (coloring processing means), 17 ... coloring state changing section (coloring state changing means), 30 ... coloring object drawing, 31 ... coloring object area, 32 ... colored image, 33 ... colored area, 33a ... peripheral edge, 34 ... Colored drawing, 40 ... patch network, 41 ... triangular patch (polygonal patch), 42 ... sample point, vertex, 50 ... corresponding patch network (patch network), 50a ... peripheral edge, 51 ... patch, 52 ... corresponding point.

Claims (6)

着色すべき着色対象領域を着色対象図面に閉領域として設定する着色対象領域設定手段と、
前記着色対象図面の着色に使用する着色領域を着色が施された着色画像に閉領域として設定する着色領域設定手段と、
前記着色領域の形状を前記着色対象領域の形状に変形する領域変形手段と、
変形された前記着色領域に基づいて前記着色対象領域に着色処理を行う着色処理手段と、
を備え、
前記領域変形手段は、
前記着色領域を複数の多角形パッチに分割すると共に、各前記多角形パッチの頂点に対する対応点を前記着色対象領域に配置して前記着色対象領域を複数のパッチに分割し、前記着色領域が有する前記多角形パッチを、対応する前記着色対象領域の前記パッチの形状に変形することによって、前記着色領域の形状を前記着色対象領域の形状に変形する、
ことを特徴とする着色図面作成装置。
A coloring target area setting means for setting a coloring target area to be colored as a closed area in the coloring target drawing;
A colored region setting means for setting a colored region used for coloring the drawing to be colored as a closed region in a colored image that has been colored;
A region deforming means for transforming the shape of the coloring region into the shape of the coloring target region;
A coloring processing means for performing a coloring process on the coloring target area based on the transformed colored area;
With
The region deformation means includes
The coloring area is divided into a plurality of polygon patches, and corresponding points for the vertices of the polygon patches are arranged in the coloring target area to divide the coloring target area into a plurality of patches, and the coloring area has Transforming the shape of the colored region into the shape of the coloring target region by transforming the polygonal patch into the shape of the patch of the corresponding coloring target region,
A coloring drawing creation apparatus characterized by the above.
前記着色領域の周縁上の前記多角形パッチの頂点と、前記着色対象領域の周縁上の前記対応点との対応関係を変更することによって、前記着色領域を前記着色対象領域に対して回転させる着色状態変更手段を更に備えることを特徴とする請求項1に記載の着色図面作成装置。   Coloring that rotates the coloring area with respect to the coloring target area by changing the correspondence between the vertex of the polygonal patch on the peripheral edge of the coloring area and the corresponding point on the peripheral edge of the coloring target area The colored drawing creating apparatus according to claim 1, further comprising a state changing unit. 着色対象領域設定手段、着色領域設定手段、領域変形手段及び着色処理手段を備える着色図面作成装置において着色図面を作成する方法であって、
前記着色対象領域設定手段が、着色される着色対象図面に、着色対象領域を閉領域として設定するステップと、
前記着色領域設定手段が、着色が施された画像に、前記着色対象図面の着色に使用する着色領域を設定するステップと、
前記領域変形手段が、前記着色領域を複数の多角形パッチに分割すると共に、各前記多角形パッチの頂点に対する対応点を前記着色対象領域に配置して前記着色対象領域を複数のパッチに分割し、前記着色領域が有する前記多角形パッチを、対応する前記着色対象領域の前記パッチの形状に変形することによって、前記着色領域の形状を前記着色対象領域の形状に変形するステップと、
前記着色処理手段が、変形された前記着色領域に基づいて前記着色対象領域を着色するステップと、
を備えることを特徴とする着色図面作成方法。
A method for creating a coloring drawing in a coloring drawing creation device comprising a coloring target area setting means, a coloring area setting means, an area transformation means and a coloring processing means,
The coloring target area setting means sets the coloring target area as a closed area in the coloring target drawing to be colored, and
The step of setting the coloring region to be used for coloring the drawing to be colored in the colored image by the coloring region setting means;
The area deforming means divides the coloring area into a plurality of polygonal patches and arranges corresponding points for the vertices of the polygonal patches in the coloring target area to divide the coloring target area into a plurality of patches. Transforming the shape of the coloring region into the shape of the coloring target region by transforming the polygonal patch of the coloring region into the shape of the patch of the corresponding coloring target region;
The coloring processing means coloring the coloring target area based on the transformed coloring area;
The coloring drawing creation method characterized by comprising.
前記着色領域の周縁上の前記多角形パッチの頂点と、前記着色対象領域の周縁上の前記対応点との対応関係を変更することによって、前記着色領域を前記着色対象領域に対して回転させるステップを更に備えることを特徴とする請求項1に記載の着色図面作成方法。   Rotating the coloring area with respect to the coloring target area by changing a correspondence relationship between the vertex of the polygonal patch on the peripheral edge of the coloring area and the corresponding point on the peripheral edge of the coloring target area. The coloring drawing creation method according to claim 1, further comprising: コンピュータを、
着色すべき着色対象領域を着色対象図面に閉領域として設定する着色対象領域設定手段、
前記着色対象図面の着色に使用する着色領域を着色が施された着色画像に閉領域として設定する着色領域設定手段、
前記着色領域の形状を前記着色対象領域の形状に変形する領域変形手段、及び
変形された前記着色領域に基づいて前記着色対象領域に着色処理を行う着色処理手段、
として機能させ、
前記領域変形手段は、
前記着色領域を複数の多角形パッチに分割すると共に、各前記多角形パッチの頂点に対する対応点を前記着色対象領域に配置して前記着色対象領域を複数のパッチに分割し、前記着色領域が有する前記多角形パッチを、対応する前記着色対象領域の前記パッチの形状に変形することによって、前記着色領域の形状を前記着色対象領域の形状に変形する、
ことを特徴とする着色図面作成プログラム。
Computer
A coloring target region setting means for setting a coloring target region to be colored as a closed region in the coloring target drawing;
A colored region setting means for setting a colored region used for coloring of the coloring object drawing as a closed region in a colored image that has been colored;
Area deformation means for transforming the shape of the coloring area into the shape of the coloring target area; and coloring processing means for performing a coloring process on the coloring target area based on the deformed coloring area;
Function as
The region deformation means includes
The coloring area is divided into a plurality of polygon patches, and corresponding points for the vertices of the polygon patches are arranged in the coloring target area to divide the coloring target area into a plurality of patches, and the coloring area has Transforming the shape of the colored region into the shape of the coloring target region by transforming the polygonal patch into the shape of the patch of the corresponding coloring target region,
A coloring drawing creation program characterized by that.
前記コンピュータを、前記着色領域の周縁上の前記多角形パッチの頂点と、前記着色対象領域の周縁上の前記対応点との対応関係を変更することによって、前記着色領域を前記着色対象領域に対して回転させる着色状態変更手段として機能せしめることを特徴とする請求項5に記載の着色図面作成プログラム。   The computer changes the correspondence between the vertex of the polygonal patch on the periphery of the coloring region and the corresponding point on the periphery of the coloring target region, thereby changing the coloring region to the coloring target region. 6. The coloring drawing creation program according to claim 5, wherein the coloring drawing creation program functions as coloring state changing means for rotating the coloring drawing.
JP2010085549A 2010-04-01 2010-04-01 Color drawing creation apparatus, color drawing creation method, and color drawing creation program Pending JP2011216027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010085549A JP2011216027A (en) 2010-04-01 2010-04-01 Color drawing creation apparatus, color drawing creation method, and color drawing creation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010085549A JP2011216027A (en) 2010-04-01 2010-04-01 Color drawing creation apparatus, color drawing creation method, and color drawing creation program

Publications (1)

Publication Number Publication Date
JP2011216027A true JP2011216027A (en) 2011-10-27

Family

ID=44945655

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010085549A Pending JP2011216027A (en) 2010-04-01 2010-04-01 Color drawing creation apparatus, color drawing creation method, and color drawing creation program

Country Status (1)

Country Link
JP (1) JP2011216027A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014071314A (en) * 2012-09-28 2014-04-21 Kubota Corp Component management device for work machine
WO2022180782A1 (en) * 2021-02-26 2022-09-01 日本電信電話株式会社 Information processing device, information processing method, and information processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014071314A (en) * 2012-09-28 2014-04-21 Kubota Corp Component management device for work machine
WO2022180782A1 (en) * 2021-02-26 2022-09-01 日本電信電話株式会社 Information processing device, information processing method, and information processing program

Similar Documents

Publication Publication Date Title
US10861232B2 (en) Generating a customized three-dimensional mesh from a scanned object
JP4203779B2 (en) Display element three-dimensional apparatus and method
JP4404650B2 (en) Makeup simulation device, makeup simulation method, makeup simulation program
JP5299173B2 (en) Image processing apparatus, image processing method, and program
US20130120383A1 (en) Methods and Apparatus for Deactivating Internal Constraint Curves when Inflating an N-Sided Patch
JP2022125297A (en) Line drawing automatic coloring program, line drawing automatic coloring apparatus, and program for graphical user interface
KR20090064239A (en) Method and system for texturing of 3d model in 2d environment
JP2019114176A (en) Information processing apparatus, information processing program, and information processing method
CN101606179A (en) The universal front end that is used for shade, selection and path
US11164343B1 (en) Synthesizing brush strokes based on user-defined strokes
JP2020521658A (en) Conversion of characteristic data to correct characteristic value shift
JP2011216027A (en) Color drawing creation apparatus, color drawing creation method, and color drawing creation program
JP6424329B2 (en) Image data processing method in image processing processor and program thereof
JP2006311080A (en) Texture image generation method, image processor, program, and recording medium
JP2000279228A (en) Rouge makeup simulation system
JP2007004293A (en) Image processor and method
KR20130088953A (en) Apparatus and method for image restoration, stereo-scopic image conversion apparatus and method usig that
JP4839760B2 (en) Image generation device, image generation method, etc.
JP4781443B2 (en) 3D shape figure creation device and 3D shape figure creation program
JP2020013390A (en) Information processing apparatus, information processing program, and information processing method
JP2017027193A (en) Image processing device, image processing method, and program
JP6696256B2 (en) Decoration simulation device, decoration simulation method, and program
CN112862929B (en) Method, device, equipment and readable storage medium for generating virtual target model
US11816797B1 (en) Rapid generation of three-dimensional characters
JP4904013B2 (en) Image generation program and image generation apparatus