JP6260512B2 - Imaging apparatus, imaging method, and imaging program - Google Patents
Imaging apparatus, imaging method, and imaging program Download PDFInfo
- Publication number
- JP6260512B2 JP6260512B2 JP2014217320A JP2014217320A JP6260512B2 JP 6260512 B2 JP6260512 B2 JP 6260512B2 JP 2014217320 A JP2014217320 A JP 2014217320A JP 2014217320 A JP2014217320 A JP 2014217320A JP 6260512 B2 JP6260512 B2 JP 6260512B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- pixel value
- imaging
- unit
- pixel
- 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
Links
Images
Landscapes
- Processing Of Color Television Signals (AREA)
- Studio Devices (AREA)
- Color Television Image Signal Generators (AREA)
Description
本発明は、撮像技術に関する。 The present invention relates to an imaging technique.
従来、例えば夜間等の可視光がほとんどない環境下において被写体を撮像するために、赤外線投光器によって被写体に赤外光を照射し、被写体から反射した赤外光を撮像する方法が用いられている。この方法は、可視光を照射するライトを用いることができない場合に有効な撮像方法である。 Conventionally, in order to image a subject in an environment where there is almost no visible light such as at night, a method of irradiating the subject with infrared light using an infrared projector and imaging infrared light reflected from the subject has been used. This method is an effective imaging method when a light that emits visible light cannot be used.
しかしながら、この撮像方法によって被写体を撮像した映像は、モノクロ映像となる。モノクロ映像では物体の識別が困難となることがある。可視光がない環境下でもカラー映像を撮像することができれば、物体の識別性を向上させることができる。例えば監視カメラでは、物体の識別性を向上させるために、可視光がない環境下でもカラー映像を撮像することが望まれる。 However, an image obtained by imaging a subject by this imaging method is a monochrome image. In monochrome images, it may be difficult to identify an object. If a color image can be captured even in an environment where there is no visible light, the object identification can be improved. For example, in a surveillance camera, it is desired to capture a color image even in an environment without visible light in order to improve the object identification.
特許文献1には、可視光がない環境下でもカラー映像を撮像することができる撮像装置が記載されている。特許文献1に記載されている撮像装置においても、赤外線投光器が用いられる。監視カメラに特許文献1に記載の技術を搭載すれば、被写体をカラー映像化して物体の識別性を向上させることが可能となる。
ところで、可視光がある環境下で被写体を撮像する通常の撮像装置においては、映像信号の色をどのような調整方法で調整するかが確立されている。しかしながら、可視光がほとんどない環境下で被写体に赤外光を照射して被写体をカラー映像化する暗視用の撮像装置においては、映像信号の色をどのような調整方法で調整するかが確立されていない。 By the way, in an ordinary imaging apparatus that images a subject in an environment with visible light, it has been established how to adjust the color of a video signal. However, in an imaging device for night vision that irradiates a subject with infrared light in an environment where there is almost no visible light to produce a color image of the subject, it has been established how to adjust the color of the video signal. It has not been.
即ち、暗視用の撮像装置において、色再現性のよい映像信号を得るために、映像信号の色をどのように調整するかの手法は確立されておらず、調整手法を確立することが求められている。 That is, in order to obtain a video signal with good color reproducibility in an imaging device for night vision, a method for adjusting the color of the video signal has not been established, and it is necessary to establish an adjustment method. It has been.
本発明は、赤外光を投光した状態において色再現性のよい映像信号を得ることができる技術を提供することを目的とする。 An object of the present invention is to provide a technique capable of obtaining a video signal with good color reproducibility in a state where infrared light is projected.
赤外光を投光する赤外線投光器を制御する投光制御部と、赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像部と、前記撮像信号に基づいてカラー映像信号を生成する映像処理部と、カラー映像信号を出力する映像出力部と、被写体を検出する被写体検出部とを備え、前記映像出力部が出力するカラー映像信号における各色間の画素値の比は前記被写体検出部による検出結果に応じて異なることを特徴とする撮像装置を提供する。 A projection control unit that controls an infrared projector that projects infrared light; an imaging unit that captures an image of a subject in a state in which the infrared projector is controlled so as to project infrared light; and Each color in the color video signal output by the video output unit includes a video processing unit that generates a color video signal based on the imaging signal, a video output unit that outputs the color video signal, and a subject detection unit that detects a subject. An image pickup apparatus is provided in which the ratio of the pixel values between them differs according to the detection result of the subject detection unit.
また、赤外光を投光する赤外線投光器を制御する投光制御ステップと、赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像ステップと、前記撮像信号に基づいてカラー映像信号を生成する映像処理ステップと、カラー映像信号を出力する映像出力ステップと、被写体を検出する被写体検出ステップとを有し、前記映像出力ステップにおいて出力するカラー映像信号における各色間の画素値の比は前記被写体検出部による検出結果に応じて異なることを特徴とする撮像方法を提供する。
また、コンピュータを、赤外光を投光する赤外線投光器を制御する投光制御手段、赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して生成された撮像信号に基づいてカラー映像信号を生成する映像処理手段、カラー映像信号を出力する映像出力手段、被写体を検出する被写体検出手段、として機能させ、前記映像出力手段が出力するカラー映像信号における各色間の画素値の比は前記被写体検出部による検出結果に応じて異なることを特徴とする撮像プログラムを提供する。
Also, a projection control step for controlling an infrared projector that projects infrared light, and an imaging step for generating an imaging signal by imaging a subject in a state in which the infrared projector is controlled to project infrared light. A color image output step in the video output step, including a video processing step for generating a color video signal based on the imaging signal, a video output step for outputting the color video signal, and a subject detection step for detecting a subject. There is provided an imaging method characterized in that a ratio of pixel values between colors in a signal varies depending on a detection result by the subject detection unit.
In addition, a projection control means for controlling an infrared projector for projecting infrared light, an imaging signal generated by imaging a subject in a state where the infrared projector is controlled to project infrared light. A pixel value between each color in the color video signal output by the video output means, functioning as a video processing means for generating a color video signal based on the image output means, a video output means for outputting the color video signal, and a subject detection means for detecting a subject. The imaging program is characterized in that the ratio varies depending on the detection result by the subject detection unit.
本発明によれば、赤外光を投光した状態において色再現性のよい映像信号を得ることができる。 According to the present invention, it is possible to obtain a video signal with good color reproducibility in a state where infrared light is projected.
以下、一実施形態の撮像装置、撮像方法、撮像プログラムについて、添付図面を参照して説明する。 Hereinafter, an imaging apparatus, an imaging method, and an imaging program according to an embodiment will be described with reference to the accompanying drawings.
<撮像装置の構成>
まず、図1を用いて、一実施形態の撮像装置の全体的な構成について説明する。図1に示す一実施形態の撮像装置は、昼間等の可視光が十分に存在する環境下に適した通常モードと、夜間等の可視光がほとんどない環境下に適した暗視モードと、可視光がわずかに存在する環境下に適した中間モードとの3つのモードで撮像可能な撮像装置である。
<Configuration of imaging device>
First, the overall configuration of an imaging apparatus according to an embodiment will be described with reference to FIG. An imaging apparatus according to an embodiment shown in FIG. 1 includes a normal mode suitable for an environment where there is sufficient visible light such as daytime, a night vision mode suitable for an environment where there is almost no visible light such as nighttime, and a visible mode. This is an imaging device capable of imaging in three modes, an intermediate mode suitable for an environment where light is slightly present.
中間モードは、可視光が少ない環境下で、赤外線を投光しながら撮像する第1の赤外光投光モードである。暗視モードは、可視光がさらに少ない(ほとんどない)環境下で、赤外線を投光しながら撮像する第2の赤外光投光モードである。 The intermediate mode is a first infrared light projection mode in which imaging is performed while projecting infrared light in an environment with little visible light. The night vision mode is a second infrared light projection mode in which imaging is performed while projecting infrared light in an environment where there is even less (almost) no visible light.
撮像装置は、中間モードと暗視モードとのうちの一方のみを備えていてもよい。撮像装置は、通常モードを備えていなくてもよい。撮像装置は、少なくとも、赤外線を投光しながら撮像する赤外光投光モードを備えていればよい。 The imaging device may include only one of the intermediate mode and the night vision mode. The imaging device may not have the normal mode. The imaging apparatus should just be equipped with the infrared light projection mode which images at least while projecting infrared rays.
図1において、被写体から反射した一点鎖線にて示す光は、光学レンズ1によって集光される。ここで、光学レンズ1には、可視光が十分に存在する環境下では可視光、可視光がほとんどない環境下では後述する赤外線投光器9より発せられた赤外光を被写体が反射した赤外光が入射される。
In FIG. 1, the light indicated by the alternate long and short dash line reflected from the subject is collected by the
可視光がわずかに存在する環境下では、光学レンズ1には、可視光と赤外線投光器9より発せられた赤外光を被写体が反射した赤外光とが混在した光が入射される。
Under an environment where there is a slight amount of visible light, the
図1では簡略化のため、光学レンズ1を1つのみとしているが、実際には、撮像装置は複数の光学レンズを備える。
Although only one
光学レンズ1と撮像部3との間には、光学フィルタ2が設けられている。光学フィルタ2は、赤外線カットフィルタ21とダミーガラス22との2つの部分を有する。光学フィルタ2は、駆動部8によって、光学レンズ1と撮像部3との間に赤外線カットフィルタ21を挿入した状態と、光学レンズ1と撮像部3との間にダミーガラス22を挿入した状態とのいずれかの状態に駆動される。
An
撮像部3は、水平方向及び垂直方向に複数の受光素子(画素)が配列した撮像素子31と、それぞれの受光素子に対応して赤色(R),緑色(G),青色(B)のいずれかの色のフィルタエレメントが配置されたカラーフィルタ32とを有する。撮像素子31は、CCD(Charge Coupled Device)またはCMOS(Complementary Metal Oxide Semiconductor)でよい。
The
カラーフィルタ32には、一例として、図2に示すように、R,G,Bの各色のフィルタエレメントがベイヤ配列と称される配列で並べられている。ベイヤ配列は、R,G,Bのフィルタエレメントの所定の配列の一例である。図2において、各行のRのフィルタエレメントに挟まれたGのフィルタエレメントをGr、Bのフィルタエレメントに挟まれたGのフィルタエレメントをGbとしている。
As an example, as shown in FIG. 2, the
ベイヤ配列では、RのフィルタエレメントとGrのフィルタエレメントとが交互に配置された水平方向の行と、BのフィルタエレメントとGbのフィルタエレメントとが交互に配置された水平方向の行とが、垂直方向に交互に配列されている。 In the Bayer array, horizontal rows in which R filter elements and Gr filter elements are alternately arranged and horizontal rows in which B filter elements and Gb filter elements are alternately arranged are vertically arranged. They are arranged alternately in the direction.
図3は、撮像部3におけるR光,G光,B光の波長と相対感度との分光感度特性を示している。相対感度は、最大値が1に正規化されている。撮像装置を通常モードで動作させるとき、可視光による良好なカラー映像を撮像するには、波長700nm以上の赤外光をカットする必要がある。
FIG. 3 shows spectral sensitivity characteristics of the wavelengths of R light, G light, and B light and relative sensitivity in the
そこで、駆動部8は、制御部7による制御に基づいて、光学レンズ1と撮像部3との間に赤外線カットフィルタ21を挿入するように光学フィルタ2を駆動する。
Therefore, the drive unit 8 drives the
図3より分かるように、撮像部3は、波長700nm以上の赤外光の領域においても感度を有する。そこで、撮像装置を中間モードまたは暗視モードで動作させるときには、駆動部8は、制御部7による制御に基づいて、光学レンズ1と撮像部3との間の赤外線カットフィルタ21を外してダミーガラス22を挿入するように光学フィルタ2を駆動する。
As can be seen from FIG. 3, the
光学レンズ1と撮像部3との間にダミーガラス22を挿入した状態では、波長700nm以上の赤外光はカットされない。よって、撮像装置は、図3に破線の楕円で囲んだ部分の感度を利用して、R,G,Bの各色情報を得ることが可能となる。ダミーガラス22を挿入するのは、光路長を、赤外線カットフィルタ21を挿入した場合の光路長と同じにするためである。
In a state where the
赤外線投光器9は、それぞれ、波長IR1,IR2,IR3の赤外光を投光する投光部91,92,93を有する。中間モードまたは暗視モードのとき、制御部7内の投光制御部71は、時分割で投光部91〜93より波長IR1〜IR3の赤外光を選択的に投光させるように制御する。
The
ところで、撮像素子31にはシリコンウェハが用いられている。図4は、R,G,Bそれぞれの色を呈する素材に白色光を照射した場合の各波長における反射率にシリコンの受光感度を乗じたときの、波長と相対検出率との関係を示している。図4においても、相対検出率は、最大値が1に正規化されている。
Incidentally, a silicon wafer is used for the
図4に示すように、赤外光の領域において、例えば、波長780nmにおける反射光はR色を呈する素材の反射光との相関性が高く、波長870nmにおける反射光はB色を呈する素材の反射光との相関性が高く、波長940nmにおける反射光はG色を呈する素材の反射光との相関性が高い。 As shown in FIG. 4, in the infrared light region, for example, the reflected light at a wavelength of 780 nm is highly correlated with the reflected light of a material exhibiting an R color, and the reflected light at a wavelength of 870 nm is a reflection of a material exhibiting a B color. Correlation with light is high, and reflected light at a wavelength of 940 nm is highly correlated with reflected light of a material exhibiting G color.
そこで、本実施形態においては、投光部91,92,93が投光する赤外光の波長IR1,IR2,IR3を、780nm,940nm,870nmとする。これらの波長は、波長IR1〜IR3の一例であり、780nm,940nm,870nm以外でもよい。
Therefore, in this embodiment, the wavelengths IR1, IR2, and IR3 of the infrared light projected by the
投光部91が波長IR1の赤外光を被写体に照射し、被写体から反射した光を撮像した映像信号をR信号に割り当てる。投光部93が波長IR2の赤外光を被写体に照射し、被写体から反射した光を撮像した映像信号をG信号に割り当てる。投光部92が波長IR3の赤外光を被写体に照射し、被写体から反射した光を撮像した映像信号をB信号に割り当てる。
The
このようにすれば、原理的に、中間モードまたは暗視モードにおいても、通常モードにおいて可視光が存在する環境下で被写体を撮像した場合と同様の色を再現することができる。 In this way, in principle, even in the intermediate mode or the night vision mode, it is possible to reproduce the same color as when the subject is imaged in an environment where visible light exists in the normal mode.
色味が被写体の実際の色味と異なるカラー映像となるものの、780nmの波長IR1をR光、870nmの波長IR3をG光、940nmの波長IR2をB光に割り当ててもよい。波長IR1,IR2,IR3をR光,G光,B光に任意に割り当てることも可能である。 Although the color image is different from the actual color of the subject, a wavelength IR1 of 780 nm may be assigned to the R light, a wavelength IR3 of 870 nm may be assigned to the G light, and a wavelength IR2 of 940 nm may be assigned to the B light. The wavelengths IR1, IR2, and IR3 can be arbitrarily assigned to the R light, G light, and B light.
本実施形態においては、被写体の色味を最もよく再現する、波長IR1,IR2,IR3をそれぞれR光,G光,B光に割り当てることとする。 In the present embodiment, the wavelengths IR1, IR2, and IR3 that best reproduce the color of the subject are assigned to R light, G light, and B light, respectively.
制御部7は、撮像部3における撮像と、映像処理部5内の各部と、映像出力部6とを制御する。制御部7は、投光制御部71の他、通常モードと中間モードと暗視モードとを切り換えるモード切換部72と、後述する色ゲイン設定部62によって3原色データ(R画素値,G画素値,B画素値)に乗じる色ゲインを調整して設定するよう制御する色ゲイン制御部73とを備える。
The
モード切換部72は、通常モードと中間モードと暗視モードとに対応させて、映像処理部5内の動作を後述のように適宜切り換える。映像処理部5と制御部7とが一体化されていてもよい。
The
撮像部3によって撮像された映像信号はA/D変換器4によってA/D変換され、映像処理部5に入力される。撮像部3とA/D変換器4とが一体化されていてもよい。
The video signal captured by the
映像処理部5は、スイッチ51,53と、前信号処理部52と、デモザイク処理部54とを有する。スイッチ51,53は物理的なスイッチであってもよく、前信号処理部52の動作と不動作とを切り換えるための概念的なスイッチであってもよい。制御部7には、撮像している映像の明るさを検出するために、映像処理部5から映像信号が入力される。
The
図5に示すように、前信号処理部52は、周囲画素加算部521と、同一位置画素加算部522と、合成部523とを有する。
As illustrated in FIG. 5, the previous
映像処理部5は、R,G,Bの3原色データを生成して、映像出力部6に供給する。映像出力部6は、3原色データを所定の形式で図示していない表示部等へと出力する。
The
映像出力部6は、R,G,B信号をそのまま出力してもよいし、R,G,B信号を輝度信号と色信号(または色差信号)に変換して出力してもよい。映像出力部6は、コンポジット映像信号を出力してもよい。映像出力部6は、デジタル信号の映像信号を出力してもよいし、D/A変換器によってアナログ信号に変換した映像信号を出力してもよい。
The
映像出力部6は、R,G,Bの3原色データのそれぞれに所定の色ゲインを乗じてR,G,Bのバランス(比率)を調整する色ゲイン設定部62を有する。色ゲイン設定部62は、通常モードにおける映像信号のホワイトバランスを調整するために、色ゲインを設定することができる。色ゲイン設定部62は、暗視モードにおいて、R,G,Bのバランスを調整するために、色ゲインを設定してもよい。
The
ここでは、色ゲイン設定部62を映像出力部6内に設けているが、映像処理部5内に設けてもよく、その設ける位置は任意である。
Here, the color
以下、通常モードと中間モードと暗視モードとのそれぞれの具体的な動作について説明する。 Hereinafter, specific operations in the normal mode, the intermediate mode, and the night vision mode will be described.
<通常モード>
通常モードでは、制御部7は、駆動部8によって、光学レンズ1と撮像部3との間に赤外線カットフィルタ21を挿入させる。投光制御部71は、赤外線投光器9による赤外光の投光をオフにする。
<Normal mode>
In the normal mode, the
撮像部3によって撮像された映像信号は、A/D変換器4によってデジタル信号である映像データに変換されて、映像処理部5に入力される。通常モードでは、モード切換部72は、スイッチ51,53を端子Tbに接続するように制御する。
The video signal imaged by the
図6の(a)は、撮像部3の露光Ex1,Ex2,Ex3…を示している。実際には露光時間はシャッタスピード等の条件によって変化するが、ここでは露光Ex1,Ex2,Ex3は最大露光時間を示している。 FIG. 6A shows exposures Ex1, Ex2, Ex3,... Actually, the exposure time varies depending on conditions such as the shutter speed. Here, the exposures Ex1, Ex2, and Ex3 indicate the maximum exposure time.
図6の(b)は、それぞれの映像信号のフレームが得られるタイミングを示している。露光Ex1の前の図示していない露光に基づいて、所定時間後に映像信号のフレームF0が得られる。露光Ex1に基づいて、所定時間後に映像信号のフレームF1が得られる。露光Ex2に基づいて、所定時間後に映像信号のフレームF2が得られる。露光Ex3以降も同様である。映像信号のフレーム周波数を、例えば30フレーム/秒とする。 FIG. 6B shows the timing at which each video signal frame is obtained. Based on an exposure (not shown) before the exposure Ex1, a frame F0 of the video signal is obtained after a predetermined time. Based on the exposure Ex1, a frame F1 of the video signal is obtained after a predetermined time. Based on the exposure Ex2, a frame F2 of the video signal is obtained after a predetermined time. The same applies to exposure Ex3 and thereafter. The frame frequency of the video signal is set to 30 frames / second, for example.
映像信号のフレーム周波数は、NTSC方式であれば30フレーム/秒または60フレーム/秒、PAL方式であれば25フレーム/秒または50フレーム/秒のように適宜設定すればよい。また、映像信号のフレーム周波数は、映画で使われている24フレーム/秒であってもよい。 The frame frequency of the video signal may be set as appropriate, such as 30 frames / second or 60 frames / second for the NTSC system and 25 frames / second or 50 frames / second for the PAL system. The frame frequency of the video signal may be 24 frames / second used in movies.
A/D変換器4より出力された各フレームの映像データは、スイッチ51,53を介してデモザイク処理部54に入力される。デモザイク処理部54は、入力された各フレームの映像データにデモザイク処理を施す。映像処理部5は、デモザイク処理の他、ホワイトバランス補正やゲイン補正等の各種の映像処理を施して、R,G,Bの3原色データを出力する。
The video data of each frame output from the A / D converter 4 is input to the
図7を用いて、デモザイク処理部54におけるデモザイク処理について説明する。図7において、(a)は映像データの任意のフレームFmを示している。フレームFmは、有効映像期間の画素によって構成されたフレームである。映像データの画素数は、例えばVGA規格では水平640画素、垂直480画素である。ここでは簡略化のため、フレームFmの画素数を大幅に少なくして、フレームFmを概念的に示している。
The demosaic processing in the
ベイヤ配列の撮像部3を用いて生成された映像データは、フレームFm内で、R,G,Bの画素データが混在したデータである。デモザイク処理部54は、Rの画素データが存在しない画素位置のRの画素データを周囲のRの画素データを用いて算出したRの補間画素データRiを生成する。デモザイク処理部54は、図7の(b)に示す1フレームの全画素がRの画素データよりなるRフレームFmRを生成する。
The video data generated using the Bayer
デモザイク処理部54は、Gの画素データが存在しない画素位置のGの画素データを周囲のGの画素データを用いて算出したGの補間画素データGiを生成する。デモザイク処理部54は、図7の(c)に示す1フレームの全画素がGの画素データよりなるGフレームFmGを生成する。
The
デモザイク処理部54は、Bの画素データが存在しない画素位置のBの画素データを周囲のBの画素データを用いて算出したBの補間画素データBiを生成する。デモザイク処理部54は、図7の(d)に示す1フレームの全画素がBの画素データよりなるBフレームFmBを生成する。
The
デモザイク処理部54は、Rの画素データを補間する際には少なくともRの画素データを用いればよく、Gの画素データを補間する際には少なくともGの画素データを用いればよく、Bの画素データを補間する際には少なくともBの画素データを用いればよい。デモザイク処理部54は、補間精度を向上させるために、R,G,Bの画素データを補間する際に、生成しようとする補間画素データの色とは異なる他の色の画素データを用いてもよい。
The
撮像部3には、有効映像期間より外側の画素も存在しているため、フレームFmの上下左右端部に位置する画素においても、R,G,Bの画素データを補間することができる。
Since there are pixels outside the effective video period in the
デモザイク処理部54によって生成されたRフレームFmR,GフレームFmG,BフレームFmBがR,G,Bの3原色データとして出力される。図6では、理解を容易にするため、R,G,Bの画素データをフレーム単位で説明したが、実際には、R,G,Bの画素データは画素ごとに順次出力される。
The R frame FmR, G frame FmG, and B frame FmB generated by the
<中間モード:第1中間モード>
中間モード(第1中間モード及び後述する第2中間モード)では、制御部7は、駆動部8によって、光学レンズ1と撮像部3との間にダミーガラス22を挿入させる。投光制御部71は、赤外線投光器9による赤外光の投光をオンにする。モード切換部72は、スイッチ51,53を端子Taに接続するように制御する。
<Intermediate mode: first intermediate mode>
In the intermediate mode (first intermediate mode and second intermediate mode described later), the
図8の(a)は、赤外線投光器9による赤外光の投光の状態を示している。制御部7は、通常モードの1フレーム期間を1/3ずつに分け、例えば投光部91,92,93の順に赤外光を投光させるように制御する。
FIG. 8A shows a state of infrared light projection by the
図8の(a)に示す例では、1フレームの最初の1/3の期間では、波長IR1(780nm)の赤外光が被写体に照射される。1フレームの次の1/3の期間では、波長IR2(940nm)の赤外光が被写体に照射される。1フレームの最後の1/3の期間では、波長IR3(870nm)の赤外光が被写体に照射される。波長IR1〜IR3の赤外光を投光する順番は任意である。 In the example shown in FIG. 8A, infrared light having a wavelength IR1 (780 nm) is irradiated onto the subject in the first 3 period of one frame. In the next 1/3 period of one frame, the subject is irradiated with infrared light having a wavelength IR2 (940 nm). In the last 1/3 period of one frame, the subject is irradiated with infrared light having a wavelength IR3 (870 nm). The order of projecting infrared light with wavelengths IR1 to IR3 is arbitrary.
図8の(b)に示すように、波長IR1の赤外光を投光しているタイミングでは、撮像部3はR光との相関性が高い露光Ex1Rが行われる。波長IR2の赤外光を投光しているタイミングでは、撮像部3はG光との相関性が高い露光Ex1Gが行われる。波長IR3の赤外光を投光しているタイミングでは、撮像部3はB光との相関性が高い露光Ex1Bが行われる。
As shown in FIG. 8B, at the timing when infrared light having the wavelength IR1 is projected, the
但し、中間モードでは、可視光がわずかに存在する環境下での撮像であるため、可視光と赤外線投光器9より投光された赤外光とが混在した状態である。よって、中間モードにおいては、露光Ex1R,Ex1G,Ex1B,Ex2R,Ex2G,Ex2B…は、可視光による露光と赤外光による露光とを合わせた露光となる。
However, in the intermediate mode, since imaging is performed in an environment where there is a small amount of visible light, visible light and infrared light projected from the
図8の(c)に示すように、露光Ex1R,Ex1G,Ex1Bに基づいて、所定時間後に、露光Ex1Rに対応したフレームF1IR1、露光Ex1Gに対応したフレームF1IR2、露光Ex1Bに対応したフレームF1IR3が得られる。 As shown in FIG. 8C, based on the exposures Ex1R, Ex1G, and Ex1B, a frame F1IR1 corresponding to the exposure Ex1R, a frame F1IR2 corresponding to the exposure Ex1G, and a frame F1IR3 corresponding to the exposure Ex1B are obtained after a predetermined time. It is done.
また、露光Ex2R,Ex2G,Ex2Bに基づいて、所定時間後に、露光Ex2Rに対応したフレームF2IR1、露光Ex2Gに対応したフレームF2IR2、露光Ex2Bに対応したフレームF2IR3が得られる。露光Ex3R,Ex3G,Ex3B以降も同様である。 Further, based on the exposures Ex2R, Ex2G, and Ex2B, a frame F2IR1 corresponding to the exposure Ex2R, a frame F2IR2 corresponding to the exposure Ex2G, and a frame F2IR3 corresponding to the exposure Ex2B are obtained after a predetermined time. The same applies to exposures Ex3R, Ex3G, and Ex3B.
図8の(c)の撮像信号のフレーム周波数は、90フレーム/秒である。中間モードでは、通常モードにおける映像信号の1フレームを時分割して波長IR1〜IR3の赤外光を投光するため、通常モードと同じ形式の映像信号を出力するためには、図8の(c)の撮像信号のフレーム周波数は、通常モードにおけるフレーム周波数の3倍となる。 The frame frequency of the imaging signal in FIG. 8C is 90 frames / second. In the intermediate mode, since one frame of the video signal in the normal mode is time-divided and infrared light of wavelengths IR1 to IR3 is projected, in order to output a video signal in the same format as in the normal mode, ( The frame frequency of the imaging signal in c) is three times the frame frequency in the normal mode.
後述するように、図8の(c)の3フレームの撮像信号に基づいて、図8の(d)に示す30フレーム/秒のフレーム周波数を有する映像信号の1フレームが生成される。例えば、フレームF1IR1,F1IR2,F1IR3に基づいてフレームF1IRが生成され、フレームF2IR1,F2IR2,F2IR3に基づいてフレームF2IRが生成される。 As will be described later, one frame of a video signal having a frame frequency of 30 frames / second shown in FIG. 8D is generated based on the imaging signal of 3 frames shown in FIG. For example, a frame F1IR is generated based on the frames F1IR1, F1IR2, and F1IR3, and a frame F2IR is generated based on the frames F2IR1, F2IR2, and F2IR3.
図8の(c)の3フレームの撮像信号に基づいて、図8の(d)の各フレームの映像信号を生成する中間モードでの動作を具体的に説明する。 The operation in the intermediate mode for generating the video signal of each frame in FIG. 8D based on the three frames of the imaging signal in FIG. 8C will be specifically described.
A/D変換器4より出力された図8の(c)に示す撮像信号に対応する各フレームの映像データは、スイッチ51を介して前信号処理部52に入力される。
Video data of each frame corresponding to the imaging signal shown in FIG. 8C output from the A / D converter 4 is input to the previous
図9を用いて、前信号処理部52における前信号処理について説明する。図9の(a)は、波長IR1の赤外光を投光しているタイミングで生成された映像データの任意のフレームFmIR1を示している。フレームFmIR1内のR,B,Gr,Gbの画素データには、波長IR1の赤外光を投光した状態で生成されたことを示す添え字1を付している。
The previous signal processing in the previous
図9の(b)は、波長IR2の赤外光を投光しているタイミングで生成された映像データの任意のフレームFmIR2を示している。フレームFmIR2内のR,B,Gr,Gbの画素データには、波長IR2の赤外光を投光した状態で生成されたことを示す添え字2を付している。
FIG. 9B shows an arbitrary frame FmIR2 of video data generated at the timing when infrared light having a wavelength IR2 is projected. The R, B, Gr, and Gb pixel data in the frame FmIR2 is attached with a
図9の(c)は、波長IR3の赤外光を投光しているタイミングで生成された映像データの任意のフレームFmIR3を示している。フレームFmIR3内のR,B,Gr,Gbの画素データには、波長IR3の赤外光を投光した状態で生成されたことを示す添え字3を付している。
FIG. 9C shows an arbitrary frame FmIR3 of the video data generated at the timing when the infrared light having the wavelength IR3 is projected. The R, B, Gr, and Gb pixel data in the frame FmIR3 has a
図9の(a)に示すフレームFmIR1は、R光との相関性が高い波長IR1の赤外光が投光された状態で生成された映像データであるので、Rの画素データは投光された赤外光と対応した画素データであり、B,Gの画素データは投光された赤外光と対応していない画素データである。B,Gr,Gbの画素データに付しているハッチングは、投光された赤外光と対応していない画素データであることを意味する。 The frame FmIR1 shown in FIG. 9A is video data generated in a state where infrared light having a wavelength IR1 having a high correlation with the R light is projected. Therefore, the R pixel data is projected. The pixel data corresponding to the infrared light and the pixel data B and G are pixel data not corresponding to the projected infrared light. The hatching attached to the B, Gr, and Gb pixel data means that the pixel data does not correspond to the projected infrared light.
図9の(b)に示すフレームFmIR2は、G光との相関性が高い波長IR2の赤外光が投光された状態で生成された映像データであるので、Gの画素データは投光された赤外光と対応した画素データであり、R,Bの画素データは投光された赤外光と対応していない画素データである。R,Bの画素データに付しているハッチングは、投光された赤外光と対応していない画素データであることを意味する。 The frame FmIR2 shown in FIG. 9B is video data generated in a state where infrared light having a wavelength IR2 having a high correlation with the G light is projected, so that the G pixel data is projected. The pixel data corresponding to the infrared light, and the R and B pixel data are pixel data not corresponding to the projected infrared light. The hatching attached to the R and B pixel data means that the pixel data does not correspond to the projected infrared light.
図9の(c)に示すフレームFmIR3は、B光との相関性が高い波長IR3の赤外光が投光された状態で生成された映像データであるので、Bの画素データは投光された赤外光と対応した画素データであり、R,Gの画素データは投光された赤外光と対応していない画素データである。R,Gr,Gbの画素データに付しているハッチングは、投光された赤外光と対応していない画素データであることを意味する。 The frame FmIR3 shown in FIG. 9C is video data generated in a state where infrared light having a wavelength IR3 having a high correlation with the B light is projected, so that the B pixel data is projected. The pixel data corresponding to the infrared light, and the R and G pixel data are pixel data not corresponding to the projected infrared light. The hatching attached to the R, Gr, and Gb pixel data means pixel data that does not correspond to the projected infrared light.
前信号処理部52内の同一位置画素加算部522は、互いに同じ画素位置のR,Gr,Gb,Bの画素データを以下の式(1)〜(3)に従って個別に加算して、画素データR123,Gr123,Gb123,B123を生成する。中間モードでは、前信号処理部52内の周囲画素加算部521は不動作である。
The same-position
R123=ka×R1+kb×R2+kc×R3 …(1)
G123=kd×G1+ke×G2+kf×G3 …(2)
B123=kg×B1+kh×B2+ki×B3 …(3)
R123 = ka × R1 + kb × R2 + kc × R3 (1)
G123 = kd × G1 + ke × G2 + kf × G3 (2)
B123 = kg × B1 + kh × B2 + ki × B3 (3)
式(1)〜(3)において、R1,G1,B1はフレームFmIR1におけるR,G,Bの画素データ、R2,G2,B2はフレームFmIR2におけるR,G,Bの画素データ、R3,G3,B3はフレームFmIR3におけるR,G,Bの画素データである。ka〜kiは所定の係数である。式(2)におけるG123はGr123またはGb123である。 In the equations (1) to (3), R1, G1, and B1 are R, G, and B pixel data in the frame FmIR1, R2, G2, and B2 are R, G, and B pixel data in the frame FmIR2, R3, G3, B3 is R, G, B pixel data in the frame FmIR3. ka to ki are predetermined coefficients. G123 in Formula (2) is Gr123 or Gb123.
このとき、同一位置画素加算部522は、ハッチングを付していないR,Gr,Gb,Bのそれぞれの画素データに、ハッチングを付した同じ画素位置のR,Gr,Gb,Bの画素データそれぞれを加算する。
At this time, the same-position
即ち、同一位置画素加算部522は、式(1)に基づいて、フレームFmIR1におけるRの画素データに、フレームFmIR2,FmIR3における同じ画素位置のRの画素データを加算して、画素データR123を生成する。つまり、受光素子における赤色のカラーフィルタに対応する領域の画素データだけを用いて赤色用の画素データR123を生成する。
That is, the same-position
同一位置画素加算部522は、式(2)に基づいて、フレームFmIR2におけるGr,Gbの画素データに、フレームFmIR1,FmIR3における同じ画素位置のGr,Gbの画素データを加算して、画素データG123を生成する。つまり、受光素子における緑色のカラーフィルタに対応する領域の画素データだけを用いて緑色用の画素データG123を生成する。
The same-position
同一位置画素加算部522は、式(3)に基づいて、フレームFmIR3におけるBの画素データに、フレームFmIR1,FmIR2における同じ画素位置のBの画素データを加算して、画素データB123を生成する。つまり、受光素子における青色のカラーフィルタに対応する領域の画素データだけを用いて青色用の画素データB123を生成する。
The same-position
前信号処理部52内の合成部523は、それぞれの画素位置において生成された画素データR123,Gr123,Gb123,B123に基づいて、図9の(d)に示す合成映像信号のフレームFmIR123を生成する。
The combining
具体的には、合成部523は、フレームFmIR1における画素データR123と、フレームFmIR2における画素データGr123,Gb123と、フレームFmIR3における画素データB123とを選択して合成する。これによって合成部523は、合成映像信号のフレームFmIR123を生成する。
Specifically, the combining
このように、合成部523は、カラーフィルタ32におけるフィルタエレメントの配列と同じ配列となるように、画素データR123,Gr123,Gb123,B123を配列させたフレームFmIR123を生成する。
As described above, the
第1中間モードにおいては、ハッチングを付していない画素データと、ハッチングを付した画素データとを用いて、フレームFmIR123の映像データを生成する。 In the first intermediate mode, video data of the frame FmIR123 is generated using pixel data that is not hatched and pixel data that is hatched.
同一位置画素加算部522によって互いに同じ画素位置の画素データを加算するのは、次の理由による。中間モードではわずかではあるものの可視光が存在する環境下での撮像であるため、ハッチングを付した画素データは可視光による露光に基づくそれぞれの色の成分を含む。よって、同じ画素位置の画素データを加算することによって、それぞれの色の感度を上げることができる。
The reason why the pixel data at the same pixel position is added by the same position
可視光と赤外光とが混在している状況で可視光が比較的多ければ、可視光による露光が支配的となる。この場合、フレームFmIR123の映像データは、可視光によって露光した映像信号に基づく成分が主となる。可視光と赤外光とが混在している状況で赤外光が比較的多ければ、赤外光による露光が支配的となる。この場合、フレームFmIR123の映像データは、赤外光によって露光した映像信号に基づく成分が主となる。 If the visible light and infrared light are mixed and there is a relatively large amount of visible light, exposure with visible light becomes dominant. In this case, the video data of the frame FmIR123 mainly includes components based on the video signal exposed with visible light. If visible light and infrared light are mixed and there is a relatively large amount of infrared light, exposure with infrared light becomes dominant. In this case, the video data of the frame FmIR123 mainly includes components based on the video signal exposed with infrared light.
可視光が比較的少ない場合には、式(1)において、係数ka,kb,kcの大小関係を、ka>kb,kcとし、式(2)において、係数kd,ke,kfの大小関係を、kf>kd,keとし、式(3)において、係数kg,kh,kiの大小関係を、kh>kg,kiとするのがよい。これは、波長IR1はR光との相関性が高く、波長IR2はG光との相関性が高く、波長IR3はB光との相関性が高いからである。 When visible light is relatively small, the relationship between the coefficients ka, kb, and kc in equation (1) is ka> kb, kc, and the relationship between the coefficients kd, ke, and kf in equation (2). , Kf> kd, ke, and in equation (3), the magnitude relationship between the coefficients kg, kh, ki is preferably kh> kg, ki. This is because the wavelength IR1 has a high correlation with the R light, the wavelength IR2 has a high correlation with the G light, and the wavelength IR3 has a high correlation with the B light.
このようにすれば、Rの画素データではフレームFmIR1におけるRの画素データ、Gの画素データではフレームFmIR2におけるGの画素データ、Bの画素データではフレームFmIR3におけるBの画素データを主とすることができる。 In this way, the R pixel data is mainly the R pixel data in the frame FmIR1, the G pixel data is the G pixel data in the frame FmIR2, and the B pixel data is mainly the B pixel data in the frame FmIR3. it can.
前信号処理部52より出力されたフレームFmIR123の映像データは、スイッチ53を介してデモザイク処理部54に入力される。デモザイク処理部54は、通常モードと同様に、入力されたフレームFmIR123の映像データにデモザイク処理を施す。映像処理部5は、デモザイク処理の他、ホワイトバランス補正やゲイン補正等の各種の映像処理を施して、R,G,Bの3原色データを出力する。
The video data of the frame FmIR123 output from the previous
図10を用いて、デモザイク処理部54におけるデモザイク処理について説明する。図10の(a)は、フレームFmIR123を示している。デモザイク処理部54は、Rの画素データが存在しない画素位置のRの画素データを周囲のRの画素データを用いて演算して、Rの補間画素データR123iを生成する。デモザイク処理部54は、図10の(b)に示す1フレームの全画素がRの画素データよりなるRフレームFmIR123Rを生成する。
The demosaic process in the
デモザイク処理部54は、Gの画素データが存在しない画素位置のGの画素データを周囲のGの画素データを用いて演算して、Gの補間画素データG123iを生成する。デモザイク処理部54は、図10の(c)に示す1フレームの全画素がGの画素データよりなるGフレームFmIR123Gを生成する。
The
デモザイク処理部54は、Bの画素データが存在しない画素位置のBの画素データを周囲のBの画素データを用いて演算して、Bの補間画素データB123iを生成する。デモザイク処理部54は、図10の(d)に示す1フレームの全画素がBの画素データよりなるBフレームFmIR123Bを生成する。
The
通常モードにおける図7に示すデモザイク処理部54の動作と、中間モードにおける図10に示すデモザイク処理部54の動作とを比較すれば分かるように、両者は実質的に同じである。デモザイク処理部54の動作は、通常モードであっても中間モードであっても変わらない。
As can be understood by comparing the operation of the
通常モードでは前信号処理部52を不動作とし、中間モードでは、周囲画素加算部521を除き、前信号処理部52を動作させればよい。通常モードと中間モードとで、映像処理部5におけるデモザイク処理部54、及び、ホワイトバランス補正やゲイン補正等の信号処理部を共用させることができる。
In the normal mode, the previous
<中間モード:第2中間モード>
図11及び図12を用いて、第2中間モードにおける動作を説明する。第2中間モードにおける動作において、第1中間モードにおける動作と同一部分は説明を省略する。図11の(a)〜(c)のフレームFmIR1,FmIR2,FmIR3は、図9の(a)〜(c)のフレームFmIR1,FmIR2,FmIR3と同じである。
<Intermediate mode: second intermediate mode>
The operation in the second intermediate mode will be described with reference to FIGS. In the operation in the second intermediate mode, the description of the same part as the operation in the first intermediate mode is omitted. The frames FmIR1, FmIR2, and FmIR3 in (a) to (c) of FIG. 11 are the same as the frames FmIR1, FmIR2, and FmIR3 in (a) to (c) of FIG.
合成部523は、フレームFmIR1におけるRの画素データであるR1と、フレームFmIR2におけるGの画素データであるGr2,Gb2と、フレームFmIR3におけるBの画素データであるB3とを選択して合成する。これによって合成部523は、図11の(d)に示す合成映像信号のフレームFmIR123’を生成する。
The combining
即ち、フレームFmIR123’は、フレームFmIR1,FmIR2,FmIR3におけるハッチングを付していないR,Gr,Gb,Bの画素データを1フレームに集結させた映像データである。 That is, the frame FmIR123 'is video data obtained by collecting R, Gr, Gb, and B pixel data that are not hatched in the frames FmIR1, FmIR2, and FmIR3 into one frame.
つまり、フレームFmIR123’においては、波長IR1の赤外光を投光した状態における赤色のカラーフィルタに対応する領域の画素データだけを用いた赤色用の画素データ、波長IR2の赤外光を投光した状態における緑色のカラーフィルタに対応する領域の画素データだけを用いた緑色用の画素データ、波長IR3の赤外光を投光した状態における青色のカラーフィルタに対応する領域の画素データだけを用いた青色用の画素データとなっている。 That is, in the frame FmIR123 ′, the pixel data for red using only the pixel data in the region corresponding to the red color filter in the state where the infrared light having the wavelength IR1 is projected, and the infrared light having the wavelength IR2 are projected. Only the pixel data for the green color using only the pixel data of the region corresponding to the green color filter in the selected state, and the pixel data of the region corresponding to the blue color filter in the state of projecting the infrared light having the wavelength IR3 are used. The pixel data is for blue.
このように、合成部523は、カラーフィルタ32におけるフィルタエレメントの配列と同じ配列となるように、画素データR1,Gr2,Gb2,B3を配列させたフレームFmIR123’を生成する。
As described above, the
第2中間モードでは、同一位置画素加算部522は、式(1)における係数kaを1、係数kb,kcを0とし、式(2)における係数keを1、係数kd,kfを0とし、式(3)における係数kiを1、係数kg,khを0とする。
In the second intermediate mode, the same-position
これによって、フレームFmIR1におけるRの画素データと、フレームFmIR2におけるGr,Gbの画素データと、フレームFmIR3におけるBの画素データは、それぞれそのままの値となる。 As a result, the R pixel data in the frame FmIR1, the Gr and Gb pixel data in the frame FmIR2, and the B pixel data in the frame FmIR3 have the same values.
よって、合成部523は、第1中間モードにおける動作と同様に、フレームFmIR1におけるRの画素データと、フレームFmIR2におけるGr,Gbの画素データと、フレームFmIR3におけるBの画素データを選択すれば、フレームFmIR123’を生成することができる。
Therefore, similarly to the operation in the first intermediate mode, the combining
第2中間モードにおいては、前信号処理部52は、画素データの色と同じ色の画素データを生成するための赤外光が投光された状態で生成された画素データ(ハッチングを付していない画素データ)のみ用いて、フレームFmIR123’の映像データを生成する。
In the second intermediate mode, the front
第2中間モードによれば、第1中間モードよりも感度や色の再現性は低下するものの、演算処理を簡略化したり、フレームメモリを削減したりすることができる。 According to the second intermediate mode, the sensitivity and color reproducibility are lower than those in the first intermediate mode, but the arithmetic processing can be simplified and the frame memory can be reduced.
図12を用いて、デモザイク処理部54におけるデモザイク処理について説明する。図12の(a)は、フレームFmIR123’を示している。デモザイク処理部54は、Rの画素データが存在しない画素位置のRの画素データを周囲のRの画素データを用いて演算して、Rの補間画素データR1iを生成する。デモザイク処理部54は、図12の(b)に示す1フレームの全画素がRの画素データよりなるRフレームFmIR123’Rを生成する。
The demosaic process in the
デモザイク処理部54は、Gの画素データが存在しない画素位置のGの画素データを周囲のGの画素データを用いて演算して、Gの補間画素データG2iを生成する。デモザイク処理部54は、図12の(c)に示す1フレームの全画素がGの画素データよりなるGフレームFmIR123’Gを生成する。
The
デモザイク処理部54は、Bの画素データが存在しない画素位置のBの画素データを周囲のBの画素データを用いて演算して、Bの補間画素データB3iを生成する。デモザイク処理部54は、図12の(d)に示す1フレームの全画素がBの画素データよりなるBフレームFmIR123’Bを生成する。
The
以上のように、中間モードにおいては、受光素子における赤色のカラーフィルタに対応する領域から得た画素データから赤色用の画素データを生成し、受光素子における緑色のカラーフィルタに対応する領域から得た画素データから緑色用の画素データを生成し、受光素子における青色のカラーフィルタに対応する領域から得た画素データから青色用の画素データを生成する。 As described above, in the intermediate mode, the pixel data for red is generated from the pixel data obtained from the region corresponding to the red color filter in the light receiving element, and obtained from the region corresponding to the green color filter in the light receiving element. Green pixel data is generated from the pixel data, and blue pixel data is generated from the pixel data obtained from the region corresponding to the blue color filter in the light receiving element.
<暗視モード:第1暗視モード>
暗視モード(第1暗視モード及び後述する第2暗視モード)では、中間モードと同様、制御部7は、駆動部8によって、光学レンズ1と撮像部3との間にダミーガラス22を挿入させる。投光制御部71は、赤外線投光器9による赤外光の投光をオンにする。モード切換部72は、スイッチ51,53を端子Taに接続するように制御する。
<Night Vision Mode: First Night Vision Mode>
In the night-vision mode (the first night-vision mode and the second night-vision mode described later), as in the intermediate mode, the
暗視モードにおける概略的な動作は、図8と同じである。但し、暗視モードでは、可視光がほとんど存在しない環境下での撮像であるため、図8の(b)における露光Ex1R,Ex1G,Ex1B,Ex2R,Ex2G,Ex2B…は、赤外光のみによる露光を想定している。 The schematic operation in the night vision mode is the same as that in FIG. However, in the night vision mode, since the imaging is performed in an environment where there is almost no visible light, the exposures Ex1R, Ex1G, Ex1B, Ex2R, Ex2G, Ex2B... In FIG. Is assumed.
可視光がほとんど存在せず赤外光のみが存在している環境下では、カラーフィルタ32におけるそれぞれのフィルタエレメントの特性には差がなくなるため、撮像部3を単色の撮像素子とみなすことができる。
In an environment where there is almost no visible light and only infrared light, there is no difference in the characteristics of the filter elements in the
そこで、前信号処理部52内の周囲画素加算部521は、暗視モードでは、赤外光の感度を向上させるために、それぞれの画素データに対して、周囲に位置する画素データを加算する。
Therefore, in the night vision mode, the surrounding
具体的には、図13の(a)に示すように、Rの画素が注目画素であるとき、周囲画素加算部521は、注目画素のRの画素データに対して周囲に位置するG(Gr,Gb)及びBの8画素の画素データを加算する。
Specifically, as illustrated in FIG. 13A, when the R pixel is the target pixel, the surrounding
つまり、中間モードのときは、受光素子における赤色のカラーフィルタに対応する領域から得た画素データから赤色用の画素データを生成していたが、暗視モードでは、中間モードのときよりも広い領域から得た画素データから赤色用の画素データを生成することとなる。図13に示す例では、各色とも注目画素を含む9画素分の領域から得た画素データを用いている。 In other words, in the intermediate mode, red pixel data was generated from the pixel data obtained from the region corresponding to the red color filter in the light receiving element, but in the night vision mode, a wider area than in the intermediate mode. Pixel data for red is generated from the pixel data obtained from the above. In the example shown in FIG. 13, pixel data obtained from an area corresponding to nine pixels including the target pixel is used for each color.
図13の(b)に示すように、Grの画素が注目画素であるとき、周囲画素加算部521は、注目画素のGrの画素データに対して周囲に位置するR,Gb,Bの8画素の画素データを加算する。図13の(c)に示すように、Gbの画素が注目画素であるとき、周囲画素加算部521は、注目画素のGbの画素データに対して周囲に位置するR,Gr,Bの8画素の画素データを加算する。
As shown in FIG. 13B, when the Gr pixel is the target pixel, the surrounding
つまり、中間モードのときは、受光素子における緑色のカラーフィルタに対応する領域から得た画素データから緑色用の画素データを生成していたが、暗視モードでは、中間モードのときよりも広い領域から得た画素データから緑色用の画素データを生成することとなる。 In other words, in the intermediate mode, the pixel data for green was generated from the pixel data obtained from the area corresponding to the green color filter in the light receiving element, but in the night vision mode, a wider area than in the intermediate mode. The pixel data for green is generated from the pixel data obtained from the above.
図13の(d)に示すように、Bの画素が注目画素であるとき、周囲画素加算部521は、注目画素のBの画素データに対して周囲に位置するR及びG(Gr,Gb)の8画素の画素データを加算する。
As illustrated in FIG. 13D, when the B pixel is the target pixel, the surrounding
つまり、中間モードのときは、受光素子における青色のカラーフィルタに対応する領域から得た画素データから青色用の画素データを生成していたが、暗視モードでは、中間モードのときよりも広い領域から得た画素データから青色用の画素データを生成することとなる。 In other words, in the intermediate mode, blue pixel data was generated from the pixel data obtained from the region corresponding to the blue color filter in the light receiving element, but in the night vision mode, a wider area than in the intermediate mode. The pixel data for blue is generated from the pixel data obtained from the above.
周囲画素加算部521は、注目画素の画素データと周囲の8画素の画素データとの9画素を単純に加算してもよいし、周囲の8画素の画素データに対して所定の重み付けをした上で注目画素の画素データに加算してもよい。
The surrounding
ところで、ビニングと称される複数の画素をまとめて1つの画素として読み出し可能な撮像素子が存在する。撮像素子31として、ビニング機能を有する撮像素子を用いる場合には、周囲画素加算部521による加算処理ではなく、ビニング機能を有する撮像素子による加算処理を行ってもよい。撮像素子によるビニングは、周囲画素加算部521による加算処理と実質的に等価である。
By the way, there is an image pickup device that can read out a plurality of pixels called binning as a single pixel. When an image sensor having a binning function is used as the
図14の(a)〜(c)のフレームFmIR1,FmIR2,FmIR3は、図9の(a)〜(c)のフレームFmIR1,FmIR2,FmIR3と同じである。図14の(d)〜(f)において、R1ad,Gr1ad,Gb1ad,B1ad,R2ad,Gr2ad,Gb2ad,B2ad,R3ad,Gr3ad,Gb3ad,B3adは、それぞれ、R,Gr,Gb,Bの画素データに対して周囲の8画素の画素データを加算した加算画素データである。 The frames FmIR1, FmIR2, and FmIR3 in (a) to (c) of FIG. 14 are the same as the frames FmIR1, FmIR2, and FmIR3 in (a) to (c) of FIG. In (d) to (f) of FIG. 14, R1ad, Gr1ad, Gb1ad, B1ad, R2ad, Gr2ad, Gb2ad, B2ad, R3ad, Gr3ad, Gb3ad, and B3ad are converted into R, Gr, Gb, and B pixel data, respectively. On the other hand, it is added pixel data obtained by adding pixel data of surrounding eight pixels.
周囲画素加算部521は、フレームFmIR1,FmIR2,FmIR3のそれぞれの画素データに対して図13に示す加算処理を施すことにより、図14の(d)〜(f)に示すフレームFmIR1ad,FmIR2ad,FmIR3adを生成する。
The surrounding
図15の(a)〜(c)のフレームFmIR1ad,FmIR2ad,FmIR3adは、図14の(d)〜(f)のフレームFmIR1ad,FmIR2ad,FmIR3adと同じである。 The frames FmIR1ad, FmIR2ad, and FmIR3ad in (a) to (c) of FIG. 15 are the same as the frames FmIR1ad, FmIR2ad, and FmIR3ad in (d) to (f) of FIG.
同一位置画素加算部522は、第1中間モードと同様に、式(1)に基づいて、フレームFmIR1adにおけるR1adの画素データに、フレームFmIR2ad,FmIR3adにおける同じ画素位置のR2ad,R3adの画素データを加算して、画素データR123adを生成する。
Similarly to the first intermediate mode, the same-position
同一位置画素加算部522は、式(2)に基づいて、フレームFmIR2adにおけるGr2ad,Gb2adの画素データに、フレームFmIR1ad,FmIR3adにおける同じ画素位置のGr1ad,Gb1ad,Gr3ad,Gb3adの画素データを加算して、画素データGr123ad,Gb123adを生成する。
The same-position
同一位置画素加算部522は、式(3)に基づいて、フレームFmIR3adにおけるB3adの画素データに、フレームFmIR1ad,FmIR2adにおける同じ画素位置のB1ad,B2adの画素データを加算して、画素データB123adを生成する。
Based on Expression (3), the same-position
合成部523は、第1中間モードと同様に、フレームFmIR1adにおける画素データR123adと、フレームFmIR2adにおける画素データGr123ad,Gb123adと、フレームFmIR3adにおける画素データB123adとを選択して合成する。これによって合成部523は、図15の(d)に示す合成映像信号のフレームFmIR123adを生成する。
Similar to the first intermediate mode, the combining
合成部523は、カラーフィルタ32におけるフィルタエレメントの配列と同じ配列となるように、画素データR123ad,Gr123ad,Gb123ad,B123adを配列させたフレームFmIR123adを生成する。
The synthesizing
図16の(a)はフレームFmIR123adを示している。デモザイク処理部54は、Rの画素データが存在しない画素位置のRの画素データを周囲のRの画素データを用いて演算して、Rの補間画素データR123adiを生成する。デモザイク処理部54は、図16の(b)に示す1フレームの全画素がRの画素データよりなるRフレームFmIR123adRを生成する。
FIG. 16A shows a frame FmIR123ad. The
デモザイク処理部54は、Gの画素データが存在しない画素位置のGの画素データを周囲のGの画素データを用いて演算して、Gの補間画素データG123adiを生成する。デモザイク処理部54は、図16の(c)に示す1フレームの全画素がGの画素データよりなるGフレームFmIR123adGを生成する。
The
デモザイク処理部54は、Bの画素データが存在しない画素位置のBの画素データを周囲のBの画素データを用いて演算して、Bの補間画素データB123adiを生成する。デモザイク処理部54は、図16の(d)に示す1フレームの全画素がBの画素データよりなるBフレームFmIR123adBを生成する。
The
第1中間モードと第1暗視モードとは、前者が周囲画素加算部521を不動作としている一方で、後者が周囲画素加算部521を動作させている点で異なる。モード切換部72は、暗視モードのとき、周囲画素加算部521を動作させればよい。
The first intermediate mode and the first night-vision mode are different in that the former does not operate the surrounding
暗視モードにおけるデモザイク処理部54の動作は、通常モード及び中間モードにおけるデモザイク処理部54の動作と実質的に同じである。通常モードと中間モードと暗視モードとで、映像処理部5におけるデモザイク処理部54、及び、ホワイトバランス補正やゲイン補正等の信号処理部を共用させることができる。
The operation of the
<暗視モード:第2暗視モード>
図17及び図18を用いて、第2暗視モードにおける動作を説明する。第2暗視モードにおける動作において、第1暗視モードにおける動作と同一部分は説明を省略する。図17の(a)〜(c)のフレームFmIR1ad,FmIR2ad,FmIR3adは、図15の(a)〜(c)のFmIR1ad,FmIR2ad,FmIR3adと同じである。
<Night Vision Mode: Second Night Vision Mode>
The operation in the second night-vision mode will be described with reference to FIGS. In the operation in the second night vision mode, the description of the same part as the operation in the first night vision mode is omitted. The frames FmIR1ad, FmIR2ad, and FmIR3ad in (a) to (c) of FIG. 17 are the same as the FmIR1ad, FmIR2ad, and FmIR3ad in (a) to (c) of FIG.
合成部523は、フレームFmIR1adにおけるRの画素データであるR1adと、フレームFmIR2におけるGの画素データであるGr2ad,Gb2adと、フレームFmIR3におけるBの画素データであるB3adとを選択して合成する。これによって合成部523は、図17の(d)に示す合成映像信号のフレームFmIR123’adを生成する。
The combining
合成部523は、カラーフィルタ32におけるフィルタエレメントの配列と同じ配列となるように、画素データR1ad,Gr2ad,Gb2ad,B3adを配列させたフレームFmIR123’adを生成する。
The synthesizing
なお、図13を用いて説明したように、フレームFmIR123’adにおける赤色用の画素データR1adは、中間モードのときに赤色用の画素データを生成するために用いた領域よりも広い領域から得た画素データから生成されたものとなっている。 As described with reference to FIG. 13, the pixel data R1ad for red in the frame FmIR123'ad is obtained from a wider area than the area used for generating the pixel data for red in the intermediate mode. It is generated from pixel data.
また、フレームFmIR123’adにおける緑色用の画素データGr2adは、中間モードのときに緑色用の画素データを生成するために用いた領域よりも広い領域から得た画素データから生成されたものとなっている。 Further, the pixel data Gr2ad for green in the frame FmIR123'ad is generated from pixel data obtained from an area wider than the area used for generating the pixel data for green in the intermediate mode. Yes.
さらに、フレームFmIR123’adにおける青色用の画素データB3adは、中間モードのときに青色用の画素データを生成するために用いた領域よりも広い領域から得た画素データから生成されたものとなっている。 Further, the blue pixel data B3ad in the frame FmIR123'ad is generated from pixel data obtained from an area larger than the area used to generate the blue pixel data in the intermediate mode. Yes.
第2暗視モードでは、第2中間モードと同様に、同一位置画素加算部522は、式(1)における係数kaを1、係数kb,kcを0とし、式(2)における係数keを1、係数kd,kfを0とし、式(3)における係数kiを1、係数kg,khを0とする。
In the second night-vision mode, as in the second intermediate mode, the same-position
これによって、フレームFmIR1adにおけるR1adの画素データと、フレームFmIR2adにおけるGr2ad,Gb2adの画素データと、フレームFmIR3adにおけるB3adの画素データは、それぞれそのままの値となる。 Thereby, the pixel data of R1ad in the frame FmIR1ad, the pixel data of Gr2ad and Gb2ad in the frame FmIR2ad, and the pixel data of B3ad in the frame FmIR3ad have the same values.
よって、合成部523は、第1暗視モードにおける動作と同様に、フレームFmIR1adにおけるR1adの画素データと、フレームFmIR2adにおけるGr2ad,Gb2adの画素データと、フレームFmIR3adにおけるB3adの画素データを選択すれば、フレームFmIR123’adを生成することができる。
Therefore, as in the operation in the first night vision mode, the combining
図18を用いて、デモザイク処理部54におけるデモザイク処理について説明する。図18の(a)は、フレームFmIR123’adを示している。デモザイク処理部54は、Rの画素データが存在しない画素位置のRの画素データを周囲のR1adの画素データを用いて演算して、Rの補間画素データR1adiを生成する。デモザイク処理部54は、図18の(b)に示す1フレームの全画素がRの画素データよりなるRフレームFmIR123’adRを生成する。
The demosaic process in the
デモザイク処理部54は、Gの画素データが存在しない画素位置のGの画素データを周囲のGr2ad,Gb2adの画素データを用いて演算して、Gの補間画素データG2adiを生成する。デモザイク処理部54は、補間して、図18の(c)に示す1フレームの全画素がGの画素データよりなるGフレームFmIR123’adGを生成する。
The
デモザイク処理部54は、Bの画素データが存在しない画素位置のBの画素データを周囲のB3adの画素データを用いて算出したBの補間画素データB3adiを生成する。デモザイク処理部54は、図18の(d)に示す1フレームの全画素がBの画素データよりなるBフレームFmIR123’adBを生成する。
The
第2中間モードと第2暗視モードとは、前者が周囲画素加算部521を不動作としている一方で、後者が周囲画素加算部521を動作させている点で異なる。
The second intermediate mode and the second night-vision mode differ in that the former does not operate the surrounding
また、中間モードにおいては、受光素子における各色に対応する領域から得た画素データそれぞれから各色用の画素データを生成していたが、暗視モードにおいては、周囲画素を加算するため、中間モードにおける各色用の画素データを生成するための領域それぞれよりも広い領域から得た画素データから各色用の画素データを生成するとも言える。 Further, in the intermediate mode, pixel data for each color is generated from each pixel data obtained from the region corresponding to each color in the light receiving element, but in the night vision mode, the surrounding pixels are added. It can also be said that pixel data for each color is generated from pixel data obtained from a region wider than each region for generating pixel data for each color.
<モード切換の例>
図19を用いて、モード切換部72によるモード切換の例を説明する。図19の(a)は、一例として、昼間の時間帯から夜の時間帯へと時間が経過していくとき、周囲環境の明るさが変化していく様子を概略的に示している。
<Example of mode switching>
An example of mode switching by the
図19の(a)に示すように、昼間から夕刻へと時間が経過していくに従って明るさが低下していき、時刻t3以降、ほぼ真っ暗の状態となる。図19の(a)に示す明るさは実質的に可視光の量を示しており、時刻t3以降、可視光がほとんどない状態である。 As shown in FIG. 19 (a), the brightness decreases as time elapses from daytime to evening, and it becomes almost dark after time t3. The brightness shown in FIG. 19A substantially indicates the amount of visible light, and there is almost no visible light after time t3.
制御部7は、映像処理部5から入力される映像信号(映像データ)の輝度レベルに基づいて周囲環境の明るさを判断することができる。図19の(b)に示すように、モード切換部72は、明るさが所定の閾値Th1(第1の閾値)以上であるとき通常モードとし、明るさが閾値Th1未満で所定の閾値Th2(第2の閾値)以上であるとき中間モード、閾値Th2未満であるとき暗視モードとする。
The
本実施形態の撮像装置は、明るさが閾値Th1となる時刻t1までは通常モード、時刻t1から明るさが閾値Th2となる時刻t2まで中間モード、時刻t2以降は暗視モードに、モードを自動的に切り換える。図19の(b)において、中間モードは第1中間モードと第2中間モードとのいずれでもよく、暗視モードは第1暗視モードと第2暗視モードとのいずれでもよい。 The imaging apparatus according to the present embodiment automatically selects the normal mode from time t1 until time t1 when the brightness reaches the threshold value Th1, the intermediate mode from time t1 to time t2 when the brightness reaches the threshold value Th2, and the night vision mode after time t2. Switch automatically. In FIG. 19B, the intermediate mode may be either the first intermediate mode or the second intermediate mode, and the night vision mode may be either the first night vision mode or the second night vision mode.
図19の(a)では可視光がほとんどなくなる時刻t3の直前の明るさを閾値Th2としているが、時刻t3の明るさを閾値Th2としてもよい。 In FIG. 19A, the brightness immediately before time t3 when almost no visible light is present is set as the threshold value Th2, but the brightness at time t3 may be set as the threshold value Th2.
図19の(c)に示すように、モード切換部72は、中間モードの期間で、可視光が比較的多い時刻t1側の期間を第1中間モード、可視光が比較的少ない時刻t2側の期間を第2中間モードとしてもよい。図19の(c)において、暗視モードは第1暗視モードと第2暗視モードとのいずれでもよい。
As shown in FIG. 19 (c), the
本実施形態の撮像装置は、投光制御部71が赤外線投光器9のオン・オフを制御し、モード切換部72が映像処理部5内の各部の動作・不動作を切り換えることにより、それぞれのモードを実現することができる。
In the imaging apparatus according to the present embodiment, the light
図20に示すように、通常モードは、赤外線投光器9がオフ、周囲画素加算部521と同一位置画素加算部522と合成部523がいずれも不動作、デモザイク処理部54が動作の状態である。
As shown in FIG. 20, in the normal mode, the
第1中間モードは、赤外線投光器9がオン、周囲画素加算部521が不動作、同一位置画素加算部522と合成部523とデモザイク処理部54とが動作の状態である。第2中間モードは、赤外線投光器9がオン、周囲画素加算部521と同一位置画素加算部522とが不動作、合成部523とデモザイク処理部54とが動作の状態である。
In the first intermediate mode, the
同一位置画素加算部522における動作と不動作とは、前述のように、式(1)〜(3)の係数ka〜kiの値を適宜に設定することによって容易に切り換えることができる。
The operation and non-operation in the same position
第1暗視モードは、赤外線投光器9がオン、周囲画素加算部521と同一位置画素加算部522と合成部523とデモザイク処理部54との全てが動作の状態である。第2暗視モードは、赤外線投光器9がオン、同一位置画素加算部522が不動作、周囲画素加算部521と合成部523とデモザイク処理部54とが動作の状態である。
In the first night-vision mode, the
ところで、周囲画素加算部521は、注目画素の画素データに対して周囲の画素データを加算するための計算式において、周囲の画素データに乗じる係数を、0を超える係数(例えば1)とすれば、周囲画素の加算処理を動作の状態とすることができる。
By the way, the surrounding
また、周囲画素加算部521は、その計算式において、周囲の画素データに乗じる係数を0とすれば、周囲画素の加算処理を不動作の状態とすることができる。
Further, the surrounding
周囲画素加算部521における動作と不動作も、係数の値を適宜に設定することによって容易に切り換えることができる。
The operation and non-operation of the surrounding
<撮像装置の第1の変形例>
制御部7が周囲環境の明るさを検出する方法は、映像信号の輝度レベルに基づく方法に限定されない。
<First Modification of Imaging Device>
The method by which the
図21に示すように、明るさセンサ11によって周囲環境の明るさを検出してもよい。図21において、映像信号の輝度レベルと明るさセンサ11によって検出した明るさとの双方に基づいて、周囲環境の明るさを判断してもよい。
As shown in FIG. 21, the
<撮像装置の第2の変形例>
制御部7は、周囲環境の明るさを直接的に検出せず、1年間における時期(日にち)及び時刻(時間帯)に基づいて周囲環境の明るさを概略的に想定して、モード切換部72が各モードに切り換えるようにしてもよい。
<Second Modification of Imaging Device>
The
図22に示すように、モード設定テーブル12には、日にちと時間帯との組み合わせに対応して、通常モードと中間モードと暗視モードとのいずれかが設定されている。制御部7内の時計74は、日にちと時刻を管理している。制御部7は、時計74が示す日にちと時刻とを参照して、モード設定テーブル12より設定されているモードを読み出す。
As shown in FIG. 22, in the mode setting table 12, any one of the normal mode, the intermediate mode, and the night vision mode is set corresponding to the combination of the date and the time zone. A
投光制御部71とモード切換部72は、モード設定テーブル12より読み出されたモードとなるように、撮像装置を制御する。
The light
<撮像装置の第3の変形例>
図23に示すように、操作部13によってユーザがモードを手動で選択して、投光制御部71とモード切換部72が選択されたモードとなるように撮像装置を制御してもよい。操作部13は、撮像装置の筐体に設けられている操作ボタンであってもよく、リモートコントローラであってもよい。
<Third Modification of Imaging Device>
As illustrated in FIG. 23, the imaging device may be controlled so that the user manually selects a mode using the
<映像信号処理方法>
図24を用いて、図1に示す撮像装置で実行される映像信号処理方法を改めて説明する。
<Video signal processing method>
A video signal processing method executed by the imaging apparatus shown in FIG. 1 will be described again with reference to FIG.
図24において、撮像装置が動作を開始すると、制御部7は、ステップS1にて、周囲環境の明るさが閾値Th1以上であるか否かを判定する。閾値Th1以上であれば(YES)、制御部7は、ステップS3にて、通常モードでの処理を実行させる。閾値Th1以上でなければ(NO)、制御部7は、ステップS2にて、周囲環境の明るさが閾値Th2以上であるか否かを判定する。
In FIG. 24, when the imaging apparatus starts operation, the
閾値Th2以上であれば(YES)、制御部7は、ステップS4にて、中間モードでの処理を実行させる。閾値Th2以上でなければ(NO)、制御部7は、ステップS5にて、暗視モードでの処理を実行させる。
If it is equal to or greater than the threshold value Th2 (YES), the
制御部7は、ステップS3〜S5の後、処理をステップS1に戻し、ステップS1以降を繰り返す。
図25は、ステップS3の通常モードの具体的な処理を示す。図25において、制御部7(投光制御部71)は、ステップS31にて、赤外線投光器9をオフにする。制御部7は、ステップS32にて、赤外線カットフィルタ21を挿入する。制御部7(モード切換部72)は、ステップS33にて、スイッチ51,53を端子Tbに接続させる。ステップS31〜S33の順番は任意であり、同時であってもよい。
FIG. 25 shows specific processing in the normal mode in step S3. In FIG. 25, the control part 7 (light projection control part 71) turns off the infrared
制御部7は、ステップS34にて、撮像部3によって被写体を撮像させる。制御部7は、ステップS35にて、撮像部3が被写体を撮像することよって生成した映像信号を構成するフレームをデモザイク処理部54によってデモザイク処理させるよう、映像処理部5を制御する。
In step S34, the
図26は、ステップS4の中間モードの具体的な処理を示す。図26において、制御部7(投光制御部71)は、ステップS41にて、投光部91〜93より波長IR1〜IR3の赤外光を時分割で投光させるよう、赤外線投光器9をオンにする。
FIG. 26 shows specific processing in the intermediate mode in step S4. 26, in step S41, the control unit 7 (light projection control unit 71) turns on the
制御部7は、ステップS42にて、ダミーガラス22を挿入する。制御部7(モード切換部72)は、ステップS43にて、スイッチ51,53を端子Taに接続させる。ステップS41〜S43の順番は任意であり、同時であってもよい。
The
制御部7は、ステップS44にて、撮像部3によって被写体を撮像させる。撮像部3は、Rに対応付けられた波長IR1の赤外光と、Gに対応付けられた波長IR2の赤外光と、Bに対応付けられた波長IR3の赤外光とがそれぞれ投光されている状態で被写体を撮像する。
In step S44, the
制御部7(モード切換部72)は、ステップS45にて、周囲画素加算部521を不動作とし、合成部523を動作させて合成映像信号を生成させるよう、前信号処理部52を制御する。
In step S45, the control unit 7 (mode switching unit 72) controls the
波長IR1,IR2,IR3の赤外光がそれぞれ投光されている状態で撮像部3が被写体を撮像することよって生成された映像信号を構成するフレームを第1のフレーム,第2のフレーム,第3のフレームとする。
The frames constituting the video signal generated when the
合成部523は、第1のフレーム内のRの画素データと、第2のフレーム内のGの画素データと、第3のフレーム内のBの画素データとに基づく3原色の画素データを、カラーフィルタ32におけるフィルタエレメントの配列と同じ配列となるように配列させる。合成部523は、このようにして第1〜第3のフレームを1フレームに合成した合成映像信号を生成する。
The synthesizing
制御部7は、ステップS46にて、合成映像信号のフレームをデモザイク処理部54によってデモザイク処理させるよう、映像処理部5を制御する。
In step S46, the
デモザイク処理部54は、合成映像信号のフレームに基づいて、Rのフレームと、Gのフレームと、Bのフレームとを生成するデモザイク処理を施して、デモザイク処理された3原色のフレームを順次生成する。
The
デモザイク処理部54は、Rの画素データが存在しない画素位置にRの画素データを補間することによって、Rのフレームを生成することができる。デモザイク処理部54は、Gの画素データが存在しない画素位置にGの画素データを補間することによって、Gのフレームを生成することができる。デモザイク処理部54は、Bの画素データが存在しない画素位置にBの画素データを補間することによって、Bのフレームを生成することができる。
The
第1中間モードとする場合には、ステップS45にて、同一位置画素加算部522を動作させ、第2中間モードとする場合には、ステップS45にて、同一位置画素加算部522を不動作とすればよい。
In the case of the first intermediate mode, the same position
図27は、ステップS5の暗視モードの具体的な処理を示す。図27において、制御部7(投光制御部71)は、ステップS51にて、投光部91〜93より波長IR1〜IR3の赤外光を時分割で投光させるよう、赤外線投光器9をオンにする。
FIG. 27 shows specific processing in the night-vision mode in step S5. In FIG. 27, in step S51, the control unit 7 (light projection control unit 71) turns on the
制御部7は、ステップS52にて、ダミーガラス22を挿入する。制御部7(モード切換部72)は、ステップS53にて、スイッチ51,53を端子Taに接続させる。ステップS51〜S53の順番は任意であり、同時であってもよい。
The
制御部7は、ステップS54にて、撮像部3によって被写体を撮像させる。制御部7(モード切換部72)は、ステップS55にて、周囲画素加算部521と合成部523とを動作させて合成映像信号を生成させるよう、前信号処理部52を制御する。
In step S54, the
制御部7は、ステップS56にて、合成映像信号のフレームをデモザイク処理部54によってデモザイク処理させるよう、映像処理部5を制御する。
In step S56, the
第1暗視モードとする場合には、ステップS55にて、同一位置画素加算部522を動作させ、第2暗視モードとする場合には、ステップS55にて、同一位置画素加算部522を不動作とすればよい。
In the case of the first night vision mode, the same position
<映像信号処理プログラム>
図1において、制御部7、または、映像処理部5と制御部7とが一体化部分をコンピュータ(マイクロコンピュータ)で構成し、映像信号処理プログラム(コンピュータプログラム)をコンピュータで実行させることによって、上述した本実施形態の撮像装置と同様の動作を実現させることも可能である。
<Video signal processing program>
In FIG. 1, the
図28を用いて、図24のステップS4である中間モードにおける制御を映像信号処理プログラムで構成した場合にコンピュータに実行させる手順の例を説明する。図28は、映像信号処理プログラムがコンピュータに実行させる処理を示す。 With reference to FIG. 28, an example of a procedure executed by the computer when the control in the intermediate mode, which is step S4 in FIG. 24, is configured by the video signal processing program will be described. FIG. 28 shows processing that the video signal processing program causes the computer to execute.
図28において、映像信号処理プログラムは、ステップS401にて、コンピュータに、R,G,Bに対応付けられた波長IR1,IR2,IR3の赤外光をそれぞれ投光するように赤外線投光器9を制御するステップを実行させる。
In FIG. 28, in step S401, the video signal processing program controls the
ステップS401に示すステップを映像信号処理プログラムの外部にて実行させてもよい。図28では、ダミーガラス22を挿入させるステップを省略している。ダミーガラス22を挿入させるステップも映像信号処理プログラムの外部にて実行させてもよい。
The step shown in step S401 may be executed outside the video signal processing program. In FIG. 28, the step of inserting the
映像信号処理プログラムは、ステップS402にて、コンピュータに、波長IR1の赤外光が投光されている状態で、撮像部3が被写体を撮像することによって生成された映像信号の第1のフレームを構成する画素データを取得するステップを実行させる。
In step S402, the video signal processing program captures the first frame of the video signal generated by the
映像信号処理プログラムは、ステップS403にて、コンピュータに、波長IR2の赤外光が投光されている状態で、撮像部3が被写体を撮像することによって生成された映像信号の第2のフレームを構成する画素データを取得するステップを実行させる。
In step S403, the video signal processing program captures the second frame of the video signal generated when the
映像信号処理プログラムは、ステップS404にて、コンピュータに、波長IR3の赤外光が投光されている状態で、撮像部3が被写体を撮像することによって生成された映像信号の第3のフレームを構成する画素データを取得するステップを実行させる。ステップS402〜S404の順番は任意である。
In step S404, the video signal processing program captures a third frame of the video signal generated when the
映像信号処理プログラムは、ステップS405にて、コンピュータに、R,G,Bの画素データを、カラーフィルタ32におけるフィルタエレメントの配列と同じ配列となるように配列させて、1フレームに合成した合成映像信号を生成するステップを実行させる。
In step S405, the video signal processing program causes the computer to arrange the R, G, and B pixel data so as to be in the same arrangement as the arrangement of the filter elements in the
中間モードでは、映像信号処理プログラムは、ステップS405にて、コンピュータに、周囲画素の加算処理のステップを実行させない。 In the intermediate mode, the video signal processing program does not cause the computer to execute the step of adding surrounding pixels in step S405.
映像信号処理プログラムは、ステップS406にて、コンピュータに、合成映像信号のフレームにデモザイク処理を施して、R,G,Bのフレームを生成するステップを実行させる。 In step S406, the video signal processing program causes the computer to execute a step of performing demosaic processing on the frame of the composite video signal to generate R, G, and B frames.
図示は省略するが、図24のステップS5である暗視モードにおける制御を映像信号処理プログラムで構成する場合には、図28のステップS405にて、コンピュータに、周囲画素の加算処理のステップを実行させればよい。 Although illustration is omitted, when the control in the night vision mode, which is step S5 in FIG. 24, is configured by the video signal processing program, the step of adding surrounding pixels is executed in the computer in step S405 in FIG. You can do it.
映像信号処理プログラムは、コンピュータで読み取り可能な記録媒体に記録されたコンピュータプログラムであってよい。映像信号処理プログラムが記録媒体に記録された状態で提供されてもよいし、映像信号処理プログラムをコンピュータにダウンロードさせるよう、インターネット等のネットワークを介して提供されてもよい。コンピュータで読み取り可能な記録媒体は、CD−ROM,DVD−ROM等の非一時的な任意の記録媒体でよい。 The video signal processing program may be a computer program recorded on a computer-readable recording medium. The video signal processing program may be provided in a state where it is recorded on a recording medium, or may be provided via a network such as the Internet so that the computer can download the video signal processing program. The computer-readable recording medium may be any non-temporary arbitrary recording medium such as a CD-ROM or a DVD-ROM.
<暗視モードにおける色の調整について>
ここで、暗視モードにおいて、カラー映像信号の色をどのように調整すれば色再現性のよい映像信号が得られるのかについて説明する。なお、撮影画像の画素値に応じて各色の色ゲインを変更しない例と、オートホワイトバランス処理のような技術を用いて、撮影画像の画素値に応じて各色の色ゲインを変更する例とを説明する。なお、以下の説明において、基本的に、単にR,G,Bと記すときは、Rの画素値,Gの画素値,Bの画素値を表すものとする。
<Color adjustment in night vision mode>
Here, how the color of the color video signal is adjusted in the night vision mode to obtain a video signal with good color reproducibility will be described. An example in which the color gain of each color is not changed according to the pixel value of the captured image, and an example in which the color gain of each color is changed according to the pixel value of the captured image using a technique such as auto white balance processing. explain. In the following description, when R, G, and B are simply written, R pixel values, G pixel values, and B pixel values are basically represented.
まず、赤外光を投光しないよう赤外線投光器9が制御される通常モードにおいて、撮影画像の画素値に応じて各色の色ゲインを変更しない場合、映像信号の色をどのような調整方法で調整するのかを説明する。通常モードでは、可視光がある環境下で被写体を撮像する通常の撮像装置において確立されている一般的な調整方法を採用すればよい。
First, in the normal mode in which the
通常モードにおける調整時には、撮像装置は、基準光源下で基準となる無彩色の物体を撮像したときに出力される映像信号が白となるように調整される。基準光源は、例えば、色温度3100Kのハロゲンランプである。基準となる無彩色の物体としては、一般的に、例えば、標準白色板が用いられる。 At the time of adjustment in the normal mode, the imaging apparatus is adjusted so that a video signal output when an achromatic object serving as a reference is imaged under a reference light source is white. The reference light source is, for example, a halogen lamp with a color temperature of 3100K. In general, for example, a standard white plate is used as the reference achromatic object.
標準白色板としては、例えば、Labsphere, Inc.,製の商品である“SRT-99-050 Reflectance Target”を用いることができる。標準白色板は複数の会社から提供されており、いずれの会社の製品であってもよい。標準白色板は、可視光域から近赤外域までほぼ一定の反射率を有する。なお、上記の製品は、250nm〜2500nmの波長帯域で90%以上の反射率を有する。 As the standard white plate, for example, “SRT-99-050 Reflectance Target”, a product manufactured by Labsphere, Inc., can be used. The standard white plate is provided by a plurality of companies and may be a product of any company. The standard white plate has a substantially constant reflectance from the visible light region to the near infrared region. In addition, said product has a reflectance of 90% or more in the wavelength range of 250 nm-2500 nm.
通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合、例えば、色ゲイン制御部73は、基準光源下で標準白色板を撮像したときに出力される映像信号が白となるように、色ゲイン設定部62がR,G,Bの各色データ(画素値)に乗じる色ゲインを制御する。
When the color gain of each color is not changed according to the pixel value of the captured image in the normal mode, for example, the color
映像出力部6より出力されるR,G,Bの各色データの比率は、R:G:B=x:y:zと表される。通常モードにおいて、基準光源下で標準白色板を撮像したとき、R:G:B=1:1:1とすることによって、ホワイトバランスが調整される。このときのR:G:B=1:1:1とするための色ゲインが、基準光源下で標準白色板を撮像したときに出力される映像信号が白となる色ゲインの値である。このとき、少なくとも標準白色板に対応する領域の画素について、R:G:B=1:1:1となるように調整すればよい。
The ratio of the R, G, B color data output from the
また、Gに対する色ゲインを固定し、R,Bに対する色ゲインを変化させてホワイトバランスを調整することもある。この場合、RとGの色データが等しくなるようにするとともに、BとGの色データが等しくなるように色ゲインを調整することによってホワイトバランスが調整される。つまり、R/G=1.0、B/G=1.0とすることによって、ホワイトバランスが調整される。このときの各色ゲインが、基準光源下で標準白色板を撮像したときに出力される映像信号が白となる色ゲインの値である。 In some cases, the white balance is adjusted by fixing the color gain for G and changing the color gain for R and B. In this case, the white balance is adjusted by adjusting the color gain so that the R and G color data are equal and the B and G color data are equal. That is, white balance is adjusted by setting R / G = 1.0 and B / G = 1.0. Each color gain at this time is a color gain value at which the video signal output when the standard white plate is imaged under the reference light source becomes white.
通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合、以上のようにして、基準光源下で標準白色板を撮像したときに出力される映像信号が白となる色ゲインの値をメモリ等に保持しておき、色ゲイン設定部62は、映像出力部に入力される映像信号のR画素値、G画素値、B画素値のそれぞれに、メモリが保持している色ゲインを乗じればよい。なお、基準光源下で基準となる無彩色の物体を撮像したときのR画素値とG画素値とB画素値とを完全に等しくする必要はなく、数%程度であれば、ずれていてもよい。特に監視用途であれば、数%のずれは許容範囲内である。
通常モードでは、このようにホワイトバランスが調整されることによって、結果として、映像信号の各色も調整されることになる。
When the color gain of each color is not changed according to the pixel value of the captured image in the normal mode, the color gain of the video signal output when the standard white plate is imaged under the reference light source is white as described above. The color
In the normal mode, the white balance is adjusted in this way, and as a result, each color of the video signal is also adjusted.
次に、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更する場合の例について説明する。この場合、画面全体の画素値の平均値における各色データがR:G:B=1:1:1となるように、周知のオートホワイトバランス処理を実行する。その際、Gに対する色ゲインを固定し、R,Bに対する色ゲインを変化させて、R/G=1.0、B/G=1.0となるように、オートホワイトバランス処理を実行してもよい。いずれにしても、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とが等しくなるように撮影した撮像信号の画面全体の画素値の平均値に応じて各色ゲインを決定すればよい。
このようにオートホワイトバランス処理を実行する場合、色ゲイン制御部73は、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とが等しくなるように、各色ゲインを決定する。
Next, an example in which the color gain of each color is changed according to the pixel value of the captured image in the normal mode will be described. In this case, a well-known auto white balance process is executed so that each color data in the average value of the pixel values of the entire screen is R: G: B = 1: 1: 1. At that time, the color gain for G is fixed, the color gain for R and B is changed, and auto white balance processing is executed so that R / G = 1.0 and B / G = 1.0. Also good. In any case, each color gain is set in accordance with the average value of the pixel values of the entire screen of the imaging signal that is captured so that the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen are equal. Just decide.
When executing the auto white balance processing in this way, the color
例えば、画面全体の画素値の平均値において、R画素値が97であり、G画素値が100であり、B画素値が107であった場合、色ゲイン制御部73は、Rの色ゲインを100/97とし、Gの色ゲインを1.0とし、Bの色ゲインを100/107とする。そして、色ゲイン設定部62が 映像出力部6に入力された映像信号の各色データに対して、色ゲイン制御部73によって決定された各色ゲインを乗じることによって、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とが等しくなる。このようにする場合、撮影している画像の画素値に応じて各色の色ゲインは変わることとなる。なお、実際の色ゲインは、装置の仕様上の設定可能な値にするために、Rの色ゲインを1.031とし、Gの色ゲインを1.000とし、Bの色ゲインを0.935として、装置の仕様上の設定可能な位までの数にしてもよい。
なお、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更する場合において基準光源下で標準白色板を撮像したときの各色ゲインは、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合の各色ゲインと理論的に等しくなる。
また、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とを完全に等しくする必要はなく、数%程度であれば、ずれていてもよい。
また、オートホワイトバランス処理に係る種々の技術を採用してもよい。例えば、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との比が所定の閾値よりも大きくずれている場合は、ターゲットとなる値をR:G:B=1:1:1から変更してもよい。
For example, when the R pixel value is 97, the G pixel value is 100, and the B pixel value is 107 in the average pixel value of the entire screen, the color
When the color gain of each color is changed according to the pixel value of the captured image in the normal mode, each color gain when the standard white plate is imaged under the reference light source is the color gain according to the pixel value of the captured image in the normal mode. It is theoretically equal to each color gain when the color gain is not changed.
Further, the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen do not need to be completely equal, and may be shifted as long as they are about several percent.
Various techniques relating to auto white balance processing may be employed. For example, when the ratio of the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen is greatly deviated from a predetermined threshold value, the target value is R: G: B = 1. You may change from 1: 1.
次に、赤外光を投光するよう赤外線投光器9が制御される暗視モードにおいて、色再現性のよい映像信号を得るために、映像出力部6に入力されるカラー映像信号をどのように調整すべきかについて説明する。
Next, in order to obtain a video signal with good color reproducibility in the night vision mode in which the
暗視モードにおいては、前述のように、波長IR1,IR2,IR3の赤外光を被写体に照射したときに得られる映像信号をそれぞれR信号,G信号,B信号に割り当てている。原理的に、暗視モードにおいても、通常モードにおいて可視光が存在する環境下で被写体を撮像した場合と同様の色を再現することができるものの、全く同じ色を再現できるわけではない。 In the night vision mode, as described above, video signals obtained when infrared light of wavelengths IR1, IR2, and IR3 is irradiated on the subject are assigned to the R signal, G signal, and B signal, respectively. In principle, even in the night vision mode, the same color as that obtained when an object is imaged in an environment where visible light is present in the normal mode can be reproduced, but the exact same color cannot be reproduced.
そこで、本実施形態においては、暗視モードのときに、通常モードとは異なる調整方法を採用している。なお、暗視モードについても、撮影画像の画素値に応じて各色の色ゲインを変更しない例と、撮影画像の画素値に応じて各色の色ゲインを変更する例とを説明する。なお、以下の説明において、説明の便宜上、各赤外光の強度は、各色ゲインを3色とも同じゲインとして、各赤外光を投光して標準白色板を撮像したときに、少なくともその標準白色板に対応する領域の画素において、R画素値とG画素値とB画素値とが等しくなるような強度であるとする。つまり、赤外光の強度は、R画素値とG画素値とB画素値とのばらつき度合いに寄与しないような強度であるとする。 Therefore, in the present embodiment, an adjustment method different from that in the normal mode is employed in the night vision mode. In the night vision mode, an example in which the color gain of each color is not changed in accordance with the pixel value of the captured image and an example in which the color gain of each color is changed in accordance with the pixel value of the captured image will be described. In the following description, for convenience of explanation, the intensity of each infrared light is at least the standard when each standard gain plate is imaged by projecting each infrared light with the same gain for all three colors. It is assumed that the R pixel value, the G pixel value, and the B pixel value have the same intensity in the pixels in the region corresponding to the white plate. That is, it is assumed that the intensity of infrared light does not contribute to the degree of variation between the R pixel value, the G pixel value, and the B pixel value.
なお、R画素値とG画素値とB画素値とのばらつき度合いとは、基本的には、同一画面内におけるR画素値とG画素値とB画素値とのばらつき度合いであるが、同じ被写体を撮像し続けている状況であればこの限りではない。
また、R画素値とG画素値とB画素値との値のばらつき度合いとは、例えば、R画素値とG画素値とB画素値とから算出される分散や標準偏差などの種々のばらつき度合いを示す指標で表すことができる。
また、R画素値とG画素値とB画素値との値のばらつき度合いは、R画素値、G画素値、及びB画素値の内の最も大きな値と、最も小さい値との差分値でも表すこともでき、公知の種々の統計的なばらつきを表す指標を用いて表すこともできる。
Note that the degree of variation between the R pixel value, the G pixel value, and the B pixel value is basically the degree of variation between the R pixel value, the G pixel value, and the B pixel value in the same screen. This is not necessarily the case as long as the image is continuously captured.
In addition, the variation degree of the R pixel value, the G pixel value, and the B pixel value is, for example, various dispersion degrees such as dispersion and standard deviation calculated from the R pixel value, the G pixel value, and the B pixel value. It can be expressed by an index indicating.
In addition, the degree of variation between the R pixel value, the G pixel value, and the B pixel value is also represented by a difference value between the largest value and the smallest value among the R pixel value, the G pixel value, and the B pixel value. It can also be expressed using various well-known statistical indexes.
まず、暗視モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合について説明する。この場合、色ゲイン設定部62は、標準白色板を撮像したときに、少なくとも標準白色板に対応する領域の画素について、R画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいて基準光源下で標準白色板を撮像したときの少なくとも標準白色板に対応する領域の画素におけるR画素値とG画素値とB画素値との値のばらつき度合いよりも大きくなる所定の色ゲインを、映像出力部6に入力される映像信号のR,G,Bの3原色データに乗じる。
そして、映像出力部6は、色ゲイン設定部62によって色ゲインが乗じられて、各色の画素値に基づくばらつき度合いが所定のばらつき度合いよりも大きくされたカラー映像信号を出力する。
つまり、通常モードにおいて、基準光源下で標準白色板を撮像すると、R画素値とG画素値とB画素値とが等しくなるが、暗視モードでは前述のような色ゲインを各色データに乗じるため、標準白色板を撮像したときのR画素値とG画素値とB画素値とは等しくならない。
暗視モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合、このような色ゲインの値をメモリ等に保持しておき、色ゲイン設定部62は、映像出力部に入力される映像信号のR画素値、G画素値、B画素値のそれぞれに、メモリが保持している色ゲインを乗じればよい。
First, a case where the color gain of each color is not changed according to the pixel value of the captured image in the night vision mode will be described. In this case, when the color
Then, the
That is, when the standard white plate is imaged under the reference light source in the normal mode, the R pixel value, the G pixel value, and the B pixel value are equal, but in the night vision mode, the color gain as described above is multiplied by each color data. The R pixel value, G pixel value, and B pixel value when the standard white plate is imaged are not equal.
When the color gain of each color is not changed according to the pixel value of the captured image in the night vision mode, such a color gain value is held in a memory or the like, and the color
以上のように、撮像信号における標準白色板に対応する画素におけるR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいて基準光源下で標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いよりも大きくなっていればよい。この撮像信号における標準白色板に対応する画素は、単一の画素でもよいし、標準白色板に対応する複数の画素における画素値を平均したものであってもよい。 As described above, the variation degree of the R pixel value, the G pixel value, and the B pixel value in the pixel corresponding to the standard white plate in the imaging signal is obtained when the standard white plate is imaged under the reference light source in the normal mode. It only needs to be larger than the degree of variation of the R pixel value, the G pixel value, and the B pixel value. The pixel corresponding to the standard white plate in the imaging signal may be a single pixel or may be an average of pixel values of a plurality of pixels corresponding to the standard white plate.
また、この暗視モードにおける各色ゲインは、被写体に応じて複数準備してもよい。
例えば、本発明者による実験の結果、人の肌の色を重視する場合、波長IR1,IR2,IR3の赤外光を投光して標準白色板を撮像したときに、少なくともその標準白色板に対応する領域の画素において、R画素値とG画素値とB画素値との比が、次のような比となると良好な色再現性を得られることがわかった。
つまり、R画素値とG画素値とB画素値との比が、B/GがR/Gよりも大きくなるとともに、R/Gが1より小さくなり、かつ、B/Gが1より大きい所定の比となるように、色ゲイン設定部62における色ゲインを設定して、各色の画素値に基づくばらつき度合いを、通常モードのときよりも大きくすることで良好な色再現性を得られることがわかった。
このような色ゲインにすることによって、赤外線投光器9によって波長IR1〜IR3の赤外光を投光して撮像したときに人の肌の色がよく再現されることが確かめられた。より具体的には、R/G=0.66程度、B/G=1.46程度となるような色ゲインにすることが好ましい。
A plurality of color gains in the night vision mode may be prepared according to the subject.
For example, as a result of experiments by the present inventor, when emphasizing the color of human skin, when a standard white plate is imaged by projecting infrared light of wavelengths IR1, IR2, IR3, at least the standard white plate It has been found that good color reproducibility can be obtained when the ratio of the R pixel value, the G pixel value, and the B pixel value in the corresponding region of the pixels is as follows.
That is, the ratio of the R pixel value, the G pixel value, and the B pixel value is such that B / G is larger than R / G, R / G is smaller than 1, and B / G is larger than 1. By setting the color gain in the color
By setting the color gain in this way, it has been confirmed that the color of human skin is well reproduced when the
また、プラスチックの色を重視する場合、波長IR1,IR2,IR3の赤外光を投光して標準白色板を撮像したときに、少なくともその標準白色板に対応する領域の画素において、R画素値とG画素値とB画素値との比が、B/GがR/Gよりも大きくなるとともに、R/G及びB/Gが1より大きい所定の比となるように、色ゲイン設定部62における色ゲインを設定して、各色の画素値に基づくばらつき度合いを、通常モードのときよりも大きくすることで良好な色再現性を得られることがわかった。
このような色ゲインにすることによって、赤外線投光器9によって波長IR1〜IR3の赤外光を投光して撮像したときにプラスチックの色がよく再現されることが確かめられた。より具体的には、R/G=1.35程度、B/G=2.04程度となるような色ゲインにすることが好ましい。
When the plastic color is important, when the standard white plate is imaged by projecting infrared light of wavelengths IR1, IR2, and IR3, at least in the region corresponding to the standard white plate, the R pixel value Color
By using such a color gain, it has been confirmed that the color of the plastic is well reproduced when the
なお、プラスチックの色を重視する場合、赤,緑,青等の複数の色がバランス良く良好な色再現性で表現される場合のR/G及びB/Gの値を採用すればよいが、複数の色のうちの特定の色の再現性を重視する場合には、その特定の色が色再現性よく表現される場合のR/G及びB/Gの値を採用すればよい。 In the case where importance is attached to the color of the plastic, values of R / G and B / G when a plurality of colors such as red, green, and blue are expressed with good color reproducibility in a balanced manner may be adopted. When emphasizing the reproducibility of a specific color among a plurality of colors, the values of R / G and B / G when the specific color is expressed with good color reproducibility may be employed.
以上のように、いずれの色を重視する場合においても、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合と比較すると、暗視モードにおける各色ゲインは、波長IR1,IR2,IR3の赤外光を照射して標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいて基準光源下で標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いよりも大きくなるような色ゲインである。
また、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更する場合と比較すると、暗視モードにおける各色ゲインは、波長IR1,IR2,IR3の赤外光を照射して標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいてオートホワイトバランス処理を実行したときの画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との値のばらつき度合いよりも大きくなるような色ゲインである。
As described above, when any color is important, each color gain in the night vision mode has wavelengths IR1 and IR2 as compared with the case where the color gain of each color is not changed according to the pixel value of the captured image in the normal mode. , When the standard white plate is imaged by irradiating infrared light of IR3, the variation degree of the R pixel value, the G pixel value, and the B pixel value is taken under the reference light source in the normal mode. The color gain is larger than the degree of variation of the R pixel value, G pixel value, and B pixel value.
Further, compared with the case where the color gain of each color is changed according to the pixel value of the captured image in the normal mode, each color gain in the night vision mode is irradiated with infrared light of wavelengths IR1, IR2, IR3 and a standard white plate The variation degree of the R pixel value, the G pixel value, and the B pixel value when the image is captured is determined by the R pixel value and the G value in the average value of the pixel values of the entire screen when the auto white balance process is executed in the normal mode. The color gain is larger than the degree of variation between the pixel value and the B pixel value.
また、肌やプラスチック以外の色にも、実際に被写体となる物体を撮像しながら、最も良好な色再現性となるように、色ゲインを調整し、その調整した結果を用いて撮像することができる。このように、肌やプラスチック以外の色を重視する場合においても、R画素値とG画素値とB画素値との値のばらつき度合いを、標準白色板を撮像したときのR画素値とG画素値とB画素値とが等しくならないように、所定のばらつき度合いよりも大きくすると良好な色再現性が得られる。
つまり、ばらつき度合いを標準偏差で表した場合、R画素値とG画素値とB画素値とから算出される標準偏差が0よりも大きくなるようにすると良好な色再現性が得られる。
また、ばらつき度合いを、R画素値、G画素値、及びB画素値の内の最も大きな値と、最も小さい値との差分値で表した場合、差分値が0よりも大きくなるようにすると良好な色再現性が得られる。
It is also possible to adjust the color gain so that the best color reproducibility can be obtained while imaging an object that is actually a subject for colors other than skin and plastic, and then use the adjusted result for imaging. it can. As described above, even when importance is attached to colors other than skin and plastic, the degree of variation in the values of the R pixel value, the G pixel value, and the B pixel value is determined based on the R pixel value and the G pixel when the standard white plate is imaged. Good color reproducibility can be obtained if the value is larger than a predetermined degree of variation so that the value and the B pixel value are not equal.
In other words, when the degree of variation is expressed by standard deviation, good color reproducibility can be obtained if the standard deviation calculated from the R pixel value, G pixel value, and B pixel value is greater than zero.
In addition, when the degree of variation is expressed as a difference value between the largest value and the smallest value among the R pixel value, the G pixel value, and the B pixel value, it is preferable that the difference value be larger than 0. Color reproducibility is obtained.
次に、暗視モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更する場合について説明する。
このような場合、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合の各画素値と比較すると、色ゲイン制御部73は、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいて基準光源下で標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いよりも大きい所定の値となるように、R,G,Bの3原色データに乗じる色ゲインを制御する。
つまり、暗視モードではこのような色ゲインを各色データに乗じるため、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とが基本的に等しくならない。
Next, the case where the color gain of each color is changed according to the pixel value of the captured image in the night vision mode will be described.
In such a case, when compared with each pixel value in the case where the color gain of each color is not changed according to the pixel value of the captured image in the normal mode, the color
That is, in the night vision mode, such color gain is multiplied by each color data, so that the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen are not basically equal.
また、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更する場合の各画素値と比較すると、色ゲイン制御部73は、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいてオートホワイトバランス処理を実行された後のR画素値とG画素値とB画素値との値のばらつき度合いよりも大きい所定の各色データとなるように、R,G,Bの3原色データに乗じる色ゲインを制御するとも言える。
In addition, when compared with each pixel value when changing the color gain of each color according to the pixel value of the captured image in the normal mode, the color
色ゲイン制御部73は、1つ又は複数のフレームごとに、カラー映像信号の画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とを取得し、上述のような色ゲインを算出して、色ゲインを決定する。
そして、色ゲイン設定部62は、決定された色ゲインを各画素の各色の画素値に対して乗じる。
そして、映像出力部6は、色ゲイン設定部62によって色ゲインが乗じられて、各色の画素値に基づくばらつき度合いが所定のばらつき度合いよりも大きくされたカラー映像信号を出力する。
The color
Then, the color
Then, the
例えば、人の肌の色を重視するときは、上述のように画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との比が、B/GがR/Gよりも大きくなるとともに、R/Gが1より小さくなり、かつ、B/Gが1より大きい所定の比となるように、色ゲイン設定部62における色ゲインを設定して、各色の画素値に基づくばらつき度合いを、通常モードのときよりも大きくすることで良好な色再現性を得られる。例えば、R/G=0.66程度、B/G=1.46程度となるような値をターゲット値として、色ゲインを設定することが好ましい。
具体的に、例えば、画面全体の画素値の平均値におけるR画素値、G画素値、及びB画素値が共に100であった場合、色ゲイン制御部73は、Rの色ゲインを0.66とし、Gの色ゲインを1.00とし、Bの色ゲインを1.46とする。そして、色ゲイン設定部62が 映像出力部6に入力された映像信号に対して、色ゲイン制御部73によって決定された各色データに各色ゲインを乗じることによって、画面全体の画素値の平均値において、R/G=0.66、B/G=1.46となる。プラスチックの色を重視する場合も前述した値をターゲット値とすれば良好に色を再現することができる。
For example, when emphasizing human skin color, as described above, the ratio of the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen is such that B / G is more than R / G. And the color gain in the color
Specifically, for example, when the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen are all 100, the color
以上のようにすることで、暗視モードにおいても色再現性のよい映像信号を得ることができる。 By doing as described above, a video signal with good color reproducibility can be obtained even in the night vision mode.
以上説明したように、通常モードにおいてホワイトバランスを調整した色ゲインと、暗視モードにおける色ゲインとが異なることになる。色ゲイン制御部73は、モード切換部72が通常モードと暗視モードとを切り換えるのに対応して、処理を切り換える。
なお、周知のパターンマッチング技術を用いて人物を検出する人物検出部(図示せず)を備え、人物を検出したときは上述の人の肌の色を重視するゲイン設定とし、人物を検出していないときはその他のゲイン設定としてもよい。
As described above, the color gain obtained by adjusting the white balance in the normal mode is different from the color gain in the night vision mode. The color
In addition, a person detection unit (not shown) that detects a person using a known pattern matching technique is provided, and when a person is detected, the above-described gain setting that emphasizes the human skin color is used to detect the person. If not, other gain settings may be used.
また、暗視モードにおいて、映像出力部6が、各色の画素値に基づくばらつき度合いが所定のばらつき度合いよりも大きいカラー映像信号を出力する方法として、他の方法を用いてもよい。以下、その方法について説明する。
なお、以下の説明において、説明の便宜上、色ゲイン設定部62が映像信号に乗じる色ゲインを通常モードおける色ゲインと同じであるとする。つまり、R画素値とG画素値とB画素値とのばらつき度合いに寄与しないような色ゲインであるとする。
以下説明する方法では、赤外線投光器9が波長IR1〜IR3の赤外光を投光するときのそれぞれの強度を制御することによって、R画素値とG画素値とB画素値との値のばらつき度合いや、R画素値とG画素値とB画素値との比を制御する。
撮影画像の画素値に応じて波長IR1〜IR3の赤外光の強度を変更しない例と、撮影画像の画素値に応じて波長IR1〜IR3の各赤外光の強度を変更する例とを説明する
In the night vision mode, another method may be used as a method in which the
In the following description, for convenience of description, it is assumed that the color gain that the color
In the method described below, the degree of variation in the values of the R pixel value, the G pixel value, and the B pixel value is controlled by controlling the intensity when the
An example in which the intensity of infrared light with wavelengths IR1 to IR3 is not changed according to the pixel value of the captured image and an example in which the intensity of each infrared light with wavelengths IR1 to IR3 is changed according to the pixel value of the captured image will be described. Do
まず、撮影画像の画素値に応じて波長IR1〜IR3の各赤外光の強度を変更しない場合について説明する。この場合、投光制御部71は、波長IR1〜IR3の各赤外光を投光して標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいて基準光源下で標準白色板を撮像したときの少なくとも標準白色板に対応する領域の画素におけるR画素値とG画素値とB画素値との値のばらつき度合いよりも大きくなる所定の強度で、各赤外光を投光するよう赤外線投光器9を制御する。
赤外光の強度がそのように制御されることによって、映像出力部6は、各色の画素値に基づくばらつき度合いが所定のばらつき度合いよりも大きくされたカラー映像信号を出力することとなる。
つまり、通常モードにおいて、基準光源下で標準白色板を撮像すると、R画素値とG画素値とB画素値とが等しくなるが、暗視モードでは前述のような強度で波長IR1〜IR3の各赤外光を投光するため、R画素値とG画素値とB画素値とは等しくならない。
暗視モードにおいて撮影画像の画素値に応じて波長IR1〜IR3の各赤外光の強度を変更しない場合、このような強度で投光するための各赤外光の強度(電流値等)をメモリ等に保持しておき、投光制御部71は、その強度で投光するよう赤外線投光器9を制御する。
First, a case where the intensity of each infrared light of the wavelengths IR1 to IR3 is not changed according to the pixel value of the captured image will be described. In this case, the light
By controlling the intensity of the infrared light in such a manner, the
That is, when the standard white plate is imaged under the reference light source in the normal mode, the R pixel value, the G pixel value, and the B pixel value are equal, but in the night vision mode, each of the wavelengths IR1 to IR3 has the above-described intensity. Since infrared light is projected, the R pixel value, the G pixel value, and the B pixel value are not equal.
When the intensity of each infrared light of the wavelengths IR1 to IR3 is not changed according to the pixel value of the photographed image in the night vision mode, the intensity (current value, etc.) of each infrared light for projecting at such an intensity is set. The light
また、各赤外光の強度は、被写体に応じて複数準備してもよい。
例えば、前述のように、人の肌の色を重視する場合、波長IR1〜IR3の各赤外光を投光して標準白色板を撮像したときに、少なくともその標準白色板に対応する領域の画素において、R画素値とG画素値とB画素値との比が、B/GがR/Gよりも大きくなるとともに、R/Gが1より小さくなり、かつ、B/Gが1より大きい所定の比となるように各赤外光の強度を制御して、各色の画素値に基づくばらつき度合いを通常モードのときよりも大きくすることで、赤外線投光器9によって波長IR1〜IR3の赤外光を投光して撮像したときに人の肌の色がよく再現される。
例えば、基準光源下で標準白色板を撮像したときにR画素値とG画素値とB画素値とが等しくなるような色ゲインが設定されている場合は、Rに対応するIR1の赤外光を、Gに対応するIR2の赤外光よりも弱い強度で投光するとともに、Bに対応するIR3の赤外光を、Gに対応するIR2の赤外光よりも強い強度で投光することで、各色の映像信号をR/G=0.66程度、B/G=1.46程度とすることができる。
A plurality of infrared light intensities may be prepared according to the subject.
For example, as described above, when emphasizing the color of human skin, when a standard white plate is imaged by projecting each infrared light of wavelengths IR1 to IR3, at least the region corresponding to the standard white plate In the pixel, the ratio of the R pixel value, the G pixel value, and the B pixel value is such that B / G is larger than R / G, R / G is smaller than 1, and B / G is larger than 1. By controlling the intensity of each infrared light so that it becomes a predetermined ratio and making the degree of variation based on the pixel value of each color larger than in the normal mode, the infrared
For example, when a color gain is set such that an R pixel value, a G pixel value, and a B pixel value are equal when a standard white plate is imaged under a reference light source, infrared light of IR1 corresponding to R Is projected at a lower intensity than IR2 infrared light corresponding to G, and IR3 infrared light corresponding to B is projected at an intensity stronger than IR2 infrared light corresponding to G. Thus, the video signals of the respective colors can be set to about R / G = 0.66 and B / G = 1.46.
また、前述のように、プラスチックの色を重視する場合、波長IR1〜IR3の各赤外光を投光して標準白色板を撮像したときに、少なくともその標準白色板に対応する領域の画素において、R画素値とG画素値とB画素値との比が、B/GがR/Gよりも大きくなるとともに、R/G及びB/Gが1より大きい所定の比となるように各赤外光の強度を制御して、各色の画素値に基づくばらつき度合いを通常モードのときよりも大きくすることで、波長IR1〜IR3の赤外光を投光して撮像したときにプラスチックの色がよく再現される。 Further, as described above, when importance is attached to the color of the plastic, when a standard white plate is imaged by projecting each infrared light of wavelengths IR1 to IR3, at least in a pixel in a region corresponding to the standard white plate. , The ratio of the R pixel value, the G pixel value, and the B pixel value is such that B / G is larger than R / G and that R / G and B / G are a predetermined ratio larger than 1. By controlling the intensity of the external light and making the degree of variation based on the pixel values of each color larger than in the normal mode, the color of the plastic can be obtained when imaging is performed by projecting infrared light of wavelengths IR1 to IR3. It is reproduced well.
なお、プラスチックの色を重視する場合、赤,緑,青等の複数の色がバランス良く良好な色再現性で表現される場合のR/G及びB/Gの値を採用すればよいが、複数の色のうちの特定の色の再現性を重視する場合には、その特定の色が色再現性よく表現される場合のR/G及びB/Gの値を採用すればよい。 In the case where importance is attached to the color of the plastic, values of R / G and B / G when a plurality of colors such as red, green, and blue are expressed with good color reproducibility in a balanced manner may be adopted. When emphasizing the reproducibility of a specific color among a plurality of colors, the values of R / G and B / G when the specific color is expressed with good color reproducibility may be employed.
以上のように、いずれの色を重視する場合においても、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更しない場合と比較すると、暗視モードにおける各赤外光の強度は、波長IR1,IR2,IR3の赤外光を照射して標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいて基準光源下で標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いよりも大きくなるような強度である。
また、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更する場合と比較すると、暗視モードにおける各赤外光の強度は、波長IR1,IR2,IR3の赤外光を照射して標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいてオートホワイトバランス処理を実行したときの画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との値のばらつき度合いよりも大きくなるような強度である。
As described above, in the case where any color is emphasized, the intensity of each infrared light in the night vision mode is compared with the case where the color gain of each color is not changed according to the pixel value of the captured image in the normal mode. When the standard white plate is imaged by irradiating infrared light of wavelengths IR1, IR2, and IR3, the degree of variation in the R pixel value, G pixel value, and B pixel value is standard white under the reference light source in the normal mode. The intensity is greater than the degree of variation of the R pixel value, G pixel value, and B pixel value when the plate is imaged.
Further, compared with the case where the color gain of each color is changed according to the pixel value of the captured image in the normal mode, the intensity of each infrared light in the night vision mode is irradiated with infrared light of wavelengths IR1, IR2, and IR3. The variation degree of the R pixel value, the G pixel value, and the B pixel value when the standard white plate is imaged is R in the average value of the pixel values of the entire screen when the auto white balance process is executed in the normal mode. The intensity is larger than the degree of variation of the pixel value, the G pixel value, and the B pixel value.
また、肌の色やプラスチックの色以外にも、重視したい被写体を撮像しながら、最も良好な色再現性となるように、各赤外光の強度を調整し、その調整した結果を用いて撮像することができる。その際、色ゲインも同時に調整し、赤外光の強度と色ゲインとで調整してもよい。このように、肌の色やプラスチックの色以外を重視する場合においても、標準白色板を撮像したときのR画素値とG画素値とB画素値とが等しくならないように所定のばらつき度合いよりも大きくすると良好な色再現性が得られる。ばらつき度合いを標準偏差で表した場合、R画素値とG画素値とB画素値とから算出される標準偏差が0よりも大きくなるようにすると良好な色再現性が得られる。
また、ばらつき度合いを、R画素値、G画素値、及びB画素値の内の最も大きな値と、最も小さい値との差分値で表した場合、差分値が0よりも大きくなるようにすると良好な色再現性が得られる。
In addition to skin color and plastic color, adjust the intensity of each infrared light to obtain the best color reproducibility while imaging the subject you want to emphasize, and then use the adjusted result to capture the image. can do. At that time, the color gain may be adjusted at the same time, and may be adjusted by the intensity of the infrared light and the color gain. In this way, even when importance is placed on colors other than skin color and plastic color, the R pixel value, G pixel value, and B pixel value when the standard white plate is imaged are not equal to a predetermined degree of variation. When it is increased, good color reproducibility can be obtained. When the degree of variation is expressed in terms of standard deviation, good color reproducibility can be obtained if the standard deviation calculated from the R pixel value, G pixel value, and B pixel value is greater than zero.
In addition, when the degree of variation is expressed as a difference value between the largest value and the smallest value among the R pixel value, the G pixel value, and the B pixel value, it is preferable that the difference value be larger than 0. Color reproducibility is obtained.
次に、暗視モードにおいて撮影画像の画素値に応じて波長IR1〜IR3の各赤外光の強度を変更する場合について説明する。
この場合、投光制御部71は、波長IR1〜IR3の各赤外光を投光して撮像した画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいて基準光源下で標準白色板を撮像したときのR画素値とG画素値とB画素値との値のばらつき度合いよりも大きい所定の値となるように、波長IR1〜IR3の各赤外光の強度を決定する。
つまり、暗視モードではこのような強度の各赤外光を投光するため、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とは基本的に等しくならない。
Next, a case where the intensity of each infrared light with wavelengths IR1 to IR3 is changed according to the pixel value of the captured image in the night vision mode will be described.
In this case, the light
That is, in the night vision mode, each infrared light having such an intensity is projected, so the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen are not basically equal.
また、通常モードにおいて撮影画像の画素値に応じて各色の色ゲインを変更する場合と比較すると、投光制御部71は、波長IR1〜IR3の各赤外光を投光して撮像した画面全体の画素値の平均値が、その平均値におけるR画素値とG画素値とB画素値との値のばらつき度合いが、通常モードにおいてオートホワイトバランス処理を実行された後の画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との値のばらつき度合いよりも大きい所定の値となるように、波長IR1〜IR3の各赤外光の強度を決定する。
つまり、通常モードにおいて、オートホワイトバランス処理を実行すると、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とが基本的に等しくなるが、暗視モードでは前述のような強度で赤外光を投光するため、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とは等しくならない。
なお、赤外光の強度を制御して調整する方法の場合、制御部71は、暗視モード中はオートホワイトバランス処理を行わないよう制御する。オートホワイトバランス処理を行うと、各赤外光の強度を変えても画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とが等しくなってしまうためである。
Further, compared to the case where the color gain of each color is changed according to the pixel value of the captured image in the normal mode, the light
That is, when auto white balance processing is executed in the normal mode, the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen are basically equal, but in the night vision mode, as described above. Since infrared light is projected with a high intensity, the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen are not equal.
In the case of a method of adjusting by adjusting the intensity of infrared light, the
例えば、人の肌の色を重視するときは、上述のように、例えば、画面全体の画素値の平均値におけるR画素値とG画素値とB画素値との比が、B/GがR/Gよりも大きくなるとともに、R/Gが1より小さくなり、かつ、B/Gが1より大きい所定の比となるように、投光制御部71が赤外光の強度を設定して、各色の画素値に基づくばらつき度合いを、通常モードのときよりも大きくすることで良好な色再現性を得られる。例えば、R/G=0.66程度、B/G=1.46程度となるような値をターゲット値として、各赤外光の強度を設定することが好ましい。
具体的に、例えば、通常モードで撮影すると画面全体の画素値の平均値におけるR画素値、G画素値、及びB画素値が共に100であるような被写体を撮像する場合、投光制御部71は、Rに対応するIR1の赤外光を、Gに対応するIR2の赤外光よりも弱い強度で投光するとともに、Bに対応するIR3の赤外光を、Gに対応するIR2の赤外光よりも強い強度で投光することで、各色の映像信号がR/G=0.66程度、B/G=1.46程度とすることができる。プラスチックの色を重視する場合も前述した値をターゲット値とすれば良好に色を再現することができる。
For example, when emphasizing the color of human skin, as described above, for example, the ratio of the R pixel value, the G pixel value, and the B pixel value in the average value of the pixel values of the entire screen is such that B / G is R The light
Specifically, for example, when shooting a subject whose R pixel value, G pixel value, and B pixel value are all 100 in the average value of the pixel values of the entire screen when shooting in the normal mode, the light
暗視モードにおいて撮影画像の画素値に応じて波長IR1〜IR3の各赤外光の強度を変更する場合、投光制御部71は、1つ又は複数のフレームごとに、カラー映像信号の画面全体の画素値の平均値におけるR画素値とG画素値とB画素値とを取得し、上述のようになる強度を算出して、各赤外光の強度を決定する。R画素値とG画素値とB画素値とをフィードバックしながら、随時、強度を調整する。
そして、赤外線投光器9は、決定された強度で波長IR1〜IR3の各赤外光を投光し、映像出力部6は、各色の画素値に基づくばらつき度合いが所定のばらつき度合いよりも大きくされたカラー映像信号を出力することとなる。
When changing the intensity of each infrared light of the wavelengths IR1 to IR3 according to the pixel value of the captured image in the night vision mode, the light
The
以上のようにすることで、暗視モードにおいても色再現性のよいカラー映像信号を得ることができる。
なお、周知のパターンマッチング技術を用いて人物を検出する人物検出部(図示せず)を備え、人物を検出したときは上述の人の肌の色を重視する強度設定とし、人物を検出していないときはその他の強度設定としてもよい。
By doing so, a color video signal with good color reproducibility can be obtained even in the night vision mode.
In addition, a person detection unit (not shown) that detects a person using a known pattern matching technique is provided, and when a person is detected, the above-described intensity setting that emphasizes the skin color of the person is used to detect the person. If not, other strength settings may be used.
なお、色ゲイン設定部62によってカラー映像信号のR,G,Bに乗じる色ゲインを制御して、映像出力部6が出力するカラー映像信号のR画素値とG画素値とB画素値とのバランスを調整する方法と、波長IR1〜IR3の赤外光の強度を制御して、映像出力部6が出力するカラー映像信号のR画素値とG画素値とB画素値とのバランスを調整する方法とを組み合わせて、上述のR画素値とG画素値とB画素値との値のばらつき度合いや、R画素値とG画素値とB画素値との比を実現するようにしてもよい。
The color
次に、図29〜図32を用いて、以上説明した通常モード及び暗視モードにおけるカラー映像信号の色の調整をさらに詳細に説明する。以下の説明は、初期段階における各赤外光の強度や色ゲインの値を設定するために有用である。また、撮像装置の品質検査等にも有用である。 Next, the color adjustment of the color video signal in the normal mode and the night vision mode described above will be described in further detail with reference to FIGS. The following description is useful for setting the intensity and color gain value of each infrared light in the initial stage. It is also useful for quality inspections of imaging devices.
図29〜図31は、一例として、NTSCのベクトルスコープを概略的に示している。横軸は色差信号B−Y、縦軸はR−Yである。Yは輝度信号である。ベクトルスコープが示す円の周方向は色相を示している。R,G,Bと、黄色(Ye),マゼンタ(Mg),シアン(Cy)はハッチングを付した丸で示す位置で表現される。 FIGS. 29 to 31 schematically show an NTSC vector scope as an example. The horizontal axis is the color difference signal BY, and the vertical axis is RY. Y is a luminance signal. The circumferential direction of the circle indicated by the vector scope indicates the hue. R, G, and B, and yellow (Ye), magenta (Mg), and cyan (Cy) are expressed by positions indicated by hatched circles.
通常モードにおいて上述のようにホワイトバランスを調整すると、無彩色の物体(例えば、標準白色板)を撮像した場合に出力されるカラー映像信号を示す指標は、図29に白丸で示すように、ベクトルスコープの円の中心に位置する。 When the white balance is adjusted as described above in the normal mode, an index indicating a color video signal output when an achromatic object (for example, a standard white plate) is imaged is a vector as shown by a white circle in FIG. Located in the center of the scope circle.
暗視モードにおいて人の肌の色を重視する場合のように、R画素値とG画素値とB画素値との値のばらつき度合いを大きくして、R画素値とG画素値とB画素値との比を、R/G=0.66、B/G=1.46となる所定の比にすると、無彩色の物体を撮像した場合に出力されるカラー映像信号を示す指標は、図30にクロスハッチングを付した丸で示す位置へと移動する。通常モードにおける白が、図30にクロスハッチングを付した丸で示す位置へと移動した状態になるように各色ゲイン又は各赤外光の強度が調整された状態で撮影することで人の肌の色が色再現性よく再現される。 As in the case of emphasizing human skin color in the night vision mode, the degree of variation in the values of the R pixel value, the G pixel value, and the B pixel value is increased, and the R pixel value, the G pixel value, and the B pixel value are increased. Is a predetermined ratio of R / G = 0.66 and B / G = 1.46, the index indicating the color video signal output when an achromatic object is imaged is shown in FIG. Move to the position indicated by the circle with cross-hatching. Photographing in a state in which the color gain or the intensity of each infrared light is adjusted so that white in the normal mode is moved to a position indicated by a circle with cross-hatching in FIG. 30. Color is reproduced with good color reproducibility.
暗視モードにおいてプラスチックの色を重視する場合のように、R画素値とG画素値とB画素値との値のばらつき度合いを大きくして、R画素値とG画素値とB画素値との比を、R/G=1.35、B/G=2.04となる所定の比にすると、無彩色の物体を撮像した場合に出力されるカラー映像信号を示す指標は、図31にクロスハッチングを付した丸で示す位置へと移動する。通常モードにおける白が、図31にクロスハッチングを付した丸で示す位置へと移動した状態になるように各色ゲイン又は各赤外光の強度が調整された状態で撮影することでプラスチックの複数の色が色再現性よく再現される。
以上のようにベクトルスコープに基づいて撮像装置の初期設定や品質検査等を行うこともできる。
As in the case of emphasizing the color of plastic in the night vision mode, the degree of variation of the R pixel value, the G pixel value, and the B pixel value is increased, and the R pixel value, the G pixel value, and the B pixel value are When the ratio is set to a predetermined ratio of R / G = 1.35 and B / G = 2.04, the index indicating the color video signal output when an achromatic object is imaged is shown in FIG. Move to the position indicated by the hatched circle. Photographing in a state in which the color gain or the intensity of each infrared light is adjusted so that white in the normal mode is moved to a position indicated by a circle with cross hatching in FIG. Color is reproduced with good color reproducibility.
As described above, the initial setting, quality inspection, and the like of the imaging apparatus can be performed based on the vector scope.
図32は、通常モードにおける白を決めるための基準となる無彩色の物体(例えば、標準白色板)を撮影したときのR/G及びB/Gの値が、暗視モードにおいてどのように変化するかを示している。通常モードでは、黒丸で示すように、R/G=1.0、B/G=1.0である。 FIG. 32 shows how the R / G and B / G values change in the night vision mode when an achromatic object (for example, a standard white plate) serving as a reference for determining white in the normal mode is photographed. Indicates what to do. In the normal mode, as indicated by black circles, R / G = 1.0 and B / G = 1.0.
暗視モードにおいて人の肌の色を重視する場合には、R画素値とG画素値とB画素値との値のばらつき度合いを大きくして、R画素値とG画素値とB画素値との比を、R/G=0.66、B/G=1.46となる所定の比にするので、黒丸は黒の四角の位置へと移動する。 When emphasizing the color of human skin in the night vision mode, the degree of variation of the R pixel value, the G pixel value, and the B pixel value is increased, and the R pixel value, the G pixel value, and the B pixel value are Therefore, the black circle moves to the position of the black square because R / G = 0.66 and B / G = 1.46.
暗視モードにおいてプラスチックの色を重視する場合には、R画素値とG画素値とB画素値との値のばらつき度合いを大きくして、R画素値とG画素値とB画素値との比を、R/G=1.35、B/G=2.04となる所定の比にするので、黒丸は黒の三角の位置へと移動する。
以上のようなグラフ等に基づいて撮像装置の初期設定や品質検査等を行うこともできる。
When importance is attached to the color of plastic in the night vision mode, the degree of variation of the R pixel value, the G pixel value, and the B pixel value is increased, and the ratio of the R pixel value, the G pixel value, and the B pixel value is increased. Is set to a predetermined ratio of R / G = 1.35 and B / G = 2.04, the black circle moves to the position of the black triangle.
It is also possible to perform initial setting, quality inspection, and the like of the imaging device based on the above graph and the like.
以上の説明した調整方法をまとめると次のとおりである。
通常モードについては、調整時に、白を決めるための基準となる無彩色の物体(例えば、標準白色板)に基準光源からの光を照射した状態とする。色ゲイン制御部73は、その物体を撮像したときに、映像処理部5によって生成される3原色映像信号が白となるような色ゲインを、カラー映像信号における各色の映像信号に乗じるよう、色ゲイン設定部62を制御する。
The adjustment methods described above are summarized as follows.
The normal mode is a state in which light from a reference light source is irradiated to an achromatic object (for example, a standard white plate) that serves as a reference for determining white at the time of adjustment. The color
暗視モードでは、調整時に、無彩色の物体に赤外線投光器9からの波長IR1〜IR3の赤外光を投光した状態とする。撮像部3がその物体を撮像したときに、映像処理部5によって生成されるカラー映像信号が白以外の特定の色を再現するように、カラー映像信号における各色の映像信号のバランスを調整する。
In the night vision mode, at the time of adjustment, the infrared light of wavelengths IR1 to IR3 from the
各色の映像信号のバランスは、色ゲイン設定部62が各色の映像信号に乗じる色ゲインを適宜設定することによって調整してもよいし、赤外線投光器9が投光する波長IR1〜IR3の赤外光の強度を適宜設定することによって調整してもよい。
The balance of the video signals of the respective colors may be adjusted by appropriately setting the color gain to be multiplied by the video signals of the respective colors by the color
また、次のようにすることもできる。
撮像部3によって、白を決めるための基準となる無彩色の物体に基準光源からの光を照射した状態で、その物体を撮像して第1の撮像信号を生成する。映像処理部5は、第1の撮像信号に基づいてR,G,Bの第1の3原色映像信号を生成する。
Moreover, it can also be performed as follows.
The
色ゲイン制御部73は、第1の3原色映像信号が白となるような、R,G,Bの各色の映像信号に乗じる色ゲインを決定する。以上で通常モードにおける調整が完了する。
The color
上記と同じ物体に波長IR1〜IR3の赤外光を投光した状態で、撮像部3によってその物体を撮像して第2の撮像信号を生成する。映像処理部5は、第2の撮像信号に基づいてR,G,Bの第2の3原色映像信号を生成する。撮像装置は、第2の3原色映像信号が白以外の色を再現するように、3原色映像信号における各色の映像信号のバランスを調整する。以上で暗視モードにおける調整が完了する。
In a state where infrared light having wavelengths IR1 to IR3 is projected onto the same object as described above, the
本実施形態の撮像装置及び撮像装置の調整方法によれば、暗視モードにおいて色再現性のよい映像信号を得ることができる。 According to the imaging device and the adjustment method of the imaging device of the present embodiment, a video signal with good color reproducibility can be obtained in the night vision mode.
ところで、本実施形態の撮像装置においては、暗視モードでの撮像時に、波長IR1〜IR3の赤外光を時分割で選択的に投光する構成を示したが、波長IR1〜IR3の赤外光を同時に投光する構成であってもよい。 By the way, in the imaging device of the present embodiment, the configuration in which infrared light with wavelengths IR1 to IR3 is selectively projected in a time division manner during imaging in the night vision mode is shown. The structure which projects light simultaneously may be sufficient.
例えば、撮像部3が単一の撮像素子を有する単板式であればマイクロフィルタ等を用いることにより、波長IR1〜IR3の赤外光を同時に投光する構成とすることができる。また、撮像部3が3つの撮像素子を有する三板式であればダイクロイックプリズム等を用いることにより、波長IR1〜IR3の赤外光を同時に投光する構成とすることができる。
For example, if the
単板式の場合、通常モードのときは、マイクロフィルタによって、Rの画素には可視光のR成分、Gの画素には可視光のG成分、Bの画素には可視光のB成分が入射し、暗視モードのときは、マイクロフィルタによって、Rの画素には波長IR1の赤外光、Gの画素には波長IR2の赤外光、Bの画素には波長IR3の赤外光が入射するように構成すればよい。
また、三板式の場合、通常モードのときは、ダイクロイックプリズムによって、Rに対応する撮像素子には可視光のR成分、Gに対応する撮像素子には可視光のG成分、Bに対応する撮像素子には可視光のB成分が入射し、暗視モードのときは、ダイクロイックプリズムによって、Rに対応する撮像素子には波長IR1の赤外光、Gに対応する撮像素子には波長IR2の赤外光、Bに対応する撮像素子には波長IR3の赤外光が入射するように構成すればよい。
In the case of the single-plate type, in the normal mode, the R component of visible light is incident on the R pixel, the G component of visible light is incident on the G pixel, and the B component of visible light is incident on the B pixel. In the night vision mode, the infrared light having the wavelength IR1 is incident on the R pixel, the infrared light having the wavelength IR2 is incident on the G pixel, and the infrared light having the wavelength IR3 is incident on the B pixel. What is necessary is just to comprise.
In the case of the three-plate type, in the normal mode, the dichroic prism is used to capture the R component of visible light for the image sensor corresponding to R, the G component of visible light for the image sensor corresponding to G, and the image corresponding to B. The B component of visible light is incident on the element, and in the night vision mode, the dichroic prism causes infrared light having a wavelength IR1 to be applied to an image sensor corresponding to R, and red having a wavelength IR2 to an image sensor corresponding to G. What is necessary is just to comprise so that the infrared light of wavelength IR3 may inject into the image pick-up element corresponding to external light and B. FIG.
本実施形態においては、R画素値とG画素値とB画素値とに基づくばらつき度合いが所定のばらつき度合いよりも大きくして、R画素値とG画素値とB画素値との比が上述の比となるようなカラー映像信号を出力するようにしたが、どのような物質をどのような比とするのかは任意である。
例えば、撮像素子の性質やカラー映像信号を生成する処理方法に応じて、適宜、変更してもよい。物質の素材によって元々の色が再現しにくい場合があるが、実際に赤外光を投光しながら撮像して生成したカラー映像信号を見ながら、被写体の本来の色またはそれに準ずる色が良好に再現するように調整するのがよい。その際、R画素値とG画素値とB画素値とに基づくばらつき度合いが所定のばらつき度合いよりも大きくすると良好な色を再現可能である。
In the present embodiment, the degree of variation based on the R pixel value, the G pixel value, and the B pixel value is greater than the predetermined variation degree, and the ratio of the R pixel value, the G pixel value, and the B pixel value is as described above. The color video signal is output so that the ratio becomes the ratio, but what kind of substance is used and what ratio is arbitrary.
For example, you may change suitably according to the property of an image sensor, and the processing method which produces | generates a color video signal. The original color may be difficult to reproduce depending on the material of the material, but the original color of the subject or a color equivalent to it is good while looking at the color video signal generated by actually imaging while projecting infrared light It is good to adjust it to reproduce. At this time, if the degree of variation based on the R pixel value, the G pixel value, and the B pixel value is larger than a predetermined variation degree, a good color can be reproduced.
なお、本発明は以上説明した本実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々変更可能である。 The present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.
例えば、調整方法は種々考えられるが、調整した結果、出力されるカラー映像信号が同様な特性を有していれば同様な効果を発揮することができる。
また、人の肌の色を重視する設定と、プラスチックの色を重視する設定とで、色ゲインや赤外光強度等の各設定を切換え可能にしてもよい。その際、人の肌の色を重視するべき状態や、プラスチックの色を重視するべき状態等を検知して、色ゲイン制御部73や色ゲイン設定部62の動作を切換えてもよい。例えば、被写体を検出する被写体検出部(図示省略)を備え、その検出結果に応じて自動で切換えてもよい。例えば、被写体の種類を検出して自動で切換えてもよい。つまり、色ゲイン設定部62がカラー映像信号の各画素値に乗ずる色ゲインを被写体に応じて変えるようにし、映像出力部6が出力するカラー映像信号における各色間の画素値の比を被写体検出部による検出結果に応じて変えるようにしてもよい。
例えば、周知のパターンマッチング技術を用いて被写体を検出する被写体検出部を備え、被写体が人物であるか否か等を検出し、自動で切換えてもよい。
例えば、被写体検出部は人物検出部や顔検出部であってもよく、顔や人物を検出した場合は、人の肌の色を重視する色ゲイン設定とし、それ以外の場合は、その他の色ゲイン設定とすればよい。また、周知のパターンマッチング技術を用いて自動車等を検出した場合は金属を重視する設定にしてもよい。
また、画面内における特定の被写体を検出した領域と、その他の領域とで色ゲインを異ならせてもよい。例えば、画面内における顔を検出した領域は人の肌の色を重視する色ゲイン設定とし、その他の領域はその他の色ゲイン設定としてもよい。少なくとも検出した被写体に対応する領域の画素において、その被写体の色を重視する設定とすればよい。
For example, various adjustment methods are conceivable. As a result of adjustment, if the output color video signal has similar characteristics, the same effect can be exhibited.
In addition, settings such as color gain and infrared light intensity may be switchable between a setting that places importance on human skin color and a setting that places importance on plastic color. At this time, the operation of the color
For example, a subject detection unit that detects a subject using a well-known pattern matching technique may be provided to detect whether or not the subject is a person and switch automatically.
For example, the subject detection unit may be a person detection unit or a face detection unit. When a face or person is detected, the color gain setting places importance on the skin color of the person, and in other cases, other colors The gain can be set. In addition, when a car or the like is detected using a known pattern matching technique, the setting may be made with emphasis on metal.
In addition, the color gain may be different between an area where a specific subject is detected in the screen and another area. For example, the area where the face is detected in the screen may be set as a color gain setting that emphasizes the color of human skin, and the other areas may be set as other color gain settings. At least the pixels in the area corresponding to the detected subject may be set so that the color of the subject is emphasized.
また、上記と同様に、人の肌の色を重視するべき状態や、プラスチックの色を重視するべき状態等を検知して、投光制御部71の動作を切換えてもよい。例えば、被写体を検出する被写体検出部(図示省略)を備え、その検出結果に応じて自動で切換えてもよい。例えば、被写体の種類を検出して自動で切換えてもよい。つまり、投光制御部71が各赤外光の強度を被写体に応じて変えるようにし、映像出力部6が出力するカラー映像信号における各色間の画素値の比を被写体検出部による検出結果に応じて変えるようにしてもよい。
例えば、周知のパターンマッチング技術を用いて被写体を検出する被写体検出部を備え、被写体が人物であるか否か等を検出し、自動で切換えてもよい。
例えば、被写体検出部は人物検出部や顔検出部であってもよく、顔や人物を検出した場合は、人の肌の色を重視する赤外光の強度とし、それ以外の場合は、その他の赤外光の強度とすればよい。また、周知のパターンマッチング技術を用いて自動車等を検出した場合は金属を重視する赤外光の強度にしてもよい。
また、前述のように、色ゲイン設定部62によってカラー映像信号に乗じる色ゲインを制御して、映像出力部6が出力するカラー映像信号のR画素値とG画素値とB画素値とのバランスを調整する方法と、波長IR1〜IR3の赤外光の強度を制御して、映像出力部6が出力するカラー映像信号のR画素値とG画素値とB画素値とのバランスを調整する方法とを組み合わせて、上述のR画素値とG画素値とB画素値との値のばらつき度合いや、R画素値とG画素値とB画素値との比を実現するようにしてもよい。
Further, similarly to the above, the operation of the light
For example, a subject detection unit that detects a subject using a well-known pattern matching technique may be provided to detect whether or not the subject is a person and switch automatically.
For example, the subject detection unit may be a person detection unit or a face detection unit. When a face or a person is detected, the intensity of infrared light that emphasizes the color of the person's skin is set. Otherwise, other Infrared light intensity may be used. In addition, when a car or the like is detected using a well-known pattern matching technique, the intensity of infrared light that places importance on metal may be used.
Further, as described above, the color gain to be multiplied by the color video signal is controlled by the color
また、映像処理部5や映像出力部6や制御部7は、1または複数のハードウェアのプロセッサで実現することができる。また、1または複数のハードウェアのプロセッサとソフトウェアとの協働で実現することもできる。また、各実施形態や実施例、変形例等を組み合わせてもよい。
The
3 撮像部
5 映像処理部
9 赤外線投光器
62 色ゲイン設定部
71 投光制御部
73 色ゲイン制御部
3
Claims (12)
赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像部と、
前記撮像信号に基づいてカラー映像信号を生成する映像処理部と、
カラー映像信号を出力する映像出力部と、
被写体を検出する被写体検出部と
を備え、
前記被写体検出部は被写体が人物であるか否かを検出し、
前記被写体検出部が被写体が人物であることを検出した場合、
前記映像出力部は、各色間の画素値の比が、緑色の画素値に対する青色の画素値の比の値が緑色の画素値に対する赤色の画素値の比の値よりも大きく、かつ、緑色の画素値に対する赤色の画素値の比の値が1より小さく、かつ、緑色の画素値に対する青色の画素値の比の値が1より大きい所定の比であるカラー映像信号を出力する
ことを特徴とする撮像装置。 A projection control unit that controls an infrared projector that projects infrared light;
An imaging unit that images an object and generates an imaging signal in a state where the infrared projector is controlled to project infrared light; and
A video processing unit that generates a color video signal based on the imaging signal;
A video output unit for outputting a color video signal;
A subject detection unit for detecting a subject, and
The subject detection unit detects whether the subject is a person,
When the subject detection unit detects that the subject is a person,
In the video output unit, the ratio of the pixel values between the colors is larger than the ratio of the red pixel value to the green pixel value, and the ratio of the blue pixel value to the green pixel value is larger than the green pixel value. A color video signal having a predetermined ratio in which a ratio of a red pixel value to a pixel value is smaller than 1 and a ratio of a blue pixel value to a green pixel value is greater than 1 is output. An imaging device.
赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像部と、 An imaging unit that images an object and generates an imaging signal in a state where the infrared projector is controlled to project infrared light; and
前記撮像信号に基づいてカラー映像信号を生成する映像処理部と、 A video processing unit that generates a color video signal based on the imaging signal;
カラー映像信号を出力する映像出力部と、 A video output unit for outputting a color video signal;
被写体を検出する被写体検出部と A subject detection unit for detecting the subject;
を備え、 With
前記被写体検出部は被写体がプラスチックであるか否かを検出し、 The subject detection unit detects whether the subject is plastic,
前記映像出力部が出力するカラー映像信号における各色間の画素値の比は前記被写体検出部がプラスチックを検出しているか否かに応じて異なる The ratio of pixel values between colors in the color video signal output by the video output unit varies depending on whether or not the subject detection unit detects plastic.
ことを特徴とする撮像装置。 An imaging apparatus characterized by that.
前記映像出力部は、各色間の画素値の比が、緑色の画素値に対する青色の画素値の比の値が緑色の画素値に対する赤色の画素値の比の値よりも大きく、かつ、緑色の画素値に対する赤色の画素値の比の値が1より大きく、かつ、緑色の画素値に対する青色の画素値の比の値が1より大きい所定の比であるカラー映像信号を出力する
ことを特徴とする請求項2に記載の撮像装置。 When the subject detection unit detects a plastic subject,
The video output unit, the ratio between the pixel values of each color is larger than the value of the ratio of the red pixel value for the value a green pixel value of the ratio of the blue pixel values for the green pixel value, and, greater than the value of the ratio is 1 red pixel value for the green pixel value, and the value of the ratio of the blue pixel values to output a color image signal is one greater than the predetermined ratio green pixel value The imaging apparatus according to claim 2 .
赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像部と、 An imaging unit that images an object and generates an imaging signal in a state where the infrared projector is controlled to project infrared light; and
前記撮像信号に基づいてカラー映像信号を生成する映像処理部と、 A video processing unit that generates a color video signal based on the imaging signal;
カラー映像信号を出力する映像出力部と、 A video output unit for outputting a color video signal;
被写体を検出する被写体検出部と A subject detection unit for detecting the subject;
を備え、 With
前記被写体検出部は被写体が自動車であるか否かを検出し、 The subject detection unit detects whether or not the subject is a car,
前記映像出力部が出力するカラー映像信号における各色間の画素値の比は前記被写体検出部が自動車を検出しているか否かに応じて異なる The ratio of pixel values between colors in the color video signal output by the video output unit varies depending on whether or not the subject detection unit detects a car.
ことを特徴とする撮像装置。 An imaging apparatus characterized by that.
を備え、
前記映像出力部は、前記色ゲイン設定部によって所定の色ゲインが乗じられて、各色間の画素値の比が前記被写体検出部による検出結果に応じた比とされたカラー映像信号を出力する
ことを特徴とする請求項1〜4のいずれか1項に記載の撮像装置。 A color gain setting unit for multiplying a pixel value of each color of the color video signal generated by the video processing unit by a color gain;
With
The video output unit outputs a color video signal in which a predetermined color gain is multiplied by the color gain setting unit, and a ratio of pixel values between colors is set to a ratio according to a detection result by the subject detection unit. the imaging apparatus according to any one of claims 1 to 4, characterized in.
前記映像出力部は、前記投光制御部によってカラー映像信号の各色に対応する各赤外光の強度が制御されて、各色間の画素値の比が前記被写体検出部による検出結果に応じた比とされたカラー映像信号を出力する
ことを特徴とする請求項1〜5のいずれか1項に記載の撮像装置。 The light projection control unit is configured to output an intensity of each infrared light corresponding to each color of the color video signal so that the video output unit outputs a color video signal having a degree of variation based on a pixel value of each color larger than a predetermined degree of variation. Control
In the video output unit, the intensity of each infrared light corresponding to each color of the color video signal is controlled by the light projection control unit, and the ratio of pixel values between the colors is a ratio according to the detection result by the subject detection unit. the imaging apparatus according to any one of claims 1-5, characterized in that for outputting a color image signal with.
ことを特徴とする請求項1〜6のいずれか1項に記載の撮像装置。 The ratio of the pixel values between the colors is set such that the ratio of the pixel values between the colors corresponds to the detection result by the subject detection unit at least in the pixel corresponding to the subject detected by the subject detection unit. The imaging apparatus according to any one of claims 1 to 6 , wherein the imaging apparatus is characterized in that:
ことを特徴とする請求項1〜7のいずれか1項に記載の撮像装置。 The ratio between pixel values of each color in the average value of the pixel values of the entire screen, according to any one of claims 1 to 7, characterized in that there is a ratio in accordance with the detection result of the subject detection unit Imaging device.
赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像ステップと、
前記撮像信号に基づいてカラー映像信号を生成する映像処理ステップと、
カラー映像信号を出力する映像出力ステップと、
被写体を検出する被写体検出ステップと
を有し、
前記被写体検出ステップは被写体が人物であるか否かを検出し、
前記被写体検出ステップが被写体が人物であることを検出した場合、
前記映像出力ステップは、各色間の画素値の比が、緑色の画素値に対する青色の画素値の比の値が緑色の画素値に対する赤色の画素値の比の値よりも大きく、かつ、緑色の画素値に対する赤色の画素値の比の値が1より小さく、かつ、緑色の画素値に対する青色の画素値の比の値が1より大きい所定の比であるカラー映像信号を出力する
ことを特徴とする撮像方法。 A projection control step for controlling an infrared projector that projects infrared light;
An imaging step of imaging an object and generating an imaging signal in a state where the infrared projector is controlled to project infrared light; and
A video processing step for generating a color video signal based on the imaging signal;
A video output step for outputting a color video signal;
A subject detection step for detecting a subject, and
The subject detection step detects whether the subject is a person,
When the subject detection step detects that the subject is a person,
In the video output step, the ratio of the pixel values between the colors is such that the ratio of the blue pixel value to the green pixel value is larger than the ratio of the red pixel value to the green pixel value, and A color video signal having a predetermined ratio in which a ratio of a red pixel value to a pixel value is smaller than 1 and a ratio of a blue pixel value to a green pixel value is greater than 1 is output. Imaging method.
赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像ステップと、 An imaging step of imaging an object and generating an imaging signal in a state where the infrared projector is controlled to project infrared light; and
前記撮像信号に基づいてカラー映像信号を生成する映像処理ステップと、 A video processing step for generating a color video signal based on the imaging signal;
カラー映像信号を出力する映像出力ステップと、 A video output step for outputting a color video signal;
被写体を検出する被写体検出ステップと A subject detection step for detecting a subject;
を備え、 With
前記被写体検出ステップは被写体が自動車であるか否かを検出し、The subject detection step detects whether the subject is a car,
前記映像出力ステップが出力するカラー映像信号における各色間の画素値の比は前記被写体検出ステップが自動車を検出しているか否かに応じて異なる The ratio of pixel values between colors in the color video signal output by the video output step varies depending on whether or not the subject detection step detects a car.
ことを特徴とする撮像方法。 An imaging method characterized by the above.
赤外光を投光する赤外線投光器を制御する投光制御手段、
赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して生成された撮像信号に基づいてカラー映像信号を生成する映像処理手段、
カラー映像信号を出力する映像出力手段、
被写体を検出する被写体検出手段、
として機能させ、
前記被写体検出手段は被写体が人物であるか否かを検出し、
前記被写体検出手段が被写体が人物であることを検出した場合、
前記映像出力手段は、各色間の画素値の比が、緑色の画素値に対する青色の画素値の比の値が緑色の画素値に対する赤色の画素値の比の値よりも大きく、かつ、緑色の画素値に対する赤色の画素値の比の値が1より小さく、かつ、緑色の画素値に対する青色の画素値の比の値が1より大きい所定の比であるカラー映像信号を出力する
ことを特徴とする撮像プログラム。 Computer
Projection control means for controlling an infrared projector that projects infrared light,
Video processing means for generating a color video signal based on an imaging signal generated by imaging a subject in a state where the infrared projector is controlled to project infrared light;
Video output means for outputting a color video signal;
Subject detection means for detecting the subject;
Function as
The subject detection means detects whether the subject is a person,
When the subject detection means detects that the subject is a person,
In the video output means, the ratio of the pixel values between the colors is such that the ratio of the blue pixel value to the green pixel value is larger than the ratio of the red pixel value to the green pixel value, and A color video signal having a predetermined ratio in which a ratio of a red pixel value to a pixel value is smaller than 1 and a ratio of a blue pixel value to a green pixel value is greater than 1 is output. An imaging program.
赤外光を投光する赤外線投光器を制御する投光制御手段と、 Projection control means for controlling an infrared projector that projects infrared light;
赤外光を投光するよう前記赤外線投光器が制御された状態で被写体を撮像して撮像信号を生成する撮像手段と、 Imaging means for imaging an object and generating an imaging signal in a state where the infrared projector is controlled to project infrared light; and
前記撮像信号に基づいてカラー映像信号を生成する映像処理手段と、 Video processing means for generating a color video signal based on the imaging signal;
カラー映像信号を出力する映像出力手段と、 Video output means for outputting a color video signal;
被写体を検出する被写体検出手段と Subject detection means for detecting the subject;
として機能させ、 Function as
前記被写体検出手段は被写体が自動車であるか否かを検出し、 The subject detection means detects whether or not the subject is a car;
前記映像出力手段が出力するカラー映像信号における各色間の画素値の比は前記被写体検出手段が自動車を検出しているか否かに応じて異なる The ratio of pixel values between colors in the color video signal output by the video output means varies depending on whether or not the subject detection means detects an automobile.
ことを特徴とする撮像プログラム。 An imaging program characterized by the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014217320A JP6260512B2 (en) | 2014-10-24 | 2014-10-24 | Imaging apparatus, imaging method, and imaging program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014217320A JP6260512B2 (en) | 2014-10-24 | 2014-10-24 | Imaging apparatus, imaging method, and imaging program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2016086266A JP2016086266A (en) | 2016-05-19 |
| JP6260512B2 true JP6260512B2 (en) | 2018-01-17 |
Family
ID=55971891
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014217320A Active JP6260512B2 (en) | 2014-10-24 | 2014-10-24 | Imaging apparatus, imaging method, and imaging program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6260512B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2831533B2 (en) | 1992-06-25 | 1998-12-02 | フレシネ アンテルナショナル エ シエ | Holding device for multiple strands that make up the cable stayed cable |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6794795B2 (en) * | 2016-11-18 | 2020-12-02 | 株式会社Jvcケンウッド | Imaging device, imaging method, program |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0537780A (en) * | 1991-07-31 | 1993-02-12 | Toshiba Corp | Image forming device |
| JP4782277B2 (en) * | 2000-11-29 | 2011-09-28 | 株式会社ユーテック | Infrared color image forming device |
| JP2008085915A (en) * | 2006-09-28 | 2008-04-10 | Sony Corp | Imaging apparatus and imaging method |
| JP2012008845A (en) * | 2010-06-25 | 2012-01-12 | Konica Minolta Opto Inc | Image processor |
| JP5697646B2 (en) * | 2012-11-05 | 2015-04-08 | 本田技研工業株式会社 | Vehicle periphery monitoring device |
-
2014
- 2014-10-24 JP JP2014217320A patent/JP6260512B2/en active Active
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2831533B2 (en) | 1992-06-25 | 1998-12-02 | フレシネ アンテルナショナル エ シエ | Holding device for multiple strands that make up the cable stayed cable |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2016086266A (en) | 2016-05-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6264234B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND CONTROL PROGRAM | |
| US9967527B2 (en) | Imaging device, image processing device, image processing method, and image processing program | |
| CN106165410B (en) | Camera, camera control method, and control program | |
| CN105934941B (en) | Camera device, video signal processing method, and storage medium | |
| US10178327B2 (en) | Imaging device, method for controlling imaging device, and control program | |
| JP2014135545A (en) | Image pickup device, image pickup system, and image pickup method | |
| JP6318789B2 (en) | Video processing apparatus, video processing method, and video processing program | |
| JP6260512B2 (en) | Imaging apparatus, imaging method, and imaging program | |
| JP6331966B2 (en) | IMAGING DEVICE AND IMAGING DEVICE ADJUSTING METHOD | |
| JP6344279B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD AND CONTROL PROGRAM | |
| JP6299556B2 (en) | Imaging apparatus, imaging method, and imaging program | |
| JP6221911B2 (en) | Imaging apparatus, video signal processing method, and video signal processing program | |
| JP6330704B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD AND CONTROL PROGRAM | |
| JP6160546B2 (en) | Video processing apparatus, imaging apparatus, video processing method, and video processing program | |
| US20250287114A1 (en) | Imaging apparatus, imaging method, and storage medium | |
| WO2015115142A1 (en) | Imaging device, imaging device control method, and imaging device control program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160929 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170719 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170829 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20171030 |
|
| 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: 20171114 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20171127 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6260512 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |