JPH09130815A - Method and device for processing picture - Google Patents

Method and device for processing picture

Info

Publication number
JPH09130815A
JPH09130815A JP7287711A JP28771195A JPH09130815A JP H09130815 A JPH09130815 A JP H09130815A JP 7287711 A JP7287711 A JP 7287711A JP 28771195 A JP28771195 A JP 28771195A JP H09130815 A JPH09130815 A JP H09130815A
Authority
JP
Japan
Prior art keywords
white balance
processing
color space
image
image data
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
JP7287711A
Other languages
Japanese (ja)
Inventor
Yasuhiko Murayama
靖彦 村山
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP7287711A priority Critical patent/JPH09130815A/en
Publication of JPH09130815A publication Critical patent/JPH09130815A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To heighten the efficiency of processing by executing white balance processing and data compression processing in the same color space in a picture processor processing conversion to the color space capable of separately dealing with luminance information and saturation information in order to compress data. SOLUTION: Picture data inputted by a picture input part 1 is converted to a YUV color space by a chrominance conversion part 2, and saturation information U and V are extracted from picture data converted to the YUV color space by a data collection part 31 to obtain the average values Ua and Va of the piece of saturation information U and V. Then the average values Ua and Va are subtracted from U and V before correction by a correction part 32 through the use of a parameter (the average value) extracted by the data collection part 31 to execute white balance processing and after then compression and development processing is executed by a picture data compression and development processing part 4.

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 method and an image processing apparatus for performing white balance processing on an image input by image input means.

【0002】[0002]

【従来の技術】照射される光源の色が白色以外の場合、
或る対象物をCCDカメラなどにより撮影すると、その
対象物がたとえ白であっても白として撮影されないとい
う現象が生じる。そこで、照射される光源の色に関係な
く、対象物本来の色の画像データを取り出すために、ホ
ワイトバランス処理が行われる。
2. Description of the Related Art When the color of the illuminating light source is other than white,
When a certain object is photographed by a CCD camera or the like, there occurs a phenomenon that the object is not photographed as white even if it is white. Therefore, white balance processing is performed in order to extract the image data of the original color of the object regardless of the color of the light source that is irradiated.

【0003】このホワイトバランス処理は、画像の表示
を行う表示装置を考慮して、RGB色空間あるいはYI
Q色空間にて行うのが一般的である。たとえば、パソコ
ンの表示装置は、RGB色空間による画像データ処理で
あるため、RGBの色空間においてホワイトバランス処
理を行う。そのホワイトバランス処理の方法としては、
画面全体の平均色は無彩色(グレー)であるとの前提を
基に、輝度情報を多く含むGを固定として、RとBに或
る係数を掛けて平均色が無彩色になるような補正方法、
あるいは、画像情報から色温度を算出して、予め準備さ
れている色温度と補正計数値のテーブルより、補正係数
を決定し、補正を行う方法などがある。
This white balance processing is performed in consideration of a display device that displays an image, in the RGB color space or YI.
Generally, the Q color space is used. For example, a display device of a personal computer performs image data processing in the RGB color space, and therefore performs white balance processing in the RGB color space. As the method of the white balance processing,
Based on the premise that the average color of the entire screen is an achromatic color (gray), G that contains a lot of luminance information is fixed, and R and B are multiplied by a certain coefficient so that the average color becomes an achromatic color. Method,
Alternatively, there is a method of calculating the color temperature from the image information, determining the correction coefficient from the table of the color temperature and the correction count value prepared in advance, and performing the correction.

【0004】[0004]

【発明が解決しようとする課題】ところで、CCDカメ
ラなどから取り込んだ画像データを圧縮したのち展開す
る処理が一般に行われている。この場合の画像データ圧
縮は、RGBの色空間をYUV色空間に変換して行うの
が普通である。これは、人間の視覚特性を考慮したもの
で、人間は輝度(Y)の変化には敏感であるが、彩度
(U,V)の変化にはあまり敏感でないということを利
用して、輝度情報と彩度情報とを別に扱える色空間であ
るYUV色空間に変換し、彩度情報を間引いてデータ量
を減らすことでデータの圧縮率を高めるようにしたもの
である。
By the way, a process of compressing image data taken in from a CCD camera or the like and then expanding it is generally performed. The image data compression in this case is usually performed by converting the RGB color space into the YUV color space. This is because the human visual characteristics are taken into consideration, and human beings are sensitive to changes in luminance (Y), but are not very sensitive to changes in saturation (U, V). The data compression ratio is increased by converting the information and the saturation information into the YUV color space, which is a color space that can be handled separately, and thinning out the saturation information to reduce the data amount.

【0005】しかしながら、従来のホワイトバランス処
理は前記したように、表示装置を考慮してRGB(また
はYIQ)の色空間において行うのが一般的である。従
って、画像データの圧縮処理が必要な場合の画像処理装
置においては、CCDカメラなどから取り込まれた画像
データをRGB(またはYIQ)色空間に変換した後、
ホワイトバランス処理を行い、その後で、データ圧縮の
ためにRGB色空間をYUV色空間に変換するというよ
うに、色空間の変換を何回も繰り返す処理があった。
However, as described above, the conventional white balance processing is generally performed in the RGB (or YIQ) color space in consideration of the display device. Therefore, in the image processing device when the compression processing of the image data is necessary, after converting the image data captured from the CCD camera or the like into the RGB (or YIQ) color space,
There has been a process of performing white balance processing and then repeating the conversion of the color space many times, such as converting the RGB color space into the YUV color space for data compression.

【0006】このように、輝度情報と彩度情報とを別に
扱える色空間に変換し、彩度情報を間引いてデータ量を
減らすことで、データ圧縮を行う画像処理装置にあって
は、ホワイトバランス処理を行う際、ホワイトバランス
処理を行うために、取り込まれた画像データを、表示装
置を考慮してRGB(またはYIQ)色空間に変換して
ホワイトバランス処理を行った後、データ圧縮を行うた
めに、YUV色空間に変換するというように、ホワイト
バランス処理、データ圧縮処理のそれぞれに対応した色
変換を行う必要があり、色変換処理が煩雑で処理の効率
が悪いという問題があった。
As described above, in the image processing apparatus that performs data compression by converting the luminance information and the saturation information into a color space that can be handled separately and thinning out the saturation information to reduce the data amount, a white balance is obtained. When performing the processing, in order to perform the white balance processing, the captured image data is converted into the RGB (or YIQ) color space in consideration of the display device, the white balance processing is performed, and then the data compression is performed. In addition, it is necessary to perform color conversion corresponding to each of white balance processing and data compression processing such as conversion to the YUV color space, and there is a problem that the color conversion processing is complicated and the processing efficiency is low.

【0007】そこで、本発明は、ホワイトバランス処理
を、画像データ圧縮を行う色空間にて可能とすることに
より、画像データの圧縮処理を必要とする場合におい
て、圧縮処理と同一の色空間でホワイトバランス処理を
可能とし、処理の効率化を図り、かつ、見た目に近い自
然なホワイトバランス処理を可能とする画像処理方法お
よび画像処理装置を実現することを目的とする。
Therefore, the present invention enables white balance processing in a color space in which image data is compressed, and when image data compression processing is required, white in the same color space as the compression processing is performed. An object of the present invention is to realize an image processing method and an image processing apparatus that enable balance processing, improve processing efficiency, and perform natural white balance processing that is close to appearance.

【0008】[0008]

【課題を解決するための手段】本発明の画像処理方法
は、画像入力手段により入力された画像データを、輝度
情報と彩度情報とを別に扱える色空間の画像データに変
換する色変換工程、この色変換工程により変換された色
空間において人間の視覚特性を考慮した画像データ圧縮
を行う画像データ圧縮工程を少なくとも有する画像処理
方法において、前記入力された画像データにホワイトバ
ランス処理を施すホワイトバランス処理工程を有し、こ
のホワイトバランス処理工程は、前記色変換工程により
変換された色空間における彩度情報を基に、ホワイトバ
ランス処理のために必要なパラメータを抽出し、この抽
出されたパラメータを用いて、ホワイトバランスを施す
ための演算を行うことでホワイトバランス処理を行うこ
とを特徴とする。これによれば、ホワイトバランス処理
をデータ圧縮処理と同一の色空間で行え、色変換を何回
も行うことなくホワイトバランス処理とデータ圧縮処理
を効率良く行うことができる。
An image processing method according to the present invention comprises a color conversion step of converting image data input by image input means into image data in a color space capable of separately handling luminance information and saturation information. In an image processing method having at least an image data compression step of performing image data compression in consideration of human visual characteristics in the color space converted by the color conversion step, white balance processing for performing white balance processing on the input image data. This white balance processing step includes a step of extracting a parameter necessary for the white balance processing based on the saturation information in the color space converted by the color conversion step, and using the extracted parameter. Then, white balance processing is performed by performing a calculation for performing white balance. According to this, the white balance process can be performed in the same color space as the data compression process, and the white balance process and the data compression process can be efficiently performed without performing color conversion many times.

【0009】前記ホワイトバランス処理のために必要な
パラメータは、入力された1画面の画像データにおける
彩度の平均値とする。これによれば、簡単な処理でパラ
メータの抽出が行える。
The parameter required for the white balance processing is the average value of the saturation in the input image data of one screen. According to this, the parameters can be extracted by a simple process.

【0010】そして、前記ホワイトバランスを施すため
の演算は、ホワイトバランス処理前の画素の彩度情報か
ら前記彩度の平均値を引く方法が一例としてある。この
方法によれば、きわめて簡単な処理でホワイトバランス
処理を行うことができる。
An example of the calculation for applying the white balance is a method of subtracting the average value of the saturation from the saturation information of the pixel before the white balance processing. According to this method, white balance processing can be performed with extremely simple processing.

【0011】前記平均値に対して予め設定したしきい値
を設定し、求められた平均値がしきい値以上の場合は、
その平均値はホワイトバランス処理のためのデータとし
て用いないようにする。このようにすれば、画面全体が
或る単一な色の画像に対しては、ホワイトバランス処理
を行わないので、単一な色で構成された画像に対して不
自然なホワイトバランス処理が施されるのを防止するこ
とができる。
A preset threshold value is set for the average value, and when the obtained average value is equal to or more than the threshold value,
The average value is not used as data for white balance processing. In this way, white balance processing is not performed for an image of a single color on the entire screen, so unnatural white balance processing is performed for an image composed of a single color. Can be prevented.

【0012】ところで、前記輝度情報と彩度情報とを別
に扱える色空間としては、たとえばYUV色空間を用い
る。
By the way, as a color space that can separately handle the luminance information and the saturation information, for example, a YUV color space is used.

【0013】また、本発明の画像処理装置は、画像入力
手段により入力された画像データを、輝度情報と彩度情
報とを別に扱える色空間の画像データに変換する色変換
手段、この色変換手段により変換された色空間において
人間の視覚特性を考慮した画像データ圧縮を行う画像デ
ータ圧縮手段を少なくとも有する画像処理装置におい
て、前記入力された画像データにホワイトバランス処理
を施すホワイトバランス処理手段を有し、このホワイト
バランス処理手段は、前記色変換手段により変換された
色空間における彩度情報を基に、ホワイトバランス処理
のために必要なパラメータを抽出するデータ収集部と、
このデータ収集部により抽出されたパラメータを用い
て、ホワイトバランスを施すための演算を行うことでホ
ワイトバランス処理を行うことを特徴とする。これによ
れば、前記同様、ホワイトバランス処理をデータ圧縮処
理と同一の色空間で行え、色変換を何回も行うことなく
ホワイトバランス処理とデータ圧縮処理を効率良く行う
ことができ、また、画像処理装置の構成を簡略化するこ
とができる。
Further, the image processing apparatus of the present invention is a color conversion means for converting the image data input by the image input means into image data of a color space capable of separately handling luminance information and saturation information, and this color conversion means. An image processing apparatus having at least image data compression means for performing image data compression in consideration of human visual characteristics in the color space converted by the method, comprising white balance processing means for performing white balance processing on the input image data. The white balance processing means, based on the saturation information in the color space converted by the color conversion means, a data collection unit that extracts parameters necessary for white balance processing,
It is characterized in that white balance processing is performed by performing an operation for applying white balance using the parameters extracted by the data collection unit. According to this, similarly to the above, the white balance processing can be performed in the same color space as the data compression processing, and the white balance processing and the data compression processing can be efficiently performed without performing the color conversion many times. The configuration of the processing device can be simplified.

【0014】前記データ収集部は、入力された1画面分
の画像データにおける彩度情報を収集して、収集した彩
度情報の平均値をホワイトバランス処理のためのパラメ
ータとして抽出するようにする。これによれば、前記同
様、簡単な処理でパラメータの抽出が行え、また、デー
タ収集部を簡単な構成で実現できる。
The data collecting unit collects the saturation information in the input image data for one screen and extracts the average value of the collected saturation information as a parameter for the white balance processing. According to this, similarly to the above, the parameters can be extracted by a simple process, and the data collection unit can be realized with a simple configuration.

【0015】そして、前記補正部は、補正処理の一例と
して、ホワイトバランス処理前の画素の彩度情報から前
記彩度の平均値を引くことで、ホワイトバランスを施す
処理を行うようにする。これによれば、前記同様、簡単
な処理でホワイトバランス処理を行うことができ、ま
た、補正部を簡単な構成で実現できる。
As an example of the correction processing, the correction unit performs the white balance processing by subtracting the average value of the saturation from the saturation information of the pixel before the white balance processing. According to this, similarly to the above, white balance processing can be performed by simple processing, and the correction unit can be realized with a simple configuration.

【0016】前記平均値に対して予め設定したしきい値
を設定し、求められた平均値がしきい値以上の場合は、
その平均値はホワイトバランス処理のためのデータとし
て用いないようにする。このようにすれば、前記同様、
画面全体が或る単一な色の画像に対しては、ホワイトバ
ランス処理を行わないので、単一な色で構成された画像
に対して不自然なホワイトバランス処理が施されるのを
防止することができる。
A preset threshold value is set for the average value, and when the calculated average value is equal to or more than the threshold value,
The average value is not used as data for white balance processing. By doing this, like the above,
Since white balance processing is not performed on an image of a single color on the entire screen, it is possible to prevent unnatural white balance processing from being performed on an image composed of a single color. be able to.

【0017】また、前記同様、輝度情報と彩度情報とを
別に扱える色空間としては、たとえばYUV色空間を用
いる。
Further, as described above, for example, a YUV color space is used as a color space that can separately handle luminance information and saturation information.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施の形態を説明
する。
Embodiments of the present invention will be described below.

【0019】図1は画像データの圧縮・展開処理を行う
機能およびホワイトバランス処理を行う機能を有した画
像処理装置の概略構成を説明するブロック図であり、大
きく分けると、画像入力部1、色変換部2、ホワイトバ
ランス処理部3、画像データ圧縮・展開処理部4、逆色
変換部5などから構成されている。
FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus having a function of performing compression / decompression processing of image data and a function of performing white balance processing. The conversion unit 2, the white balance processing unit 3, the image data compression / decompression processing unit 4, the inverse color conversion unit 5, and the like are included.

【0020】前記色変換部2は画像入力部1から出力さ
れる画像データ(ここではRGB色空間による画像デー
タ)を、(1)式に示すような変換式を用いてYUV色
空間に変換するもので、このように、YUV色空間に変
換するのは、前記したように、人間の視覚特性を考慮し
て彩度情報を間引いてデータ量を減らし、データの圧縮
率を高めるためである。
The color conversion unit 2 converts the image data output from the image input unit 1 (here, the image data in the RGB color space) into the YUV color space by using the conversion equation shown in the equation (1). As described above, the conversion to the YUV color space is performed in order to reduce the amount of data by thinning out the saturation information in consideration of human visual characteristics and increasing the data compression rate.

【0021】[0021]

【数1】 (Equation 1)

【0022】前記ホワイトバランス処理部3は、データ
収集部31、補正部32から構成され、前記色変換部2
でYUV色空間に色変換されたデータを基にホワイトバ
ランス処理を行う。なお、このホワイトバランス処理の
具体例については後述する。
The white balance processing section 3 comprises a data collection section 31 and a correction section 32, and the color conversion section 2
Then, white balance processing is performed based on the data color-converted into the YUV color space. A specific example of this white balance processing will be described later.

【0023】前記画像データ圧縮・展開処理部4はたと
えばJPEG(Joint Photographic Expert Grou
p)などが用いられるがこれに限定されるものではな
い。また、逆色変換部5は、YUV色空間をRGBの色
空間に(2)式に示すような変換式を用いて変換する。
The image data compression / decompression processing section 4 is, for example, a JPEG (Joint Photographic Expert Grou).
p) and the like are used, but the invention is not limited thereto. Further, the inverse color conversion unit 5 converts the YUV color space into the RGB color space by using the conversion equation shown in the equation (2).

【0024】[0024]

【数2】 (Equation 2)

【0025】次にホワイトバランス処理について説明す
る。図2は本発明のホワイトバランス処理を説明するフ
ローチャートであり、まず、YUV色空間に変換された
画像データから、1画面分の画像データの彩度情報U,
Vの平均値Ua,Vaを求める(ステップs1)。この
処理は図1におけるデータ収集部31にて行うもので、
処理対象となる1画面全体の画像の総ての画素ごとに
U,Vの値を求め、前記画素ごとのU,Vからその平均
値Ua,Vaを算出し、この平均値Ua,Vaを、補正
を行うためのパラメータとして出力する。
Next, the white balance processing will be described. FIG. 2 is a flowchart for explaining the white balance processing of the present invention. First, from the image data converted into the YUV color space, the saturation information U of the image data for one screen,
The average values Ua and Va of V are obtained (step s1). This processing is performed by the data collection unit 31 in FIG.
The values of U and V are obtained for all pixels of the image of the entire one screen to be processed, the average values Ua and Va are calculated from the U and V of each pixel, and the average values Ua and Va are Output as a parameter for correction.

【0026】そして、次にステップs2にて補正を行う
が、この補正は図1の補正部32で行われ、具体的に
は、次のような補正処理が行われる。
Then, in step s2, the correction is performed. This correction is performed by the correction unit 32 in FIG. 1, and specifically, the following correction processing is performed.

【0027】すなわち、補正前の各画素の彩度をUo,
Vo、補正後の各画素の彩度をUn,Vnとし、このU
n,Vnを、 Un=Uo−Ua・・・(3) Vn=Vo−Va・・・(4) により求めることによって、ホワイトバランス処理を行
う。
That is, the saturation of each pixel before correction is Uo,
Vo, the saturation of each pixel after correction is set to Un and Vn.
White balance processing is performed by obtaining n and Vn by Un = Uo-Ua ... (3) Vn = Vo-Va ... (4).

【0028】このホワイトバランス処理は、たとえば、
撮影対象が赤い色の強い光源によって照射されている場
合、平均値Ua,Vaは赤色を多く含んだデータとなる
ため、その赤色を多く含んだデータを補正前のUo,V
oから差し引く処理であり、これにより得られた補正後
のUn,Vnは本来の色に近いデータとすることができ
る。つまり、前記平均値Ua,Vaはそのときの光源の
色に近い値となると考えられ、1画面分の画像全体の平
均色は無彩色であるとの前提の基に、平均値Ua,Va
を0とするような補正を行えば、これにより得られた補
正後のUn,Vnは本来の色に近いデータとなる。その
補正方法は種々考えられるが、この実施の形態では、演
算の簡単な方法として、前記(3)、(4)式に示した
ように、補正前のUo,Voから平均値Ua,Vaを引
くことにより、ホワイトバランス処理を行うようにして
いる。
This white balance processing is performed, for example, by
When the object to be photographed is illuminated by a light source with a strong red color, the average values Ua and Va are data that include a large amount of red, so the data that includes a large amount of red is Uo and V before correction.
This is a process of subtracting from O, and Un and Vn after correction obtained by this can be data close to the original color. That is, the average values Ua, Va are considered to be values close to the color of the light source at that time, and the average values Ua, Va based on the premise that the average color of the entire image for one screen is achromatic.
If correction is performed so that 0 is set to 0, the corrected Un and Vn obtained by this will be data close to the original color. Although various correction methods are conceivable, in this embodiment, as a simple calculation method, as shown in the equations (3) and (4), the average values Ua and Va are calculated from the uncorrected Uo and Vo. The white balance process is performed by pulling.

【0029】このように、ホワイトバランス処理をデー
タ圧縮処理と同一の色空間で行うことができ、色変換を
何回も行うことなくホワイトバランス処理とデータ圧縮
処理を効率良く行うことができる。
As described above, the white balance processing can be performed in the same color space as the data compression processing, and the white balance processing and the data compression processing can be efficiently performed without performing the color conversion many times.

【0030】なお、以上説明した本発明の実施の形態で
は、現在、取り込んだ1画面分の画像データに対し、そ
の取り込まれた画像データから平均値を求めて、前記
(3)、(4)式に示したような補正を行うようにした
が、実際の処理としては、現在、取り込んだ1画面分の
画像データから得られた平均値を保存して、その保存し
た数画面分の平均値を現在取り込まれている画像データ
の補正に用いるようにしてホワイトバランス処理を行
う。このように前に取り込んだ画像データにより求めら
れた平均値を用いて、現在取り込まれている画像データ
の補正を行うようにすれば、画像データの取り込み、平
均値の算出処理と、補正処理とを並列に行うことがで
き、処理の高速化が図れる。
In the embodiment of the present invention described above, for the image data of one screen that is currently captured, an average value is obtained from the captured image data, and the above (3) and (4) are performed. Although the correction as shown in the formula was performed, the actual processing is to save the average value obtained from the captured image data for one screen and store the average value for the saved several screens. Is used to correct the image data that is currently captured, and white balance processing is performed. In this way, by using the average value obtained from the previously captured image data to correct the currently captured image data, the image data capture, average value calculation processing, and correction processing are performed. Can be performed in parallel, and the processing speed can be increased.

【0031】また、データ収集部21にて行われるデー
タ収集は、処理対象となる1画面全体の画像の総ての画
素ごとにU,Vの値を求め、その平均値Ua,Vaを算
出するようにしたが、1画面全体の画像の総ての画素ご
とにU,Vの値を求めるのではなく、サンプル点を定め
てそのサンプル点の画素のU,Vの値を求め、その平均
値を求めるようにしてもよい。たとえば、縦方向および
横方向ともに4画素に1つの画素をサンプル点とし、そ
のサンプル点の画素のU,Vの値を求め、その平均値を
求めるようにしてもよい。このようにすれば、処理の高
速化が図れる。
In the data collection performed by the data collection unit 21, the U and V values are obtained for all pixels of the image of the entire one screen to be processed, and the average values Ua and Va are calculated. However, instead of obtaining the U and V values for all pixels of the image on the entire screen, a sample point is determined and the U and V values of the pixels at that sample point are obtained, and the average value thereof is calculated. May be requested. For example, one pixel out of four pixels in the vertical direction and the horizontal direction may be set as a sample point, the values of U and V of the pixel at the sample point may be obtained, and the average value thereof may be obtained. By doing so, the processing speed can be increased.

【0032】また、前記1画面分の画像データから得ら
れた平均値を予め設定したしきい値と比較して、しきい
値以下か否かを判断して、それにより補正処理を行うか
どうかを決定することも可能である。たとえば、画面全
体が緑に覆われた森林などの画像に対して、前記したよ
うな平均値を求めると、求められた平均値は緑色の強い
値となり、これを前記(3)、(4)式を用いて補正を
行うと、本来は全体が緑の画像であるにも係わらず、ホ
ワイトバランス処理後は緑でない色となってしまうとい
う不都合が生じる。これに対処するため、求められた平
均値があまりにも大きい場合は、色々な色が存在する画
像ではなく、単一な色で構成された画像であるとみなし
て、その場合には、ホワイトバランス処理を行わないよ
うにする(前記した並列処理を行う場合は、その平均値
を補正用のデータとして用いないようにする)。このよ
うにすれば、単一な色で構成された画像に対して不自然
なホワイトバランス処理が施されるのを防ぐことができ
る。
Further, the average value obtained from the image data for one screen is compared with a preset threshold value to determine whether or not it is less than or equal to the threshold value. It is also possible to determine For example, when an average value as described above is obtained for an image of a forest or the like whose entire screen is covered with green, the obtained average value becomes a strong green value, which is used in (3) and (4) above. When the correction is performed using the formula, there is a disadvantage that the color is not green after the white balance processing although the image is originally green. To deal with this, if the calculated average value is too large, it is considered that the image is not composed of various colors but composed of a single color, and in that case, the white balance is The processing is not performed (when the above-mentioned parallel processing is performed, the average value is not used as the correction data). By doing so, it is possible to prevent an unnatural white balance process from being applied to an image composed of a single color.

【0033】[0033]

【発明の効果】以上説明したように、本発明によれば、
輝度情報と彩度情報とを別に扱える色空間、たとえば、
YUV色空間においてホワイトバランス処理を可能とし
たので、データ圧縮処理を行うためにYUV色空間に色
変換処理を行う画像処理装置においては、同一色空間で
ホワイトバランス処理とデータ圧縮処理が可能となり、
色変換を何回も繰り返す必要がなく、ホワイトバランス
処理とその後に続くデータ圧縮処理を効率よく行うこと
ができ、しかも、本発明のホワイトバランス処理は、き
わめて簡単な演算で行うことができる。
As described above, according to the present invention,
A color space that can handle luminance information and saturation information separately, for example,
Since the white balance processing can be performed in the YUV color space, the image processing apparatus that performs the color conversion processing in the YUV color space to perform the data compression processing can perform the white balance processing and the data compression processing in the same color space.
Since it is not necessary to repeat the color conversion many times, the white balance process and the subsequent data compression process can be efficiently performed, and the white balance process of the present invention can be performed by an extremely simple calculation.

【0034】また、たとえば、画像全体の平均色は無彩
色であるとの前提で、YUV色空間おけるホワイトバラ
ンス処理においては、空の青、木の緑、海のマリンブル
ーなどが画像の大部分を占める場合(支配色画存在する
場合)、RGB色空間におけるホワイトバランス処理に
比べ、不自然な補正が生じにくいという効果が得られ
る。これは、RGB色空間による処理では、ホワイトバ
ランス処理により輝度も変化してしまうが、本発明のY
UV色空間によるホワイトバランス処理では、輝度の変
化はないためであると考えられる。
Further, for example, assuming that the average color of the entire image is an achromatic color, in the white balance processing in the YUV color space, sky blue, tree green, sea marine blue, etc. are the majority of the image. Occupying (when the dominant color image exists), an effect that unnatural correction is unlikely to occur is obtained compared to the white balance processing in the RGB color space. This is because in the processing in the RGB color space, the brightness changes due to the white balance processing, but
It is considered that this is because the white balance processing in the UV color space does not change the luminance.

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

【図1】本発明の実施の形態の構成を説明するブロック
図。
FIG. 1 is a block diagram illustrating a configuration of an embodiment of the present invention.

【図2】本発明の実施の形態の処理を説明するフローチ
ャート。
FIG. 2 is a flowchart illustrating processing according to the embodiment of this invention.

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

1・・・画像入力部 2・・・色変換部 3・・・ホワイトバランス処理部 4・・・画像データ圧縮・展開処理部 5・・・逆色変換部 31・・・データ収集部 32・・・補正部 1 ... Image input unit 2 ... Color conversion unit 3 ... White balance processing unit 4 ... Image data compression / decompression processing unit 5 ... Reverse color conversion unit 31 ... Data collection unit 32. ..Correction section

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画像入力手段により入力された画像デー
タを、輝度情報と彩度情報とを別に扱える色空間の画像
データに変換する色変換工程、この色変換工程により変
換された色空間において人間の視覚特性を考慮した画像
データ圧縮を行う画像データ圧縮工程を少なくとも有す
る画像処理方法において、 前記入力された画像データにホワイトバランス処理を施
すホワイトバランス処理工程を有し、このホワイトバラ
ンス処理工程は、 前記色変換工程により変換された色空間における彩度情
報を基に、ホワイトバランス処理のために必要なパラメ
ータを抽出し、この抽出されたパラメータを用いて、ホ
ワイトバランスを施すための演算を行うことでホワイト
バランス処理を行うことを特徴とする画像処理方法。
1. A color conversion step of converting image data input by an image input means into image data of a color space capable of separately handling luminance information and saturation information, and a human being in the color space converted by this color conversion step. In an image processing method having at least an image data compression step of performing image data compression in consideration of visual characteristics, there is a white balance processing step of performing white balance processing on the input image data, and the white balance processing step is Extracting parameters necessary for white balance processing based on the saturation information in the color space converted by the color conversion step, and performing an operation for applying white balance using the extracted parameters. An image processing method characterized in that white balance processing is performed in.
【請求項2】 前記ホワイトバランス処理のために必要
なパラメータは、入力された1画面の画像データにおけ
る彩度の平均値であることを特徴とする請求項1記載の
画像処理方法。
2. The image processing method according to claim 1, wherein the parameter required for the white balance processing is an average value of saturation in the input image data of one screen.
【請求項3】 前記ホワイトバランスを施すための演算
は、ホワイトバランス処理前の画素の彩度情報から前記
彩度の平均値を引くことで実現することを特徴とする請
求項2記載の画像処理方法。
3. The image processing according to claim 2, wherein the calculation for applying the white balance is realized by subtracting the average value of the saturation from the saturation information of the pixel before the white balance processing. Method.
【請求項4】 前記平均値に対して予め設定したしきい
値を設定し、求められた平均値がしきい値以上の場合
は、その平均値はホワイトバランス処理のためのデータ
として用いないことを特徴とする請求項2または3記載
の画像処理方法。
4. A preset threshold value is set for the average value, and when the obtained average value is equal to or larger than the threshold value, the average value is not used as data for white balance processing. The image processing method according to claim 2 or 3, characterized in that.
【請求項5】 前記輝度情報と彩度情報とを別に扱える
色空間は、YUV色空間であることを特徴とする請求項
1、2、3、または4記載の画像処理方法。
5. The image processing method according to claim 1, wherein the color space that can separately handle the luminance information and the saturation information is a YUV color space.
【請求項6】 画像入力手段により入力された画像デー
タを、輝度情報と彩度情報とを別に扱える色空間の画像
データに変換する色変換手段、この色変換手段により変
換された色空間において人間の視覚特性を考慮した画像
データ圧縮を行う画像データ圧縮手段を少なくとも有す
る画像処理装置において、 前記入力された画像データにホワイトバランス処理を施
すホワイトバランス処理手段を有し、このホワイトバラ
ンス処理手段は、 前記色変換手段により変換された色空間における彩度情
報を基に、ホワイトバランス処理のために必要なパラメ
ータを抽出するデータ収集部と、このデータ収集部によ
り抽出されたパラメータを用いて、ホワイトバランスを
施すための演算を行うことでホワイトバランス処理を行
うことを特徴とする画像処理装置。
6. A color conversion unit for converting image data input by the image input unit into image data in a color space capable of separately handling luminance information and saturation information, and a human being in the color space converted by the color conversion unit. In an image processing device having at least image data compression means for performing image data compression in consideration of the visual characteristics of the image data, a white balance processing means for performing white balance processing on the input image data is provided, and the white balance processing means is Based on the saturation information in the color space converted by the color conversion means, a data collecting unit that extracts parameters necessary for white balance processing, and a white balance using the parameters extracted by this data collecting unit. Image processing characterized by performing white balance processing by performing calculations for applying Location.
【請求項7】 前記データ収集部は、入力された1画面
の画像データにおける彩度情報を収集して、収集した彩
度情報の平均値をホワイトバランス処理のためのパラメ
ータとして抽出することを特徴とする請求項6記載の画
像入力装置。
7. The data collecting unit collects saturation information in input image data of one screen and extracts an average value of the collected saturation information as a parameter for white balance processing. The image input device according to claim 6.
【請求項8】 前記補正部は、ホワイトバランス処理前
の画素の彩度情報から前記彩度の平均値を引くことで、
ホワイトバランスを施す処理を行うことを特徴とする請
求項7記載の画像処理装置。
8. The correction unit subtracts an average value of the saturation from saturation information of pixels before white balance processing,
The image processing apparatus according to claim 7, wherein the image processing apparatus performs a white balance process.
【請求項9】 前記平均値に対して予め設定したしきい
値を設定し、求められた平均値がしきい値以上の場合
は、その平均値はホワイトバランス処理のためのデータ
として用いないことを特徴とする請求項7または8記載
の画像処理装置。
9. A preset threshold value is set for the average value, and when the obtained average value is equal to or higher than the threshold value, the average value is not used as data for white balance processing. The image processing device according to claim 7, wherein
【請求項10】 前記輝度情報と彩度情報とを別に扱え
る色空間は、YUV色空間であることを特徴とする請求
項6、7、8、または9記載の画像処理装置。
10. The image processing apparatus according to claim 6, wherein the color space that can separately handle the luminance information and the saturation information is a YUV color space.
JP7287711A 1995-11-06 1995-11-06 Method and device for processing picture Pending JPH09130815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7287711A JPH09130815A (en) 1995-11-06 1995-11-06 Method and device for processing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7287711A JPH09130815A (en) 1995-11-06 1995-11-06 Method and device for processing picture

Publications (1)

Publication Number Publication Date
JPH09130815A true JPH09130815A (en) 1997-05-16

Family

ID=17720753

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7287711A Pending JPH09130815A (en) 1995-11-06 1995-11-06 Method and device for processing picture

Country Status (1)

Country Link
JP (1) JPH09130815A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor
KR100537509B1 (en) * 2002-07-20 2005-12-19 삼성전자주식회사 Method and apparatus for enhancing quality of color image adaptively
US7305126B2 (en) * 2005-01-17 2007-12-04 Hi-Touch Imaging Technologies Co., Ltd. Photo dazzle color temperature correction
KR100792443B1 (en) * 2001-04-06 2008-01-10 엘지전자 주식회사 Color compensation method for image communication device
US10979683B2 (en) 2018-01-30 2021-04-13 Clarion Co., Ltd. White balance adjustment device and white balance adjustment method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor
US7542076B2 (en) 1999-01-20 2009-06-02 Canon Kabushiki Kaisha Image sensing apparatus having a color interpolation unit and image processing method therefor
US7929026B2 (en) 1999-01-20 2011-04-19 Canon Kabushiki Kaisha Image sensing apparatus and image processing method thereof using color conversion and pseudo color removing
KR100792443B1 (en) * 2001-04-06 2008-01-10 엘지전자 주식회사 Color compensation method for image communication device
KR100537509B1 (en) * 2002-07-20 2005-12-19 삼성전자주식회사 Method and apparatus for enhancing quality of color image adaptively
US7305126B2 (en) * 2005-01-17 2007-12-04 Hi-Touch Imaging Technologies Co., Ltd. Photo dazzle color temperature correction
US10979683B2 (en) 2018-01-30 2021-04-13 Clarion Co., Ltd. White balance adjustment device and white balance adjustment method

Similar Documents

Publication Publication Date Title
US7358988B1 (en) Image signal processor for performing image processing appropriate for an output device and method therefor
EP1930853A1 (en) Image signal processing apparatus and image signal processing
US20050013506A1 (en) Image processing method and apparatus
US20070115369A1 (en) Tone-conversion device for image, program, electronic camera, and tone-conversion method
JP2000171304A (en) Detecting method of color illumination color temperature and device therefor
CN108230407B (en) Image processing method and device
CN113132696B (en) Image tone mapping method, image tone mapping device, electronic equipment and storage medium
JP2004310475A (en) Image processor, cellular phone for performing image processing, and image processing program
US20100295977A1 (en) Image processor and recording medium
CN102339461A (en) Method and equipment for enhancing image
JPH10198802A (en) Image processor, image processing method, and medium recording image processing program
JP4544308B2 (en) Image processing apparatus, imaging apparatus, method, and program
JP4241774B2 (en) Image processing apparatus, image processing method, and program
CN107592517A (en) A kind of method and device of colour of skin processing
JP3673092B2 (en) Image quality adjusting apparatus, image quality adjusting method, and recording medium recording image adjusting program
JPH09130815A (en) Method and device for processing picture
CN110493584B (en) High dynamic range scene visualization method and device and storage medium
EP3182691A1 (en) Method of encoding raw color coordinates provided by a camera representing colors of a scene having two different illuminations
JP4375580B2 (en) Image processing apparatus, image processing method, and image processing program
JPH1079885A (en) Method and processor for image processing
JP3807266B2 (en) Image processing device
JP2929983B2 (en) Color image processing equipment
JP2001045303A (en) Image thresholding method
KR101903428B1 (en) System and Method of Color Correction for Related Images
JP2001078235A (en) Method and system for image evaluation