JP2006311080A - Texture image generation method, image processor, program, and recording medium - Google Patents

Texture image generation method, image processor, program, and recording medium Download PDF

Info

Publication number
JP2006311080A
JP2006311080A JP2005129758A JP2005129758A JP2006311080A JP 2006311080 A JP2006311080 A JP 2006311080A JP 2005129758 A JP2005129758 A JP 2005129758A JP 2005129758 A JP2005129758 A JP 2005129758A JP 2006311080 A JP2006311080 A JP 2006311080A
Authority
JP
Japan
Prior art keywords
image
width
texture
texture image
partial
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
JP2005129758A
Other languages
Japanese (ja)
Inventor
Yoshitaka Maeda
賀隆 前田
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.)
DATABASE PROMOTION CENTER JAPAN
DATABASE PROMOTION CT JAPAN
Dai Nippon Printing Co Ltd
Original Assignee
DATABASE PROMOTION CENTER JAPAN
DATABASE PROMOTION CT JAPAN
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DATABASE PROMOTION CENTER JAPAN, DATABASE PROMOTION CT JAPAN, Dai Nippon Printing Co Ltd filed Critical DATABASE PROMOTION CENTER JAPAN
Priority to JP2005129758A priority Critical patent/JP2006311080A/en
Publication of JP2006311080A publication Critical patent/JP2006311080A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Image Generation (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a texture image generation method of generating, by repeating a prescribed pattern based on a partial image, a texture image where the ends of the partial images are smoothly connected to each other and of complementing the texture image, and to provide a device therefor etc. <P>SOLUTION: An input partial image is divided to generate a left divided image L and a right divided image R, a width tw of a texture image and an ideal overlap width D are set, and the number (n) of times of repetition of a composite partial image Q is calculated based upon the ideal overlap width D and the width Tw of the texture image. An actual overlap width C is calculated by using the width pw of a partial image P, the width tw of the texture image T, and the number (n) of times of repetition, the composite partial image Q is generated by using the left divided image L, right divided image R and the actual overlap width C and performing such overlap composition that the positions of divided images L and R are replaced with each other, and the composite partial image Q is arranged as many times as the number (n) of times of repetition to generate the texture image T, which is complemented. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、部分画像を用いて、所定のパターンを繰り返し、その端同士を滑らかに接続するテクスチャ画像を生成するテクスチャ画像生成方法、及び装置に関する。   The present invention relates to a texture image generation method and apparatus for generating a texture image that uses a partial image to repeat a predetermined pattern and smoothly connect ends thereof.

従来、3次元モデル表面に色や模様を表す画像を貼り付けて描画するテクスチャマッピングの手法は、3次元コンピュータグラフィックス(以下CG)画像の品質を向上させるための手法として極めて広く用いられている。テクスチャマッピングを用いて表現可能な3次元モデルの中には、例えば地面や布地などのように、表面の模様全体がある一部分の繰り返しによって成っていると見なせるものも多く存在する。このような繰り返しパターンを持った物体表面に対して任意の画像をそのまま繰り返し配置してテクスチャマッピングを施すと、色変化の様子などからの画像同士の接続部分が目立ち不自然な印象を受けることがある。   Conventionally, a texture mapping technique of drawing an image representing a color or pattern on the surface of a three-dimensional model is extremely widely used as a technique for improving the quality of a three-dimensional computer graphics (CG) image. . There are many 3D models that can be expressed using texture mapping, such as the ground and cloth, which can be regarded as being formed by repeating a part of the entire surface pattern. If an arbitrary image is repeatedly arranged on the object surface having such a repeating pattern and texture mapping is performed, the connected part of the images from the state of color change, etc. may receive a noticeable unnatural impression. is there.

このような現象を避ける方法として、単純な繰り返しでなく鏡像や複数画像の組み合わせを導入する方法(例えば、特許文献1、特許文献2参照)や、画像の端同士が滑らかに接続するようなテクスチャ画像を用いる方法(例えば、特許文献3、特許文献4参照)などがある。特に、後者のように滑らかに接続するテクスチャ画像が得られれば、その前提に基づいた様々な技術への応用が期待できる。
滑らかに接続するテクスチャ画像が得る方法として、与えられた画像内から周期性を持った部分を抽出する方法(例えば、特許文献5、特許文献6参照)や、コンピュータによる描画技術を応用したもの(例えば、特許文献7参照)などが考えられる。
As a method of avoiding such a phenomenon, a method of introducing a mirror image or a combination of a plurality of images instead of simple repetition (for example, see Patent Document 1 and Patent Document 2), or a texture that smoothly connects the edges of an image There are methods using images (see, for example, Patent Document 3 and Patent Document 4). In particular, if a texture image that is smoothly connected as in the latter case is obtained, application to various technologies based on the premise can be expected.
As a method of obtaining a smoothly connected texture image, a method of extracting a portion having periodicity from a given image (see, for example, Patent Document 5 and Patent Document 6), or an application of a computer drawing technique ( For example, see Patent Document 7).

特開平11−045347号公報Japanese Patent Laid-Open No. 11-045347 特開2002−342782号公報JP 2002-342882 A 特開2004−171168号公報JP 2004-171168 A 特開2000−076424号公報JP 2000-076424 A 特開平11−120380号公報JP-A-11-120380 特開平07−105401号公報Japanese Patent Application Laid-Open No. 07-105401 特開2002−216150号公報JP 2002-216150 A

しかしながら、従来技術の多くは、与えられた画像が全体として周期性を持つことを前提としており、そこから一周期分に相当する部分を抽出するための手法となっている。また、この前提に従い、それらの手法を使って抽出された部分画像は、それ自身をテクスチャ画像として対象形状に繰り返し貼り付けように想定されている。しかし、テクスチャ画像を生成するという課題全体の中には、このような暗黙の前提を利用した従来技術では適切に解決できないものも存在する。その一つに、以下のような条件を持つ課題がある。   However, many of the conventional techniques are based on the premise that a given image has a periodicity as a whole, and are methods for extracting a portion corresponding to one period from the image. Further, in accordance with this premise, it is assumed that the partial images extracted using these methods are repeatedly pasted on the target shape as a texture image. However, among the entire problems of generating texture images, there are some that cannot be solved properly by the conventional technology using such an implicit premise. One of them is a problem with the following conditions.

第1に、最終的に出力されるテクスチャ画像のサイズは、予め定まっており変更できないものとする。第2に、テクスチャ画像を生成するために利用できる部分画像は、そのサイズが最終的なテクスチャ画像よりも小さいという特徴しか持たないものとする。第3に、出力されるテクスチャ画像は、あるパターンが繰り返されることで成っており、且つ、テクスチャ画像全体として端同士が滑らかに接続できるものとする。ただし、テクスチャ画像の端の接続条件については、左右端同士と上下端同士の両方の接続が必要な場合もあれば、どちらか一方だけが接続できれば良い場合もある。   First, the size of the texture image that is finally output is determined in advance and cannot be changed. Secondly, it is assumed that the partial image that can be used to generate the texture image has only a feature that its size is smaller than the final texture image. Thirdly, it is assumed that the output texture image is formed by repeating a certain pattern, and the ends of the texture image as a whole can be smoothly connected. However, as for the connection condition of the edge of the texture image, there are cases where both the left and right ends and the upper and lower ends need to be connected, or only one of them can be connected.

このような条件を持つ問題が見られるケースとして、例えば、物体を撮影した写真データと、その物体の形状のみを表す3次元形状データと、撮影角度などのカメラ情報を用いて、3次元形状データ表面に割り当てるテクスチャ画像を写真データから抽出した際に、写真に写っていない部分に相当するテクスチャ画像上の無効領域を補完しようとする場合が挙げられる。
テクスチャ座標の割り当ておよびテクスチャ画像のサイズは、テクスチャ画像の抽出の段階で必要とされるため、抽出されたテクスチャ画像を補完しようとする時には既に決定されており変更できない。
また、3次元形状表面の模様は一般的には周期的パターンを為してはいないが、無効領域を補完するために敢えて周期的パターンの模様であるという仮定を用いることは特に不当ではない。このようにして抽出されたテクスチャ画像には周期性が認められないことが多いので、従来技術を用いた周期性を持つ部分画像の探索手法はあまり有効であるとは言えず、むしろテクスチャ画像の有効領域部分を出来るだけ広く使うような、より単純な手法が効果的であると考えられる。従って、無効領域の補完には、そのままでは周期性を満たしていない部分画像が用いられることになる。更に、補完のために周期性を仮定するような場合には特に、テクスチャ座標割り当て手法としてテクスチャ画像の端同士が接続するような方法が併せて利用されることが多い。
As a case where a problem with such a condition is seen, for example, three-dimensional shape data using photograph data obtained by photographing an object, three-dimensional shape data representing only the shape of the object, and camera information such as a photographing angle. When a texture image to be assigned to the surface is extracted from photo data, there is a case where an invalid area on the texture image corresponding to a portion not shown in the photo is to be complemented.
Since the assignment of texture coordinates and the size of the texture image are required at the stage of extracting the texture image, they are already determined when trying to complement the extracted texture image and cannot be changed.
In addition, the pattern on the surface of the three-dimensional shape is not generally a periodic pattern, but it is not particularly inappropriate to use the assumption that it is a pattern of a periodic pattern in order to complement the invalid area. In many cases, periodicity is not recognized in the texture image extracted in this way, so it cannot be said that the method for searching a partial image having periodicity using the conventional technique is very effective. A simpler method that uses the effective area as widely as possible is considered effective. Therefore, a partial image that does not satisfy the periodicity as it is is used for complementing the invalid area. Furthermore, especially when assuming periodicity for complementation, a method of connecting edges of texture images is often used as a texture coordinate assignment method.

本発明は、以上の点に鑑みてなされたものであり、部分画像を基に、所定のパターンを繰り返し、その端同士を滑らかに接続するテクスチャ画像を生成、補完するテクスチャ画像生成方法およびその装置等を提供することを目的とする。   The present invention has been made in view of the above points, and a texture image generation method and apparatus for generating and complementing a texture image that repeats a predetermined pattern and smoothly connects ends thereof based on a partial image. The purpose is to provide.

前述した目的を達成するために第1の発明は、部分画像を基に、所定のパターンを繰り返し、その端同士を滑らかに接続するテクスチャ画像を生成するテクスチャ画像生成方法であって、生成するテクスチャ画像のサイズと、前記テクスチャ画像のサイズより小さい部分画像と、を設定する条件設定工程と、前記部分画像を適宜2つに分割し、分割画像を生成する画像分割工程と、前記分割画像の幅より小さい、実際の重ね合わせ幅を求めるための基準となる理想の重ね合わせ幅を設定する重ね合わせ理想値設定工程と、前記理想の重ね合わせ幅と、前記テクスチャ画像のサイズと、前記部分画像の幅とを基に、合成部分画像の繰り返し回数を計算する繰り返し回数計算工程と、前記部分画像の幅と、前記テクスチャ画像の幅と、前記繰り返し回数を用いて、実際の重ね合わせ幅を計算する重ね合わせ現実値計算工程と、前記分割画像と実際の重ね合わせ幅を用いて、前記分割画像の重ね合わせ合成を行い、合成部分画像を生成する重ね合わせ合成工程と、前記合成部分画像を、前記繰り返し回数分並べて配置しテクスチャ画像を生成する画像繰り返し配置工程と、を具備することを特徴とするテクスチャ画像生成方法ある。   In order to achieve the above-described object, the first invention is a texture image generation method for generating a texture image that repeats a predetermined pattern based on a partial image and smoothly connects the ends thereof, and generates the texture. A condition setting step for setting the size of the image and a partial image smaller than the size of the texture image, an image division step for appropriately dividing the partial image into two to generate a divided image, and the width of the divided image A superimposing ideal value setting step for setting an ideal superimposing width as a reference for obtaining a smaller actual superimposing width, the ideal superimposing width, the size of the texture image, and the partial image Based on the width, the repetition number calculation step of calculating the repetition number of the composite partial image, the width of the partial image, the width of the texture image, and the repetition Using the number of times, a superposition actual value calculation step of calculating an actual superposition width, and superimposing and synthesizing the subdivision image using the subdivision image and the real superposition width to generate a composite partial image There is provided a texture image generation method comprising: an overlay synthesis step; and an image repetition arrangement step in which the synthesized partial images are arranged and arranged by the number of repetitions to generate a texture image.

また、前記画像重ね合わせ合成工程は、分割された前記分割画像を入れ替えて重ね合わせ合成することが望ましい。
また、前記テクスチャ画像の横方向の成分に対する処理工程と、縦方向の成分に対する処理工程を組み合わせて行うことが望ましい。
In the image overlay synthesis step, it is desirable that the divided divided images are replaced and synthesized.
In addition, it is desirable to perform a combination of processing steps for the horizontal component of the texture image and processing steps for the vertical component.

第1の発明によるテクスチャ画像生成方法は、生成するテクスチャ画像のサイズとテクスチャ画像のサイズより小さい部分画像とを設定し、部分画像を適宜2つに分割し分割画像を生成する。分割画像の幅より小さい実際の重ね合わせ幅を求めるための基準となる理想の重ね合わせ幅を設定し、理想の重ね合わせ幅と、テクスチャ画像の幅と、部分画像の幅とを基に、合成部分画像の繰り返し回数を計算し、部分画像の幅と、テクスチャ画像の幅と、繰り返し回数を用いて、実際の重ね合わせ幅を計算する。分割画像と実際の重ね合わせ幅を用いて、分割画像の重ね合わせ合成を行い、合成部分画像を生成し、合成部分画像を繰り返し回数分並べて配置しテクスチャ画像を生成する。   The texture image generation method according to the first invention sets the size of a texture image to be generated and a partial image smaller than the size of the texture image, and divides the partial image into two as appropriate to generate a divided image. Set the ideal overlay width that is the basis for finding the actual overlay width that is smaller than the width of the split image, and combine the ideal overlay width, texture image width, and partial image width. The number of repetitions of the partial image is calculated, and the actual overlap width is calculated using the width of the partial image, the width of the texture image, and the number of repetitions. Using the divided images and the actual overlapping width, the divided images are superimposed and combined to generate a combined partial image, and the combined partial images are arranged by the number of repetitions to generate a texture image.

「テクスチャ画像」は、物体の形状データに張り付ける(マッピングする)色や模様を表す画像データである。「形状データ」は3次元形状データであり、物体を構成する、頂点情報と、これらの頂点情報を用いて定義される面情報からなる。
「部分画像」は、テクスチャ画像の生成、補完に用いる、例えば写真データ等からサンプリング、抽出したテクスチャ画像であり、最終的に生成するテクスチャ画像のサイズより小さい任意のサイズの画像である。
「テクスチャ画像のサイズ」は、最終的に生成するテクスチャ画像の大きさ情報であり、テクスチャ画像の横方向の成分に対する横幅と、縦方向の成分に対する縦幅である、w画素(横方向)×h画素(縦方向)を有する。
「合成部分画像」は、部分画像を2分割した分割画像を入れ替えて、重ね合わせ合成した画像である。
「視点情報」とは、カメラの視点、注視点、上向きベクトル等の情報である。
The “texture image” is image data representing a color or pattern to be pasted (mapped) on the shape data of the object. “Shape data” is three-dimensional shape data, and consists of vertex information constituting the object and surface information defined using these vertex information.
The “partial image” is a texture image used for generating and complementing a texture image, for example, sampled and extracted from photographic data or the like, and is an image having an arbitrary size smaller than the size of the finally generated texture image.
“Size of texture image” is the size information of the texture image to be finally generated. The width of the texture image in the horizontal direction component and the vertical width of the vertical component are w pixels (horizontal direction) × It has h pixels (vertical direction).
The “synthesized partial image” is an image obtained by superposing and combining the divided images obtained by dividing the partial image into two.
“Viewpoint information” is information such as a camera viewpoint, a gazing point, and an upward vector.

第1の発明では、一定のパターンが繰り返されており、且つその端同士が滑らかに接続している、予め定められた大きさのテクスチャ画像を、その大きさよりも小さな任意の大きさの部分画像を用いて補完、生成するテクスチャ画像生成手法を提供可能とする。
画像重ね合わせ合成処理は繰り返し回数に依存せず、アルゴリズム全体で1度しか実行されないため、重ね合わせ後に行われる合成処理として比較的処理負荷の高い技術を用いても、アルゴリズム全体の処理時間にあまり影響を与えず、高速な処理が実現できる。
In the first invention, a texture image having a predetermined size, in which a certain pattern is repeated and ends thereof are smoothly connected, is a partial image having an arbitrary size smaller than the size. It is possible to provide a texture image generation method that complements and generates using.
Since the image overlay synthesis process does not depend on the number of repetitions and is executed only once for the entire algorithm, even if a relatively heavy processing load is used as the synthesis process performed after the overlay, the processing time of the entire algorithm is not much. High-speed processing can be realized without affecting.

第2の発明は、コンピュータからなる画像処理装置であって、生成するテクスチャ画像のサイズと、前記テクスチャ画像のサイズより小さい部分画像と、を取得する取得手段と、前記部分画像を基に、所定のパターンを繰り返し、その端同士が滑らかに接続する前記テクスチャ画像のサイズのテクスチャ画像を生成するテクスチャ画像生成手段と、生成したテクスチャ画像と、形状データと、入力した視点情報を基に、画像を生成する画像生成手段と、を備え、前記テクスチャ画像生成手段は、前記テクスチャ画像のサイズと、前記テクスチャ画像のサイズより小さい部分画像と、を設定する条件設定手段と、前記部分画像を適宜2つに分割し、分割画像を生成する画像分割手段と、前記分割画像の幅より小さい、実際の重ね合わせ幅を求めるための基準となる理想の重ね合わせ幅を設定する重ね合わせ理想値設定手段と、前記理想の重ね合わせ幅と、前記テクスチャ画像の幅と、前記部分画像の幅とを基に、合成部分画像の繰り返し回数を計算する繰り返し回数計算手段と、前記部分画像の幅と、前記テクスチャ画像の幅と、前記繰り返し回数を用いて、実際の重ね合わせ幅を計算する重ね合わせ現実値計算手段と、前記分割画像と実際の重ね合わせ幅を用いて、前記分割画像の重ね合わせ合成を行い、合成部分画像を生成する重ね合わせ合成手段と、前記合成部分画像を、前記繰り返し回数分並べて配置しテクスチャ画像を生成する画像繰り返し配置手段と、を具備することを特徴とする画像処理装置である。   A second invention is an image processing apparatus comprising a computer, wherein an acquisition means for acquiring a size of a texture image to be generated and a partial image smaller than the size of the texture image, and a predetermined value based on the partial image The texture image generation means for generating a texture image of the size of the texture image in which the edges are smoothly connected, the generated texture image, the shape data, and the input viewpoint information Image generating means for generating, the texture image generating means, condition setting means for setting the size of the texture image and a partial image smaller than the size of the texture image, and two of the partial images as appropriate. An image dividing means for generating a divided image and an actual overlapping width smaller than the width of the divided image. Based on the ideal overlap value setting means for setting an ideal overlap width serving as a reference for the above, the ideal overlap width, the width of the texture image, and the width of the partial image, A repetition number calculating means for calculating the number of repetitions, a superimposed real value calculating means for calculating an actual overlapping width using the width of the partial image, the width of the texture image, and the number of repetitions, and the division Using the image and the actual overlap width, overlay synthesis of the divided images is performed, and a superposition synthesis unit that generates a composite partial image and the composite partial image are arranged side by side for the number of repetitions to generate a texture image An image processing apparatus comprising: an image repetitive arrangement unit configured to perform image repetitive arrangement.

第2の発明は、第1の発明のテクスチャ画像生成方法を用いて生成したテクスチャ画像と、その形状データと、視点情報を基に、画像を生成する画像処理装置に関する発明である。   The second invention is an invention related to an image processing apparatus that generates an image based on a texture image generated using the texture image generation method of the first invention, its shape data, and viewpoint information.

第3の発明は、第1の発明のテクスチャ画像生成方法を実行させるプログラムである。
第4の発明は、コンピュータを第1の発明のテクスチャ画像生成方法を実行させるプログラムを記録した記録媒体である。
A third invention is a program for executing the texture image generation method of the first invention.
A fourth invention is a recording medium on which a program for causing a computer to execute the texture image generation method of the first invention is recorded.

第5の発明は、コンピュータを第2の発明の画像処理装置として機能させるプログラムである。
第6の発明は、コンピュータを第2の発明の画像処理装置として機能させるプログラムを記録した記録媒体である。
A fifth invention is a program for causing a computer to function as the image processing apparatus of the second invention.
A sixth invention is a recording medium on which a program for causing a computer to function as the image processing apparatus of the second invention is recorded.

上述のプログラムをCD−ROM等の記録媒体に保持させて流通させてもよいし、このプログラムを通信回線を介して送受することもできる。   The above-described program may be distributed by being stored in a recording medium such as a CD-ROM, or the program can be transmitted and received via a communication line.

本発明は、部分画像を基に、所定のパターンを繰り返し、その端同士を滑らかに接続するテクスチャ画像を生成、補完するテクスチャ画像生成方法およびその装置等を提供することができる。   The present invention can provide a texture image generation method and apparatus for generating and complementing a texture image in which a predetermined pattern is repeated based on a partial image and ends thereof are smoothly connected.

以下に、添付図面を参照しながら、本発明に係るテクスチャ画像生成方法、及びテクスチャ画像生成方法を実行するための画像処理装置等の好適な実施形態について詳細に説明する。なお、以下の説明および添付図面において、略同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略することにする。   Exemplary embodiments of a texture image generation method and an image processing apparatus for executing the texture image generation method according to the present invention will be described below in detail with reference to the accompanying drawings. In the following description and the accompanying drawings, the same reference numerals are given to components having substantially the same functional configuration, and redundant description is omitted.

最初に、図1を参照しながら、本発明によるテクスチャ画像生成方法を実行するための画像処理装置構成について説明する。図1は、本実施の形態に係る画像処理装置100の構成を示すブロック図である。   First, an image processing apparatus configuration for executing the texture image generation method according to the present invention will be described with reference to FIG. FIG. 1 is a block diagram showing a configuration of an image processing apparatus 100 according to the present embodiment.

図1は、画像処理装置の1例であり、図1に示すように、画像処理装置100は、パーソナルコンピュータ等により実現される。
画像処理装置100は、パラメタ入力手段101、部分画像取得手段102、テクスチャ画像生成手段103、画像描画手段104等を備える。
FIG. 1 shows an example of an image processing apparatus. As shown in FIG. 1, the image processing apparatus 100 is realized by a personal computer or the like.
The image processing apparatus 100 includes a parameter input unit 101, a partial image acquisition unit 102, a texture image generation unit 103, an image drawing unit 104, and the like.

パラメタ入力手段101は、マウスやキーボード等の入力部205よりパラメタの入力を行う。パラメタとしては、作成するテクスチャ画像サイズ10を設定する。また、部分画像に関する選択指示を行うことも可能になっている。尚、本実施の形態では、入力部205より入力し設定したが、自動的に計算し設定してもよい。   The parameter input unit 101 inputs parameters from an input unit 205 such as a mouse or a keyboard. As a parameter, the texture image size 10 to be created is set. It is also possible to give a selection instruction regarding a partial image. In this embodiment, the input unit 205 inputs and sets, but it may be automatically calculated and set.

部分画像取得手段102は、作成するテクスチャ画像Tの生成、補完に用いる、部分画像Pを取得する。   The partial image acquisition unit 102 acquires a partial image P used for generating and complementing the texture image T to be created.

テクスチャ画像生成手段103は、パラメタ入力手段101、部分画像取得手段102等により、取得したテクスチャ画像サイズ10、部分画像Pを用いて、所定のパターンを繰り返し、端同士が滑らかに接続された、指定サイズのテクスチャ画像Tを生成、補完する。   The texture image generating unit 103 repeats a predetermined pattern using the texture image size 10 and the partial image P acquired by the parameter input unit 101, the partial image acquiring unit 102, etc., and the edges are connected smoothly. A texture image T having a size is generated and complemented.

テクスチャ画像生成手段103は、条件設定部1000、画像分割部1001、重ね合わせ理想値設定部1002、繰り返し回数計算部1003、重ね合わせ現実値計算部1004、画像重ね合わせ合成部1005、画像繰り返し配置部1006等からなる。   The texture image generating unit 103 includes a condition setting unit 1000, an image dividing unit 1001, an overlapping ideal value setting unit 1002, a repetition number calculation unit 1003, an overlapping actual value calculation unit 1004, an image overlapping composition unit 1005, and an image repetition arrangement unit. 1006 etc.

条件設定部1000は、生成されるべきテクスチャ画像サイズ10と、テクスチャ画像の補完に用いる部分画像Pとを設定する。画像分割部1001、重ね合わせ理想値設定部1002、繰り返し回数計算部1003、重ね合わせ現実値計算部1004、画像重ね合わせ合成部1005、画像繰り返し配置部1006等の各処理部は、条件設定部1000によって、設定されたテクスチャ画像サイズ10、部分画像Pを自由に利用することができる。   The condition setting unit 1000 sets a texture image size 10 to be generated and a partial image P used for complementing the texture image. Each processing unit such as an image dividing unit 1001, an ideal superimposition value setting unit 1002, a repetition number calculation unit 1003, a superimposition actual value calculation unit 1004, an image superposition synthesis unit 1005, an image repetitive arrangement unit 1006, and the like is a condition setting unit 1000. Thus, the set texture image size 10 and partial image P can be freely used.

画像分割部1001は、部分画像Pを所定の分割比率により分割し、2つの分割画像を生成する。
重ね合わせ理想値設定部1002は、実際の重ね合わせ幅Cを求めるための基準となる理想の重ね合わせ幅Dを設定する。理想の重ね合わせ幅Dは、画像分割部1001で得られる分割画像のどちらの幅よりも小さいという条件を満たす範囲で、任意に設定すればよい。実施の形態に応じて、システムで固定値を用いてもよいし、画像の状況に合わせて動的に計算してもよい。理想の重ね合わせ幅Dは、繰り返し回数計算部1003で利用される。尚、理想の重ね合わせ幅Dについては、後述、詳しく説明する。
繰り返し回数計算部1003は、設定された理想の重ね合わせ幅Dと、テクスチャ画像サイズ10を用いて、合成部分画像Qの繰り返し回数nを計算する。
重ね合わせ現実値計算部1004は、部分画像Pのサイズと、テクスチャ画像サイズ10と、繰り返し回数nを用いて、実際の重ね合わせ幅Cを計算する。
画像重ね合わせ合成部1005は、分割画像と、実際の重ね合わせ幅Cを用いて、分割画像の重ね合わせ合成を行い、合成部分画像Qを作成する。
画像繰り返し配置部1006は、作成した合成部分画像Qを、繰り返し回数n分並べ配置したテクスチャ画像Tを生成、補完する。
The image dividing unit 1001 divides the partial image P with a predetermined division ratio to generate two divided images.
The ideal overlap value setting unit 1002 sets an ideal overlap width D that serves as a reference for obtaining the actual overlap width C. The ideal overlapping width D may be arbitrarily set within a range that satisfies the condition that it is smaller than either width of the divided image obtained by the image dividing unit 1001. Depending on the embodiment, a fixed value may be used in the system, or may be dynamically calculated according to the situation of the image. The ideal overlap width D is used by the repetition count calculation unit 1003. The ideal overlap width D will be described in detail later.
The repetition count calculation unit 1003 calculates the repetition count n of the combined partial image Q using the set ideal overlap width D and the texture image size 10.
The superposition actual value calculation unit 1004 calculates the actual superposition width C by using the size of the partial image P, the texture image size 10, and the number of repetitions n.
The image overlay synthesis unit 1005 performs overlay synthesis of the divided images using the divided images and the actual overlay width C, and creates a composite partial image Q.
The image repeating arrangement unit 1006 generates and complements a texture image T in which the created combined partial images Q are arranged and arranged n times.

画像描画手段104は、テクスチャ画像生成手段103により生成したテクスチャ画像Tを物体の形状データ32に貼り付け、視点情報、光源情報等を考慮して、画像をレンダリングし出力する。   The image drawing unit 104 pastes the texture image T generated by the texture image generation unit 103 on the shape data 32 of the object, and renders and outputs the image in consideration of viewpoint information, light source information, and the like.

次に、画像処理装置100のハードウェア構成を説明する。図2は、画像処理装置100のハードウェア構成図である。   Next, the hardware configuration of the image processing apparatus 100 will be described. FIG. 2 is a hardware configuration diagram of the image processing apparatus 100.

図2に示すように、画像処理装置100は、制御部201、記憶部202、メディア入出力部203、通信制御部204、入力部205、表示部206、印刷部207等が、システムバス209を介して接続されて構成される。   As shown in FIG. 2, the image processing apparatus 100 includes a control unit 201, a storage unit 202, a media input / output unit 203, a communication control unit 204, an input unit 205, a display unit 206, a printing unit 207, and the like. Connected and configured.

制御部201は、CPU(Central Processing Unit )、ROM(Read Only Memory )、RAM(Random Access Memory)等で構成される。   The control unit 201 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like.

CPUは、記憶部202、ROM、記録媒体等に格納されるプログラムをRAM上のワークメモリ領域に呼び出して実行し、システムバス209を介して接続された各装置を駆動制御し、画像処理装置100が行う後述する各種処理(図4、図5参照)を実現する。
ROMは、不揮発性メモリであり、コンピュータのブートプログラムやBIOS等のプログラム、データ等を恒久的に保持している。
RAMは、揮発性メモリであり、記憶部202、ROM、記録媒体等からロードしたプログラム、データ等を一時的に保持するとともに、制御部201が各種処理を行う為に使用するワークエリアを備える。
The CPU calls and executes a program stored in the storage unit 202, ROM, recording medium, or the like to a work memory area on the RAM, executes driving control of each device connected via the system bus 209, and the image processing apparatus 100. Implements various processes (see FIGS. 4 and 5) described later.
The ROM is a non-volatile memory and permanently holds a computer boot program, a program such as BIOS, data, and the like.
The RAM is a volatile memory, and temporarily stores a program, data, and the like loaded from the storage unit 202, ROM, recording medium, and the like, and includes a work area used by the control unit 201 for performing various processes.

記憶部202は、HDD(ハードディスクドライブ)であり、制御部201が実行するプログラム、プログラム実行に必要なデータ、OS(オペレーティングシステム)等が格納される。プログラムに関しては、OS(オペレーティングシステム)に相当する制御プログラム391や、本コンピュータを適用する画像処理装置100が行う後述の処理に相当するアプリケーションプログラム392等が格納されている。
これらの各プログラムコードは、制御部201により必要に応じて読み出されてRAMに移され、CPUに読み出されて各種の手段として実行される。
The storage unit 202 is an HDD (hard disk drive), and stores a program executed by the control unit 201, data necessary for program execution, an OS (operating system), and the like. As for programs, a control program 391 corresponding to an OS (operating system), an application program 392 corresponding to processing to be described later performed by the image processing apparatus 100 to which the present computer is applied, and the like are stored.
Each of these program codes is read by the control unit 201 as necessary, transferred to the RAM, read by the CPU, and executed as various means.

メディア入出力部203(ドライブ装置)は、データの入出力を行い、例えば、フロッピディスクドライブ、PDドライブ、CDドライブ(−ROM、−R、−RW等)、DVDドライブ(−ROM、−R、−RW等)、MOドライブ等のメディア入出力装置等を有する。   The media input / output unit 203 (drive device) performs data input / output, for example, floppy disk drive, PD drive, CD drive (-ROM, -R, -RW, etc.), DVD drive (-ROM, -R, etc.) -RW etc.) and media input / output devices such as MO drives.

通信制御部204は、通信制御装置、通信ポート等を有し、画像処理装置100とネットワーク109間の通信を媒介する通信インタフェースであり、ネットワーク109を介して、画像処理装置100と、他のコンピュータ間の通信制御を行う。   The communication control unit 204 includes a communication control device, a communication port, and the like, and is a communication interface that mediates communication between the image processing device 100 and the network 109. The image processing device 100 and other computers are connected via the network 109. Control communication between the two.

入力部205は、データの入力を行い、例えば、キーボード、マウス等のポインティングデバイス、テンキー等の入力装置を有する。
入力部205を介して、画像処理装置100に対して、操作指示、動作指示、データ入力等を行うことができる。
The input unit 205 inputs data and includes, for example, a keyboard, a pointing device such as a mouse, and an input device such as a numeric keypad.
An operation instruction, an operation instruction, data input, and the like can be performed on the image processing apparatus 100 via the input unit 205.

表示部206は、CRTモニタ、液晶パネル等のディスプレイ装置、ディスプレイ装置と連携してコンピュータのビデオ機能を実現するための論理回路等(ビデオアダプタ等)を有する。   The display unit 206 includes a display device such as a CRT monitor and a liquid crystal panel, and a logic circuit (such as a video adapter) for realizing a video function of the computer in cooperation with the display device.

印刷部207は、プリンタであり、生成した画像の印刷出力処理を行う。   A printing unit 207 is a printer and performs print output processing of the generated image.

システムバス209は、各装置間の制御信号、データ信号等の授受を媒介する経路である。   The system bus 209 is a path that mediates transmission / reception of control signals, data signals, and the like between the devices.

次に、図3を参照しながら、画像処理装置100の記憶部202が保持する情報について説明する。図3は、記憶部202が保持する情報を示す図である。   Next, information stored in the storage unit 202 of the image processing apparatus 100 will be described with reference to FIG. FIG. 3 is a diagram illustrating information stored in the storage unit 202.

記憶部202内には、複数の写真画像31、入出力情報41及び制御プログラム391、アプリケーションプログラム392等が格納されている。   A plurality of photographic images 31, input / output information 41, a control program 391, an application program 392, and the like are stored in the storage unit 202.

写真画像31は、2次元画像データであり、カメラ、デジタルカメラ等により撮影された物体(例えば陶磁器等)の写真データである。尚、本実施の形態では、写真画像を用いたが、これに限るわけではない。
入出力情報41は、テクスチャ画像サイズ10、部分画像P、テクスチャ画像T等である。
テクスチャ画像サイズ10は、テクスチャ画像生成手段103に入力する、生成するべきテクスチャ画像Tのサイズ情報であり、w画素(横方向)×h画素(縦方向)を有する。
部分画像Pは、テクスチャ画像生成手段103に入力する、テクスチャ画像Tの生成、補完に用いる、テクスチャ画像Tのサイズより任意に小さいサイズの部分画像である。
テクスチャ画像Tは、テクスチャ画像生成手段103により生成、出力されたテクスチャ画像である。
The photographic image 31 is two-dimensional image data, and is photographic data of an object (for example, ceramics) taken by a camera, a digital camera, or the like. In this embodiment, a photographic image is used. However, the present invention is not limited to this.
The input / output information 41 is a texture image size 10, a partial image P, a texture image T, and the like.
The texture image size 10 is size information of the texture image T to be generated, which is input to the texture image generation unit 103, and has w pixels (horizontal direction) × h pixels (vertical direction).
The partial image P is a partial image having a size arbitrarily smaller than the size of the texture image T used for generating and complementing the texture image T input to the texture image generating unit 103.
The texture image T is a texture image generated and output by the texture image generation unit 103.

制御プログラム391は、画像処理装置100であるコンピュータの各構成部分を駆動制御するプログラムであり、OS(オペレーティングシステム)に相当する。
アプリケーションプログラム392は、画像処理装置100が行う後述の処理(図4、図5参照)に相当する実行可能プログラムであり、パラメタ入力手段101、部分画像取得手段102、テクスチャ画像生成手段103、画像描画手段104等に該当するプログラムである。
The control program 391 is a program that drives and controls each component of the computer that is the image processing apparatus 100, and corresponds to an OS (operating system).
The application program 392 is an executable program corresponding to the later-described processing (see FIGS. 4 and 5) performed by the image processing apparatus 100, and includes parameter input means 101, partial image acquisition means 102, texture image generation means 103, image drawing. This is a program corresponding to the means 104 and the like.

次に、図4を参照しながら、画像処理装置100の処理動作について説明する。図4は、画像処理装置100の処理概要を示すフローチャートである。   Next, the processing operation of the image processing apparatus 100 will be described with reference to FIG. FIG. 4 is a flowchart showing an outline of processing of the image processing apparatus 100.

画像処理装置100の記憶部202には、アプリケーションプログラム392であるパラメタ入力手段101、部分画像取得手段102、テクスチャ画像生成手段103、画像描画手段104等に該当する実行プログラムがインストールされている。以下の画像処理装置100の処理は、この実行プログラムの制御に従って、画像処理装置100の制御部201によって行われる。   An execution program corresponding to the parameter input unit 101, the partial image acquisition unit 102, the texture image generation unit 103, the image drawing unit 104, and the like, which are application programs 392, is installed in the storage unit 202 of the image processing apparatus 100. The following processing of the image processing apparatus 100 is performed by the control unit 201 of the image processing apparatus 100 according to the control of the execution program.

画像処理装置100の制御部201は、マウスやキーボード等の入力部205よりパラメタの入力を行い、記憶部202に保持する(ステップS401)。パラメタとしては、作成するテクスチャ画像サイズ10を設定する。テクスチャ画像サイズ10は、生成するべきテクスチャ画像Tのサイズ情報であり、w画素(横方向)×h画素(縦方向)を有する。   The control unit 201 of the image processing apparatus 100 inputs parameters from the input unit 205 such as a mouse or a keyboard, and holds the parameters in the storage unit 202 (step S401). As a parameter, the texture image size 10 to be created is set. The texture image size 10 is size information of the texture image T to be generated, and has w pixels (horizontal direction) × h pixels (vertical direction).

制御部201は、部分画像Pを取得し、記憶部202に記憶する(ステップS402)。
例えば、予め、記憶部202に物体の2次元画像データである写真画像31を記憶しておき、選択した写真画像31から、その形状データを抽出する。写真画像31とその形状データ32を基に、テクスチャ画像をサンプリングし、最終的に生成するべきテクスチャ画像Tのサイズより任意に小さい部分画像Pを取得する。
The control unit 201 acquires the partial image P and stores it in the storage unit 202 (step S402).
For example, a photographic image 31 that is two-dimensional image data of an object is stored in advance in the storage unit 202, and shape data is extracted from the selected photographic image 31. A texture image is sampled based on the photographic image 31 and its shape data 32, and a partial image P arbitrarily smaller than the size of the texture image T to be finally generated is acquired.

尚、形状データ32の抽出方法については、コンピュータグラフィックスの分野において広く行われている事項であり、本発明で規定するところではない、例えば、特願2005−095040号には、回転体からなる物体(陶磁器等)を撮影することにより得られる1つの2次元画像に基づいて、回転体に固有の特性(3次元形状のいたるところに円が現れるという特性)を利用して、元の物体の3次元情報を復元する方法―入力した2次元画像と撮影条件の1つとして視点と投影面との距離を示す情報に基づいて、投影条件の決定し、物体像の片側側面の輪郭線を抽出し、3次元情報(形状データ)を作成すること―が示されている。
また、作成済みの形状データがあるのであれば、それを取り込んでも良い。
更に、本実施の形態では、写真画像31からテクスチャのサンプリングを行い、部分画像Pを抽出、取得したが、これに限るわけではない。例えば、作成済みのテクスチャ素材データを用いてもよい。
Note that the extraction method of the shape data 32 is a matter widely performed in the field of computer graphics, and is not defined in the present invention. For example, Japanese Patent Application No. 2005-095040 includes a rotating body. Based on one two-dimensional image obtained by photographing an object (ceramics, etc.), using the characteristic inherent to the rotating body (characteristic that a circle appears everywhere in the three-dimensional shape), Method of restoring 3D information-Based on the input 2D image and information indicating the distance between the viewpoint and the projection plane as one of the shooting conditions, the projection condition is determined and the contour line on one side of the object image is extracted. 3D information (shape data) is created.
If there is already created shape data, it may be taken in.
Furthermore, in the present embodiment, texture sampling is performed from the photographic image 31 and the partial image P is extracted and acquired. However, the present invention is not limited to this. For example, created texture material data may be used.

制御部201は、取得した部分画像Pを用いて、所定のパターンを繰り返し、端同士が滑らかに接続されたテクスチャ画像Tを生成、補完するテクスチャ画像生成処理を行う(ステップS403)。   The control unit 201 repeats a predetermined pattern using the acquired partial image P, and performs a texture image generation process for generating and complementing a texture image T in which ends are smoothly connected (step S403).

制御部201は、生成したテクスチャ画像Tを形状データ32に貼り付け、視点情報、光源情報を考慮して、画像を生成し、表示部206に表示する(ステップS404)。   The control unit 201 pastes the generated texture image T on the shape data 32, generates an image in consideration of viewpoint information and light source information, and displays the image on the display unit 206 (step S404).

次に、図5、図6を参照しながら、本出願の特徴点であるテクスチャ画像生成方法を実行するアルゴリズムであるステップS403のテクスチャ画像生成処理の処理手順を詳しく説明する。図5は、テクスチャ画像生成処理の処理手順を示すフローチャートである。図6は、テクスチャ画像の横方向の成分に対するテクスチャ画像生成を示す図である。   Next, the processing procedure of the texture image generation process in step S403, which is an algorithm for executing the texture image generation method that is a feature point of the present application, will be described in detail with reference to FIGS. FIG. 5 is a flowchart showing the processing procedure of the texture image generation processing. FIG. 6 is a diagram illustrating texture image generation for the horizontal component of the texture image.

以下のテクスチャ画像生成処理(ステップS403)は、テクスチャ画像Tの横方向の成分について処理を説明したものである。縦方向の成分についても同様な処理を行う。また、縦方向と横方向を組み合わせる際には、縦方向について処理した後に横方向について処理するか、その逆の順序で処理すればよい。   The following texture image generation process (step S403) explains the process for the horizontal component of the texture image T. Similar processing is performed for the vertical component. Further, when combining the vertical direction and the horizontal direction, the vertical direction may be processed and then the horizontal direction may be processed, or vice versa.

制御部201は、条件設定部1000部に相当する条件設定処理として、入出力情報41から生成するべきテクスチャ画像サイズ10の横方向の幅でテクスチャ幅twと、部分画像Pを設定する(ステップS501)。   As a condition setting process corresponding to the condition setting unit 1000, the control unit 201 sets the texture width tw and the partial image P with the horizontal width of the texture image size 10 to be generated from the input / output information 41 (step S501). ).

制御部201は、画像分割部1001に相当する画像分割処理として、条件設定部1000で設定された部分画像Pを左右に所定の分割比率で分割し、左分割画像Lと右分割画像Rを生成する(ステップS502)。分割比率に関しては、本出願におけるアルゴリズムの規定するところではないが、最も単純な場合では単に左右に2等分すればよい。また、左分割画像Lと右分割画像Rそれぞれの幅lwとrwは重ね合わせ理想値設定部1002で、左分割画像Lと右分割画像Rは画像重ね合わせ合成部1005で用いることから、必要に応じて分割比率を算出、設定してもよい。   As an image division process corresponding to the image dividing unit 1001, the control unit 201 divides the partial image P set by the condition setting unit 1000 left and right at a predetermined division ratio, and generates a left divided image L and a right divided image R. (Step S502). The division ratio is not specified by the algorithm in the present application, but in the simplest case, it may be simply divided into two equal parts. Further, the widths lw and rw of the left divided image L and the right divided image R are used by the superposition ideal value setting unit 1002, and the left divided image L and the right divided image R are used by the image superposition synthesis unit 1005. The division ratio may be calculated and set accordingly.

この左分割画像Lと右分割画像Rは、画像重ね合わせ合成部1005において、互いの位置を入れ替えられ、算出された重ね合わせ幅Cだけ重ね合わせ合成することで合成部分画像Qを生成する。生成された合成分割画像Qは、その左端に右分割画像Rの左端(左辺)、その右端に左分割画像Lの右端(右辺)が現れる。右分割画像Rの左端(左辺)、右端に左分割画像Lの右端(右辺)は、いずれも元の部分画像Pを分割した切断部分に相当するため、この合成部分画像Qを横方向に並べた場合、その接続部分は必ず滑らかに接続する。このような性質を持たせるために部分画像Pを左右に分割しておく。   The left divided image L and the right divided image R are replaced with each other in the image superimposing / combining unit 1005, and the combined partial image Q is generated by superimposing and combining the calculated overlapping width C. In the generated divided divided image Q, the left end (left side) of the right divided image R appears at the left end, and the right end (right side) of the left divided image L appears at the right end. Since the left end (left side) of the right divided image R and the right end (right side) of the left divided image L at the right end correspond to the cut portions obtained by dividing the original partial image P, the composite partial images Q are arranged in the horizontal direction. If this happens, make sure that the connection is smooth. In order to have such a property, the partial image P is divided into left and right.

制御部201は、重ね合わせ理想値設定部1002に相当する重ね合わせ理想値設定処理として、実際の重ね合わせ幅Cを求めるための基準となる理想の重ね合わせ幅Dを設定する(ステップS503)。理想の重ね合わせ幅Dは、画像分割部1001で得られる左分割画像Lと右分割画像Rのどちらの幅lw、rwよりも小さいという条件を満たす範囲で任意に定めればよいが、次に示す性質を考慮して定めることが望ましい。
理想の重ね合わせ幅Dを大きく設定すればするほど、左分割画像Lと右分割画像Rを重ね合わせ合成した結果である合成部分画像Qは元の部分画像Pの特徴を失うことになるが、左分割画像Lと右分割画像Rの重ね合わせ部分は滑らかとなり境界が目立たなくなる。反対に、理想の重ね合わせ幅Dを小さく設定すればするほど、左分割画像Lと右分割画像Rを重ね合わせ合成した結果である合成部分画像Qは元の部分画像Pの特徴を維持することになるが、左分割画像Lと右分割画像Rの重ね合わせ部分は滑らかでなくなり境界が目立つようになる。
また、後述するように、本発明による手法は、適正な重ね合わせ幅の候補のうち理想の重ね合わせ幅D以上で最小のものが実際の重ね合わせ幅Cとされる性質を持つ。従って、理想の重ね合わせ幅Dには、左分割画像Lと右分割画像Rが最低限重ね合わされるべき幅を指定すればよい。重ね合わせ合成に用いる手法にもよるが、理想の重ね合わせ幅Dとして、部分画像Pの幅pwの5%〜10%程度の値を指定することでバランスの取れた結果を得られる。
The control unit 201 sets an ideal overlap width D as a reference for obtaining the actual overlap width C as the overlap ideal value setting process corresponding to the overlap ideal value setting unit 1002 (step S503). The ideal overlapping width D may be arbitrarily determined within a range that satisfies the condition that it is smaller than the widths lw and rw of the left divided image L and the right divided image R obtained by the image dividing unit 1001. It is desirable to determine in consideration of the properties to be shown.
The larger the ideal overlap width D is set, the more the combined partial image Q, which is the result of overlapping and combining the left divided image L and the right divided image R, loses the characteristics of the original partial image P. The overlapping part of the left divided image L and the right divided image R becomes smooth and the boundary becomes inconspicuous. In contrast, the smaller the ideal overlap width D is set, the more the composite partial image Q that is the result of superposing and combining the left divided image L and the right divided image R maintains the characteristics of the original partial image P. However, the overlapping portion of the left divided image L and the right divided image R is not smooth and the boundary becomes conspicuous.
Further, as will be described later, the method according to the present invention has a property that among the appropriate overlap width candidates, the minimum overlap width of the ideal overlap width D is the actual overlap width C. Therefore, the ideal overlap width D may be specified as a width at which the left divided image L and the right divided image R should be overlapped at a minimum. Although depending on the method used for overlay synthesis, a balanced result can be obtained by specifying a value of about 5% to 10% of the width pw of the partial image P as the ideal overlay width D.

ここで、実際の重ね合わせ幅Cは、前述した本発明の手法が解決しようとする課題の性質上、直接指定することはできない。実際の重ね合わせ幅Cとして適切な値が与えられない場合、合成部分画像Qを任意の繰り返し回数n分並べても、通常テクスチャ画像Tの横幅である幅twとは一致しないので、生成したテクスチャ画像Tの左右端同士が滑らかに接続できない。そこで、理想の重ね合わせ幅Dを指定することにより、理想の重ね合わせ幅Dに近く、且つ自然数回の繰り返しによってちょうど最終的に生成されるテクスチャ画像Tの幅twを埋め尽くすことができるような適切な実際の重ね合わせ幅Cを求める。   Here, the actual overlap width C cannot be directly specified due to the nature of the problem to be solved by the above-described method of the present invention. When an appropriate value is not given as the actual overlapping width C, the generated texture image is not matched with the width tw, which is the width of the normal texture image T, even if the synthesized partial images Q are arranged by an arbitrary number of repetitions n. The left and right ends of T cannot be connected smoothly. Therefore, by designating the ideal overlap width D, the width tw of the texture image T that is close to the ideal overlap width D and that is finally generated by repeating the natural number of times can be filled. An appropriate actual overlap width C is obtained.

制御部201は、繰り返し回数計算部1003に相当する繰り返し回数計算処理として、理想の重ね合わせ幅Dと最終的なテクスチャ画像Tのテクスチャ幅twを用いて、合成部分画像Qを並べて最終的に出力されるテクスチャ画像Tを埋め尽くすための合成部分画像Qの繰り返し回数nを計算する(ステップS504)。
テクスチャ画像Tのテクスチャ幅tw、部分画像Pの幅pw、理想の重ね合わせ幅Dとし、
繰り返し回数:n=Ceil(tw/(pw−D)) ・・・・・・(1)
但し、Ceil(X)は実数X以上の最小の整数を返す関数とする。
The control unit 201 uses the ideal overlap width D and the texture width tw of the final texture image T as the repetition number calculation process corresponding to the repetition number calculation unit 1003, and finally outputs the combined partial images Q. The number of repetitions n of the combined partial image Q for filling the texture image T to be filled is calculated (step S504).
The texture width Tw of the texture image T, the width pw of the partial image P, and the ideal overlay width D
Number of repetitions: n = Ceil (tw / (pw−D)) (1)
However, Ceil (X) is a function that returns the smallest integer equal to or greater than the real number X.

制御部201は、重ね合わせ現実値計算部1004に相当する重ね合わせ現実値計算処理として、繰り返し回数nと、部分画像Pの幅pwと、テクスチャ画像Tの幅twを用いて、実際の重ね合わせ幅Cを計算する(ステップS505)。   The control unit 201 uses the repetition number n, the width pw of the partial image P, and the width tw of the texture image T as the superposition actual value calculation processing corresponding to the superposition actual value calculation unit 1004. The width C is calculated (step S505).

理想の重ね合わせ幅Dを用いて重ね合わせ合成を行うことで得られる、幅(pw−D)となる合成部分画像Qをn回繰り返すと、n*(pw−D)−twの幅に渡って合成部分画像Qの一部がテクスチャ画像Tの外部にはみだすことになる。ここで、合成部分画像Qの幅を少し狭めれば、すなわち、重ね合わせ幅を少し大きくすれば、n回繰り返したときにテクスチャ画像Tのテクスチャ幅twに一致させることができる。期待される合成部分画像Qの幅はtw/nであるから、この幅を得るための実際の重ね合わせ幅Cは、数式(2)を用いて算出する。
繰り返し回数n、部分画像Pの幅pw、テクスチャ画像Tのテクスチャ幅twとし、
実際の重ね合わせ幅:C=pw−tw/n ・・・・・・(2)
When the synthesized partial image Q having the width (pw−D) obtained by performing the overlay synthesis using the ideal overlay width D is repeated n times, it extends over the width of n * (pw−D) −tw. Thus, a part of the synthesized partial image Q protrudes outside the texture image T. Here, if the width of the composite partial image Q is slightly reduced, that is, if the overlapping width is slightly increased, the texture width Tw can be matched with the texture image T when it is repeated n times. Since the expected width of the composite partial image Q is tw / n, the actual overlap width C for obtaining this width is calculated using Equation (2).
The number of repetitions n, the width pw of the partial image P, the texture width tw of the texture image T,
Actual overlay width: C = pw−tw / n (2)

制御部201は、画像重ね合わせ合成部1005に相当する画像重ね合わせ合成処理として、実際の重ね合わせ幅Cと、部分画像Pを分割した左分割画像Lと右分割画像Rを用いて、繰り返し配列を行う合成部分画像Qを生成する(ステップS506)。画像の重ね合わせにおいては、左分割画像Lと右分割画像Rの位置を入れ替えて中央に向かって重ね合わせを行うものとする。左分割画像Lと右分割画像Rの位置を入れ替えて重ね合わせ合成をすることの意義を、ステップS502の画像分割処理で述べように、重ね合わせ合成された合成部分画像Qは、左右どちらにもそのまま滑らかに接続する。
尚、重ね合わせ合成処理は、繰り返し回数nによらずアルゴリズム全体で1度しか実行されないため、重ね合わせ後に行われる合成処理として比較的処理負荷の高い技術を用いても、アルゴリズム全体の処理時間にあまり影響を与えないという効果がある。
The control unit 201 uses the actual overlap width C, the left divided image L obtained by dividing the partial image P, and the right divided image R as an image overlay combining process corresponding to the image overlay combining unit 1005. A composite partial image Q for performing is generated (step S506). In superimposing the images, the positions of the left divided image L and the right divided image R are exchanged, and the images are superimposed toward the center. As described in the image division processing in step S502, the superimposed partial image Q is superimposed on either the left or right side, as described in the image division processing in step S502, where the positions of the left divided image L and the right divided image R are switched. Connect smoothly.
Note that the overlay synthesis process is executed only once for the entire algorithm regardless of the number of repetitions n. Therefore, even if a relatively heavy processing load is used as the synthesis process performed after the overlay, the processing time of the entire algorithm is reduced. There is an effect of not having much influence.

また、重ね合わせた後の合成処理については、左分割画像Lと右分割画像R両方の色を半分ずつ混ぜ合わせてもよいし、左分割画像Lと右分割画像Rそれぞれの重ね合わせる側の端からの距離に応じて混合の比率を変化させてもよく、本発明におけるアルゴリズムの規定するところではない。この種の合成処理は、コンピュータグラフィックスの分野において広く行われている事項である。例えば、「イメージプロセッシング<画像処理標準テキストブック>、財団法人 画像情報教育振興協会、第1刷発行;平成9年2月25日、P214〜218」には、隣接する画像をつなぎ合わせるモザイクの処理について記載されており、2つの隣接画像に対して、(1)濃度補正、(2)分割画像の位置合わせ及び座標系の統一、(3)濃度変換(色合わせ)、(4)接合するべき横方向の断面において最も接合しやすい点(接合点)の探索、(5)接合点周辺で濃度の平滑化等によって合成処理を行なう、とある。   As for the composition processing after superimposition, the colors of both the left divided image L and the right divided image R may be mixed in half, or the left divided image L and the right divided image R may be overlapped at the end on the overlapping side. The mixing ratio may be changed according to the distance from the position, and is not specified by the algorithm in the present invention. This kind of composition processing is a widely performed matter in the field of computer graphics. For example, “Image Processing <Image Processing Standard Textbook>, Foundation for Image Information Education Promotion, First Print Issue; February 25, 1997, P214 to 218” includes a processing of a mosaic that connects adjacent images. For two adjacent images, (1) density correction, (2) division image alignment and coordinate system unification, (3) density conversion (color matching), (4) should be joined Searching for a point (joint point) that is most likely to be joined in the cross section in the horizontal direction, and (5) performing a synthesis process by smoothing the concentration around the joint point.

制御部201は、画像繰り返し配置部1006に相当する画像繰り返し配置処理として、重ね合わせ合成された合成部分画像Qと、繰り返し回数nを用いて、最終的なテクスチャ画像Tを生成する(ステップS507)。
尚、元の部分画像Pが不完全なテクスチャ画像の内部から切り出されている場合には、開始位置を調整して繰り返すことにより、得られるテクスチャ画像Tと元の不完全なテクスチャ画像との間のずれを小さくすることもできる。開始位置を調整して繰り返す際に、テクスチャ画像Tの端において合成部分画像Qの一部が繰り越された場合には、その繰り越し部分をテクスチャ画像Tの反対側の端に配置して処理を続けることにより、n回並べたときにちょうど繰り返し開始位置までを埋め尽くすことができる。
The control unit 201 generates a final texture image T by using the combined partial image Q that is superimposed and combined and the number of repetitions n as an image repetition arrangement process corresponding to the image repetition arrangement unit 1006 (step S507). .
In addition, when the original partial image P is cut out from the inside of the incomplete texture image, by adjusting and repeating the start position, the obtained texture image T and the original incomplete texture image are The deviation can be reduced. When the start position is adjusted and repeated, if a part of the composite partial image Q is carried over at the end of the texture image T, the carry-over part is placed at the opposite end of the texture image T and the processing is continued. Thus, when it is arranged n times, it is possible to completely fill up to the repeated start position.

次に、本画像処理装置100の実施の形態の1例である、陶磁器の写真画像31を用いて、写真に写っていない部分に相当するテクスチャ画像上の無効領域を補完する画像処理を説明する。図7は、陶磁器の写真画像を用いて、写真に写っていない部分に相当するテクスチャ画像上の無効領域を補完する場合の処理画像の遷移を示す図である。   Next, image processing for complementing an invalid area on a texture image corresponding to a portion not shown in a photograph will be described using a ceramic photo image 31 which is an example of an embodiment of the image processing apparatus 100. . FIG. 7 is a diagram illustrating a transition of a processed image in a case where an invalid area on a texture image corresponding to a portion not shown in a photograph is complemented using a ceramic photograph image.

図7に示すように、例えば、陶磁器の写真画像31を用いて、写真に写っていない部分に相当するテクスチャ画像上の無効領域35を補完する場合、制御部201は、予め、物体をカメラ、デジタルカメラ等により撮影した複数の写真画像31を記憶部202に記憶しておき、選択した写真画像31から、その形状データ32を抽出し、写真画像31とその形状データ32を基に、テクスチャ画像をサンプリングし、サンプリング画像33を生成する。テクスチャのサンプリング画像33には、陶磁器の前面等の写真に写っている部分に相当する有効領域34と、陶磁器の背面等の写真に写っていない部分に相当する無効領域35とを有する。制御部201は、テクスチャ画像のサンプリング画像33の有効領域34から生成するべきテクスチャ画像のサイズより任意に小さい部分画像Pを抽出する。
制御部201は、テクスチャ画像生成手段103により、取得した陶磁器の部分画像Pを用いて、テクスチャ画像Tを生成、補完する。例えば、陶磁器の構成要素である、口縁、胴、腰、高台等の各種の複数のテクスチャ画像Tを生成、補完する。
制御部201は、生成したテクスチャ画像Tを形状データ32に貼り付け、視点情報、光源情報等を考慮して、レンダリングし、陶磁器画像36を生成する。ユーザは、陶磁器の背面や内側に視点移動をしながら、3次元画像として、陶磁器画像36を閲覧可能になる。
As shown in FIG. 7, for example, in the case of complementing the invalid area 35 on the texture image corresponding to the portion not shown in the photograph using the ceramic photograph image 31, the control unit 201 preliminarily displays the object as a camera, A plurality of photographic images 31 photographed by a digital camera or the like are stored in the storage unit 202, the shape data 32 is extracted from the selected photographic image 31, and the texture image is based on the photographic image 31 and the shape data 32. Are sampled to generate a sampled image 33. The texture sampling image 33 includes an effective area 34 corresponding to a portion of the ceramic front and the like, and an invalid area 35 corresponding to a portion of the ceramic back and not the photo. The control unit 201 extracts a partial image P that is arbitrarily smaller than the size of the texture image to be generated from the effective area 34 of the sampling image 33 of the texture image.
The control unit 201 uses the texture image generation unit 103 to generate and complement the texture image T using the acquired ceramic partial image P. For example, a plurality of various texture images T such as a lip, a trunk, a waist, and a hill, which are components of ceramics, are generated and complemented.
The control unit 201 pastes the generated texture image T on the shape data 32, renders it in consideration of viewpoint information, light source information, and the like, and generates a ceramic image 36. The user can view the ceramic image 36 as a three-dimensional image while moving the viewpoint to the back or inside of the ceramic.

以上説明したように、本発明の実施の形態によれば、テクスチャ画像生成方法を実行する画像処理装置100は、テクスチャ画像Tの横方向の成分についての処理において、生成するテクスチャ画像Tのテクスチャ幅twと、テクスチャ画像Tのサイズより小さい部分画像Pと、を取得する条件設定部1000と、部分画像Pを所定の分割比率で2つに分割し、左分割画像L、右分割画像Rを生成する画像分割部1001と、左分割画像Lの幅lw、右分割画像Rの幅rw、どちらよりも小さい理想の重ね合わせ幅Dを設定する重ね合わせ理想値設定部1002と、理想の重ね合わせ幅D、テクスチャ画像Tのテクスチャ幅tw、部分画像Pの幅pwを基に、合成部分画像Qの繰り返し回数nを計算する繰り返し回数計算部1003と、部分画像Pの幅pwと、テクスチャ画像Tのテクスチャ幅twと、繰り返し回数nを用いて、実際の重ね合わせ幅Cを計算する重ね合わせ現実値計算部1004と、左分割画像L、右分割画像Rと実際の重ね合わせ幅Cを用いて、分割画像の重ね合わせ合成を行い、合成部分画像Qを生成する画像重ね合わせ合成部1005と、合成部分画像Qを、繰り返し回数n分並べて配置しテクスチャ画像Tを生成、補完する画像繰り返し配置部1006を備え、所定のパターンを繰り返し、その端同士を滑らかに接続するテクスチャ画像Tを生成する。生成したテクスチャ画像Tと、その形状データを基に、視点情報、光源情報等を考慮してレンダリングし、画像を生成、表示する。   As described above, according to the embodiment of the present invention, the image processing apparatus 100 that executes the texture image generation method performs the texture width of the texture image T to be generated in the processing on the horizontal component of the texture image T. The condition setting unit 1000 that acquires tw and the partial image P smaller than the size of the texture image T, and the partial image P are divided into two at a predetermined division ratio to generate a left divided image L and a right divided image R An image dividing unit 1001 to perform, a width lw of the left divided image L, a width rw of the right divided image R, an ideal overlapping value setting unit 1002 that sets an ideal overlapping width D smaller than both, and an ideal overlapping width D, a repeat count calculation unit 1003 for calculating the repeat count n of the composite partial image Q based on the texture width tw of the texture image T and the width pw of the partial image P; A superimposed real value calculation unit 1004 that calculates an actual overlapping width C using the width pw of the image P, the texture width tw of the texture image T, and the number of repetitions n, the left divided image L, and the right divided image R And an actual superposition width C, and superimposing and synthesizing the divided images to generate a composite partial image Q, and the composite partial image Q is arranged side by side by the number of repetitions n, and the texture image An image repetitive arrangement unit 1006 for generating and complementing T is provided, a predetermined pattern is repeated, and a texture image T that smoothly connects ends thereof is generated. Based on the generated texture image T and its shape data, rendering is performed in consideration of viewpoint information, light source information, etc., and an image is generated and displayed.

これにより、写真画像を用いて、写真に写っていない部分に相当するテクスチャ画像上の無効領域を補完しようとするケース等の、抽出されるテクスチャ画像には周期性が認められない場合でも、テクスチャ画像の有効領域部分から抽出された周期性を満たしていない部分画像を用いて、一定のパターンが繰り返され、且つその端同士が滑らかに接続している、予め定められた大きさのテクスチャ画像を生成、補完することが可能である。
画像重ね合わせ合成処理は繰り返し回数に依存せず、アルゴリズム全体で1度しか実行されないため、重ね合わせ後に行われる合成処理として比較的処理負荷の高い技術を用いても、アルゴリズム全体の処理時間にあまり影響を与えず、高速処理の実現を可能とするという効果がある。
繰り返し回数計算部1003により算出された繰り返し回数と重ね合わせ現実値計算部1004により算出された実際の重ね合わせ幅の組み合わせは、重ね合わせ理想値設定部1002によって与えられた理想の重ね合わせ幅を下回らず、且つ、得られるテクスチャ画像Tの端同士が滑らかに接続するという条件下において、他のどのような繰り返し数と重ね合わせ幅の組み合わせよりも理想の重ね合わせ幅に近いものとなる。
As a result, even if the extracted texture image has no periodicity, such as when trying to supplement the invalid area on the texture image corresponding to the part not shown in the photograph using the photographic image, the texture Using a partial image that does not satisfy the periodicity extracted from the effective area portion of the image, a texture image of a predetermined size in which a certain pattern is repeated and ends thereof are smoothly connected It can be created and complemented.
Since the image overlay synthesis process does not depend on the number of repetitions and is executed only once for the entire algorithm, even if a relatively heavy processing load is used as the synthesis process performed after the overlay, the processing time of the entire algorithm is not much. There is an effect that high-speed processing can be realized without affecting.
The combination of the number of repetitions calculated by the repetition number calculation unit 1003 and the actual overlap width calculated by the overlap actual value calculation unit 1004 is less than the ideal overlap width given by the overlap ideal value setting unit 1002. In addition, under the condition that the edges of the obtained texture image T are smoothly connected to each other, it becomes closer to the ideal overlap width than any other combination of the number of repetitions and the overlap width.

尚、本実施の形態では、写真画像からテクスチャのサンプリングを行い、部分画像を抽出、取得したが、これに限るわけではない。例えば、作成済みのテクスチャ素材データを用いてもよい。
また、本実施の形態では、入力部205よりテクスチャ画像のサイズを入力し設定したが、自動的に計算し設定してもよい。
また、本実施の形態では、テクスチャ画像生成処理は、テクスチャ画像の横方向の成分について処理を説明したものである。縦方向の成分についても同様な処理を行う。縦方向の成分に対しては、生成するべきテクスチャ画像サイズ10の縦方向の縦幅である幅thと、部分画像Pを用いて、部分画像Pを分割し、入れ替えて重ね合わせ合成を行えばよい。また、縦方向と横方向を組み合わせる際には、縦方向について処理した後に横方向について処理するか、その逆の順序で処理すればよい。
In this embodiment, texture sampling is performed from a photographic image, and a partial image is extracted and acquired. However, the present invention is not limited to this. For example, created texture material data may be used.
In the present embodiment, the size of the texture image is input and set from the input unit 205, but may be automatically calculated and set.
Further, in the present embodiment, the texture image generation process describes the process for the horizontal component of the texture image. Similar processing is performed for the vertical component. For the component in the vertical direction, the partial image P is divided using the width th that is the vertical width of the texture image size 10 to be generated and the partial image P, and is replaced and combined. Good. Further, when combining the vertical direction and the horizontal direction, the vertical direction may be processed and then the horizontal direction may be processed, or vice versa.

尚、図4、図5等に示す処理を行うプログラムはCD−ROM等の記録媒体に保持させて流通させてもよいし、このプログラムを通信回線を介して送受することもできる。   Note that the program for performing the processing shown in FIGS. 4 and 5 may be distributed on a recording medium such as a CD-ROM, or the program may be transmitted and received via a communication line.

以上、添付図面を参照しながら、本発明に係る陶磁器製作システム等の好適な実施形態について説明したが、本発明はかかる例に限定されない。当業者であれば、本願で開示した技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   The preferred embodiments of the ceramic production system and the like according to the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to such examples. It will be apparent to those skilled in the art that various changes or modifications can be conceived within the scope of the technical idea disclosed in the present application, and these are naturally within the technical scope of the present invention. Understood.

本実施の形態に係る画像処理装置100の構成を示すブロック図A block diagram showing a configuration of an image processing apparatus 100 according to the present embodiment 画像処理装置100のハードウェア構成図Hardware configuration diagram of the image processing apparatus 100 記憶部202が保持する情報を示す図The figure which shows the information which the memory | storage part 202 hold | maintains 画像処理装置100の処理概要を示すフローチャートA flowchart showing an outline of processing of the image processing apparatus 100 テクスチャ画像生成処理の処理手順を示すフローチャートFlowchart showing the processing procedure of texture image generation processing テクスチャ画像Tの横方向の成分に対するテクスチャ画像生成を示す図The figure which shows the texture image generation with respect to the component of the horizontal direction of the texture image T 陶磁器の写真画像31を用いて、写真に写っていない部分に相当するテクスチャ画像上の無効領域を補完する場合の処理画像の遷移を示す図The figure which shows the transition of the process image in the case of complementing the invalid area | region on the texture image equivalent to the part which is not reflected in the photograph using the ceramic photo image 31

符号の説明Explanation of symbols

100………画像処理装置
101………パラメタ入力手段
102………部分画像取得手段
103………テクスチャ画像生成手段
104………画像描画手段
1000………条件設定部
1001………画像分割部
1002………重ね合わせ理想値設定部
1003………繰り返し回数計算部
1004………重ね合わせ現実値計算部
1005………画像重ね合わせ合成部
1006………画像繰り返し配置部
201………制御部
202………記憶部
205………入力部
206………表示部
31………写真画像
41………入出力情報
10………テクスチャ画像サイズ
T………テクスチャ画像
tw………テクスチャ画像Tのテクスチャ幅
P………部分画像
L………左分割画像
lw………左分割画像の幅
R………右分割画像
rw………右分割画像の幅
Q………合成部分画像
qw………合成部分画像の幅
C………実際の重ね合わせ幅
D………理想の重ね合わせ幅
n………繰り返し回数
DESCRIPTION OF SYMBOLS 100 ......... Image processing apparatus 101 ......... Parameter input means 102 ......... Partial image acquisition means 103 ......... Texture image generation means 104 ......... Image drawing means 1000 ......... Condition setting unit 1001 ......... Image division Numeral 1002... Superimposing ideal value setting unit 1003... Repeat number calculation unit 1004... Superimposing actual value calculation unit 1005. Control unit 202... Storage unit 205 ... Input unit 206 ... Display unit 31 ... Photo image 41 ... Input / output information 10 ... Texture image size T T ... Texture image tw ... Texture width of texture image T P ......... Partial image L ......... Left split image lw ......... Left split image width R ......... Right split image rw ......... Right split Width of image Q ......... Composite partial image qw ......... Width of composite partial image C ......... Actual overlay width D ......... Ideal overlay width n ......... Number of repetitions

Claims (13)

部分画像を基に、所定のパターンを繰り返し、その端同士を滑らかに接続するテクスチャ画像を生成するテクスチャ画像生成方法であって、
生成するテクスチャ画像のサイズと、前記テクスチャ画像のサイズより小さい部分画像と、を設定する条件設定工程と、
前記部分画像を適宜2つに分割し、分割画像を生成する画像分割工程と、
前記分割画像の幅より小さい、実際の重ね合わせ幅を求めるための基準となる理想の重ね合わせ幅を設定する重ね合わせ理想値設定工程と、
前記理想の重ね合わせ幅と、前記テクスチャ画像の幅と、前記部分画像の幅とを基に、合成部分画像の繰り返し回数を計算する繰り返し回数計算工程と、
前記部分画像の幅と、前記テクスチャ画像の幅と、前記繰り返し回数を用いて、実際の重ね合わせ幅を計算する重ね合わせ現実値計算工程と、
前記分割画像と実際の重ね合わせ幅を用いて、前記分割画像の重ね合わせ合成を行い、合成部分画像を生成する重ね合わせ合成工程と、
前記合成部分画像を、前記繰り返し回数分並べて配置しテクスチャ画像を生成する画像繰り返し配置工程と、
を具備することを特徴とするテクスチャ画像生成方法。
A texture image generation method for generating a texture image that repeats a predetermined pattern based on a partial image and smoothly connects the ends thereof,
A condition setting step for setting a size of the texture image to be generated and a partial image smaller than the size of the texture image;
An image dividing step of appropriately dividing the partial image into two and generating a divided image;
A superimposing ideal value setting step for setting an ideal superimposing width which is a reference for obtaining an actual superimposing width smaller than the width of the divided image;
Based on the ideal overlap width, the width of the texture image, and the width of the partial image, a repetition number calculation step of calculating the number of repetitions of the combined partial image,
Using the width of the partial image, the width of the texture image, and the number of repetitions to calculate an actual overlap width;
Using the divided image and the actual overlapping width, an overlapping composition step of performing overlay composition of the divided image and generating a composite partial image;
An image repeating arrangement step of arranging the combined partial images by the number of repetitions and generating a texture image; and
A texture image generation method comprising:
前記サイズは、横方向の成分に対する横幅と、縦方向の成分に対する縦幅であることを特徴とする請求項1記載のテクスチャ画像生成方法。 2. The texture image generation method according to claim 1, wherein the size includes a horizontal width for a horizontal component and a vertical width for a vertical component. 前記画像重ね合わせ合成工程は、分割された前記分割画像を入れ替えて重ね合わせ合成することを特徴とする請求項1記載のテクスチャ画像生成方法。 The texture image generation method according to claim 1, wherein in the image superimposing and synthesizing step, the divided divided images are replaced and synthesized. 前記テクスチャ画像の横方向の成分に対する処理工程と、縦方向の成分に対する処理工程を組み合わせて行うことを特徴とする請求項1記載のテクスチャ画像生成方法。 2. The texture image generation method according to claim 1, wherein a processing step for a horizontal component of the texture image and a processing step for a vertical component are performed in combination. コンピュータからなる画像処理装置であって、
生成するテクスチャ画像のサイズと、前記テクスチャ画像のサイズより小さい部分画像と、を取得する取得手段と、
前記部分画像を基に、所定のパターンを繰り返し、その端同士が滑らかに接続する前記テクスチャ画像のサイズのテクスチャ画像を生成するテクスチャ画像生成手段と、
生成したテクスチャ画像と、形状データと、入力した視点情報を基に、画像を生成する画像生成手段と、
を備え、
前記テクスチャ画像生成手段は、
前記テクスチャ画像のサイズと、前記テクスチャ画像のサイズより小さい部分画像と、を設定する条件設定手段と、
前記部分画像を適宜2つに分割し、分割画像を生成する画像分割手段と、
前記分割画像の幅より小さい、実際の重ね合わせ幅を求めるための基準となる理想の重ね合わせ幅を設定する重ね合わせ理想値設定手段と、
前記理想の重ね合わせ幅と、前記テクスチャ画像の幅と、前記部分画像の幅とを基に、合成部分画像の繰り返し回数を計算する繰り返し回数計算手段と、
前記部分画像の幅と、前記テクスチャ画像の幅と、前記繰り返し回数を用いて、実際の重ね合わせ幅を計算する重ね合わせ現実値計算手段と、
前記分割画像と実際の重ね合わせ幅を用いて、前記分割画像の重ね合わせ合成を行い、合成部分画像を生成する重ね合わせ合成手段と、
前記合成部分画像を、前記繰り返し回数分並べて配置しテクスチャ画像を生成する画像繰り返し配置手段と、
を具備することを特徴とする画像処理装置。
An image processing apparatus comprising a computer,
Obtaining means for obtaining a size of the texture image to be generated and a partial image smaller than the size of the texture image;
A texture image generating means for generating a texture image of the size of the texture image in which a predetermined pattern is repeated based on the partial image and the ends thereof are smoothly connected;
An image generating means for generating an image based on the generated texture image, shape data, and input viewpoint information;
With
The texture image generating means
Condition setting means for setting the size of the texture image and a partial image smaller than the size of the texture image;
Image dividing means for appropriately dividing the partial image into two and generating a divided image;
A superimposing ideal value setting means for setting an ideal superimposing width which is a reference for obtaining an actual superimposing width smaller than the width of the divided image;
Based on the ideal overlap width, the width of the texture image, and the width of the partial image, a repetition number calculating means for calculating the repetition number of the combined partial image,
A superimposed real value calculating means for calculating an actual overlapping width using the width of the partial image, the width of the texture image, and the number of repetitions;
Using the divided image and the actual overlapping width, an overlapping composition unit for performing composition of the divided image and generating a combined partial image;
Image repeated arrangement means for arranging the combined partial images by the number of repetitions and generating a texture image;
An image processing apparatus comprising:
前記取得手段は、
二次元画像データとその形状データから、テクスチャ画像のサンプリングを行い、前記部分画像を取得することを特徴とする請求項5記載の画像処理装置。
The acquisition means includes
6. The image processing apparatus according to claim 5, wherein the partial image is acquired by sampling a texture image from two-dimensional image data and shape data thereof.
前記画像重ね合わせ合成手段は、分割された前記分割画像を入れ替えて重ね合わせ合成することを特徴とする請求項5記載の画像処理装置。 6. The image processing apparatus according to claim 5, wherein the image superimposing and synthesizing unit replaces the divided divided images and superimposes and synthesizes them. 前記サイズは、横方向の成分に対する横幅と、縦方向の成分に対する縦幅であることを特徴とする請求項5記載の画像処理装置。 The image processing apparatus according to claim 5, wherein the sizes are a horizontal width for a horizontal component and a vertical width for a vertical component. 前記テクスチャ画像生成手段は、
前記テクスチャ画像の横方向の成分に対する当該処理と、縦方向の成分に対する当該処理を組み合わせて行うことを特徴とする請求項5記載の画像処理装置。
The texture image generating means
6. The image processing apparatus according to claim 5, wherein the processing for the horizontal component of the texture image is combined with the processing for the vertical component.
コンピュータに請求項1から請求項4のいずれかに記載のテクスチャ画像生成方法を実行させるためのプログラム。   The program for making a computer perform the texture image generation method in any one of Claims 1-4. コンピュータに請求項1から請求項4のいずれかに記載のテクスチャ画像生成方法を実行させるためのプログラムを記録した記録媒体。   A recording medium on which a program for causing a computer to execute the texture image generation method according to claim 1 is recorded. コンピュータを請求項5から請求項9のいずれかに記載の画像処理装置として機能させるプログラム。 A program that causes a computer to function as the image processing apparatus according to any one of claims 5 to 9. コンピュータを請求項4から請求項8のいずれかに記載の画像処理装置として機能させるプログラムを記録した記録媒体。 A recording medium storing a program that causes a computer to function as the image processing apparatus according to claim 4.
JP2005129758A 2005-04-27 2005-04-27 Texture image generation method, image processor, program, and recording medium Pending JP2006311080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005129758A JP2006311080A (en) 2005-04-27 2005-04-27 Texture image generation method, image processor, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005129758A JP2006311080A (en) 2005-04-27 2005-04-27 Texture image generation method, image processor, program, and recording medium

Publications (1)

Publication Number Publication Date
JP2006311080A true JP2006311080A (en) 2006-11-09

Family

ID=37477468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005129758A Pending JP2006311080A (en) 2005-04-27 2005-04-27 Texture image generation method, image processor, program, and recording medium

Country Status (1)

Country Link
JP (1) JP2006311080A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041664A (en) * 2008-08-08 2010-02-18 Canon Inc Image composition method and image composition apparatus
JP2014212511A (en) * 2013-04-05 2014-11-13 パナソニック株式会社 Image processing device, image processing method and image processing program
JP2015041982A (en) * 2013-08-23 2015-03-02 ブラザー工業株式会社 Image processing apparatus and computer program
US9495757B2 (en) 2013-03-27 2016-11-15 Panasonic Intellectual Property Management Co., Ltd. Image processing apparatus and image processing method
US9530216B2 (en) 2013-03-27 2016-12-27 Panasonic Intellectual Property Management Co., Ltd. Image processing apparatus and image processing method
CN112308955A (en) * 2020-10-30 2021-02-02 北京字跳网络技术有限公司 Texture filling method, device and equipment based on image and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041664A (en) * 2008-08-08 2010-02-18 Canon Inc Image composition method and image composition apparatus
US9495757B2 (en) 2013-03-27 2016-11-15 Panasonic Intellectual Property Management Co., Ltd. Image processing apparatus and image processing method
US9530216B2 (en) 2013-03-27 2016-12-27 Panasonic Intellectual Property Management Co., Ltd. Image processing apparatus and image processing method
JP2014212511A (en) * 2013-04-05 2014-11-13 パナソニック株式会社 Image processing device, image processing method and image processing program
US9230309B2 (en) 2013-04-05 2016-01-05 Panasonic Intellectual Property Management Co., Ltd. Image processing apparatus and image processing method with image inpainting
JP2015041982A (en) * 2013-08-23 2015-03-02 ブラザー工業株式会社 Image processing apparatus and computer program
CN112308955A (en) * 2020-10-30 2021-02-02 北京字跳网络技术有限公司 Texture filling method, device and equipment based on image and storage medium

Similar Documents

Publication Publication Date Title
JP3989451B2 (en) Color gradient path
US10489956B2 (en) Robust attribute transfer for character animation
US8963960B2 (en) System and method for content aware hybrid cropping and seam carving of images
US8358876B1 (en) System and method for content aware in place translations in images
JP2006311080A (en) Texture image generation method, image processor, program, and recording medium
JP2005182821A (en) System and method for annotating page in three-dimensional electronic document
JP2009075646A (en) Video display system and parameter generation method of same
JP2006081151A (en) Graphical user interface for keyer
JP2017111719A (en) Video processing device, video processing method and video processing program
WO2003009236A1 (en) Drawing method
JP2010033397A (en) Image composition device and method
KR101566459B1 (en) Concave surface modeling in image-based visual hull
BR112021015772A2 (en) METHOD FOR GENERATING A LIGHT INTENSITY IMAGE, APPARATUS FOR GENERATING A LIGHT INTENSITY IMAGE AND COMPUTER PROGRAM PRODUCT
JP6930091B2 (en) Image processing equipment, image processing methods, image processing systems and programs
US7734118B2 (en) Automatic image feature embedding
JP5807569B2 (en) Image processing apparatus, image processing method, and image processing program
JP2014146162A (en) Image synthesis processing method and game machine
JP2005235205A (en) Compositing with clip-to-self functionality without using shape channel
KR20130088953A (en) Apparatus and method for image restoration, stereo-scopic image conversion apparatus and method usig that
JP2010068059A (en) Video data generation program
JP2002260003A (en) Video display device
JP4266913B2 (en) Image composition apparatus, frame border effect generation circuit, and image data composition method used therefor
KR100914844B1 (en) System for providing surface texture mapping with sample texture synthesis
JP4515877B2 (en) Outline enhancement drawing device
JPH07200801A (en) Deformed image producing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080410

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20080425

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20080425

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091001

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091110

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100309