Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0580704B2 - - Google Patents
[go: Go Back, main page]

JPH0580704B2 - - Google Patents

Info

Publication number
JPH0580704B2
JPH0580704B2 JP62072056A JP7205687A JPH0580704B2 JP H0580704 B2 JPH0580704 B2 JP H0580704B2 JP 62072056 A JP62072056 A JP 62072056A JP 7205687 A JP7205687 A JP 7205687A JP H0580704 B2 JPH0580704 B2 JP H0580704B2
Authority
JP
Japan
Prior art keywords
color
image
light source
storage means
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62072056A
Other languages
Japanese (ja)
Other versions
JPS63237172A (en
Inventor
Joji Tajima
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62072056A priority Critical patent/JPS63237172A/en
Publication of JPS63237172A publication Critical patent/JPS63237172A/en
Priority to US07/596,425 priority patent/US5058040A/en
Publication of JPH0580704B2 publication Critical patent/JPH0580704B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、カラー画像の色を、自然さを損なわ
ずに変更する方法及び装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method and apparatus for changing the colors of a color image without impairing their naturalness.

(従来の技術) カラーデザインの分野にCAD(コンピユータ・
エイデイツド・デザイン)が適用され、その中で
色を変更することが求められている。具立的に
は、デザインの対象(例えば自動車)を含む画像
を、スキヤナやカラーカメラでコンピユータ・シ
ステムにとり込み、カラーデイスプレイに表示し
たのち、この対象の部分の色を変更(例えば、
元々、赤い自動車のボデイーを青色に)すること
により、各種の色にしたときのデザイの結果を、
実際の物を作ることなく予測することが要求され
る。
(Conventional technology) CAD (computer computer) is used in the field of color design.
A Dated Design) is applied and the color is required to be changed within it. Specifically, an image containing the object of design (for example, a car) is imported into a computer system using a scanner or a color camera, displayed on a color display, and then the color of the part of this object is changed (for example,
By changing the body of a red car to blue), we can see the design results when changing it to various colors.
It requires making predictions without actually making them.

このような目的のため、従来、第3図に示され
たような、ある面の色(最終的なR(赤)、G
(縁)、B(青)、三成分で与えられる)をTVカメ
ラ(モノクロ)で得られた陰影に応じてつける回
路が知られている(繊維と工業、36巻、6号、
1980年、195〜199ページ)。この場合、物体の色
を変化させたい部分を異なつた濃度で塗つた濃淡
の原画101をモノクロテレビカメラ102で入
力し、偽信号補正回路103で信号を整形したの
ち、A/Dコンバータ104により、デイジタル
値に変換して各部分を分離し、色彩コントロール
105によつてR、G、B値を与えカラーエンコ
ーダ106によつてカラーテレビ信号とする。こ
の段階では、同色部分は平板な(R、G、B)な
示される色となつている。これと同時に製品の実
物107を原画101と位置を合わせて、もう一
つのモノクロテレビカメラ108により撮影し、
これにより得られる陰影の画像信号Nと、先のカ
ラーテレビ信号を陰影合成回路109により合成
する。これにより、カラーテレビ110には陰影
のついたカラー画像を色を自由に変化させながら
シミユレートできる。
For this purpose, conventionally, the color of a certain surface (final R (red), G
(border), B (blue), given by three components) according to the shading obtained by a TV camera (monochrome) (Textile and Industry, Vol. 36, No. 6,
1980, pp. 195-199). In this case, an original image 101 of shading in which the parts of the object whose colors are to be changed are painted with different densities is inputted by a monochrome television camera 102, the signal is shaped by a false signal correction circuit 103, and then an A/D converter 104 The signal is converted into digital values, separated into each part, and a color control 105 gives R, G, and B values, and a color encoder 106 converts the signal into a color TV signal. At this stage, the same color portions have the flat (R, G, B) colors shown. At the same time, the actual product 107 is aligned with the original image 101 and photographed using another monochrome television camera 108.
The shadow image signal N thus obtained and the previous color television signal are synthesized by a shadow synthesis circuit 109. This allows the color television 110 to simulate a color image with shading while freely changing the colors.

このとき、物体の色が(R、G、B)と与えら
れると、モノクロカメラから与えられる各画素の
明度Nによつて、各画素の色(R′、G′、B′)は
次のように求められる。
At this time, if the color of the object is given as (R, G, B), the color of each pixel (R', G', B') is determined by the brightness N of each pixel given by the monochrome camera as follows. You are asked to do so.

R′ G′ B′=NR G B ……(1) ここでNは0〜1の値をとると考える。 R′ G′ B′=NR G B...(1) Here, it is assumed that N takes a value between 0 and 1.

この方法は、「一つの色領域の色は、元々(R、
G、B)という明るい色であり、陰影により暗く
なつている部分がある。」という根拠によつてい
る。言いかえれば、第4図の3次元空間で考えた
とき、一つの領域の色(R′、G′、B′)は黒(0、
0、0)と物体色(R、G、B)を結ぶ直線上に
乗つていることが仮定されている。
This method is based on the following method: ``The color of one color region is originally (R,
The colors are bright (G, B), and some parts are darker due to shading. ” This is based on the basis that In other words, when considering the three-dimensional space shown in Figure 4, the color of one area (R', G', B') is black (0,
0, 0) and the object color (R, G, B).

(本発明が解決しようとする問題点) しかし、実際には、一つの色領域でも、光が照
り返して明るいために、第4図Pのように白に近
い位置の色も存在するのが普通である。しかし、
上記の回路では、このような部分に正しく対応す
ることはできない。
(Problem to be solved by the present invention) However, in reality, even in one color area, because the light is reflected and bright, there is usually a color that is close to white, as shown in Figure 4, P. It is. but,
The above circuit cannot properly handle such parts.

本発明は、この問題を解決し、照り返しの部分
を持つ画像の色領域でも自然に色変更を行なう方
法及び装置を提供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to solve this problem and provide a method and apparatus that can naturally change colors even in color areas of images that have reflective parts.

(問題点を解決するための手段) 第1の発明は、カラー画像中の、物体表面の一
定色部分である色変更対象領域の各画素の三原色
値を、三次元の色空間において、黒色、物体色、
光源色の3色が張る平面上に投影し、該平面上の
1点と見なし、該物体色及び光源色の混合割合を
示す2つのパラメータ値に変換し、次に、上記2
つのパラメータ値を、新たに与えられた第2の物
体色及び前記光源色の混合割合として利用し、前
記各画素の新たな三原色値を計算することによ
り、上記色変更対象領域の色を、異なる色を変更
することを特徴とするカラーが画像色変更方法で
ある。
(Means for Solving the Problems) The first invention is to convert the three primary color values of each pixel of a color change target area, which is a constant color portion of an object surface in a color image, into black, black, and black in a three-dimensional color space. object color,
It is projected onto a plane defined by the three light source colors, regarded as one point on the plane, converted into two parameter values indicating the mixing ratio of the object color and the light source color, and then
By using these parameter values as the mixing ratio of the newly given second object color and the light source color and calculating new three primary color values for each pixel, the color of the color change target area can be changed to a different color. An image color changing method is characterized by changing the color.

また第2の発明は、カラー画像を格納するカラ
ー画像記憶手段と、該カラー画像中の物体表面の
一定色部分である色変更対象領域の物体色を記憶
する第1の物体色記憶手段と、該カラー画像中の
光源色を記憶する光源色記憶手段と、前記カラー
画像の前記色変更対象領域中の各画素の三原色値
を、三次元の色空間において、黒色、前記物体
色、前記光源色の3色が張る平面上に投影し、該
平面上の1点と見なし、前記物体色及び前記光源
色の混合割合を示す2つのパラメータ値に変換す
る中間画像計算手段と、該中間画像計算手段によ
つて得られる画素値を画像として記憶する中間画
像記憶手段と、前記色変更対象領域の色変更後の
第2の物体色を記憶する第2の物体色記憶手段
と、前記第2の物体色記憶手段に記憶されている
第2の物体色と前記光源色記憶手段に記憶されて
いる前記光源色とに対し、前記中間画像記憶手段
に記憶されている前記2つのパラメータ値を混合
割合として新しい三原色値を画素毎に計算し、前
記カラー画像記憶手段に書き込む変更画像計算手
段とからなり、前記カラー画像の前記色変更対象
領域の色を異なる色に変更することを特徴とする
カラー画像の色変更装置である。
A second invention also provides a color image storage means for storing a color image, a first object color storage means for storing an object color of a color change target area which is a constant color portion of an object surface in the color image; A light source color storage means for storing the light source color in the color image; and a light source color storage means that stores the three primary color values of each pixel in the color change target area of the color image, in a three-dimensional color space, black, the object color, and the light source color. an intermediate image calculation means for projecting onto a plane defined by three colors, treating it as one point on the plane, and converting it into two parameter values indicating a mixing ratio of the object color and the light source color; and the intermediate image calculation means. intermediate image storage means for storing pixel values obtained by the above as an image; second object color storage means for storing a second object color after the color change of the color change target area; The two parameter values stored in the intermediate image storage means are used as a mixing ratio for the second object color stored in the color storage means and the light source color stored in the light source color storage means. a changed image calculation means for calculating new three primary color values for each pixel and writing them into the color image storage means, and changing the color of the color change target area of the color image to a different color. It is a color changing device.

(作用) 本発明の作用を第5図を参照して説明する。光
源120から物体121に当たつて、カメラ12
2に入る光は、鏡面反射光123と拡散反射光1
24に大別できる。鏡面反射光は、物体の表面で
反射するもので、その分光組成は、光源と同じ
で、強度だけが変化する。拡散反射光は、光源の
光が物体の中に入射し、物質特有の分光吸収を受
けたのち、等方的に外部に射出されるものであ
る。拡散反射光の分光組成は光源とは異なつてい
るのが普通である。そのため、対象面の各点の色
の三成分(R、G、B)は、 R G B=R0 G0 B0a+RS GS BSβ (2) と書くことができる。ここで、(R0、G0、B0)は
拡散反射光の三成分であり、物体により異なるの
で、本明細書では以降、「物体色」と呼ばれる。
(RS、GS、BS)は鏡面反射光の三成分であり、光
源の色と等しいので、本明細書では以降「光源
色」と呼ばれる。α、βは射出光量に対する拡散
反射光、鏡面反射光の寄与の度合を示しており、
表面の材質、方向などに関係する。これは、画素
毎に異なるので、画素内の画素位置を(x、y)
とすると、 R(x、y) G(x、y) B(x、y)=R0 G0 B0a(x、y)+RS GS BSβ(x、y) (3) と書かれる。このようなモデルは、コンピユー
タ・グラフイクスで利用されており、例えば
Phonのモデルによると、 R G B=[d+(1−d)・cosθ]・R0 G0 B0+[W(θ)(cosα)n]+RS GS BS (4) となる(第13回画像工学コンフアレンス、1982
年、55〜58ページ)。
(Operation) The operation of the present invention will be explained with reference to FIG. When the light source 120 hits the object 121, the camera 12
The light entering 2 is specular reflection light 123 and diffuse reflection light 1
It can be roughly divided into 24 types. Specular reflected light is reflected from the surface of an object, and its spectral composition is the same as that of the light source, with only the intensity changing. Diffuse reflected light is light from a light source that enters an object, undergoes spectral absorption specific to the material, and is then isotropically emitted to the outside. The spectral composition of the diffusely reflected light is usually different from that of the light source. Therefore, the three color components (R, G, B) of each point on the target surface can be written as R G B = R 0 G 0 B 0 a + R S G S B S β (2). Here, (R 0 , G 0 , B 0 ) are three components of the diffusely reflected light, and since they differ depending on the object, they are hereinafter referred to as "object colors" in this specification.
(R S , G S , B S ) are the three components of the specularly reflected light and are equal to the color of the light source, so they will be referred to hereinafter as "light source colors" in this specification. α and β indicate the degree of contribution of diffuse reflected light and specular reflected light to the amount of emitted light,
It is related to the surface material, direction, etc. This differs for each pixel, so the pixel position within the pixel is (x, y)
Then, R (x, y) G (x, y) B (x, y) = R 0 G 0 B 0 a (x, y) + R S G S B S β (x, y) (3) written. Such models are used in computer graphics, e.g.
According to Phon's model, R G B = [d+(1-d)・cosθ]・R 0 G 0 B 0 + [W(θ)(cosα) n ]+R S G S B S (4) 13th Image Engineering Conference, 1982
(2010, pp. 55-58).

ここで、θは表面の法線と光源の方向のなす
角、αは鏡面反射方向とカメラの方向のなす角、
dは拡散反射光と周囲と強度の度合を示す定数、
w(θ)は、やはり鏡面反射光の拡散反射光の対
する度合を示す項である。
Here, θ is the angle between the surface normal and the direction of the light source, α is the angle between the specular reflection direction and the camera direction,
d is a constant indicating the degree of intensity of diffusely reflected light and surroundings;
w(θ) is also a term indicating the degree of specular reflection light versus diffuse reflection light.

ある対象の表面が式(3)で表わされる場合、同じ
材質で色が異なるものは、物体色のみを(R0′、
G0′、B0′)に変更することにより、式(5)のように
各画素値を計算することができる。
When the surface of a certain object is expressed by equation (3), if the objects are made of the same material but have different colors, only the object color is expressed as (R 0 ′,
G 0 ′, B 0 ′), each pixel value can be calculated as shown in equation (5).

R′(x、y) G′(x、y) B′(x、y)=R0′ G0′ B0′α(x、y)+RS GS BSβ(x、y) (5) 本発明では、カラー画像内の一つの色領域での
各画素の色は式(3)に従うものと仮定する。これを
第6図〜第8図を参照して説明する。第6図にお
いてカラー画像内の一つの色領域で色分布200
はR、G、B色空間において、原点O、物体色
C0、光源色CSを作る平面内に含まれる。そして、
各画素の色は、OとC0を結ぶ座標軸αと、Oと
CSを結ぶ座標軸βにより表わすことができる。こ
の色分布は2つの座標軸α、βを直交座標と見れ
ば、第7図のようになる。これに対し、物体色の
みをC0′に変更することにより、α軸が第8図の
α′軸に変わり、色分布は不変とすることで自然な
色変化を得ることができる。
R′ (x, y) G′ (x, y) B′ (x, y) = R 0 ′ G 0 ′ B 0 ′ α (x, y) + R S G S B S β (x, y) ( 5) In the present invention, it is assumed that the color of each pixel in one color region in a color image follows equation (3). This will be explained with reference to FIGS. 6 to 8. In Fig. 6, color distribution 200 in one color area in a color image.
is the origin O and the object color in the R, G, B color space.
C 0 is included in the plane that creates the light source color C S . and,
The color of each pixel is determined by the coordinate axis α connecting O and C0, and the coordinate axis α connecting O and C0 .
It can be expressed by a coordinate axis β connecting C S. This color distribution becomes as shown in FIG. 7 if the two coordinate axes α and β are viewed as orthogonal coordinates. On the other hand, by changing only the object color to C 0 ', the α axis changes to the α' axis in FIG. 8, and by keeping the color distribution unchanged, a natural color change can be obtained.

これを実現するためには、与えられたカラー画
像の色領域に対して、C0、CSを決定し、各画素
のα、β値を求める必要がある。実際には、α=
0、又はβ=0の色は存在しないので、画像から
C0、CSを正確に求めることはできないが、画像
中で、最もその色領域の色らしい部分(例えば、
赤い車体の自動車なら、大変赤く見える部分)の
画像値を読み取つてC0とし、鏡面反射で真つ白
に光つて見る部分の画像値を読み取つてCSとすれ
ば実用上十分である。
To achieve this, it is necessary to determine C 0 and C S for the color region of a given color image, and to find the α and β values of each pixel. Actually, α=
Since there is no color with 0 or β=0, from the image
Although it is not possible to accurately determine C 0 and C S , it is not possible to accurately determine C 0 and C S , but the part of the image that is most likely to be the color of that color region (for example,
For a car with a red body, it is sufficient for practical purposes to read the image value of the part that looks very red and set it as C 0 , and read the image value of the part that shines pure white due to specular reflection and set it as C S.

各画素のα、βを求めるため便宜上C0及びCS
に垂直な第三の色彩ベルトルCdを、例えばC0
CSのベクトル積(外積)として、 Cd=C0×CS (6) のように定める。このCdをR、G、B空間で式
(7)のように表したとき Cd=Rd Gd Bd (7) 画像内の各画素の色(R、G、B)は、γを導
入して、 R(x、y) G(x、y) B(x、y)=R0 RS Rd G0 GS Gd B0 BS Bdα(x、y) β(x、y) γ(x、y) (8) と書くことができる。ここでγは、各色のO、
CS、C0の作る平面からの距離に対応し、対象と
なる色領域の画素についてノイズ分と考えられ
る。
For convenience, C 0 and C S are used to calculate α and β of each pixel.
Let the third chromatic belt C d perpendicular to , for example C 0 and
The vector product (cross product) of C S is defined as C d = C 0 ×C S (6). Express this C d in R, G, B space.
When expressed as (7), C d = R d G d B d (7) The color (R, G, B) of each pixel in the image is expressed as R (x, y) G by introducing γ. (x, y) B(x, y)=R 0 R S R d G 0 G S G d B 0 B S B d α(x, y) β(x, y) γ(x, y) (8 ) can be written. Here, γ is O of each color,
It corresponds to the distance from the plane created by C S and C 0 and is considered to be a noise component for pixels in the target color area.

式(8)を逆に解いて、式(9)が成立するため、各画
素について、R、G、B値からα、β、γを求め
ることができる。γはノイズ分なので無視しても
よい。
By reversing equation (8), equation (9) holds true, so α, β, and γ can be determined from the R, G, and B values for each pixel. Since γ is a noise component, it can be ignored.

α(x、y) β(x、y) γ(x、y)=R0 RS Rd G0 GS Gd B0 BS Bd -1R(x、y) G(x、y) B(x、y) (9) このようにして、各画素についてαとβが求め
られる。物体色C0をもつていた画像部分をC0′に
変換し、この色領域の他の部分もこれに即して、
自然に変換するには、式(5)を利用すればよいのは
先に述べた通りである。
α (x, y) β (x, y) γ (x, y) = R 0 R S R d G 0 G S G d B 0 B S B d -1 R (x, y) G (x, y ) B(x,y) (9) In this way, α and β are found for each pixel. Convert the image part that had the object color C 0 to C 0 ′, and convert the other parts of this color area accordingly,
As mentioned earlier, formula (5) can be used to convert naturally.

尚、カラー画像の対象とする領域中に鏡面反射
と考えられる部分がない場合には、CSとして、デ
イスプレイ装置において通常、白と考えられる値
(例えば、R、G、Bそれぞれ8ビツトを割り当
てているデイスプレイ装置では、RS=GS=BS
255)を与えても実用上は差し支えない。
Note that if there is no part that is considered to be specular reflection in the target area of the color image, the C S should be assigned a value that is normally considered white in the display device (for example, 8 bits each for R, G, and B). For display devices with R S = G S = B S =
255), there is no practical problem.

(実施例) 本発明の実施例を第1図及び第2図を参照して
説明する。カラー画像メモリ1には、色変更を行
ないたい対象を含むフルカラー画像が例えば、
R、G、B各8ビツトの階調で格納されている。
この内容はD/Aコンバータ2を介して、CRT
3にカラー画像として表示される。マスク画像メ
モリ4は、この画像中の、色変更の対象とする色
領域とマスクを各画素1ビツトで格納している。
この関係を第2図に示す。カラー画像メモリ1に
は、自動車の他の背景なども含まれている。マス
ク画像メモリ4は、この内色変更の対象となる自
動車のボデイーの部分についてのみ“1”で、そ
れ以外の部分については“0”を値とするマスク
画像を持つ。マスク画像は、CRTによつてカラ
ー画像を観察してから、ポインテイング・デバイ
スを輪郭をとり中を塗りつぶすような公知の技術
で既に作られていると仮定する。
(Example) An example of the present invention will be described with reference to FIGS. 1 and 2. In the color image memory 1, for example, a full color image including an object whose color is to be changed is stored.
Each of R, G, and B is stored in 8-bit gradation.
This content is transferred to the CRT via D/A converter 2.
3 is displayed as a color image. The mask image memory 4 stores a color area to be changed in this image and a mask in one bit for each pixel.
This relationship is shown in FIG. The color image memory 1 also includes other backgrounds of the car. The mask image memory 4 has a mask image in which the value is "1" only for the part of the car body that is the object of the internal color change, and the value is "0" for the other parts. It is assumed that the mask image has already been created using a known technique such as observing a color image on a CRT and then using a pointing device to outline and fill in the inside.

第1図の色指定手段5は利用者の指示により、
CRT3とポインテイング・デバイス6を利用し
て、画像中から、物体色C0及び光源色CSをピツ
クアツプし、それぞれ第一の物体色記憶手段7、
光源色記憶手段8に格納するものでマイクロコン
ピユータなどで実現できる。中間画像計算手段9
は、マスク画像メモリ4の各画素を走査し、値が
“1”である画素に対して、カラー画像メモリ1
に格納されている(R、G、B)から式(9)に従つ
て(α、β)を計算しα、β値を2枚の画像デー
タとして中間画像メモリ10に書き込む。中間画
像が完成した段階で、色変更の準備は整つたこと
になる。
The color specifying means 5 in FIG.
Using the CRT 3 and pointing device 6, the object color C 0 and the light source color C S are picked up from the image, and the first object color storage means 7 and
It is stored in the light source color storage means 8 and can be realized by a microcomputer or the like. Intermediate image calculation means 9
scans each pixel in the mask image memory 4, and scans the color image memory 1 for pixels whose value is "1".
(α, β) are calculated from (R, G, B) stored in , according to equation (9), and the α and β values are written into the intermediate image memory 10 as two image data. Once the intermediate image is completed, preparations for color changes are complete.

実際の色変更は、まず利用者が、例えばポイン
テイングデバイス6やキーボード11から物体色
C0の代わりの新しい物体色C0′のR、G、B値
(R0′、G0′、B0′)を色指定手段5に与え、これが
第二の物体色記憶手段12に格納されることによ
り開始される。変更画像計算手段13は、やはり
マスク画像メモリ4の各画素を走査し、値が
“1”である画素に対して、中間画素メモリ10
から得られる(α、β)及びCS、C0′から式(5)に
よつて新しいR、G、B値である(R′、G′、B′)
を計算し、カラー画像メモリ1に書き込む。これ
が、全画素について終了した時点で、カラー画像
メモリ1中のカラー画像のマスクの、マスク画像
に“1”が立つている部分の色は所望の色に自然
に書き換えられている。
To actually change the color, the user first changes the object color using the pointing device 6 or keyboard 11, for example.
The R, G, and B values (R 0 ', G 0 ', B 0 ') of the new object color C 0 ' instead of C 0 are given to the color specifying means 5, and these are stored in the second object color storage means 12. It is started by The modified image calculation means 13 also scans each pixel of the mask image memory 4, and for pixels whose value is "1", the intermediate pixel memory 10
From (α, β) obtained from (α, β) and C S , C 0 ′, new R, G, B values (R′, G′, B′) are obtained by equation (5).
is calculated and written to the color image memory 1. When this is completed for all pixels, the color of the portion of the color image mask in the color image memory 1 where "1" stands in the mask image has been naturally rewritten to the desired color.

(発明の効果) 以上に述べた方法及び装置により、カラー画像
中に含まれる、本来一定色であるが、陰影や照り
返しにより濃淡のある領域の色を、自然さを損な
わず、指定した色に変更することができる。本発
明によりデザインの色を、画像の周囲の状況を変
化させることなく自然に変更して表示することが
できるので、実際にその色の製品を作ることな
く、配色などのチエツクを行なうことごでき、工
業的、経済的に大きな効果がある。
(Effects of the Invention) With the method and device described above, colors in areas that are originally constant colors but have shading due to shading or reflection can be changed to specified colors without impairing naturalness. Can be changed. The present invention allows the colors of a design to be changed and displayed naturally without changing the surroundings of the image, so it is possible to check the color scheme etc. without actually making a product with that color. , has great industrial and economic effects.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例を示すブロツク図、第
2図は第1図におけるカラー画像メモリとマスク
画像メモリの関係を示す説明図、第3図は従来の
装置のブロツク図、第4図は従来の装置の原理の
説明図、第5図は本発明の作用の説明図、第6図
は一つの色領域の色分布を色空間中に示した説明
図、第7図はこれを別の座標系で示した説明図、
第8図は上記色領域の色を本発明により変更した
場合の色分布を色空間中に示した説明図である。 1……カラー画像メモリ、2……D/A変換
器、3……CRT、4……マスク画像メモリ、5
……色指定手段、6……ポインテイングデバイ
ス、7……第一の物体色記憶手段、8……光源色
記憶手段、9……中間画像計算手段、10……中
間画像メモリ、11……キーボード、12……第
二の物体色記憶手段、13……変更画像計算手
段。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing the relationship between the color image memory and mask image memory in FIG. 1, FIG. 3 is a block diagram of a conventional device, and FIG. 4 5 is an explanatory diagram of the principle of the conventional device, FIG. 5 is an explanatory diagram of the operation of the present invention, FIG. 6 is an explanatory diagram showing the color distribution of one color region in color space, and FIG. An explanatory diagram shown in the coordinate system of
FIG. 8 is an explanatory diagram showing a color distribution in a color space when the colors of the color area are changed according to the present invention. 1...Color image memory, 2...D/A converter, 3...CRT, 4...Mask image memory, 5
...Color specifying means, 6... Pointing device, 7... First object color storage means, 8... Light source color storage means, 9... Intermediate image calculation means, 10... Intermediate image memory, 11... Keyboard, 12... second object color storage means, 13... changed image calculation means.

Claims (1)

【特許請求の範囲】 1 カラー画像中の、物体表面の一定色部分であ
る色変更対象領域の各画素の三原色値を、三次元
の色空間において、黒色、物体色、光源色の3色
が張る平面上に投影し、該平面上の1点と見な
し、該物体色及び光源色の混合割合を示す2つの
パラメータ値に変換し、次に、上記2つのパラメ
ータ値を、新たに与えられた第2の物体色及び前
記光源色の混合割合として利用し、前記各画素の
新たな三原色値を計算することにより、上記色変
更対象領域の色を、異なる色に変更することを特
徴とするカラー画像の色変更方法。 2 カラー画像を格納するカラー画像記憶手段
と、前記カラー画像中の物体表面の一定色部分で
ある色変更対象領域の物体色を記憶する第1の物
体色記憶手段と、前記カラー画像中の光源色を記
憶する光源色記憶手段と、前記カラー画像の前記
色変更対象領域中の各画素の三原色値を、三次元
の色空間において、黒色、前記物体色、前記光源
色の3色が張る平面上に投影し、該平面上の1点
と見なし、前記物体色及び前記光源色の混合割合
を示す2つのパラメータ値に変換する中間画像計
算手段と、前記中間画像計算手段によつて得られ
る画素値を画像として記憶する中間画像記憶手段
と、前記色変更対象領域の色変更後の第2の物体
色を記憶する第2の物体色記憶手段と、前記第2
の物体色記憶手段に記憶されている第2の物体色
と前記光源色記憶手段に記憶されている前記光源
色とに対し、前記中間画像記憶手段に記憶されて
いる前記2つのパラメータ値を混合割合として新
しい三原色値を画素毎に計算し、前記カラー画像
記憶手段に書き込む変更画像計算手段とからな
り、前記カラー画像の前記色変更対象領域の色を
異なる色に変更することを特徴とするカラー画像
の色変更装置。
[Claims] 1. The three primary color values of each pixel in the color change target area, which is a constant color part of the object surface in a color image, are calculated by calculating the three primary color values of black, object color, and light source color in a three-dimensional color space. The object color and the light source color are projected onto a plane, regarded as one point on the plane, and converted into two parameter values indicating the mixing ratio of the object color and the light source color.Then, the above two parameter values are converted to the newly given A color characterized in that the color of the color change target area is changed to a different color by calculating new three primary color values of each pixel using the second object color and the light source color as a mixing ratio. How to change the color of an image. 2. Color image storage means for storing a color image, first object color storage means for storing an object color of a color change target area that is a constant color portion of an object surface in the color image, and a light source in the color image. A light source color storage means for storing colors, and a plane in which the three primary colors of black, the object color, and the light source color extend in a three-dimensional color space, and the three primary color values of each pixel in the color change target area of the color image are stored in a three-dimensional color space. intermediate image calculation means for projecting onto the plane, treating it as one point on the plane, and converting it into two parameter values indicating a mixing ratio of the object color and the light source color; and pixels obtained by the intermediate image calculation means. intermediate image storage means for storing a value as an image; second object color storage means for storing a second object color after the color change of the color change target area;
mixing the two parameter values stored in the intermediate image storage means with the second object color stored in the object color storage means and the light source color stored in the light source color storage means; a changed image calculating means for calculating a new three primary color value for each pixel as a ratio and writing it into the color image storage means, and changing the color of the color change target area of the color image to a different color. Image color changing device.
JP62072056A 1987-03-25 1987-03-25 Method and device for color change of color picture Granted JPS63237172A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62072056A JPS63237172A (en) 1987-03-25 1987-03-25 Method and device for color change of color picture
US07/596,425 US5058040A (en) 1987-03-25 1990-10-11 Simulation of a change in three-component color values by using two-component color values

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62072056A JPS63237172A (en) 1987-03-25 1987-03-25 Method and device for color change of color picture

Publications (2)

Publication Number Publication Date
JPS63237172A JPS63237172A (en) 1988-10-03
JPH0580704B2 true JPH0580704B2 (en) 1993-11-10

Family

ID=13478345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62072056A Granted JPS63237172A (en) 1987-03-25 1987-03-25 Method and device for color change of color picture

Country Status (1)

Country Link
JP (1) JPS63237172A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317678A (en) * 1989-03-15 1994-05-31 Hitachi, Ltd. Method for changing color of displayed images by use of color components
JP2847740B2 (en) * 1989-04-04 1999-01-20 日本電気株式会社 Coloring method for achromatic objects
US5537638A (en) * 1991-10-25 1996-07-16 Hitachi, Ltd. Method and system for image mapping
AU655343B2 (en) * 1991-12-18 1994-12-15 Pfu Limited Figure coloring system in a graphic display system
JP2015153072A (en) * 2014-02-13 2015-08-24 スズカファイン株式会社 Article color arrangement design simulator, computer program therefor, computer-readable recording medium recording the program, and article color arrangement design simulation method

Also Published As

Publication number Publication date
JPS63237172A (en) 1988-10-03

Similar Documents

Publication Publication Date Title
US5572635A (en) Method for changing a natural image based on a light environment in the natural image
US5870098A (en) Method for rendering shadows on a graphical display
JP2935459B2 (en) System and method for color image enhancement
US20020167515A1 (en) Method and apparatus for 3D model creation based on 2D images
JP3179392B2 (en) Image processing apparatus and image processing method
JP3141245B2 (en) How to display images
US5295199A (en) Image transforming apparatus and method
US6297834B1 (en) Direction-dependent texture maps in a graphics system
US5880735A (en) Method for and apparatus for transparency conversion, image processing system
JPH0580704B2 (en)
JPH09502816A (en) Color matching system
US6744440B1 (en) Image processing apparatus, recording medium, and program
JP3035571B2 (en) Image processing device
JP2001273519A (en) Game system, picture plotting method for this system, and computer-readable recording medium for storing program for game
JPS63244094A (en) Fast color alteration display method and apparatus for color image
JPH0345427B2 (en)
JPH05298460A (en) Device for expressing shell quality sense
JP2790750B2 (en) Rendering equipment
JP2007272847A (en) Lighting simulation method and image composition method
JPH02127779A (en) Color changing method and device for color picture
JPH06259571A (en) Image synthesizer
JPH02127781A (en) Color changing method and device for color picture
JP2508237B2 (en) Method and device for measuring chromaticity of light source color of color image
JP2702185B2 (en) Method and apparatus for coloring grayscale images
JPH04106672A (en) Method for estimating illumination conditions of an object, method for generating three-dimensional information on an object, method for generating shape and texture of an object, device for generating shape and texture of an object

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071110

Year of fee payment: 14