JPH06236440A - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH06236440A JPH06236440A JP5020362A JP2036293A JPH06236440A JP H06236440 A JPH06236440 A JP H06236440A JP 5020362 A JP5020362 A JP 5020362A JP 2036293 A JP2036293 A JP 2036293A JP H06236440 A JPH06236440 A JP H06236440A
- Authority
- JP
- Japan
- Prior art keywords
- image
- value
- component
- pixel
- processing method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Image Generation (AREA)
- Image Processing (AREA)
Abstract
(57)【要約】
【目的】 カラー自然画の物体領域の色、柄、および、
材質感、表面形状を別個に、あるいは組み合わせて変更
するシミュレ−ション方法を提供する。
【構成】 画像記憶装置に格納されたカラー画像を表わ
す画像データを計算機により加工処理する画像処理方法
であって、画像データの画素を表現する色成分値を座標
系とする色空間において、上記画像データ中の特定領域
の画素値の分布を代表する色ベクトルを抽出する過程1
02と、上記特定領域の画素値を上記色ベクトルで成分
分解した成分分解値を成分分解画像として求める過程1
02と、上記成分分解画像を変更する過程105,10
7と、該変更された成分分解画像に基づいて上記特定領
域の画素値を再構成する過程110とを備える。
(57) [Abstract] [Purpose] Color, pattern, and color of the object area of a color natural image
Provided is a simulation method for changing the texture and surface shape separately or in combination. An image processing method of processing image data representing a color image stored in an image storage device by a computer, wherein the image is processed in a color space having a color component value representing a pixel of the image data as a coordinate system. Step 1 of extracting a color vector representing the distribution of pixel values in a specific area in the data
02, and a step 1 of obtaining a component decomposition value obtained by decomposing the pixel value of the specific region with the color vector
02, and steps 105 and 10 for changing the above-mentioned component decomposition image.
7 and a step 110 of reconstructing pixel values of the specific region based on the modified component decomposition image.
Description
【0001】[0001]
【産業上の利用分野】本発明は、カラー自然画中の物体
の表面形状の変更、材質の変更をシミュレートする画像
処理方法に係り、特に、商品のデザインや、セールスプ
レゼンテーションなどに適した画像処理方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method for simulating a change in surface shape and a change in material of an object in a color natural image, and particularly to an image suitable for product design, sales presentation, etc. Regarding processing method.
【0002】[0002]
【従来の技術】カラー画像を表わす画像データを計算機
により加工して、その画像中の物体の表面形状や材質や
色、柄を別のものに変更する代表的な手法として、テク
スチャマッピングが知られている。2. Description of the Related Art Texture mapping is known as a typical method of processing image data representing a color image by a computer and changing the surface shape, material, color or pattern of an object in the image to another one. ing.
【0003】3次元CG(コンピュータグラフィクス)
では、セイコー電子工業(株)電子機器事業部訳“実践
コンピュータグラフィクス”(公知例1),pp438
−446に記述されているように、3次元空間内で定義
された物体の面にテクスチャ画像(テクスチャとは物体
の表面の細部をいう)をマッピング(写像)することを
考え、このときに、視点から見えるテクスチャ画像の画
素を求める。さらに、CGにおいては、上記公知例1の
pp446−450に記述されているように、物体の面
の法線方向に、表面の細かい凹凸を表現するパターンを
加えて面法線を変更することによって、微細な表面形状
を表現するバンプマッピングの手法が知られている。Three-dimensional CG (computer graphics)
Seiko Denshi Kogyo Co., Ltd. Electronic Equipment Division "Practical computer graphics" (Publication example 1), pp438
-446, consider mapping (mapping) a texture image (a texture is a detail of the surface of an object) onto the surface of the object defined in the three-dimensional space. At this time, Find the pixels of the texture image that can be seen from the viewpoint. Further, in CG, as described in pp 446-450 of the above-mentioned known example 1, by changing the surface normal by adding a pattern expressing fine irregularities on the surface in the normal direction of the surface of the object. , A bump mapping method for expressing a fine surface shape is known.
【0004】写真等の自然画を原画として、この特定の
物体領域の材質を変換する手法においても、一般にテク
スチャマッピングが用いられる。目的の材質の写真から
得た画像をテクスチャ画像として、原画像中の変換した
い物体領域の画素を、テクスチャ画像の画素に置き換え
る処理などが広く行われている。森田 他2名による
“陰影を反映したテクスチャマッピング方法の検討”,
1992,電子情報通信学会春季全国大会(公知例2)
のように、原画像の物体領域からあらかじめ抽出してお
いた陰影の付加をマッピング後に行って、自然な画像を
生成するものもある。Texture mapping is also generally used in a method of converting the material of the specific object region using a natural image such as a photograph as an original image. A process of replacing a pixel of an object region to be converted in an original image with a pixel of a texture image is widely performed by using an image obtained from a photograph of a target material as a texture image. Morita et al., "Examination of texture mapping method reflecting shadow",
1992, IEICE Spring National Convention (Publication 2)
In some cases, a natural image is generated by adding shadows extracted in advance from the object region of the original image after mapping.
【0005】また、特開平3−41570号(公知例
3)、特願平3−338167号(先行例)に記載され
ている画像処理方法は、本発明と同様に、カラー画像の
物体領域の画素値の色空間における分布を、反射モデル
に従って変換することによって、物体領域の色デザイン
シミュレーションを行う。物体の反射の性質に基づいた
手法なので、物体の光沢と陰影を保った色変更シミュレ
ーションを行うことができる。特に、公知例3は物体領
域の単一物体色の変更を行うものである。また、先行例
は、公知例3と公知例2のテクスチャマッピングを統合
した手法であり、単一の物体色だけでなく、さらに、柄
・模様の変更も可能にする。The image processing methods described in Japanese Patent Application Laid-Open No. 3-41570 (Publication 3) and Japanese Patent Application No. 3-338167 (Prior Art) are similar to those of the present invention in the object area of a color image. A color design simulation of the object region is performed by converting the distribution of pixel values in the color space according to the reflection model. Since the method is based on the reflection property of the object, it is possible to perform a color change simulation while maintaining the gloss and the shadow of the object. Particularly, in the known example 3, the single object color of the object area is changed. Further, the preceding example is a method in which the texture mappings of the known example 3 and the known example 2 are integrated, and it is possible to change not only a single object color but also the pattern / pattern.
【0006】公知例3を以下に簡単に説明する。色付き
プラスチック等の物体を撮影した画像において、この物
体領域の画素値C(x,y)は、公知例3において説明
を簡単にするために入力バイアスベクトルB=0,色テ
クスチャベクトルCd=0とすると、図3に示すように
色空間において、物体色Cbと光源色Cs、および、環
境色Caの3ベクトルの線形和で表現することができ
る。A known example 3 will be briefly described below. In an image obtained by photographing an object such as colored plastic, the pixel value C (x, y) of this object region is input bias vector B = 0 and color texture vector Cd = 0 in order to simplify the description in the known example 3. Then, in the color space as shown in FIG. 3, it can be expressed by a linear sum of three vectors of the object color Cb, the light source color Cs, and the environment color Ca.
【0007】[0007]
【数1】 [Equation 1]
【0008】図13に示すように、主光源から物体の表
面33に当たった入射光32は、物体表面33で反射さ
れる光(鏡面反射)34と、物体内に入り込み色粒子3
5と衝突を繰り返した後、物体外に出る光(拡散反射)
36とに分かれる。鏡面反射光は、入射角と物体の表面
方向により決まる所定の角度で反射される一方、拡散反
射光は表面33からすべての方向に拡散する。鏡面反射
光は主光源からの光と3原色成分比が同じとみなしてよ
く、拡散反射光は主光源と物体の固有の反射率とで決ま
る3原色成分値を有する。したがって、鏡面反射34が
光源色を表わし、物体内部の色粒子35により拡散され
た拡散反射36が物体色を表わす。物体のR,G,B成
分毎の拡散反射率CoをAs shown in FIG. 13, the incident light 32 which strikes the surface 33 of the object from the main light source is reflected by the surface 33 of the object (specular reflection) 34 and enters the object and the color particles 3 are reflected.
Light that goes out of the object after repeated collisions with 5 (diffuse reflection)
Divided into 36. The specularly reflected light is reflected at a predetermined angle determined by the incident angle and the surface direction of the object, while the diffusely reflected light diffuses from the surface 33 in all directions. Specular reflected light may be considered to have the same three primary color component ratio as light from the main light source, and diffuse reflected light has three primary color component values determined by the main light source and the specific reflectance of the object. Therefore, the specular reflection 34 represents the light source color, and the diffuse reflection 36 diffused by the color particles 35 inside the object represents the object color. Diffuse reflectance Co for each R, G, B component of the object
【0009】[0009]
【数2】 [Equation 2]
【0010】として、入射光IをAs an incident light I
【0011】[0011]
【数3】 [Equation 3]
【0012】とすると、物体色Cbは、Then, the object color Cb is
【0013】[0013]
【数4】 [Equation 4]
【0014】のように表現できる。It can be expressed as follows.
【0015】また、一般に主光源より発せられた光は物
体の周囲の物質に当たり、反射して物体に達する。例え
ば図14に示すように、物体に到達する光には青空(背
景)からの光があり、この光の物体による反射が存在す
る。この反射光の色は環境色と呼ばれる。この環境色C
aについても、背景からの環境光IaをFurther, in general, the light emitted from the main light source hits the substance around the object and is reflected and reaches the object. For example, as shown in FIG. 14, the light reaching the object includes light from the blue sky (background), and there is reflection of this light by the object. The color of this reflected light is called the environmental color. This environmental color C
Also for a, the ambient light Ia from the background
【0016】[0016]
【数5】 [Equation 5]
【0017】とすると、Then,
【0018】[0018]
【数6】 [Equation 6]
【0019】となる。It becomes
【0020】また、色付きプラスチック等の物体におい
ては、光源色Csは入射光Iと同じ色である。Further, in an object such as colored plastic, the light source color Cs is the same as the incident light I.
【0021】[0021]
【数7】 [Equation 7]
【0022】kは係数である。物体領域内のすべての画
素値C(x,y)について、ベクトルCs,Cbに対す
る成分分解値ms(x,y),mb(x,y)を求め
る。この成分分解値を画素値とする画像を成分分解画像
(図12)と呼ぶ。K is a coefficient. The component decomposition values ms (x, y) and mb (x, y) for the vectors Cs and Cb are calculated for all pixel values C (x, y) in the object area. An image having this component decomposition value as a pixel value is called a component decomposition image (FIG. 12).
【0023】公知例3は、物体の色を変更するときは、
物体色Cbを変更し、これに基づいて他の変更が必要な
ベクトルも変更して、数1により、物体領域の画素値を
再構成することにより物体の色を変更している。In the known example 3, when the color of the object is changed,
The object color is changed by changing the object color Cb, and also changing other vectors that need to be changed based on this, and reconstructing the pixel value of the object region by the equation (1).
【0024】先行例は画素x,y毎に数1におけるCb
(x,y)を定義し、In the preceding example, Cb in equation 1 for each pixel x, y
Define (x, y),
【0025】[0025]
【数8】 [Equation 8]
【0026】により、柄や模様をつける変換を実現して
いる。By the above, conversion for attaching patterns and patterns is realized.
【0027】公知例3および先行例においては、拡散反
射の色および鏡面反射の色は、物体色Cbと光源色Cs
に反映される。In the known example 3 and the prior art, the diffuse reflection color and the specular reflection color are the object color Cb and the light source color Cs.
Reflected in.
【0028】[0028]
【発明が解決しようとする課題】以上、述べた従来の方
法においては、次の課題がある。The conventional methods described above have the following problems.
【0029】公知例1のCGによる方法は、CGの長所
であるところの材質、表面形状、色、柄等のさまざまな
属性や物体の3次元情報、光源、視点等の情報を用いた
柔軟なシミュレーションができる反面、リアルな画像を
生成するには緻密なモデリングが必要になるという問題
がある。The CG method of the publicly known example 1 is flexible by using various attributes such as material, surface shape, color and pattern, which are advantages of CG, and three-dimensional information of an object, light source, viewpoint and the like. Although it can be simulated, there is a problem that precise modeling is necessary to generate a realistic image.
【0030】公知例2においては、表現したい材質と表
面形状と色と柄を兼ね備えた実在の物体の写真等の画像
が存在する場合、その物体写真をマッピングすることに
より、簡単にシミュレーションを行うことができる利点
がある。しかし、属性の組合せの数だけ多種の画像を保
持するのは実用的でなく、さらに、変更したい材質、表
面形状、色、柄を別個に指定するなどの柔軟なデザイン
シミュレーションができないという問題がある。In the known example 2, when there is an image such as a photograph of a real object having a material, a surface shape, a color and a pattern to be expressed, the simulation is simply performed by mapping the photograph of the object. There is an advantage that can be. However, it is not practical to store as many images as there are attribute combinations, and there is also the problem that it is not possible to perform flexible design simulation such as specifying the material, surface shape, color, and pattern to be changed separately. .
【0031】公知例3および先行例の方法を用いた場
合、公知例2に比べて、単一色の物体色変更においては
多数のテクスチャ画像を保持しなくてよいこと、また、
反射の性質に基づくモデル上でシミュレーションを行う
ことから、よりリアルな画像が得られるという利点があ
る。しかし、公知例2と同様に、物体領域の色や柄など
の色要素については陰影とは別個に指定してシミュレー
ションを行うことができるものの、色要素以外の物体表
面の幾何的な表面形状や材質を組合わせたシミュレーシ
ョンができないという問題がある。When the methods of the known example 3 and the prior example are used, it is not necessary to retain a large number of texture images when changing the object color of a single color, as compared with the known example 2.
Since the simulation is performed on the model based on the reflection property, there is an advantage that a more realistic image can be obtained. However, similarly to the known example 2, although the color elements such as the color and pattern of the object area can be specified separately from the shadow to perform the simulation, the geometric surface shape of the object surface other than the color elements and There is a problem that it is not possible to perform a simulation that combines materials.
【0032】本発明の目的は、写真等の一般のカラー自
然画を基に、簡単かつリアルなシミュレーションを行う
ことが可能な画像処理方法を提供することである。An object of the present invention is to provide an image processing method capable of performing a simple and realistic simulation based on a general color natural image such as a photograph.
【0033】本発明の他の目的は、色、柄の他、表面形
状、材質を組合せたシミュレーションを行うことが可能
な画像処理方法を提供することである。Another object of the present invention is to provide an image processing method capable of performing a simulation that combines surface shapes and materials in addition to colors and patterns.
【0034】[0034]
【課題を解決するための手段】上記目的を達成するため
に、本発明は、画像記憶装置に格納されたカラー画像を
表わす画像データを計算機により加工処理する画像処理
方法であって、上記画像データの画素を表現する色成分
値を座標系とする色空間において、上記画像データ中の
特定領域の画素値の分布を代表する色ベクトルを抽出す
る過程と、上記特定領域の画素値を上記色ベクトルで成
分分解した成分分解値を成分分解画像として求める過程
と、上記成分分解画像を変更する過程と、該変更された
成分分解画像に基づいて上記特定領域の画素値を再構成
する過程とを備えることを特徴とする。In order to achieve the above object, the present invention is an image processing method for processing image data representing a color image stored in an image storage device by a computer. In a color space having a color component value representing a pixel of a coordinate system as a coordinate system, a process of extracting a color vector representing a distribution of pixel values of a specific region in the image data, and a pixel value of the specific region being the color vector A step of obtaining a component decomposition value decomposed into components as a component decomposition image, a step of changing the component decomposition image, and a step of reconstructing pixel values of the specific region based on the changed component decomposition image. It is characterized by
【0035】上記特定領域は、物体領域であり、個々の
画素を区別するマスクによって他の領域と区別すること
ができる。The specific area is an object area and can be distinguished from other areas by a mask for distinguishing individual pixels.
【0036】上記色ベクトルは、たとえば、物体の拡散
反射の色を表す拡散反射色ベクトルおよび鏡面反射の色
を表す鏡面反射色ベクトルである。The color vectors are, for example, a diffuse reflection color vector representing the diffuse reflection color of the object and a specular reflection color vector representing the specular reflection color.
【0037】物体の材質に応じて、鏡面反射色ベクトル
による成分分解値と拡散反射色ベクトルによる成分分解
値とを特定の関係で変更することにより、物体の反射特
性を変更し、所望の材質感を得る。By changing the component decomposition value by the specular reflection color vector and the component decomposition value by the diffuse reflection color vector according to the material of the object in a specific relation, the reflection characteristic of the object is changed to obtain a desired material appearance. To get
【0038】また、成分分解画像を変更することによ
り、物体の表面形状を変更する方法を提供する。A method for changing the surface shape of an object by changing the component decomposition image is also provided.
【0039】成分分解画像の変更には、色ベクトルの変
更を組合せて用いることができる。A combination of color vector changes can be used to change the component decomposition image.
【0040】[0040]
【作用】公知例3において述べられているように、物体
色Cbによる成分分解値mb、および、光源色Csによ
る成分分解値msにより、物体領域の各画素値C(x,y)
は、数9で表現される。As described in the known example 3, each pixel value C (x, y) of the object region is calculated by the component decomposition value mb by the object color Cb and the component decomposition value ms by the light source color Cs.
Is expressed by Equation 9.
【0041】[0041]
【数9】 [Equation 9]
【0042】Isは鏡面反射による画素の色、Idは拡
散反射による画素の色を表す。光源色Csは鏡面反射の
色を表し、入射光をI=(Ri,Gi,Bi)、鏡面反
射率をCos=(ros,gos,bos)とすると、公知例3
で述べられているように、光源色Csは数10のように
なる。Is represents the pixel color due to specular reflection, and Id represents the pixel color due to diffuse reflection. The light source color Cs represents the color of specular reflection, where the incident light is I = (Ri, Gi, Bi) and the specular reflectance is Cos = (ros, gos, bos).
As described in (1), the light source color Cs is as shown in Expression 10.
【0043】[0043]
【数10】 [Equation 10]
【0044】本明細書では、光源色Csを鏡面反射色、
あるいは、鏡面反射ベクトルと呼ぶことにする。物体色
Cbは拡散反射の色を表し、拡散反射率をCo=(r
o,go,bo)とすると、公知例3で述べられている
ように、Cbは数11のようになる。In this specification, the light source color Cs is a specular reflection color,
Alternatively, it is called a specular reflection vector. The object color Cb represents the color of diffuse reflection, and the diffuse reflectance is Co = (r
o, go, bo), Cb becomes as shown in Formula 11, as described in the known example 3.
【0045】[0045]
【数11】 [Equation 11]
【0046】また、本明細書では、Cbを拡散反射色、
あるいは、拡散反射ベクトルと呼ぶことにする。In the present specification, Cb is a diffuse reflection color,
Alternatively, it is called a diffuse reflection vector.
【0047】成分分解値ms(x,y),mb(x,
y)は、光源の色や物体の色などの色要素以外の陰影情
報と考えられ、図4に示したように、画像中の物体領域
中の点x,yに対応する物体上の点Pにおいて、光源の
入射方向Iとの向きNの成す角θ、視点方向VとNの成
す角e、IとVの成す角gにより決まる幾何的な情報で
決まる。したがって、成分分解値msとmbを変更する
ことにより、物体の表面の細かい凹凸などの表面形状を
変更したときの陰影を表現できる。Component decomposition values ms (x, y), mb (x,
y) is considered to be shadow information other than color elements such as the color of the light source and the color of the object, and as shown in FIG. 4, a point P on the object corresponding to points x and y in the object area in the image. , The angle θ formed by the direction N with the incident direction I of the light source, the angle e formed by the viewpoint directions V and N, and the geometric information determined by the angle g formed by I and V. Therefore, by changing the component decomposition values ms and mb, it is possible to express a shadow when the surface shape such as fine irregularities on the surface of the object is changed.
【0048】また、拡散反射色による拡散成分分解値と
鏡面反射色による成分分解値は、物体の反射特性を表現
しており、材質により鏡面反射成分の分布の様子や拡散
反射成分と鏡面反射成分の割合などが特徴的に変化す
る。たとえば、なめらかなプラスチック物体の場合、ハ
イライトは物体表面の一部に強く観察されるが、これ
は、成分分解値においては特定の拡散反射成分値mbに
対応してms>0なる鏡面成分分解値が存在しているこ
とを示す。金属物体は鏡面反射成分が大きく、ゴムなど
のつやの無い物体ほど拡散反射成分が大きい。このよう
な物体の反射特性に着目し、拡散反射成分分解値と、鏡
面反射成分分解値を関連させて変更することにより、反
射特性に関係する物体領域の材質感変更を行うことがで
きる。Further, the diffuse component decomposition value by the diffuse reflection color and the component decomposition value by the specular reflection color express the reflection characteristics of the object, and the distribution state of the specular reflection component and the diffuse reflection component and the specular reflection component depending on the material. Characteristically, the rate of changes. For example, in the case of a smooth plastic object, highlights are strongly observed on a part of the surface of the object, which means that in the component decomposition value, the specular component decomposition is ms> 0 corresponding to a specific diffuse reflection component value mb. Indicates that the value is present. A metal object has a large specular reflection component, and a matte object such as rubber has a larger diffuse reflection component. By paying attention to the reflection characteristic of such an object and changing the diffuse reflection component decomposition value and the specular reflection component decomposition value in association with each other, it is possible to change the material appearance of the object region related to the reflection characteristic.
【0049】すなわち、成分分解画像や色ベクトルの変
更により物体の表面形状や材質感の変更および色・柄の
変更を行うことができる。数9において、両者を組合せ
るシミュレーションが可能である。色・柄の変更につい
ては、公知例3および先行例に記載されたとおりであ
り、ここでは詳述しない。That is, it is possible to change the surface shape and material appearance of an object and the color / pattern by changing the component decomposition image and the color vector. In Equation 9, a simulation that combines the two is possible. The change in color / pattern is as described in the known example 3 and the preceding example, and will not be described in detail here.
【0050】本発明では、自然画に対して、以下のよう
な物体の表面形状、材質感を変更する手法を適用する。In the present invention, the following technique for changing the surface shape and material appearance of an object is applied to a natural image.
【0051】(1)拡散反射成分の平滑化 拡散反射による物体上のある点Pにおける色は、ランバ
ートの法則を用いて数12のように表現できる(面の向
きを表すベクトルNは、大きさが正規化されているもの
とする)。(1) Smoothing of diffuse reflection component The color at a certain point P on the object due to diffuse reflection can be expressed as in Equation 12 using Lambert's law (the vector N representing the direction of the surface is of magnitude Shall be normalized).
【0052】[0052]
【数12】 [Equation 12]
【0053】[0053]
【数13】 [Equation 13]
【0054】θは図4においてP点における入射光Iと
面の向きNの成す角である。kdは材質に依存する拡散
反射係数である。公知例3と同様に入射光Iの色をR,
G,B成分で表し、I=(Ri,Gi,Bi)とし、kdもR,
G,B成分の物体の拡散反射率Co=(ro,go,bo)に置
き換えて、数9、数11を用いると、Θ is the angle formed by the incident light I at the point P in FIG. 4 and the direction N of the surface. kd is a diffuse reflection coefficient depending on the material. Similarly to the known example 3, the color of the incident light I is R,
It is represented by G and B components, I = (Ri, Gi, Bi), and kd is also R,
Substituting diffuse reflectance Co = (ro, go, bo) of the G and B component objects and using Equations 9 and 11,
【0055】[0055]
【数14】 [Equation 14]
【0056】[0056]
【数15】 [Equation 15]
【0057】が得られる。Is obtained.
【0058】ここで、θは図4において入射光Iと面の
向きNの成す角であり、cosθは成分分解値mbに対応
する。このモデルでは、mbは面の向きNと光源方向I
による幾何的情報であり、視点方向Vは無関係である。
数13、数15より、光源が十分遠いとき、拡散成分分
解値mbを重み付け加算により平滑化すると、面の向き
を平滑化する処理に相当する。したがって面が滑らかに
見せる効果がある。また、拡散反射成分の雑音除去に用
いることもできる。Here, θ is an angle formed by the incident light I and the surface direction N in FIG. 4, and cos θ corresponds to the component decomposition value mb. In this model, mb is the surface direction N and the light source direction I.
Is the geometrical information according to, and the viewpoint direction V is irrelevant.
From Equations 13 and 15, when the light source is sufficiently far, the diffusion component decomposition value mb is smoothed by weighted addition, which corresponds to the processing of smoothing the direction of the surface. Therefore, there is an effect that the surface looks smooth. It can also be used for noise removal of diffuse reflection components.
【0059】(2)鏡面反射成分のべき乗 鏡面反射については、フォン(Phong)のモデル、
および、ブリン(Blinn)のモデルがよく使われ
る。よく磨かれた鏡などの表面では、入射光は面の向き
に対して反対の方向である正反射方向Jに反射する。一
般の物体の場合、表面の細かい凹凸のために、正反射方
向を中心にして広がる。フォンのモデルにおいては、視
点方向Vと正反射方向Jの成す角αを考え、視点方向が
正反射方向からずれるだけ、cosαのn乗(nは任意
の実数)だけ正反射方向からに見たときより減少してい
るとした。(2) Exponentiation of specular reflection component Regarding the specular reflection, Phong's model,
And the Blinn model is often used. On a well-polished surface such as a mirror, incident light reflects in a specular reflection direction J, which is the opposite direction to the orientation of the surface. In the case of a general object, it spreads around the specular reflection direction due to fine irregularities on the surface. In the Phong model, the angle α formed by the viewpoint direction V and the regular reflection direction J is considered, and the viewpoint direction is deviated from the regular reflection direction, and the nth power of cos α (n is an arbitrary real number) is viewed from the regular reflection direction. It is said that it is decreasing than when.
【0060】[0060]
【数16】 [Equation 16]
【0061】ksは材質に依存する鏡面反射係数であ
る。入射光I=(Ri,Gi,Bi)とし、ksもR,G,B成分
の物体の鏡面反射率Cos=(ros,gos,bos)で置き換え
て、数9、数10を用いると、Ks is a specular reflection coefficient depending on the material. If incident light I = (Ri, Gi, Bi) is set and ks is also replaced by specular reflectance Cos = (ros, gos, bos) of an object of R, G, B components, and Equations 9 and 10 are used,
【0062】[0062]
【数17】 [Equation 17]
【0063】[0063]
【数18】 [Equation 18]
【0064】ブリンのモデルにおいては、物体の表面を
その方向についてゆらぎをもった微小面の集合と考え
た。このとき、VとIの1/2角方向を持つベクトルH
を考え、点P上に視点方向Vからみえる鏡面反射光は、
H方向を向く微小面の正反射によるとした。このとき、
点PにおいてH方向を向く微小面の割合が鏡面反射の量
を決める。面の向きNとHが一致するときにH方向の微
小面の割合が最大になると仮定して、HとNの成す角を
βとするとき、H方向を向く微小面の割合をcosβのn
乗で表現する。In Bryn's model, the surface of an object is considered to be a set of minute planes having fluctuations in the direction. At this time, a vector H having a ½ angle direction of V and I
And the specular reflected light seen from the viewpoint direction V on the point P is
It is assumed to be due to specular reflection of a minute surface facing the H direction. At this time,
At the point P, the ratio of the minute surface facing the H direction determines the amount of specular reflection. Assuming that the ratio of the minute faces in the H direction is maximum when the directions N and H of the faces coincide with each other, and the angle between H and N is β, the ratio of the minute faces facing the H direction is n of cosβ.
Express by the power of square.
【0065】[0065]
【数19】 [Formula 19]
【0066】フォンのモデルと同様に、入射光I=(Ri,
Gi,Bi)とし、鏡面反射率Cos=(ros,gos,bos)とし
て、数9、数10を用いると、As in the Phong model, the incident light I = (Ri,
Gi, Bi) and specular reflectance Cos = (ros, gos, bos), using Equations 9 and 10,
【0067】[0067]
【数20】 [Equation 20]
【0068】[0068]
【数21】 [Equation 21]
【0069】msは、数18、数21により、nの値に
よって図5に示すように変化する。よく磨かれた鏡のよ
うな滑らかな材質であるほど、表面の凹凸が少ないの
で、正反射方向に対する鏡面反射の広がりが抑えられ
る。このとき、nはより大きな値をとる。According to the equations (18) and (21), ms varies depending on the value of n as shown in FIG. The smoother the material is, such as a well-polished mirror, the less irregular the surface is, so that the spread of specular reflection in the specular reflection direction can be suppressed. At this time, n takes a larger value.
【0070】数18、数21より、鏡面反射成分の成分
分解値msをk乗(kは任意の実数:数7のkとは異な
る)とすると、nをk*nに変更する処理である。した
がって、鏡面反射成分の成分分解値msをk乗すると表
面の鏡面反射に対する特性が滑らかな鏡のような物体に
近づくことになる。From the equations (18) and (21), if the component decomposition value ms of the specular reflection component is the k-th power (k is an arbitrary real number: different from k in equation (7)), n is changed to k * n. . Therefore, when the component decomposition value ms of the specular reflection component is raised to the power of k, the object approaches a mirror-like object having a smooth surface specular reflection characteristic.
【0071】(3)凹凸の表現 成分分解値mb,msは、物体の面の向き、光源方向、
視点方向に関する幾何的な情報を表すから、成分分解画
像に微小な凹凸を表すテクスチャの関数を乗じたり、加
えたりすることによって、3次元CGにおけるバンプマ
ッピングに相当する効果が得られる。図6に示すよう
に、表面の凹凸を表す3次元形状に対して、数12、数
16のような適当な鏡面反射と拡散反射のモデルを用い
てレンダリングを行い、それぞれ鏡面反射画像と拡散反
射画像を生成する。この画像の各画素値の最大画素値に
対する比率を原成分分解画像の各画素値に乗じるなどし
て、表面の凹凸を表す三次元形状のレンダリング画像を
成分分解画像に反映させる。このとき、表面の凹凸を表
す3次元形状は、バンプ関数を用いたり、あるいは、半
球などの簡単な物体の面上に、バンプマッピングの手法
を用いてバンプ関数をマッピングすることにより生成で
きる。(3) Representation of unevenness The component decomposition values mb and ms are the object surface direction, the light source direction,
Since the geometrical information about the viewpoint direction is represented, the effect equivalent to bump mapping in the three-dimensional CG can be obtained by multiplying or adding the function of the texture representing the minute unevenness to the component decomposition image. As shown in FIG. 6, rendering is performed on a three-dimensional shape representing unevenness of the surface using appropriate specular reflection and diffuse reflection models such as Equations 12 and 16, and a specular reflection image and diffuse reflection image are obtained, respectively. Generate an image. By multiplying each pixel value of the original component decomposed image by the ratio of each pixel value of this image to the maximum pixel value, the three-dimensional rendering image representing the surface irregularities is reflected in the component decomposed image. At this time, the three-dimensional shape representing the unevenness of the surface can be generated by using the bump function or by mapping the bump function on the surface of a simple object such as a hemisphere using the bump mapping method.
【0072】また、図7に示すように物体に近似的な3
次元の構造が与えられているときは、その近似3次元物
体の面法線を用いて成分分解画像を変更することができ
る。面法線に対するバンプマッピングによる拡散反射成
分の変化分Δmbを算出し、原成分分解値mb(x,
y)に加えることにより、バンプマッピング後の拡散反
射成分mb’(x,y)を求める。Further, as shown in FIG.
Given a dimensional structure, the surface decomposition of the approximate 3D object can be used to modify the component decomposed image. The variation Δmb of the diffuse reflection component due to bump mapping with respect to the surface normal is calculated, and the original component decomposition value mb (x,
y), the diffuse reflection component mb ′ (x, y) after bump mapping is obtained.
【0073】[0073]
【数22】 [Equation 22]
【0074】数13、数15より、From equations 13 and 15,
【0075】[0075]
【数23】 [Equation 23]
【0076】ここで、θ(x,y)は、画素x,yに対
応する物体上の点Pにおける、バンプマッピングにより
変化した面法線N’と入射方向Iの成す角である。以下
の記述では、x,yの記述を省略して、Here, θ (x, y) is the angle formed by the incident direction I and the surface normal N ′ changed by bump mapping at the point P on the object corresponding to the pixel x, y. In the following description, the description of x and y is omitted and
【0077】[0077]
【数24】 [Equation 24]
【0078】[0078]
【数25】 [Equation 25]
【0079】3次元物体を面Q(u,w)、法線N
(u,w)とすると、バンプ関数f(u,w)により面
は次のように変化する。このとき、u(x,y)、w
(x,y)とする。The surface Q (u, w) of the three-dimensional object and the normal N
If (u, w), the surface changes as follows due to the bump function f (u, w). At this time, u (x, y), w
Let (x, y).
【0080】[0080]
【数26】 [Equation 26]
【0081】このとき、法線Nは、At this time, the normal line N is
【0082】[0082]
【数27】 [Equation 27]
【0083】ここで、Quは面Q(u,w)におけるu
方向への偏微分で、Here, Qu is u in the plane Q (u, w).
Partial differential in the direction
【0084】[0084]
【数28】 [Equation 28]
【0085】Qwは面Q(u,w)におけるw方向への
偏微分で、Qw is a partial differential in the w direction on the surface Q (u, w), and
【0086】[0086]
【数29】 [Equation 29]
【0087】×は外積を表す。同様にして、Q’(u,
w)の変更法線N’は、X represents an outer product. Similarly, Q '(u,
The modified normal N ′ of w) is
【0088】[0088]
【数30】 [Equation 30]
【0089】であり、Qu’,Qw’は、And Qu 'and Qw' are
【0090】[0090]
【数31】 [Equation 31]
【0091】[0091]
【数32】 [Equation 32]
【0092】となり、fu,fwは、And fu and fw are
【0093】[0093]
【数33】 [Expression 33]
【0094】[0094]
【数34】 [Equation 34]
【0095】である。以上、数24から数34を用い
て、数25におけるmb’は次のようになる。It is As described above, using Equations 24 to 34, mb ′ in Equation 25 is as follows.
【0096】[0096]
【数35】 [Equation 35]
【0097】よって、mbの変化分Δmbは、Therefore, the variation Δmb of mb is
【0098】[0098]
【数36】 [Equation 36]
【0099】で、物体Q(u,w)と光源Iを仮定する
ことにより、マッピング後の拡散反射成分を求めること
ができる。原画の成分分解画像に仮定物体上の変化分を
加えているので、仮定する物体が厳密でなくとも効果が
期待できる。By assuming the object Q (u, w) and the light source I, the diffuse reflection component after mapping can be obtained. Since the amount of change on the assumed object is added to the component decomposition image of the original image, the effect can be expected even if the assumed object is not exact.
【0100】(4)材質の変更 次に、反射特性を変更させることにより材質感の変更を
行う。変更したい物体の反射特性をモデル化し、モデル
に応じて成分分解画像を処理する。CGにおいては、数
12や数16を用いて、プラスチックは鏡面反射と拡散
反射の線形和で、金属は鏡面反射でモデル化されること
がある。橋本理らによる“カラー画像を用いた物体表面
の反射特性の認識”,第2回信号システム制御シンポジ
ウム予稿(Preprints of the Second Signals Systems
Control Symposium)('89.1.24-25)に記述されているよ
うに、材質によりそのカラー自然がの物体領域の色空間
における画素値の分布は特徴的である。これは、CGに
おけるモデリングの結果にほぼ一致している。プラスチ
ック、金属、ゴム・布地の色空間における画素値の分布
を図8、図9、図10、図11に示す。材質感を変更す
るために、成分分解値の各画素値ms(x,y),mb
(x,y)や色ベクトルCs,Cbを変更して、材質の
特徴を持った分布にする。以下に、プラスチック、メタ
リック、金属、ゴム・布地について、これらの材質の特
徴を述べ、材質感を表現するために成分分解画像と色ベ
クトルをどのように変更すればよいかを示す。(4) Change of Material Next, the material feeling is changed by changing the reflection characteristic. The reflection characteristic of the object to be changed is modeled, and the component decomposition image is processed according to the model. In CG, the plastic may be modeled by a linear sum of specular reflection and diffuse reflection, and the metal may be modeled by specular reflection using the mathematical formulas 12 and 16. "Recognition of Reflection Characteristics of Object Surface Using Color Image" by Hashimoto et al., Preprints of the Second Signals Systems
As described in Control Symposium) ('89 .1.24-25), the distribution of pixel values in the color space of the object region where the color nature of the material is characteristic is characteristic. This is almost in agreement with the result of modeling in CG. The pixel value distributions in the color space of plastic, metal, rubber and cloth are shown in FIGS. 8, 9, 10, and 11. In order to change the material appearance, each pixel value of the component decomposition value ms (x, y), mb
By changing (x, y) and the color vectors Cs and Cb, a distribution having characteristics of the material is obtained. The characteristics of these materials are described below for plastic, metallic, metal, rubber and cloth, and how the component decomposition image and color vector should be changed in order to express the texture.
【0101】(a)プラスチック物体 図8に示すプラスチック物体の色空間における画素値の
分布の特徴を以下に示す。(A) Plastic Object The characteristics of the pixel value distribution in the color space of the plastic object shown in FIG. 8 are shown below.
【0102】・色空間において画素値が、鏡面反射のベ
クトルCsと拡散反射のベクトルCbの2ベクトル上に
ほぼ線形に分布する。In the color space, the pixel values are distributed almost linearly on the two vectors of the specular reflection vector Cs and the diffuse reflection vector Cb.
【0103】・鏡面反射は光源と同じ色を持つので、画
素値の分布で表われる鏡面反射色ベクトルの向きは光源
の色と同じである。Since the specular reflection has the same color as the light source, the direction of the specular reflection color vector represented by the distribution of pixel values is the same as the color of the light source.
【0104】以上より、成分分解画像と色ベクトルを次
のようにすればよい。From the above, the component decomposed image and the color vector may be set as follows.
【0105】・数9において、特定の範囲の拡散反射成
分値mbを持つ画素x,yに対してだけ、0より十分大
きい鏡面反射成分msが存在するようにする。In the equation 9, the specular reflection component ms sufficiently larger than 0 exists only for the pixels x and y having the diffuse reflection component value mb in the specific range.
【0106】・Csの向きが光源と同じである。すなわ
り、数10において、ros=gos=bosとする。The direction of Cs is the same as that of the light source. In other words, in equation 10, ros = gos = bos.
【0107】艶のある材質感にするには、鏡面反射成分
の割合を増やすために数9におけるCsを大きくした
り、物体上のハイライト部分の広がりを狭めるために、
数18、数21における鏡面反射成分Msをn乗したり
すればよい。In order to obtain a glossy material appearance, in order to increase the ratio of the specular reflection component, Cs in Equation 9 should be increased, or in order to narrow the spread of the highlight portion on the object,
The specular reflection component Ms in Expressions 18 and 21 may be raised to the n-th power.
【0108】(b)金属物体 色空間における画素値の分布が図10のようになるよう
にする。すなわち、金属には次の特徴がある。(B) The distribution of pixel values in the metal object color space is set as shown in FIG. That is, the metal has the following characteristics.
【0109】・色空間において、画素値が鏡面反射のベ
クトルCs上にほぼ線形に分布する。In the color space, the pixel values are distributed almost linearly on the specular reflection vector Cs.
【0110】・鏡面反射成分の色には、金属の色が反映
している。The metal color is reflected in the color of the specular reflection component.
【0111】・物体上の各点において鏡面反射が観測さ
れ、鏡面反射成分分解値msの値の変化がプラスチック
に比べ緩やかである。Specular reflection is observed at each point on the object, and the change in the specular reflection component decomposition value ms is gentler than that of plastic.
【0112】以上より、成分分解画像と色ベクトルを次
のようにすればよい。From the above, the component decomposed image and the color vector may be set as follows.
【0113】・数9において、Csを大きくして鏡面反
射成分を増やし、Cbを小さくして拡散反射成分を減ら
す。In Equation 9, Cs is increased to increase the specular reflection component, and Cb is decreased to reduce the diffuse reflection component.
【0114】・数17において、反射率(ros,go
s,bos)に金属の色を定義し、光源の色とは異なる
鏡面反射ベクトルCsとする。In the equation 17, the reflectance (ros, go
(s, boss) is defined as a metal color, and a specular reflection vector Cs different from the color of the light source is defined.
【0115】・鏡面反射成分値msの変化を緩やかにす
る。The change in the specular reflection component value ms is made gentle.
【0116】(c)メタリック物体 メタリックの塗料は図9に示すようにモデルする。すな
わち、メタリックには次の特徴がある。(C) Metallic object The metallic paint is modeled as shown in FIG. That is, metallic has the following characteristics.
【0117】・鏡面反射と拡散反射があるが、画素値の
色空間内における分布は鏡面反射と拡散反射が明確に分
離されない。There are specular reflection and diffuse reflection, but the distribution of pixel values in the color space does not clearly separate specular reflection and diffuse reflection.
【0118】・鏡面反射成分の色には、金属の色が反映
している。The metal color is reflected in the color of the specular reflection component.
【0119】これらは、メタリック塗料の媒体内にラン
ダムに微小な金属片が散在し、この微小金属片によっ
て、様々な角度から始点に鏡面反射光が入射するからで
る。したがって、次のようにして、メタリック塗料の質
感を表現する。These are because minute metal pieces are randomly scattered in the medium of the metallic paint, and the specularly reflected light is incident on the starting point from various angles by the minute metal pieces. Therefore, the texture of the metallic paint is expressed as follows.
【0120】・一定間隔に、あるいは、不定間隔にピッ
クアップされたmsを0<ms<1にし、他のmsをほ
ぼ0にする。The ms picked up at regular intervals or at irregular intervals are set to 0 <ms <1 and other ms are set to almost 0.
【0121】・数17において、反射率(ros,go
s,bos)に金属の色を定義し、光源の色とは異なる
鏡面反射ベクトルCsとする。In equation 17, the reflectance (ros, go
(s, boss) is defined as a metal color, and a specular reflection vector Cs different from the color of the light source is defined.
【0122】(d)布・ゴム等の艶のない物体 色空間における画素値の分布が図11に示したような分
布となるようにする。すなわち、布・ゴム等には次の特
徴がある。(D) Matte object such as cloth, rubber, etc. The distribution of pixel values in the color space is set as shown in FIG. That is, cloth and rubber have the following characteristics.
【0123】・色空間において、画素値が、拡散反射の
ベクトルCb上にほぼ線形に分布する。In the color space, the pixel values are distributed almost linearly on the diffuse reflection vector Cb.
【0124】これにより、次のようにすればよい。As a result, the following may be carried out.
【0125】・数9において、鏡面反射ベクトルCsを
小さくして鏡面反射成分を減らす。In Equation 9, the specular reflection vector Cs is reduced to reduce the specular reflection component.
【0126】尚、以上の処理のほかに、前記「(3)凹
凸の表現」の処理で様々な材質(布地、石など)の表面
形状を表現することができる。In addition to the above processing, the surface shape of various materials (fabric, stone, etc.) can be expressed by the processing of "(3) Expression of unevenness".
【0127】[0127]
【実施例】本発明の一実施例を詳細に説明する。本実施
例は、カラー自然画の物体領域の画素値を変更すること
により、物体の見た目の材質感、凹凸の表面形状、色・
柄の変更をシミュレートするものである。EXAMPLE An example of the present invention will be described in detail. In this embodiment, by changing the pixel value of the object area of the color natural image, the appearance of the material of the object, the surface shape of the unevenness, the color
It is intended to simulate a pattern change.
【0128】まず、図2に本発明の画像処理が実行され
るシステムのハードウエア構成を示す。このシステム
は、本発明の画像処理プログラムを実行するコンピュー
タ202、プログラムおよびデータを格納する外部記憶
装置205、ユーザからの入力操作を受け付けるキーボ
ード203およびマウス204、文字および画像データ
を表示する表示部(CRT)、原画情報を入力するスキ
ャナ(あるいはビデオカメラ)206からなる。First, FIG. 2 shows a hardware configuration of a system in which the image processing of the present invention is executed. This system includes a computer 202 that executes the image processing program of the present invention, an external storage device 205 that stores the program and data, a keyboard 203 and a mouse 204 that receive input operations from a user, and a display unit that displays characters and image data ( A CRT) and a scanner (or video camera) 206 for inputting original image information.
【0129】図1に、本発明の一実施例の処理手順を示
す。FIG. 1 shows the processing procedure of an embodiment of the present invention.
【0130】ステップ101では、記憶装置205に格
納されている画像データを入力する。本実施例では、こ
の画像データは、例えば図15に示すように、ビデオカ
メラで撮像された自然画の原画像データである。すなわ
ち、図12(a)に示すように、原画像は、2次元座標
(x,y)に対応する各画素毎にR,G,Bの値で表わ
される。この画像データには、色情報に加えて、各画素
に対してマスク値と呼ばれる色とは別の情報を画素毎に
付加されているものとする。画像シミュレーションを行
う領域の画素だけに特別なマスク値を与えることによっ
て、以降、注目している画素が変更する対象であるか否
かを判断することができる。本実施例では、プラスチッ
ク物体を撮影した画像を入力画像とする例を示す。In step 101, the image data stored in the storage device 205 is input. In this embodiment, this image data is original image data of a natural image captured by a video camera, as shown in FIG. 15, for example. That is, as shown in FIG. 12A, the original image is represented by R, G, B values for each pixel corresponding to the two-dimensional coordinates (x, y). It is assumed that, in addition to the color information, information different from the color called a mask value is added to each pixel in the image data. By giving a special mask value only to the pixels in the area where the image simulation is performed, it is possible to determine whether or not the pixel of interest is a target to be changed thereafter. In the present embodiment, an example in which an image obtained by shooting a plastic object is used as an input image will be described.
【0131】ステップ102では、対象物体領域から、
公知例3と同様の方法で、拡散反射色(物体色)Cb、
鏡面反射色(光源色)Cs、環境色Caを抽出する(図
12(b))。次にこれらのベクトルをコンピュータ2
02内の主記憶(図示せず)に格納する。At step 102, from the target object area,
Diffuse reflection color (object color) Cb in the same manner as in the known example 3,
The specular reflection color (light source color) Cs and the environment color Ca are extracted (FIG. 12B). Next, these vectors are calculated by computer 2
02 is stored in the main memory (not shown).
【0132】ステップ103では、対象物体領域内の各
画素について、公知例3と同様な方法で鏡面反射成分分
解値(ms)および拡散反射成分分解値(mb)を求め
(図12(c))、これをコンピュータ202内の主記
憶に格納する。In step 103, the specular reflection component decomposition value (ms) and diffuse reflection component decomposition value (mb) are obtained for each pixel in the target object region by the same method as in the known example 3 (FIG. 12 (c)). , And stores it in the main memory in the computer 202.
【0133】以下のステップ104,105と、ステッ
プ106、107と、ステップ108,109の3組の
処理は、単独であるいは任意に組み合わせて実行するこ
とができる。The following three sets of processing of steps 104 and 105, steps 106 and 107, and steps 108 and 109 can be executed independently or in any combination.
【0134】ステップ104では、目的の材質の指定を
行う。まず、CRT201上に表示されたメニューによ
り、プラスチック、金属、メタリック、布地の選択をマ
ウス204、または、キーボード203で行う。以後、
これらの材質毎に、表面形状と色・柄の指定を行う。こ
れは、CRT201に表示したメニュー項目を、マウス
204またはキーボード203で選択することにより行
う。At step 104, the intended material is designated. First, using the menu displayed on the CRT 201, plastic, metal, metallic, or cloth is selected with the mouse 204 or the keyboard 203. After that,
The surface shape, color, and pattern are specified for each of these materials. This is done by selecting a menu item displayed on the CRT 201 with the mouse 204 or the keyboard 203.
【0135】ステップ105では、作用の「(4)材質
の変更」で述べたように、ステップ104で指定した材
質に対応する色空間内の画素値の分布(図8〜図11)
になるように、成分分解値あるいは色ベクトルを変更す
る。以下に材質がプラスチック、金属メタリック、ゴム
の場合についてそれぞれ説明する。In step 105, the distribution of pixel values in the color space corresponding to the material designated in step 104 (FIGS. 8 to 11), as described in "(4) Change of material" in the operation.
The component decomposition value or color vector is changed so that The case where the material is plastic, metallic metal, or rubber will be described below.
【0136】(1)プラスチック物体 本実施例のように、入力画像がプラスチック物体である
場合、本ステップでの成分分解画像と色ベクトルの変更
処理は基本的に不要である。しかし、ここで鏡面反射成
分を持たないゴム等の物体が入力画像となるときの変更
例を示しておく。まず、光源と同じ色の鏡面反射ベクト
ルCsを定義し、次に成分の拡散反射成分値mbの限定
された範囲で鏡面反射成分msが十分に大きい(0でな
い)値を持つように成分分解画像を変更する。画素x,
yに対応する拡散反射成分値mb(x,y)において、 t1<mb<t2 (数37) (t1,t2は0以上1以下の正の実数であり、t1<
t2)を定義域として、 ms(x,y)=f(mb(x,y)) (数38) なる1を最大値とするガウス分布などの適当な凸形の関
数fを考え、t1,t2の範囲でmsが適当な大きさを
持つように、鏡面反射成分分解画像ms(x,y)を作
成する。(1) Plastic Object When the input image is a plastic object as in the present embodiment, the process of changing the component decomposition image and the color vector in this step is basically unnecessary. However, here, a modification example will be described in which an object such as rubber having no specular reflection component serves as an input image. First, a specular reflection vector Cs of the same color as the light source is defined, and then the specular reflection component ms has a sufficiently large (non-zero) value within a limited range of the diffuse reflection component value mb of the component. To change. Pixel x,
In the diffuse reflection component value mb (x, y) corresponding to y, t1 <mb <t2 (Equation 37) (t1, t2 are positive real numbers from 0 to 1), and t1 <
With t2) as a domain, consider an appropriate convex function f such as a Gaussian distribution having a maximum value of 1 such that ms (x, y) = f (mb (x, y)) (Equation 38), and t1, The specular reflection component decomposed image ms (x, y) is created so that ms has an appropriate size in the range of t2.
【0137】入力物体の材質に関わらず、色ベクトルC
s,Cbの大きさを変更したり、作用で述べたように鏡
面反射成分値を数18、数21によりn乗して鏡面反射
の広がり方を変更することによる材質感の微修正ができ
る。鏡面反射成分の割合を増やしたりnを大きくするこ
とにより鏡面反射の広がりを狭めるほど、一般に艶のあ
る材質になる。Regardless of the material of the input object, the color vector C
The feeling of material can be finely corrected by changing the sizes of s and Cb, or by changing the spread of the specular reflection by raising the specular reflection component value to the nth power by the equations 18 and 21 as described in the operation. The narrower the extent of specular reflection by increasing the ratio of the specular reflection component or increasing n, the generally glossier the material.
【0138】(2)金属物体 プラスチックが入力画像である場合、プラスチックは金
属に比べて物体上の各点の幾何的な条件(面の向き、視
点、光源方向)に対して、鏡面反射成分msの変化が急
激であるので、例えば、小さい値のms値を大きくして
出力するルックアップテーブルを設け、これを用いて、
鏡面反射成分値の変化が緩やかになるようにする。さら
に、鏡面反射ベクトルCsについて、その大きさを拡散
反射ベクトルCbに比べて大きく、また、数17におい
て、反射率(ros,gos,bos)に金属の色を定
義し、光源の色とは異なる鏡面反射ベクトルCsに変更
する。(2) Metal object When the plastic is the input image, the plastic is more specular reflection component ms than the metal with respect to the geometrical conditions (face direction, viewpoint, light source direction) of each point on the object. Since the change of is drastic, for example, a lookup table that outputs by increasing the ms value of a small value is provided, and using this,
Make the change in the specular reflection component value gradual. Further, the magnitude of the specular reflection vector Cs is larger than that of the diffuse reflection vector Cb, and the metal color is defined as the reflectance (ros, gos, boss) in Expression 17, which is different from the color of the light source. Change to the specular reflection vector Cs.
【0139】(3)メタリック物体 まず、金属と同じ処理を行う。すなわち、成分分解値に
ついては、鏡面反射成分値の変化が緩やかになるように
変更し、鏡面反射ベクトルCsについては、その大きさ
を拡散反射ベクトルCbに比べて大きく、また、金属の
色を反映した色になるように変更する。次に、作用で述
べたように、色空間において、一定間隔あるいは不定間
隔でピックアップされた拡散反射成分分解値mbに対応
する鏡面反射成分分解値msを0等の小さな値にするこ
とによって、鏡面反射の値にばらつきを出す。変換する
msは、画像中の画素値の間隔で決めることもできる。
上記において、不定間隔にmsを決めるとき、乱数を用
いればよい。(3) Metallic Object First, the same treatment as for metal is performed. That is, the component decomposition value is changed so that the change in the specular reflection component value becomes gentle, and the magnitude of the specular reflection vector Cs is larger than the diffuse reflection vector Cb, and the color of the metal is reflected. Change it to the color you specified. Next, as described in the operation, in the color space, the specular reflection component decomposition value ms corresponding to the diffuse reflection component decomposition value mb picked up at regular intervals or irregular intervals is set to a small value such as 0 It causes variations in the value of reflection. The ms to be converted can also be determined by the interval of pixel values in the image.
In the above, a random number may be used when deciding ms at an indefinite interval.
【0140】(4)布・ゴム等の物体 入力画像がプラスチックの場合、鏡面反射ベクトルCs
を小さくすることにより、鏡面反射成分を減らせばよ
い。布の場合には、次のステップ106、107で糸の
織りに応じた凹凸のパターンを用いて、作用の「(3)
凹凸の表現」で述べた処理でよりリアルな材質感を表現
することができる。(4) Object such as cloth or rubber When the input image is plastic, the specular reflection vector Cs
It is sufficient to reduce the specular reflection component by reducing. In the case of cloth, in the next steps 106 and 107, the pattern of unevenness according to the weaving of the yarn is used to
A more realistic material feeling can be expressed by the processing described in "Expression of unevenness".
【0141】以上、ステップ105で変更した成分分解
画像と色ベクトルをコンピュータ202内の主記憶に格
納する。The component-separated image and color vector changed in step 105 are stored in the main memory of the computer 202.
【0142】ステップ106では、表面形状を指定す
る。例えば、CRT201に表示しながらキーボード2
01で自由に横断面を手書するなど、表面の細かい凹凸
を指定する。あるいは、断面図を外部記憶装置205に
格納しておき、これを用いる。At step 106, the surface shape is designated. For example, keyboard 2 while displaying on CRT 201
Designate fine irregularities on the surface by freely writing the cross section with 01. Alternatively, the sectional view is stored in the external storage device 205 and used.
【0143】ステップ107では、作用「(3)凹凸の
表現」で述べたように、ステップ106で指定した凹凸
の形状に基づいて成分分解画像を変更する。この成分分
解画像の変更により、物体領域に凹凸の陰影が付与さ
れ、表面形状が変更されたように見える。成分分解画像
の具体的に変更法を以下に説明する。In step 107, the component decomposition image is changed based on the shape of the unevenness designated in step 106, as described in the operation "(3) Expression of unevenness". By changing the component decomposition image, unevenness is given to the object region, and it seems that the surface shape is changed. A specific method of changing the component decomposition image will be described below.
【0144】第1に、図6に示したように、凹凸形状を
レンダリングし、この結果の画像を成分分解画像に乗じ
る方法を説明する。拡散反射についての成分分解画像の
生成は次のように行う。レンダリング画像の生成は、数
12において、kdおよび光源Iの大きさを共に1と
し、光源Iの入射方向を視点方向(カメラ方向)にする
などして算出する。次に、数12によりレンダリングさ
れた拡散反射画像の各画素をその画素の最大値で割って
1以下の数値に正規化したもの(Pb(u,w)、ただ
しu(x,y),w(x,y))を、コンピュータ20
2の主記憶に格納されている拡散反射成分分解画像mb
(x,y)の各画素に乗じて、これを拡散反射成分分解
画像とする。鏡面反射成分についての成分分解画像の生
成も同様である。すなわち、数16において、ksおよ
び光源Iの大きさを共に1とし、光源Iの入射方向を拡
散反射の場合と同じにしてレンダリング画像を生成す
る。レンダリングされた鏡面反射画像の各画素をその画
素の最大値で割って1以下の数値に正規化したもの(P
s(u,w)、ただしu(x,y)、w(x,y))
を、コンピュータ202の主記憶に格納されている鏡面
反射成分分解画像ms(x,y)の各画素に乗じて、こ
れを鏡面反射成分分解画像とする。First, as shown in FIG. 6, a method of rendering a concavo-convex shape and multiplying the resulting image by the component decomposition image will be described. The component decomposition image for diffuse reflection is generated as follows. The generation of the rendering image is calculated by setting the kd and the size of the light source I to 1 in Equation 12 and setting the incident direction of the light source I to the viewpoint direction (camera direction). Next, each pixel of the diffuse reflection image rendered by Equation 12 is divided by the maximum value of the pixel and normalized to a numerical value of 1 or less (Pb (u, w), where u (x, y), w (X, y)) to the computer 20
Diffuse reflection component decomposed image mb stored in main memory 2
Each pixel of (x, y) is multiplied to obtain a diffuse reflection component decomposed image. The same applies to the generation of the component decomposition image for the specular reflection component. That is, in Expression 16, both ks and the size of the light source I are set to 1, and the rendering direction is generated by setting the incident direction of the light source I to be the same as in the case of diffuse reflection. Each pixel of the rendered specular reflection image is divided by the maximum value of the pixel and normalized to a numerical value of 1 or less (P
s (u, w), where u (x, y), w (x, y))
Is multiplied by each pixel of the specular reflection component decomposed image ms (x, y) stored in the main memory of the computer 202 to obtain a specular reflection component decomposed image.
【0145】第2に、作用で述べた近似3次元物体の面
法線を用いて表面形状を変更する方法を示す。このと
き、拡散反射成分分解値を決めた後で、鏡面反射成分分
解値は次のような方法で定める。一つには、既に決定し
ている拡散反射成分分解値mbを用いて、画像中物体領
域の色空間における分布からmbに対応するmsを求め
る。あるいは、図7においてはバンプ関数f(u,w)
で示した形状パターンに対応して、予め上記第1の方法
を用いて鏡面反射のパターンを決めておき、このパター
ンをを原画のmsとする。あるいはこのパターンをms
に乗じるなどしてmsに反映させる。Secondly, a method of changing the surface shape by using the surface normal of the approximate three-dimensional object described in the operation will be described. At this time, after the diffuse reflection component decomposition value is determined, the specular reflection component decomposition value is determined by the following method. First, using the already determined diffuse reflection component decomposition value mb, ms corresponding to mb is obtained from the distribution in the color space of the object region in the image. Alternatively, in FIG. 7, the bump function f (u, w)
A specular reflection pattern is determined in advance by using the first method in correspondence with the shape pattern shown in, and this pattern is defined as ms of the original image. Or this pattern ms
It is reflected in ms by multiplying by.
【0146】本ステップで滑らかさの指定を行う場合、
作用の「(2)鏡面反射成分のべき乗」で述べたよう
に、滑らかであるほど数16におけるnを大きくするよ
うに、鏡面反射成分分解値msをk乗する。拡散反射成
分についても、作用の「(1)拡散反射成分の平滑化」
で述べたように、重み付け加算するなどして注目画素の
近傍で平均化処理を行い、法線が滑らかに変化するよう
にする。例えば、注目画素x,yの値をC(x,y)と
するとき、近傍の8画素を含めた9画素の値C(i,
j)(i=x−1,x,x+1,j=y−1,y,y+
1)で次式のように平均化する。When smoothness is designated in this step,
As described in "(2) Exponentiation of specular reflection component" of the action, the specular reflection component decomposition value ms is raised to the power of k so that n in Expression 16 increases as the smoothness increases. Regarding the diffuse reflection component, "(1) Smoothing the diffuse reflection component" of the action
As described above, the averaging process is performed in the vicinity of the pixel of interest by performing weighted addition or the like so that the normal line changes smoothly. For example, when the value of the target pixel x, y is C (x, y), the value C (i,
j) (i = x-1, x, x + 1, j = y-1, y, y +
In 1), they are averaged as in the following equation.
【0147】 但し、 である。[0147] However, Is.
【0148】以上により変更された成分分解画像はコン
ピュータ202の主記憶に格納する。The component-decomposed image modified as described above is stored in the main memory of the computer 202.
【0149】ステップ108では、キーボード203や
マウス204により、単一色を指定したり、柄を示すテ
クスチャ画像を選択する。At step 108, a single color is designated by the keyboard 203 or the mouse 204, or a texture image showing a pattern is selected.
【0150】ステップ109では、公知例3および先行
例の方法を用いて、既に指定した色や柄から拡散拡散反
射ベクトルCbと他の色ベクトルを変更する。In step 109, the diffuse diffuse reflection vector Cb and other color vectors are changed from the already designated color or pattern using the methods of the known example 3 and the prior art.
【0151】ステップ110では、上記変更した色ベク
トルとコンピュータ202の主記憶内に格納されている
成分分解画像に基づいて、数9を用いて変更画素値を計
算して、変更画像を再構成する。この画像をCRT20
1に表示し、生成した画像を外部記憶装置205に格納
する。In step 110, based on the changed color vector and the component-separated image stored in the main memory of the computer 202, the changed pixel value is calculated by using Equation 9, and the changed image is reconstructed. . This image is CRT20
1, and the generated image is stored in the external storage device 205.
【0152】本実施例における成分分解画像を、先行例
における陰影を表す「標準色に対する比の画像」(以
下、比の画像と呼ぶ)とする代替案が可能である。先行
例において、標準色とは物体領域の標準的な色である。
標準色はユーザがキーボードによりRGB成分値を入力
したり、画像中物体領域の1点をマウスによって指定し
たりすることにより決めることができる。この標準色C
rに対する物体領域の各画素値C(x,y)に対応する
値Cavの比F(x,y)を画素毎に算出したのが「比
の画像」である。ここで、Cavは画素x,yの近傍に
おける画素値の平均等により求めている。標準色に対す
る比の画像は陰影を表わしている。鏡面反射が少ない画
像中物体領域においては、本実施例における拡散反射の
成分分解画像としてこの比の画像を用いることができ
る。An alternative method is possible in which the component-separated image in this embodiment is used as an "image of a ratio to the standard color" (hereinafter, referred to as a ratio image) that represents a shade in the preceding example. In the prior art, the standard color is the standard color of the object area.
The standard color can be determined by the user inputting the RGB component values with the keyboard or by designating one point in the object area in the image with the mouse. This standard color C
The “ratio image” is obtained by calculating, for each pixel, the ratio F (x, y) of the value Cav corresponding to each pixel value C (x, y) of the object region with respect to r. Here, Cav is obtained by averaging pixel values in the vicinity of the pixels x and y. The image of the ratio to the standard color represents the shading. In the object region in the image with a small amount of specular reflection, an image of this ratio can be used as the component decomposition image of diffuse reflection in this embodiment.
【0153】[0153]
【発明の効果】本発明により、自然画中の物体領域の
色、柄、表面形状、材質感を変更することができ、デザ
インシミュレーションに効果がある。According to the present invention, it is possible to change the color, pattern, surface shape, and material appearance of an object area in a natural image, which is effective for design simulation.
【図1】本発明の一実施例を示すフローチャートFIG. 1 is a flowchart showing an embodiment of the present invention.
【図2】実施例を実現するハードウエア構成FIG. 2 is a hardware configuration for implementing the embodiment.
【図3】従来技術の説明図FIG. 3 is an explanatory diagram of a conventional technique.
【図4】点Pにおける幾何情報の説明図FIG. 4 is an explanatory diagram of geometric information at a point P.
【図5】境面反射のnによる変化の説明図FIG. 5 is an explanatory diagram of changes in boundary reflection due to n.
【図6】表面形状の変更方法1の説明図FIG. 6 is an explanatory diagram of a surface shape changing method 1.
【図7】表面形状の変更方法2の説明図FIG. 7 is an explanatory diagram of a surface shape changing method 2.
【図8】プラスチックの反射モデルの説明図FIG. 8 is an explanatory diagram of a reflection model of plastic.
【図9】メタリックの反射モデルの説明図FIG. 9 is an explanatory diagram of a metallic reflection model.
【図10】金属の反射モデルの説明図FIG. 10 is an explanatory view of a reflection model of metal.
【図11】布・ゴムの反射モデルの説明図FIG. 11 is an explanatory diagram of a cloth / rubber reflection model.
【図12】成分分解画像の説明図FIG. 12 is an explanatory diagram of a component decomposition image.
【図13】鏡面反射と拡散反射の説明図FIG. 13 is an explanatory diagram of specular reflection and diffuse reflection.
【図14】環境色の説明図FIG. 14 is an explanatory diagram of environmental colors
【図15】カメラによる自然画撮像の説明図FIG. 15 is an explanatory diagram of capturing a natural image with a camera.
101…画像の入力 102…色ベクトルの抽出と保持 103…成分分解画像の抽出と保持 104…材質の指定 105…成分分解画像の色ベクトルの材質による変更 106…表面形状の指定 107…成分分解画像の表面形状による変更 108…色・柄の指定 109…色変更 110…変更画像の再構成 Reference numeral 101 ... Input of image 102 ... Extraction and retention of color vector 103 ... Extraction and retention of component decomposition image 104 ... Designation of material 105 ... Change according to material of color vector of component decomposition image 106 ... Designation of surface shape 107 ... Component decomposition image Change according to the surface shape of 108. Designation of color / pattern 109 ... Change of color 110 ... Reconstruction of changed image
Claims (25)
わす画像データを計算機により加工処理する画像処理方
法であって、 上記画像データの画素を表現する色成分値を座標系とす
る色空間において、上記画像データ中の特定領域の画素
値の分布を代表する色ベクトルを抽出する過程と、 上記特定領域の画素値を上記色ベクトルで成分分解した
成分分解値を成分分解画像として求める過程と、 上記成分分解画像を変更する過程と、 該変更された成分分解画像に基づいて上記特定領域の画
素値を再構成する過程と、 を備えることを特徴とする画像処理方法。1. An image processing method for processing image data representing a color image stored in an image storage device by a computer, in a color space having a color component value representing a pixel of the image data as a coordinate system. A step of extracting a color vector representing a distribution of pixel values of a specific area in the image data, and a step of obtaining a component decomposition value obtained by dividing the pixel values of the specific area with the color vector as a component decomposition image, An image processing method comprising: a step of changing the component decomposed image; and a step of reconstructing a pixel value of the specific region based on the changed component decomposed image.
画素を区別するマスクによって他の領域と区別される請
求項1記載の画像処理方法。2. The image processing method according to claim 1, wherein the specific area is an object area and is distinguished from other areas by a mask for distinguishing individual pixels.
表す拡散反射色ベクトルおよび鏡面反射の色を表す鏡面
反射色ベクトルである請求項2記載の画像処理方法。3. The image processing method according to claim 2, wherein the color vectors are a diffuse reflection color vector representing a diffuse reflection color of an object and a specular reflection color vector representing a specular reflection color.
領域の画素値を再構成する前に、上記色ベクトルを変更
する過程をさらに備える請求項1記載の画像処理方法。4. The image processing method according to claim 1, further comprising a step of changing the color vector after changing the component-separated image and before reconstructing pixel values of the specific region.
て、上記拡散反射色ベクトルによる成分分解値に対し、
注目画素の近傍の画素値を重み付け加算する請求項1記
載の画像処理方法。5. In the process of changing the component decomposition image, with respect to the component decomposition value by the diffuse reflection color vector,
The image processing method according to claim 1, wherein pixel values in the vicinity of the pixel of interest are weighted and added.
て、成分分解値のべき乗を求める請求項1記載の画像処
方法。6. The image processing method according to claim 1, wherein a power of a component decomposition value is obtained in the process of changing the component decomposition image.
て、座標x,yの位置にある成分分解画像の画素値をm
(x,y)とするとき、u(x,y),w(x,y)な
る関数P(u,w)を与えることによって、次式 m’(x,y)=m(x,y)+P(u,w) により、変更後の画素値m’(x,y)を生成する請求
項1記載の画像処理方法。7. In the process of changing the component decomposed image, the pixel value of the component decomposed image at the position of coordinates x, y is m.
When (x, y), by giving a function P (u, w) that is u (x, y), w (x, y), the following expression m ′ (x, y) = m (x, y) The image processing method according to claim 1, wherein the changed pixel value m ′ (x, y) is generated by) + P (u, w).
て、座標x,yの位置にある成分分解画像の画素値をm
(x,y)とするとき、u(x,y),w(x,y)な
る関数P(u,w)を与えることによって、次式 m’(x,y)=m(x,y)*P(u,w)(*はス
カラ積を表わす) により変更後の画素値m’(x,y)を生成する請求項
1記載の画像処理方法。8. In the process of changing the component decomposition image, the pixel value of the component decomposition image at the position of coordinates x, y is m.
When (x, y), by giving a function P (u, w) that is u (x, y), w (x, y), the following expression m ′ (x, y) = m (x, y) 3. The image processing method according to claim 1, wherein the changed pixel value m ′ (x, y) is generated by * P * (u, w) (* represents a scalar product).
て、関数Pのパラメータu,wは、u=x,w=yであ
る請求項7または8記載の画像処理方法。9. The image processing method according to claim 7, wherein the parameters u and w of the function P are u = x and w = y in the process of changing the component decomposition image.
て、上記拡散反射色ベクトルによる成分分解値を変更
し、該変更後の成分分解値を用いて上記鏡面反射色ベク
トルによる成分分解値を変更する請求項2記載の画像処
理方法。10. The component decomposition value by the diffuse reflection color vector is changed in the process of changing the component decomposition image, and the component decomposition value by the specular reflection color vector is changed by using the changed component decomposition value. The image processing method according to claim 2.
値の変更は、拡散反射色ベクトルによる成分分解値を変
数とする関数を用いて行う請求項10記載の画像処理方
法。11. The image processing method according to claim 10, wherein the component decomposition value based on the specular reflection color vector is changed by using a function having the component decomposition value based on the diffuse reflection color vector as a variable.
値は、上記特定領域の画素値の色空間における分布を用
いて、上記拡散反射色ベクトルによる成分分解値から求
める請求項10記載の画像処理方法。12. The image processing method according to claim 10, wherein the component separation value based on the specular reflection color vector is obtained from the component separation value based on the diffuse reflection color vector using a distribution of pixel values of the specific region in a color space. .
て、上記特定領域内の特定の画素をピックアップして、
該ピックアップされた画素の上記鏡面反射色ベクトルに
よる成分分解値を最大値と最小との中間の値とし、ピッ
クアップされなかった画素の上記鏡面反射色ベクトルに
よる成分分解値をほぼ最低値とする請求項2記載の画像
処理方法。13. In the process of changing the component decomposition image, a specific pixel in the specific area is picked up,
The component decomposition value of the picked-up pixel by the specular reflection color vector is set to an intermediate value between the maximum value and the minimum value, and the component decomposition value of the non-picked-up pixel by the specular reflection color vector is set to almost the minimum value. 2. The image processing method described in 2.
素の座標値の一定間隔毎に抽出した画素である請求項1
3記載の画像処理方法。14. The specific pixel in the specific region is a pixel extracted at regular intervals of the coordinate value of the pixel.
3. The image processing method described in 3.
素の座標値の不定間隔毎に抽出した画素である請求項1
3記載の画像処理方法。15. The specific pixel in the specific area is a pixel extracted at every irregular interval of the coordinate value of the pixel.
3. The image processing method described in 3.
散反射色ベクトルによる成分分解値の一定間隔毎に抽出
した画素である請求項13記載の画像処理方法。16. The image processing method according to claim 13, wherein the specific pixel in the specific region is a pixel extracted at constant intervals of component decomposition values by the dispersed reflection color vector.
散反射色ベクトルによる成分分解値の不定間隔毎に抽出
した画素である請求項13記載の画像処理方法。17. The image processing method according to claim 13, wherein the specific pixel in the specific region is a pixel extracted at an indefinite interval of component decomposition values by the dispersed reflection color vector.
15または17記載の画像処理方法。18. The image processing method according to claim 15, wherein the indefinite interval is obtained by a random number.
を表現する反射モデルを与えて、拡散反射成分について
該3次元形状をレンダリングすることにより得られた画
像である請求項7または8記載の画像処理方法。19. The image obtained by rendering the three-dimensional shape for a diffuse reflection component by giving a three-dimensional shape, a reflection model representing a material, and rendering the three-dimensional shape for the function P. The described image processing method.
を表現する反射モデルを与えて、鏡面反射成分について
該3次元形状をレンダリングすることにより得られた画
像である請求項7または8記載の画像処理方法。20. The function P is an image obtained by giving a three-dimensional shape, a reflection model expressing a material, and rendering the three-dimensional shape for specular reflection components. The described image processing method.
体の表面形状を加工することにより生成した物体である
請求項19または20記載の画像処理方法。21. The image processing method according to claim 19, wherein the three-dimensional shape is an object generated by processing a surface shape of a three-dimensional object serving as a model.
材質を表現する反射モデルを仮定し、上記モデル物体に
対して3次元形状の加工を行ったときの成分分解値と、
行う前の成分分解値の差から生成する請求項7または8
記載の画像処理方法。22. The function P includes a model object, a light source, and
Assuming a reflection model expressing the material, the component decomposition value when the three-dimensional shape is processed for the model object,
9. The method according to claim 7 or 8, which is generated from the difference between the component decomposition values before performing.
The described image processing method.
て、上記特定領域の画素について、特定の範囲の拡散反
射色ベクトルによる成分分解値を有する画素に対してだ
け、十分大きい鏡面反射色ベクトルによる成分分解値を
与えるとともに、鏡面反射色ベクトルの向きを光源の色
と同じにする請求項2記載の画像処理方法。23. In the process of changing the component-separated image, the components of the specular reflection color vector of the pixels of the specific region are sufficiently large only for the pixels having the component decomposition value of the diffuse reflection color vector of the specific range. The image processing method according to claim 2, wherein the resolution value is given and the direction of the specular reflection color vector is made the same as the color of the light source.
て、上記特定領域の画素について、上記鏡面反射色ベク
トルによる成分分解値を大きくし、拡散反射色ベクトル
による成分分解値を小さくするとともに、鏡面反射色ベ
クトルによる成分分解値の変化を緩やかにする請求項2
記載の画像処理方法。24. In the process of changing the component decomposition image, for the pixels of the specific region, the component decomposition value by the specular reflection color vector is increased, the component decomposition value by the diffuse reflection color vector is decreased, and the specular reflection color vector is reduced. The method according to claim 2, wherein a change in the component separation value due to the color vector is moderated.
The described image processing method.
て、上記特定領域の画素について、上記鏡面反射色ベク
トルによる成分分解値を小さくする請求項2記載の画像
処理方法。25. The image processing method according to claim 2, wherein, in the process of changing the component-separated image, the component-separated value by the specular reflection color vector is reduced for the pixels in the specific region.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5020362A JPH06236440A (en) | 1993-02-08 | 1993-02-08 | Image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5020362A JPH06236440A (en) | 1993-02-08 | 1993-02-08 | Image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06236440A true JPH06236440A (en) | 1994-08-23 |
Family
ID=12024984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5020362A Pending JPH06236440A (en) | 1993-02-08 | 1993-02-08 | Image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06236440A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001014490A (en) * | 1999-06-18 | 2001-01-19 | Mitsubishi Electric Inf Technol Center America Inc | Method and device for rendering multiple phases |
JP2007500901A (en) * | 2003-07-28 | 2007-01-18 | マジック アース会社 | Multiple attribute real-time simultaneous rendering method, system and program |
JP2007328458A (en) * | 2006-06-06 | 2007-12-20 | Sega Corp | Image generation program, computer-readable recording medium storing the program, image processing apparatus, and image processing method |
US8022947B2 (en) | 2006-09-01 | 2011-09-20 | Landmark Graphics Corporation | Systems and methods for imaging waveform volumes |
JP2012525631A (en) * | 2009-04-30 | 2012-10-22 | タンデント ビジョン サイエンス インコーポレーティッド | Improved method for image correction |
US8638328B2 (en) | 2007-01-05 | 2014-01-28 | Landmark Graphics Corporation | Systems and methods for visualizing multiple volumetric data sets in real time |
US8736600B2 (en) | 2008-06-06 | 2014-05-27 | Landmark Graphics Corporation | Systems and methods for imaging a three-dimensional volume of geometrically irregular grid data representing a grid volume |
US9098886B2 (en) | 2012-10-09 | 2015-08-04 | Kabushiki Kaisha Toshiba | Apparatus and method for processing an image |
US9171391B2 (en) | 2007-07-27 | 2015-10-27 | Landmark Graphics Corporation | Systems and methods for imaging a volume-of-interest |
JP2020182074A (en) * | 2019-04-24 | 2020-11-05 | 富士ゼロックス株式会社 | Image processing equipment and image processing program |
-
1993
- 1993-02-08 JP JP5020362A patent/JPH06236440A/en active Pending
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001014490A (en) * | 1999-06-18 | 2001-01-19 | Mitsubishi Electric Inf Technol Center America Inc | Method and device for rendering multiple phases |
JP2007500901A (en) * | 2003-07-28 | 2007-01-18 | マジック アース会社 | Multiple attribute real-time simultaneous rendering method, system and program |
US7995057B2 (en) | 2003-07-28 | 2011-08-09 | Landmark Graphics Corporation | System and method for real-time co-rendering of multiple attributes |
US8259126B2 (en) | 2003-07-28 | 2012-09-04 | Landmark Graphics Corporation | System and method for real-time co-rendering of multiple attributes |
JP2007328458A (en) * | 2006-06-06 | 2007-12-20 | Sega Corp | Image generation program, computer-readable recording medium storing the program, image processing apparatus, and image processing method |
US8022947B2 (en) | 2006-09-01 | 2011-09-20 | Landmark Graphics Corporation | Systems and methods for imaging waveform volumes |
US8384712B2 (en) | 2006-09-01 | 2013-02-26 | Landmark Graphics Corporation | Systems and methods for imaging waveform volumes |
US8638328B2 (en) | 2007-01-05 | 2014-01-28 | Landmark Graphics Corporation | Systems and methods for visualizing multiple volumetric data sets in real time |
US9171391B2 (en) | 2007-07-27 | 2015-10-27 | Landmark Graphics Corporation | Systems and methods for imaging a volume-of-interest |
US8736600B2 (en) | 2008-06-06 | 2014-05-27 | Landmark Graphics Corporation | Systems and methods for imaging a three-dimensional volume of geometrically irregular grid data representing a grid volume |
US8805066B2 (en) | 2009-04-30 | 2014-08-12 | Tandent Vision Science, Inc. | Method, system and computer program product for image modification and manipulation of a scene |
JP2012525631A (en) * | 2009-04-30 | 2012-10-22 | タンデント ビジョン サイエンス インコーポレーティッド | Improved method for image correction |
US10043249B2 (en) | 2009-04-30 | 2018-08-07 | Tandent Vision Science, Inc. | Method for image modification |
US9098886B2 (en) | 2012-10-09 | 2015-08-04 | Kabushiki Kaisha Toshiba | Apparatus and method for processing an image |
JP2020182074A (en) * | 2019-04-24 | 2020-11-05 | 富士ゼロックス株式会社 | Image processing equipment and image processing program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4276178B2 (en) | Method for digital rendering of skin or similar | |
Lawonn et al. | A survey of surface‐based illustrative rendering for visualization | |
Rusinkiewicz et al. | Exaggerated shading for depicting shape and detail | |
US7200281B2 (en) | System and method for image-based surface detail transfer | |
US5844565A (en) | Generating imitation custom artwork by simulating brush strokes and enhancing edges | |
JP3626144B2 (en) | Method and program for generating 2D image of cartoon expression from 3D object data | |
Majumder et al. | Hardware accelerated real time charcoal rendering | |
AU2017204504A1 (en) | System and method of rendering a graphical object with modification in structure | |
US6816159B2 (en) | Incorporating a personalized wireframe image in a computer software application | |
Ganovelli et al. | Introduction to computer graphics: A practical learning approach | |
CA2565600A1 (en) | Dynamic wrinkle mapping | |
Vergne et al. | Surface flows for image-based shading design | |
JPH06236440A (en) | Image processing method | |
US9317967B1 (en) | Deformation of surface objects | |
KR102331952B1 (en) | 2D Rendering Device and Its Method according to 3D Data Viewport | |
WO2019042028A1 (en) | All-around spherical light field rendering method | |
Weidenbacher et al. | Sketching shiny surfaces: 3D shape extraction and depiction of specular surfaces | |
CN117355866A (en) | Arranging digital images | |
AU2017228700A1 (en) | System and method of rendering a surface | |
Gibson et al. | Photorealistic Augmented Reality. | |
Setlur et al. | Is that a smile? Gaze dependent facial expressions | |
Voß et al. | Inpaintify: Using Inpainting to Replace Objects | |
Oliveira et al. | Digitally reproducing the artistic style of XVI century artist Antonio Campelo in Alegoria Prudencia | |
Khan et al. | ImmerVol: An immersive volume visualization system | |
Zhang et al. | Artistic Augmentation of Photographs with Droplets |