JPH1098624A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method

Info

Publication number
JPH1098624A
JPH1098624A JP8252547A JP25254796A JPH1098624A JP H1098624 A JPH1098624 A JP H1098624A JP 8252547 A JP8252547 A JP 8252547A JP 25254796 A JP25254796 A JP 25254796A JP H1098624 A JPH1098624 A JP H1098624A
Authority
JP
Japan
Prior art keywords
light source
space
image
color
source color
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
JP8252547A
Other languages
Japanese (ja)
Inventor
Masayuki Inoue
正之 井上
Seiki Inoue
誠喜 井上
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.)
ATR CHINOU EIZO TSUSHIN KENKYUSHO KK
Original Assignee
ATR CHINOU EIZO TSUSHIN KENKYUSHO KK
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 ATR CHINOU EIZO TSUSHIN KENKYUSHO KK filed Critical ATR CHINOU EIZO TSUSHIN KENKYUSHO KK
Priority to JP8252547A priority Critical patent/JPH1098624A/en
Publication of JPH1098624A publication Critical patent/JPH1098624A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

(57)【要約】 【課題】 光源色を保ったままの画像処理結果を得るこ
とである。 【解決手段】 光源色空間への変換部3は、光源色推定
部2からの光源色推定結果をもとに、光源色の三原色成
分の比を保って、画像入力部1からの画像の各画素デー
タをRGB空間における対応する点へ変換する。均等知
覚色空間への変換部4は、光源色空間への変換部3から
送られた画像データを、均等知覚色空間に変換する。強
調・弛緩処理部5は、均等知覚色空間への変換部4から
送られた画像データに対して、明度成分あるいは/かつ
彩度成分に所望の強調・弛緩処理を行なう。そして、画
像データは、均等知覚色空間からの逆変換部8およびデ
バイス空間への逆変換部9を経て、画像表示部10に送
られる。このように、光源色の三原色成分の比を保った
まま、強調・弛緩処理を施す。
(57) [Summary] [PROBLEMS] To obtain an image processing result while maintaining a light source color. SOLUTION: Based on a light source color estimation result from a light source color estimating unit 2, a conversion unit 3 into a light source color space keeps a ratio of three primary color components of a light source color, and Transform pixel data into corresponding points in RGB space. The uniform perception color space conversion unit 4 converts the image data sent from the light source color space conversion unit 3 into a uniform perception color space. The emphasis / relaxation processing unit 5 performs desired emphasis / relaxation processing on the lightness component and / or the saturation component of the image data sent from the uniform perceptual color space conversion unit 4. Then, the image data is sent to the image display unit 10 via the inverse conversion unit 8 from the uniform perceived color space and the inverse conversion unit 9 to the device space. As described above, the emphasis / relaxation process is performed while maintaining the ratio of the three primary color components of the light source color.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、画像処理装置お
よび画像処理方法に関し、特に、カラー自然画像の、奥
行き感、鮮明感、質感および画像のつやなどを制御する
ために行なうカラー自然画像の強調・弛緩処理を実行す
る画像処理装置および画像処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and an image processing method and, more particularly, to enhancement of a color natural image for controlling the depth, sharpness, texture and gloss of the color natural image. The present invention relates to an image processing device and an image processing method for executing a relaxation process.

【0002】[0002]

【従来の技術】従来の画像処理装置では、以下のように
して画像処理が行なわれる。光源色の三原色成分R
(赤)、G(緑)、B(青)を、それぞれ、Lr
g 、Lb とし、Lr :Lg :Lb が、1:2:3の光
源の下で、被写体を撮影して得られた画像を考える。こ
の画像は、システム(画像処理装置)内部では、RGB
の3成分で表現される。ここで、画像処理として、RG
Bの各成分のダイナミックレンジ(dynamic range )を
伸縮する処理を考えると、この処理は、システム内部で
のRGBの各々の値域で行なわれる。つまり、Lr :L
g :Lb が1:2:3であったとしても、たとえば、シ
ステム内部において、光源色のRGBに比が1:1:1
で表現されるならば、1:1:1の下で伸縮する処理が
行なわれる。
2. Description of the Related Art In a conventional image processing apparatus, image processing is performed as follows. The three primary color components R of the light source color
(Red), G (green), and B (blue) are represented by L r ,
L g, and L b, L r: L g : L b is 1: 2: 3 Under the light source, consider the image obtained by photographing an object. This image is stored in the system (image processing device)
Is represented by the following three components. Here, RG is used as image processing.
Considering the process of expanding and contracting the dynamic range of each component of B, this process is performed in each value range of RGB inside the system. That is, L r : L
Even if g : Lb is 1: 2: 3, for example, the ratio of the light source color to RGB is 1: 1: 1 inside the system.
If it is expressed by, processing to expand and contract under 1: 1: 1 is performed.

【0003】[0003]

【発明が解決しようとする課題】以上のように、従来の
画像処理装置では、光源色の三原色成分の比(Lr :L
g :Lb )を考慮することなく、システムによって決ま
るRGBの比の下で、画像処理が行なわれる。このた
め、従来の画像処理装置では、光源色を保ったままの画
像処理結果を得ることができないという問題点がある。
As described above, the conventional
In the image processing apparatus, the ratio of the three primary color components of the light source color (Lr: L
g: LbIs decided by the system without considering
Image processing is performed under the RGB ratio. others
Therefore, with conventional image processing devices, images with the same light source color are maintained.
There is a problem that an image processing result cannot be obtained.

【0004】このような問題点を具体例を挙げて説明す
る。RGBの各成分のダイナミックレンジを伸縮する画
像処理(画像の強調・弛緩処理)は、システム外部で、
光源の光量を増減させることに対応する。ここで、
r :Lg :Lb =1:2:3であるから、この光源
は、青が強く、光源の光量を増やす場合を考えると、こ
の光源下の物体は、青っぽくなる。一方、このような光
源の光量を増やす処理に対応するシステム内部の画像処
理を考える。この画像処理は、画像を強調する処理であ
る。システム内部では、光源色のRGBの比は1:1:
1であるため、強調する処理を行なうと、画像は白っぽ
くなる。このように、従来の画像処理装置では、光源色
を保存した画像処理結果を得ることはできない。
[0004] Such a problem will be described with a specific example. Image processing for expanding and contracting the dynamic range of each component of RGB (image enhancement / relaxation processing) is performed outside the system.
This corresponds to increasing or decreasing the light amount of the light source. here,
Since Lr : Lg : Lb = 1: 2: 3, this light source has a strong blue color, and considering the case where the light amount of the light source is increased, the object under this light source becomes bluish. On the other hand, consider image processing inside the system corresponding to the process of increasing the light amount of the light source. This image processing is processing for enhancing an image. Inside the system, the RGB ratio of the light source color is 1: 1:
Since it is 1, the image becomes whitish when the emphasis processing is performed. As described above, the conventional image processing apparatus cannot obtain an image processing result in which the light source colors are stored.

【0005】この発明は、以上のような問題点を解決す
るためになされたもので、光源色を保ったままの画像処
理結果を得ることができる画像処理装置および画像処理
方法を提供することを目的とする。
An object of the present invention is to provide an image processing apparatus and an image processing method capable of obtaining an image processing result while maintaining a light source color. Aim.

【0006】[0006]

【課題を解決するための手段】本発明の請求項1の画像
処理装置は、光源色の三原色成分の比を保って、画像の
各画素データを、所定の色空間における対応する点へ変
換する変換手段と、変換後の画像の各画素データに対し
て任意の処理を施す手段とを備える。
An image processing apparatus according to a first aspect of the present invention converts each pixel data of an image to a corresponding point in a predetermined color space while maintaining a ratio of three primary color components of a light source color. The image processing apparatus includes a conversion unit and a unit that performs arbitrary processing on each pixel data of the converted image.

【0007】本発明の請求項2の画像処理装置は、請求
項1に記載のものであって、光源色の三原色成分の比を
r (赤):Lg (緑):Lb (青)とし、Lr
g 、L b のうちの最小値をLmin 、最大値をLmaX
すると、変換手段は、Lmin およびLmaX を用いて変換
を行なう。
According to a second aspect of the present invention, there is provided an image processing apparatus comprising:
Item 1. The ratio of the three primary color components of the light source color is defined as
Lr(Red): Lg(Green): Lb(Blue) and Lr,
Lg, L bL is the minimum value ofmin, The maximum value is LmaXWhen
Then, the conversion means is LminAnd LmaXConvert using
Perform

【0008】本発明の請求項3の画像処理方法は、光源
色の三原色成分の比を保って、画像の各画素データを、
所定の色空間における対応する点へ変換する変換ステッ
プと、変換後の画像の各画素データに対して任意の処理
を施すステップとを含む。
According to the image processing method of the present invention, each pixel data of the image is converted while maintaining the ratio of the three primary color components of the light source color.
A conversion step of converting to a corresponding point in a predetermined color space; and performing an arbitrary process on each pixel data of the converted image.

【0009】本発明の請求項4の画像処理方法は、請求
項3に記載のものであって、光源色の三原色成分の比を
r (赤):Lg (緑):Lb (青)とし、Lr
g 、L b のうちの最小値をLmin 、最大値をLmaX
すると、変換ステップでは、Lmi n およびLmaX を用い
て変換を行なう。
According to a fourth aspect of the present invention, there is provided an image processing method comprising:
Item 3. The ratio of the three primary color components of the light source color is defined as
Lr(Red): Lg(Green): Lb(Blue) and Lr,
Lg, L bL is the minimum value ofmin, The maximum value is LmaXWhen
Then, in the conversion step, Lmi nAnd LmaXUsing
To perform the conversion.

【0010】[0010]

【発明の実施の形態】以下、本発明による画像処理装置
について図面を参照しながら説明する。本発明の実施の
形態による画像処理装置は、カラー自然画像の強調・弛
緩処理を実現するものである。図1は、本発明の実施の
形態による画像処理装置の概略を示すブロック図であ
る。図1を参照して、この画像処理装置は、画像入力部
1、光源色推定部2、光源色空間への変換部3、均等知
覚色空間への変換部4、強調・弛緩処理部5、均等知覚
色空間からの逆変換部8、デバイス空間への逆変換部9
および画像表示部10を備える。強調・弛緩処理部5
は、明度成分処理部6および彩度成分処理部7を含む。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image processing apparatus according to the present invention will be described with reference to the drawings. An image processing device according to an embodiment of the present invention realizes enhancement / relaxation processing of a color natural image. FIG. 1 is a block diagram schematically showing an image processing apparatus according to an embodiment of the present invention. Referring to FIG. 1, the image processing apparatus includes an image input unit 1, a light source color estimating unit 2, a conversion unit 3 for a light source color space, a conversion unit 4 for a uniform perceived color space, an emphasis / relaxation processing unit 5, Inverse conversion unit 8 from uniform perceived color space, inverse conversion unit 9 into device space
And an image display unit 10. Emphasis / relaxation processing unit 5
Includes a lightness component processing unit 6 and a saturation component processing unit 7.

【0011】動作について説明する。画像は、まず、画
像入力部1を介して入力される。具体的には、画像入力
部1は、テレビカメラ、スキャナ、あるいは回線を介し
た外部入力部などである。画像入力部1からの画像デー
タ(画像の各画素データ)は、光源色推定部2および光
源色空間への変換部3に送られる。光源色推定部2で
は、光源色を推定し、推定結果を光源色空間への変換部
3に送る。光源色空間への変換部3では、画像収録時の
R(赤)G(緑)B(青)空間を光源色の三原色成分の
比が保たれているRGB空間へ変換する。つまり、光源
色空間への変換部3では、光源色推定部2からの光源色
推定結果をもとに、光源色の三原色成分の比を保って、
画像入力部1からの画像の各画素データをRGB空間に
おける対応する点へ変換する。このような光源色の三原
色成分の比が保たれているRGB空間を光源色空間と呼
ぶことにする。以上のように、光源色空間への変換部3
は、画像入力部1からの画像データを光源色空間に変換
する。
The operation will be described. An image is first input via the image input unit 1. Specifically, the image input unit 1 is a television camera, a scanner, an external input unit via a line, or the like. Image data (pixel data of an image) from the image input unit 1 is sent to a light source color estimating unit 2 and a light source color space conversion unit 3. The light source color estimating unit 2 estimates the light source color and sends the estimation result to the light source color space conversion unit 3. The light source color space conversion unit 3 converts the R (red), G (green), and B (blue) space at the time of image recording into an RGB space in which the ratio of the three primary color components of the light source color is maintained. That is, the conversion unit 3 for converting to the light source color space maintains the ratio of the three primary color components of the light source color based on the light source color estimation result from the light source color estimation unit 2,
Each pixel data of the image from the image input unit 1 is converted into a corresponding point in the RGB space. The RGB space in which the ratio of the three primary color components of the light source color is maintained will be referred to as a light source color space. As described above, the conversion unit 3 to the light source color space
Converts the image data from the image input unit 1 into a light source color space.

【0012】光源色空間への変換後の画像データ(画像
の各画素データ)は、均等知覚色空間への変換部4に送
られる。均等知覚色空間への変換部4では、光源色空間
への変換部3から送られた画像データを、均等知覚色空
間に変換する。ここで、均等知覚色空間とは、空間上の
どの部分においても2色間の距離が等しければ、知覚さ
れる色差もまた等しくなるように配置された空間であ
る。代表的な例としては、マンセルのHVC空間が挙げ
られる。これに対して、通常のRGB空間では、空間上
の2色間の距離が等しくても、知覚的に等色差に感じら
れるとは限らず、領域によってかなりの差があることが
知られている。均等知覚色空間への変換後の画像データ
(画像の各画素データ)は、強調・弛緩処理部5に送ら
れる。
The image data (each pixel data of the image) after the conversion to the light source color space is sent to the uniform perception color space conversion unit 4. In the uniform perceived color space conversion unit 4, the image data sent from the light source color space conversion unit 3 is converted into the uniform perceived color space. Here, the uniform perceived color space is a space arranged such that the perceived color difference is also equal if the distance between two colors is equal in any part of the space. A representative example is the Munsell HVC space. On the other hand, in a normal RGB space, it is known that even if the distance between two colors in the space is equal, it does not always seem to be perceived as a uniform color difference, and there is a considerable difference between regions. . The image data (each pixel data of the image) after conversion into the uniform perceived color space is sent to the enhancement / relaxation processing unit 5.

【0013】強調・弛緩処理部5では、均等知覚色空間
への変換部4から送られた画像データに対し、明度成分
あるいは/かつ彩度成分に所望の強調・弛緩処理を行な
う。ここで、明度成分処理部6が、明度成分に所望の強
調・弛緩処理を行ない、彩度成分処理部7が、彩度成分
に所望の強調・弛緩処理を行なう。強調・弛緩処理後の
画像データ(画像の各画素データ)は、均等知覚色空間
からの逆変換部8に送られる。均等知覚色空間からの逆
変換部8では、強調・弛緩処理部5からの送られた画像
データを光源色空間に逆変換する。光源色空間への逆変
換後の画像データ(画像の各画素データ)は、デバイス
空間への逆変換部9に送られる。
The emphasis / relaxation processing unit 5 performs a desired emphasis / relaxation process on the lightness component and / or the saturation component of the image data sent from the uniform perceived color space conversion unit 4. Here, the brightness component processing unit 6 performs a desired enhancement / relaxation process on the brightness component, and the saturation component processing unit 7 performs a desired enhancement / relaxation process on the saturation component. The image data (each pixel data of the image) after the enhancement / relaxation processing is sent to the inverse conversion unit 8 from the uniform perceived color space. In the inverse conversion unit 8 from the uniform perceived color space, the image data sent from the enhancement / relaxation processing unit 5 is inversely converted into the light source color space. The image data (each pixel data of the image) after the inverse conversion to the light source color space is sent to the inverse conversion unit 9 for the device space.

【0014】デバイス空間への逆変換部9では、均等知
覚色空間からの逆変換部8からの画像データを画像収録
時のRGB空間(デバイス空間)に逆変換する。つま
り、デバイス空間への逆変換部9は、均等知覚色空間か
らの逆変換部8からの画像データを画像入力部1のRG
B空間(デバイス空間)に逆変換する。デバイス空間へ
の逆変換後の画像データ(画像の各画素データ)は、画
像表示部10に送られる。画像表示部10では、デバイ
ス空間への逆変換部9において、デバイス空間に逆変換
された画像データを受取り、出力する。具体的には、画
像表示部10は、CRTなどのディスプレイやプリンタ
などである。
The inverse conversion unit 9 converts the image data from the uniform perception color space into the RGB space (device space) at the time of image recording. That is, the inverse conversion unit 9 for converting to the device space converts the image data from the inverse conversion unit 8 from the uniform perceived color space to the RG of the image input unit 1.
Inverse conversion to B space (device space). The image data (each pixel data of the image) after the inverse conversion to the device space is sent to the image display unit 10. The image display unit 10 receives and outputs the image data inversely transformed into the device space in the inverse transformation into device space 9. Specifically, the image display unit 10 is a display such as a CRT or a printer.

【0015】次に、光源色推定部2における処理の詳細
について説明する。一般に、光源の分光特性をI
(λ)、物体の分光反射率をρ(λ)とすると、物体の
色の分光特性P(λ)は、
Next, the processing in the light source color estimating section 2 will be described in detail. In general, the spectral characteristics of the light source
(Λ) and the spectral reflectance of the object is ρ (λ), the spectral characteristic P (λ) of the color of the object is

【0016】[0016]

【数1】 (Equation 1)

【0017】で表わすことができる。また、通常、色は
三原色の混合として扱われ、この場合、光源I(λ)も
また、三原色R(赤)、G(緑)、B(青)の成分比と
して、Ir (赤):Ig (緑):Ib (青)で表わされ
る。したがって、画像を各画素に細分化して考えるる
と、i番目の画素の色は、
## EQU1 ## Usually, the color is treated as a mixture of the three primary colors. In this case, the light source I (λ) also has a component ratio of the three primary colors R (red), G (green), and B (blue), I r (red): I g (green): represented by I b (blue). Therefore, when the image is subdivided into pixels, the color of the i-th pixel is

【0018】[0018]

【数2】 (Equation 2)

【0019】のように表わすことができる。ここで、P
ri、PgiおよびPbiは、それぞれ、i番目の画素に対応
するP(λ)のR成分、G成分およびB成分である。ま
た、Ir 、Ig およびIb は、それぞれ、I(λ)のR
成分、G成分およびB成分である。さらにρri、ρgi
よびρbiは、それぞれ、i番目の画素に対応するρ
(λ)のR成分、G成分およびB成分である。ところ
で、画像処理の分野では、従来から「灰色仮説」がしば
しば使われている。これは、自然界にある色をすべて加
算すると、灰色になる、とするもので、これを数式で表
わすと、
It can be expressed as follows. Where P
ri , P gi and P bi are the R, G and B components of P (λ) corresponding to the i-th pixel, respectively. Also, I r, I g and I b, respectively, R of I (lambda)
Component, G component and B component. Further, ρ ri , ρ gi and ρ bi are ρ π corresponding to the i-th pixel, respectively.
The R component, the G component and the B component of (λ). By the way, in the field of image processing, the “grey hypothesis” has been often used. This means that adding all colors in the natural world results in a gray color.

【0020】[0020]

【数3】 (Equation 3)

【0021】となる。また、このとき光源は当然「白
色」でなければならないから、Ir :Ig :Ib =1:
1:1である。したがって、
## EQU1 ## Further, since at this time the light source must naturally "white", I r: I g: I b = 1:
1: 1. Therefore,

【0022】[0022]

【数4】 (Equation 4)

【0023】が成立する。そこで今、この灰色仮説を採
用することとし、光源の色が白色でないとすれば、式
(2)および式(4)から、
The following holds. Therefore, now, this gray hypothesis is adopted, and if the color of the light source is not white, from Equations (2) and (4),

【0024】[0024]

【数5】 (Equation 5)

【0025】となり、画像の各画素の成分ごとの総和の
比が光源の特性を表わしていることになる。さらに、画
像全体の明るさへの影響を考慮すると、光源の各成分の
値を、光源の平均の明るさ
Thus, the ratio of the sum of the components of each pixel of the image represents the characteristics of the light source. Furthermore, considering the effect on the brightness of the entire image, the value of each component of the light source is calculated as the average brightness of the light source.

【0026】[0026]

【数6】 (Equation 6)

【0027】を用いて規準化し、Is normalized by using

【0028】[0028]

【数7】 (Equation 7)

【0029】として、光源色の推定値を得る。所望の光
源色を、(Irs:Igs:Ibs)とし、P(λ)のR成
分、G成分およびB成分を、それぞれ、Pr 、Pg 、P
b とすると、光源色変換後の物体のRGB値(Prt、P
gt、Pbt)は、次式で与えられる。
As a result, an estimated value of the light source color is obtained. The desired light source color, and (I rs:: I gs I bs), R component of P (lambda), the G and B components, respectively, P r, P g, P
b , the RGB values (P rt , P
gt , P bt ) is given by the following equation.

【0030】[0030]

【数8】 (Equation 8)

【0031】次に、光源色空間への変換部3およびデバ
イス空間への逆変換部9における処理の詳細について説
明する。光源色の三原色成分RGBを、それぞれ、
r 、L g 、Lb とする。光源色の推定結果を、Lr
g :Lb とし、Lr 、Lg 、L b のうちの最大値をL
max 、最小値をLmin とし、入力画像は、RGBそれぞ
れNビットで量子化されているものとする。このとき、
画像収録時のRBG空間から光源色空間への変換は次式
を用いて行なう(光源色空間への変換部3での処理)。
なお、Lr 、Lg 、Lb は、それぞれ、上述した、
rt、Igt、Ibtに相当する。
Next, the light source color space conversion unit 3 and the device
The details of the processing in the inverse conversion unit 9 to the chair space are explained.
I will tell. The three primary color components RGB of the light source color are
Lr, L g, LbAnd The estimation result of the light source color is represented by Lr:
Lg: LbAnd Lr, Lg, L bL is the maximum value of
max, The minimum value is LminAnd the input images are RGB
It is assumed that the data is quantized by N bits. At this time,
Conversion from RBG space to light source color space at the time of image recording is as follows
(Processing in the conversion unit 3 for conversion to a light source color space).
Note that Lr, Lg, LbAre respectively described above,
Irt, Igt, IbtIs equivalent to

【0032】[0032]

【数9】 (Equation 9)

【0033】ここで、式(9)〜(11)において、
R、G、Bは画像収録時の画像の画素の三原色成分の値
を表わし、Rt 、Gt 、Bt は光源色空間への変換後の
画像の画素の三原色成分の値を表わす。光源色空間から
元のRGB空間(画像収録時のRGB空間)への逆変換
は次式を用いて行なう(デバイス空間への逆変換部9で
の処理)。
Here, in equations (9) to (11),
R, G, B represents a value of three primary colors components of the pixels of the image during image recording, R t, G t, B t represents the value of the three primary colors components of the pixels of the image after conversion to the light source color space. The inverse conversion from the light source color space to the original RGB space (the RGB space at the time of recording an image) is performed using the following equation (processing by the inverse conversion unit 9 into the device space).

【0034】[0034]

【数10】 (Equation 10)

【0035】以上のような、光源色空間への変換は、画
像のすべての画素に対して行なう。次に、光源色空間へ
の変換部3での光源色空間への変換について概念的に説
明する。ここで、Lr :Lg :Lb が1:2:3の光源
の下で被写体を撮影する場合を考える。このような撮影
現場を画像処理装置の外部と呼ぶことにする。そして、
画像処理装置の内部のRGB空間に対応する画像処理装
置の外部のRGB空間を考える。図2は、画像処理装置
の外部のRGB空間、つまり、光源色の三原色成分の比
(Lr :Lg :Lb )が1:2:3の光源下におけるR
GB空間を示す図である。図2を参照して、このRGB
空間は、Lr 軸に平行な辺a、Lg 軸に平行な辺bおよ
びLb に平行な辺cからなる直方体となっている。ここ
で、(辺aの長さ):(辺bの長さ):(辺cの長さ)
は、1:2:3である。また、辺aの長さを“1”と
し、辺bの長さを“2”とし、辺cの長さを“3”とす
る。
The conversion to the light source color space as described above is performed for all the pixels of the image. Next, the conversion to the light source color space by the light source color space conversion unit 3 will be conceptually described. Here, a case is considered where an object is photographed under a light source of Lr : Lg : Lb of 1: 2: 3. Such a photographing site will be referred to as the outside of the image processing apparatus. And
Consider an RGB space outside the image processing device corresponding to the RGB space inside the image processing device. FIG. 2 shows an RGB space outside the image processing apparatus, that is, an R space under a light source having a ratio of three primary color components (L r : L g : L b ) of 1: 2: 3.
It is a figure showing GB space. With reference to FIG.
Space has a rectangular parallelepiped composed of parallel sides c to L r axis parallel sides in a, parallel to the L g shaft side b and L b. Here, (length of side a): (length of side b): (length of side c)
Is 1: 2: 3. The length of the side a is “1”, the length of the side b is “2”, and the length of the side c is “3”.

【0036】図3は、画像収録時(光源色空間への変換
前)のRGB空間を示す図である。図3を参照して、こ
のRGB空間は、R軸に平行な辺d、G軸に平行な辺e
およびB軸に平行な辺fからなる立方体となっている。
ここで、(辺dの長さ):(辺eの長さ):(辺fの長
さ)は、1:1:1である。つまり、画像収録時のRG
B空間では、光源色の三原色成分比は、1:1:1であ
る。なお、辺e、辺dおよび辺fの長さは、“1”とす
る。また、このRGB空間は、図2のRGB空間に対応
するものである。
FIG. 3 is a diagram showing the RGB space at the time of image recording (before conversion to the light source color space). Referring to FIG. 3, this RGB space has a side d parallel to the R axis and a side e parallel to the G axis.
And a side f parallel to the B axis.
Here, (length of side d) :( length of side e) :( length of side f) is 1: 1: 1. In other words, the RG
In the B space, the ratio of the three primary color components of the light source color is 1: 1: 1. Note that the lengths of the side e, the side d, and the side f are “1”. This RGB space corresponds to the RGB space in FIG.

【0037】図2および図3を参照して、光源色の三原
色成分の比が1:2:3であるにもかかわらず、画像処
理装置の内部においては、光源色の三原色成分の比は
1:1:1にされる。したがって、光源色の三原色成分
の比が1:1:1のRGB空間を均等知覚色空間に変換
して、強調・弛緩処理を行なうと、光源色を保ったまま
の画像処理結果を得ることができない。そこで、本実施
の形態では、光源色の推定結果をもとに、光源色の三原
色成分の比(1:2:3)を保って、画像データを、画
像収録時のRGB空間と異なる他のRGB空間に変換す
る。つまり、画像データを、光源色空間に変換する。
Referring to FIGS. 2 and 3, the ratio of the three primary color components of the light source color is 1 inside the image processing apparatus although the ratio of the three primary color components of the light source color is 1: 2: 3. 1: 1. Therefore, if the RGB space in which the ratio of the three primary color components of the light source color is 1: 1: 1 is converted into the uniform perceived color space and the enhancement / relaxation processing is performed, an image processing result with the light source color maintained can be obtained. Can not. Therefore, in the present embodiment, based on the estimation result of the light source color, the image data is stored in another RGB space different from the RGB space at the time of recording the image while maintaining the ratio (1: 2: 3) of the three primary color components of the light source color. Convert to RGB space. That is, the image data is converted to the light source color space.

【0038】図4は、光源色の三原色成分の比が1:
2:3である場合における光源色空間を示す図である。
この光源色空間は、図2のRGB空間および図3のRG
B空間に対応するものである。図4を参照して、この光
源色空間は、R軸に平行な辺g、G軸に平行な辺hおよ
びB軸に平行な辺iからなる直方体となっている。ここ
で、(辺gの長さ):(辺hの長さ):(辺iの長さ)
は、1:2:3である。また、辺gの長さは“1/3”
であり、辺hの長さは“2/3”であり、辺iの長さは
“1”である。つまり、光源色空間では、図3のRGB
空間のように、画像処理装置の外部のRGB空間(図
2)における三原色成分の各値の最大値をすべて“1”
とするのではなく、画像処理装置の外部のRGB空間
(図2)における三原色成分のうちの最大値を“1”と
する。このように、光源色空間では、光源色の三原色成
分の比(1:2:3)が保たれている。
FIG. 4 shows that the ratio of the three primary color components of the light source color is 1:
FIG. 4 is a diagram illustrating a light source color space in the case of 2: 3.
The light source color space corresponds to the RGB space in FIG. 2 and the RGB space in FIG.
It corresponds to the B space. Referring to FIG. 4, the light source color space is a rectangular parallelepiped including a side g parallel to the R axis, a side h parallel to the G axis, and a side i parallel to the B axis. Here, (length of side g): (length of side h): (length of side i)
Is 1: 2: 3. The length of the side g is "1/3"
And the length of the side h is “2/3”, and the length of the side i is “1”. That is, in the light source color space, the RGB of FIG.
Like the space, the maximum value of each of the three primary color components in the RGB space (FIG. 2) outside the image processing apparatus is all “1”.
Instead, the maximum value of the three primary color components in the RGB space (FIG. 2) outside the image processing apparatus is set to “1”. Thus, in the light source color space, the ratio (1: 2: 3) of the three primary color components of the light source color is maintained.

【0039】図1の均等知覚色空間への変換部4では、
光源色空間(図4を参照して、辺g、辺hおよび辺iか
らなる直方体)を含むRGB空間(図4を参照して、R
軸に平行な辺j、G軸に平行な辺kおよびB軸に平行な
辺mからなる立方体)を均等知覚色空間に変換し、強調
・弛緩処理部5は、この均等知覚色空間において、強調
・弛緩処理を行なう。なお、図4において、(辺jの長
さ):(辺kの長さ):(辺mの長さ)は、1:1:1
であり、辺j,辺kおよび辺mの長さは“1”である。
In the conversion unit 4 for converting into the uniform perceived color space in FIG.
An RGB space including a light source color space (a rectangular parallelepiped formed by sides g, h, and i with reference to FIG. 4)
(A cube consisting of a side j parallel to the axis, a side k parallel to the G axis, and a side m parallel to the B axis) into an equivalent perceived color space, and the emphasis / relaxation processing unit 5 Perform emphasis / relaxation processing. In FIG. 4, (length of side j) :( length of side k) :( length of side m) is 1: 1: 1.
And the lengths of the sides j, k, and m are “1”.

【0040】次に、図1の強調・弛緩処理部5における
処理の詳細について説明する。再生画像のダイナミック
レンジ[a0 ,b0 ]が、出力機器の再現範囲[a,
b]よりも狭い場合、次式に示されるように、その再現
範囲を拡張するような処理が、画像強調である。なお、
次式において、[a,b]と[a0 ,b0 ]とを入れ替
えてやることにより、弛緩処理が可能である。また、次
式において、xは、強調・弛緩前のRGB値のいずれか
を示し、xt は、強調・弛緩後のRGB値のいずれかを
示す。
Next, the details of the processing in the emphasis / relaxation processing section 5 of FIG. 1 will be described. The dynamic range [a 0 , b 0 ] of the reproduced image is equal to the reproduction range [a,
b], the process of extending the reproduction range is image enhancement, as shown in the following equation. In addition,
In the following equation, the relaxation process can be performed by exchanging [a, b] and [a 0 , b 0 ]. Further, in the formula, x is, it indicates one of RGB values before enhancement-relaxation, x t represents any of the RGB values after enhancement-relaxation.

【0041】[0041]

【数11】 [Equation 11]

【0042】以上のように、本実施の形態による画像処
理装置では、画像データを光源色空間に変換した後、強
調・弛緩処理を行なう。つまり、光源色の三原色成分の
比(Lr :Lg :Lb )を保ったまま、画像に対して、
強調・弛緩処理を施す。このため、本実施の形態による
画像処理装置では、光源色を保ったままの画像処理結果
を得ることができる。つまり、強調・弛緩処理を行なっ
た場合において、光源色の色調に沿った色再現が可能と
なる。また、強調・弛緩処理を行なった場合において、
画像通信・蓄積系の任意の箇所で、再現色の色調の変化
を伴うことはない。
As described above, in the image processing apparatus according to the present embodiment, the image data is converted into the light source color space, and then the enhancement / relaxation processing is performed. That is, while maintaining the ratio ( Lr : Lg : Lb ) of the three primary color components of the light source color,
Apply emphasis / relaxation processing. For this reason, the image processing apparatus according to the present embodiment can obtain an image processing result while maintaining the light source color. That is, when the emphasis / relaxation process is performed, color reproduction along the color tone of the light source color can be performed. Also, when the emphasis / relaxation process is performed,
There is no change in the color tone of the reproduced color at any point in the image communication / storage system.

【0043】[0043]

【発明の効果】この発明の第1の発明に係る画像処理装
置およびこの発明の第2の発明に係る画像処理方法で
は、光源色の三原色成分の比を保ったまま画像処理を行
なう。このため、光源色を保ったままの画像処理結果を
得ることができる。つまり、画像処理を行なった場合に
おいて、光源色の色調に沿った色再現が可能となる。
In the image processing apparatus according to the first aspect of the present invention and the image processing method according to the second aspect of the present invention, image processing is performed while maintaining the ratio of the three primary color components of the light source color. Therefore, it is possible to obtain an image processing result while maintaining the light source color. In other words, when image processing is performed, color reproduction along the color tone of the light source color can be performed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態による画像処理装置の概略
を示すブロック図である。
FIG. 1 is a block diagram schematically illustrating an image processing apparatus according to an embodiment of the present invention.

【図2】画像処理装置の外部のRGB空間、つまり、光
源色の三原色成分の比(Lr :Lg :Lb )が1:2:
3の光源下におけるRGB空間を示す図である。
FIG. 2 shows an RGB space outside the image processing apparatus, that is, a ratio (L r : L g : L b ) of three primary color components of a light source color is 1: 2:
FIG. 7 is a diagram illustrating an RGB space under a third light source.

【図3】画像処理装置の内部のRGB空間のうち、画像
収録時(光源色空間への変換前)のRGB空間を示す図
である。
FIG. 3 is a diagram showing an RGB space at the time of recording an image (before conversion to a light source color space) in an RGB space inside the image processing apparatus.

【図4】光源色の三原色成分の比(Lr :Lg :Lb
が1:2:3である場合における光源色空間を示す図で
ある。
FIG. 4 shows a ratio of three primary color components of a light source color ( Lr : Lg : Lb ).
FIG. 4 is a diagram showing a light source color space when the ratio is 1: 2: 3.

【符号の説明】[Explanation of symbols]

1 画像入力部 2 光源色推定部 3 光源色空間への変換部 4 均等知覚色空間への変換部 5 強調・弛緩処理部 6 明度成分処理部 7 彩度成分処理部 8 均等知覚色空間からの逆変換部 9 デバイス空間への逆変換部 10 画像表示部 Reference Signs List 1 image input unit 2 light source color estimation unit 3 conversion unit to light source color space 4 conversion unit to uniform perceived color space 5 emphasis / relaxation processing unit 6 lightness component processing unit 7 chroma component processing unit 8 from uniform perceived color space Inverse conversion unit 9 Inverse conversion unit to device space 10 Image display unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 光源色の三原色成分の比を保って、画像
の各画素データを、所定の色空間における対応する点へ
変換する変換手段と、 前記変換後の画像の各画素データに対して任意の処理を
施す手段とを備えた、画像処理装置。
A conversion unit that converts each pixel data of an image into a corresponding point in a predetermined color space while maintaining a ratio of three primary color components of a light source color; An image processing apparatus comprising: means for performing arbitrary processing.
【請求項2】 光源色の前記三原色成分の比をL
r (赤):Lg (緑):L b (青)とし、Lr 、Lg
b のうちの最小値をLmin 、最大値をLmaX とする
と、 前記変換手段は、Lmin およびLmaX を用いて、前記変
換を行なう、請求項1に記載の画像処理装置。
2. The ratio of the three primary color components of a light source color to L
r(Red): Lg(Green): L b(Blue) and Lr, Lg,
LbL is the minimum value ofmin, The maximum value is LmaXTo be
And the conversion means is LminAnd LmaXUsing the
The image processing apparatus according to claim 1, wherein the replacement is performed.
【請求項3】 光源色の三原色成分の比を保って、画像
の各画素データを、所定の色空間における対応する点へ
変換する変換ステップと、 前記変換後の画像の各画素データに対して任意の処理を
施すステップとを含む、画像処理方法。
A conversion step of converting each pixel data of the image into a corresponding point in a predetermined color space while maintaining a ratio of three primary color components of a light source color; Performing an arbitrary process.
【請求項4】 光源色の前記三原色成分の比をL
r (赤):Lg (緑):L b (青)とし、Lr 、Lg
b のうちの最小値をLmin 、最大値をLmaX とする
と、 前記変換ステップでは、Lmin およびLmaX を用いて、
前記変換を行なう、請求項3に記載の画像処理装置。
4. The ratio of the three primary color components of a light source color is represented by L
r(Red): Lg(Green): L b(Blue) and Lr, Lg,
LbL is the minimum value ofmin, The maximum value is LmaXTo be
In the conversion step, LminAnd LmaXUsing,
The image processing device according to claim 3, wherein the conversion is performed.
JP8252547A 1996-09-25 1996-09-25 Image processing apparatus and image processing method Pending JPH1098624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8252547A JPH1098624A (en) 1996-09-25 1996-09-25 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8252547A JPH1098624A (en) 1996-09-25 1996-09-25 Image processing apparatus and image processing method

Publications (1)

Publication Number Publication Date
JPH1098624A true JPH1098624A (en) 1998-04-14

Family

ID=17238899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8252547A Pending JPH1098624A (en) 1996-09-25 1996-09-25 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JPH1098624A (en)

Similar Documents

Publication Publication Date Title
JP4308392B2 (en) Digital image processing method and mapping method
JP3676402B2 (en) Method and apparatus for cascading natural scene images
US9113113B2 (en) Method of processing of compressed image into a gamut mapped image using spatial frequency analysis
JP5795548B2 (en) High dynamic range image processing method using tone mapping to extended RGB space
US20090060326A1 (en) Image processing apparatus and method
JPH11331596A (en) Image processing method and its device
JP4068673B2 (en) Image processing apparatus and method
CN107925711B (en) Colour posture change Color Gamut Mapping
WO2011118662A1 (en) Image processing method and device, and image processing program
JP2002016818A (en) Color correction method and device, and recording medium
KR100782818B1 (en) Method and system for luminance preserving color conversion from YUV to RGB
JPH11341296A (en) Color gamut conversion method and color gamut conversion device
JP2002016939A (en) Method and apparatus for processing image as well as recording medium
JP2005210495A (en) Image processing apparatus, method, and program
WO2008002932A1 (en) Compositing image data in a linear-light color space that preserves a desired look
JP2001014454A (en) Picture processor
JPWO2009093294A1 (en) Image signal processing apparatus and image signal processing program
JP2001211339A (en) Image processing method and apparatus, and recording medium
JP4007964B2 (en) Image processing apparatus, image processing method, and image processing program
JP4375580B2 (en) Image processing apparatus, image processing method, and image processing program
JPH1098624A (en) Image processing apparatus and image processing method
JPH0832838A (en) Gradation correction method and gradation correction device
JP4051919B2 (en) Color image signal processing apparatus, color image signal processing method, and color image signal processing program
JP2002094826A (en) Image processing apparatus, image forming apparatus, and image processing method
JPH10126636A (en) Color image processing method and processing unit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030630