JP2010039662A - Leather-shape data generation device, leather-shape data generation method and leather-shape data generation program - Google Patents
Leather-shape data generation device, leather-shape data generation method and leather-shape data generation program Download PDFInfo
- Publication number
- JP2010039662A JP2010039662A JP2008200440A JP2008200440A JP2010039662A JP 2010039662 A JP2010039662 A JP 2010039662A JP 2008200440 A JP2008200440 A JP 2008200440A JP 2008200440 A JP2008200440 A JP 2008200440A JP 2010039662 A JP2010039662 A JP 2010039662A
- Authority
- JP
- Japan
- Prior art keywords
- leather
- shape data
- connection point
- leather shape
- feature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Image Generation (AREA)
Abstract
Description
本発明は、皮革表面の凹凸形状を表現するコンピュータグラフィックスや、合成皮革等の製造の際にその表面の凹凸形状を形成するためなどに用いられるデータを生成する皮革形状データ生成装置、皮革形状データ生成方法及び皮革形状データ生成プログラムの技術分野に関する。 The present invention relates to a computer graphics for expressing the uneven shape of the leather surface, a leather shape data generating device for generating data used for forming the uneven shape of the surface when manufacturing synthetic leather, etc., leather shape The present invention relates to a technical field of a data generation method and a leather shape data generation program.
皮革表面上に形成されている毛穴(毛孔)や溝などの微細な凹凸形状(革シボの形状)は、自然な風合いを演出することから、こうした凹凸形状が形成された合成皮革などの素材は、自動車の内装材やハンドバッグの素材など、各種工業製品の表面装飾用の素材として利用されている。こうした素材に皮革表面の凹凸形状を形成するための元となるイメージ画像として、CG(Computer Graphics)画像が利用されてきており、このCG画像制作において、皮革表面の微細な凹凸形状を再現することが求められている。 Since the fine irregularities (leather wrinkles) such as pores and grooves formed on the leather surface produce a natural texture, synthetic leather and other materials with such irregularities are It is used as a surface decoration material for various industrial products such as automobile interior materials and handbag materials. CG (Computer Graphics) images have been used as image images that are the basis for forming irregularities on the surface of leather on such materials. In this CG image production, the fine irregularities on the surface of leather are reproduced. Is required.
従来、CG画像制作における皮革形状の生成方法としては、大別して2つに分類される。 Conventionally, leather shape generation methods in CG image production are roughly classified into two methods.
先ず、第1の方法は、天然皮革の柄を写真撮影し、その画像を皮革形状とみなし再現する方法である。具体的には、その写真の一部を抜き出し、その抜き出した画像を並べてつなぎ合わせ、大きなサイズの皮革柄の画像を生成し、画像のつなぎ目を目立たなくするシームレス処理を施した後、テクスチャ画像やバンプマッピング画像、ディスプレイスメント画像として3次元形状に貼り付けることにより、擬似的に皮革の質感を再現するのである。 First, the first method is a method in which a pattern of natural leather is photographed and the image is regarded as a leather shape and reproduced. Specifically, after extracting a part of the photo, joining the extracted images side by side, generating a large leather pattern image, and applying seamless processing to make the joints of the image inconspicuous, texture images and By pasting the bump mapping image and the displacement image in a three-dimensional shape, the texture of the leather is simulated.
次に、第2の方法は、アルゴリズムのみで皮革の微細な凹凸形状を生成し、それを画像に変換した後、3次元形状に貼り付け、擬似的に皮革の質感や風合いを再現する完全にプロシージャルな方法である。この方法に関しては、例えば、非特許文献1及び2において提案されている。
Next, the second method is to generate a fine uneven shape of leather with an algorithm alone, convert it into an image, paste it into a three-dimensional shape, and reproduce the texture and texture of the leather in a pseudo manner Procedural way. This method is proposed in
非特許文献1には、表面の平面形状をボロノイ分割で生成し、分割された多角形に対して揺らぎを与え、次いで、この多角形に対して方向性に基づく伸縮変換を与え、これら一連の処理を、分割された各多角形に対して再帰的に行って階層構造とし、表面の断面形状をペジェ曲線で表現して、このペジェ曲線の制御点を円弧状に変化させて丸みを与え、これらによって、皮丘や皮溝などを表現する方法が開示されている。
In
また、非特許文献2には、いくつかの細胞をクラスタ化したものをマクロレベルでの皮革細胞とし、この皮革細胞をパーティクルに見立て、このパーティクルの配向を制御する場のポテンシャルを定義し、粒子間力とポテンシャルによる斥力を合力して、Runge−Kutta法により皮革細胞の成長シミュレーションを行い、生成された皮革細胞の基底形状に対して丸め操作と掃引を行い、基底形状の表面にメタボールによる凹凸付け行い、これらによって、皮丘や皮溝などを表現する方法が開示されている。
しかしながら、上述した第1の方法では、写真撮影時における照明環境と、CGによる画像制作時における仮想3次元空間内での照明環境とが異なることから、作成されたテクスチャ画像などによって表現された皮革の質感が、撮影された皮革の質感と異なってしまうことがある。また、第1の方法では、抜き出した皮革の画像をつなぎ合わせて大きな皮革の画像を生成することとなるので、このとき、撮影された皮革表面の凹凸形状のパターンが繰り返し現れることとなり、皮革表面の形状が自然に表現されているといえるものではなかった。 However, in the first method described above, since the illumination environment at the time of taking a picture is different from the illumination environment in a virtual three-dimensional space at the time of image production by CG, the leather represented by the created texture image or the like The texture of the leather may be different from the texture of the leather that was filmed. In the first method, the extracted leather images are stitched together to generate a large leather image. At this time, the uneven surface pattern of the photographed leather surface appears repeatedly, and the leather surface It could not be said that the shape of was naturally expressed.
また、皮革表面の凹凸形状により表現される模様の特徴は、主として皮革表面上を走る皮溝などの溝の方向性や間隔といった溝の特徴に依存する。 The feature of the pattern expressed by the uneven shape on the leather surface mainly depends on the feature of the groove such as the directionality and interval of the groove such as the leather groove running on the leather surface.
しかしながら、上述した非特許文献1及び2に開示された方法では、ボロノイ分割や皮革細胞の成長シミュレーションに基づいて皮丘の形状等を表現するものであり、溝自体に着目してその特徴を表現するものではない。
However, in the methods disclosed in
本発明は、以上の問題に鑑みてなされたものであり、天然皮革などの表面に形成されている溝の特徴を自然に再現することを可能とする皮革形状データ生成装置、皮革形状データ生成方法及び皮革形状データ生成プログラムを提供することを目的とする。 The present invention has been made in view of the above problems, and a leather shape data generation device and a leather shape data generation method capable of naturally reproducing the characteristics of grooves formed on the surface of natural leather or the like. It is another object of the present invention to provide a leather shape data generation program.
上記課題を解決するために、請求項1に記載の発明は、皮革表面の凹凸形状を示す皮革形状データを取得する皮革形状データ取得手段と、前記取得された皮革形状データに基づいて、前記皮革表面における溝の位置と、複数の前記溝が接続される点である接続点の前記皮革表面における位置と、を特定する位置特定手段と、前記特定された溝の位置及び接続点の位置に基づいて、互いに隣接する前記接続点を特定する隣接接続点特定手段と、前記隣接する接続点同士の位置関係の特徴を示す接続点特徴データを生成する接続点特徴データ生成手段と、前記生成された接続点特徴データが示す位置関係の特徴を反映させて前記接続点を配置し、且つ、隣接する前記接続点同士を接続する前記溝を設けた新たな前記皮革形状データを生成する皮革形状データ生成手段と、を備えることを特徴とする。
In order to solve the above-mentioned problem, the invention according to
この発明によれば、取得された皮革形状データから特定された溝の位置と接続点の位置とに基づいて隣接する接続点が特定され、隣接する接続点同士の位置関係の特徴を示す接続点特徴データが生成される。接続点の位置と接続点の隣接関係が決まれば、隣接する接続点同士を接続する溝の位置や長さも必然的に決まるので、この接続点特徴データは、溝の特徴を示す情報であるともいえる。そして、接続点特徴データが示す位置関係を反映させて隣接する接続点の位置が決定されることにより各接続点が配置され、且つ、隣接する接続点同士を接続するようにして溝が設けられることによって、新たな皮革形状データが生成されるので、天然皮革などの表面に形成された皮溝などの溝の特徴を自然に再現することができる。 According to this invention, adjacent connection points are specified based on the position of the groove and the position of the connection point specified from the acquired leather shape data, and the connection point indicating the characteristics of the positional relationship between the adjacent connection points Feature data is generated. If the position of the connection point and the adjacent relationship between the connection points are determined, the position and length of the groove connecting the adjacent connection points are inevitably determined, so this connection point feature data is information indicating the feature of the groove. I can say that. Then, the positions of the adjacent connection points are determined by reflecting the positional relationship indicated by the connection point feature data, and each connection point is arranged, and a groove is provided so as to connect the adjacent connection points. Thus, since new leather shape data is generated, it is possible to naturally reproduce the characteristics of grooves such as leather grooves formed on the surface of natural leather or the like.
請求項2に記載の発明は、請求項1に記載の皮革形状データ生成装置において、位置が特定された前記溝及び前記接続点に基づいて、当該溝のうちシワ(皺)を特定するシワ特定手段を更に備え、前記接続点特徴データ生成手段は、前記接続点特徴データと、前記特定されたシワの特徴を示すシワ特徴データと、を生成し、前記皮革形状データ生成手段は、前記接続点特徴データに基づいて前記接続点を配置し前記溝を設けるとともに、前記生成されたシワ特徴データが示す特徴を反映させてシワを設けた前記新たな皮革形状データを生成することを特徴とする。 According to a second aspect of the present invention, in the leather shape data generating device according to the first aspect, the wrinkle identification for identifying a wrinkle (wrinkle) among the grooves based on the groove and the connection point whose positions are specified. The connection point feature data generation unit generates the connection point feature data and wrinkle feature data indicating the specified wrinkle feature, and the leather shape data generation unit includes the connection point feature data. The connection points are arranged and the grooves are provided based on the feature data, and the new leather shape data provided with the wrinkles is generated by reflecting the feature indicated by the generated wrinkle feature data.
この発明によれば、取得された皮革形状データから特定されたシワの特徴を示すシワ特徴データが生成される。そして、シワ特徴データが示す特徴を反映させてシワを設けることによって新たな皮革形状データが生成されるので、溝の特徴に加えて、天然皮革などの表面に形成されたシワの特徴をも自然に再現することができる。 According to this invention, the wrinkle feature data indicating the wrinkle feature specified from the acquired leather shape data is generated. Since new leather shape data is generated by providing wrinkles that reflect the characteristics indicated by the wrinkle feature data, the characteristics of wrinkles formed on the surface of natural leather, etc. can be naturally Can be reproduced.
請求項3に記載の発明は、請求項2に記載の皮革形状データ生成装置において、前記シワ特定手段は、位置が特定された前記接続点に接続する前記溝同士がなす角度に基づいて、当該溝がシワであるか否かを決定し、前記接続点特徴データ生成手段は、シワと決定された互いに接続する溝同士がなす角度を確率変数とする確率分布を示す角度分布データを含む前記シワ特徴データを生成し、前記皮革形状データ生成手段は、前記角度分布データが示す確率分布に従って、互いに接続するシワ同士がなす角度を決定してシワを設けた前記新たな皮革形状データを生成することを特徴とする。 According to a third aspect of the present invention, in the leather shape data generating device according to the second aspect, the wrinkle specifying means is based on an angle formed by the grooves connected to the connection point where the position is specified. It is determined whether or not the groove is a wrinkle, and the connection point feature data generating means includes the wrinkle data including angle distribution data indicating a probability distribution having a random variable as an angle formed by the grooves that are determined to be connected to each other. Generating feature data, and the leather shape data generating means determines the angle between the wrinkles connected to each other according to the probability distribution indicated by the angle distribution data, and generates the new leather shape data provided with the wrinkles. It is characterized by.
この発明によれば、溝同士がなす角度に基づいてシワであるか否かが決定され、シワが接続点でなす角度の確率分布を示す角度分布データが生成される。そして、角度分布データが示す確率分布に従って互いに接続するシワ同士がなす角度が決定されたシワが設けられるので、統計的な手法により、シワの曲がり具合などの特徴を再現することができる。 According to the present invention, it is determined whether or not there is a wrinkle based on the angle formed by the grooves, and angle distribution data indicating the probability distribution of the angle formed by the wrinkle at the connection point is generated. Since the wrinkles in which the angles formed by the wrinkles connected to each other are determined according to the probability distribution indicated by the angle distribution data are provided, characteristics such as the degree of bending of the wrinkles can be reproduced by a statistical method.
請求項4に記載の発明は、請求項1乃至3の何れか1項に記載の皮革形状データ生成装置において、位置が特定された前記溝に囲まれた領域を皮丘として特定する皮丘特定手段を更に備え、前記接続点特徴データ生成手段は、前記接続点特徴データとして、隣接する前記皮丘同士の位置関係の特徴を示す前記皮丘特徴データを生成し、前記皮革形状データ生成手段は、前記生成された皮丘特徴データが示す位置関係の特徴を反映させて前記皮丘を仮想的に配置し、当該皮丘の境界線上を辿るように前記溝を設けた前記新たな皮革形状データを生成することを特徴とする。 According to a fourth aspect of the present invention, in the leather shape data generating device according to any one of the first to third aspects, the skin is specified to specify a region surrounded by the groove whose position is specified as a skin. The connection point feature data generation means generates the leather hill feature data indicating the characteristics of the positional relationship between the adjacent leather hills as the connection point feature data, and the leather shape data generation means includes: The new leather shape data in which the groove is virtually arranged by reflecting the feature of the positional relationship indicated by the generated hide hill feature data, and the groove is provided so as to follow the boundary line of the hide hill. Is generated.
この発明によれば、取得された皮革形状データから位置が特定された溝に囲まれた領域が皮丘として特定され、隣接する皮丘同士の位置関係の特徴を示す皮丘特徴データが生成される。隣接する皮丘同士の位置関係が決まれば、皮丘を囲む溝の位置や長さも必然的に決まるので、この皮丘特徴データは、溝の特徴を示す情報であるともいえる。そして、皮丘特徴データが示す位置関係を反映させて隣接する皮丘の位置が決定されることにより各皮丘が配置され、且つ、皮丘の境界線を溝が辿る線として溝が設けられて新たな皮革形状データが生成されるので、このような方法によっても、天然皮革などの表面に形成された溝の特徴を自然に再現することができる。 According to the present invention, the region surrounded by the groove whose position is specified from the acquired leather shape data is specified as a leather hill, and the leather feature data indicating the characteristics of the positional relationship between adjacent leather hills is generated. The If the positional relationship between adjacent skins is determined, the position and length of the grooves surrounding the skins are inevitably determined, so the skin feature data can be said to be information indicating the characteristics of the grooves. Then, the positions of the adjacent hides are determined by reflecting the positional relationship indicated by the cuticle feature data, and each hide is arranged, and a groove is provided as a line along which the groove follows the boundary of the hide. Since new leather shape data is generated, the characteristics of grooves formed on the surface of natural leather and the like can be naturally reproduced even by such a method.
請求項5に記載の発明は、請求項4に記載の皮革形状データ生成装置において、前記隣接接続点特定手段は、位置が特定された前記接続点をドロネー点とするドロネー分割によってドロネー辺で互いに接続される前記接続点を前記隣接する接続点と特定し、前記皮丘特定手段は、前記ドロネー辺で囲まれた領域を前記皮丘として特定し、前記接続点特徴データ生成手段は、隣接する前記皮丘夫々の重心同士の位置関係の特徴を示す前記皮丘特徴データを生成し、前記皮革形状データ生成手段は、前記生成された皮丘特徴データが示す位置関係の特徴を反映させて前記皮丘の重心を仮想的に配置し、当該重心を母点とするボロノイ分割によって分割されたボロノイ領域の境界線を辿るように前記溝を設けた前記新たな皮革形状データを生成することを特徴とする。 According to a fifth aspect of the present invention, in the leather shape data generating device according to the fourth aspect, the adjacent connection point specifying means is configured to be connected to each other at the Delaunay side by Delaunay division using the connection point whose position is specified as a Delaunay point. The connection point to be connected is specified as the adjacent connection point, the hide hill specifying means specifies the area surrounded by the Delaunay side as the hide, and the connection point feature data generating means is adjacent The hide hill feature data indicating the feature of the positional relationship between the centroids of the hide hills is generated, and the leather shape data generation means reflects the feature of the positional relationship indicated by the generated hide hill feature data. Virtually arrange the center of gravity of the hide hill, and generate the new leather shape data provided with the groove so as to follow the boundary line of the Voronoi region divided by Voronoi division with the center of gravity as the generating point And wherein the door.
この発明によれば、隣接する接続点がドロネー分割によって特定されるとともに、ドロネー辺で囲まれた領域が皮丘と特定され、皮丘の重心同士の位置関係の特徴を示す皮丘特徴データが生成される。そして、皮丘特徴データが示す位置関係の特徴を反映させて、隣接する皮丘の重心の位置が決定されることにより各重心が配置され、重心を母点とするボロノイ分割によってそのボロノイ辺を溝が辿る線として溝が設けられて新たな皮革形状データが生成される。 According to the present invention, adjacent connection points are specified by Delaunay division, a region surrounded by Delaunay sides is specified as a skin mound, and the skin feature data indicating the characteristics of the positional relationship between the centers of gravity of the skin mounds Generated. Then, reflecting the features of the positional relationship indicated by the hill feature data, each centroid is arranged by determining the position of the centroid of the adjacent hill, and the Voronoi side is determined by Voronoi division using the centroid as a generating point. Grooves are provided as lines followed by the grooves, and new leather shape data is generated.
ドロネー図はボロノイ図から生成することが可能であり、また、その逆も可能である。従って、取得された皮革形状データから溝の特徴を抽出するときと、溝の特徴を反映させた新たな皮革形状データを生成するときとの間で整合性を保つことができる。 Delaunay diagrams can be generated from Voronoi diagrams and vice versa. Accordingly, it is possible to maintain consistency between the time when the feature of the groove is extracted from the acquired leather shape data and the time when new leather shape data reflecting the feature of the groove is generated.
請求項6に記載の発明は、請求項5に記載の皮革形状データ生成装置において、前記接続点特徴データ生成手段は、前記皮丘の重心からの、当該皮丘に隣接する他の前記皮丘の重心の相対位置を確率変数とする確率分布を示す皮丘位置分布データを含む前記皮丘特徴データを生成し、前記皮革形状データ生成手段は、前記皮丘位置分布データが示す確率分布に従って、前記皮丘の重心を仮想的に配置することを特徴とする。
The invention according to claim 6 is the leather shape data generation device according to
この発明によれば、皮丘に隣接する他の皮丘の重心の相対位置の確率分布を示す皮丘位置分布データが生成され、皮丘位置分布データが示す確率分布に従って重心が仮想的に配置されるので、統計的な手法により、溝の特徴を自然に再現することができる。 According to the present invention, the skin position distribution data indicating the probability distribution of the relative position of the center of gravity of the other skins adjacent to the skin is generated, and the center of gravity is virtually arranged according to the probability distribution indicated by the skin position distribution data. Therefore, the characteristics of the groove can be naturally reproduced by a statistical method.
請求項7に記載の発明は、請求項6に記載の皮革形状データ生成装置において、前記皮丘位置分布データが示す確率分布を近似するための近似式に用いられるパラメータを生成するパラメータ生成手段と、前記接続点特徴データ生成手段により生成された前記皮丘特徴データを記憶する記憶手段と、を更に備え、前記接続点特徴データ生成手段は、前記皮丘位置分布データに代えて、前記生成されたパラメータを含む前記皮丘特徴データを生成し、前記皮革形状データ生成手段は、前記記憶手段に記憶された前記皮丘特徴データに含まれる前記パラメータと前記近似式とに基づいて、前記皮丘の重心の仮想的な配置に用いる前記皮丘位置分布データを生成することを特徴とする。 The invention according to claim 7 is the leather shape data generation device according to claim 6, wherein the parameter generation means generates parameters used in the approximation formula for approximating the probability distribution indicated by the hill position distribution data. And storage means for storing the hide hill feature data generated by the connection point feature data generation means, wherein the connection point feature data generation means is generated in place of the hide hill position distribution data. The leather feature data including the parameters is generated, and the leather shape data generating means is configured to generate the leather based on the parameters and the approximate expression included in the leather feature data stored in the storage means. The dermis position distribution data used for the virtual arrangement of the center of gravity is generated.
この発明によれば、皮丘位置分布データを生成するためのパラメータが生成され、このパラメータが記憶手段に記憶されるので、このパラメータによって元の皮丘位置分布データを再現することが可能であるとともに、皮丘位置分布データ自体を記憶手段に記憶させる場合よりも、記憶スペースを節約することができる。 According to the present invention, the parameter for generating the hill position distribution data is generated, and this parameter is stored in the storage means. Therefore, the original hill position distribution data can be reproduced by this parameter. In addition, the storage space can be saved as compared with the case where the hide hill position distribution data itself is stored in the storage means.
請求項8に記載の発明は、請求項1乃至7の何れか1項に記載の皮革形状データ生成装置において、前記接続点特徴データ生成手段により生成された前記接続点特徴データを記憶する記憶手段と、前記記憶手段に記憶された複数の前記接続点特徴データ同士を合成して合成接続点特徴データを生成する合成手段と、を更に備え、前記皮革形状データ生成手段は、前記生成された合成接続点特徴データに基づいて前記新たな皮革形状データを生成することを特徴とする。
The invention according to
この発明によれば、複数の皮革の表面の溝の特徴の中間的な特徴を有する新たな皮革形状データを容易に生成することができる。 According to the present invention, new leather shape data having characteristics intermediate between the characteristics of the grooves on the surface of a plurality of leathers can be easily generated.
請求項9に記載の発明は、請求項1乃至8の何れか1項に記載の皮革形状データ生成装置において、前記位置特定手段は、前記皮革形状データに基づいて、前記溝を特定する溝特定手段と、前記皮革形状データに基づいて、前記皮革表面上における高度がその周囲の高度よりも低い点を前記接続点と特定する接続点特定手段と、前記皮革形状データに基づいて、前記皮革表面上における鞍部を特定する鞍部特定手段と、を備え、前記隣接接続点特定手段は、同一の前記鞍部から前記溝を辿って最初に至る前記接続点同士を前記隣接する接続点と認定することを特徴とする。
The invention according to
天然皮革などの表面に形成されている接続点は複数の溝が集中するので、一般的に接続点は溝よりも深く形成されている。また、鞍部とは、一般的には尾根などの高度が高い部分の連なりが窪んでいる部分をいい、皮革表面においては、その高い部分を溝が横切ることにより、窪んだ部分が形成されて鞍部ができる。 Since a plurality of grooves are concentrated on a connection point formed on the surface of natural leather or the like, the connection point is generally formed deeper than the groove. In addition, the heel part generally refers to a part where a series of high altitude parts such as ridges are recessed, and on the leather surface, a groove part crosses the high part to form a recessed part. Can do.
従って、この発明によれば、周囲よりも高度が低い点が接続点とされ、鞍部から溝を辿ることにより隣接する接続点が特定されるので、隣接する接続点を適確に特定することができる。 Therefore, according to the present invention, a point whose altitude is lower than that of the surrounding area is set as a connection point, and an adjacent connection point is specified by following the groove from the buttock. Therefore, it is possible to accurately specify the adjacent connection point. it can.
請求項10に記載の発明は、請求項1乃至9の何れか1項に記載の皮革形状データ生成装置において、前記皮革形状データは、各要素が、皮革表面において当該要素が対応する位置における当該表面の高度を示す、2次元配列で表現されたデータであることを特徴とする。
The invention according to
この発明によれば、接続点特徴データを容易に生成することができる。 According to the present invention, connection point feature data can be easily generated.
請求項11に記載の発明は、皮革表面の凹凸形状を示す皮革形状データを取得する皮革形状データ取得工程と、前記取得された皮革形状データに基づいて、前記皮革表面における溝の位置と、複数の前記溝が接続される点である接続点の前記皮革表面における位置と、を特定する位置特定工程と、前記特定された溝の位置及び接続点の位置に基づいて、互いに隣接する前記接続点を特定する隣接接続点特定工程と、前記隣接する接続点同士の位置関係の特徴を示す接続点特徴データを生成する接続点特徴データ生成工程と、前記生成された接続点特徴データが示す位置関係の特徴を反映させて前記接続点を配置し、且つ、隣接する前記接続点同士を接続する前記溝を設けた新たな前記皮革形状データを生成する皮革形状データ生成工程と、を備えることを特徴とする。
The invention according to
請求項12に記載の発明は、コンピュータを、皮革表面の凹凸形状を示す皮革形状データを取得する皮革形状データ取得手段、前記取得された皮革形状データに基づいて、前記皮革表面における溝の位置と、複数の前記溝が接続される点である接続点の前記皮革表面における位置と、を特定する位置特定手段、前記特定された溝の位置及び接続点の位置に基づいて、互いに隣接する前記接続点を特定する隣接接続点特定手段、前記隣接する接続点同士の位置関係の特徴を示す接続点特徴データを生成する接続点特徴データ生成手段、前記生成された接続点特徴データが示す位置関係の特徴を反映させて前記接続点を配置し、且つ、隣接する前記接続点同士を接続する前記溝を設けた新たな前記皮革形状データを生成する皮革形状データ生成手段、として機能させることを特徴とする。
The invention according to
本発明によれば、皮革表面に形成された溝同士の接続点が特定され、隣接する接続点同士の位置関係の特徴を示す接続点特徴データが生成され、この接続点特徴データに基づいて、新たな皮革形状データが生成されるので、天然皮革などの表面に形成された皮溝などの溝の特徴を自然に再現することができる。 According to the present invention, the connection point between the grooves formed on the leather surface is specified, and connection point feature data indicating the positional relationship between adjacent connection points is generated, based on this connection point feature data, Since new leather shape data is generated, it is possible to naturally reproduce the characteristics of grooves such as leather grooves formed on the surface of natural leather.
[1.基本原理]
以下、本発明を実施するための最良の実施形態について、図面に基づいて説明するが、それに先立ち、実施形態における基本原理について、図1及び図2を用いて説明する。
[1. Basic principle]
DESCRIPTION OF THE PREFERRED EMBODIMENTS The best mode for carrying out the present invention will be described below with reference to the drawings. Prior to that, the basic principle of the embodiment will be described with reference to FIGS.
[1.1 毛穴、複合毛包]
図1(a)、(b)及び(c)は、毛穴を有する天然皮革の表面の凹凸パターンの例を示す図であり、図1(d)は、図1(a)の一部を拡大した図である。各図ともに、黒色で表現されている斑点は毛穴を示しており、皮革表面に対する法線方向における高度が、白色で表現されている部分よりも低くなっている。つまり、黒色で表現された斑点が、皮革表面における凹部である。なお、毛穴の凹形状は、通常なだらかに形成されている場合が多いが、図1においては、説明の便宜上、黒色と白色の2値で高度を表現している。
[1.1 Pore, Compound hair follicle]
Fig.1 (a), (b) and (c) is a figure which shows the example of the uneven | corrugated pattern of the surface of the natural leather which has a pore, FIG.1 (d) expands a part of Fig.1 (a). FIG. In each figure, the spots expressed in black indicate pores, and the altitude in the normal direction with respect to the leather surface is lower than the portion expressed in white. That is, the spots expressed in black are concave portions on the leather surface. The concave shape of the pores is usually formed gently in many cases, but in FIG. 1, for convenience of explanation, the altitude is expressed by binary values of black and white.
ここで、図1(d)の例においては、3個の毛穴が密集しており、この密集している毛穴でグループを形成していることが分かる(図中、各グループを、破線の楕円で囲んで示している。)。或るグループ内の毛穴から他のグループ内の毛穴までの距離は、通常グループ内の毛穴同士の距離よりも長いため、遠目でこの皮革表面を眺めると、このグループ自体が、一つの毛穴のように見える場合がある。以下、このグループのことを、複合毛包と呼ぶ。 Here, in the example of FIG. 1 (d), it can be seen that three pores are densely formed and a group is formed by the dense pores (in the figure, each group is represented by a dashed ellipse). (Enclosed). Since the distance from the pores in one group to the pores in the other group is usually longer than the distance between the pores in the group, when looking at the leather surface from a distance, this group itself looks like one pore. May appear. Hereinafter, this group is called a compound hair follicle.
図1(d)に示すように、複合毛包内における毛穴の数及び配置は、複合毛包間において類似性があることが見てとれる。つまり、複合毛包内における毛穴の配置パターンが見えるのである。また、図1(a)、(b)及び(c)に示すように、複合毛包の配置についても、皮革毎にパターンが見られる。例えば、図1(a)の場合においては、紙面上方向を角度0とすると、右約50度の方向に複合毛包が連なっているように見える。 As shown in FIG. 1 (d), it can be seen that the number and arrangement of pores in the composite hair follicle are similar between the composite hair follicles. That is, the arrangement pattern of the pores in the composite hair follicle can be seen. Moreover, as shown to FIG. 1 (a), (b) and (c), also about the arrangement | positioning of a composite hair follicle, a pattern is seen for every leather. For example, in the case of FIG. 1A, when the upper direction on the paper is an angle of 0, it seems that the composite hair follicles are connected in the direction of about 50 degrees to the right.
以下に説明する実施形態においては、実物の皮革から、複合毛包の配置パターンと複合毛包内における毛穴の配置パターンとを読み取り、これらの配置パターンに従って、新たな皮革形状データを生成するようになっている。 In the embodiment described below, the arrangement pattern of the composite follicle and the arrangement pattern of the pores in the composite follicle are read from the real leather, and new leather shape data is generated according to these arrangement patterns. It has become.
具体的には、各複合毛包についてその複合毛包に隣接する複合毛包を特定し、複合毛包点を原点として、この複合毛包に隣接する複合毛包の相対的な位置(2次元座標で表現される)を求め、この相対的な位置を確率変数として、隣接する複合毛包の出現確率分布、すなわち、隣接する複合毛包が、どの位置にどのような確率で配置されるかを示す複合毛包分布図を生成し、これを複合毛包の配置パターンとする。 Specifically, for each composite hair follicle, the composite hair follicle adjacent to the composite hair follicle is specified, and the relative position (two-dimensional) of the composite hair follicle adjacent to the composite hair follicle is set with the composite hair follicle point as the origin. And the relative probability of this relative position as a random variable, the probability distribution of the appearance of adjacent complex hair follicles, that is, the probability that adjacent complex hair follicles will be arranged at what position A composite follicle distribution diagram is generated, and this is used as an arrangement pattern of the composite hair follicles.
また、複合毛包内における各毛穴の位置を求め、複合毛包内における位置を確率変数として、各毛包の出現確率分布、すなわち、複合毛包内の各毛穴が、当該複合毛包内においてどの位置にどのような確率で配置されるかを示す毛穴分布図を生成し、これを毛穴の配置パターンとする。 Further, the position of each pore in the composite hair follicle is obtained, and the position in the composite hair follicle is used as a random variable, and the probability distribution of each hair follicle, that is, each pore in the composite hair follicle is within the composite hair follicle. A pore distribution map showing at what position and with what probability is generated, and this is used as a pore arrangement pattern.
そして、実施形態においては、複合毛包分布図が示す出現確率分布を重み付けとしてランダムに複合毛包を配置し、各複合毛包内に、毛穴分布図が示す出現確率分布を重み付けとしてランダムに毛穴を配置していく。これにより、皮革表面に形成された毛穴の凹凸形状を示す皮革形状データが生成される。 In the embodiment, the composite hair follicles are randomly arranged with the appearance probability distribution indicated by the composite follicle distribution map as a weight, and the pores are randomly assigned with the appearance probability distribution indicated by the pore distribution map as a weight within each composite follicle. Will continue to arrange. Thereby, the leather shape data which shows the uneven | corrugated shape of the pore formed in the leather surface are produced | generated.
このようにして生成された皮革形状データは、実物の皮革における複合毛包の配置パターンと複合毛包内における毛穴の配置パターンの特徴をとらえたデータであることは無論である。また、新たに生成する皮革形状データの画像サイズをどのような大きさにしたとしても、皮革表面の凹凸形状を自然に表現することができる。 Of course, the leather shape data generated in this way is data that captures the characteristics of the arrangement pattern of the composite hair follicle in the real leather and the arrangement pattern of the pores in the composite hair follicle. In addition, the uneven shape of the leather surface can be naturally expressed regardless of the size of the image of the newly generated leather shape data.
[1.2 皮溝、シワ]
図2(a)は、皮溝を有する天然皮革の表面の凹凸パターンの一例を示す図であり、図2(b)は、図2(a)を単純化した図である。図2(a)において、黒色で表現されている筋は皮溝であり、皮革表面に対する法線方向における高度が、白色で表現されている部分よりも低くなっている。つまり、黒色で表現された筋が、皮革表面における凹部である。また、白色で表現されている部分は皮丘である。なお、凹凸形状は、通常なだらかに形成されている場合が多いが、図2(a)においては、説明の便宜上、黒色と白色の2値で高度を表現している。
[1.2 Skin groove, wrinkle]
Fig.2 (a) is a figure which shows an example of the uneven | corrugated pattern of the surface of the natural leather which has a leather groove, FIG.2 (b) is the figure which simplified FIG.2 (a). In FIG. 2 (a), the streaks expressed in black are skin grooves, and the altitude in the normal direction to the leather surface is lower than the portion expressed in white. That is, the streaks expressed in black are concave portions on the leather surface. The part expressed in white is a cuticle. In many cases, the uneven shape is generally gently formed. In FIG. 2A, for convenience of explanation, the altitude is expressed by binary values of black and white.
ここで、皮溝(溝の一例)とは、皮革表面に形成されている何らかの溝である。この皮溝には、皮革表面全体に先天的に形成されているものと、後天的に形成されるものがある。 Here, a leather groove (an example of a groove) is any groove formed on the leather surface. Some of these skin grooves are congenitally formed on the entire leather surface, while others are formed conservatively.
後天的に形成された皮溝の例としては、シワ(皺)が存在する。シワとは、一般的には、或る物の表面が、たるんだり縮んだりすることによりできる筋目のことをいう。皮革表面にできるシワは、通常、動物の関節を中心として骨が動くことにより皮革表面が伸び縮みすることにより形成される。従って、シワは、ジグザグに形成されるのではなく、ある程度滑らかに連なって形成される傾向がある。そこで、以下に説明する実施形態におけるシワとは、皮溝のうち滑らかに連なった溝のことを意味するもの定義する。ここで、皮革表面が伸び縮みすることにより、先天的に形成されていた皮溝がより深くまたは太くなってシワのようになる場合もあるが、このような皮溝もシワに含めるものとする。更に、実施形態におけるシワは、通常の皮溝と比較して、より深くより太く形成されているものとする。 As an example of an acquired skin groove, wrinkles are present. The wrinkle generally refers to a line formed by sagging or shrinking the surface of a certain object. The wrinkles that can be formed on the leather surface are usually formed by the expansion and contraction of the leather surface due to the movement of bones around the joints of animals. Accordingly, the wrinkles tend not to be formed in a zigzag pattern, but to be formed smoothly and continuously to some extent. Therefore, wrinkles in the embodiments described below are defined as meaning the smoothly connected grooves among the skin grooves. Here, when the leather surface expands or contracts, the skin groove formed innately may become deeper or thicker and become wrinkled. Such a skin groove is also included in the wrinkle. . Furthermore, the wrinkles in the embodiment are deeper and thicker than normal skin grooves.
図2(a)においては、細い線が、先天的な皮溝を示し、太い線が、後天的な皮溝、すなわち、シワを示している。 In FIG. 2A, a thin line indicates an innate skin groove, and a thick line indicates an acquired skin groove, that is, a wrinkle.
以下に説明する実施形態においては、実物の皮革から、皮溝及びシワの形成パターンを読み取り、これらの形成パターンに従って、新たな皮革形状データを生成するようになっている。 In the embodiment described below, the formation patterns of the leather grooves and wrinkles are read from the real leather, and new leather shape data is generated according to these formation patterns.
具体的には、複数の皮溝が繋がることによってその凹形状がより深くより広くなる点を特定する。以下においては、このような形状となっている部分を「深み」と称し、この深みの最も深くなっている点を、「深み点」(接続点の一例)と称する。そして、隣接する深み点(皮溝によって直接接続される深み点)同士を結ぶ線分を皮溝と仮定することにより、皮溝の構造を単純化する。 Specifically, the point where the concave shape becomes deeper and wider by connecting a plurality of skin grooves is specified. In the following, a portion having such a shape is referred to as a “depth”, and a point at which the depth is the deepest is referred to as a “depth point” (an example of a connection point). And the structure of the skin groove is simplified by assuming that the line segment connecting adjacent depth points (depth points directly connected by the skin groove) is the skin groove.
その後、単純化された皮溝で夫々囲まれた領域を皮丘と仮定し、皮丘の重心位置を特定する。以下においては、この重心位置の点を、「重心点」と称する。そして、各重心点についてその重心点に隣接する重心点を特定し、重心点を原点として、この重心点に隣接する重心点の相対的な位置(2次元座標で表現される)を求め、この相対的な位置を確率変数として、隣接する重心点の出現確率分布、すなわち、隣接する重心点が、どの位置にどのような確率で配置されるかを示す重心分布図(皮丘位置分布データ(皮丘特徴データ(接続点特徴データ))の一例)を生成する。なお、隣接する重心点は、重心点をドロネー点とするドロネー図を生成することにより特定する。 After that, the regions surrounded by the simplified skin grooves are assumed to be skin hills, and the barycentric position of the skin hills is specified. Hereinafter, the point of the center of gravity position is referred to as a “center of gravity point”. Then, for each centroid point, the centroid point adjacent to the centroid point is specified, and the relative position (expressed in two-dimensional coordinates) of the centroid point adjacent to the centroid point is obtained using the centroid point as the origin. Appearance probability distribution of adjacent centroid points using relative positions as random variables, that is, a centroid distribution map (skin position distribution data ( An example) of the hide hill feature data (connection point feature data). Note that adjacent centroid points are specified by generating a Delaunay diagram with the centroid points as Delaunay points.
また、単純化された皮溝のうち、深みで滑らかに繋がっている皮溝同士をグループ化して、これをシワとする。そして、シワを形成する皮溝が深み点で成す角度を確率変数とする出現確率分布を求め、これに基づいて、シワの正規分布の情報として、平均値と標準偏差とを算出する。また、シワを形成する各皮溝と所定の水平線とが成す角度の平均値を算出する。なお、シワの分布の平均値及び標準偏差とシワを形成する皮溝の角度の平均値とを、「シワパラメータ」(角度分布データ(シワ特徴データ)の一例)と称する。 Further, among the simplified skin grooves, the skin grooves that are smoothly connected in depth are grouped to be wrinkled. Then, an appearance probability distribution having an angle formed by the depth of the crevice forming the wrinkle as a random variable is obtained, and based on this, an average value and a standard deviation are calculated as information on the normal distribution of wrinkles. Further, an average value of angles formed by the respective skin grooves forming wrinkles and a predetermined horizontal line is calculated. The average value and standard deviation of the wrinkle distribution and the average value of the angle of the skin groove forming the wrinkle are referred to as “wrinkle parameters” (an example of angle distribution data (wrinkle feature data)).
その後、実施形態においては、重心分布図に基づいてポワソンディスク(Poisson-disk)パターンを生成することにより重心点を配置する。そして、配置された重心点を母点とするボロノイ図を生成し、このときのボロノイ境界を皮溝とする。また、シワパラメータに基づいてシワを構成する皮溝を配置する。これにより、皮革表面に形成された皮溝の凹凸形状を示す皮革形状データが生成される。 Thereafter, in the embodiment, the centroid points are arranged by generating a Poisson-disk pattern based on the centroid distribution diagram. Then, a Voronoi diagram having the center of gravity located as a generating point is generated, and the Voronoi boundary at this time is defined as a skin groove. Moreover, the skin groove which comprises a wrinkle is arrange | positioned based on a wrinkle parameter. Thereby, the leather shape data which shows the uneven | corrugated shape of the skin groove formed in the leather surface is produced | generated.
このようにして生成された皮革形状データも、実物の皮革における皮溝の形成パターンとシワの形成パターンとの特徴をとらえたデータであることは無論である。また、新たに生成する皮革形状データの画像サイズをどのような大きさにしたとしても、皮革表面の凹凸形状を自然に表現することができる。 Of course, the leather shape data generated in this way is also data that captures the characteristics of the formation pattern of the groove and the formation pattern of wrinkles in real leather. In addition, the uneven shape of the leather surface can be naturally expressed regardless of the size of the image of the newly generated leather shape data.
なお、皮丘の重心点の重心分布図を用いる代わりに、例えば、皮溝の深み点の分布図を用いても良い。この場合においては、隣接する深み点は既に判明しているので、深み点を原点として、この深み点に隣接する深み点の相対的な位置(2次元座標で表現される)を求め、この相対的な位置を確率変数として、隣接する重心点の出現確率分布を示す深み点分布図(接続点特徴データの一例)を生成する。 Instead of using the barycentric distribution map of barn centroids, for example, a distribution map of the depth points of the skin grooves may be used. In this case, since the adjacent depth point is already known, the relative position (expressed in two-dimensional coordinates) of the depth point adjacent to this depth point is obtained using the depth point as the origin, and this relative A depth point distribution diagram (an example of connection point feature data) indicating an appearance probability distribution of adjacent barycentric points is generated using a specific position as a random variable.
その後、深み点分布図に基づいてポワソンディスクパターンを生成して深み点を配置したり、または、深み点分布図が示す出現確率分布を重み付けとしてランダムに深み点を配置していく。そして、深み点をドロネー点とするドロネー図を生成し、このときのドロネー辺を皮溝とする。 Thereafter, a Poisson disc pattern is generated based on the depth point distribution map and the depth points are arranged, or the depth points are randomly arranged by weighting the appearance probability distribution indicated by the depth point distribution chart. And the Delaunay figure which makes a depth point a Delaunay point is produced | generated, and the Delaunay side at this time is made into a skin groove.
重心分布図を用いる方法では、皮溝の形成パターンの特徴が間接的に表現されるのに対し、深み点分布図を用いる方法では、皮溝の形成パターンの特徴を直接的に表現することができる。その一方で、重心分布図を用いる方法では、その生成時にドロネー図を使用し、皮溝の形成時においてはボロノイ図を使用することで、整合性が図られている。ドロネー図はボロノイ図から生成可能であり、その逆も可能だからである。深み点分布図を用いる方法では、皮革表面から読み取った皮溝の接続関係をそのまま利用し、皮溝の形成時においてはドロネー図を使用するため、整合性の点で前者に劣る。 In the method using the center of gravity distribution map, the feature of the formation pattern of the skin groove is indirectly expressed, whereas in the method using the depth map, the feature of the formation pattern of the skin groove can be expressed directly. it can. On the other hand, in the method using the center-of-gravity distribution diagram, consistency is achieved by using a Delaunay diagram at the time of generation and a Voronoi diagram at the time of forming the skin groove. Delaunay diagrams can be generated from Voronoi diagrams and vice versa. In the method using the depth distribution diagram, the connection relationship of the skin groove read from the leather surface is used as it is, and since the Delaunay diagram is used when forming the skin groove, it is inferior to the former in terms of consistency.
このように、両者には夫々一長一短が存在するので、必要に応じて何れかの方法を選択すれば良い。ただし、以下に説明する実施形態においては、前者を採用している。 As described above, since both have advantages and disadvantages, either method may be selected as necessary. However, in the embodiment described below, the former is adopted.
[1.3 合成]
実施形態においては、複数の皮革の特徴をかけあわせて皮革形状データを生成する。このとき、皮革表面の凹凸形状の特徴は、複合毛包の配置パターンあるいは皮溝の形成パターンに特に依存することから、実施形態においては、夫々の皮革の複合毛包の配置パターンまたは皮溝の形成パターンをかけあわせるのである。
[1.3 Synthesis]
In the embodiment, leather shape data is generated by multiplying a plurality of leather features. At this time, since the feature of the uneven shape on the leather surface particularly depends on the arrangement pattern of the composite hair follicle or the formation pattern of the skin groove, in the embodiment, the arrangement pattern of the composite hair follicle of each leather or the skin groove The formation pattern is multiplied.
具体的には、複合毛包分布図及び重心分布図が示す出現確率分布の近似式を予め用意しておくとともに、この近似式に用いるパラメータを、特徴をかけあわせる皮革夫々について、前もって算出し、保存しておく。なお、前記パラメータを、「特徴パラメータ」と称する。また、複合毛包分布図についての特徴パラメータを、「複合毛包特徴パラメータ」と称し、重心分布図についての特徴パラメータを、「重心特徴パラメータ」(パラメータの一例)と称する。 Specifically, an approximate expression of the appearance probability distribution shown by the composite hair follicle distribution map and the center of gravity distribution map is prepared in advance, and the parameters used for this approximate expression are calculated in advance for each of the leathers to which the characteristics are multiplied, Save it. The parameters are referred to as “feature parameters”. In addition, the feature parameter for the composite hair follicle distribution map is referred to as “composite hair follicle feature parameter”, and the feature parameter for the center of gravity distribution map is referred to as “center of gravity feature parameter” (an example of a parameter).
そして、保存してある特徴パラメータを合成して、この合成された特徴パラメータを用いて、近似式により、出現確率分布を算出し、新たな複合毛包分布図及び重心分布図を生成する。 Then, the stored feature parameters are synthesized, and using the synthesized feature parameters, an appearance probability distribution is calculated by an approximate expression, and a new composite hair follicle distribution map and centroid distribution map are generated.
この新たな複合毛包分布図または重心分布図に従うことにより、複数の皮革の特徴をかけあわせたような皮革形状データを生成することができる。 By following this new composite follicle distribution map or centroid distribution map, it is possible to generate leather shape data that is a combination of a plurality of leather features.
また、実施形態においては、毛穴の凹凸形状を示す皮革形状データと皮溝の凹凸形状を示す皮革形状データとを合成する。 In the embodiment, the leather shape data indicating the uneven shape of the pores and the leather shape data indicating the uneven shape of the skin groove are synthesized.
皮革表面上には、皮溝が形成されているとともに、皮丘上に孔が形成されている場合がある。哺乳類や鳥類の皮革であれば、この孔は毛穴であったり汗腺であったりするが、実施形態においては、この孔を毛穴と仮定する。そして実施形態においては、上記の合成を行うことにより、複合毛包の配置パターン及び皮溝の形成パターンの特徴が表現された皮革形状データを生成することができる。 A leather groove may be formed on the leather surface, and a hole may be formed on the leather hill. In the case of leather of mammals and birds, this hole is a pore or a sweat gland, but in the embodiment, this hole is assumed to be a pore. In the embodiment, by performing the above synthesis, it is possible to generate leather shape data in which the characteristics of the arrangement pattern of the composite hair follicle and the formation pattern of the groove are expressed.
なお、必ずしも複数の皮革の特徴をかけあわせる必要はなく、また、毛穴の凹凸形状を示す皮革形状データと皮溝の凹凸形状を示す皮革形状データとを合成する必要もない。 It is not always necessary to combine the features of a plurality of leathers, and it is not necessary to synthesize leather shape data indicating the uneven shape of the pores and leather shape data indicating the uneven shape of the skin grooves.
[2.実施形態]
次に、皮革形状データ生成装置に対して本発明を適用した場合の実施形態について説明する。
[2. Embodiment]
Next, an embodiment when the present invention is applied to a leather shape data generation device will be described.
[2.1 皮革形状データ生成装置の構成及び機能概要]
先ず、図3を参照して、本実施形態に係る皮革形状データ生成装置の構成及び概要機能について説明する。
[2.1 Structure and function overview of leather shape data generator]
First, with reference to FIG. 3, the structure and outline | summary function of the leather shape data generation apparatus which concern on this embodiment are demonstrated.
図3は、本実施形態に係る皮革形状データ生成装置Sの概要構成例を示す図である。 FIG. 3 is a diagram illustrating a schematic configuration example of the leather shape data generation device S according to the present embodiment.
図3に示すように、本実施形態に係る皮革形状データ生成装置Sは、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等を備える制御部10と、各種プログラム(例えば、皮革形状生成データプログラム)及びデータ等を記憶する記憶手段の一例としての記憶部20(例えば、ハードディスクドライブ等)と、を含んで構成されている。そして、制御部10は、形状測定装置の一例としての3次元入力装置1、外部入力装置2(例えば、キーボード、マウス等)及び表示装置3(例えば、CRT(Cathode Ray Tube)ディスプレイ、液晶ディスプレイ等)と接続されている。皮革形状データ生成装置Sとしては、例えば、パーソナルコンピュータなどを適用することができる。
As shown in FIG. 3, the leather shape data generation device S according to the present embodiment includes a
3次元入力装置1は、皮革表面の3次元座標を、数μmから数十μmピッチで測定して、測定対象物である皮革表面の皮革形状データを生成し、この皮革形状データを、皮革形状データ生成装置に対して出力するようになっている。
The three-
この皮革形状データの形式は、所謂、ハイトフィールドと呼ばれるものである。具体的に、この形式においては、測定された皮革表面上の或る位置を原点として、この原点を通り且つ皮革表面と略平行する平面上の各座標における皮革表面の高度を、2次元配列で表現したものである。この高度は、例えば、0〜255の256段階で表され、0を黒色、255を白色、1〜254を、それぞれの値に応じた灰色で表現すると、ハイトフィールドにより、皮革表面の凹凸形状を、グレースケールの2次元画像で表現することができる。 The format of the leather shape data is a so-called height field. Specifically, in this format, the height of the leather surface at each coordinate on a plane passing through this origin and substantially parallel to the leather surface is defined as a two-dimensional array with a certain position on the leather surface as the origin. It is a representation. This altitude is expressed by, for example, 256 levels from 0 to 255, where 0 is black, 255 is white, and 1 to 254 is expressed in gray according to each value. , And can be expressed as a grayscale two-dimensional image.
この3次元入力装置1としては、例えば、レーザーを利用した非接触式計測装置(例えば、3次元スキャナー)や、針を利用した接触式計測装置を適用することができる。
As the three-
また、3次元入力装置1としては、2次元スキャナーを適用することもできる。2次元スキャナーは、本来、2次元平面上の反射率から、対象物の濃淡値を測定する装置であるが、皮革表面の形状のような微細な凹凸形状を測定した場合、この凹凸形状の傾きによって反射率が変化することから、この変化から、対象物の凹凸形状をとらえることができる。
As the three-
なお、2次元スキャナーを適用した場合には、3次元スキャナー等と比較して、システムを安価に構成することができるが、測定精度は低くなる。 When a two-dimensional scanner is applied, the system can be configured at a lower cost than a three-dimensional scanner or the like, but the measurement accuracy is lowered.
制御部10は、3次元入力装置制御部11と、皮革形状データ取得手段、位置特定手段、隣接深み点特定手段、特徴データ生成手段、シワ特定手段、皮丘特定手段、パラメータ生成手段の一例としての特徴抽出部12と、合成手段の一例としての特徴合成部13と、皮革形状データ生成手段の一例としての皮革形状生成部14とを含んで、論理的に構成されている。
The
そして、CPUが、ROMや記憶部20に記憶された各種プログラムを読み出し実行することにより、制御部10が皮革形状データ生成装置Sの各部を制御するとともに、3次元入力装置制御部11、特徴抽出部12、特徴合成部13及び皮革形状生成部14が上述した各手段等として機能するようになっている。
Then, the CPU reads out and executes various programs stored in the ROM and the
なお、各種プログラム等は、例えば、サーバ装置等からネットワークを介して取得されるようにしても良いし、CD−ROM等の記録媒体に記録されてディスクドライブ等を介して読み込まれるようにしても良い。 Various programs may be acquired from a server device or the like via a network, or may be recorded on a recording medium such as a CD-ROM and read via a disk drive or the like. good.
3次元入力装置制御部11は、3次元入力装置1の動作を制御するとともに、当該3次元入力装置1から出力された皮革形状データを皮革形状データベース21に登録するようになっている。
The three-dimensional input
特徴抽出部12は、皮革形状データベース21に登録された皮革形状データを読み出し、当該皮革形状データに基づいて、複合毛包分布図と毛穴分布図とを生成するとともに、生成された複合毛包分布図に基づいて、複合毛包特徴パラメータを算出して、毛穴分布図と複合毛包特徴パラメータとを、特徴パラメータデータベース22に登録するようになっている。また、特徴抽出部12は、重心分布図とシワパラメータとを生成するとともに、生成された重心分布図に基づいて、重心特徴パラメータを算出して、シワパラメータと重心特徴パラメータとを、特徴パラメータデータベース22に登録するようになっている。
The
特徴合成部13は、特徴パラメータデータベース22に登録された複数の複合毛包特徴パラメータを読み出し、これらの複合毛包特徴パラメータを合成して新たな複合毛包特徴パラメータを生成し、この複合毛包特徴パラメータを特徴パラメータデータベース22に登録するようになっている。このとき、特徴合成部13は、読み出された複合毛包特徴パラメータに夫々対応する毛穴分布図の一部または全部を、新たに生成された複合毛包特徴パラメータと対応付けて特徴パラメータデータベース22に登録するようになっている。
The
また、特徴合成部13は、特徴パラメータデータベース22に登録された複数の重心特徴パラメータとシワパラメータとを読み出し、重心特徴パラメータを合成して新たな重心特徴パラメータを生成するとともに、シワパラメータを合成して新たなシワパラメータを生成して、この新しい重心特徴パラメータ及びシワパラメータを対応付けて特徴パラメータデータベース22に登録するようになっている。
The
なお、特徴合成部13による合成処理によって新たに生成された特徴パラメータを、「合成特徴パラメータ」と称する。
Note that the feature parameter newly generated by the synthesis process by the
皮革形状生成部14は、特徴パラメータデータベース22に登録された複合毛包特徴パラメータと毛穴分布図とに基づいて新たな皮革形状データを生成するようになっている。また、皮革形状生成部14は、特徴パラメータデータベース22に登録された重心特徴パラメータとシワパラメータとに基づいて新たな皮革形状データを生成するようになっている。また、皮革形状生成部14は、これら2つの皮革形状データを合成して新たな皮革形状データを生成するようになっている。そして、皮革形状生成部14は、生成された皮革形状データを皮革形状データベース23に登録するようになっている。
The leather
なお、3次元入力装置制御部11乃至皮革形状生成部14の具体的な処理内容は、後述する。
The specific processing contents of the three-dimensional input
記憶部20には、皮革形状データベース21、特徴パラメータデータベース22、皮革形状データベース23が構築されている。
In the
皮革形状データベース21には、3次元入力装置1から出力された皮革形状データが、その識別情報と対応付けて登録されている。
In the
特徴パラメータデータベース22には、制御部10により生成された複合毛包特徴パラメータ、毛穴分布図、重心特徴パラメータ及びシワパラメータが、その識別情報と対応付けて登録されている。
In the
皮革形状データベース23には、制御部10により生成された皮革形状データが、その識別情報と対応付けて登録されている。この皮革形状データベース23に登録されている皮革形状デーが、テクスチャ画像、バンプ画像、ディスプレイスメントマッピング画像等として利用されることとなる。なお、皮革形状データベース21と皮革形状データベース23とを統合して、一つのデータベースで皮革形状データを管理しても良い。
In the
[2.2 皮革形状データ生成装置の動作]
次に、皮革形状データ生成装置Sの動作について説明する。
[2.2 Operation of leather shape data generator]
Next, the operation of the leather shape data generation device S will be described.
[2.2.1 皮革形状データ抽出・合成・生成処理の概要]
はじめに、皮革形状データ生成装置Sにおける全体的な処理である皮革形状データ抽出・合成・生成処理について、図4乃至図6を用いて説明する。図4は、本実施形態に係る皮革形状データ生成装置Sの皮革形状データ抽出・合成・生成処理の処理例を示すフローチャートである。また、図5は、毛穴の特徴が現れた皮革形状データをグレースケール画像で表した場合の一例を示す図である。また、図6は、皮溝の特徴が現れた皮革形状データをグレースケール画像で表した場合の一例を示す図である。
[2.2.1 Overview of leather shape data extraction / synthesis / generation processing]
First, leather shape data extraction / synthesis / generation processing, which is an overall process in the leather shape data generation apparatus S, will be described with reference to FIGS. FIG. 4 is a flowchart illustrating a processing example of leather shape data extraction / synthesis / generation processing of the leather shape data generation device S according to the present embodiment. FIG. 5 is a diagram illustrating an example in which the leather shape data in which pore features appear is represented by a grayscale image. Moreover, FIG. 6 is a figure which shows an example at the time of expressing the leather shape data in which the feature of the skin groove appeared with the gray scale image.
なお、毛穴についての特徴抽出、合成及び皮革形状データ生成と、皮溝についての特徴抽出、合成及び皮革形状データ生成とは、通常別々に行われるが、基本的な処理の流れは同様であるので、何れも図4に示すフローチャートを用いて説明する。 Note that feature extraction, synthesis, and leather shape data generation for pores and feature extraction, synthesis, and leather shape data generation for skin grooves are usually performed separately, but the basic processing flow is the same. These will be described with reference to the flowchart shown in FIG.
最初に、毛穴に関する処理について説明する。 First, processing related to pores will be described.
先ず、外部入力装置2をオペレータが操作することによって、皮革形状データの入力が指示されると、図1に示すように、3次元入力装置制御部11は、3次元入力装置1を制御して、皮革表面の凹凸形状を測定させて、3次元入力装置1から皮革形状データを入力し、新たに識別情報を割り当てて、皮革形状データを、この識別情報に対応付けて皮革形状データベース21に登録する(ステップS1)。このとき、3次元入力装置1は、例えば、皮革表面の9cm×9cmの領域について、90μmピッチでその高度(例えば、256段階で表現)を測定し、1001×1001のハイトフィールドとして皮革形状データを生成する。
First, when an operator inputs the leather shape data by operating the
図5は、毛穴の特徴が現れた皮革形状データをグレースケール画像で表現した例であり、同図においては、便宜上、画像サイズを60ピッチ×60ピッチ、高度を6段階で示している。 FIG. 5 is an example in which the leather shape data in which pore features appear is represented by a gray scale image. In FIG. 5, for the sake of convenience, the image size is indicated by 60 pitches × 60 pitches and the altitude is indicated by six levels.
次いで、特徴量抽出部12は、後述する毛穴用の特徴抽出処理を実行することにより、皮革形状データベース21に登録されている皮革形状データに基づいて、特徴パラメータと毛穴分布図とを生成し、これらを特徴パラメータデータベース22に登録する(ステップS2)。
Next, the feature
次いで、制御部10は、オペレータによる外部入力装置2の選択操作に基づいて、特徴パラメータを合成するか否かを判定する(ステップS3)。ここで、特徴パラメータを合成する場合には(ステップS3:YES)、特徴合成部13が、後述する後述する毛穴用の特徴合成処理を実行することにより、特徴パラメータデータベース22に登録されている特徴パラメータデータを合成して、合成特徴パラメータを生成し、これを特徴パラメータデータベース22に登録する(ステップS4)。その後、制御部10は、ステップS5に移行する。一方、特徴パラメータを合成しない場合には(ステップS3:NO)、ステップS5に移行する。
Next, the
そして、ステップS5において、皮革形状生成部14が、後述する毛穴用の皮革形状生成処理を実行することにより、特徴パラメータデータベース22に登録されている複合毛包特徴パラメータと毛穴分布図とに基づいて、新たな皮革形状データを生成し、これを皮革形状データベース23に登録する。このとき、皮革形状生成部14は、ステップS3において、特徴パラメータを合成すると判定されていた場合には(ステップS3:YES)、合成特徴パラメータを用いて処理を行い、特徴パラメータを合成しないと判定されていた場合には(ステップS3:NO)、通常の特徴パラメータを用いて処理を行う。
And in step S5, the leather shape production |
この処理を終えると、制御部10は、皮革形状データ抽出・合成・生成処理を終了させる。
When this process ends, the
次に、皮溝に関する処理について説明する。 Next, processing related to the skin groove will be described.
先ず、毛穴の場合と同様にして、3次元入力装置制御部11は、3次元入力装置1から皮革形状データを入力し、新たに識別情報を割り当てて、皮革形状データを、この識別情報に対応付けて皮革形状データベース21に登録する(ステップS1)。
First, as in the case of pores, the three-dimensional
図6は、皮溝の特徴が現れた皮革形状データをグレースケール画像で表現した例であり、同図においては、便宜上、画像サイズを50ピッチ×50ピッチ、高度を6段階で示している。 FIG. 6 is an example in which the leather shape data in which the feature of the skin groove appears is expressed by a gray scale image. In FIG. 6, for the sake of convenience, the image size is 50 pitch × 50 pitch and the altitude is shown in 6 levels.
次いで、特徴量抽出部12は、後述する皮溝用の特徴抽出処理を実行することにより、皮革形状データベース21に登録されている皮革形状データに基づいて、特徴パラメータとシワパラメータとを生成し、これらを特徴パラメータデータベース22に登録する(ステップS2)。
Next, the feature
なお、同一の皮革から毛穴の特徴と皮溝の特徴の両方を抽出する場合には、皮革形状データを入力した後、毛穴用の特徴抽出処理と皮溝用の特徴抽出処理とを連続して実行しても良い。 In addition, when extracting both the feature of the pore and the feature of the skin groove from the same leather, after inputting the leather shape data, the feature extraction process for the pore and the feature extraction process for the skin groove are continuously performed. May be executed.
次いで、制御部10は、毛穴の場合と同様にして、特徴パラメータを合成する場合には(ステップS3:YES)、特徴合成部13が、後述する後述する皮溝用の特徴合成処理を実行することにより、特徴パラメータデータベース22に登録されている特徴パラメータデータを合成して、合成特徴パラメータを生成し、これを特徴パラメータデータベース22に登録し(ステップS4)、制御部10は、ステップS5に移行する。一方、特徴パラメータを合成しない場合には(ステップS3:NO)、ステップS5に移行する。
Next, in the same manner as in the case of pores, the
そして、ステップS5において、皮革形状生成部14が、後述する皮溝用の皮革形状生成処理を実行することにより、特徴パラメータデータベース22に登録されている皮溝特徴パラメータとシワパラメータとに基づいて、新たな皮革形状データを生成し、これを皮革形状データベース23に登録する。
And in step S5, the leather shape production |
この処理を終えると、制御部10は、皮革形状データ抽出・合成・生成処理を終了させる。
When this process ends, the
その後、皮革形状生成部14が、必要に応じて、皮革形状データベース23に登録されている毛穴の特徴を表した皮革形状データと皮溝の特徴を表した皮革形状データとを合成することによって、新たな皮革形状データを生成し、これを皮革形状データベース23に登録する。
After that, the leather
[2.2.2 特徴抽出処理]
次に、前記ステップS2の特徴抽出処理について説明する。
[2.2.2 Feature extraction processing]
Next, the feature extraction process in step S2 will be described.
[2.2.2.1 毛穴用特徴抽出処理]
先ず、毛穴用の特徴抽出処理について、図7乃至図22を用いて説明する。
[2.2.2.1 Feature extraction processing for pores]
First, feature extraction processing for pores will be described with reference to FIGS.
図7は、本実施形態に係る皮革形状データ生成装置Sの毛穴用特徴抽出処理の処理例を示すフローチャートである。また、図8は、毛穴候補の位置を、皮革形状データのグレースケール画像に重ね合わせて表示させた場合の一例を示す図である。また、図9は、高度毎における毛穴の候補の出現個数の分布のグラフを示す図である。また、図10(a)及び(b)は、毛穴の候補から毛穴を特定する方法の一例を示す図である。また、図11は、毛穴点を皮革形状データのグレースケール画像に重ね合わせて表示させた場合の一例を示す図である。また、図12は、複合毛包の予測される位置、範囲、隣接関係を、皮革形状データのグレースケール画像に重ね合わせて表示させた場合の一例を示す図である。 FIG. 7 is a flowchart illustrating a processing example of the feature extraction processing for pores of the leather shape data generation device S according to the present embodiment. FIG. 8 is a diagram showing an example in which the positions of pore candidates are displayed superimposed on the grayscale image of the leather shape data. FIG. 9 is a graph showing a distribution of the appearance number of pore candidates at each altitude. FIGS. 10A and 10B are diagrams illustrating an example of a method for identifying pores from pore candidates. Moreover, FIG. 11 is a figure which shows an example at the time of displaying a pore point superimposed on the gray scale image of leather shape data. FIG. 12 is a diagram showing an example in which the predicted position, range, and adjacency relationship of the composite hair follicle are displayed superimposed on the gray scale image of the leather shape data.
また、図13は、隣接する毛穴点間の距離毎における、隣接する毛穴点の出現個数の分布のグラフを示す図である。また、図14は、特定された複合毛包点を皮革形状データのグレースケール画像に重ね合わせて表示させた場合の一例を示す図である。また、図15は、毛穴分布図の一例を示す図である。また、図16は、複合毛包分布図の一例を示す図である。また、図17は、複合毛包点からの放射方向における距離を横軸、放射方向の角度を縦軸として、図16に示す複合毛包分布図を新たな座標系に変換して得られた図の一例を示す図である。 FIG. 13 is a graph showing a distribution of the number of appearances of adjacent pore points for each distance between adjacent pore points. Moreover, FIG. 14 is a figure which shows an example at the time of overlaying and displaying the identified compound hair follicle point on the gray scale image of leather shape data. FIG. 15 is a diagram illustrating an example of a pore distribution diagram. FIG. 16 is a diagram showing an example of a composite hair follicle distribution diagram. FIG. 17 is obtained by converting the composite hair follicle distribution map shown in FIG. 16 into a new coordinate system, with the distance in the radial direction from the composite hair follicle point being the horizontal axis and the angle in the radial direction being the vertical axis. It is a figure which shows an example of a figure.
また、図18は、隣接する複合毛包点の重心を、複合毛包分布図に重ね合わせて表示させた場合の一例を示す図である。また、図19は、隣接する複合毛包点の重心から推定された楕円形状を、複合毛包分布図に重ね合わせて表示させた場合の一例を示す図である。また、図20は、複合毛包の中心からの放射方向における距離を横軸、放射方向の角度を縦軸として、図19に示す図を変形して得られた図の一例を示す図である。また、図21は、複合毛包点からの放射方向における、隣接する複合毛包が出現する確率密度関数から、偏差σ1と偏差σ2とを求める方法の一例を示す図である。また、図22は、偏差σ1と偏差σ2のグラフ及び夫々に近似する正弦波のグラフの一例を示す図である。 Moreover, FIG. 18 is a figure which shows an example at the time of displaying the gravity center of an adjacent composite hair follicle point superimposed on a composite hair follicle distribution map. FIG. 19 is a diagram illustrating an example in which an elliptical shape estimated from the center of gravity of adjacent composite hair follicle points is displayed superimposed on the composite hair follicle distribution diagram. FIG. 20 is a diagram showing an example of a diagram obtained by modifying the diagram shown in FIG. 19 with the distance in the radial direction from the center of the composite hair follicle as the horizontal axis and the angle in the radial direction as the vertical axis. . FIG. 21 is a diagram illustrating an example of a method for obtaining the deviation σ1 and the deviation σ2 from the probability density function in which adjacent complex hair follicles appear in the radial direction from the complex hair follicle point. FIG. 22 is a diagram illustrating an example of a graph of the deviation σ1 and the deviation σ2 and a graph of a sine wave approximated to each.
オペレータが外部入力装置2を操作したことによって、処理に用いるべき皮革形状データが識別情報等によって指定されると、図7に示すように、特徴抽出部12は、指定された皮革形状データを皮革形状データベースから読み出し、この皮革形状データから毛穴点の位置を抽出する(ステップS11)。ここで、毛穴点とは、毛穴が配置されている位置を示す点であり、本実施形態においては、毛穴の中心を毛穴点とする。
When the operator operates the
具体的に、特徴抽出部12は、先ず、皮革形状データのグレースケール画像から濃淡値(高度)の極小値を抽出し、この極小値の座標を毛穴点の候補の位置とする。より詳細には、特徴抽出部12は、グレースケール画像上の注目画素の濃淡値と、周囲n×n(nは自然数)の各画素の濃淡値とを比較し、この中で、注目画素の濃淡値が最小値である場合に、この注目画素を毛穴点の候補の位置とする。この処理を、特徴抽出部12は、グレースケール画像上の全画素について行う。この結果を表した図が、図8である。
Specifically, the
このときの画素数lは、任意に決定することができるが、毛穴の縦または横の長さに相当する画素数であることが望ましいと考えられることから、例えば、皮革形状データのグレースケール画像を表示装置3に表示させ、この画像から毛穴の平均的な大きさをオペレータが判断して、画素数lを設定するようにしても良い。
The number of
特徴抽出部12は、毛穴点の候補の位置を抽出すると、この中から、不要な候補を削除する。つまり、特徴抽出部12は、毛穴の候補の中には毛穴ではない凹みであるものも含まれている可能性があることから、これらを排除するのである。
When the
図9は、高度毎における毛穴の候補の出現個数の分布をグラフ化して表した図であり、同図においては、正規分布のような分布が2つ(紙面左側の分布をP1、右側の分布をP2とする)現れていることが見てとれる。ここで、毛穴の高度は、毛穴以外の凹みの高度よりも低いと考えられることから、毛穴の分布は分布P1、毛穴以外の凹みの分布は分布P2と考えられる(つまり、分布P1は分布P2よりも高度が低い)。そこで、分布P1と分布P2との間のある高度を閾値(毛穴点の最高高度)として、この閾値で分布P1と分布P2とを分割し、閾値から右側の分布を削除することによって、毛穴の位置を特定することができる。 FIG. 9 is a graph showing the distribution of the number of appearances of pore candidates at each altitude. In this figure, there are two distributions such as a normal distribution (the distribution on the left side of the page is P1, the distribution on the right side). Can be seen as P2). Here, since the height of the pores is considered to be lower than the height of the dents other than the pores, the distribution of the pores is considered to be the distribution P1, and the distribution of the dents other than the pores is considered to be the distribution P2 (that is, the distribution P1 is the distribution P2). Less altitude). Therefore, by setting a certain altitude between the distribution P1 and the distribution P2 as a threshold (maximum altitude of pore points), the distribution P1 and the distribution P2 are divided by this threshold, and the distribution on the right side is deleted from the threshold. The position can be specified.
具体的には、分布P1は、左右がほぼ対称な分布と考えられることから、特徴抽出部12は、先ず、図10(a)に示すように、分布P1の最大値を求め、この最大値が得られる高度を境として左側の分布(図10(a)中太線)を特定し、この左側の分布を、最大値が得られる高度を通り且つx軸に垂直な線を対称軸として反転させて、図10(b)に示すように、線対称な分布を得る(図10(b)中太線)。そして、特徴抽出部12は、この分布の面積を求め、この分布の面積と、この面積のうち0〜閾値までの面積との比率を、例えば、100:99(この比率は任意に決定することができる)とし、この比率になるように閾値を求める。
Specifically, since the distribution P1 is considered to be a substantially symmetrical distribution, the
なお、場合によっては、3個以上の分布が現れたり、2つの分布が重なって、一見して分布が明確に区別できないようなこともあるが、上述した方法を用いることで、比較的良好に閾値を求めることができる。 In some cases, three or more distributions may appear, or two distributions may overlap, and the distributions may not be clearly distinguished at first glance. A threshold can be determined.
特徴抽出部12は、こうして求めた閾値より高い高度にある毛穴点の候補を削除して、毛穴点の位置を抽出する。この結果を表した図が、図11である。
The
次いで、特徴抽出部12は、抽出された毛穴の位置に基づいて、密集している毛穴を同一の複合毛包に分類することによって、複合毛包を抽出し、複合毛包点の位置を算出する(ステップS12)。ここで、複合毛包点とは、複合毛包が配置される位置を示す点であり、本実施形態においては、複合毛包内の毛穴点の重点をとする。
Next, the
ここで、先ず、複合毛包の抽出方法について説明する。複合毛包は、複数の毛包が密集してできるものであるから、複合毛包内の毛穴間の距離は、複合毛包の各毛穴から他の複合毛包の毛穴までの距離よりも短いものと考えられる。従って、ある複合毛包に属する毛穴は、その複合毛包点を中心とした所定半径の円内に位置するものと推定することができる。そこで、この半径を求め、これに基づいて複合毛包を抽出すれば良いこととなる。 Here, first, a method for extracting a composite hair follicle will be described. Since the composite hair follicle is formed by a plurality of follicles being densely packed, the distance between the pores in the composite hair follicle is shorter than the distance from each pore of the composite hair follicle to the pores of the other composite hair follicles. It is considered a thing. Therefore, it can be estimated that a pore belonging to a certain composite follicle is located within a circle having a predetermined radius centered on the composite follicle point. Therefore, it is only necessary to obtain this radius and extract a composite hair follicle based on this radius.
図12においては、複合毛包の範囲を、その複合毛包点を中心とした半径Tの円として表し、複合毛包点をドロネー点としてドロネー分割を行った場合のドロネー辺を、隣接する複合毛包点間の接続線として表している。同図から、この接続線で表される隣接する複合毛包間の平均距離の約1/2が、半径Tになると推測することができる。 In FIG. 12, the range of the composite hair follicle is represented as a circle having a radius T around the composite hair follicle point, and Delaunay sides in the case where Delaunay division is performed using the composite hair follicle point as a Delaunay point are adjacent composites. It represents as a connection line between hair follicle points. From this figure, it can be inferred that the radius T is about ½ of the average distance between adjacent composite hair follicles represented by this connecting line.
ところが、先に複合毛包を抽出して複合毛包点の位置を算出しておかないと、複合毛包点間の距離を算出することができない。そこで、本実施形態においては、隣接する毛穴点間の距離に基づいて、半径Tを算出することとした。 However, the distance between the composite hair follicle points cannot be calculated unless the composite hair follicle points are first extracted and the positions of the composite hair follicle points are calculated. Therefore, in the present embodiment, the radius T is calculated based on the distance between adjacent pore points.
具体的に、特徴抽出部12は、抽出された毛穴点をドロネー点としてドロネー図を生成し、ドロネー辺によって直接接続されたドロネー点である毛穴点同士は隣接するものと認定する。そして、特徴抽出部12は、全ての隣接する毛穴点間の距離を求め、この距離を整数に正規化した上で、この距離毎の出現個数をカウントする。このときの出現個数のグラフが、図13である。
Specifically, the
このグラフで示される分布から複合毛包点間の距離を算出して、これから閾値である半径Tを求めることとすると、3次元入力装置1において測定範囲を変える毎に閾値Tにバラツキが生じてしまうことがある。そこで、この分布の面積のうち閾値Tを超える部分の面積(図中、黒色で塗りつぶされた部分)が、当該分布全体の面積の5%であると仮定した場合に、この閾値Tが複合毛包間の平均距離の1/2に近いことが、本願発明の発明者等が或る皮革について閾値Tの算出を試行したときに判明していたことから、本実施形態においては、0〜閾値Tにおける当該分布の面積が当該分布全体の面積の95%となるように、閾値Tを算出することとした。なお、閾値Tの算出方法は、これに限られるものではない。
If the distance between the compound hair follicle points is calculated from the distribution shown in this graph and the radius T, which is the threshold value, is obtained from this, the threshold value T varies each time the measurement range is changed in the three-
特徴抽出部12は、閾値Tを算出すると、この閾値Tに基づいて毛穴のグループ分けを行う。具体的に、特徴抽出部12は、互いの距離が閾値T以下となる毛穴点同士をグループ化し、この処理を、互いの距離が最も短い毛穴点同士から開始して、閾値Tを超えた時点で終了させる。このとき、3個以上の毛穴点が一つの複合毛包に属するような場合には、既にグループ化されている毛穴点と、未だグループ化されていない毛穴点とをまとめて一つのグループにする必要があるが、特徴抽出部12は、既にグループ化されている毛穴点の重心とグループ化されていない毛穴点との距離に基づいてグループ化を行う。つまり、特徴抽出部12は、この距離が閾値T以下であれば、既にグループ化されている毛穴点とグループ化されていない毛穴点とをまとめて一つのグループにするのである。このようにすることで、複合毛包点を中心とした半径T以内に位置する毛穴点は、この複合毛包に属するとした前提に近い形でグループ化を行うことができる。
After calculating the threshold value T, the
特徴抽出部12は、グループ化を終えると、夫々のグループを複合毛包と認定し、複合毛包点の位置を算出して、この値を保持する。この結果を表した図が、図14である。
After completing the grouping, the
次いで、特徴抽出部12は、複合毛包内の毛穴同士の位置関係に基づいて、毛穴分布図を生成する(ステップS13)。
Next, the
具体的に、特徴抽出部12は、複合毛包内における毛穴点の、その複合毛包点を原点とした相対位置(2次元座標)を求め、この処理を全複合毛包に対して行う。そして、特徴抽出部12は、毛穴点の出現個数を、複合毛包点からの相対位置毎にカウントする。特徴抽出部12は、このようにして求められた出現確率を表す2次元画像を毛穴分布図として生成し、これを、皮革形状データの識別情報と対応付けて特徴パラメータデータベース22に登録する。
Specifically, the
図15は、出現確率が最も高い画素位置は白色とし、出現確率が最も低い位置を黒色として、毛穴分布図を表示させた場合の図であり、毛穴分布図上における各画素の位置は、複合毛包点からの相対的な位置に対応している。また、同図においては、便宜上、出現確率を6段階で示している。 FIG. 15 is a diagram when a pore distribution map is displayed with the pixel position with the highest appearance probability being white and the position with the lowest appearance probability being black, and the position of each pixel on the pore distribution map is a composite It corresponds to the relative position from the hair follicle point. In the same figure, the appearance probability is shown in six stages for convenience.
次いで、特徴抽出部12は、複合毛包分布図を生成する(ステップS14)。
Next, the
具体的に、特徴抽出部12は、算出された複合毛包点をドロネー点としてドロネー図を生成し、ドロネー辺によって直接接続されたドロネー点である複合毛包点同士は隣接するものと認定する。
Specifically, the
次いで、特徴抽出部12は、注目する複合毛包点を原点として、これに隣接する複合毛包点の相対位置(2次元座標)を求め、この位置を整数に正規化し、この処理を全複合毛包点に対して行う。そして、特徴抽出部12は、隣接する複合毛包点の出現個数を、注目する複合毛包点からの相対位置毎にカウントする。特徴抽出部12は、このようにして求められた出現確率を表す2次元画像を複合毛包分布図として生成する。
Next, the
図16は、出現確率が最も高い画素位置は白色とし、出現確率が最も低い位置を黒色として、複合毛包分布図を表示させた場合の図であり、複合毛包分布図上における各画素の位置は、注目する複合毛包点からの相対的な位置に対応している。また、同図においては、便宜上、出現確率を6段階で示している。 FIG. 16 is a diagram in the case where the pixel position with the highest appearance probability is white and the position with the lowest appearance probability is black and the composite hair follicle distribution map is displayed. The position corresponds to the relative position from the compound follicle point of interest. In the same figure, the appearance probability is shown in six stages for convenience.
次いで、特徴抽出部12は、生成された複合毛包分布図に基づいて複合毛包特徴パラメータを算出する(ステップS15)。
Next, the
具体的に、図16に示すように、隣接する複合毛包点は、注目する複合毛包点を中心とした楕円上に分布していることから、特徴抽出部12は、先ず、この楕円の式を求める。 Specifically, as shown in FIG. 16, the adjacent complex hair follicle points are distributed on an ellipse centered on the compound hair follicle point of interest. Find the expression.
より詳細に、特徴抽出部12は、複合毛包分布図を、複合毛包点から所定方向(例えば、図16中の紙面上方向)を基準とした角度θをy軸、複合毛包点からの放射方向における距離をx軸とする新たな座標系に変換する。このように変換された複合毛包分布図が、図17である。
More specifically, the
次いで、特徴抽出部12は、新たな座標系に基づいて、各角度毎における隣接する複合毛包点の確率分布から、この角度における複合毛包点の重心を算出する。このようにして算出された重心を、複合毛包分布図に重ね合わせて表示させた図が、図18である。
Next, the
特徴抽出部12は、複合毛包の重心群から、最小二乗法を用いて、以下の式(1)で表される楕円形状を推定する。
The
次いで、特徴抽出部12は、推定された楕円を、前述した新たな座標系に変換する。その結果を示す図が、図20である。
Next, the
次いで、特徴抽出部12は、新たな座標系に変換された複合毛包分布図及び楕円を、角度毎に切り出し(図21の上部参照)、確率分布を所定の確率密度関数で角度毎に近似する。この確率密度関数f(x)は、以下の式(2)により表すことができる。
Next, the
上記式により、角度毎における確率分布f(x)は、半径μ、偏差σ1、偏差σ2によって求められることが分かる。このとき、角度θをx軸、偏差をy軸とする、偏差σ1と偏差σ2とのグラフは、図22に示すように折れ線グラフとなる。ここで、隣接する複合毛包点は、注目する複合毛包点を中心とした楕円上に分布しているので、この楕円形状に対応して、偏差σ1のグラフと偏差σ2のグラフとは夫々正弦波に近くなることから、特徴抽出部12は、最小二乗法を用いて、以下の式(1)で、正弦波S(θ)を推定する。
From the above equation, it can be seen that the probability distribution f (x) for each angle is obtained by the radius μ, the deviation σ 1 , and the deviation σ 2 . At this time, the graph of the deviation σ 1 and the deviation σ 2 with the angle θ as the x-axis and the deviation as the y-axis is a line graph as shown in FIG. Here, since the adjacent compound follicle points are distributed on an ellipse centered on the compound follicle point of interest, a graph of deviation σ 1 and a graph of deviation σ 2 Since each is close to a sine wave, the
以上のように、複合毛包分布図が示す情報、すなわち、注目する複合毛包に隣接する複合毛包が、注目する複合毛包点を基準として出現する確率分布は、式(1)乃至式(4)及び式(6)で近似することができる。つまり、傾きβ、長半径a、短半径b、半径μ、角度毎の偏差σ1と偏差σ2で複合毛包分布図を近似的に求めることができる。ここで、半径μは、楕円形状の式(1)から算出可能であるため、不要である。また、角度毎の偏差σ1と偏差σ2は、夫々式(6)で近似することができるので、偏差σ1は、振幅d1、位相ψ1、偏差の平均値f1で、また、偏差σ2は、振幅d2、位相ψ2、偏差の平均値f2で表すことができる。 As described above, the information shown by the composite hair follicle distribution map, that is, the probability distribution in which the composite hair follicle adjacent to the target composite hair follicle appears on the basis of the target composite hair follicle point is expressed by the equations (1) to (1). It can be approximated by (4) and equation (6). That is, the composite follicle distribution map can be approximately obtained from the inclination β, the major radius a, the minor radius b, the radius μ, and the deviation σ 1 and deviation σ 2 for each angle. Here, the radius μ is not necessary because it can be calculated from the elliptical expression (1). Since the deviation σ 1 and the deviation σ 2 for each angle can be approximated by the equation (6), the deviation σ 1 is the amplitude d 1 , the phase ψ 1 , and the average value f 1 of the deviation, The deviation σ 2 can be represented by the amplitude d 2 , the phase ψ 2 , and the average value f 2 of the deviation.
従って、複合毛包分布図は、傾きβ、長半径a、短半径b、振幅d1、位相ψ1、偏差の平均値f1、振幅d2、位相ψ2、偏差の平均値f2で求めることができるので、特徴抽出部12は、この9個のパラメータを複合毛包特徴パラメータとし、これを皮革形状データの識別情報と対応付けて特徴パラメータデータベース22に登録する。これにより、毛穴分布図と特徴パラメータとが対応付けられることとなる。
Therefore, the composite follicle distribution diagram has a slope β, a major radius a, a minor radius b, an amplitude d 1 , a phase ψ 1 , an average deviation f 1 , an amplitude d 2 , a phase ψ 2 , and an average deviation f 2 . Therefore, the
この処理を終えると、特徴抽出部12は、毛穴用の特徴抽出処理を終了させる。
When this process ends, the
[2.2.2.2 皮溝用特徴抽出処理]
次に、皮溝用の特徴抽出処理について、図23乃至図40を用いて説明する。
[2.2.2.2 Skin feature extraction process]
Next, feature extraction processing for the skin groove will be described with reference to FIGS.
図23は、本実施形態に係る皮革形状データ生成装置Sの皮溝用特徴抽出処理の処理例を示すフローチャートである。図24は、皮革形状データのグレースケール画像をぼかした結果の一例を示す図である。また、図25は、皮革表面の形状からパターンの分類を行った結果の一例を示す図である。また、図26は、鞍点と極小点とを接続する方法の一例を説明する図である。また、図27(a)は、皮溝を単純化する前の極小点、鞍点及び皮溝の一例を示す図であり、図27(b)は、皮溝を単純化した後の極小点、鞍点及び皮溝の一例を示す図である。また、図28は、隣接する極小点同士を直線で接続する方法の一例を説明する図である。また、図29(a)は、或る皮革形状データを白黒2値画像で表した図であり、図29(b)は、皮溝を抽出した結果の一例を示す図である。 FIG. 23 is a flowchart illustrating a processing example of the feature extraction process for the skin groove of the leather shape data generation device S according to the present embodiment. FIG. 24 is a diagram illustrating an example of a result obtained by blurring a grayscale image of leather shape data. FIG. 25 is a diagram showing an example of the result of pattern classification based on the shape of the leather surface. FIG. 26 is a diagram illustrating an example of a method for connecting saddle points and local minimum points. FIG. 27 (a) is a diagram showing an example of the minimum point, saddle point and skin groove before simplifying the skin groove, and FIG. 27 (b) shows the minimum point after simplifying the skin groove, It is a figure which shows an example of a saddle point and a skin groove. FIG. 28 is a diagram for explaining an example of a method of connecting adjacent local minimum points with a straight line. FIG. 29A is a diagram representing certain leather shape data as a black and white binary image, and FIG. 29B is a diagram illustrating an example of a result of extracting a skin groove.
また、図30(a)は、閉領域を統合する方法の一例を説明する図であり、図30(b)は、閉領域を統合した結果の一例を示す図である。また、図31(a)は、シワを抽出する方法の一例を説明する図であり、図31(b)は、シワを抽出した結果の一例を示す図である。また、図32は、閉領域の重心点を抽出した結果の一例を示す図である。また、図33は、隣接する重心点を特定する方法の一例を説明する図である。また、図34は、重心分布図の一例を示す図である。 FIG. 30A is a diagram illustrating an example of a method for integrating the closed regions, and FIG. 30B is a diagram illustrating an example of a result of integrating the closed regions. FIG. 31A is a diagram illustrating an example of a method for extracting wrinkles, and FIG. 31B is a diagram illustrating an example of a result of extracting wrinkles. FIG. 32 is a diagram illustrating an example of a result of extracting the center of gravity point of the closed region. FIG. 33 is a diagram for explaining an example of a method of specifying adjacent barycentric points. FIG. 34 is a diagram illustrating an example of a center of gravity distribution diagram.
オペレータが外部入力装置2を操作したことによって、処理に用いるべき皮革形状データが識別情報等によって指定されると、図23に示すように、特徴抽出部12は、指定された皮革形状データを皮革形状データベースから読み出し、皮革表面の構造を解析する(ステップS51〜S53)。
When the operator operates the
先ず、特徴抽出部12は、構造解析前処理を実行する(ステップS51)。
First, the
具体的に、特徴抽出部12は、先ず、皮革形状データのグレースケール画像にぼかしを施す。つまり、特徴抽出部12は、皮革形状データに表現されている皮革表面の凹凸形状を滑らかにするのである。図24は、図6に示した皮革形状データに対してぼかしを施したものである。
Specifically, the
次いで、特徴抽出部12は、皮革形状データに表現されている皮革表面の凹凸形状を、極大点、極小点、尾根、谷、鞍点(鞍部の一例)及び斜面(その他)の6パターンに分類する。
Next, the
ここで、極大点とは、濃淡値(高度)が極大(白または白に近い色)となる点、すなわち、皮革表面において、周囲より高度が高い点である。また、極小点とは、濃淡値が極小(黒または黒に近い色)となる点、すなわち、皮革表面において、周囲より高度が低い点である。また、尾根とは、周囲より濃淡値が大きくなっている筋、すなわち、皮革表面において、突き出ている筋である。また、谷とは、周囲より濃淡値が小さくなっている筋、すなわち、皮革表面において、窪んでいる筋である。また、鞍点とは、尾根と谷との交点である。また、斜面とは、極大点、極小点、尾根、谷及び鞍点の何れにも分類されなかった点及び領域である。 Here, the maximum point is a point at which the gray value (altitude) becomes maximum (white or a color close to white), that is, a point where the altitude is higher than the surroundings on the leather surface. The minimum point is a point at which the gray value becomes a minimum (black or a color close to black), that is, a point whose altitude is lower than the surroundings on the leather surface. The ridge is a line having a gray value larger than that of the surrounding area, that is, a line protruding on the leather surface. Further, the valley is a streak whose shading value is smaller than the surroundings, that is, a streak that is depressed on the leather surface. A saddle point is an intersection of a ridge and a valley. In addition, the slope is a point or region that is not classified as any of a local maximum point, a local minimum point, a ridge, a valley, and a saddle point.
図25は、図24に示したぼかしを施した皮革形状データに表現されている皮革表面の凹凸形状を分類した結果を示している。なお、最低限、極小点と谷と鞍点とを特定することができれば良い。 FIG. 25 shows a result of classifying the uneven shape of the leather surface expressed in the blurred leather shape data shown in FIG. It is sufficient that at least the minimum points, valleys, and saddle points can be specified.
特徴抽出部12は、構造解析前処理を終えると、次いで、皮溝を単純化して抽出する(ステップS52)。具体的に、特徴抽出部12は、図26に示すように、全ての鞍点について、鞍点に繋がっている谷を全てトレースして隣接する極小点を特定すると、鞍点とこれに隣接する極小点とをリンクさせる。このようにして、特徴抽出部12は、例えば、図27(a)に示したような皮溝を、図27(b)に示したようなリンク線に置き換える。
After finishing the structural analysis preprocessing, the
次いで、特徴抽出部12は、リンク構造を単純化して極小点の接続関係を表現し、皮溝の特徴を抽出する。具体的に、特徴抽出部12は、図28に示すように、同一の鞍点にリンクしている極小点同士を直接リンクさせる。この時点で一つの極小点にしかリンクしていない鞍点からのリンク線は無視されることとなる。
Next, the
そして、特徴抽出部12は、極小点同士を直接リンクするリンク線を皮溝とし、極小点を深み点とする。また、皮溝に囲まれた領域は、皮丘に相当するが、これを閉領域と称する。また、リンク線をセグメントとも称する。このようにして、特徴抽出部12は、例えば、図29(a)に示す皮革形状データから、図29(b)に示すように皮溝を抽出する。
And the
次いで、特徴抽出部12は、抽出された皮溝のうち、後天的に形成されたと推定される皮溝、すなわち、先天的に形成された皮溝部分を除いたシワを除去する。具体的に、特徴抽出部12は、皮溝(セグメント)に囲まれた閉領域のうち、面積が小さいものから順に、これに隣接する領域と統合する。先天的に存在していた皮丘(閉領域)は、シワによって分断されることによってその面積が小さくなるので、シワによって分断された閉領域の面積は相対的に小さいと仮定して、これを他の皮丘と統合するのである。
Next, the
より詳細に、特徴抽出部12は、面積が小さいと判定された閉領域と、リンク線を間に挟んでこの閉領域に隣接する閉領域とを統合した場合にできる閉領域の真円度を、隣接する閉領域全てについて算出し、この真円度が最も大きい閉領域と統合する。なお、真円度は、4π×閉領域の面積÷閉領域の周囲の長さ、で求めることができる。
More specifically, the
ここで、真円度が最も大きくなる閉領域と統合することとしたのは、次に述べる理由による。皮丘の大きさがほぼ均等であり、且つ、皮膚表面に均等に力が加わって先天的な皮溝が形成されると仮定すると、隣接する皮丘の重心点同士を結ぶ線分に対して垂直に交わる線上あるいはその付近に皮溝が形成されるものと考えられる。このように皮溝が形成される場合、接続するセグメント同士が成す角度は鋭角になりにくいはずであるので、真円度が大きい閉領域同士を統合することとした。 Here, the reason for integrating with the closed region where the roundness is the largest is as follows. Assuming that the size of the dermis is approximately equal and that an innate skin groove is formed by applying an even force to the skin surface, the line segment connecting the barycentric points of adjacent dermis It is considered that a skin groove is formed on or in the vicinity of a perpendicular line. When the skin groove is formed in this way, the angle formed by the segments to be connected should not be an acute angle. Therefore, the closed regions having high roundness are integrated.
そして、特徴抽出部12は、所定個数分統合を行った時点、または、所定面積以下の閉領域が無くなった時点で、統合を終了させる。このようにして、例えば、図30(a)に示すように、シワによって分断された閉領域が統合され、その結果、図30(b)に示すように、先天的に形成されたと推定される皮溝のみが抽出される。
Then, the
特徴抽出部12は、皮溝の抽出を終えると、次いで、シワを抽出する(ステップS53)。具体的に、特徴抽出部12は、深み点におけるセグメント同士の接続角度が所定角度以上のセグメントをシワであると判定する。例えば、所定角度を150°とした場合、特徴抽出部12は、図31(a)に示すように、セグメントd1とセグメントd2とが成す角度が160°であるので、セグメントd1とセグメントd2は、シワとして繋がっていると判定する。一方、特徴抽出部12は、セグメントd1とセグメントd3とが成す角度が140°であるので、セグメントd1とセグメントd3は、シワとしては繋がってはいないと判定する。このようにして、特徴抽出部12は、全てのセグメントについてシワであるか否かの判定を行う。その結果、例えば、図31(b)に示すようにシワが抽出される。なお、所定角度を、150°以外に設定しても良い。
When the
特徴抽出部12は、シワを抽出したことによって構造解析処理を終えると、次いで、統計処理を行う(ステップS54〜S57)。
When the
先ず、特徴抽出部12は、統計前処理を実行する(ステップS54)。具体的に、特徴抽出部12は、抽出された全ての閉領域について、夫々その重心位置、すなわち、重心点の位置を算出する。その結果、例えば、図32に示すように、重心点が抽出される。同図において点で示されている部分が重心点である。
First, the
特徴抽出部12は、統計前処理を終えると、次いで、重心分布図を生成する(ステップS55)。具体的に、特徴抽出部12は、先ず抽出した重心点をドロネー点としてドロネー分割を行うことにより、ドロネー図を生成する。特徴抽出部12は、ドロネー辺によって直接接続されたドロネー点である重心点は隣接するものと認定する。そして、ドロネー図が生成された後は、複合毛包分布図の生成(図7ステップS14)と同様にして、例えば、図34に示すような重心分布図を生成する。
When the
次いで、特徴抽出部12は、生成された重心分布図に基づいて重心特徴パラメータを算出する(ステップS56)。具体的に、特徴抽出部12は、複合毛包分布図の場合(図7ステップS15)と同様にして、傾きβ、長半径a、短半径b、振幅d1、位相ψ1、偏差の平均値f1、振幅d2、位相ψ2、偏差の平均値f2で求め、この9個のパラメータを重心特徴パラメータとして、これを皮革形状データの識別情報と対応付けて特徴パラメータデータベース22に登録する。
Next, the
次いで、特徴抽出部12は、シワパラメータを生成する(ステップS57)。具体的に、特徴抽出部12は、シワとして抽出した全セグメントについて、深み点で接続するセグメント同士が成す角度の分布を求め、これを、正規分布として近似させて、標準偏差及び平均値を求める。また、特徴抽出部12は、各セグメントがx軸と成す角度を求め、この平均値を算出する。そして、特徴抽出部12は、このシワの分布の標準偏差及び平均値とシワの角度の平均値とをシワパラメータとして、これを皮革形状データの識別情報と対応付けて特徴パラメータデータベース22に登録する。
Next, the
特徴抽出部12は、シワパラメータの生成を終えると、皮溝用の特徴抽出処理を終了させる。
When the
以下、いくつかの皮革に基づいて、皮溝用の特徴抽出処理を行った結果を示す。 Hereinafter, the result of performing the feature extraction process for the skin groove based on several leathers will be shown.
図35及び図36は、第1の例である。ここで、図35(a)は、皮革形状データベース21から取得した皮革形状データであり、図35(b)は、皮溝の抽出結果である。また、図36(a)は、シワの抽出結果であり、図36(b)は、生成された重心分布図である。
35 and 36 show a first example. Here, FIG. 35 (a) is leather shape data acquired from the
第1の例では、皮革形状データにおいて、縦方向の皮溝が、紙面上下方向から反時計回りに約30度程度傾いているとともに、横方向の皮溝が、紙面左右方向から反時計回りに約20度程度傾いている。また、紙面上下方向から時計回りに約45°の方向における深み点(極小点)の間隔が他と比べて若干長くなっている。 In the first example, in the leather shape data, the vertical skin groove is inclined about 30 degrees counterclockwise from the vertical direction of the paper surface, and the horizontal skin groove is counterclockwise from the horizontal direction of the paper surface. It is tilted about 20 degrees. Further, the interval between the depth points (minimum points) in the direction of about 45 ° clockwise from the vertical direction on the paper surface is slightly longer than the others.
そして、重心分布図においては、注目する重心点を中心(重心分布図の中心)として、紙面上下方向からの角度が反時計回りに約30度付近に、隣接する重心点が集中しているとともに、紙面左右方向からの角度が反時計回りに約20度付近に、隣接する重心点が集中している。また、隣接する重心点は、紙面上下方向から時計回りに約45°に傾いた直線を長軸とした楕円形状を成して分布している。 In the center of gravity distribution map, with the center of gravity point of interest as the center (center of the center of gravity distribution map), the angle from the vertical direction on the page is approximately 30 degrees counterclockwise, and adjacent center of gravity points are concentrated. Adjacent barycentric points are concentrated when the angle from the left-right direction on the page is approximately 20 degrees counterclockwise. Adjacent barycentric points are distributed in an elliptical shape having a long axis as a straight line inclined about 45 ° clockwise from the vertical direction of the drawing.
図37及び図38は、第2の例である。ここで、図37(a)は、皮革形状データベース21から取得した皮革形状データであり、図37(b)は、皮溝の抽出結果である。また、図38(a)は、シワの抽出結果であり、図38(b)は、生成された重心分布図である。
37 and 38 show a second example. Here, Fig.37 (a) is the leather shape data acquired from the
第2の例では、皮革形状データにおいて、皮溝の方向性を特定することができない。 In the second example, the directionality of the skin groove cannot be specified in the leather shape data.
そして、重心分布図においては、隣接する重心点が、真円に近い状態でほぼ均一に分布している。 In the center-of-gravity distribution diagram, adjacent center-of-gravity points are distributed almost uniformly in a state close to a perfect circle.
図39及び図40は、第3の例である。ここで、図39(a)は、皮革形状データベース21から取得した皮革形状データであり、図39(b)は、皮溝の抽出結果である。また、図40(a)は、シワの抽出結果であり、図40(b)は、生成された重心分布図である。
39 and 40 show a third example. Here, FIG. 39A is leather shape data acquired from the
第3の例では、第1及び第2の例と比較すると、皮革形状データにおいては、皮丘の目が粗くなっている。つまり、深み点の間隔が全体的に長くなっている。 In the third example, as compared with the first and second examples, the skin of the leather is rougher in the leather shape data. That is, the interval between the depth points is longer overall.
そして、重心分布図においては、隣接する重心点により形成される円が第1及び第2の例と皮革して大きくなっている。 In the centroid distribution diagram, the circle formed by the adjacent centroid points is larger than the first and second examples.
このように、重心分布図は、皮溝の方向性や間隔などの特徴を良くとらえた情報であるといえる。従って、重心分布図をパラメータ化した重心特徴パラメータも皮溝の特徴を良くとらえた情報であるといえる。 Thus, it can be said that the center-of-gravity distribution map is information that well captures features such as the directionality and interval of the skin groove. Therefore, it can be said that the center-of-gravity feature parameter obtained by parameterizing the center-of-gravity distribution diagram is information that captures the feature of the skin groove well.
[2.2.3 特徴合成処理]
次に、前記ステップS4の特徴合成処理について説明する。
[2.2.3 Feature synthesis processing]
Next, the feature synthesis process in step S4 will be described.
[2.2.3.1 毛穴用特徴合成処理]
外部入力装置2をオペレータが操作することによって、合成を行う皮革が識別情報等により2以上指定されると、特徴合成部13は、対応する毛穴分布図及び複合毛包特徴パラメータを、指定された皮革分だけ特徴パラメータデータベース22から読み出し、複合毛包特徴パラメータを各パラメータ毎に合成することによって、合成特徴パラメータを生成する。このときの合成方法としては、例えば、線形補間を行ったり、加重平均を求めることなどが考えられる。
[2.2.3.1 Feature synthesis processing for pores]
When two or more leathers to be synthesized are designated by identification information or the like by operating the
次いで、特徴合成部13は、新たな識別情報を割り当てて、生成された合成特徴パラメータと、読み出された毛穴分布図の全部または一部とをこの識別情報に対応付けて特徴パラメータデータベース22に登録する。
Next, the
なお、厳密には合成とはいえないが、複数の複合毛包特徴パラメータを合成せずに、1個の皮革の複合毛包特徴パラメータに対してノイズを付加するなどして、合成特徴パラメータを生成しても良い。 Strictly speaking, it cannot be said to be a composite, but the composite feature parameter is set by adding noise to the composite hair follicle feature parameter of one leather without synthesizing a plurality of composite hair follicle feature parameters. It may be generated.
この処理を終えると、特徴合成部は、毛穴用の特徴合成処理を終了させる。 When this process is finished, the feature synthesis unit finishes the feature synthesis process for pores.
[2.2.3.2 皮溝用特徴合成処理]
特徴合成部13は、毛穴用の特徴合成処理と同様にして、対応する皮溝特徴パラメータ及びシワパラメータを、指定された皮革分だけ特徴パラメータデータベース22から読み出す。そして、特徴合成部13は、皮溝特徴パラメータを各パラメータ毎に合成することによって、合成特徴パラメータを生成する。また、特徴合成部13は、シワパラメータを各パラメータ毎に合成することによって合成シワパラメータを生成する。
[2.2.3.2 Skin gap feature synthesis]
The
次いで、特徴合成部13は、新たな識別情報を割り当てて、生成された合成特徴パラメータ及び合成シワパラメータをこの識別情報に対応付けて特徴パラメータデータベース22に登録する。
Next, the
この処理を終えると、特徴合成部は、皮溝用の特徴合成処理を終了させる。 When this process is finished, the feature synthesis unit finishes the feature synthesis process for the skin groove.
[2.2.4 皮革形状生成処理]
次に、前記ステップS5の皮革形状生成処理について、説明する。
[2.2.4 Leather shape generation processing]
Next, the leather shape generation process in step S5 will be described.
[2.2.4.1 毛穴用皮革形状生成処理]
先ず、毛穴用の皮革形状生成処理について、図41乃至図46を用いて説明する。
[2.2.4.1 Skin shape generation process for pores]
First, the leather shape generation process for pores will be described with reference to FIGS. 41 to 46.
図41は、本実施形態に係る皮革形状データ生成装置Sの毛穴用皮革形状生成処理の処理例を示すフローチャートである。また、図42(a)は、或るy座標における複合毛包の確率分布のグラフの一例を示す図であり、図42(b)は、図42(a)に示すグラフを一次微分したグラフの一例を示す図であり、図42(c)は、勾配データの一部の配列をベクトルで表した図である。 FIG. 41 is a flowchart illustrating a processing example of the leather shape generation process for pores of the leather shape data generation device S according to the present embodiment. FIG. 42 (a) is a diagram showing an example of a probability distribution graph of a composite hair follicle at a certain y coordinate, and FIG. 42 (b) is a graph obtained by first differentiating the graph shown in FIG. 42 (a). FIG. 42C is a diagram showing a partial array of gradient data as a vector.
また、図43(a)及び(b)は、複合毛包非配置領域の生成方法の一例を示す図である。また、図44(a)乃至(d)は、複合毛包点の配置方法の一例を示す図である。また、図45(a)乃至(d)は、毛穴の形状の一例を示す図である。また、図46(a)及び(b)は、毛穴を形成する様子の一例を示す図である。 FIGS. 43A and 43B are diagrams showing an example of a method for generating the composite hair follicle non-arranged region. FIGS. 44A to 44D are diagrams showing an example of a method for arranging composite hair follicle points. FIGS. 45A to 45D are diagrams showing an example of the shape of the pores. FIGS. 46 (a) and 46 (b) are diagrams showing an example of how pores are formed.
外部入力装置2をオペレータが操作することによって、処理に用いるべき複合毛包特徴パラメータ(通常の複合毛包特徴パラメータまたは合成特徴パラメータ)が識別情報等によって指定されると、皮革形状生成部14は、図41に示すように、指定された複合毛包特徴パラメータを特徴パラメータデータベース22から読み出し、この複合毛包特徴パラメータと、式(1)乃至式(4)及び式(6)とを用いて、元の複合毛包分布図を復元する(ステップS21)。
When the operator operates the
次いで、皮革形状生成部14は、最終的に配置する複合毛包の個数を決定する(ステップS22)。
Next, the leather
具体的に、皮革形状生成部14は、特徴抽出処理において特定された複合毛包の個数から、単位面積あたりの複合毛包の個数を算出し、新たに生成する皮革形状データの画像サイズに基づいて、配置する複合毛包の個数を決定する。例えば、100ピクセル×100ピクセルあたりの複合毛包の個数が80であり、生成する皮革形状データのサイズが1000ピクセル×1000ピクセルである場合には、配置する複合毛包の個数=(1000÷100)×(1000÷100)×80=8000である。なお、個数の決定方法はこれに限られるものではなく、例えば、オペレータが指定しても良いし、読み出された複合毛包特徴パラメータが合成特徴パラメータである場合には、合成前の複合毛包特徴パラメータに夫々対応して特徴抽出処理において特定された複合毛包の個数の平均値としても良い。
Specifically, the leather
次いで、皮革形状生成部14は、復元された元の複合毛包分布図に基づいて、勾配データを生成する(ステップS23)。ここで、勾配データとは、複合毛包分布図を、x軸方向及びy軸方向に1次微分することによって算出された2次元ベクトルの2次元配列である(図42(c)参照)。この勾配データは、後述するステップS29において、複合毛包位置を移動させる際の移動方向を決定する際に用いられる。
Next, the leather
具体的に、皮革形状生成部14は、例えば、座標(x,y)における隣接する複合毛包点の出現確率をF(x,y)とした場合に、F(x,y)−F(x−1,y)を求めて擬似的に1次微分し、これを座標(x,y)のx軸方向におけるベクトルとする。また、皮革形状生成部14は、F(x,y)−F(x,y−1)を求めて、これを座標(x,y)のy軸方向におけるベクトルとする。そして、皮革形状生成部14は、この処理を全座標について行う。このようにして算出された座標(x,y)のx軸方向におけるベクトルとy軸方向におけるベクトルとの和が、当該座標(x,y)における2次元ベクトルとなる。
Specifically, for example, when the appearance probability of an adjacent complex follicle point at coordinates (x, y) is F (x, y), the leather
図42(a)は、y座標=y1において複合毛包分布図を切り取った複合毛包の確率分布のグラフである。また、図42(b)は、y座標=y1における勾配データ(x軸方向のみ)のグラフである。そして、図42(c)は、勾配データの一部をベクトルで表した図である。これらの図において、原点は、注目する複合毛包点の位置である。 FIG. 42 (a) is a graph of the probability distribution of the composite hair follicle obtained by cutting out the composite hair follicle distribution map at the y coordinate = y1. FIG. 42B is a graph of gradient data (only in the x-axis direction) at y-coordinate = y1. FIG. 42C shows a part of the gradient data as a vector. In these figures, the origin is the position of the compound hair follicle point of interest.
次いで、皮革形状生成部14は、復元された元の複合毛包分布図に基づいて、複合毛包非配置領域図を生成する(ステップS24)。ここで、複合毛包非配置領域図とは、複合毛包分布図において、隣接する複合毛包点が出現する分布の内側にあって、隣接する複合毛包点の存在しない領域を示す画像データである。この複合毛包非配置領域図は、後述するステップS25の処理において、複合毛包を仮配置する際に、複合毛包点の配置を禁止する領域を示す図である。
Next, the leather
具体的に、皮革形状生成部14は、図43(a)に示すような元の複合毛包分布図に基づいて、注目する複合毛包点から探索を開始して、図43(b)に示すように、隣接する複合毛包点の出現確率が0である画素をグループ化してこれを隣接する複合毛包点の存在しない領域とし、複合毛包非配置領域図を生成する。図43(b)中、rが複合毛包非配置領域である。
Specifically, the leather
次いで、皮革形状生成部14は、指定された画像サイズの描画領域を、例えば、RAM上に設定し、元の複合毛包分布図、仮配置する複合毛包点の個数及び複合毛包非配置領域図に基づいて、この描画領域に複合毛包点を仮配置する(ステップS25)。
Next, the leather
具体的に、皮革形状生成部14は、先ず、仮配置する複合毛包点の個数を決定する。より詳細には、最終的に配置する個数よりも多い数を仮配置する個数とする。例えば、最終的に配置する個数に所定の係数を乗じて求めても良いし、オペレータが設定しても良い。
Specifically, the leather
次いで、皮革形状生成部14は、指定された画像サイズの描画領域上の任意の位置に、1番目の複合毛包点を配置し、これを中心として、描画領域上に複合毛包非配置領域図を重ねて描画する。そして、皮革形状生成部14は、1番目の複合毛包点を中心として元の複合毛包分布図を重ね合わせ、この重ね合わせた複合毛包分布図が示す出現確率分布を重み付けとしてランダムに2番目の複合毛包点を配置する。この結果を示した図が、図44(a)であり、同図において、a1は1番目の複合毛包点であり、a2は2番目の複合毛包点であり、p1はa1の複合毛包分布図である。
Next, the leather
次いで、皮革形状生成部14は、2番目の複合毛包点を中心として、描画領域上に複合毛包非配置領域図を重ねて描画する。この結果を示した図が、図44(b)である。そして、皮革形状生成部14は、1番目の複合毛包点を中心として元の複合毛包分布図を重ね合わせ、この重ね合わせた複合毛包分布図が示す出現確率分布を重み付けとしてランダムに3番目の複合毛包点を配置する。このとき、皮革形状生成部14は、複合毛包非配置領域図が示す領域には複合毛包点が配置されないように、複合毛包点を配置する。この結果を示した図が、図44(c)である、同図において、a3は3番目の複合毛包点である。次いで、皮革形状生成部14は、3番目の複合毛包点を中心として、描画領域上に複合毛包非配置領域図を重ねて描画する(図44(d)参照)。
Next, the leather
皮革形状生成部14は、このようにして、複合毛包点を次々と配置していき、1番目の複合毛包点について、隣接する複合毛包点が配置できなくなると、2番目の複合毛包点、3番目の複合毛包点について、1番目の複合毛包点の場合と同様にして、複合毛包点を配置していく。そして、皮革形状生成部14は、配置された複合毛包点の個数が、仮配置する複合毛包点の個数に達したところで、描画領域上から複合毛包非配置領域図を消去して、仮配置を終了させる。
In this way, the leather
この描画領域上の複合毛包点は、元の複合毛包分布図に従って配置されたので、この配置パターンは、複合毛包分布図が示す配置パターンの特徴が現れているといえる。従って、ここで配置された複合毛包点の位置を最終的な位置として、後述するステップS31以降の毛穴の配置に移行しても良い。しかしながら、本実施形態では、複合毛包分布図が示す配置パターンの特徴に更に近づけるため、以下に説明する複合毛包点の削除及び移動を行うこととした。 Since the composite hair follicle points on the drawing area are arranged according to the original composite hair follicle distribution map, it can be said that this layout pattern shows the characteristics of the layout pattern indicated by the composite hair follicle distribution map. Therefore, you may transfer to the arrangement | positioning of the pore after step S31 mentioned later by making the position of the composite hair follicle point arrange | positioned here into a final position. However, in this embodiment, in order to make it closer to the characteristics of the arrangement pattern indicated by the composite follicle distribution map, the composite hair follicle points described below are deleted and moved.
皮革形状生成部14は、複合毛包点の仮配置を終えると、描画領域に仮配置された複合毛包点の位置に基づいて、仮の複合毛包分布図を生成する(ステップS26)。この複合毛包分布図の生成方法は、特徴抽出処理のステップS14において説明した方法と同様である。
When finishing the temporary arrangement of the composite hair follicle points, the leather
次いで、皮革形状生成部14は、仮配置された夫々の複合毛包点に対してランク付けを行う(ステップS27)。このランクは複合毛包点の価値を示し、この値が低いほど、価値が高いことを示している。
Next, the leather
具体的に、皮革形状生成部14は、元の複合毛包分布図が示す出現確率と仮の複合毛包分布図が示す出現確率との差を、座標毎に算出し、この差の絶対値をその座標におけるランクとする。そして、皮革形状生成部14は、注目する複合毛包点に隣接する各複合毛包点(ドロネー分割により特定)について、注目する複合毛包点を原点とした位置に対応するランクをその隣接する複合毛包点のランクとして加算する。そして、皮革形状生成部14は、全ての複合毛包点について同様の処理を行うことにより、各複合毛包点のランクを算出する。
Specifically, the leather
次いで、皮革形状生成部14は、算出されたランクに基づいて、描画領域から複合毛包点を削除する(ステップS28)。
Next, the leather
具体的に、皮革形状生成部14は、ランクが高い複合毛包点から削除していき、削除数が所定数に達すると、複合毛包点の削除を終了させる。この削除数は任意であるが、例えば、最終的に配置する複合毛包の個数と、削除前の仮配置されている複合毛包の個数との差の1/2としても良いし、オペレータが設定しても良い。
Specifically, the leather
次いで、皮革形状生成部14は、ランクと勾配データとに基づいて、描画領域上に仮配置されている複合毛包点を移動させる(ステップS29)。
Next, the leather
具体的に、皮革形状生成部14は、先ず、注目する複合毛包点に隣接する複合毛包点をドロネー分割により特定する。そして、皮革形状生成部14は、各複合毛包点の移動ベクトルViを、以下の式(7)により算出する。なお、iは、1≦i≦現在仮配置されている複合毛包点の個数を満たす整数である。
Specifically, the leather
ここで、 here,
また、上記式(9)において、vf1(xij,yij)は、座標(xij,yij)に対応して元の複合毛包分布図から生成された勾配データ(ベクトル)である。 In the above equation (9), vf 1 (x ij , y ij ) is gradient data (vector) generated from the original composite follicle distribution map corresponding to the coordinates (x ij , y ij ). .
また、上記式(10)において、vf2(xij,yij)は、座標(xij,yij)に対応して仮の複合毛包分布図から生成された勾配データである。この勾配データは、ステップS23において説明した方法と同様にして生成される。 In the above equation (10), vf 2 (x ij , y ij ) is gradient data generated from the temporary composite hair follicle distribution map corresponding to the coordinates (x ij , y ij ). This gradient data is generated in the same manner as the method described in step S23.
つまり、皮革形状生成部14は、複合毛包点iの複合毛包点ijからの相対位置に対応する元の複合毛包分布図と仮の複合毛包分布図とから生成された勾配データの差分のベクトルを算出し、この差分のベクトルを単位ベクトルに変換して、これを元の複合毛包分布図から得られる勾配データに加算して、これを更に単位ベクトルに正規化し、この単位ベクトルに対して、元の複合毛包分布図が示す出現確率と仮の複合毛包分布図が示す出現確率との差(複合毛包点iの複合毛包点ijからの相対位置における差)を乗ずることによって、複合毛包点ijを注目する複合毛包点とした場合における複合毛包点iの移動ベクトルを算出する。そして、皮革形状生成部14は、複合毛包点i1に対応する複合毛包点iの移動ベクトル、複合毛包点i2に対応する複合毛包点iの移動ベクトル・・・複合毛包点imiに対応する複合毛包点iの移動ベクトルの和を求めることによって、複合毛包点iの移動ベクトルViを算出する。皮革形状生成部14は、このような処理を、全複合毛包点について行うのである。
That is, the leather
このとき、正規化された移動ベクトルVij/|Vij|は、複合毛包点ijを注目する複合毛包点とした場合における複合毛包点iの移動方向を示し、係数kijは、複合毛包点iの移動量、及び移動方向を反転させるか否かを示す。 At this time, the normalized movement vector V ij / | V ij | indicates the moving direction of the compound hair follicle point i when the compound hair follicle point ij is the target compound hair follicle point, and the coefficient k ij is The amount of movement of the compound hair follicle point i and whether to reverse the moving direction are shown.
皮革形状生成部14は、最終的な移動ベクトルを算出すると、全複合毛包点を、夫々の最終的な移動ベクトルに従って移動させる。
After calculating the final movement vector, the leather
次いで、皮革形状生成部14は、現在仮配置されている複合毛包点の個数がステップS22で決定した最終的な個数以下であるか否かを判定し(ステップS30)、複合毛包点の個数が最終的な個数以下ではない場合には(ステップS30:NO)、ステップS26に移行する。つまり、皮革形状生成部14は、複合毛包点の個数が最終的な個数以下になるまでは、ステップS26〜S29に示す、複合毛包点の削除及び移動を行うのである。
Next, the leather
そして、皮革形状生成部14は、複合毛包点の個数が最終的な個数以下となると(ステップS30:YES)、配置された複合毛包点の位置と毛穴分布図とに基づいて、毛穴点を配置する(ステップS31)。
When the number of composite follicle points is equal to or less than the final number (step S30: YES), the leather
具体的に、皮革形状生成部14は、先ず、ステップS21において読み出された複合毛包特徴パラメータに対応する毛穴分布図を、特徴パラメータデータベース22から読み出す。そして、皮革形状生成部14は、配置された複合毛包点を中心として毛穴分布図を重ね合わせ、この重ね合わせた毛穴分布図が示す出現確率分布を重み付けとしてランダムに毛穴点を配置していく。
Specifically, the leather
このとき、1個の複合毛包点に対応して配置する毛穴の個数は、例えば、特徴抽出処理において特定された毛穴の個数から複合毛包の個数を除算して求めても良いし、1個の複合毛包点に対して配置する毛穴の確率分布を求めて、この分布に従って、複合毛包点毎にランダムに決定しても良い。また、合成特徴パラメータに基づいて複合毛包点が配置された場合には、例えば、合成前の特徴パラメータに夫々対応して特徴抽出処理において特定された毛穴の個数の平均値と、複合毛包の個数の平均値を求め、毛穴の個数の平均値から複合毛包の個数の平均値を除算しても読めても良い。なお、配置する毛穴の個数の算出に必要なデータは、複合毛包特徴パラメータに対応付けて特徴パラメータデータベース22に登録しておく。また、1個の複合毛包点に対して配置する毛穴の個数は、オペレータが設定しても良い。
At this time, the number of pores arranged corresponding to one composite follicle point may be obtained, for example, by dividing the number of composite follicles from the number of pores specified in the feature extraction process. A probability distribution of pores to be arranged for each composite follicle point may be obtained and randomly determined for each composite follicle point according to this distribution. Further, when the composite hair follicle points are arranged based on the composite feature parameter, for example, an average value of the number of pores specified in the feature extraction process corresponding to each of the feature parameters before composition, and the composite hair follicle The average value of the number of the hair follicles may be obtained, and the average value of the number of the composite follicles may be divided from the average value of the number of the pores. Data necessary for calculating the number of pores to be arranged is registered in the
更にまた、合成特徴パラメータに基づいて複合毛包点が配置された場合には、この合成特徴パラメータに複数の毛穴分布図が対応付けられて複合毛包特徴パラメータデータベース22に登録されている場合があるため、毛穴点の配置に用いる毛穴分布図を選択する必要がある。この場合は、例えば、オペレータにより指定された毛穴分布図を用いても良いし、複合毛包点毎にランダムに決定しても良い。
Furthermore, when the composite hair follicle point is arranged based on the composite feature parameter, a plurality of pore distribution diagrams may be associated with the composite feature parameter and registered in the composite hair follicle
皮革形状生成部14は、毛穴点の配置を終えると、描画領域上の夫々の毛穴点に対して毛穴を形成する(ステップS32)。
After finishing the arrangement of the pore points, the leather
例えば、図45(a)乃至(d)に示すように、毛穴の凹形状を示す毛穴形状データが、ハイトフィールドとして記憶部20に複数登録されている。この登録されている毛穴形状データのうち一の毛穴形状データを、外部入力装置2をオペレータが操作することによって選択すると、皮革形状生成部14は、選択された毛穴形状データを、毛穴点を中心として描画領域に描画する。そして、全毛穴点について毛穴形状データの描画が終了すると、この描画領域に描画された凹凸形状を示すデータが、新たな皮革表面の凹凸形状を示す皮革形状データとなる。図46(a)は、毛穴点が配置された描画領域の一部であり、図46(b)は、この毛穴点に重ねて、図45(c)に示す毛穴形状データが描画された描画領域の一部であり、この描画領域上のデータが新たな皮革形状データとなる。
For example, as shown in FIGS. 45A to 45D, a plurality of pore shape data indicating the concave shape of the pores are registered in the
なお、例えば、特徴抽出処理において毛穴の形状の特徴を抽出し、この特徴に基づいて毛穴形状データを生成しておき、この毛穴形状データを用いて毛穴を形成しても良い。 For example, the feature of the pore shape may be extracted in the feature extraction process, the pore shape data may be generated based on the feature, and the pore may be formed using the pore shape data.
皮革形状生成部14は、毛穴を形成を終えると、新たに識別情報を割り当てて、生成された新たな皮革形状データを、この識別情報に対応付けて皮革形状データベースに登録し、毛穴用の皮革形状生成処理を終了させる。
When the formation of the pores is finished, the leather
なお、複合毛包と毛穴とを、後述する皮溝用の皮革形状生成処理の場合と同様に(図47ステップS72参照)、ポワソンディスクパターンを生成することによって配置しても良い。 Note that the composite hair follicle and the pores may be arranged by generating a Poisson disc pattern as in the case of the leather shape generation process for the skin groove described later (see step S72 in FIG. 47).
[2.2.4.2 皮溝用皮革形状生成処理]
次に、皮溝用の皮革形状生成処理について、図47乃至図54を用いて説明する。
[2.2.4.2 Leather shape generation processing for leather groove]
Next, the leather shape generation process for the skin groove will be described with reference to FIGS. 47 to 54.
図47は、本実施形態に係る皮革形状データ生成装置Sの毛穴用皮革形状生成処理の処理例を示すフローチャートである。図48(a)及び(b)は、重心点非配置領域の生成方法の一例を示す図である。また、図49は、重心点を配置する方法の一例を説明する図である。また、図50(a)乃至(c)は、重心点を配置した結果の例を示す図である。また、図51(a)は、ボロノイ図の生成方法の一例を説明する図であり、図51(b)は、ボロノイ図の生成結果の一例を示す図である。また、図52は、シワの配置結果の一例を示す図である。また、図53(a)及び(b)は、シワの位置を移動させる方法の一例を示す図である。また、図54(a)乃至(b)は、皮丘、皮溝及び深みの形状の一例を示す図である。 FIG. 47 is a flowchart showing a processing example of the leather shape generation process for pores of the leather shape data generation device S according to the present embodiment. 48 (a) and 48 (b) are diagrams showing an example of a method for generating a center-of-gravity point non-arrangement region. FIG. 49 is a diagram for explaining an example of a method for arranging the centroid points. FIGS. 50A to 50C are diagrams showing examples of results obtained by arranging the barycentric points. FIG. 51A is a diagram illustrating an example of a method for generating a Voronoi diagram, and FIG. 51B is a diagram illustrating an example of a result of generating a Voronoi diagram. FIG. 52 is a diagram showing an example of the result of wrinkle arrangement. FIGS. 53A and 53B are diagrams showing an example of a method for moving the wrinkle position. FIGS. 54A to 54B are diagrams showing examples of the shape of the skin, the groove, and the depth.
外部入力装置2をオペレータが操作することによって、処理に用いるべき重心特徴パラメータ(通常の重心特徴パラメータまたは合成特徴パラメータ)が識別情報等によって指定されると、皮革形状生成部14は、図47に示すように、指定された重心特徴パラメータを特徴パラメータデータベース22から読み出し、この重心特徴パラメータと式(1)乃至式(4)及び式(6)とを用いて、元の重心分布図を復元する(ステップS71)。
When the operator operates the
次いで、皮革形状生成部14は、復元した重心分布図に基づいて、重心点を配置する(ステップS72)。
Next, the leather
具体的に、皮革形状生成部14は、先ず重心点非配置領域図を生成する。ここで、重心点非配置領域図とは、重心分布図において、隣接する重心点が出現する分布の内側にあって、隣接する重心点の存在しない領域を示す画像データである。例えば、皮革形状生成部14は、図48(a)に示すような復元された重心分布図に基づいて、注目する重心点から探索を開始して、図48(b)に示すように、隣接する複合毛包点の出現確率が0である画素をグループ化してこれを隣接する重心点の存在しない領域とし、重心点非配置領域図を生成する。図48(b)中、白色で示した領域が重心点非配置領域である。
Specifically, the leather
次いで、皮革形状生成部14は、重心点非配置領域の形状を楕円または真円で近似する。
Next, the leather
次いで、皮革形状生成部14は、指定された画像サイズの描画領域を、例えば、RAM上に設定し、近似した楕円または真円をポワソンディスクパターンにおけるdiskとして、ポワソンディスクパターンを描画領域上に生成する。ポワソンディスクパターンとは、或る領域に複数個の点があったときに、全ての点が互いに所定距離以上離れるように点を配置したときに現れるパターンである。diskの形状は、一般的に真円となるが、重心点非配置領域の形状は楕円となる場合もあるので、本実施形態におけるdiskの形状は、重心点非配置領域の形状に合わせられる。
Next, the leather
ポワソンディスクパターンの生成を、便宜上分かりやすく説明すると、重心点を次々とランダムな位置に配置していくのだが、配置しようとしている重心点が既に配置されている重心点を中心とするdiskの内側に入らないように、重心点を配置する(図49参照)。そして、diskを配置することができなくなったとき、または、所定個数のdiskを配置したときに、diskの配置が終了する。 To explain the generation of the Poisson disc pattern in an easy-to-understand manner, the centroid points are arranged at random positions one after another, but the center of centroid point to be arranged is inside the disk centered on the already located centroid point. The center of gravity is arranged so as not to enter (see FIG. 49). Then, when the disks cannot be arranged, or when a predetermined number of disks are arranged, the arrangement of the disks is completed.
なお、所定個数のdiskを配置する場合には、配置する重心点の個数を任意に決定することができるが、例えば、特徴抽出処理において特定された閉領域の個数から、単位面積当たりの閉領域の個数を算出し、新たに生成する皮革形状データの画像サイズに基づいて、配置する重心点の個数を決定するのが望ましい。 In the case of arranging a predetermined number of disks, the number of centroid points to be arranged can be arbitrarily determined. For example, from the number of closed areas specified in the feature extraction process, the closed area per unit area can be determined. It is preferable to determine the number of barycentric points to be arranged based on the image size of newly generated leather shape data.
図50は、diskの形状と重心点を配置した結果との一例を示す図である。 FIG. 50 is a diagram illustrating an example of the shape of the disk and the result of arranging the barycentric points.
図50(a)に示す例におけるdiskは、斜め45°に傾いた楕円形状を成している。そして、このdiskに基づいて重心点を配置すると、同じく斜め45°の方向における重心点間の距離が比較的長くなっている。 The disk in the example shown in FIG. 50A has an elliptical shape inclined at an angle of 45 °. When the center of gravity points are arranged based on this disk, the distance between the center of gravity points in the same oblique 45 ° direction is relatively long.
図50(b)に示す例におけるdiskは真円である。そして、このdiskに基づいて重心点を配置すると、重心点間の距離はどの角度もほぼ等距離となる。 The disk in the example shown in FIG. 50B is a perfect circle. When the center of gravity points are arranged based on the disk, the distance between the center of gravity points is almost equal.
図50(c)に示す例におけるdiskは、紙面上下方向を長軸とする楕円形状を成している。そして、このdiskに基づいて重心点を配置すると、同じく紙面上下方向における重心点間の距離が比較的長くなっている。また、この例におけるdiskは、図50(a)の例におけるdiskよりも大きいため、その分重心点間の距離もより長くなっている。 The disk in the example shown in FIG. 50C has an elliptical shape with the major axis in the vertical direction on the paper. When the barycentric points are arranged based on the disk, the distance between the barycentric points in the vertical direction of the paper is relatively long. In addition, since the disk in this example is larger than the disk in the example of FIG. 50A, the distance between the centroid points is longer accordingly.
皮革形状生成部14は、重心点の配置を終えると、次いで、皮溝の位置を決定する(ステップS73)。具体的に、皮革形状生成部14は、配置された重心点を母点とするボロノイ図を、図51(a)に示すように生成する。そして、皮革形状生成部14は、ボロノイ境界を皮溝、ボロノイ点を深み点、ボロノイ領域を皮丘と認定する。このようにして、例えば、図51(b)に示すように、皮溝が形成される。
After finishing the placement of the center of gravity, the leather
次いで、皮革形状生成部14は、シワの位置を決定する(ステップS74)。
Next, the leather
具体的に、皮革形状生成部14は、先ず重心分布図とシワパラメータとに基づいて、描画領域上にシワを配置する。より詳細に、皮革形状生成部14は、シワを構成する皮溝(以下、「エッジ」と称する)のうち1番目のエッジの位置をランダムに決定するとともに、シワパラメータが示すエッジの角度の平均値を、1番目のエッジのx軸と成す角度に設定する。また、皮革形状生成部14は、1番目のエッジの長さを、重心分布図の、決定された角度に対応する部分における確率分布に基づいてランダムに決定する。そして、皮革形状生成部14は、このエッジに接続する2番目のエッジの角度をシワパラメータの平均値と標準偏差に基づく確率分布に基づいてランダムに決定する。そして、この2番目のエッジの長さを、重心分布図の、決定された角度に対応する部分における確率分布に基づいてランダムに決定する。皮革形状生成部14は、こうして2番目のエッジを配置すると、3番目以降のエッジについても同様に配置する。
Specifically, the leather
このようにして所定数のエッジが配置されると、これで、一本のシワが配置されたことになる。そして、皮革形状生成部14は、シワを所定本数分配置する。このようにして、例えば、図52に示すように、シワが配置される。
When a predetermined number of edges are arranged in this way, one wrinkle is arranged. And the leather shape production |
なお、一本のシワのエッジの個数は任意に設定することができるが、例えば、特徴抽出処理において抽出されたシワの一本当たりにおけるセグメントの個数の平均値を用いても良い。また、配置するシワの本数も任意に設定することができるが、例えば、特徴抽出処理において抽出されたシワの本数から、単位面積当たりのシワの本数を算出し、新たに生成する皮革形状データの画像サイズに基づいて、配置するシワの本数を決定しても良い。 Although the number of edges of one wrinkle can be set arbitrarily, for example, an average value of the number of segments per wrinkle extracted in the feature extraction process may be used. In addition, the number of wrinkles to be arranged can be arbitrarily set. For example, the number of wrinkles per unit area is calculated from the number of wrinkles extracted in the feature extraction process, and the newly generated leather shape data The number of wrinkles to be arranged may be determined based on the image size.
次いで、皮革形状生成部14は、エッジの位置を調整する。具体的に、皮革形状生成部14は、エッジとエッジとの接続部(以下、「ノード」と称する)を、これに最も近いボロノイ頂点(深み点)に近づけることによって、エッジが皮溝に沿うようにする(図53(a)及び(b)を参照)。このとき、皮革形状生成部14は、ノードの移動が所定距離以上必要となる場合には、そのノードについては移動させない。これによって、皮溝に沿ったシワを表現することができるとともに、先天的に形成されていた皮溝を分断するシワを表現することもできる。
Next, the leather
皮革形状生成部14は、シワの位置を決定すると、次いで、描画領域上の皮溝等について、それらの形状を生成する(ステップS75)。具体的に、皮革形状生成部14は、皮丘、皮溝及び深みに対して夫々関数を用いてその形状を決定する。
After determining the position of the wrinkle, the leather
皮丘の形状は、皮革表面上の2次元座標xについて以下の式(11)で求められる。 The shape of the leather hill is obtained by the following equation (11) with respect to the two-dimensional coordinate x on the leather surface.
Vpoligon_centerとVpoligon_edgeとについては、以下の式(12)及び(13)で求められる。 About Vpoligon_center and Vpoligon_edge, it calculates | requires by the following formula | equation (12) and (13).
ここで、RBFについては、CSRBF(Compactly Supported RBF)を用いる。CSRBFは、RBFの中でも影響範囲が無限となるのではなく、指定した範囲のみに影響するRBFである。具体的には、以下の式(14)で求められる。 Here, as RBF, CSRBF (Compactly Supported RBF) is used. The CSRBF is an RBF that affects only a specified range, rather than an infinite range of influence among RBFs. Specifically, it is calculated | required by the following formula | equation (14).
次に、皮溝の形状は、以下の式(15)で求められ、深みの形状は、以下の式(16)で求められる。 Next, the shape of the skin groove is obtained by the following equation (15), and the depth shape is obtained by the following equation (16).
このようにして表現される皮溝の形状は、例えば、図54(b)のように形成される。また、深みの形状は、例えば、図54(c)のように形成される。なお、深みの凹形状は、通常の皮溝の凹形状よりも深く且つ広くなるように求められる。 The shape of the skin groove expressed in this way is formed as shown in FIG. 54 (b), for example. The depth shape is formed as shown in FIG. 54 (c), for example. The deep concave shape is required to be deeper and wider than the normal concave shape of the skin groove.
そして、皮革形状生成部14は、座標xに対して、式(11)と式(15)と式(16)とを加算することにより、当該座標xにおける皮革表面の高度を求める。このとき、皮革形状生成部14は、母点に対して式(11)を適用し、ボロノイ辺に対して式(15)を適用し、ボロノイ頂点に対して式(16)を適用する。そして皮革形状生成部14は、正規化して新たな皮革形状データを生成する。
And the leather shape production |
また、皮革形状生成部14は、シワについて、通常の皮溝よりも深くし且つその幅を広くして、新たな皮革形状データ上にその形状を反映させる。
In addition, the leather
皮革形状生成部14は、皮溝等の形状の生成を終えると、新たに識別情報を割り当てて、生成された新たな皮革形状データを、この識別情報に対応付けて皮革形状データベースに登録し、皮溝用の皮革形状生成処理を終了させる。
When the generation of the shape of the leather groove or the like is finished, the leather
[2.2.4.3 皮革形状データ合成処理]
外部入力装置2をオペレータが操作することによって、毛穴の凹凸形状を示す皮革形状データと皮溝の凹凸形状を示す皮革形状データとが選択されると、皮革形状生成部14は、選択された皮革形状データを合成する。
[2.2.4.3 Leather shape data composition processing]
When the operator operates the
具体的に、皮革形状生成部14は、例えば、アルファ合成(アルファチャンネルを0.5あるいはその近辺に設定する)で2つの皮革形状データを合成することによって、新たな皮革形状データを生成すると、この皮革形状データを、この識別情報に対応付けて皮革形状データベースに登録する。
Specifically, when the leather
図55は、合成によって生成された皮革形状データを、便宜上白黒2値画像で表した一例を示す図である。なお、毛穴の深度のコントラストが低かったため、図55からでは毛穴及び毛包の判別が難しいが、実際には、例えば図46(b)に示したような毛穴が表現されている。 FIG. 55 is a diagram showing an example in which the leather shape data generated by the synthesis is expressed as a black and white binary image for convenience. In addition, since the contrast of the depth of the pores is low, it is difficult to discriminate pores and follicles from FIG. 55, but actually, for example, pores as shown in FIG. 46B are represented.
以上説明したように、本実施形態によれば、特徴抽出部12が、3次元入力装置1によって皮革表面の凹凸形状を測定することによって生成された皮革形状データを皮革形状データベース21から読み出し、この皮革形状データに基づいて、皮溝の位置と深み点の位置とを特定し、これらの情報に基づいて、溝によって直接接続される深み点を隣接する深み点として特定し、隣接する深み点同士を直線で結んでこの直線に囲まれた閉領域を皮丘として特定し、皮溝を間にして隣接する皮丘同士の位置関係の特徴を示す重心分布図を生成する。
As described above, according to the present embodiment, the
隣接する皮丘同士の位置関係が決まれば、皮丘を囲む皮溝の位置も必然的に決まるので、この重心分布図は、皮丘を囲む皮溝の特徴を示す情報であるといっても良い。 If the positional relationship between adjacent skins is determined, the position of the skin groove surrounding the skin is inevitably determined, so this center of gravity distribution map is information indicating the characteristics of the skin surrounding the skin. good.
そして、皮革形状生成部14が、重心分布図に基づいて皮丘を仮想的に配置し、配置された皮丘の境界線を皮溝とする新たな皮革形状データを生成する。
And the leather shape production |
従って、天然皮革などの表面に形成された皮溝の方向性や間隔などの特徴を自然に再現することができる。 Accordingly, it is possible to naturally reproduce characteristics such as the directionality and spacing of the skin grooves formed on the surface of natural leather or the like.
また、特徴抽出部12が、深み点をドロネー点とするドロネー分割を行い、ドロネー辺で直接接続される深み点同士を隣接する深み点と特定し、ドロネー辺で囲まれた閉領域を皮丘と特定し、隣接する皮丘の重心点同士の位置関係を示す重心分布図を生成する。そして、皮革形状生成部14が、重心分布図に基づいて重心点を仮想的に配置し、この重心点を母点とするボロノイ分割を行い、ボロノイ辺を皮溝とする新たな皮革形状データを生成する。
In addition, the
従って、元の皮革形状データから重心分布図を生成するときと、この重心分布図に基づいて新たな皮革形状データを生成するときとの間で整合性を保つことができる。 Accordingly, it is possible to maintain consistency between the generation of the center of gravity distribution map from the original leather shape data and the generation of new leather shape data based on the center of gravity distribution map.
また、重心分布図は、皮丘の重心点を原点として、当該皮丘に隣接する他の皮丘の重心点の相対的な位置の確率分布を示す情報であるので、統計的な手法により、皮溝の特徴を自然に再現することができる。 In addition, since the center of gravity distribution map is information indicating the probability distribution of the relative position of the center of gravity of the other hills adjacent to the dermis with the center of gravity of the dermis as the origin, The characteristics of the skin groove can be reproduced naturally.
また、特徴抽出部12が、特定した皮溝の位置と深み点の位置とに基づいて、皮溝の中からシワを特定し、シワの特徴を示すシワパラメータを生成する。そして、皮革形状生成部14が、シワパラメータに基づいてシワを配置することによって新たな皮革形状データを生成する。
Further, the
従って、皮溝の特徴に加えて、皮革表面にできたシワの特徴をも自然に再現することができる。 Therefore, in addition to the feature of the skin groove, the feature of the wrinkle formed on the leather surface can be reproduced naturally.
また、特徴抽出部12が、深み点で接続されるセグメント(皮溝)同士のなす角度が所定角度以上である場合にこれらの皮溝をシワとして特定し、シワとして特定されたセグメント同士のなす角度の確率分布を示すシワパラメータを生成する。そして、皮革形状生成部14が、シワパラメータが示す確率分布に従ってシワを配置する。
Further, when the angle formed by the segments (skins) connected at the depth points is equal to or greater than a predetermined angle, the
従って、皮革表面にできたシワの曲がり具合などの特徴を自然に再現することができる。 Therefore, it is possible to naturally reproduce characteristics such as the bending of the wrinkles formed on the leather surface.
また、特徴抽出部12が、生成した重心分布図が示す確率分布を近似するための式(1)乃至(4)及び(6)に用いられる重心特徴パラメータを生成し、このパラメータを特徴パラメータデータベース22に登録する。そして、皮革形状生成部14が、重心特徴パラメータと式(1)乃至(4)及び(6)とに基づいて元の複合毛包分布図を復元する。
In addition, the
従って、重心特徴パラメータによって元の重心分布図を復元することが可能であるとともに、重心分布図自体を特徴パラメータデータベース22に登録させる場合よりも、記憶スペースを節約することができる。
Therefore, it is possible to restore the original centroid distribution map by using the centroid feature parameter, and it is possible to save the storage space as compared with the case where the centroid distribution map itself is registered in the
また、特徴合成部13が、特徴パラメータデータベース22に登録された複数の重心特徴パラメータ同士を合成して合成特徴パラメータを生成し、皮革形状生成部14が、合成特徴パラメータに従って新たな皮革形状データを生成するので、複数の皮革の表面の皮溝の特徴をかけあわせた特徴を有する新たな皮革形状データを容易に生成することができる。
The
また、特徴合成部13が、皮革表面において周囲よりも高度が低い極小点を深み点として特定するとともに、皮溝と鞍点とを特定し、同一の鞍点から皮溝を辿って到達する深み点同士を隣接する深み点として特定するので、隣接する深み点を適確に特定することができる。
Further, the
また、皮革形状データは、各要素が、皮革表面において当該要素が対応する位置における当該表面の高度を示すハイトフィールドで表現されているので、重心分布図を容易に生成することができる。 In addition, since the leather shape data is expressed by a height field indicating the height of the surface at a position corresponding to the element on the leather surface, the center of gravity distribution map can be easily generated.
なお、本実施形態においては、複数の皮革の特徴をかけあわせることがあるため、特徴抽出処理で生成された複合毛包分布図や重心分布図から特徴パラメータを生成し、この特徴パラメータを合成するようにしていたが、複数の皮革の特徴をかけあわせる必要がない場合には、特徴パラメータを生成する必要はない。この場合には、毛穴用の特徴抽出処理で生成された毛穴分布図と複合毛包分布図とを対応付けて記憶部20等に記憶しておき、この毛穴分布図と複合毛包分布図とに従って新たな皮革形状データを生成したり、皮溝用の特徴抽出処理で生成された重心分布図を記憶部20等に記憶しておき、この重心分布図に従って新たな皮革形状データを生成すれば良い。
In this embodiment, since the features of a plurality of leathers may be multiplied, a feature parameter is generated from the composite follicle distribution map and the center of gravity distribution map generated by the feature extraction process, and the feature parameter is synthesized. However, if it is not necessary to combine a plurality of leather features, it is not necessary to generate a feature parameter. In this case, the pore distribution map generated by the feature extraction processing for pores and the composite follicle distribution map are stored in the
また、皮革形状データから皮溝を抽出する際には、必ずしもシワまでをも抽出する必要はない。また、皮溝を配置して新たな皮革形状データを生成する際に、必ずしもシワまでをも配置する必要はない。 Further, when extracting the skin groove from the leather shape data, it is not always necessary to extract even the wrinkles. Further, when the leather groove is arranged and new leather shape data is generated, it is not always necessary to arrange the wrinkles.
また、本実施形態においては、皮革形状データをハイトフィールドで表現していたが、皮革形状データの表現方法はこれに限られるものではない。 Further, in the present embodiment, the leather shape data is expressed by the height field, but the method of expressing the leather shape data is not limited to this.
また、本実施形態においては、特徴抽出部12による皮革形状データの取得先は、皮革形状データベース21としていたが、これに限られるものではなく、例えば、3次元入力装置1から出力された皮革形状データを、3次元入力装置制御部11を経由して取得しても良い。
Further, in the present embodiment, the acquisition destination of the leather shape data by the
1 3次元入力装置
2 外部入力装置
3 表示装置
10 制御部
11 3次元入力装置制御部
12 特徴抽出部
13 特徴合成部
14 皮革形状生成部
20 記憶部
21、23 皮革形状データベース
22 特徴パラメータデータベース
S 皮革形状データ生成装置
DESCRIPTION OF
Claims (12)
前記取得された皮革形状データに基づいて、前記皮革表面における溝の位置と、複数の前記溝が接続される点である接続点の前記皮革表面における位置と、を特定する位置特定手段と、
前記特定された溝の位置及び接続点の位置に基づいて、互いに隣接する前記接続点を特定する隣接接続点特定手段と、
前記隣接する接続点同士の位置関係の特徴を示す接続点特徴データを生成する接続点特徴データ生成手段と、
前記生成された接続点特徴データが示す位置関係の特徴を反映させて前記接続点を配置し、且つ、隣接する前記接続点同士を接続する前記溝を設けた新たな前記皮革形状データを生成する皮革形状データ生成手段と、
を備えることを特徴とする皮革形状データ生成装置。 Leather shape data acquisition means for acquiring leather shape data indicating the uneven shape of the leather surface;
Based on the acquired leather shape data, the position specifying means for specifying the position of the groove on the leather surface and the position on the leather surface of the connection point, which is a point to which the plurality of grooves are connected,
An adjacent connection point specifying means for specifying the connection points adjacent to each other based on the position of the specified groove and the position of the connection point;
Connection point feature data generating means for generating connection point feature data indicating the characteristics of the positional relationship between the adjacent connection points;
The connection point is arranged reflecting the characteristic of the positional relationship indicated by the generated connection point feature data, and new leather shape data in which the groove for connecting the adjacent connection points is provided is generated. Leather shape data generation means;
A leather shape data generating device comprising:
位置が特定された前記溝及び前記接続点に基づいて、当該溝のうちシワ(皺)を特定するシワ特定手段を更に備え、
前記接続点特徴データ生成手段は、前記接続点特徴データと、前記特定されたシワの特徴を示すシワ特徴データと、を生成し、
前記皮革形状データ生成手段は、前記接続点特徴データに基づいて前記接続点を配置し前記溝を設けるとともに、前記生成されたシワ特徴データが示す特徴を反映させてシワを設けた前記新たな皮革形状データを生成することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to claim 1,
Based on the groove and the connection point whose position is specified, further comprising a wrinkle specifying means for specifying a wrinkle in the groove;
The connection point feature data generation means generates the connection point feature data and wrinkle feature data indicating the specified wrinkle feature,
The leather shape data generating means arranges the connection points based on the connection point feature data and provides the grooves, and the new leather provided with wrinkles reflecting the characteristics indicated by the generated wrinkle feature data. A leather shape data generation device characterized by generating shape data.
前記シワ特定手段は、位置が特定された前記接続点に接続する前記溝同士がなす角度に基づいて、当該溝がシワであるか否かを決定し、
前記接続点特徴データ生成手段は、シワと決定された互いに接続する溝同士がなす角度を確率変数とする確率分布を示す角度分布データを含む前記シワ特徴データを生成し、
前記皮革形状データ生成手段は、前記角度分布データが示す確率分布に従って、互いに接続するシワ同士がなす角度を決定してシワを設けた前記新たな皮革形状データを生成することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to claim 2,
The wrinkle specifying means determines whether or not the groove is a wrinkle based on an angle formed by the grooves connected to the connection point whose position is specified;
The connection point feature data generation means generates the wrinkle feature data including angle distribution data indicating a probability distribution having an angle formed by grooves connected to each other as determined as wrinkles as a random variable,
The leather shape data generating means determines the angle formed by wrinkles connected to each other according to the probability distribution indicated by the angle distribution data, and generates the new leather shape data provided with wrinkles. Data generator.
位置が特定された前記溝に囲まれた領域を皮丘として特定する皮丘特定手段を更に備え、
前記接続点特徴データ生成手段は、前記接続点特徴データとして、隣接する前記皮丘同士の位置関係の特徴を示す前記皮丘特徴データを生成し、
前記皮革形状データ生成手段は、前記生成された皮丘特徴データが示す位置関係の特徴を反映させて前記皮丘を仮想的に配置し、当該皮丘の境界線上を辿るように前記溝を設けた前記新たな皮革形状データを生成することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to any one of claims 1 to 3,
Further comprising a dune identifying means for identifying an area surrounded by the groove whose position is identified as a dune;
The connection point feature data generation means generates the skin feature data indicating the feature of the positional relationship between the adjacent hides as the connection point feature data,
The leather shape data generating means virtually arranges the hides reflecting the characteristics of the positional relationship indicated by the generated hide characteristic data, and provides the grooves so as to follow the boundary lines of the hides. Further, the leather shape data generating apparatus for generating the new leather shape data.
前記隣接接続点特定手段は、位置が特定された前記接続点をドロネー点とするドロネー分割によってドロネー辺で互いに接続される前記接続点を前記隣接する接続点と特定し、
前記皮丘特定手段は、前記ドロネー辺で囲まれた領域を前記皮丘として特定し、
前記接続点特徴データ生成手段は、隣接する前記皮丘夫々の重心同士の位置関係の特徴を示す前記皮丘特徴データを生成し、
前記皮革形状データ生成手段は、前記生成された皮丘特徴データが示す位置関係の特徴を反映させて前記皮丘の重心を仮想的に配置し、当該重心を母点とするボロノイ分割によって分割されたボロノイ領域の境界線を辿るように前記溝を設けた前記新たな皮革形状データを生成することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to claim 4,
The adjacent connection point specifying means specifies the connection points that are connected to each other at a Delaunay side by Delaunay division using the connection point whose position is specified as a Delaunay point as the adjacent connection point,
The hide mound identifying means identifies the area surrounded by the Delaunay side as the hide mound,
The connection point feature data generation means generates the dermis feature data indicating the feature of the positional relationship between the centroids of the adjacent hills,
The leather shape data generating means virtually arranges the center of gravity of the hide by reflecting the positional relationship feature indicated by the generated leather feature data, and is divided by Voronoi division using the center of gravity as the base point. A new leather shape data generating device for generating the new leather shape data provided with the groove so as to follow the boundary line of the Voronoi region.
前記接続点特徴データ生成手段は、前記皮丘の重心からの、当該皮丘に隣接する他の前記皮丘の重心の相対位置を確率変数とする確率分布を示す皮丘位置分布データを含む前記皮丘特徴データを生成し、
前記皮革形状データ生成手段は、前記皮丘位置分布データが示す確率分布に従って、前記皮丘の重心を仮想的に配置することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to claim 5,
The connection point feature data generating means includes the dermis position distribution data indicating a probability distribution in which the relative position of the centroid of the other hill adjacent to the dermis from the centroid of the dermis is a random variable. Generate the bark characteristic data,
The leather shape data generating means virtually arranges the center of gravity of the leather according to the probability distribution indicated by the leather position distribution data.
前記皮丘位置分布データが示す確率分布を近似するための近似式に用いられるパラメータを生成するパラメータ生成手段と、
前記接続点特徴データ生成手段により生成された前記皮丘特徴データを記憶する記憶手段と、を更に備え、
前記接続点特徴データ生成手段は、前記皮丘位置分布データに代えて、前記生成されたパラメータを含む前記皮丘特徴データを生成し、
前記皮革形状データ生成手段は、前記記憶手段に記憶された前記皮丘特徴データに含まれる前記パラメータと前記近似式とに基づいて、前記皮丘の重心の仮想的な配置に用いる前記皮丘位置分布データを生成することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to claim 6,
Parameter generating means for generating a parameter used in an approximate expression for approximating the probability distribution indicated by the skin position distribution data;
Storage means for storing the hide hill feature data generated by the connection point feature data generation means,
The connection point feature data generation means generates the hide hill feature data including the generated parameters instead of the hide hill position distribution data,
The leather shape data generating means is configured to use the hide position to be used for virtual arrangement of the center of gravity of the hide based on the parameters and the approximate expression included in the hide characteristic data stored in the storage means. A leather shape data generation device characterized by generating distribution data.
前記接続点特徴データ生成手段により生成された前記接続点特徴データを記憶する記憶手段と、
前記記憶手段に記憶された複数の前記接続点特徴データ同士を合成して合成接続点特徴データを生成する合成手段と、を更に備え、
前記皮革形状データ生成手段は、前記生成された合成接続点特徴データに基づいて前記新たな皮革形状データを生成することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to any one of claims 1 to 7,
Storage means for storing the connection point feature data generated by the connection point feature data generation means;
A synthesis unit that generates a synthesized connection point feature data by synthesizing the plurality of connection point feature data stored in the storage unit;
The leather shape data generation device, wherein the leather shape data generation means generates the new leather shape data based on the generated combined connection point feature data.
前記位置特定手段は、
前記皮革形状データに基づいて、前記溝を特定する溝特定手段と、
前記皮革形状データに基づいて、前記皮革表面上における高度がその周囲の高度よりも低い点を前記接続点と特定する接続点特定手段と、
前記皮革形状データに基づいて、前記皮革表面上における鞍部を特定する鞍部特定手段と、を備え、
前記隣接接続点特定手段は、同一の前記鞍部から前記溝を辿って最初に至る前記接続点同士を前記隣接する接続点と認定することを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to any one of claims 1 to 8,
The position specifying means includes
A groove identifying means for identifying the groove based on the leather shape data;
Based on the leather shape data, connection point specifying means for specifying, as the connection point, a point where the height on the leather surface is lower than the surrounding height;
Based on the leather shape data, comprises a buttock specifying means for specifying a buttock on the leather surface,
The said adjacent connection point specific | specification means recognizes the said connection points which follow the said groove | channel from the same said collar part first, and are the said adjacent connection points, The leather shape data generation apparatus characterized by the above-mentioned.
前記皮革形状データは、各要素が、皮革表面において当該要素が対応する位置における当該表面の高度を示す、2次元配列で表現されたデータであることを特徴とする皮革形状データ生成装置。 In the leather shape data generation device according to any one of claims 1 to 9,
The leather shape data generating apparatus according to claim 1, wherein the leather shape data is data expressed in a two-dimensional array in which each element indicates a height of the surface at a position corresponding to the element on the leather surface.
前記取得された皮革形状データに基づいて、前記皮革表面における溝の位置と、複数の前記溝が接続される点である接続点の前記皮革表面における位置と、を特定する位置特定工程と、
前記特定された溝の位置及び接続点の位置に基づいて、互いに隣接する前記接続点を特定する隣接接続点特定工程と、
前記隣接する接続点同士の位置関係の特徴を示す接続点特徴データを生成する接続点特徴データ生成工程と、
前記生成された接続点特徴データが示す位置関係の特徴を反映させて前記接続点を配置し、且つ、隣接する前記接続点同士を接続する前記溝を設けた新たな前記皮革形状データを生成する皮革形状データ生成工程と、
を備えることを特徴とする皮革形状データ生成方法。 Leather shape data acquisition process for acquiring leather shape data indicating the uneven shape of the leather surface;
Based on the acquired leather shape data, a position specifying step for specifying a position of the groove on the leather surface and a position on the leather surface of a connection point, which is a point to which a plurality of the grooves are connected,
An adjacent connection point specifying step of specifying the connection points adjacent to each other based on the position of the specified groove and the position of the connection point;
A connection point feature data generation step of generating connection point feature data indicating the characteristics of the positional relationship between the adjacent connection points;
The connection point is arranged reflecting the characteristic of the positional relationship indicated by the generated connection point feature data, and new leather shape data in which the groove for connecting the adjacent connection points is provided is generated. Leather shape data generation process,
A leather shape data generation method comprising:
皮革表面の凹凸形状を示す皮革形状データを取得する皮革形状データ取得手段、
前記取得された皮革形状データに基づいて、前記皮革表面における溝の位置と、複数の前記溝が接続される点である接続点の前記皮革表面における位置と、を特定する位置特定手段、
前記特定された溝の位置及び接続点の位置に基づいて、互いに隣接する前記接続点を特定する隣接接続点特定手段、
前記隣接する接続点同士の位置関係の特徴を示す接続点特徴データを生成する接続点特徴データ生成手段、
前記生成された接続点特徴データが示す位置関係の特徴を反映させて前記接続点を配置し、且つ、隣接する前記接続点同士を接続する前記溝を設けた新たな前記皮革形状データを生成する皮革形状データ生成手段、
として機能させることを特徴とする皮革形状データ生成処理プログラム。 Computer
Leather shape data acquisition means for acquiring leather shape data indicating the uneven shape of the leather surface;
Based on the acquired leather shape data, position specifying means for specifying the position of the groove on the leather surface and the position on the leather surface of the connection point, which is a point where the plurality of grooves are connected,
An adjacent connection point specifying means for specifying the connection points adjacent to each other based on the position of the specified groove and the position of the connection point;
Connection point feature data generating means for generating connection point feature data indicating the characteristics of the positional relationship between the adjacent connection points;
The connection point is arranged reflecting the characteristic of the positional relationship indicated by the generated connection point feature data, and new leather shape data in which the groove for connecting the adjacent connection points is provided is generated. Leather shape data generation means,
A leather shape data generation processing program characterized by functioning as
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008200440A JP5125859B2 (en) | 2008-08-04 | 2008-08-04 | Leather shape data generation device, leather shape data generation method, and leather shape data generation program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008200440A JP5125859B2 (en) | 2008-08-04 | 2008-08-04 | Leather shape data generation device, leather shape data generation method, and leather shape data generation program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010039662A true JP2010039662A (en) | 2010-02-18 |
JP5125859B2 JP5125859B2 (en) | 2013-01-23 |
Family
ID=42012160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008200440A Expired - Fee Related JP5125859B2 (en) | 2008-08-04 | 2008-08-04 | Leather shape data generation device, leather shape data generation method, and leather shape data generation program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5125859B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8340804B2 (en) | 2010-05-26 | 2012-12-25 | Brother Kogyo Kabushiki Kaisha | Embroidery data creation apparatus and non-transitory computer-readable medium storing embroidery data creation program |
JP2013196172A (en) * | 2012-03-16 | 2013-09-30 | Shiseido Co Ltd | Skin shape model generation device, skin shape model generation method, and skin shape model generation program |
WO2018127963A1 (en) * | 2017-01-06 | 2018-07-12 | 日本電気株式会社 | Pattern generation device, image processing device, pattern generation method, and storage medium on which program is stored |
CN112085726A (en) * | 2020-09-16 | 2020-12-15 | 杭州爱科科技股份有限公司 | Cladding identification method, device and system and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09265542A (en) * | 1996-03-28 | 1997-10-07 | Dainippon Printing Co Ltd | Method and device for generating unspecified-shape cell pattern and printed matter having the pattern |
JPH1049668A (en) * | 1996-08-05 | 1998-02-20 | Ricoh Co Ltd | Method for extracting characteristic from grey level document picture, and device therefor |
-
2008
- 2008-08-04 JP JP2008200440A patent/JP5125859B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09265542A (en) * | 1996-03-28 | 1997-10-07 | Dainippon Printing Co Ltd | Method and device for generating unspecified-shape cell pattern and printed matter having the pattern |
JPH1049668A (en) * | 1996-08-05 | 1998-02-20 | Ricoh Co Ltd | Method for extracting characteristic from grey level document picture, and device therefor |
Non-Patent Citations (12)
Title |
---|
CSNG199800289010; 石井智海, 外3名: '"表面の微細形状に注目した皮膚の質感表現の一手法"' 情報処理学会論文誌 第32巻, 第5号, 19910515, p.645-654, 社団法人情報処理学会 * |
CSNG200500132002; 河合利幸, 外1名: '"ボリュームモデルによる人工皮膚の表現法"' 電気学会論文誌C 第123巻, 第11号, 20031101, p.1936-1943, (社)電気学会 * |
CSNG200700196002; 宮田一乘, 外3名: '"パーティクルとメタボールを用いた皮革テクスチャの生成法"' 情報処理学会研究報告 第2006巻, 第119号, 20061117, p.13-18, 社団法人情報処理学会 * |
CSNG200700196003; 櫻井快勢, 外2名: '"弾性体メッシュを応用した皮革テクスチャの生成手法"' 情報処理学会研究報告 第2006巻, 第119号, 20061117, p.19-24, 社団法人情報処理学会 * |
CSNG200701339018; 松藤和夫, 外3名: '"毛穴で構成される皮革形状の特徴抽出手法の一提案"' 情報処理学会研究報告 第2007巻, 第111号, 20071112, p.103-108, 社団法人情報処理学会 * |
CSNG200701339019; 櫻井快勢, 外3名: '"毛穴で構成される皮革形状のパターン生成"' 情報処理学会研究報告 第2007巻, 第111号, 20071112, p.109-114, 社団法人情報処理学会 * |
JPN6012035433; 松藤和夫, 外3名: '"毛穴で構成される皮革形状の特徴抽出手法の一提案"' 情報処理学会研究報告 第2007巻, 第111号, 20071112, p.103-108, 社団法人情報処理学会 * |
JPN6012035435; 櫻井快勢, 外3名: '"毛穴で構成される皮革形状のパターン生成"' 情報処理学会研究報告 第2007巻, 第111号, 20071112, p.109-114, 社団法人情報処理学会 * |
JPN6012035437; 宮田一乘, 外3名: '"パーティクルとメタボールを用いた皮革テクスチャの生成法"' 情報処理学会研究報告 第2006巻, 第119号, 20061117, p.13-18, 社団法人情報処理学会 * |
JPN6012035439; 櫻井快勢, 外2名: '"弾性体メッシュを応用した皮革テクスチャの生成手法"' 情報処理学会研究報告 第2006巻, 第119号, 20061117, p.19-24, 社団法人情報処理学会 * |
JPN6012035441; 河合利幸, 外1名: '"ボリュームモデルによる人工皮膚の表現法"' 電気学会論文誌C 第123巻, 第11号, 20031101, p.1936-1943, (社)電気学会 * |
JPN6012035444; 石井智海, 外3名: '"表面の微細形状に注目した皮膚の質感表現の一手法"' 情報処理学会論文誌 第32巻, 第5号, 19910515, p.645-654, 社団法人情報処理学会 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8340804B2 (en) | 2010-05-26 | 2012-12-25 | Brother Kogyo Kabushiki Kaisha | Embroidery data creation apparatus and non-transitory computer-readable medium storing embroidery data creation program |
JP2013196172A (en) * | 2012-03-16 | 2013-09-30 | Shiseido Co Ltd | Skin shape model generation device, skin shape model generation method, and skin shape model generation program |
WO2018127963A1 (en) * | 2017-01-06 | 2018-07-12 | 日本電気株式会社 | Pattern generation device, image processing device, pattern generation method, and storage medium on which program is stored |
US11120295B2 (en) | 2017-01-06 | 2021-09-14 | Nec Corporation | Pattern generation device, image processing device, pattern generation method, and storage medium on which program is stored |
CN112085726A (en) * | 2020-09-16 | 2020-12-15 | 杭州爱科科技股份有限公司 | Cladding identification method, device and system and computer readable storage medium |
CN112085726B (en) * | 2020-09-16 | 2024-03-22 | 杭州爱科科技股份有限公司 | Leather identification method, device and system and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP5125859B2 (en) | 2013-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325437B (en) | Image processing method, device and system | |
CN111199531B (en) | Interactive data expansion method based on Poisson image fusion and image stylization | |
US6396491B2 (en) | Method and apparatus for reproducing a shape and a pattern in a three-dimensional scene | |
US8624901B2 (en) | Apparatus and method for generating facial animation | |
JP5299173B2 (en) | Image processing apparatus, image processing method, and program | |
CN109508678A (en) | Training method, the detection method and device of face key point of Face datection model | |
US9747668B2 (en) | Reconstruction of articulated objects from a moving camera | |
CN102509357B (en) | Pencil sketch simulating and drawing system based on brush stroke | |
US20210012550A1 (en) | Additional Developments to the Automatic Rig Creation Process | |
KR102161052B1 (en) | Method and appratus for segmenting an object in an image | |
JP6207210B2 (en) | Information processing apparatus and method | |
JP4199170B2 (en) | High-dimensional texture mapping apparatus, method and program | |
EP3326156B1 (en) | Consistent tessellation via topology-aware surface tracking | |
JP2011221980A (en) | System and program for creating virtual model, and system for creating interactive virtual content | |
JP6880618B2 (en) | Image processing program, image processing device, and image processing method | |
US11276202B2 (en) | Moving image generation apparatus, moving image generation method, and non-transitory recording medium | |
CN113628327A (en) | Head three-dimensional reconstruction method and equipment | |
Olsen et al. | Image-assisted modeling from sketches. | |
JP5125859B2 (en) | Leather shape data generation device, leather shape data generation method, and leather shape data generation program | |
CN111353069A (en) | Character scene video generation method, system, device and storage medium | |
Sheng et al. | Facial geometry parameterisation based on partial differential equations | |
US11748930B1 (en) | Systems and methods for rigging a point cloud for animation | |
JP4910990B2 (en) | Leather shape data generation device, leather shape data generation method, and leather shape data generation program | |
JP2017122993A (en) | Image processor, image processing method and program | |
Zhang et al. | Building façade element extraction based on multidimensional virtual semantic feature map ensemble learning and hierarchical clustering |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110520 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120625 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120710 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120910 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20121002 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121015 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5125859 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151109 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |