JP4860512B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP4860512B2
JP4860512B2 JP2007063892A JP2007063892A JP4860512B2 JP 4860512 B2 JP4860512 B2 JP 4860512B2 JP 2007063892 A JP2007063892 A JP 2007063892A JP 2007063892 A JP2007063892 A JP 2007063892A JP 4860512 B2 JP4860512 B2 JP 4860512B2
Authority
JP
Japan
Prior art keywords
color
white balance
matrix
path length
underwater
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.)
Active
Application number
JP2007063892A
Other languages
Japanese (ja)
Other versions
JP2008227951A (en
Inventor
川 芳 邦 市
Original Assignee
株式会社市川ソフトラボラトリー
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 株式会社市川ソフトラボラトリー filed Critical 株式会社市川ソフトラボラトリー
Priority to JP2007063892A priority Critical patent/JP4860512B2/en
Publication of JP2008227951A publication Critical patent/JP2008227951A/en
Application granted granted Critical
Publication of JP4860512B2 publication Critical patent/JP4860512B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)

Description

本発明は、ホワイトバランスを調整可能な画像処理装置に関し、特に水中撮影に適したホワイトバランス調整と水中特有の色の消失を復元する技術に関する。   The present invention relates to an image processing apparatus capable of adjusting white balance, and more particularly, to a technique for white balance adjustment suitable for underwater photography and a technique for restoring disappearance of colors peculiar to underwater.

近年のデジタルカメラや家庭用小型ビデオカメラの普及に伴って、スノーケリングやスクーバダイビングの際に、水中にカメラを持ち込んで、水中撮影を楽しむ人が増えてきた。   With the spread of digital cameras and small home video cameras in recent years, an increasing number of people bring their cameras underwater and enjoy underwater shooting during snorkeling and scuba diving.

しかしながら、水中で撮影を行うと、そのままでは青みの強い不自然な色合いの画像が得られる。その理由は、水中に降り注ぐ自然光は、水深に応じて色温度が高くなるためである。   However, when photographing underwater, an image with an unnatural hue with strong bluishness can be obtained as it is. The reason for this is that the natural temperature falling into the water has a higher color temperature depending on the water depth.

例えば、5m程度の水深でも、水中を通過した自然光は、色温度が10000K(ケルビン)にも達する。また、被写体とカメラの間の距離が長い場合、水中を通過する距離も長くなるため、撮影画像はより青みが強くなる。   For example, even at a water depth of about 5 m, the natural light that has passed through the water reaches a color temperature of 10,000 K (Kelvin). Further, when the distance between the subject and the camera is long, the distance passing through the water is also long, so that the photographed image becomes more bluish.

このような青みの強い撮影画像は、水中での撮影だけでなく、水面付近から水中を撮影するスノーケリングを行う際にも問題となる。例えば、3m程度の水深の魚や珊瑚等を水面付近から撮影する場合、太陽光は3mの水中を通過して被写体で反射し、さらに3mの水中を通過してカメラに入射することになり、往復で6mの水中を通過することになるためである。   Such a captured image with a strong bluish color becomes a problem not only when shooting underwater, but also when performing snorkeling for shooting underwater from near the water surface. For example, when shooting a fish or a carp with a depth of about 3 m from the vicinity of the water surface, the sunlight passes through the water of 3 m and is reflected by the subject, and further passes through the water of 3 m and enters the camera. This is because it will pass through 6m of water.

一方、人間は、光に対する順応能力が高く、目が慣れてしまうため、撮影画像と目視との色合いのギャップが大きくなる。   On the other hand, since humans have high adaptability to light and become accustomed to eyes, a gap in hue between a captured image and visual observation becomes large.

現在市販されているデジタルカメラやビデオカメラは、水中のような特殊な光源下での撮影を前提としていないため、水中撮影時にはオートホワイトバランスも正常に機能しない。このため、撮影者は、オレンジやマゼンダ系の光学フィルタをレンズに装着して撮影を行い、正常なホワイトバランスを得ようとしている。ところが、フィルタは、水中での交換が容易ではなく、水深によって刻々と変わる水中光には対応できない。   Since digital cameras and video cameras that are currently on the market do not assume shooting under special light sources such as underwater, auto white balance does not function properly during underwater shooting. For this reason, a photographer attempts to obtain a normal white balance by shooting with an orange or magenta optical filter attached to the lens. However, the filter is not easy to exchange in water and cannot handle underwater light that changes every moment depending on the water depth.

高級カメラの一部には、マニュアルでホワイトバランスを調整できるものがある(特許文献1参照)。このようなカメラを用いれば、調整の手間はかかるものの、正常なホワイトバランスを得ることができる。あるいは、カメラ側の機能としてホワイトバランスを調整できない場合でも、撮影後にフォトレタッチソフトやRAW現像ソフト、ビデオ編集装置(ソフト)などを用いてホワイトバランスを調整することも可能である。
特開2006-157316号公報
Some high-end cameras can manually adjust the white balance (see Patent Document 1). If such a camera is used, normal white balance can be obtained although it takes time for adjustment. Alternatively, even when the white balance cannot be adjusted as a function on the camera side, it is possible to adjust the white balance using photo retouching software, RAW development software, video editing apparatus (software), or the like after shooting.
JP 2006-157316 A

ホワイトバランスの調整によって、無彩色の被写体の画像を無彩色に調整することはできるが、これだけでは正常な色再現は望めない。なせならば、水中に降り注ぐ光のスペクトルは、地上とは大きく異なり、演色性が極端に低いためである。これは、長波長の光が減少するために起きる現象で、ダイバーの間では「水中での色の消失」と呼ばれて理解されている。つまり、正常なホワイトバランスを得た場合でも、色が薄くなったり(彩度が低下したり)、赤系統の色が暗くなったり(明度が低下したり)、色相が変化してしまう。   By adjusting the white balance, an image of an achromatic subject can be adjusted to an achromatic color, but normal color reproduction cannot be expected with this alone. If so, the spectrum of light falling into the water is very different from that of the ground, and the color rendering properties are extremely low. This is a phenomenon caused by a decrease in long-wavelength light and is understood by divers as “disappearance of color in water”. That is, even when a normal white balance is obtained, the color becomes light (saturation decreases), the red color becomes dark (lightness decreases), and the hue changes.

このため、水中にビデオライトやストロボなどの光源を持ち込む撮影者もいるが、光源を水中に持ち込むことには数多くのデメリットが存在する。   For this reason, some photographers bring light sources such as video lights and strobes into the water, but there are many disadvantages to bringing light sources into the water.

まずは、撮影機材の大きさや重量が増して、水中での行動が制限されたり、不自由になる可能性がある。また、方向性の強い光を照射するため、影が強く現れる。さらに、画角の広い撮影を行う場合、通常は広角レンズを用いるが、このような場合、光源の光を広範囲に照射し、かつ被写体距離も長く設定するため、光源から被写体、そして被写体からカメラまでの距離が長くなり、やはり色の変化が生じてしまう。より具体的には、光源に近い場所と遠い場所とで輝度差が大きくなり、広い範囲で適正露出を得ることが困難になる。また、光源としてストロボを用いると、充電に時間がかかるため、撮影間隔が長くなるという問題もある。   First of all, the size and weight of the photographic equipment may increase, which may limit or become inconvenient in water. In addition, a shadow appears strongly because it emits light with strong directionality. Furthermore, when shooting with a wide angle of view, a wide-angle lens is usually used. In such a case, the light from the light source is radiated over a wide range and the subject distance is set to be long. The distance to the time becomes longer, and the color change still occurs. More specifically, the difference in luminance between a place close to the light source and a place far away from the light source increases, making it difficult to obtain appropriate exposure over a wide range. In addition, when a strobe is used as a light source, it takes a long time to charge, so there is a problem that the photographing interval becomes long.

以上の理由により、光源を持ち込んでの水中撮影は、撮影距離の短いマクロ撮影に限定されるのが実情である。   For the above reasons, underwater photography with a light source is actually limited to macro photography with a short photography distance.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、水中撮影時に精度の高い色復元処理を簡易な手法で実現可能な画像処理装置を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing apparatus capable of realizing a highly accurate color restoration process during underwater shooting with a simple technique.

本発明の一態様によれば、被写体光の水中光路長を算出する水中光路長算出手段と、算出された水中光路長に基づいて色復元情報を生成する色復元情報生成手段と、前記色復元情報とホワイトバランスゲインとに基づいて、入力されたピクセル値を補正するピクセル値補正手段と、を備えることを特徴とする画像処理装置が提供される。   According to an aspect of the present invention, an underwater optical path length calculation unit that calculates an underwater optical path length of subject light, a color restoration information generation unit that generates color restoration information based on the calculated underwater optical path length, and the color restoration There is provided an image processing apparatus comprising: a pixel value correcting unit that corrects an input pixel value based on information and a white balance gain.

また、本発明の一態様によれば、被写体光の水中光路長を算出する水中光路長算出手段と、算出された水中光路長に基づいて色復元マトリックスを生成する色復元マトリックス生成手段と、前記色復元マトリックスとホワイトバランスゲインとに基づいて、入力されたピクセル値を補正するマトリックス乗算手段と、を備えることを特徴とする画像処理装置が提供される。   Further, according to one aspect of the present invention, an underwater optical path length calculating unit that calculates an underwater optical path length of subject light, a color recovery matrix generating unit that generates a color recovery matrix based on the calculated underwater optical path length, There is provided an image processing apparatus comprising matrix multiplication means for correcting an input pixel value based on a color restoration matrix and a white balance gain.

また、本発明の一態様によれば、水中撮影時の被写体周辺のホワイトバランスゲインを設定するホワイトバランス設定手段と、設定された前記ホワイトバランスゲインに基づいて色復元マトリックスを生成する色復元マトリックス生成手段と、前記色復元マトリックスと前記ホワイトバランスゲインとに基づいて、入力されたピクセル値を補正するマトリックス乗算手段と、を備えることを特徴とする画像処理装置が提供される。   According to another aspect of the invention, a white balance setting unit that sets a white balance gain around a subject during underwater shooting, and a color restoration matrix generation that generates a color restoration matrix based on the set white balance gain. There is provided an image processing apparatus comprising: means; and matrix multiplication means for correcting an input pixel value based on the color restoration matrix and the white balance gain.

本発明によれば、水中撮影時に精度の高い色復元処理を簡易な手法で行うことができる。   According to the present invention, highly accurate color restoration processing can be performed by a simple method during underwater photography.

以下、図面を参照しながら、本発明の一実施形態について説明する。   An embodiment of the present invention will be described below with reference to the drawings.

(第1の実施形態)
図1は本発明の第1の実施形態に係る画像処理装置の概略構成を示すブロック図である。この画像処理装置は、例えばデジタルカメラに内蔵される。
(First embodiment)
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus according to the first embodiment of the present invention. This image processing apparatus is built in, for example, a digital camera.

図1の画像処理装置は、イメージセンサ1と、A/D変換器2と、OB(Optical Black)減算器3と、デモザイク処理部4と、ホワイトバランスゲイン乗算器5と、水中光路長算出部6と、色復元マトリックス生成部7と、色復元マトリックス乗算器8と、水陸切換器9と、マトリックス乗算器10と、ガンマ処理部11と、映像記録部12とを備えている。   1 includes an image sensor 1, an A / D converter 2, an OB (Optical Black) subtractor 3, a demosaic processing unit 4, a white balance gain multiplier 5, and an underwater optical path length calculation unit. 6, a color restoration matrix generation unit 7, a color restoration matrix multiplier 8, a land / land switch 9, a matrix multiplier 10, a gamma processing unit 11, and a video recording unit 12.

イメージセンサ1で撮像された撮像信号は、A/D変換器2でデジタルのピクセル値に変換される。デモザイク処理部4は、各画素にすべての色情報を持たせる処理を行う。このデモザイク処理が必要になる理由は、一般的なイメージセンサ1の画素配列はG画素を他の色画素よりも多く配置したベイヤー配列になっているためであり、デモザイク処理部4では、色補間処理を行って、各画素にRGBの色情報を持たせる処理を行う。   An image signal captured by the image sensor 1 is converted into a digital pixel value by the A / D converter 2. The demosaic processing unit 4 performs a process of giving all color information to each pixel. The reason why the demosaic processing is necessary is that the pixel array of the general image sensor 1 is a Bayer array in which more G pixels are arranged than other color pixels. In the demosaic processing unit 4, color interpolation is performed. Processing is performed so that each pixel has RGB color information.

ホワイトバランスゲイン乗算器5は、所定の手法により設定したホワイトバランスゲインを用いて、デモザイク処理後のピクセル値に対してホワイトバランス調整を行う。ホワイトバランスゲインの設定方法については後述する。   The white balance gain multiplier 5 performs white balance adjustment on the pixel value after the demosaic process using the white balance gain set by a predetermined method. A method for setting the white balance gain will be described later.

水中光路長算出部6は、水面に降り注いだ光がイメージセンサ1に到達するまでの光路長(以下、水中光路長)を算出する。この算出方法についても後述する。   The underwater optical path length calculation unit 6 calculates an optical path length (hereinafter referred to as an underwater optical path length) until the light that has poured onto the water surface reaches the image sensor 1. This calculation method will also be described later.

色復元マトリックス生成部7は、水中光路長算出部6で算出された水中光路長に基づいて、水中で失われた色を復元するための色復元マトリックスを生成する。   Based on the underwater optical path length calculated by the underwater optical path length calculation unit 6, the color recovery matrix generation unit 7 generates a color recovery matrix for recovering colors lost in water.

色復元マトリックス乗算器8は、ホワイトバランスゲイン乗算器5で乗算した結果に、色復元マトリックスを乗じる処理を行う。   The color restoration matrix multiplier 8 performs processing for multiplying the result obtained by the white balance gain multiplier 5 by the color restoration matrix.

水陸切換器9は、水中と陸上のどちらで撮影を行うのかを切り替える。マトリックス乗算器10は、色復元マトリックス乗算器8の乗算結果に色空間変換マトリックスを乗じる処理を行う。   The land / land switch 9 switches between underwater and land. The matrix multiplier 10 performs a process of multiplying the multiplication result of the color restoration matrix multiplier 8 by the color space conversion matrix.

ガンマ処理部11は、マトリックス乗算器10の乗算結果に対してガンマ補正を行う。ガンマ補正後のピクセル値は、JPEG等の形式にて映像記録部12に記録される。   The gamma processing unit 11 performs gamma correction on the multiplication result of the matrix multiplier 10. The pixel value after the gamma correction is recorded in the video recording unit 12 in a format such as JPEG.

図1に破線で示す水中光路長算出部6、色復元マトリックス生成部7、色復元マトリックス乗算器8および水中切換器9が本実施形態の主要部である。すなわち、本実施形態は、従来のデジタルカメラの構成に、図1の破線部の構成を追加することで実現可能である。   The underwater optical path length calculation unit 6, the color restoration matrix generation unit 7, the color restoration matrix multiplier 8, and the underwater switch 9 that are indicated by broken lines in FIG. 1 are the main parts of this embodiment. That is, this embodiment can be realized by adding the configuration of the broken line portion in FIG. 1 to the configuration of the conventional digital camera.

図2は図1の主要部であるホワイトバランスゲインの乗算後のピクセル値からマトリックスの乗算結果を得るまでの処理手順を詳細に示すフローチャートである。まず、ホワイトバランスゲインを設定する(ステップS1)。ここで、ホワイトバランスゲインとは、イメージセンサ1がRGBの原色を扱う場合には、イメージセンサ1のRGB値に対するRとBのゲインを指す。   FIG. 2 is a flowchart showing in detail a processing procedure from obtaining the matrix multiplication result from the pixel value after multiplication of the white balance gain, which is the main part of FIG. First, a white balance gain is set (step S1). Here, the white balance gain indicates the gains of R and B with respect to the RGB values of the image sensor 1 when the image sensor 1 handles RGB primary colors.

ホワイトバランスゲインの設定方法には複数通りが考えられる。以下、ホワイトバランスを設定するための第1〜第5の方法について説明する。なお、下記以外の方法でホワイトバランスを設定してもよい。   There are several ways to set the white balance gain. Hereinafter, first to fifth methods for setting the white balance will be described. Note that white balance may be set by a method other than the following.

第1の方法は、無彩色のグレーの色見本を水中で撮影して得られる映像により、ホワイトバランスを設定するものである。より具体的には、水中の目的とする撮影場所付近でグレーの色見本を予め撮影しておき、後にソフトウェアにより、その色見本の映像がグレーになるようにホワイトバランスを調整し、その調整により得られたホワイトバランスゲインを他の映像にも適用する。これにより、かなり正確なホワイトバランスを得ることができる。   In the first method, white balance is set by an image obtained by photographing an achromatic gray color sample in water. More specifically, a gray color sample is shot in advance near the target shooting location in water, and the white balance is adjusted by the software so that the image of the color sample becomes gray. The obtained white balance gain is also applied to other images. Thereby, a fairly accurate white balance can be obtained.

ところが、ただでさえ行動が制限される水中に、グレーの色見本を持ち込んで撮影を行うのは撮影者にとって大変な手間になる。そこで、例えば図3に示すように、ダイビング用のフィン14にグレーのシール15を貼り付けておき、本来の撮影を行う際にそのシール15も撮影しておく。   However, it is very troublesome for the photographer to bring a gray color sample and take a picture in the water where the behavior is restricted. Therefore, for example, as shown in FIG. 3, a gray sticker 15 is attached to the diving fin 14, and the sticker 15 is also photographed when the original photographing is performed.

水中では、浮力が働いて、体を比較的自由に動かせるため、フィンのシール15もそれほど無理なく撮影可能であり、撮影者はグレーの色見本を携帯する必要がなくなる。   Underwater, the buoyancy works and the body can move relatively freely, so the fin seal 15 can be photographed without difficulty, and the photographer does not have to carry a gray color sample.

撮影者の手間を省くさらなる方法として、図4に示すようにシール15の脇に例えばバーコード状のパターンを貼り付けておき、シール15の撮影の際にバーコード15aのパターンも合わせて撮影し、カメラ内部で撮影された映像からバーコード15aの位置を検出し、それらの中心にあるシール15をグレーにバランスするゲインを算出することで、自動的にホワイトバランスゲインを設定し、その設定前後に撮影した他の映像に対して、設定したホワイトバランスゲインを適用することが考えられる。これにより、後に、撮影者自身でホワイトバランスの調整を行わなくて済み、手間が省けて使い勝手がよくなる。もちろん、カメラに組み込む以外に、撮影後に行う画像処理ソフトウェアにおいても同様に、バーコード15aの位置を検出し、シール15をグレーにバランスするホワイトバランスゲインを算出するように構成すれば、利便性を上げることができる。   As a further method for saving the photographer, a barcode pattern, for example, is pasted on the side of the seal 15 as shown in FIG. 4, and the barcode 15a pattern is also photographed when the seal 15 is photographed. The white balance gain is automatically set by detecting the position of the barcode 15a from the video imaged inside the camera, and calculating the gain for balancing the seal 15 at the center in gray, before and after the setting. It is conceivable that the set white balance gain is applied to other images taken in (1). This eliminates the need for the user to adjust the white balance later, which saves time and improves usability. Of course, in addition to being incorporated in the camera, in the image processing software performed after shooting, similarly, it is possible to detect the position of the barcode 15a and calculate the white balance gain that balances the sticker 15 in gray. Can be raised.

シール15は、図3のようなグレー単色のもの以外に、図4に示すように、色々な色パターンを含んでいてもよい。   The seal 15 may include various color patterns as shown in FIG. 4 in addition to the gray single color as shown in FIG.

第2の方法は、ホワイトバランスを測定可能な環境光センサをカメラに取り付けるものである。この方法では、環境光センサにより、カメラ周辺の水中光を直接測定してホワイトバランスゲインを設定する。このため、このままでは、被写体とカメラの間の光路長を加味してホワイトバランスを測定することはできない。そこで、例えば、カメラにより被写体までの距離を検出し、検出された距離によりホワイトバランスの調整を行うことで、ホワイトバランスの精度向上が図れる。   The second method is to attach an ambient light sensor capable of measuring white balance to the camera. In this method, the ambient light sensor directly measures the underwater light around the camera and sets the white balance gain. For this reason, the white balance cannot be measured with the optical path length between the subject and the camera taken into account. Therefore, for example, by detecting the distance to the subject using a camera and adjusting the white balance based on the detected distance, the accuracy of white balance can be improved.

第3の方法は、いわゆるオートバランスである。この方法は、本実施形態による画像処理装置をカメラに適用する場合と撮影後に行う画像処理ソフトウェアに適用する場合のいずれにおいても有効である。   The third method is so-called auto balance. This method is effective both when the image processing apparatus according to the present embodiment is applied to a camera and when it is applied to image processing software performed after photographing.

先に本発明者が出願した発明(特開2007-13415号公報)を用いれば、物体に降り注ぐ光源色をかなり正確に特定できる。実際に、多くの水中映像において良好な結果を得ており、最も期待される方法の一つである。   If the invention previously filed by the present inventor (Japanese Patent Laid-Open No. 2007-13415) is used, the color of the light source that falls on the object can be identified fairly accurately. In fact, it has obtained good results in many underwater images and is one of the most promising methods.

ただし、陸上と水中の両方の映像を処理できるようにする場合、誤判定を防止するために、映像処理前に水中か陸上の切替を行うのが望ましい。陸上では、水中のような青い光源はまずありえないし、仮にあったとしても青を白くバランスせずにその場の雰囲気を残すために、青く再現する方が望ましい場合があり、水中と陸上ではホワイトバランスの算出方法や、検出したホワイトバランスゲイン値を人間の色順応に合わせて制限する際のリミットを変える必要があるためである。   However, when both land and underwater images can be processed, it is desirable to switch between underwater and land before image processing in order to prevent erroneous determination. On land, blue light sources such as underwater are unlikely at all, and even if they exist, it may be desirable to reproduce blue in order to leave the atmosphere in place without balancing blue to white. This is because it is necessary to change the balance calculation method and the limit for limiting the detected white balance gain value according to human chromatic adaptation.

陸上と水中の切替をカメラに設ける場合には、切替スイッチを設けてもよいし、メニュー画面で切替ができるようにしてもよい。切替スイッチを設けたカメラを水中ハウジングに収納して水中撮影を行う場合には、例えば図5および図6に示すように、カメラには水中切り替えスイッチ16を設けておき、水中ハウジングには、その切り替えスイッチが押下されるような突起17を設けておくのが望ましい。図5は水中ハウジングを展開した状態を示しており、突起17は、ハウジングの内部が出っ張っている。図6は、水中ハウジングにカメラを収納して閉じた状態を示している。ハウジングの突起17に押されて、カメラの水中切り替えスイッチ16が押下される。   When switching between land and water is provided in the camera, a changeover switch may be provided, or switching may be performed on a menu screen. When a camera provided with a changeover switch is housed in an underwater housing for underwater photography, the camera is provided with an underwater changeover switch 16 as shown in FIGS. It is desirable to provide a protrusion 17 for pressing the changeover switch. FIG. 5 shows a state in which the underwater housing is expanded, and the protrusion 17 protrudes from the inside of the housing. FIG. 6 shows a state in which the camera is housed in the underwater housing and closed. Pressed by the projection 17 of the housing, the underwater switch 16 of the camera is pressed.

第4の方法は、ユーザがホワイトバランスを設定するものである。この場合、ユーザは、カメラのスイッチやメニュー画面により、あるいはソフトウェアのユーザーインタフェースにより、ホワイトバランスを設定する。多くのカメラでは、光源の種類(電球、蛍光灯、晴れ、曇り、日陰等)を指定したり、色温度を指定することにより、ホワイトバランスの設定が可能であるが、これらの指定は水中では役に立たない。水中では、色度座標が黒体放射線(や昼光線)から大きくずれる上に、水中経路長によって色度座標が広い範囲に分布するため、「水中」というプリセットを用意しても正常なホワイトバランス調整は行えない可能性が高い。   In the fourth method, the user sets the white balance. In this case, the user sets the white balance through a camera switch or menu screen, or through a software user interface. Many cameras allow you to set the white balance by specifying the type of light source (bulb, fluorescent light, clear, cloudy, shade, etc.) or by specifying the color temperature. Useless. Underwater, the chromaticity coordinates deviate significantly from blackbody radiation (and daylight), and the chromaticity coordinates are distributed over a wide range depending on the underwater path length. There is a high possibility that adjustments cannot be made.

そこで、水中経路長をパラメータとして与えて、ユーザがホワイトバランスを設定できるようにすると便利である。多くのカメラやRAW現像処理ソフトウェアが搭載している色温度の指定に倣って、水中光路長を指定すれば、その光路長によって決まる水中透過光の色度座標についてホワイトバランスの設定を行うような設計が可能となる。   Therefore, it is convenient to allow the user to set the white balance by giving the underwater path length as a parameter. If the underwater optical path length is specified following the specification of the color temperature installed in many cameras and RAW development processing software, the white balance is set for the chromaticity coordinates of the transmitted light in water determined by the optical path length. Design becomes possible.

第5の方法は、カメラやカメラを収納する水中ハウジングに水深計を取り付けて、水深計で測定した水深をカメラに伝達する配線を設けるものである。カメラでは、水深を例えば1〜1.5倍した値を水中光路長としてホワイトバランスを設定する。なぜならば、太陽高度が高く水面に対して直角に太陽光が降り注ぐ赤道付近の晴れの日は、水深と水中光路長は、ほぼ一致するが、くもりの日や太陽高度が低い地域では、水面から斜めに光が降り注ぐために、水中光路長は、実際の水深よりも大きくなる傾向があるからである。冬にスポーツダイバーがダイビングを行えるほぼ北限の関東地方周辺では、実際の水深と水中光路長は1.5倍ほど異なることもある。このため、1〜1.5倍する必要がある。この倍率の設定をカメラのメニューによって行わせても良いし、緯度を入力させて、カメラ内部の時計から季節を算出し、その結果から自動的に設定するようにしても良い。   In the fifth method, a depth meter is attached to a camera or an underwater housing that houses the camera, and wiring for transmitting the depth measured by the depth meter to the camera is provided. In the camera, the white balance is set with a value obtained by multiplying the water depth by, for example, 1 to 1.5 as an underwater optical path length. This is because, on a clear day near the equator where the sun is high and the sunlight falls at a right angle to the water surface, the water depth and the underwater light path length are almost the same, but in cloudy days and areas where the sun altitude is low, This is because the underwater optical path length tends to be larger than the actual water depth because the light falls obliquely. Around the northern Kanto region where sports divers can dive in winter, the actual water depth and underwater light path length may differ by a factor of 1.5. For this reason, it is necessary to multiply 1 to 1.5 times. The magnification may be set from the camera menu, or the latitude may be input, the season may be calculated from the clock inside the camera, and the result may be automatically set.

この第5の方法は、正確なホワイトバランスを設定できない上に、機構が複雑でコストがかかるため、実用性はあまりないかもしれない。ただし、映像の付属情報として水深データを記録することが可能であり、事後的に水深データを活用できるという利点がある。例えば、静止画像の付属情報を記録したEXIF情報には、規格上、水深を記録するタグが現時点では定義されていないが、メーカーが独自の情報を記録するメーカーノートタグ(MakerNote Tag)等に水深データを記録しておけば、事後的に、各画像が水深何mで撮影されたものかを正確に特定でき、非常に便利である。したがって、将来的には、EXIF情報の一部として水深データを記録できるような規格変更も考えられる。   This fifth method may not be practical because it cannot set an accurate white balance, and the mechanism is complicated and costly. However, it is possible to record the water depth data as ancillary information of the video, and there is an advantage that the water depth data can be utilized afterwards. For example, in the EXIF information that records the attached information of still images, the tag that records the water depth is not defined by the standard at the present time, but the maker note tag (MakerNote Tag) that the manufacturer records unique information If the data is recorded, it is very convenient because it is possible to accurately specify how many meters the depth of each image was taken after the fact. Therefore, in the future, it is possible to change the standard so that water depth data can be recorded as part of EXIF information.

以上に説明した第1〜第5の方法のいずれかにより、ホワイトバランスゲインが設定されると、次に、水陸切換器9は、水中と陸上のどちらで撮影を行うのかを選択する(図2のステップS2)。上述したように、水陸切換器9は、例えばカメラに設けられる専用のスイッチで実現してもよいし、カメラのメニュー画面によるソフト的な選択で実現してもよい。   When the white balance gain is set by any one of the first to fifth methods described above, the land-and-land switch 9 next selects whether to shoot underwater or on land (FIG. 2). Step S2). As described above, the land / land switch 9 may be realized by a dedicated switch provided in the camera, for example, or may be realized by software selection on the menu screen of the camera.

ステップS2で水中撮影が選択された場合、水中光路長算出部6により水中光路長を算出する(ステップS3)。以下に、水中光路長算出部6の処理内容を詳述する。   If underwater shooting is selected in step S2, the underwater optical path length calculation unit 6 calculates the underwater optical path length (step S3). Below, the processing content of the underwater optical path length calculation part 6 is explained in full detail.

ここで、カメラがRGBの3色のイメージセンサ1を有するものとする。イメージセンサーの色特性を示すために、CIE(国際照明委員会)の標準的な色表現方法であるCIE1931XYZから、カメラが撮像する3つの色コンポーネント(これは通常RGBの3色である)に変換するためのカラーマトリックスをCとする。この場合、Cは、3×3マトリックスであり、カメラのカラーフィルタやイメージセンサ1、ローパスフィルタ等の特性によって決まる。   Here, it is assumed that the camera has an image sensor 1 of three colors of RGB. To show the color characteristics of the image sensor, it is converted from CIE1931XYZ, which is the standard color expression method of CIE (International Commission on Illumination), into three color components that are imaged by the camera (which are usually three colors of RGB) Let C be the color matrix for this purpose. In this case, C is a 3 × 3 matrix and is determined by the characteristics of the camera color filter, image sensor 1, low-pass filter, and the like.

なお、CIE1931XYZは、RGBの代わりに、XYZの3値を用いて実在色のすべてを表記可能な色の表現方法である。   Note that CIE 1931XYZ is a color expression method that can represent all the existing colors using three values of XYZ instead of RGB.

ここで、ある光源色をCIE1931XYZで標記した場合の値を(WP_X,WP_Y,WP_Z)とすると、以下の(1)式の右辺におけるC*(WP_X,WP_Y,WP_Z)は、そのカメラでの線形RAW値(OB減算処理後の値)になる。   Here, if a value when a certain light source color is represented by CIE1931XYZ is (WP_X, WP_Y, WP_Z), C * (WP_X, WP_Y, WP_Z) on the right side of the following equation (1) is linear in the camera. RAW value (value after OB subtraction processing).

ホワイトバランスゲインWBR,WBBは、光源色がグレーになるように設定するものであり、C*(WP_X,WP_Y,WP_Z)のR成分をWBRで、G成分を1で、B成分をWBBでそれぞれ重み付けすると、グレー色に調整される。この重み付けを、(1)式の右辺では3×3マトリックスで表現している。

Figure 0004860512
The white balance gains WBR and WBB are set so that the light source color is gray. The R component of C * (WP_X, WP_Y, WP_Z) is WBR, the G component is 1, and the B component is WBB. When weighted, it is adjusted to gray. This weighting is expressed as a 3 × 3 matrix on the right side of equation (1).
Figure 0004860512

グレー色に調整するということは、やはりCIEのD65を撮影した場合の線形RAW値と一致することになり、(1)式の右辺は、左辺のC*D65標準光源のXYZ値と一致することになる。   The adjustment to the gray color also matches the linear RAW value when the CIE D65 is photographed, and the right side of the equation (1) matches the XYZ value of the C * D65 standard light source on the left side. become.

ところで、D65は、CIEが定めた標準光源の一つであり、地上に降り注ぐ光の平均値である。D65は、現在、白点として最も広く使用されており、デジタルカメラの標準的な色空間であるsRGBやアドビ(登録商標)RGBも白点をD65と定めている。なお、他の光源を標準光源として用いてもよい。理想的には、所定の色温度を持つ完全放射体または地上に降り注ぐ光の平均値から算出された昼光を標準光源として用いるのが望ましい。   By the way, D65 is one of the standard light sources defined by the CIE, and is an average value of light falling on the ground. D65 is currently most widely used as a white point, and sRGB and Adobe (registered trademark) RGB, which are standard color spaces of digital cameras, also define the white point as D65. Other light sources may be used as the standard light source. Ideally, it is desirable to use as a standard light source daylight calculated from a complete radiator having a predetermined color temperature or an average value of light falling on the ground.

sRGBやアドビRGBで、R=G=Bのとき、例えばRGB=(118,118,118)のとき、この値は無彩色であり、正常に校正されたモニタではD65として表示される。   When R = G = B in sRGB or Adobe RGB, for example, when RGB = (118, 118, 118), this value is achromatic, and is displayed as D65 on a normally calibrated monitor.

上述した(1)式により、(WP_X,WP_Y,WP_Z)を算出することができる。ところが、XYZの3軸による表記では、光の強さを含んでしまう。光の強さは色とは無関係であり、色だけを表記する場合には、X+Y+Z=1となる面(等エネルギー面)で色を表記したものがCIE1931xy座標である。   (WP_X, WP_Y, WP_Z) can be calculated by the above-described equation (1). However, the three-axis notation of XYZ includes the light intensity. The intensity of light is independent of the color, and when only the color is described, the CIE 1931 xy coordinate is expressed by the color on the plane (equal energy plane) where X + Y + Z = 1.

ここでは、光源の強さではなく、その色(色度座標)のみを問題にしているため、光源色をXYZの3軸ではなく、等エネルギー面の2軸(xy)で表記した色度座標wp_xy=(WP_X/(WP_X+WP_Y+WP_Z),WP_Y/(WP_X+WP_Y+WP_Z))を計算する。この色度座標wp_xyが光源色に相当する。   Here, not the intensity of the light source but only its color (chromaticity coordinates) is a problem. Therefore, the chromaticity coordinates in which the light source color is expressed by two axes (xy) of the equal energy plane instead of the three axes of XYZ. wp_xy = (WP_X / (WP_X + WP_Y + WP_Z), WP_Y / (WP_X + WP_Y + WP_Z)) is calculated. This chromaticity coordinate wp_xy corresponds to the light source color.

上記の手順で光源色が算出されると、次に以下の手順で水中光路長を算出する。図7は水中透過光のCIE1931xy色座標を示す図である。図7の逆U字状曲線cb1は、単色光の色座標曲線であり、この逆U字状曲線の内部に実際の色が存在する。図7の曲線cb2は黒体放射の色座標曲線である。   When the light source color is calculated by the above procedure, the underwater optical path length is calculated by the following procedure. FIG. 7 is a diagram showing CIE1931xy color coordinates of transmitted light in water. An inverted U-shaped curve cb1 in FIG. 7 is a color coordinate curve of monochromatic light, and an actual color exists inside the inverted U-shaped curve. A curve cb2 in FIG. 7 is a color coordinate curve of black body radiation.

この曲線cb2は、物体の温度を上げたときに発光する光をプロットしており、図7の左側が温度が高く、右側が温度が低い。図7において、5000Kと表示している場所が5000度のときの色座標である。また、地上に降り注ぐ昼光も、ほぼこの黒体放射線に近似しており、晴れの日の昼に地上に降り注ぐ光の色座標は、約5000K程度である。   This curve cb2 plots the light emitted when the temperature of the object is raised, with the temperature on the left side of FIG. 7 being high and the temperature on the right side being low. In FIG. 7, it is a color coordinate when the place displayed as 5000K is 5000 degrees. Also, the daylight that falls on the ground is almost similar to this blackbody radiation, and the color coordinates of the light that falls on the ground at noon on a sunny day are about 5000K.

図7の曲線cb3は、水面に5000Kの光が降り注いでいる場合に、水中光路長によって水中光の色座標が変化する様子を示している。すなわち、曲線cb3は、水中光路長ごとの色座標曲線である。   A curve cb3 in FIG. 7 shows how the color coordinates of the underwater light change depending on the underwater optical path length when 5000 K of light is poured on the water surface. That is, the curve cb3 is a color coordinate curve for each underwater optical path length.

上述した(1)式により計算された光源色wp_xyを図7にプロットし、そのプロット位置から曲線cb3に向けて垂線を下ろして、曲線cb3と交わった位置により、水中光路長を求めることができる。   The light source color wp_xy calculated by the above equation (1) is plotted in FIG. 7, and a perpendicular line is drawn from the plotted position toward the curve cb3, and the underwater optical path length can be obtained from the position where the curve cb3 intersects. .

上記の手法により水中光路長を算出できることは、本発明者が種々の実験により見出したものである。   The inventor has found that the underwater optical path length can be calculated by the above-described method through various experiments.

上記の手法で図2のステップS3にて水中光路長が算出されると、次に、色復元マトリックス生成部7により、色復元マトリックスの生成を行う(ステップS4)。ここでは、水中光路長に応じた色復元マトリックスを選択できるように、予めテーブルを用意しておく。   When the underwater optical path length is calculated in step S3 of FIG. 2 by the above method, the color restoration matrix generation unit 7 generates a color restoration matrix (step S4). Here, a table is prepared in advance so that a color restoration matrix corresponding to the underwater optical path length can be selected.

図8はテーブルの一例を示す図である。図8のテーブルには、テーブル番号と、水中光路長と、3×3マトリックスとが対応づけて記憶されている。このテーブルは、例えば、基準チャートを水中に持ち込んで、水深ごとに撮影を行って画像サンプルを取得し、カラーマッチングを行って3×3マトリックスを生成する。また、各画像に対応したホワイトバランスにより、上述した(1)式を用いて水中光路長を計算し、得られた結果を基に、図8のテーブルを予め生成しておく。   FIG. 8 shows an example of the table. The table of FIG. 8 stores a table number, an underwater optical path length, and a 3 × 3 matrix in association with each other. In this table, for example, a reference chart is brought into water, photographing is performed at each water depth to obtain an image sample, and color matching is performed to generate a 3 × 3 matrix. Further, the underwater optical path length is calculated using the above-described equation (1) based on the white balance corresponding to each image, and the table of FIG. 8 is generated in advance based on the obtained result.

図2のステップS4では、ステップS3で算出された水中光路長に応じた3×3マトリックスを図8のテーブルから抽出し、抽出したものを色復元マトリックスとして利用する。   In step S4 of FIG. 2, a 3 × 3 matrix corresponding to the underwater optical path length calculated in step S3 is extracted from the table of FIG. 8, and the extracted one is used as a color restoration matrix.

図8のテーブルには、水中光路長が100cm刻みでしか登録されていないが、もっと細かい単位で3×3マトリックスを用意しておいてもよいし、あるいは、図8のステップS3で計算された水中光路長が図8のテーブルに登録された水中光路長の中間の値の場合には、線形補間等の補間処理を行うことにより、新たな3×3マトリックスを生成してもよい。   In the table of FIG. 8, the underwater optical path length is registered only in increments of 100 cm, but a 3 × 3 matrix may be prepared in finer units, or calculated in step S3 of FIG. When the underwater optical path length is an intermediate value of the underwater optical path length registered in the table of FIG. 8, a new 3 × 3 matrix may be generated by performing interpolation processing such as linear interpolation.

上述した説明では、算出した水中光路長をパラメータとして色復元マトリックスを選択する例を示したが、水中光路長算出部6と色復元マトリックス生成部7の処理を一つにまとめて、水中光路長を算出することなく、色復元マトリックスを生成してもよい。この場合は、ホワイトバランスゲインと色復元マトリックスとを対応づけたテーブルを用意しておき、ホワイトバランスゲインをパラメータとして、対応する色復元マトリックスを抽出する。   In the above description, an example in which the color restoration matrix is selected using the calculated underwater optical path length as a parameter has been described. However, the processing of the underwater optical path length calculation unit 6 and the color restoration matrix generation unit 7 is combined into one, The color restoration matrix may be generated without calculating. In this case, a table associating the white balance gain with the color restoration matrix is prepared, and the corresponding color restoration matrix is extracted using the white balance gain as a parameter.

図9はこの種のテーブルの一例を示す図である。図9のテーブルには、ホワイトバランスゲインGainR,GainBと3×3マトリックスとが対応づけて登録されている。このテーブルは、例えば基準チャートを水中に持ち込んで、水深ごとに撮影して画像サンプルを取得し、カラーマッチングを行った結果の3×3マトリックスと、そのときのホワイトバランスゲインとを対応づけて作成される。   FIG. 9 is a diagram showing an example of this type of table. In the table of FIG. 9, white balance gains GainR and GainB and a 3 × 3 matrix are registered in association with each other. This table is created, for example, by bringing a reference chart into the water, taking images at each water depth to obtain image samples, and matching the 3 × 3 matrix resulting from color matching and the white balance gain at that time Is done.

図9のテーブルを用いて最終的な色復元マトリックスを得るには、例えば図10の処理を行う。まず、3×3の色復元マトリックスの各要素Matrix[j](j=0〜9)をゼロに初期化する(ステップS11)。次に、マトリックスの種類を表す変数iをゼロに初期化する(ステップS12)。i=0であれば、図9の一番上の段のホワイトバランスゲインとマトリックスが選択され、i=3であれば、一番下の段のホワイトバランスゲインとマトリックスが選択される。   In order to obtain a final color restoration matrix using the table of FIG. 9, for example, the processing of FIG. 10 is performed. First, each element Matrix [j] (j = 0 to 9) of the 3 × 3 color restoration matrix is initialized to zero (step S11). Next, a variable i representing the type of matrix is initialized to zero (step S12). If i = 0, the white balance gain and matrix at the top level in FIG. 9 are selected, and if i = 3, the white balance gain and matrix at the bottom level are selected.

次に、ホワイトバランスゲインWBR,WBBの逆数と、3×3マトリックスの値とGainRまたはGainBとの積の逆数との差分dR,dBを算出する(ステップS13)。   Next, the difference dR, dB between the reciprocal of the white balance gains WBR, WBB and the reciprocal of the product of the 3 × 3 matrix value and GainR or GainB is calculated (step S13).

次に、差分dRまたはdBがゼロか否かを判定し(ステップS14)、ゼロでなければ、dRとdBから重みFact[i]を算出する(ステップS15)。一方、ステップS14の判定がNOの場合には、WBR,WBBがテーブルに記録されているゲイン値と一致していることを示すので、重みFact[i]を非常に大きな固定値(1.0E+99)に設定する(ステップS16)。   Next, it is determined whether or not the difference dR or dB is zero (step S14). If it is not zero, the weight Fact [i] is calculated from dR and dB (step S15). On the other hand, if the determination in step S14 is NO, it indicates that WBR and WBB match the gain values recorded in the table, so that the weight Fact [i] is a very large fixed value (1.0E + 99). ) (Step S16).

ステップS15,S16の処理が終わると、次に、色復元マトリックスの各要素Matrix[j]=Matrix[j]+Fact[i]*Table[i].Matrix[j]を算出する(ステップS17)。次に、重みの総計値FactSum=FactSum+Fact[i]を算出する(ステップS18)。   When the processing of steps S15 and S16 is completed, each element Matrix [j] = Matrix [j] + Fact [i] * Table [i]. Matrix [j] is calculated (step S17). Next, the total weight value FactSum = FactSum + Fact [i] is calculated (step S18).

次に、図9のテーブルの最後の段まで処理を行ったか否かを判定し(ステップS19)、処理を行うべきマトリックスがまだ残っていれば、変数iをインクリメントして(ステップS20)、ステップS13以降の処理を繰り返す。   Next, it is determined whether or not processing has been performed up to the last stage of the table of FIG. 9 (step S19). If there is still a matrix to be processed, the variable i is incremented (step S20), and step The processes after S13 are repeated.

すべての行の処理が終わった場合には、3×3マトリックスの各要素を重みFact[i]で加重平均した値を要素とする色復元マトリックスを生成する(ステップS21)。   When all the rows have been processed, a color restoration matrix having a value obtained by weighting and averaging each element of the 3 × 3 matrix with the weight Fact [i] is generated (step S21).

上述した処理手順にて、図8または図9のテーブルを用いて色復元マトリックスが生成されると、次に、色復元マトリックス乗算器8は、ホワイトバランスゲイン乗算器5の乗算結果と、生成した色復元マトリックスとを乗じる処理を行う(図2のステップS5)。   When the color restoration matrix is generated using the table of FIG. 8 or 9 in the above-described processing procedure, the color restoration matrix multiplier 8 generates the multiplication result of the white balance gain multiplier 5 and the generated result. A process of multiplying by the color restoration matrix is performed (step S5 in FIG. 2).

図2のステップS3〜S5の処理は、水中撮影を行う場合のみ行われる。ステップS5の処理が終わると、水中撮影と陸上撮影のどちらを行う場合も、マトリックス乗算器10によるマトリックス乗算処理を行う(ステップS6)。この処理では、イメージセンサ1で撮像したRGB値をsRGBなどの色空間に変換するための色空間変換マトリックスを用いて乗算処理を行って、ピクセル値を算出する。   The processes in steps S3 to S5 in FIG. 2 are performed only when underwater shooting is performed. When the processing in step S5 is completed, matrix multiplication processing by the matrix multiplier 10 is performed in both cases of underwater shooting and land shooting (step S6). In this process, a pixel value is calculated by performing a multiplication process using a color space conversion matrix for converting RGB values captured by the image sensor 1 into a color space such as sRGB.

例えば、水中撮影を行う場合のステップS6で得られるピクセル値は、以下の(2)式で表される。
マトリックス乗算後のピクセル値=色空間変換マトリックス×(色復元マトリックス×ホワイトバランスゲイン乗算器5の乗算結果) …(2)
For example, the pixel value obtained in step S6 when performing underwater photography is expressed by the following equation (2).
Pixel value after matrix multiplication = color space conversion matrix × (color restoration matrix × white balance gain multiplier 5 multiplication result) (2)

一方、陸上撮影を行う場合のステップS6で得られるピクセル値は、以下の(3)式で表される。
マトリックス乗算後のピクセル値=色空間変換マトリックス×ホワイトバランスゲイン乗算器5の乗算結果 …(3)
On the other hand, the pixel value obtained in step S6 when performing land photography is expressed by the following equation (3).
Pixel value after matrix multiplication = color space conversion matrix × multiplication result of white balance gain multiplier 5 (3)

図2のステップS6の処理により得られたピクセル値は、図1に示すように、ガンマ処理部11によりガンマ補正された後に映像記録部12に記録される。   The pixel value obtained by the process of step S6 in FIG. 2 is recorded in the video recording unit 12 after being gamma-corrected by the gamma processing unit 11, as shown in FIG.

このように、第1の実施形態では、水中撮影時に、水中光路長またはホワイトバランスゲインに応じた色復元マトリックスを生成し、生成した色復元マトリックス、色空間変換マトリックスおよびホワイトバランスゲインを用いてピクセル値を算出するため、陸上同様に青みの少ない自然な画像が得られる。   As described above, in the first embodiment, during underwater shooting, a color restoration matrix corresponding to the underwater optical path length or the white balance gain is generated, and the generated color restoration matrix, the color space conversion matrix, and the white balance gain are used to generate pixels. Since the value is calculated, a natural image with less bluish color can be obtained as on land.

本実施形態では、水深や水中光路長がわかれば比較的簡易な処理で正確な色復元処理を行えるため、カメラに組み込むことも容易で、また撮影後に画像処理ソフトウェアにて実現することも容易に行える。   In this embodiment, if the water depth and the underwater optical path length are known, accurate color restoration processing can be performed with relatively simple processing. Therefore, it can be easily incorporated into a camera, and can also be easily realized with image processing software after shooting. Yes.

また、水深がわからなくても、水中で色見本を撮影した結果を利用してホワイトバランスゲインを取得することによっても、正確な色復元処理を行える。   Even if the depth of water is not known, accurate color restoration processing can be performed by acquiring the white balance gain using the result of photographing a color sample underwater.

このように、本実施形態によれば、水中撮影時の色復元処理を自動化することができ、撮影者の手間を煩わすことなく、水中の被写体の本来の色を復元することができる。   Thus, according to the present embodiment, the color restoration process during underwater photography can be automated, and the original color of the underwater subject can be restored without bothering the photographer.

(第2の実施形態)
第1の実施形態では、水中撮影時のピクセル値を計算するために、上述した(2)式による演算処理を行った。行列演算には、結合法則が成立するため、この(2)式は、以下の(4)式と同じである。
マトリックス乗算後のピクセル値=(色空間変換マトリックス×色復元マトリックス)×ホワイトバランスゲイン乗算器5の乗算結果 …(4)
(Second Embodiment)
In the first embodiment, in order to calculate the pixel value at the time of underwater shooting, the arithmetic processing according to the above-described equation (2) is performed. Since the combination rule is established for the matrix operation, the equation (2) is the same as the following equation (4).
Pixel value after matrix multiplication = (color space conversion matrix × color restoration matrix) × multiplication result of white balance gain multiplier 5 (4)

この(4)式では、あらかじめ、色空間変換マトリックスと色復元マトリックスの乗算処理(以下、マトリックス合成処理)を行った後に、マトリックス合成処理により得られたマトリックスとホワイトバランスゲイン乗算器5の乗算結果のピクセル値との乗算処理を行う。以下に説明する第2の実施形態は、上記の(4)式に基づいてピクセル値を算出するものである。   In this equation (4), the multiplication result of the matrix obtained by the matrix synthesis process and the white balance gain multiplier 5 after the multiplication process of the color space conversion matrix and the color restoration matrix (hereinafter, matrix synthesis process) is performed in advance. Multiply by the pixel value of. In the second embodiment described below, the pixel value is calculated based on the above equation (4).

図11は本発明の第2の実施形態による画像処理装置の概略構成を示すブロック図である。図11では、図1と共通する構成部分には同一符号を付しており、以下では相違点を中心に説明する。   FIG. 11 is a block diagram showing a schematic configuration of an image processing apparatus according to the second embodiment of the present invention. In FIG. 11, the same reference numerals are given to the components common to FIG. 1, and the differences will be mainly described below.

図11の画像処理装置は、図1になかったものとして、マトリックス合成部21を備えている。このマトリックス合成部21は、色復元マトリックス生成部7で生成された色復元マトリックスと色空間変換マトリックスとを乗算する。   The image processing apparatus of FIG. 11 includes a matrix synthesis unit 21 that is not shown in FIG. The matrix synthesis unit 21 multiplies the color restoration matrix generated by the color restoration matrix generation unit 7 and the color space conversion matrix.

また、図11のマトリックス乗算器10は、マトリックス合成部21の乗算結果とホワイトバランスゲイン乗算器5で乗算されたピクセル値とを乗算して、最終的なピクセル値を算出する。   Further, the matrix multiplier 10 in FIG. 11 multiplies the multiplication result of the matrix synthesizing unit 21 and the pixel value multiplied by the white balance gain multiplier 5 to calculate a final pixel value.

図11に破線で示す水中光路長算出部6、色復元マトリックス生成部7、マトリックス合成部21および水中切換器9が本実施形態の主要部である。   The underwater optical path length calculation unit 6, the color restoration matrix generation unit 7, the matrix synthesis unit 21, and the underwater switch 9 that are indicated by broken lines in FIG. 11 are the main parts of this embodiment.

この第2の実施形態においても、演算順序が異なるだけで、演算処理の内容自体は第1の実施形態と同様であるため、第1の実施形態と同様に、水中撮影時の高精度の色復元処理が可能となる。   Also in the second embodiment, the calculation process itself is the same as in the first embodiment except that the calculation order is different. Therefore, as in the first embodiment, high-precision color during underwater shooting Restoration processing is possible.

(第3の実施形態)
第1および第2の実施形態では、ホワイトバランスゲイン乗算器5とマトリックス乗算器10を別個に設けたが、これらの乗算器を一つにまとめることも可能である。
(Third embodiment)
In the first and second embodiments, the white balance gain multiplier 5 and the matrix multiplier 10 are provided separately. However, these multipliers can be combined into one.

ピクセル値を3次のベクトル(例えばR値、G値、B値)で表し、マトリックスを3×3とすると、ホワイトバランスゲイン乗算器5は、以下の(5)式に示すマトリックスを演算することに等しい。

Figure 0004860512
When the pixel value is represented by a third-order vector (for example, R value, G value, B value) and the matrix is 3 × 3, the white balance gain multiplier 5 calculates the matrix shown in the following equation (5). be equivalent to.
Figure 0004860512

したがって、ホワイトバランスゲイン乗算器5とマトリックス乗算器10を一つにまとめて、演算結果を一つのマトリックスで表現することができる。   Therefore, the white balance gain multiplier 5 and the matrix multiplier 10 can be combined into one and the calculation result can be expressed by one matrix.

上述した第2の実施形態では、(4)式に基づいてマトリックス乗算後のピクセル値を算出する旨を説明したが、(4)式は以下の(6)式のようにも書き直せる。
マトリックス乗算後のピクセル値=(色空間変換マトリックス×色復元マトリックス)×(ホワイトバランスマトリックス×デモザイク処理後のピクセル値) …(6)
In the second embodiment described above, the pixel value after matrix multiplication is calculated based on the equation (4). However, the equation (4) can also be rewritten as the following equation (6).
Pixel value after matrix multiplication = (color space conversion matrix × color restoration matrix) × (white balance matrix × pixel value after demosaic processing) (6)

行列演算には、結合法則が成立するため、この(6)式は、(7)式のように書き直すことも可能である。
マトリックス乗算後のピクセル値=(色空間変換マトリックス×色復元マトリックス×ホワイトバランスマトリックス)×デモザイク処理後のピクセル値 …(7)
Since the combination rule is established in the matrix operation, the equation (6) can be rewritten as the equation (7).
Pixel value after matrix multiplication = (color space conversion matrix × color restoration matrix × white balance matrix) × pixel value after demosaic processing (7)

以上の背景から、以下に説明する第3の実施形態では、ホワイトバランスゲイン乗算器5とマトリックス乗算器10を一つにまとめて、上記(7)式に基づく演算を行うことを特徴とする。   From the above background, the third embodiment described below is characterized in that the white balance gain multiplier 5 and the matrix multiplier 10 are combined into one and the calculation based on the above equation (7) is performed.

図12は本発明の第3の実施形態に係る画像処理装置の概略構成を示すブロック図である。図12では、図1や図11と共通する構成部分には同一符号を付しており、以下では相違点を中心に説明する。   FIG. 12 is a block diagram showing a schematic configuration of an image processing apparatus according to the third embodiment of the present invention. In FIG. 12, the same reference numerals are given to the components common to those in FIG. 1 and FIG. 11, and the differences will be mainly described below.

図12の画像処理装置は、図1や図11になかった構成として、ホワイトバランスマトリックス合成部22、第1のマトリックス合成部23および第2のマトリックス合成部24を有する。また、図1や図11にはホワイトバランスゲイン乗算器5が存在したが、図12では省略されている。   The image processing apparatus in FIG. 12 includes a white balance matrix synthesis unit 22, a first matrix synthesis unit 23, and a second matrix synthesis unit 24 as configurations not shown in FIGS. Further, although the white balance gain multiplier 5 exists in FIGS. 1 and 11, it is omitted in FIG.

図12に破線で示す水中光路長算出部6、色復元マトリックス生成部7、ホワイトバランスマトリックス生成部22、第1のマトリックス合成部23、水中切換器9および第2のマトリックス合成部24が本実施形態の主要部である。   The underwater optical path length calculation unit 6, the color restoration matrix generation unit 7, the white balance matrix generation unit 22, the first matrix synthesis unit 23, the underwater switch 9 and the second matrix synthesis unit 24 shown by broken lines in FIG. It is the main part of the form.

ホワイトバランスマトリックス生成部22は、ホワイトバランスゲインを含む3×3マトリックスを生成する。   The white balance matrix generation unit 22 generates a 3 × 3 matrix including white balance gain.

第1のマトリックス合成部23は、色復元マトリックスとホワイトバランスマトリックスとの乗算を行う。また、第2のマトリックス合成部24は、第1のマトリックス合成部23の演算結果であるマトリックスと色空間変換マトリックスとの乗算を行う。これにより、第2のマトリックス合成部24からは、上記(7)式の括弧内の演算結果が出力される。   The first matrix synthesis unit 23 performs multiplication of the color restoration matrix and the white balance matrix. The second matrix synthesis unit 24 multiplies the matrix that is the calculation result of the first matrix synthesis unit 23 and the color space conversion matrix. As a result, the calculation result in parentheses in the above equation (7) is output from the second matrix synthesis unit 24.

次に、マトリックス乗算器10は、デモザイク処理後のピクセル値と第2のマトリックス合成部24の出力結果であるマトリックスとの乗算を行って、上記(7)式の演算が完了する。   Next, the matrix multiplier 10 multiplies the pixel value after the demosaic process by the matrix that is the output result of the second matrix synthesis unit 24, and the calculation of the equation (7) is completed.

この第3の実施形態においても、マトリックスの演算順序が異なるだけで、演算処理の内容自体は第1および第2の実施形態と同様であるため、第1および第2の実施形態と同様に、水中撮影時の高精度の色復元処理が可能となる。   Also in the third embodiment, the calculation process itself is the same as in the first and second embodiments except that the calculation order of the matrix is different. Therefore, as in the first and second embodiments, High-accuracy color restoration processing during underwater photography is possible.

(第4の実施形態)
第1〜第3の実施形態では、カメラ内に組み込むことが可能な画像処理装置について説明したが、以下に説明する第4の実施形態は、イメージセンサ1から出力されたRAWデータの現像処理を行うRAW現像ソフトウェアに組み込めることが可能な画像処理装置であることを特徴とする。
(Fourth embodiment)
In the first to third embodiments, the image processing apparatus that can be incorporated in the camera has been described. However, in the fourth embodiment described below, development processing of RAW data output from the image sensor 1 is performed. It is an image processing apparatus that can be incorporated into RAW development software to be performed.

図13は本発明の第4の実施形態による画像処理装置の概略構成を示すブロック図である。図13の画像処理装置は、図1の画像処理装置と基本構成は同じであるが、ソフトウェアの形態でRAW現像ソフトウェアに組み込まれるため、イメージセンサ1やA/D変換器2は省略されている。その代わりに、RAWデータを取り込むための画像入力部31を備えている。   FIG. 13 is a block diagram showing a schematic configuration of an image processing apparatus according to the fourth embodiment of the present invention. The basic configuration of the image processing apparatus of FIG. 13 is the same as that of the image processing apparatus of FIG. 1, but the image sensor 1 and the A / D converter 2 are omitted because they are incorporated into the RAW development software in the form of software. . Instead, an image input unit 31 for capturing RAW data is provided.

図13の代わりに、図11または図12と基本構成を同じにしてもよく、その場合はそれぞれ図14または図15のブロック図に示す構成となる。   Instead of FIG. 13, the basic configuration may be the same as that of FIG. 11 or FIG. 12, and in that case, the configuration is shown in the block diagram of FIG. 14 or FIG.

一方、入力データがRAWデータではなく、JPEGなどの既に色空間変換がされた後のデータの場合には、図16のようなブロック構成になる。図16の画像処理装置は、図13になかった構成として逆ガンマ処理部32を有し、図13のOB減算部3、デモザイク処理部4およびマトリックス乗算器10は省略されている。   On the other hand, if the input data is not RAW data but data that has already undergone color space conversion, such as JPEG, the block configuration is as shown in FIG. The image processing apparatus of FIG. 16 has an inverse gamma processing unit 32 as a configuration not shown in FIG. 13, and the OB subtraction unit 3, demosaic processing unit 4 and matrix multiplier 10 of FIG. 13 are omitted.

逆ガンマ処理部32は、例えばJPEG形式にて記録された画像データのガンマ特性と逆特性の非線形変換を行って、光量とピクセル値とが比例関係になるような処理を行う。すなわち、逆ガンマ処理部32は、ガンマ処理部11とは逆の処理を行う。   The inverse gamma processing unit 32 performs non-linear conversion between the gamma characteristic and the inverse characteristic of the image data recorded in, for example, JPEG format, and performs a process in which the light amount and the pixel value are in a proportional relationship. That is, the inverse gamma processing unit 32 performs a process reverse to that of the gamma processing unit 11.

式で表すと、逆ガンマ処理部32は例えば以下の(8)式の処理を行い、ガンマ処理部11は(9)式の処理を行う。
出力=power(入力/255,2.2)×255 …(8)
出力=power(入力/255,1/2.2)×255 …(9)
In terms of an expression, the inverse gamma processing unit 32 performs, for example, the following expression (8), and the gamma processing unit 11 performs the expression (9).
Output = power (input / 255, 2.2) × 255 (8)
Output = power (input / 255, 1 / 2.2) × 255 (9)

このように、本発明は、RAW現像や画像処理を行うソフトウェアに組み込むことも可能であり、水中撮影後にPCを用いて簡易に高精度のホワイトバランス調整を行える。   As described above, the present invention can be incorporated in software for performing RAW development and image processing, and can perform white balance adjustment with high accuracy simply using a PC after underwater photography.

上述した第1〜第3の実施形態では、カメラに組み込む例について説明したが、図1、図11および図12に示した構成の少なくとも一部はハードウェアで構成してもよいし、ソフトウェアで構成してもよい。また、図1等の破線で示した以外の構成については本発明の本質的な部分ではないため、種々に構成を変更してもよい。   In the above-described first to third embodiments, examples of incorporation into the camera have been described. However, at least a part of the configuration illustrated in FIGS. 1, 11, and 12 may be configured by hardware or software. It may be configured. Further, the configuration other than that indicated by the broken line in FIG. 1 and the like is not an essential part of the present invention, and the configuration may be variously changed.

また、上述した各実施形態では、原色系のイメージセンサ1を用いる例を説明したが、補色系のイメージセンサを用いる場合にも本発明は適用可能である。   In each of the above-described embodiments, the example using the primary color image sensor 1 has been described. However, the present invention can also be applied to the case where a complementary color image sensor is used.

上述した第1〜第4の実施形態では、色復元マトリックス乗算器8とマトリックス乗算器10とを用いてマトリックス演算を行って水中色の復元処理を行う例を説明したが、マトリックス演算以外の色変換情報を用いて水中色の復元処理を行ってもよい。このような色変換情報を求める式のパラメータとして水中光路長を含めれば、別個に水中光路長との演算処理を行う必要がなくなり、色復元処理を簡略化できる。   In the first to fourth embodiments described above, the example in which the matrix calculation is performed using the color restoration matrix multiplier 8 and the matrix multiplier 10 to perform the underwater color restoration processing has been described. Underwater color restoration processing may be performed using the conversion information. If the underwater optical path length is included as a parameter of the equation for obtaining such color conversion information, it is not necessary to separately perform an arithmetic process with the underwater optical path length, and the color restoration process can be simplified.

この場合、色復元マトリックス生成部7の代わりに、水中光路長に基づいて色復元情報を生成する色復元情報生成部を設け、かつ、マトリックス乗算器10の代わりに、色復元情報とホワイトバランスゲインとに基づいて、入力されたピクセル値を補正するピクセル値補正部を設けることになる。   In this case, a color restoration information generation unit that generates color restoration information based on the underwater optical path length is provided instead of the color restoration matrix generation unit 7, and the color restoration information and the white balance gain are provided instead of the matrix multiplier 10. Based on the above, a pixel value correction unit for correcting the input pixel value is provided.

色変換情報の一例としては、色と色とを対応づけるカラーマッピングを使用することが考えられる。このようなカラーマッピングでは、水中光路長ごとに色変換マップを設けるか、色変換の式の中に直接的に水中光路長の乗算を含む場合には、一種類の色変換マップを設けるだけで済み、メモリ容量を削減できる。   As an example of color conversion information, it is conceivable to use color mapping that associates colors with each other. In such color mapping, a color conversion map is provided for each underwater optical path length, or when the underwater optical path length is directly included in the color conversion formula, only one type of color conversion map is provided. The memory capacity can be reduced.

本発明の第1の実施形態に係る画像処理装置の概略構成を示すブロック図。1 is a block diagram showing a schematic configuration of an image processing apparatus according to a first embodiment of the present invention. 図1の主要部であるホワイトバランスゲインの乗算からマトリックスの乗算結果を得るまでの処理手順を詳細に示すフローチャート。The flowchart which shows in detail the process sequence from the multiplication of the white balance gain which is the principal part of FIG. 1 until the multiplication result of a matrix is obtained. グレーのシールを貼付したフィンの一例を示す外観図。The external view which shows an example of the fin which stuck the gray seal | sticker. グレーパターンの周囲にバーコードを配置したシールの一例を示す平面図。The top view which shows an example of the seal | sticker which has arrange | positioned barcode around a gray pattern. 水中ハウジングを展開した状態を示す図。The figure which shows the state which expand | deployed the underwater housing. 水中ハウジングにカメラを収納して閉じた状態を示す図。The figure which shows the state which accommodated the camera in the underwater housing and closed. 水中透過光のCIE1931xy色座標を示す図。The figure which shows the CIE1931xy color coordinate of the transmitted light in water. テーブルの一例を示す図。The figure which shows an example of a table. 他のテーブルの一例を示す図。The figure which shows an example of another table. 図9のテーブルを利用して色復元マトリックスを生成する処理手順の一例を示すフローチャート。10 is a flowchart illustrating an example of a processing procedure for generating a color restoration matrix using the table of FIG. 9. 本発明の第2の実施形態による画像処理装置の概略構成を示すブロック図。The block diagram which shows schematic structure of the image processing apparatus by the 2nd Embodiment of this invention. 本発明の第3の実施形態に係る画像処理装置の概略構成を示すブロック図。The block diagram which shows schematic structure of the image processing apparatus which concerns on the 3rd Embodiment of this invention. 本発明の第4の実施形態による画像処理装置の概略構成を示すブロック図。The block diagram which shows schematic structure of the image processing apparatus by the 4th Embodiment of this invention. 図13の変形例を示すブロック図。The block diagram which shows the modification of FIG. 図13の変形例を示すブロック図。The block diagram which shows the modification of FIG. 色空間変換がされた後のデータを入力する場合の画像処理装置の概略構成を示すブロック図。The block diagram which shows schematic structure of the image processing apparatus in the case of inputting the data after color space conversion.

符号の説明Explanation of symbols

1 イメージセンサ
2 A/D変換器
3 OB減算器
4 デモザイク処理部
5 ホワイトバランスゲイン乗算器
6 水中光路長算出部
7 色復元マトリックス生成部
8 色復元マトリックス乗算器
9 水陸切換器
10 マトリックス乗算器
11 ガンマ処理部
12 映像記録部
21 マトリックス合成部
22 ホワイトバランスマトリックス生成部
23 第1のマトリックス合成部
24 第2のマトリックス合成部
31 画像入力部
32 逆ガンマ処理部
DESCRIPTION OF SYMBOLS 1 Image sensor 2 A / D converter 3 OB subtractor 4 Demosaic processing part 5 White balance gain multiplier 6 Underwater optical path length calculation part 7 Color restoration matrix production | generation part 8 Color restoration matrix multiplier 9 Aqua land switch 10 Matrix multiplier 11 Gamma processing unit 12 Video recording unit 21 Matrix synthesis unit 22 White balance matrix generation unit 23 First matrix synthesis unit 24 Second matrix synthesis unit 31 Image input unit 32 Inverse gamma processing unit

Claims (11)

被写体光の水中光路長を算出する水中光路長算出手段と、
算出された水中光路長に基づいて色復元情報を生成する色復元情報生成手段と、
前記色復元情報とホワイトバランスゲインとに基づいて、入力されたピクセル値を補正するピクセル値補正手段と、
水中撮影時の被写体周辺のホワイトバランスゲインを設定するホワイトバランス設定手段と、
設定された前記ホワイトバランスゲインに基づいて、被写体の光源色を算出する光源色算出手段と、を備え、
前記水中光路長算出手段は、前記光源色算出手段にて算出された光源色に基づいて、被写体光の水中光路長を算出することを特徴とする画像処理装置。
An underwater optical path length calculating means for calculating an underwater optical path length of subject light;
Color restoration information generating means for generating color restoration information based on the calculated underwater optical path length;
Pixel value correcting means for correcting an input pixel value based on the color restoration information and the white balance gain;
A white balance setting means for setting a white balance gain around the subject when shooting underwater;
Light source color calculation means for calculating the light source color of the subject based on the set white balance gain,
The underwater optical path length calculating unit calculates an underwater optical path length of subject light based on the light source color calculated by the light source color calculating unit.
前記色復元情報生成手段は、色と色とを対応づけるカラーマッピングを使用して前記色復元情報を生成することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the color restoration information generation unit generates the color restoration information using color mapping that associates colors with each other. 被写体光の水中光路長を算出する水中光路長算出手段と、
算出された水中光路長に基づいて色復元マトリックスを生成する色復元マトリックス生成手段と、
前記色復元マトリックスとホワイトバランスゲインとに基づいて、入力されたピクセル値を補正するマトリックス乗算手段と、
水中撮影時の被写体周辺のホワイトバランスゲインを設定するホワイトバランス設定手段と、
設定された前記ホワイトバランスゲインに基づいて、被写体の光源色を算出する光源色算出手段と、を備え、
前記水中光路長算出手段は、前記光源色算出手段にて算出された光源色に基づいて、被写体光の水中光路長を算出することを特徴とする画像処理装置。
An underwater optical path length calculating means for calculating an underwater optical path length of subject light;
Color restoration matrix generating means for generating a color restoration matrix based on the calculated underwater optical path length;
Matrix multiplication means for correcting input pixel values based on the color restoration matrix and white balance gain;
A white balance setting means for setting a white balance gain around the subject when shooting underwater;
Light source color calculation means for calculating the light source color of the subject based on the set white balance gain,
The underwater optical path length calculating unit calculates an underwater optical path length of subject light based on the light source color calculated by the light source color calculating unit.
前記水中光路長算出手段は、所定の色温度を持つ完全放射体または地上に降り注ぐ光の平均値から算出された昼光からの光が水面に降り注ぐ場合における、水中光路長と色座標との対応関係を示すデータを参照して、前記光源色算出手段にて算出された光源色を用いて被写体光の水中光路長を算出することを特徴とする請求項1乃至3のいずれかに記載の画像処理装置。 The underwater optical path length calculation means is a correspondence between the underwater optical path length and the color coordinates when light from daylight calculated from an average value of a perfect radiator having a predetermined color temperature or light falling on the ground falls on the water surface. It refers to data indicating a relationship between an image according to any one of claims 1 to 3, characterized in that to calculate the water path length of the object light using a light source color that is calculated by the light source color calculation means Processing equipment. 前記光源色算出手段は、前記ホワイトバランスゲインを与えた場合に光源色が無彩色になる条件に基づいて、光源色を算出することを特徴とする請求項1乃至4のいずれかに記載の画像処理装置。 The light source color calculation means, based on the condition in which the light source colors when given the white balance gain is achromatic image according to any one of claims 1 to 4, characterized in that to calculate the light source color Processing equipment. 前記ホワイトバランス設定手段は、水中で無彩色の被写体を撮像装置により撮像して得られた画像の色が本来の無彩色になるように前記ホワイトバランスゲインを設定することを特徴とする請求項1乃至5のいずれかに記載の画像処理装置。 The white balance setting means, according to claim 1, characterized in that setting the white balance gain so that the color of an image obtained by imaging by the imaging device an object of achromatic in water is the original achromatic 6. The image processing device according to any one of 5 to 5 . 前記ホワイトバランス設定手段は、撮像装置に取り付けられたホワイトバランスを測定可能な環境光センサにて検出された情報に基づいて前記ホワイトバランスゲインを設定することを特徴とする請求項1乃至5のいずれかに記載の画像処理装置。 The white balance setting means any of claims 1 to 5, characterized in that setting the white balance gain based on the detected information white balance attached to the imaging apparatus in the measurable ambient light sensor An image processing apparatus according to claim 1. 撮像装置による撮像が水中で行われたのか、あるいは陸上で行われたのかを選択する水陸選択手段を備え、
前記ホワイトバランス設定手段は、前記水陸選択手段の選択結果に応じて、前記撮像装置で撮像されて入力されたピクセル値に対して画像処理を行って、水中撮影に対応した前記ホワイトバランスゲイン、または陸上撮影に対応した前記ホワイトバランスゲインを設定することを特徴とする請求項1乃至5のいずれかに記載の画像処理装置。
Equipped with a land-and-land selection means for selecting whether the imaging by the imaging device was performed underwater or on land,
The white balance setting unit performs image processing on a pixel value captured and input by the imaging device according to a selection result of the land / land selection unit, and the white balance gain corresponding to underwater shooting, or the image processing apparatus according to any one of claims 1 to 5, characterized in that setting the white balance gain corresponding to the land photography.
水中光路長または水深に関する情報を入力する水中光路長情報入力手段を備え、
前記ホワイトバランス設定手段は、入力された前記情報に基づいて、前記ホワイトバランスゲインを設定することを特徴とする請求項1乃至5のいずれかに記載の画像処理装置。
Underwater optical path length information input means for inputting information on the underwater optical path length or water depth,
The white balance setting means, based on the information input, the image processing apparatus according to any one of claims 1 to 5, characterized in that setting the white balance gains.
前記入力されたピクセル値は、RAWデータであり、
前記マトリックス乗算手段は、前記RAWデータに応じたピクセル値と、前記色復元マトリックスと、前記ホワイトバランスゲインと、色空間変換マトリックスとを乗じることにより、前記RAWデータに対応するピクセル値を算出することを特徴とする請求項1乃至のいずれかに記載の画像処理装置。
The input pixel value is RAW data;
The matrix multiplication unit calculates a pixel value corresponding to the RAW data by multiplying a pixel value corresponding to the RAW data, the color restoration matrix, the white balance gain, and a color space conversion matrix. An image processing apparatus according to any one of claims 1 to 9 .
前記入力されたピクセル値は、所定の画像ファイル形式からなる画像データを入力光量と比例関係になるようにガンマ変換されたものであり、
前記マトリックス乗算手段は、前記画像データに応じたピクセル値と、前記色復元マトリックスと、前記ホワイトバランスゲインと、色空間変換マトリックスとを乗じることにより、前記画像データに対応するピクセル値を算出することを特徴とする請求項1乃至のいずれかに記載の画像処理装置。
The input pixel value is obtained by gamma-converting image data having a predetermined image file format so as to be proportional to the input light amount,
The matrix multiplying unit calculates a pixel value corresponding to the image data by multiplying a pixel value corresponding to the image data, the color restoration matrix, the white balance gain, and a color space conversion matrix. An image processing apparatus according to any one of claims 1 to 9 .
JP2007063892A 2007-03-13 2007-03-13 Image processing device Active JP4860512B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007063892A JP4860512B2 (en) 2007-03-13 2007-03-13 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007063892A JP4860512B2 (en) 2007-03-13 2007-03-13 Image processing device

Publications (2)

Publication Number Publication Date
JP2008227951A JP2008227951A (en) 2008-09-25
JP4860512B2 true JP4860512B2 (en) 2012-01-25

Family

ID=39846020

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007063892A Active JP4860512B2 (en) 2007-03-13 2007-03-13 Image processing device

Country Status (1)

Country Link
JP (1) JP4860512B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256536A (en) * 2017-06-05 2017-10-17 河海大学 A kind of underwater image restoration method sparse based on color constancy and group

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8913154B2 (en) * 2010-02-04 2014-12-16 Canon Kabushiki Kaisha Image processing apparatus
JP5687464B2 (en) 2010-09-29 2015-03-18 オリンパスイメージング株式会社 Imaging apparatus and image processing method
JP5775318B2 (en) * 2011-02-04 2015-09-09 キヤノン株式会社 Image processing apparatus and image processing method
CN105981379B (en) * 2014-09-17 2018-09-25 深圳市大疆创新科技有限公司 Auto white balance system and method
CN112488948B (en) * 2020-12-03 2023-05-16 大连海事大学 Underwater image restoration method based on black pixel point estimation back scattering
CN115619628B (en) * 2022-12-05 2023-05-23 荣耀终端有限公司 Image processing method and terminal equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3528202B2 (en) * 1993-06-04 2004-05-17 株式会社ニコン Electronic still camera
JP2004023347A (en) * 2002-06-14 2004-01-22 Canon Inc Apparatus, system and method of image processing, storage medium and program
JP2004146928A (en) * 2002-10-22 2004-05-20 Fuji Photo Film Co Ltd Underwater camera
JP2005231488A (en) * 2004-02-19 2005-09-02 Seiko Epson Corp Diving mask, control method for display device for diving mask, control program and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256536A (en) * 2017-06-05 2017-10-17 河海大学 A kind of underwater image restoration method sparse based on color constancy and group

Also Published As

Publication number Publication date
JP2008227951A (en) 2008-09-25

Similar Documents

Publication Publication Date Title
JP4860512B2 (en) Image processing device
US7830566B2 (en) Image processing method and device enabling faithful reproduction of appearance and further preferred color reproduction of appearance, image output device and digital camera using the same, and image processing program for executing the image processing method and recording medium on which the program is recorded
JP5253000B2 (en) Imaging device
JP2003284084A (en) Image processing apparatus and method, and manufacturing method of image processing apparatus
US9077944B2 (en) Image pickup device, image processing method, and storage medium
JP5195430B2 (en) Image processing method, image processing program, image processing apparatus, camera
JP5407600B2 (en) Image processing apparatus, image processing method, and electronic camera
US8369654B2 (en) Developing apparatus, developing method and computer program for developing processing for an undeveloped image
US8786728B2 (en) Image processing apparatus, image processing method, and storage medium storing image processing program
JP6974156B2 (en) Image color conversion device, image color conversion program, image color conversion method
JP5136209B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for development processing
US11190745B2 (en) Image processing apparatus and image processing method
US8654210B2 (en) Adaptive color imaging
JP4396332B2 (en) Digital camera
JP2005117524A (en) Image processing system
JP2009055077A (en) Imaging apparatus
JP5031442B2 (en) Color processing method and apparatus
JP4622510B2 (en) Imaging apparatus, image processing method, and program
JP2003179939A (en) Color chart, image data generating device, profile creating method utilizing color chart, and recording medium for recording profile creating program
JP4752434B2 (en) Color correction processing program and electronic camera
JP4298595B2 (en) Imaging apparatus and signal processing method thereof
JP5109804B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for development processing
JP2007142978A (en) Image processing method and imaging apparatus
JP2015162870A (en) digital camera and image processing program
JPWO2005041588A1 (en) Electronic device with photographing function having color correction function, and color correction method of image data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110715

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110913

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111004

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111102

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4860512

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141111

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250