JPH03164981A - Image editing system - Google Patents

Image editing system

Info

Publication number
JPH03164981A
JPH03164981A JP30611389A JP30611389A JPH03164981A JP H03164981 A JPH03164981 A JP H03164981A JP 30611389 A JP30611389 A JP 30611389A JP 30611389 A JP30611389 A JP 30611389A JP H03164981 A JPH03164981 A JP H03164981A
Authority
JP
Japan
Prior art keywords
image
saturation
hue
color
foreground
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP30611389A
Other languages
Japanese (ja)
Inventor
Naohisa Kawaguchi
川口 尚久
Masashi Uyama
政志 宇山
Yasuhiro Iijima
飯島 泰裕
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP30611389A priority Critical patent/JPH03164981A/en
Publication of JPH03164981A publication Critical patent/JPH03164981A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To obtain the synthetic image being free from a sense of incongruity with satisfactory operability by converting in a lump lightness, saturation and hue of a partial or the whole area of a foreground image, based on lightness, saturation and hue of a partial or the whole area of a background image and the foreground image. CONSTITUTION:The system is provided with a coordinate input part 3 for designating an arbitrary area in a background image 21 or a foreground image 22 stored in an image store part. In such a state, an image processing part 4 calculates lightness, saturation and hue of a partial or the whole area in the designated background image and foreground image, and converts in a lump lightness, saturation and hue of a partial or the whole area of the foreground image, based on the calculated lightness, saturation, hue, etc. In such a way, the image becomes a form in which areas are joined together as a unit, it can be obtained with satisfactory operability.

Description

【発明の詳細な説明】 〔概要] カラー画像を編集する画像編集装置において、対象とす
るカラー画像の一部、又は、全領域の明度、彩度1色相
を一括変換する方式に関し、赤(R)、緑(G)、青(
B)カラーモデルで表現された画像から、色相(H)、
明度(L)、彩度(S)カラーモデルで表現されか画像
への変換を、操作性の低下を招くことなく行うことを目
的とし、 カラー画像を編集する画像編集装置に、カラ画像を入力
する画像入力部と、背景のカラー画像を記憶する画像格
納部と、前景のカラー画像を記憶する画像格納部と、該
画像格納部に格納された背景画像、又は、前景画像中の
任意のrfI域を指定するだめの座標入力部と、該座標
入力部により指定された背景画像、及び、前景画像中の
一部、又は、全領域の明度、彩度9色相を算出し、該算
出された背景画像、及び、前景画像の明度、彩度色相に
基づいで、上記画像格納部に格納された前景画像中の任
意の領域の明度、彩度5色相を変換処理する画像処理部
と、上記画像格納部と」−記画像処理部との間で画像デ
ータを転送する画像転送部と、該画像格納部の内容を表
示する画像表示部とを設りて、背景画像、及び、前景画
像の一部又は、全領域の明度、彩度1色相、又は、該前
景画像の一部、又は、全領域の明度、彩度1色相に特定
の乗数を掛けたものに基づいて、前景画像の一部、又は
、全領域の明度、彩度1色相を一括変換するように構成
する。
Detailed Description of the Invention [Summary] In an image editing device that edits a color image, there is a method for batch converting the brightness and saturation of a part or the entire area of the target color image. ), green (G), blue (
B) From the image expressed by the color model, hue (H),
The purpose of this system is to input a color image into an image editing device that edits color images, with the aim of converting it to a color image expressed using the lightness (L) and saturation (S) color model without causing a decrease in operability. an image input unit that stores a background color image, an image storage unit that stores a foreground color image, and an image input unit that stores a background color image, an image storage unit that stores a foreground color image, and an arbitrary rfI in the background image or foreground image stored in the image storage unit. Calculates the brightness, saturation, and hue of a part or all of the background image and foreground image specified by the coordinate input section for specifying the area, and calculates the hue of the calculated area. an image processing unit that converts the brightness, saturation, and five hues of an arbitrary area in the foreground image stored in the image storage unit based on the brightness, saturation, and hue of the background image and the foreground image; An image transfer unit that transfers image data between the storage unit and the image processing unit, and an image display unit that displays the contents of the image storage unit are provided, and one of the background image and the foreground image is displayed. or a portion of the foreground image based on the brightness, saturation 1 hue of the entire area, or the brightness, chroma 1 hue of the entire area, multiplied by a certain multiplier. Alternatively, the brightness, saturation, and hue of the entire area may be converted at once.

〔産業上の利用分野] 本発明は、カラー画像を編集する画像編集装置において
、対象とするカラー画像の一部、又は、全領域の明度、
彩度1色相を−・括変換する方式に関する。
[Industrial Application Field] The present invention provides an image editing device for editing a color image, in which the brightness of a part or the entire area of the target color image,
The present invention relates to a method for converting a chroma-1 hue into -.

従来、画像編集装置は、放送局や、出版社なとの専門家
により用いられてきたが、近年のビデオカメラ、ビデオ
レコーダ、電子スチルカメラなどの低価格化、高性能化
等により、一般家庭においても、該ビデオ画像の編集が
行われるようになってきた。
Traditionally, image editing devices have been used by professionals such as broadcasting stations and publishers, but in recent years, with the lower prices and higher performance of video cameras, video recorders, electronic still cameras, etc., they have become popular in general households. Video images have also been edited.

史に、パーソナルコンピュータの低価格化1高性能化に
より、パーソナルコンピュータでも、画像生成9画像処
理1画像編集が行われるようになっている。
Historically, as the price of personal computers has decreased and their performance has increased, image generation, image processing, and image editing have come to be performed on personal computers.

このような状況下において、例えば、上記パーソナルコ
ンピュータを使用して、ある場面の画像に別の場面の画
像の一部をはめ込み、合成するなどの、より複雑な画像
編集を行いたいという要望があるが、この場合、できる
限り自然なカラー画像の合成を、操作性よく行うことが
できる画像編集方式が必要とされる。
Under these circumstances, there is a desire to use the above-mentioned personal computer to perform more complex image editing, such as inserting and compositing a part of an image from another scene into an image from one scene. However, in this case, there is a need for an image editing method that can synthesize color images as naturally as possible with good operability.

[従来の技術と発明が解決しようとする課題]第2図は
従来の画像編集方式を説明する図でありて、(a)はカ
ラーテーブルによる配色方式を示し、(b)は色の三属
性(明度9色相、彩度)による表現方式を示している。
[Prior art and problems to be solved by the invention] Fig. 2 is a diagram explaining a conventional image editing method, in which (a) shows a color scheme using a color table, and (b) shows three attributes of color. (9 brightness, 9 hues, and chroma).

(a)のカラーテーブルによる配色方式においては、例
えば、フレームハンファに格納されている画素単位の色
番号(例えば、8ビツト)を、カラーテーブルを用いて
、赤(R)、緑(G)、青(B)の階調(R,G、B各
8ヒント)に変換したものを、ディジタル−アナログ変
換でアナログの赤(R)、緑(G)、青(B)信号に変
換するものであり、前述のような画像の合成を行う場合
、希望する色を求めようとすると、加法混色の知識を必
要とし、厳密な配色は困難であることから、」二記のご
とき、単なる、色変換による画像合成では、どうしても
、不自然さが残るという問題があった。
In the color scheme using a color table in (a), for example, the color numbers (e.g., 8 bits) of each pixel stored in the frame filter are assigned to red (R), green (G), The blue (B) gradation (8 hints each for R, G, and B) is converted into analog red (R), green (G), and blue (B) signals through digital-to-analog conversion. However, when compositing images as described above, trying to obtain the desired color requires knowledge of additive color mixture, and it is difficult to create a strict color scheme. There is a problem with image synthesis using the method that unnaturalness remains.

そこで、(b)図に示した色の三属性(明度1色相、彩
度)による表現方式が考えられている。
Therefore, an expression system using three color attributes (brightness, hue, and saturation) as shown in FIG. 3(b) has been considered.

これは、例えば、コンピュータグラフィックスの分野等
において、加法混色の知識を必要とせず、色指定が直観
的にできるという利点がある。
This has the advantage that, for example, in the field of computer graphics, color specification can be done intuitively without requiring knowledge of additive color mixture.

この場合、該三属性のカラーモデルとカラーデイスプレ
ィの赤(1?) 、緑(G)、青(B)(以下、ROB
ということがある)カラーモデルとの対応関係を定義す
る必要があるが、定義の仕方によって種々のものが提案
されている。
In this case, the color model of the three attributes and the color display red (1?), green (G), blue (B) (hereinafter referred to as ROB
It is necessary to define the correspondence with the color model, but various methods have been proposed depending on how to define it.

これらの中で、「グラフィックス標準計画委員会」によ
って提案されているr HL Sカラーモデル] (例
えば、“コンピュータグラフィックス画面の配色”、井
沢弘道、為ケ谷秀−2第2回色彩光学コンファレンス、
6−1,123頁〜)がある。
Among these, the rHLS color model proposed by the "Graphics Standards Planning Committee"] (for example, "Color scheme of computer graphics screens", Hiromichi Izawa, Hide Tamegaya-2 2nd Chromatic Optics conference,
6-1, p. 123~).

このカラーモデルでは、画像の色を色相(I+)、明度
(L)、彩度(S)で表現し、且つ、それらを複円錐体
の色立体として表現するものである。
In this color model, the color of an image is expressed by hue (I+), lightness (L), and saturation (S), and these are expressed as a bicone color solid.

6 例えば、色相(11)は、0°から360 ’までの色
相環で表現し、青(1()がOo、マセンタ(旧が60
°、赤(1?)力月20°、黄(Y)が180゜緑(〔
;)が240− シアン(C)が30 +1 ”と定義
する。
6 For example, hue (11) is expressed by a hue wheel from 0° to 360', blue (1 () is Oo, macenta (old is 60
°, red (1?) power moon 20°, yellow (Y) 180° green ([
) is defined as 240− cyan (C) is 30 +1”.

明度(17)は、1−記複円錐体の軸方向に、0.0(
黒)から、1.0(白)まで変化し、赤(R)、緑(G
)、青(B)の中の最大値(M)と最小値(m>の平均
値として定義されている。
The brightness (17) is 0.0 (
black) to 1.0 (white), red (R), green (G
), is defined as the average value of the maximum value (M) and minimum value (m>) in blue (B).

又、彩度(S)は、0.0(無彩色)から、1.0(あ
る明度について、最も鮮やかな色)まで変化し、該色立
体の裏面上の色は、全ての彩度が1.0である。
In addition, the saturation (S) changes from 0.0 (achromatic color) to 1.0 (the most vivid color for a certain brightness), and the colors on the back of the color solid have all the saturation. It is 1.0.

等色相面内で彩度の最も高い色は、明度0.5の色相環
上に並ぶ。
The colors with the highest saturation within the isohue plane are arranged on a hue wheel with a lightness of 0.5.

RG I3カラー「デルから、」−記111、Sカラー
モデルへの変換式は、上記文献によると、下記のように
示されζいる。
According to the above-mentioned document, the conversion formula to the S color model is shown as follows.

ステップ0:準備 ) M−max(R,G、B); m=m1n(It、
G、B)ii)M=mのときは、無彩色であり、ステッ
プ1に進む。
Step 0: Preparation) M-max (R, G, B); m=m1n (It,
G, B) ii) When M=m, the color is achromatic and the process proceeds to step 1.

1ii)  r= (M−R) 7M−m ;g−(M
−G) 7M−m ; b= (M−B)7M−m ; ここで、r’、g、bのうち、少なくとも、−ツは0.
0であり、かつ、少な(とも一つが1.0である。
1ii) r= (M-R) 7M-m;g-(M
-G) 7M-m; b= (MB)7M-m; Here, among r', g, and b, at least - is 0.
0 and less (both one is 1.0).

ステップ1:明度りの算出 I、−(M l−m) / 2.  [3ステップ2:
彩度Sの算出 M=m (無彩色)のとき、S=O,OM−#m  且
つ、L≦0.5のとき、S−(M−m)/ (M+m) M≠m 且つ、L>0.5のとき、 S−(M−m) / (2−M−m) ステップ3:色相Hの算出 S=0.0 (無彩色)のとき、H’−O8≠0.0、
且つ、R=Mのとき、 H’ −2+b−g S≠0.0、且つ、G=Mのとき、 11’=4+r−b S≠0.0、且つ、B=Mのとき、 If  −6+JZ−r H= 6 D H’  (mod  360)上記の変
換式はあくまでも一例であって、これに限定されるもの
ではない。
Step 1: Calculation of brightness I, -(M l-m) / 2. [3 Step 2:
Calculation of saturation S When M=m (achromatic color), S=O, OM-#m and when L≦0.5, S-(M-m)/ (M+m) M≠m and L >0.5, S-(M-m) / (2-M-m) Step 3: Calculation of hue H When S=0.0 (achromatic color), H'-O8≠0.0,
And when R=M, H' -2+b-g When S≠0.0 and G=M, 11'=4+r-b When S≠0.0 and B=M, If - 6+JZ-r H=6D H' (mod 360) The above conversion formula is just an example, and is not limited to this.

以下、(b)図により、従来のHL Sカラーモデル表
現による画像合成方式を説明する。
Hereinafter, an image synthesis method based on the conventional HLS color model representation will be explained with reference to FIG.

先ず、画像入力部1において、背景となる画像を赤(R
)、緑(G)、青(B)に分解して、次の画像格納部2
1に格納し、前景となる画像も赤(It)、緑(G)。
First, in the image input unit 1, the background image is colored red (R
), green (G), and blue (B), and then store the image in the next image storage unit 2.
1, and the foreground images are also red (It) and green (G).

*(II)に分解しζ、次の画像格納部22に格納する
*(II) is decomposed into ζ and stored in the next image storage unit 22.

座標入力部3から、例えば、キーホード等により、画素
単位の座標が入力されると、上記座標入力部3で指定さ
れた座標の上記画像格納部22に格納されている1ii
1景両像の画素値が、画像転送部5の制御の元に、上記
画像格納部22から画像処理部4に入力される。
When coordinates in pixel units are inputted from the coordinate input unit 3 using, for example, a keyboard, the coordinates 1ii stored in the image storage unit 22 at the coordinates specified by the coordinate input unit 3 are
Pixel values of one scene and both images are input from the image storage section 22 to the image processing section 4 under the control of the image transfer section 5.

画像処理部4では、上記前景画像につい゛(、上記座標
入力部3で指定された座標の画素単位に、上記ステップ
O・〜ステップ3に示したrRGBカラーモデルJ−>
rHLSカラーモデル」への変換処理を行った後、該座
標入力部3で別途指定された量(変換乗数:%)だけ変
換させて、背景画像に合ね一部た後、上記画像転送部5
の制御の元に、該背景画像が格納されている画像格納部
21の同じ座標位置に上書きの形で転送し、背景画像に
対する前景画像の合成を行う。
The image processing unit 4 applies the rRGB color model J shown in steps O to Step 3 to the foreground image in pixel units at the coordinates specified in the coordinate input unit 3.
rHLS color model", the coordinate input section 3 performs conversion by an amount (conversion multiplier: %) specified separately, and after a portion is adjusted to fit the background image, the image transfer section 5
Under the control of , the background image is transferred to the same coordinate position of the image storage unit 21 where the background image is stored, and the foreground image is synthesized with the background image.

この従来方式では、画素単位の処理である為、明度、彩
度1色相の変換を行うにして、前景画像を背景画像に合
わせるにも、−々、人手で変換量を指定してやる必要が
あり、操作性が極めて悪いという問題があった。
In this conventional method, since processing is performed pixel by pixel, it is necessary to manually specify the conversion amount to match the foreground image to the background image, even if the brightness, saturation, and hue conversion is performed. There was a problem that the operability was extremely poor.

本発明は上記従来の欠点に鑑み、カラー画像を編集する
画像編集装置において、対象とするカラーの前景画像の
一部、又は、全領域の背景画像との合成を不自然さを無
くして行うのに、赤(R)、緑(G)、青(B)カラー
モデルで表現された画像から、色相(IIL明度(し)
、彩度(S)カラーモデルで表現さ0 れた画像への変換を用い、且つ、その時、操作性の低下
を招くことなく行うことができる画像編集方式を堤供す
ることを目的とするものである。
In view of the above-mentioned conventional drawbacks, the present invention provides an image editing device for editing a color image, in which a part of a target color foreground image or the entire area of the background image is synthesized without unnaturalness. The hue (IIL brightness) is calculated from an image expressed using the red (R), green (G), and blue (B) color models.
The purpose of this paper is to provide an image editing method that uses conversion to an image expressed using the chroma (S) color model and can be performed without deteriorating operability. be.

〔課題を解決するための手段] 上記の問題点は下記の如くに構成した画像編集方式によ
って解決される。
[Means for Solving the Problems] The above problems are solved by an image editing method configured as follows.

カラー画像を編集する画像編集装置に、カラー画像を入
力する画像入力部と、 背景のカラー画像を記憶する画像格納部と、前景のカラ
ー画像を記憶する画像格納部と、該画像格納部に格納さ
れた背景画像、又は、前景画像中の任意の領域を指定す
るか、又は、該前景画像中の任意の領域の明度、彩度1
色相を変換する為の乗数を指定するための座標入力部と
、該座標入力部により指定された背景画像、及び、前景
画像中の一部、又は、全領域の明度、彩度色相を算出し
、該算出された背景画像、及び、前景画像の明度、彩度
9色相に基づいて、−下記画像格納部に格納された前景
画像中の任意の領域の明度、彩度5色相を変換処理する
画像処理部と、上記画像格納部と上記画像処理部との間
で画像データを転送する画像転送部と、 該画像格納部の内容を表示する画像表示部とを設けて、 背景画像、及び、前景画像の一部、又は、全領域の明度
、彩度1色+旧又は、該111景両像の一部又は、全領
域の明度、彩度1色相に特定の乗数を掛けたものに基づ
いて、前景画像の一部、又は、全領域の明度、彩度1色
相を一括変換するように構成する。
An image editing device that edits a color image includes an image input unit that inputs a color image, an image storage unit that stores a background color image, an image storage unit that stores a foreground color image, and an image storage unit that stores a color image in the image storage unit. Specify any area in the background image or foreground image, or set the brightness and saturation of any area in the foreground image to 1
A coordinate input section for specifying a multiplier for converting hue, and a background image specified by the coordinate input section, and calculates the brightness, saturation, and hue of a part or all of the foreground image. , Based on the calculated background image and the foreground image's brightness, saturation, 9 hues, - convert the brightness, saturation, 5 hues of an arbitrary area in the foreground image stored in the image storage section below. an image processing section, an image transfer section that transfers image data between the image storage section and the image processing section, and an image display section that displays the contents of the image storage section, and a background image; Based on the brightness and saturation of a part of the foreground image or the entire area, one color plus the old color, or the brightness and saturation of a part or the entire area of the foreground image, one hue multiplied by a specific multiplier. In this way, the brightness, saturation, and hue of a part or all of the foreground image are converted all at once.

〔作用〕[Effect]

即ち、本発明によれば、カラー画像を編集する画像編集
装置において、対象とするカラーの前景画像の一部、又
は、全領域を背景のカラー画像と合成する際の不自然さ
を解消する手段として、該前景のカラー画像を、赤(R
)、緑(G)、青(B)カラーモデル表現から、色相(
H)、明度(L)、彩度(S)カラモデル表現への変換
を用いる。
That is, according to the present invention, in an image editing apparatus that edits a color image, there is a means for eliminating unnaturalness when combining a part or the entire region of a target color foreground image with a background color image. , the foreground color image is red (R
), green (G), blue (B) color model representation, hue (
H), brightness (L), and saturation (S) color model expressions are used.

このとき、先ず、背景画像に対して、赤(R)、緑(G
)、青(B)カラーモデル表現から、色相(H)、明度
(い、彩度(S)カラーモデル表現への変換を行い、そ
の色相(IIL明度(L)、彩度(S)の、例えば、平
均イ直kl (II) 、 kl (+、)、kl(S
)を求める。
At this time, first, red (R), green (G
), blue (B) color model representation to hue (H), lightness (I, saturation (S)) color model representation, and the hue (IIL lightness (L), saturation (S)), For example, the average direct kl (II), kl (+,), kl(S
).

次に、前景画像に対して、赤(R)、緑(G)、青(B
)カラーモデル表現から、色相(IIL明度(L)、彩
度(S)カラーモデル表現への変換を行い、その色相(
H)、明度(L)、彩度(S)の、例えば、平均(l!
に2(It)k2 (L) 、 k2 (S)を求める
Next, for the foreground image, red (R), green (G), blue (B
) color model representation to the hue (IIL lightness (L), saturation (S)) color model representation, and convert the hue (
H), brightness (L), and saturation (S), for example, the average (l!
Find 2(It)k2 (L) and k2 (S).

ここで、本発明におい′(は、従来の画素単位の指定で
はなく、座標入力部でマウス等により、前景カラー画像
の領域を指定し、該指定された領域の色相(II)、明
度(1、)、彩度(S)の平均値に2 (11) 、 
k2(1,) 、 k2 (S)のそれぞれに対して、
例えば、kl()I)/に2(H)、kl(+、)/に
2(L)、kl(S)/に2(S)を乗する一括変換を
行うことで、該前景画像の色相(■)、明度(L)、彩
度(S)を、背景画像の色相(H)。
Here, in the present invention, instead of specifying the conventional pixel unit, the area of the foreground color image is specified using a mouse or the like in the coordinate input section, and the hue (II) and brightness (1 ), the average value of saturation (S) is 2 (11),
For each of k2 (1,) and k2 (S),
For example, by performing batch conversion of multiplying kl()I)/ by 2(H), kl(+, )/ by 2(L), and kl(S)/ by 2(S), the foreground image Hue (■), brightness (L), saturation (S), and hue (H) of the background image.

明度(l、)、彩度(S)に合わせた後、赤(R)、緑
(G)、青(B)カラーモデル表現に逆変換(該逆変換
方式は、 3− 前述の文献参照)した該変換画像を、背景画像の同じ領
域に十書きの形で挿入して、画像合成を行・うようにす
る。
After matching the lightness (l,) and saturation (S), it is inversely converted to red (R), green (G), and blue (B) color model expressions (for the inverse conversion method, see 3- the above-mentioned literature). The converted image is inserted in the same area of the background image in a cross-shaped pattern to perform image synthesis.

又、単なる、平均値による一括変換ではなく、各、色相
(■)、明度(L)、彩度(S)に対して、特定の乗数
をかけて、−括変換を行うようにしてもよい。
Furthermore, instead of simply performing a batch conversion using an average value, a -batch conversion may be performed by multiplying each hue (■), lightness (L), and saturation (S) by a specific multiplier. .

従って、本発明による画像合成においては、背景画像の
一部、又は、全領域の色相(II)、明度(1,)彩度
(S)に、前景画像の一部、又は、全部の色4・1」(
IIL明度(L)、彩度(S)を、領域を単位として合
わせる形態となるため、違和感のない合成画像を、操作
性をよくして得ることができ、画像編集装置の性能の向
上に寄与することが多い効果がある。
Therefore, in image synthesis according to the present invention, the hue (II), brightness (1,) and saturation (S) of a part or all of the background image are combined with the color 4 of part or all of the foreground image.・1” (
Since the IIL brightness (L) and saturation (S) are combined on a region-by-region basis, it is possible to obtain a natural-looking composite image with improved operability, contributing to improved performance of image editing devices. It has many effects.

〔実施例〕 以下本発明の実施例を図面によって詳述する。〔Example〕 Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例を示した回であり、(a)は
画像編集装置の構成例を示し、(bl) 、 (b2)
は画像合成の例を示しており、背景画像に対して、赤(
R)、緑(G)、青(U カラーモデル表現から、色相
 4− (IIL明度(L)、彩度(S)カラーモデル表現への
変換を行って、その色相(11)、明度(L)、彩度(
S)の、例えは、平均値を求め、前景画像に対しても、
赤(1υ、緑(f;) 、 ’l’7 (B)カラーモ
デル表現から、色相(1()、明度(L)、彩+、=(
s)カラーモデル表現への変換を行って、その色相(I
I)、明度(I、)、彩度(S)の、例えば、平均値を
求め、指定した前景画像の領域に対して、」−記求めた
色相(11)、明度(I、)、彩度(S)の・1′均イ
II′1を用い(、該+ii1景画像景色像(It)、
明度(I、)。
FIG. 1 shows an embodiment of the present invention, in which (a) shows an example of the configuration of an image editing device, (bl), (b2)
shows an example of image compositing, where red (
R), green (G), blue (U) Conversion is performed from the color model representation to the hue 4- (IIL lightness (L), saturation (S)) color model representation, and the hue (11), lightness (L) ),saturation(
S), for example, find the average value and also for the foreground image,
From the red (1υ, green (f;), 'l'7 (B) color model representation, hue (1 (), lightness (L), saturation +, = (
s) Conversion to color model representation and its hue (I
For example, calculate the average values of I), brightness (I,), and saturation (S), and calculate the calculated hue (11), brightness (I, ), and saturation for the specified foreground image area. Using ・1′ uniform II′1 of degree (S) (, the +ii1 scenery image scenery image (It),
Brightness (I,).

彩度(S)を背景画像の色相(11)、明度(I、)、
彩度(S)に合わせる手段が本発明を実施するのに必要
な手段である。尚、全図を通して同じ符号は同じ対象物
を示しζいる。
The saturation (S) is the hue (11) of the background image, the brightness (I, ),
A means for adjusting to saturation (S) is a necessary means for implementing the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

以下、第1Mを用いて本発明の画像編集方式を説明する
Hereinafter, the image editing method of the present invention will be explained using the first M.

本発明を実施しても、カラー画像の赤(R)5緑(G)
青(B)カラーモデル表現から、色相(■)、明度(1
7)彩度(S)カラーモデル表現への変換方式の基本的
な動作は特に変わることはないので省略し、ごこては、
本発明の背景画像の一部、又は、全部の色相(II)、
明度(L)、彩度(S)と、前景画像の一部、又は、全
部の色相(+1)、明度(L)、彩度(S)とを用いて
、該前景画像の色相(II)、明度(L)、彩度(S)
を、背景画像の色相(II)、明度(L)、彩度(S)
に合わせて合成する手段を中心にして説明する。
Even if the present invention is implemented, the red (R) 5 green (G) color image
From the blue (B) color model expression, hue (■), brightness (1
7) Saturation (S) The basic operation of the conversion method to color model representation does not change in particular, so it will be omitted, and the details are as follows.
Hue (II) of part or all of the background image of the present invention,
Using the lightness (L), saturation (S), and hue (+1), lightness (L), and saturation (S) of part or all of the foreground image, determine the hue (II) of the foreground image. , brightness (L), saturation (S)
The hue (II), lightness (L), and saturation (S) of the background image
The explanation will focus on the method of synthesizing the data according to the following.

先ず、例えば、NTSC−RGl+コンバータとして機
能する画像入力部1において、背景画像を赤(R)、緑
(G)、青(B)に分解して画像格納部21に格納し、
続い′(、前景画像を同じようにし゛(、赤(+7)、
緑(G)。
First, for example, in the image input unit 1 functioning as an NTSC-RGl+ converter, a background image is decomposed into red (R), green (G), and blue (B) and stored in the image storage unit 21.
Continuing ′(, make the foreground image the same as ゛(, red (+7),
Green (G).

青(B)に分解して画像格納部22に格納する。It is decomposed into blue (B) and stored in the image storage unit 22.

図示していないマウス等の入力装置を用いて、座標入力
部3で、背景画像の−・部にはめこんで合成したい前景
画像の領域を指定する。
Using an input device such as a mouse (not shown), a coordinate input unit 3 is used to designate a region of the foreground image that is to be inserted into the - section of the background image and combined.

領域生成部71は、該指定された領域に基づいて、領域
内の座標を発生し、画像処理部4に入力する。
The area generation unit 71 generates coordinates within the area based on the specified area, and inputs the coordinates to the image processing unit 4.

画像処理部4は、制御部7により起動された画像転送部
5を介して、上記画像格納部21に格納されている背景
画像の赤(R)、緑(G)、青(B)に分解された画像
データの合成対象領域、又は、全部を記憶部42に取り
込み、制御記憶部43に記憶されている前述のカラー画
像の赤(R)、緑(G)、青(B)カラーモデル表現か
ら、色相(11) 、明度(1,)、彩度(S)カラー
モデル表現への変換方式に従って、該背景画像に対して
、赤(R)、緑(G)、青(11)カラーモデル表現か
ら、色相(+1)、明度(1,)、彩度(S)カラーモ
デル表現への変換を行い、例えば、その平均値に1(I
I)、kl(L)、kl(S)を求める。
The image processing unit 4 decomposes the background image stored in the image storage unit 21 into red (R), green (G), and blue (B) via the image transfer unit 5 activated by the control unit 7. The area to be synthesized or all of the image data thus obtained is loaded into the storage unit 42, and the red (R), green (G), blue (B) color model representation of the above-mentioned color image stored in the control storage unit 43 is carried out. According to the conversion method to the hue (11), brightness (1,), saturation (S) color model representation, the red (R), green (G), blue (11) color model is applied to the background image. The expression is converted to hue (+1), brightness (1,), saturation (S) color model expression, and for example, the average value is set to 1 (I
I), kl(L), and kl(S).

同様にして、に記座標入力部3から指定されている領域
に対応した座標を用いて、」−記画像格納部22に格納
されている前景となる画像から、合成対象の画像データ
を切り出し、赤(IO5緑(G)、青(B)カラーモデ
ル表現から、色相(II)、明度(L)、彩度(S)カ
ラーモデル表現への変換を行い、その平均値に2(旧、
 k2 (L) 、 k2 (S)を求める。(第1図
(b2)参照) 背景画像の一部に、前景画像の一部、又は、全部をはめ
こむ場合、前述のように、できるだけ違和感のないよう
に色合わせをする必要がある。
Similarly, using the coordinates corresponding to the area specified from the coordinate input section 3, cut out image data to be synthesized from the foreground image stored in the image storage section 22, The red (IO5 green (G), blue (B) color model representation is converted to the hue (II), lightness (L), saturation (S) color model representation, and the average value is 2 (old,
Find k2 (L) and k2 (S). (See FIG. 1 (b2)) When a part or all of the foreground image is inserted into a part of the background image, as described above, it is necessary to match the colors as much as possible so as not to create an unnatural feeling.

そこで、上記、背景画像の色相(II)、明度(L)、
彩7 度(S)の平均値kl(H)、kl(L)、kl(S)
と、前景画像の色相(II)、明度(L)、彩度(S)
の平均値に2 (H) 、 k2(1、)、に2(S)
とから、例えば、その比率Kll、Kl4.I<5KH
−kl (H)/に2(+1) 。
Therefore, the hue (II), lightness (L) of the background image,
Average value of chroma 7 degrees (S) kl (H), kl (L), kl (S)
and the hue (II), lightness (L), and saturation (S) of the foreground image.
The average value of 2 (H), k2 (1,), 2 (S)
For example, the ratios Kll, Kl4. I<5KH
-kl (H)/2(+1).

KL=kl(L)/に2(L)。KL=kl(L)/2(L).

K 5=kl (S) /に2(S) を算出し、該前景画像の色相(H)、明度(L)、彩度
(S)の平均値に2 (+1) 、 k2 (+、) 
、 k2 (S)に乗算した色相(II)、明度(し)
、彩度(S)の画像データを求め、今度は、該色相(H
)、明度(L)、彩度(S)カラーモデル表現から赤(
R)、緑(G)、青(13)カラーモデル表現へ逆変換
した画像データを生成して、」二記画像転送部5を介し
て、画像格納部21の対応領域に上書きの形で格納する
K5=kl(S)/2(S) is calculated, and the average values of hue (H), brightness (L), and saturation (S) of the foreground image are 2(+1) and k2(+,).
, Hue (II), brightness (Shi) multiplied by k2 (S)
, the image data of saturation (S) is obtained, and this time, the image data of the hue (H
), brightness (L), and saturation (S) from the color model expression to red (
R), green (G), and blue (13) color model expressions are generated and stored in the corresponding area of the image storage unit 21 in the form of overwriting via the image transfer unit 5. do.

勿論、上記前景画像の色相(II)、明度(l、)、彩
度(S)の、それぞれに、座標入力部3から入力された
特定の乗数(%)をかけた色相(旧、明度(し)、彩度
(S) k3(II)、に3(L)、に3(S)を求め
て、上記比率KH,KL、KSの代わりに、 K)I’=kl(■)/に3(11)。
Of course, the hue (old, brightness (old), brightness ( ), saturation (S) k3(II), 3(L), 3(S), and instead of the above ratios KH, KL, KS, K)I'=kl(■)/ 3(11).

8 KL’=kl(L)/に3(L)。8 KL'=kl(L)/to 3(L).

KS’=kl(S)/に3(S)。KS'=kl(S)/to 3(S).

を求めるようにしてもよいし、」1記対象画像の色相(
11)、明度(1、)、彩度(S) k3(It)、に
3(+、)、に3(S)をそのま−用いて、赤(R)、
緑(G)、青(R)カラーモデル表現の画像を生成して
画像格納部21に上書きするようにしてもよい。
Alternatively, the hue of the target image (1) may be determined.
11), Brightness (1,), Saturation (S) k3 (It), 3 (+, ), 3 (S) as they are used to create red (R),
Images expressed in green (G) and blue (R) color models may be generated and overwritten in the image storage unit 21.

このように、本発明は、カラー画像を編集する画像編集
装置において、背景となるカラー画像の一部に、前景画
像の一部、又は、全部を、違和感なく挿入して合成画像
を生成するのに、色合わせの国運な赤(In2緑(G)
 、 :; (l()カッ−モデルで表現した画像デー
タ′から、色合わせの容易な色相(IIL明度(し)、
彩度(S)カラーモデルで表現する画像データへの変換
方式があることに着目して、該背景画像1及び、合成し
たい前景画像を赤(R)、緑(G)。
As described above, the present invention is an image editing device that edits a color image, and it is possible to generate a composite image by inserting part or all of a foreground image into a part of a color image serving as a background without any discomfort. The national luck of color matching is red (In2 green (G)
, :; From the image data expressed by the (l()) model, the hue (IIL brightness,
Focusing on the fact that there is a conversion method to image data expressed using the saturation (S) color model, the background image 1 and the foreground image to be combined are colored red (R) and green (G).

青(B)カラーモデル表現から色相(H)、明度(L)
、彩度(S)カラーモデル表現に変換し0色合わせをし
た後、元の赤(R)、緑(G)、青(B)カラーモデル
表現の画像データを生成して、背景画像の合成対象とな
る領域に上書きの形に挿入するようにした所に特徴があ
る。
Hue (H) and lightness (L) from blue (B) color model expression
, after converting to saturation (S) color model representation and zero color matching, generate image data in the original red (R), green (G), and blue (B) color model representation, and synthesize the background image. The feature is that it is inserted in the form of an overwrite in the target area.

〔発明の効果〕〔Effect of the invention〕

以上、詳細に説明したように、本発明の画像編集方式は
、カラー画像を編集する画像編集装置に、カラー画像を
入力する画像入力部と、背景のカラー画像を記憶する画
像格納部と、前景のカラー画像を記憶する画像格納部と
、該画像格納部に格納された背景画像、又は、前景画像
中の任意の領域を指定するための座標入力部と、該座標
入力部に、1、り指定された背n″C画像、及び、前じ
(画像中の・部、又は、全領域の明度、彩度5色相を算
出し、該算出された背景画像、及び、前景画像の明度。
As described above in detail, the image editing method of the present invention includes an image input section for inputting a color image, an image storage section for storing a background color image, and a foreground color image in an image editing device for editing a color image. an image storage section for storing a color image of the color image; a coordinate input section for specifying an arbitrary area in the background image or foreground image stored in the image storage section; Calculate the brightness, saturation, and five hues of the specified back n''C image and the front (part or entire area in the image, and calculate the brightness of the calculated background image and foreground image.

彩度9色相に基づいて、上記画像格納部に格納された前
景画像中の任意の領域の明度、彩度1色相を変換処理す
る画像処理部と、上記画像格納部と上記画像処理部との
間で画像データを転送する画像転送部と、該画像格納部
の内容を表示する画像表示部とを設けて、背景画像、及
び、前景画像の一部、又は、全領域の明度、彩度1色相
等に基づいζ、前景画像の一部、又は、全領域の明度、
彩度9色相を一括変換するようにしたものであるので、
背景画像の一部、又は、全部の色相(IIL明度(し)
、彩度(S)に、前景画像の一部、又は、全部の色相(
It)、明度(し)、彩度(S)を、領域を単位として
合わせる形態となるため、違和感のない合成画像を、操
作性をよくして得ることができ、画像編集装置の性能の
向トに寄与することが多い効果がある。
an image processing unit that converts the brightness of an arbitrary area in the foreground image stored in the image storage unit based on the chroma level 9 hues, and the chroma level 1 hue; and the image storage unit and the image processing unit An image transfer unit that transfers image data between the two and an image display unit that displays the contents of the image storage unit are provided, and the brightness and saturation of a part or the entire area of the background image and foreground image are adjusted to 1. ζ based on the hue, etc., the brightness of a part of the foreground image or the entire area,
Since it is designed to convert 9 hues of saturation at once,
Hue (IIL brightness) of part or all of the background image
, saturation (S), hue of part or all of the foreground image (
It is possible to obtain a composite image that does not look strange, with good operability, and improves the performance of the image editing device. There are effects that often contribute to

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

第1図は本発明の一実施例を示した図 第2図は従来の画像編集方式を説明する図。 である。 図面において、 lは画像入力部。 3は座標入力部。 42は記憶部。 21.22は画像格納部。 4は画像処理部 43は制御記憶部。 1 は画像転送部。 は画像表示部 は制御部。 をそれぞれ示す。 2 FIG. 1 is a diagram showing an embodiment of the present invention. FIG. 2 is a diagram explaining a conventional image editing method. It is. In the drawing, l is an image input section. 3 is the coordinate input section. 42 is a storage section. 21.22 is an image storage unit. 4 is the image processing section 43 is a control storage section. 1 is the image transfer section. is the image display section is the control section. are shown respectively. 2

Claims (1)

【特許請求の範囲】 カラー画像を編集する画像編集装置に、カラー画像を入
力する画像入力部(1)と、 背景のカラー画像を記憶する画像格納部(21)と、前
景のカラー画像を記憶する画像格納部(22)と、該画
像格納部(21、22)に格納された背景画像、又は、
前景画像中の任意の領域を指定するか、又は、該前景画
像中の任意の領域の明度、彩度、色相を変換する為の乗
数を指定するための座標入力部(3)と、 該座標入力部(3)により指定された背景画像、及び、
前景画像中の一部、又は、全領域の明度、彩度、色相を
算出し、該算出された背景画像、及び、前景画像の明度
、彩度、色相に基づいて、上記画像格納部(22)に格
納された前景画像中の任意の領域の明度、彩度、色相を
変換処理する画像処理部(4)と、 上記画像格納部(21、22)と、上記画像処理部(4
)との間で画像データを転送する画像転送部(5)と、
該画像格納部(21)の内容を表示する画像表示部(6
)とを設けて、 背景画像、及び、前景画像の一部、又は、全領域の明度
、彩度、色相、又は、該前景画像の一部、又は、全領域
の明度、彩度、色相に特定の乗数を掛けたものに基づい
て、前景画像の一部、又は、全領域の明度、彩度、色相
を一括変換することを特徴とする画像編集方式。
[Claims] An image editing device for editing a color image includes an image input section (1) for inputting a color image, an image storage section (21) for storing a color image of a background, and a color image of a foreground. an image storage unit (22) for storing an image, and a background image stored in the image storage unit (21, 22), or
a coordinate input section (3) for specifying an arbitrary region in the foreground image or a multiplier for converting the brightness, saturation, and hue of the arbitrary region in the foreground image; A background image specified by the input section (3), and
The brightness, saturation, and hue of a part or all of the foreground image are calculated, and the image storage unit (22 ); an image processing unit (4) that converts the brightness, saturation, and hue of an arbitrary area in the foreground image stored in the foreground image; the image storage unit (21, 22);
); an image transfer unit (5) that transfers image data between the
an image display section (6) that displays the contents of the image storage section (21);
), and the brightness, saturation, and hue of a part or the entire area of the background image and the foreground image, or the brightness, saturation, and hue of the part or the entire area of the foreground image. An image editing method characterized by converting the brightness, saturation, and hue of a part or all of a foreground image at once based on a value multiplied by a specific multiplier.
JP30611389A 1989-11-24 1989-11-24 Image editing system Pending JPH03164981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30611389A JPH03164981A (en) 1989-11-24 1989-11-24 Image editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30611389A JPH03164981A (en) 1989-11-24 1989-11-24 Image editing system

Publications (1)

Publication Number Publication Date
JPH03164981A true JPH03164981A (en) 1991-07-16

Family

ID=17953202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30611389A Pending JPH03164981A (en) 1989-11-24 1989-11-24 Image editing system

Country Status (1)

Country Link
JP (1) JPH03164981A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002150310A (en) * 2000-11-08 2002-05-24 Namco Ltd Game device and information storage medium
JP2017034354A (en) * 2015-07-29 2017-02-09 株式会社メイクソフトウェア Photograph taking game apparatus, photograph seal production apparatus, control method for photograph taking game apparatus, and control program for photograph taking game apparatus
JP2021026431A (en) * 2019-08-02 2021-02-22 株式会社Nttドコモ Virtual space display device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002150310A (en) * 2000-11-08 2002-05-24 Namco Ltd Game device and information storage medium
JP4589517B2 (en) * 2000-11-08 2010-12-01 株式会社バンダイナムコゲームス Information storage medium and image generation apparatus
JP2017034354A (en) * 2015-07-29 2017-02-09 株式会社メイクソフトウェア Photograph taking game apparatus, photograph seal production apparatus, control method for photograph taking game apparatus, and control program for photograph taking game apparatus
JP2021026431A (en) * 2019-08-02 2021-02-22 株式会社Nttドコモ Virtual space display device

Similar Documents

Publication Publication Date Title
EP1729526B1 (en) Color adjustment method, and color adjusment system by use of a three-dimensional look-up table
US5379129A (en) Method for compositing a source and destination image using a mask image
JP3384799B2 (en) Electronic image manipulation device and method
Weeks et al. Histogram specification of 24-bit color images in the color difference (CY) color space
JPH0296485A (en) Picture generator
JPH021894A (en) Method and apparatus for generating color characteristic of object
JPH04227585A (en) Method and apparatus for forming improved control-data line
US20130044122A1 (en) Color adjustment circuit, digital color adjustment device and multimedia apparatus using the same
JPH06333039A (en) Method and device for airbrushing
JP3581835B2 (en) Color conversion method and apparatus in chroma key processing
JPH1084487A (en) Image processor and its method
JP3539665B2 (en) Face area correction method, face area correction apparatus, and recording medium storing face area correction program
JPS6314556B2 (en)
JP2001014454A (en) Picture processor
KR101958263B1 (en) The control method for VR contents and UI templates
JPH03164981A (en) Image editing system
CN110708476B (en) Real-time image processing method and device
EP1351525A2 (en) Real-time gradation control
JP2713677B2 (en) Color image color change processing method and color image synthesis processing method
JP2007158446A (en) Image processor, image processing method and program, recording medium
JP7309132B1 (en) Image Synthesis Method in Chroma Key Processing
JPS58172082A (en) Display system for picture
JP2756047B2 (en) Color image color adjustment method and apparatus, and image synthesis method
JPS63182781A (en) Picture processor
CN107454374A (en) Image processing apparatus, image processing method and image processing system