JP2006020165A - Method of setting white balance - Google Patents
Method of setting white balance Download PDFInfo
- Publication number
- JP2006020165A JP2006020165A JP2004197189A JP2004197189A JP2006020165A JP 2006020165 A JP2006020165 A JP 2006020165A JP 2004197189 A JP2004197189 A JP 2004197189A JP 2004197189 A JP2004197189 A JP 2004197189A JP 2006020165 A JP2006020165 A JP 2006020165A
- Authority
- JP
- Japan
- Prior art keywords
- gain
- color
- white balance
- red
- blue
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Processing Of Color Television Signals (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
Description
本発明は、撮影装置のホワイトバランスの設定方法に関するものである。 The present invention relates to a method for setting a white balance of a photographing apparatus.
撮影装置、例えばデジタルカメラでは、CCDイメージセンサ等のイメージセンサから出力される撮影信号をデジタルの画像データに変換してメモリカード等の記録媒体に記録している。このようなデジタルカメラでは、カラーバランスの崩れをなくして被写体の色を正確に再現するために、ホワイトバランスを調整し、設定する機能を有している。カラーバランスの崩れは、イメージセンサの波長に対する感度の違いや、光源の色温度の違い等によって生じるものであり、ホワイトバランスの調整は、白あるいはグレーの被写体を撮影したときに、赤色,緑色,青色の各レベルが同じになるように、撮影信号あるいは画像データを増幅するゲインを調整することによって行われる。 In a photographing apparatus such as a digital camera, a photographing signal output from an image sensor such as a CCD image sensor is converted into digital image data and recorded on a recording medium such as a memory card. Such a digital camera has a function of adjusting and setting the white balance in order to accurately reproduce the color of the subject without losing the color balance. The loss of color balance is caused by the difference in sensitivity to the wavelength of the image sensor, the difference in the color temperature of the light source, etc. The white balance is adjusted when the white or gray subject is photographed. This is done by adjusting the gain for amplifying the photographic signal or image data so that the blue levels are the same.
デジタルカメラでは、ホワイトバランスの設定機能として、オートホワイトバランス、リセットホワイトバランス,プリセットホワイトバランスが知られている。オートホワイトバランスは、色温度の変化に追随して正しい色が常に表現されるようにゲインを自動調整し設定するものであり、オートトラッキングホワイトバランスとも呼ばれる。 In digital cameras, auto white balance, reset white balance, and preset white balance are known as white balance setting functions. The auto white balance is a method of automatically adjusting and setting a gain so that a correct color is always expressed following a change in color temperature, and is also called an auto tracking white balance.
リセットホワイトバランスは、ワンプッシュホワイトバランスとも呼ばれるものであり、撮影に利用する光源の下で白色や灰色の紙等の被写体を撮影した状態にして、ホワイトバランスの設定指示をすることで、その白色や灰色の紙等に色味が付かないように各色のゲインが決定される。そして、そのゲインの下で以降の撮影が行われる。プリセットホワイトバランスは、予め用意された光源の種類、例えば「昼光」,「白熱灯」,「蛍光灯」等から操作者が選択することにより、その選択された光源に応じて予め調整されたゲインを設定するものである。 Reset white balance is also called one-push white balance. When a subject such as white or gray paper is photographed under a light source used for shooting, the white balance is instructed. The gain of each color is determined so that no color is added to the paper or gray paper. Then, the subsequent shooting is performed under the gain. The preset white balance is adjusted in advance according to the selected light source by the operator selecting from the types of light sources prepared in advance, for example, “daylight”, “incandescent light”, “fluorescent light”, etc. The gain is set.
また、上記のような設定機能でホワイトバランスを設定した後に、手動で各色のゲイン自体を増減することにより、好みの色味とする機能を備えたデジタルカメラが特許文献1によって知られている。これによれば、撮影者が意図的にカラーバランスを崩して、画像全体に色味を付けて撮影することができる。なお、特許文献1で「プリセットWB」と称されている機能は、上記リセットホワイトバランスに相当するものである。 Further, Japanese Patent Laid-Open No. 2004-151867 discloses a digital camera having a function of setting a desired color tone by manually increasing / decreasing the gain of each color after setting the white balance with the setting function as described above. According to this, it is possible for the photographer to intentionally break the color balance and to photograph the entire image with a tint. Note that the function called “preset WB” in Patent Document 1 corresponds to the reset white balance.
ところで、上記のようなデジタルカンラで、好みの色味となるようにホワイトバランスのゲインを増減する場合には、前述のように、例えばプリセットホワイトバランスを用いて適切なホワイトバランスとなるようにゲインの設定を行った後に、赤色と青色のゲイン自体をそれぞれ増減し、所望の色味となるようにする。しかし、このような設定手法では、色味の確認しながらゲインの増減を行わなければならず、色味の設定操作に時間がかかるという問題があった。また、光源が変わった場合には、再度ゲインの調節を行う必要があった。さらに、色味を設定するのにゲイン自体を増減させているため、光源の色温度に応じてゲインを変化させるオートホワイトバランスでは、色味を付けた撮影を行うことができなかった。 By the way, when the white balance gain is increased / decreased so that the desired color tone can be obtained with the above-described digital cantilever, as described above, for example, the preset white balance is used to obtain an appropriate white balance. After the above setting is made, the red and blue gains themselves are increased or decreased to achieve a desired color. However, with such a setting method, there is a problem in that it is necessary to increase or decrease the gain while checking the color, and it takes time to perform the color setting operation. Further, when the light source is changed, it is necessary to adjust the gain again. Furthermore, since the gain itself is increased / decreased to set the color tone, the auto white balance in which the gain is changed according to the color temperature of the light source cannot perform shooting with a color tone.
本発明は、上記問題点を解消するためになされたもので、簡単に所望とした色味の設定を行うことができるホワイトバランスの設定方法を提供することを目的とする。 The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a white balance setting method capable of easily setting a desired color.
請求項1記載のホワイトバランスの設定方法では、外部からの操作で色毎に指定された係数と、各色について適正なホワイトバランスとするために決定されたゲインとを対応する色同士で乗算して得られるゲインをホワイトバランス用のゲインとして設定し、撮影画像の各色成分を個別に増幅するものである。 The white balance setting method according to claim 1, wherein a coefficient designated for each color by an external operation and a gain determined to obtain an appropriate white balance for each color are multiplied by corresponding colors. The gain obtained is set as a gain for white balance, and each color component of the captured image is individually amplified.
請求項2記載のホワイトバランスの設定方法では、特定の1色を除く他の色について外部からの操作で係数を指定し、前記特定の1色については適正なホワイトバランスとするために決定されたゲインをホワイトバランスのゲインとして設定するものである。 3. The white balance setting method according to claim 2, wherein a coefficient is designated by an external operation for other colors except for a specific color, and the white balance is determined to have an appropriate white balance for the specific color. The gain is set as a white balance gain.
適正なホワイトバランスとするために決定されたゲインに、色毎に指定された係数を乗算したものをホワイトバランス用のゲインとして用いるから、色味に応じた係数を指定しさえすれば所望の色味となるようにホワイトバランスのゲインが補正されるため、色味の設定を短時間で簡単にすることできる。また、適正なホワイトバランスとするために決定されたゲイン自体の増減によって色味を変化させないので、光源の色温度の変化に追随してホワイトバランスを適正とするゲインが変化しても、色味を再設定する必要がない。 Since the gain determined to achieve the appropriate white balance multiplied by the coefficient specified for each color is used as the gain for white balance, the desired color only needs to be specified according to the color. Since the white balance gain is corrected so as to achieve taste, it is possible to easily set the color in a short time. In addition, since the color tone is not changed by increasing or decreasing the gain itself determined to achieve an appropriate white balance, even if the gain that makes the white balance appropriate follows the change in the color temperature of the light source, the color tone changes. There is no need to reset.
本発明を実施したデジタルカメラの正面を図1に、背面を図2に示す。デジタルカメラ10の前面には、撮影レンズ11、ストロボ発光部12,光学ファインダ13の対物窓13a,レンズバリア14が設けられている。レンズバリア14は、撮影レンズ11、ストロボ発光部12を覆った閉じ位置と、図1に示すように、それらの前面から退避して撮影可能な開き位置との間でスライド自在にされている。
The front of the digital camera embodying the present invention is shown in FIG. 1, and the back is shown in FIG. On the front surface of the
撮影レンズ11の奧には、CCDイメージセンサ15(図3参照)が配されている。CCDイメージセンサ15で撮影された被写体画像は、デジタルカメラ10の背面に設けられたLCD16に、いわゆるスルー画像として表示される。また、背面には光学ファインダ13の接眼窓13bが設けられている。LCD16に表示されるスルー画像を観察する他に、光学ファインダ13を用いてフレーミングを行うことができる。
A CCD image sensor 15 (see FIG. 3) is arranged at the ridge of the taking
デジタルカメラ10の上面には、レリーズボタン18が設けられている。このレリーズボタン18は、2段階押しとなっており、レリーズボタン18を軽く押圧して半押し位置とすると、自動露出調整(AE)、自動焦点調整(AF)等の各種撮影条件の設定、すなわち撮影準備処理が行われる。撮影準備処理が完了すると、その設定はレリーズボタン18の押圧を解除するまで保持される。レリーズボタン18を半押し位置からさらに押し込んで全押し位置とすると、撮影準備処理で設定された撮影条件で静止画の撮影が行われる。この撮影で得られる1画面分の撮影信号は、画像データに変換されて、メモリカードスロット21に装着されたメモリカード22に記録される。
A
デジタルカメラ10の背面には、LCD16のほかに、電源のオン/オフ切替えを行う電源ボタン24、撮影レンズ11をズーミングするズーム操作ボタン25、各種モードを選択するモードボタン26、再生画像の選択やLCD16に表示される設定画面で各種の設定の変更などの操作を行う操作キー27が設けられている。
On the back of the
モードボタン26の操作によって選択される動作モードとしては、静止画撮影を行う撮影モード、メモリカード22に記録されている静止画像をLCD16に表示する再生モード、および各種設定を行うセットアップモードなどがある。これら各動作モードは、モードボタン26をスライド操作させることで、切替可能である。
The operation mode selected by operating the
撮影モードでの撮影時には、ホワイトバランスの設定モードとしては、リセットホワイトバランス(以下、RWBと称する)モードとオートホワイトバランス(以下、AWBと称する)モードとのいずれかを選択することができる。RWBモードを選択した場合には、そのモードの選択時に無彩色(白あるいはグレー)の被写体を撮影時の光源下で撮影しながらホワイトバランスの設定指示を行って、ホワイトバランスの設定を行う。また、AWBモードを選択した場合には、撮影中の被写体画像に基づいて自動的にホワイトバランスが設定され、光源の色温度の変化に追随して調整される。 At the time of shooting in the shooting mode, as a white balance setting mode, either a reset white balance (hereinafter referred to as RWB) mode or an auto white balance (hereinafter referred to as AWB) mode can be selected. When the RWB mode is selected, the white balance is set by instructing white balance setting while shooting an achromatic (white or gray) subject under the light source at the time of shooting. When the AWB mode is selected, the white balance is automatically set based on the subject image being shot and is adjusted following the change in the color temperature of the light source.
RWBモードとAWBモードとのいずれのモードにおいても、撮影する画像に色味を付けることができる。色味としては、各種のものが予め容易されている。例えば、昼光用に設定されたホワイトバランスの下で白熱球を光源とする撮影を行なったときのような暖色系色味や、逆に白熱灯用に設定されたホワイトバランスの下で昼光色の光源下で撮影を行なったときのような寒色系色味,色味を付けず色再現を正確にするための中性色味等が用意されている。 In any of the RWB mode and the AWB mode, it is possible to add color to the captured image. Various colors are easily prepared in advance. For example, warm colors such as when shooting with an incandescent bulb as the light source under the white balance set for daylight, and conversely the daylight color under the white balance set for incandescent lamps Cold colors like when shooting under a light source, neutral colors to make color reproduction accurate without coloring, etc. are available.
上記デジタルカメラ10の電気的構成を図3に示す。CPU30には、ROM31,RAM32,EEPROM33が接続されている。ROM31には、各種シーケンスを実行するためのプログラムやパラメータが書き込まれている。CPU30は、レリーズボタン18,ズーム操作ボタン25,モードボタン26,操作キー27の操作に応答し、ROM31のプログラムにしたがって各部を制御する。RAM31は、撮影シーケンスなどを実行する際に必要なデータを一時的に記憶するワークメモリとして利用される。EEPROM33には、ホワイトバランスの調整に固定的に用いる緑色適正WBゲインと、色味付けに用いる赤色色味係数α及び青色色味係数βとが予め記録されており、CPU30によって読み出される。
The electrical configuration of the
色味として、前述のように各種のものが用意されており、それらに対応する各色味係数α、βがEEPROM33に記録されている。例えば中性色味には、それぞれが値「1」の色味係数α、βが記録されている。また、暖色系色味には、「1」よりも大きい赤色色味係数αと「1」よりも小さい青色色味係数βが記録され、暖色系色味には、「1」よりも小さい赤色色味係数αと「1」よりも大きい青色色味係数βが記録されている。
Various colors are prepared as described above, and the respective color coefficients α and β corresponding to the colors are recorded in the
撮影レンズ11とCCDイメージセンサ15との間に絞り34が配されている。撮影レンズ11,絞り34には、レンズモータ36,アイリスモータ37が接続されている。これらのモータ36,37は、CPU30に接続されたモータドライバ38,39を介して制御される。レンズモータ36は、ズーム操作ボタン25の操作に連動して撮影レンズ11をワイド側あるいはテレ側にズーミングする他、撮影レンズ11のピント調節を行う。絞り34は、アイリスモータ37によって動作され、CCDイメージセンサ15への入射光の光強度を調節する。
A
CCDイメージセンサ15には、CPU30によって制御されるタイミングジェネレータ(TG)41からのタイミング信号(クロックパルス)に基づいて、電荷蓄積時間、すなわち電子シャッタのシャッタ速度の制御や、電荷の転送等の動作が行われ、撮影レンズ11を通して撮影した光学的な被写体画像を電気的な撮影信号に変換して出力する。
The
CCDイメージセンサ15から出力される撮影信号は、アナログ信号処理部42に入力される。このアナログ信号処理部42は、CDS(相関二重サンプリング)回路,アンプ,色分離回路などから構成されており、撮影信号に対してのノイズ除去、増幅を行った後に、赤色),緑色,青色の撮影信号に変換して出力する。A/D変換器43は、アナログ信号処理部42から出力される各色の撮影信号を、赤色,緑色,青色の画像データに変換する。アナログ信号処理部42及びA/D変換器43は、タイミングジェネレータ41からのタイミング信号が入力され、CCDイメージセンサ15の出力動作に同期して動作する。
An imaging signal output from the
A/D変換器43からの各色の画像データは、画像入力コントローラ45に送られる。画像入力コントローラ45は、バス46への画像データの入力を制御する。バス46には、CPU30や画像入力コントローラ45等が接続されており、このバス46に接続された各部は、バス46を介してCPU30に制御されるとともに、相互間でデータの授受を行うことが可能になっている。
The image data of each color from the A /
AF検出回路51は、撮影レンズ11のピント合せのために、画像入力コントローラ45からの画像データを用いて撮影中の画像のコントラストを検出し、そのコントラスト情報をCPU30に送る。CPU30は、コントラスト情報を参照し、撮影中の画像のコントラストが最大となるように、モータドライバ38を介してレンズモータ31を駆動することで、撮影レンズ11のピントを被写体に合致させる。
The
AE検出回路52は、画像入力コントローラ45からの画像データに基づいて、撮影中の被写体画像の被写体輝度の検出を行い、その結果を被写体輝度情報としてCPU30に送る。CPU30は、被写体輝度情報に基づいて適正となる絞り,電子シャッタのシャッタ速度を決定し、これらで撮影が行われるように制御する。
Based on the image data from the
WB設定回路53は、選択されているホワイトバランスの設定モードに応じた処理によって適正なホワイトバランスとするための赤色,青色適正WBゲインを求め、これに色味の補正を加えた赤色,青色補正WBゲインを算出する。このWB設定回路53によって得られる赤色,青色補正WBゲインと、EEPROM33から読み出された緑色適正WBゲインとが画像信号処理部54に設定される。なお、この例では、緑色については、ホワイトバランス用のゲインとして、予め決められた緑色適正WBゲインを用いているが、緑色の適正WBゲイン,補正WBゲインを算出したり、変化させてもよい。
The
画像信号処理部54は、画像データに対して、ホワイトバランスの補正処理,ガンマ補正を行う。ホワイトバランスの補正のための各色のゲインは、前述のWB設定回路53によって設定される。
The image
YC変換処理回路55は、画像データをメモリカード22に記録する際に、赤色,緑色,青色の画像データを輝度信号Yと色差信号Cr,Cbに対応する画像データに変換する。また、再生モード下では、YC処理回路55は、メモリカード22から読み出した画像データを赤色,緑色,青色の画像データに変換する。
The YC
圧縮伸長回路56は、画像データをメモリカード22に記録するためのデータ圧縮と、メモリカード22から読み出した圧縮された画像データの伸長を行う。メディアコントローラ57は、メモリカード22のデータの書き込み及び読み出しを制御する。レリーズボタン18の操作に応答して得られる静止画の画像データは、画像信号処理部54,YC変換処理回路55,圧縮伸長処理回路56でそれぞれ処理が施されてから、メディアコントローラ57に送られて、メモリカード22に書き込まれる。
The compression /
SDRAM58には、LCD16に表示すべき画像データが書き込まれる。撮影モード下におけるスルー画像表示の際には、画像入力コントローラ45から入力される画像データが画像信号処理回路54で処理された後にSDRAM58に次々に書き込まれ、これをLCDドライバ59が読み出してLCD16を駆動する。
In the
また、再生モード下では、メモリカード22から読み出され、圧縮伸長部24で伸長処理が行われた後に、YC変換処理回路55で変換処理された各色の画像データがSDRAM58に書き込まれ、これがLCDドライバ59によって繰り返し読み出されることにより、メモリカード22に記録されている画像がLCD16に表示される。
In the reproduction mode, after being read from the
図4は、WB設定回路53及び画像信号処理部54のホワイトバランスに関連した機能ブロックを示すものである。WB設定回路53の積算手段53a,減算手段53b,ゲイン算出手段53cは、RWBモード時に適正WBゲインを算出し、AWBゲイン決定手段53dは、オートホワイトバランスモード下で適正WBゲインを算出する。
FIG. 4 shows functional blocks related to white balance of the
積算手段53aは、RWBモード時の設定指示に応答して、緑色積算値Gi,赤色積算値Ri,青色積算値Biと、緑色OB積算値Gob,赤色OB積算値Rob,青色OB積算値Bobとを求める。各色積算値Gi,Ri,Biは、被写体画像に対応する画像データ、すなわちCCDイメージセンサ15の有効受光面内の画素に対応して得られる画像データを色毎に所定個数ずつ積算したものである。
In response to the setting instruction in the RWB mode, the integrating
一方の各色OB積算値Gob,Rob,Bobは、CCDイメージセンサ15のオプティカルブラック、すなわち暗電流補正用に遮光された受光素子に対応して得られる画像データを色毎に所定個数ずつ積算したものである。なお、各色積算値と各色OB積算値として、所定個数の画像データを積算した積算値を用いているが、積算平均値を用いてもよい。
On the other hand, each color OB integrated value Gob, Rob, Bob is obtained by integrating a predetermined number of image data obtained for the optical black of the
減算手段53bは、次の式(1)〜(3)に示すように、各色積算値Gi,Ri,
Biと、各色OB積算値Gob,Rob,Bobとを対応する色同士で減算することにより、各色の減算値Gs,Rs,Bsを求める。
Gs=Gi−Gob・・・(1)
Rs=Ri−Rob・・・(2)
Bs=Bi−Bob・・・(3)
As shown in the following equations (1) to (3), the subtracting means 53b is provided with each color integrated value Gi, Ri,
By subtracting Bi and each color OB integrated value Gob, Rob, Bob between corresponding colors, subtracted values Gs, Rs, Bs of each color are obtained.
Gs = Gi-Gob (1)
Rs = Ri-Rob (2)
Bs = Bi-Bob (3)
ゲイン算出手段53cは、減算手段53bからの各色の減算値Gs,Rs,Bsと、CPU30によってEEPROM33から読み出されて与えられる緑色適正WBゲインGg0とを用いて、次の式(4),(5)によって赤色適正WBゲインRg0,青色適正WBゲインBg0をそれぞれ求める。
Rg1=Gg0×Gs/Rs・・・(4)
Bg1=Gg0×Gs/Bs・・・(5)
The gain calculating means 53c uses the subtracted values Gs, Rs, Bs of the respective colors from the subtracting means 53b and the green proper WB gain Gg0 read from the
Rg1 = Gg0 × Gs / Rs (4)
Bg1 = Gg0 × Gs / Bs (5)
白または灰色の被写体を撮影して、上記のようにして求められる赤色適正WBゲインRg0と、青色適正WBゲインBg0と、緑色適正WBゲインGg0との組み合せは、適切なホワイトバランス、すなわち白色や灰色に色味が付かないようにすることができるホワイトバランス用の組み合せとなる。 A combination of the appropriate red balance WB gain Rg0, blue proper WB gain Bg0, and green proper WB gain Gg0 obtained by photographing a white or gray subject and obtained as described above is an appropriate white balance, that is, white or gray. It is a combination for white balance that can prevent the color from being added to the color.
一方、AWBゲイン決定手段53dは、AWBモード下において、適当な手法により、撮影で得られる各色の画像データに基づき、EEPROM33から読み出された緑色適正WBゲインGg0との組み合わせで、適切なホワイトバランスとなる赤色適正WBゲインRg0と、青色適正WBゲインBg0とを決定する。赤色適正WBゲインRg0と、青色適正WBゲインBg0の算出は、光源の色温度が変化する毎に行われる。
On the other hand, the AWB
なお、いずれのモードにおいても、適正WBゲインの決定の手法としては、種々のものを採用するすることができる。 In any mode, various methods can be adopted as a method for determining an appropriate WB gain.
ゲイン補正手段53eは、次の式(6),(7)に示すように、RWBモードではゲイン算出手段53dからの赤色適正WBゲインRg0と青色適正WBゲインBg0に、またAWBモードでは、AWBゲイン決定手段53dからの赤色適正WBゲインRg0と青色適正WBゲインBg0に、赤色,青色色味係数α,βを対応する色同士で乗算し、赤色補正WBゲインRg1と、青色補正WBゲインBg1とを算出する。色味係数α,βは、操作キー27等の操作で選択された色味に応じたものが、CPU30によってEEPROM33から読み出されてWB設定回路53に与えられる。
Rg1=α×Rg0・・・(6)
Bg1=β×Bg0・・・(7)
As shown in the following formulas (6) and (7), the
Rg1 = α × Rg0 (6)
Bg1 = β × Bg0 (7)
赤色補正WBゲインRg1,青色補正WBゲインBg1、緑色適正WBゲインGg0は、画像信号処理部54にそれぞれ送られる。
The red correction WB gain Rg1, the blue correction WB gain Bg1, and the green proper WB gain Gg0 are sent to the image
画像信号処理部54の緑色乗算手段54aは、緑色画像データに緑色適正WBゲインGg0を乗算する。また、赤色乗算器54bは、赤色画像データに赤色補正WBゲインRg1を乗算し、青色乗算器54cは、青色画像データに青色補正WBゲインBg1を乗算する。各色乗算器54a〜54cからの乗算結果が、ホワイトバランスが補正されるとともに色味が付けられた画像データとして出力される。
The
次に、上記構成の作用について、図5を参照しながら説明する。撮影する場合には、まずRWBモードまたはAWBモードを選択する。例えば、RWBモードを選択した場合には、白色または灰色の被写体、例えばグレーチャートを撮影した状態にし、さらに操作キー27等を操作して色味を選択指定してから、ホワイトバランスの設定指示をする。
Next, the operation of the above configuration will be described with reference to FIG. When shooting, first select the RWB mode or the AWB mode. For example, when the RWB mode is selected, a white or gray subject, for example, a gray chart is photographed, and the
RWBモードの選択後に設定指示がされると、CCDイメージセンサ15の撮影によって得られる撮影信号は、アナログ信号処理回路42,A/変換器43を介して赤色,緑色,青色の画像データに変換された後に、画像入力コントローラ45を介してWB設定回路53に送られる。このときに、CCDイメージセンサ15から出力される撮影信号には、オプティカルブラックの受光素子に対応する撮影信号も含まれており、その撮影信号についても赤色,緑色,青色の撮影信号に変換された後に、A/D変換器43で赤色,緑色,青色の画像データに変換されて、WB設定回路53に送られる。
When a setting instruction is given after the selection of the RWB mode, a photographing signal obtained by photographing with the
また、設定指示に応答して、CPU30によって緑色適正WBゲインGg0と、選択された色味に応じた各色味係数α,βとがEEPROM33から読み出されて、WB設定回路53に送られる。
Further, in response to the setting instruction, the
WB設定回路53入力された画像データは、入力タイミング等に基づきその種類が判別されて、WB設定回路53によって色毎に所定個数ずつ積算される。これにより、緑色積算値Gi,赤色積算値Ri,青色積算値Bi、緑色OB積算値Gob,赤色OB積算値Rob,青色OB積算値Bobがそれぞれ求められる。
The type of image data input to the
次に、各色積算値Gi,Ri,Bi、各色OB積算値Gob,Rob,Bobを用いて、上記式(1)〜(3)に示されるように、対応する色同士で積算値からOB積算値を減算した各色の減算値Gs,Rs,Bsが算出される。この後に、減算値Gs,Rs,Bsと、緑色適正WBゲインGg0とを用いて、上記式(4),(5)により、赤色適正WBゲインRg0と、青色適正WBゲインBg0とが求められる。 Next, using each color integrated value Gi, Ri, Bi and each color OB integrated value Gob, Rob, Bob, as shown in the above formulas (1) to (3), OB integration is performed from the integrated value between corresponding colors. Subtracted values Gs, Rs, and Bs for each color obtained by subtracting the values are calculated. Thereafter, the red proper WB gain Rg0 and the blue proper WB gain Bg0 are obtained by the above formulas (4) and (5) using the subtraction values Gs, Rs, Bs and the green proper WB gain Gg0.
さらに、上記式(6),(7)により、赤色適正WBゲインRg0に赤色色味係数αが乗算され、青色適正WBゲインBg0に色味用係数βが乗算されて、赤色補正WBゲインRg1,青色補正WBゲインBg1がそれぞれ算出される。そして、赤色補正WBゲインRg1,青色補正WBゲインBg1が、緑色適正WBゲインGg0とともに、画像信号処理部54に設定され、これ以降の撮影では赤色補正WBゲインRg1,青色補正WBゲインBg1、緑色適正WBゲインGg0とが用いられてホワイトバランスの補正が行われる。
Further, according to the above formulas (6) and (7), the red appropriate WB gain Rg0 is multiplied by the red color coefficient α, the blue appropriate WB gain Bg0 is multiplied by the color coefficient β, and the red correction WB gain Rg1, Blue correction WB gain Bg1 is calculated. Then, the red correction WB gain Rg1 and the blue correction WB gain Bg1 are set in the image
したがって、RWBモードでの設定指示後では、撮影で得られる各赤色画像データは、画像信号処理部54で上記のように設定されている赤色補正WBゲインRg1が乗算され、青色画像データには青色補正WBゲインBg1が乗算される。また、緑色画像データには、緑色用ホワイトバランスゲインGg0が乗算される。そして、このようにして得られる画像データに基づいてスルー画像が表示される。また、レリーズボタン18を押圧して静止画の撮影を行えば、同様にホワイトバランスの処理がされた各色画像データがγ補正処理が施されてから、YC変換処理回路55,圧縮伸長処理回路56での処理が施されて、メモリカード22に書き込まれる。
Therefore, after the setting instruction in the RWB mode, each red image data obtained by shooting is multiplied by the red correction WB gain Rg1 set as described above by the image
例えば、中性色味を選択した場合には、それぞれ値「1」の各色味係数α,βがEEPROM33から読み出され、これらが赤色,青色の各適正WBゲインRg0,Bg0に乗算されることにより、赤色補正WBゲインRg1,青色補正ゲインBg1が算出される。このため、結果的には各色の適正WBゲインでホワイトバランスの補正を行ったことになるので、撮影された被写体画像に色味が付くことはなく、被写体の色が正確に再現される。
For example, when the neutral color is selected, the respective color coefficients α and β having the value “1” are read from the
一方、例えば暖色系色味を選択した場合には、「1」よりも大きい赤色色味係数αと、「1」よりも小さい青色色味係数βとがEEPROM33から読み出され、これらを用いて赤色補正WBゲインRg1,青色補正ゲインBg1が算出される。そして、これらの赤色補正WBゲインRg1,青色補正ゲインBg1と、緑色適正WBゲインGg0を用いてホワイトバランスの補正が行われるから、撮影される被写体画像は、青色成分が弱くされるとともに赤色成分が強くされて、全体的に黄色味及び赤色味を持つ画像となる。
On the other hand, for example, when a warm color is selected, a red color coefficient α larger than “1” and a blue color coefficient β smaller than “1” are read from the
他方、AWBモードを選択した場合にも、色味を選択するが、この色味の選択はAWBモード中では任意のタイミングで変更することができる。AWBモードの場合には、赤色適正WBゲインRg0,青色適正WBゲインBg0が撮影中に得られる各色の画像データから決定され、赤色,青色の適正WBゲインRg0,Bg0に選択された色味の色味係数α,βが乗算されて、赤色補正WBゲインRg1,青色補正ゲインBg1が算出され、画像信号処理部54に設定される。
On the other hand, even when the AWB mode is selected, the color is selected, but the selection of the color can be changed at any timing in the AWB mode. In the case of the AWB mode, the red proper WB gain Rg0 and the blue proper WB gain Bg0 are determined from the image data of each color obtained during shooting, and the colors of the colors selected as the red and blue proper WB gains Rg0 and Bg0. The red color correction WB gain Rg1 and the blue color correction gain Bg1 are calculated by multiplying the taste coefficients α and β and set in the image
以降、RWBモードと同様にして画像データのホワイトバランスの補正が行われ、選択された色味で被写体画像を撮影することができる。また、このAWBモードでは、光源の色温度が変化すると、その変化に応答して赤色適正WBゲインRg0,青色適正WBゲインBg0が算出され、これらに選択されている色味の色味係数α,βを乗算した赤色補正WBゲインRg1,青色補正ゲインBg1が算出される。そして、赤色補正WBゲインRg1,青色補正ゲインBg1と、緑色適正WBゲインGg0が画像信号処理回路54に再設定される。これにより、光源の色温度の変化に応じてホワイトバランスが再調整されても、色味が保持される。
Thereafter, the white balance of the image data is corrected in the same manner as in the RWB mode, and the subject image can be taken with the selected color. Further, in this AWB mode, when the color temperature of the light source changes, the red proper WB gain Rg0 and the blue proper WB gain Bg0 are calculated in response to the change, and the color coefficients α, A red correction WB gain Rg1 and a blue correction gain Bg1 multiplied by β are calculated. Then, the red correction WB gain Rg1, the blue correction gain Bg1, and the green proper WB gain Gg0 are reset in the image
上記のように色味係数α,βで適正WBゲインを増減し、得られる補正WBゲインをホワイトバランス用のゲインとしているので、操作者は簡単に色味を付けたホワイトバランスの設定を行うことができる。また、オートホワイトバランスでも色味を付けた撮影が可能になる。 As described above, the appropriate WB gain is increased / decreased by the color coefficients α and β, and the obtained corrected WB gain is used as the gain for white balance. Therefore, the operator can easily set the white balance with the tint. Can do. In addition, it is possible to shoot with a tint even with auto white balance.
なお、RWBモード下において、赤色適正WBゲイン,青色適正WBゲインを次に設定指示が行われるまで保持しておき、設定指示の前に色味選択が変更されたときに、その保持しておいた赤色適正WBゲイン,青色適正WBゲインを用いて、赤色補正WBゲイン,青色補正WBゲインを再算出するようにしてもよい。また、光源の種類をユーザが設定し、その設定された光源に対して予め用意された適正WBゲインを用いるプリセットモードにも本発明を利用することができる。 In the RWB mode, the red proper WB gain and the blue proper WB gain are held until the next setting instruction is made, and are held when the color selection is changed before the setting instruction. The red correct WB gain and the blue correct WB gain may be recalculated using the red correct WB gain and blue correct WB gain. The present invention can also be used in a preset mode in which the user sets the type of light source and uses an appropriate WB gain prepared in advance for the set light source.
上記実施形態では、デジタルカメラを例に挙げて説明を行ったが、本発明は、デジタルカメラに限定されるものではなく、ビデオカメラ等の各種撮影装置,カメラ付き携帯電話等にも適用することができる。また、本発明では、複数の撮影装置に対して色味を付けた撮影設定を行う場合に、各撮影装置をリセットホワイトバランスでホワイトバランスを調整した後に、それぞれの撮影装置に色味係数を設定するようにすれば、各撮影装置に一律に色味係数を設定するだけの作業とすることができ、色味の設定作業を簡単にすることができる。。 In the above embodiment, a digital camera has been described as an example. However, the present invention is not limited to a digital camera, and may be applied to various photographing devices such as a video camera, a mobile phone with a camera, and the like. Can do. In addition, in the present invention, when performing shooting setting with a tint for a plurality of photographing devices, after adjusting the white balance with the reset white balance for each photographing device, a color coefficient is set for each photographing device. If it does, it can be set as the operation | work which only sets a color coefficient uniformly to each imaging device, and the color setting operation | work can be simplified. .
10 デジタルカメラ
15 CCDイメージセンサ
53 WB設定回路
54 画像信号処理回路
10
Claims (2)
外部からの操作で色毎に指定された係数と、各色について適正なホワイトバランスとするために決定されたゲインとを対応する色同士で乗算して得られるゲインをホワイトバランス用のゲインとして設定し、撮影画像の各色成分を個別に増幅することを特徴とするホワイトバランスの設定方法。 In a white balance setting method for individually amplifying each color component of a captured image obtained from an image sensor,
The gain obtained by multiplying the coefficient specified for each color by an external operation and the gain determined to obtain an appropriate white balance for each color with the corresponding colors is set as the gain for white balance. A white balance setting method characterized by amplifying each color component of a photographed image individually.
A coefficient is designated by an external operation for other colors except for a specific color, and a gain determined to obtain an appropriate white balance for the specific color is set as a white balance gain. The white balance setting method according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004197189A JP2006020165A (en) | 2004-07-02 | 2004-07-02 | Method of setting white balance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004197189A JP2006020165A (en) | 2004-07-02 | 2004-07-02 | Method of setting white balance |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006020165A true JP2006020165A (en) | 2006-01-19 |
Family
ID=35793973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004197189A Pending JP2006020165A (en) | 2004-07-02 | 2004-07-02 | Method of setting white balance |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006020165A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008028949A (en) * | 2006-07-25 | 2008-02-07 | Canon Inc | Imaging apparatus and imaging method |
JP2011169998A (en) * | 2010-02-17 | 2011-09-01 | Ricoh Co Ltd | Imaging device, imaging method and computer readable recording medium with program for implementing the imaging method recorded thereon |
JP2015015586A (en) * | 2013-07-04 | 2015-01-22 | オリンパスイメージング株式会社 | Image processing apparatus, imaging apparatus, and image processing program |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07210656A (en) * | 1994-01-21 | 1995-08-11 | Canon Inc | Image processor and copying device |
JP2001333432A (en) * | 2000-03-15 | 2001-11-30 | Asahi Optical Co Ltd | Electronic still camera |
JP2002218495A (en) * | 2001-01-15 | 2002-08-02 | Fuji Photo Film Co Ltd | White balance control method and electronic camera |
JP2002315019A (en) * | 2001-04-11 | 2002-10-25 | Fuji Photo Film Co Ltd | Printer system, white balance control method therefor, electronic camera and printer |
JP2003209855A (en) * | 2002-01-11 | 2003-07-25 | Fuji Photo Film Co Ltd | Image observing apparatus |
JP2003259392A (en) * | 2002-03-05 | 2003-09-12 | Fuji Photo Film Co Ltd | White balance correction method |
-
2004
- 2004-07-02 JP JP2004197189A patent/JP2006020165A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07210656A (en) * | 1994-01-21 | 1995-08-11 | Canon Inc | Image processor and copying device |
JP2001333432A (en) * | 2000-03-15 | 2001-11-30 | Asahi Optical Co Ltd | Electronic still camera |
JP2002218495A (en) * | 2001-01-15 | 2002-08-02 | Fuji Photo Film Co Ltd | White balance control method and electronic camera |
JP2002315019A (en) * | 2001-04-11 | 2002-10-25 | Fuji Photo Film Co Ltd | Printer system, white balance control method therefor, electronic camera and printer |
JP2003209855A (en) * | 2002-01-11 | 2003-07-25 | Fuji Photo Film Co Ltd | Image observing apparatus |
JP2003259392A (en) * | 2002-03-05 | 2003-09-12 | Fuji Photo Film Co Ltd | White balance correction method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008028949A (en) * | 2006-07-25 | 2008-02-07 | Canon Inc | Imaging apparatus and imaging method |
JP2011169998A (en) * | 2010-02-17 | 2011-09-01 | Ricoh Co Ltd | Imaging device, imaging method and computer readable recording medium with program for implementing the imaging method recorded thereon |
JP2015015586A (en) * | 2013-07-04 | 2015-01-22 | オリンパスイメージング株式会社 | Image processing apparatus, imaging apparatus, and image processing program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4679685B2 (en) | Digital camera composition auxiliary frame selection method and digital camera | |
JP5123137B2 (en) | Imaging apparatus and imaging method | |
JP5253000B2 (en) | Imaging device | |
JP2017022610A (en) | Image processing apparatus and image processing method | |
JP4796007B2 (en) | Imaging device | |
JP5211926B2 (en) | Digital camera, image processing apparatus, and image processing program | |
JP5277863B2 (en) | Imaging apparatus and imaging method | |
JP2001189890A (en) | Digital camera | |
JP2008160190A (en) | Imaging apparatus, and method thereof | |
JP2007027984A (en) | Photographic apparatus and control method thereof | |
JP2009033386A (en) | Photographing device and method | |
JP5310331B2 (en) | Imaging apparatus and imaging method | |
US8041206B2 (en) | Imaging apparatus and method for controlling flash emission | |
JP2006080960A (en) | Image pickup device and method | |
JP2008005248A (en) | Imaging apparatus | |
JP2006020165A (en) | Method of setting white balance | |
JP6300514B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
JP2007074201A (en) | Photographing apparatus | |
JP2006295774A (en) | Imaging apparatus, control method thereof, and image processing program for digital camera | |
JP2005260738A (en) | Imaging apparatus and its exposure control method | |
JP4227030B2 (en) | Camera and camera control method | |
JP2006173860A (en) | Electronic camera | |
JP3903095B2 (en) | White balance control method and digital camera | |
JP2005020341A (en) | Exposure control method and exposure controller | |
KR101323731B1 (en) | Method for display exposure area |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061225 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070207 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080414 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080709 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080905 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081203 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090129 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090225 |