JP2014007437A - Imaging apparatus - Google Patents

Imaging apparatus Download PDF

Info

Publication number
JP2014007437A
JP2014007437A JP2012139561A JP2012139561A JP2014007437A JP 2014007437 A JP2014007437 A JP 2014007437A JP 2012139561 A JP2012139561 A JP 2012139561A JP 2012139561 A JP2012139561 A JP 2012139561A JP 2014007437 A JP2014007437 A JP 2014007437A
Authority
JP
Japan
Prior art keywords
characteristic
image
unit
photoelectric conversion
luminance distribution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012139561A
Other languages
Japanese (ja)
Inventor
Shuji Hayashi
修二 林
Tetsuya Katagiri
哲也 片桐
Koichi Kamon
幸一 掃部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2012139561A priority Critical patent/JP2014007437A/en
Publication of JP2014007437A publication Critical patent/JP2014007437A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To image a subject such that the cumulative frequency of pixels imaged by high-sensitivity photoelectric conversion characteristic becomes a fixed ratio.SOLUTION: A luminance distribution detection part 602 detects the luminance distribution of image data outputted from a characteristic conversion part 601 and outputs it as evaluation data to a control part 102. The control part 102 determines whether the cumulative frequency has a value in the predetermined frequency acceptable range with a lower limit value Th1 and an upper limit value Th2. If the cumulative frequency is not larger than the lower limit value Th1, the control part 102 shortens an exposure period. If the cumulative frequency is not smaller than the upper limit value Th2, the control part 102 extends an exposure period.

Description

本発明は、感度の異なる複数の光電変換特性で被写体を撮像する撮像装置に関するものである。   The present invention relates to an imaging apparatus that images a subject with a plurality of photoelectric conversion characteristics having different sensitivities.

近年、高ダイナミックレンジ且つ高感度な画像を取得するために感度の異なる複数の光電変換特性で被写体を撮像する撮像装置が知られている。   2. Description of the Related Art In recent years, an imaging apparatus that captures a subject with a plurality of photoelectric conversion characteristics having different sensitivities in order to acquire a high dynamic range and high sensitivity image is known.

例えば、特許文献1には、明暗差が大きな被写体であっても、カメラ出力が飽和することなく、高コントラストな画像を取得することを目的として、入射光量に応じて区切られた複数の領域ごとにことなる入出力特性を持つ撮像手段を備え、映像輝度信号の平均値から画面光量Kを求め、画面光量Kが光量目標値Rと一致するように撮像手段を調整することが開示されている。   For example, Patent Document 1 discloses a plurality of regions divided according to the amount of incident light for the purpose of obtaining a high-contrast image without saturating the camera output, even for a subject with a large contrast. It is disclosed that the image pickup means having different input / output characteristics is provided, the screen light quantity K is obtained from the average value of the video luminance signal, and the image pickup means is adjusted so that the screen light quantity K matches the light quantity target value R. .

また、特許文献1には、撮像手段の入出力特性の領域の最も低照度側の切り替わり点の光量Qと光量目標値Rとが、R<Qとなるように光量目標値Rを設定することが開示されている。   Further, in Patent Document 1, the light quantity target value R is set so that the light quantity Q and the light quantity target value R at the switching point on the lowest illuminance side in the input / output characteristics region of the imaging unit satisfy R <Q. Is disclosed.

また、特許文献1には、撮像手段から出力された映像輝度信号において、映像輝度信号が0になった画素の総数が所定値(例えば光量検出領域の1%)を上回ったときに黒つぶれであると判定することが開示されている。   Further, in Patent Document 1, blackout is generated when the total number of pixels in which the video luminance signal is 0 exceeds a predetermined value (for example, 1% of the light amount detection area) in the video luminance signal output from the imaging unit. It is disclosed to determine that there is.

特開2006−237851号公報JP 2006-237851 A

しかしながら、特許文献1では、映像輝度信号の平均値に基づき、切り替わり点が制御されているため、被写体の輝度分布によっては、線形領域で撮影される画素数が大きく減少し、高感度で撮像される画素の個数が減少するという課題がある。すなわち、特許文献1では、被写体の輝度分布に応じて、高感度で撮像される画素の個数が変動し、安定して高感度な画像を取得することができないという課題がある。   However, in Patent Document 1, since the switching point is controlled based on the average value of the video luminance signal, depending on the luminance distribution of the subject, the number of pixels captured in the linear region is greatly reduced, and the image is captured with high sensitivity. There is a problem that the number of pixels to be reduced decreases. That is, in Patent Document 1, there is a problem that the number of pixels picked up with high sensitivity varies according to the luminance distribution of the subject, and a high-sensitive image cannot be acquired stably.

また、特許文献1では、高ダイナミックレンジの画像がそのまま出力されてしまうため、低ダイナミックレンジの表示器にて表示するとコントラストの低い画像となって表示されるという課題がある。   Moreover, in patent document 1, since the image of a high dynamic range will be output as it is, there exists a subject that it will display as an image with a low contrast, if it displays with the display of a low dynamic range.

本発明の目的は、高感度の光電変換特性で撮像された画素の累積度数が一定の割合となるように被写体を撮像する撮像装置を提供することである。   An object of the present invention is to provide an image pickup apparatus that picks up an image of a subject so that the cumulative frequency of pixels picked up with high-sensitivity photoelectric conversion characteristics becomes a constant ratio.

(1)本発明による撮像装置は、第1光電変換特性と、前記第1光電変換特性よりも感度の低い第2光電変換特性とで被写体を撮像する撮像部と、前記撮像部で撮像された画像の輝度分布を検出する輝度分布検出部と、前記撮像部の露光時間を制御する制御部とを備え、前記制御部は、前記輝度分布に基づき、前記第1光電変換特性により撮像されている画素の累積度数を検出し、当該累積度数が所定の度数許容範囲を満たすように前記露光時間を制御する。   (1) An imaging device according to the present invention is an imaging unit that images a subject with a first photoelectric conversion characteristic and a second photoelectric conversion characteristic that is less sensitive than the first photoelectric conversion characteristic, and is captured by the imaging unit. A luminance distribution detecting unit that detects a luminance distribution of the image; and a control unit that controls an exposure time of the imaging unit, wherein the control unit is imaged based on the luminance distribution by the first photoelectric conversion characteristic. The cumulative frequency of the pixel is detected, and the exposure time is controlled so that the cumulative frequency satisfies a predetermined frequency allowable range.

この構成によれば、感度が異なる第1、第2光電変換特性(但し、感度は第1光電変換特性>第2光電変換特性)により被写体が撮像され、得られた画像の輝度分布が検出される。そして、検出された輝度分布から高感度である第1光電変換特性に撮像されている画素の累積度数が検出され、その累積度数が所定の度数許容範囲を満たすように露光時間が調整される。   According to this configuration, the subject is imaged by the first and second photoelectric conversion characteristics (however, the sensitivity is the first photoelectric conversion characteristic> the second photoelectric conversion characteristic) having different sensitivities, and the luminance distribution of the obtained image is detected. The Then, the cumulative frequency of the pixels imaged in the first photoelectric conversion characteristic having high sensitivity is detected from the detected luminance distribution, and the exposure time is adjusted so that the cumulative frequency satisfies a predetermined frequency allowable range.

ここで、露光時間を長くすると感度は向上するが、第1光電変換特性により撮像されている画素の累積度数が減少するという特性がある。一方、露光時間を短くすると感度は低下するが、第1光電変換特性により撮像された高感度の画素の累積度数が増大するという特性がある。   Here, when the exposure time is lengthened, the sensitivity is improved, but there is a characteristic that the cumulative frequency of pixels imaged by the first photoelectric conversion characteristic is reduced. On the other hand, when the exposure time is shortened, the sensitivity decreases, but there is a characteristic that the cumulative frequency of highly sensitive pixels imaged by the first photoelectric conversion characteristic increases.

よって、この特性を利用することで、第1光電変換特性で撮像されている画素の画像全体に占める割合を所定範囲内に調整することができ、安定して高感度な画像を得ることができる。   Therefore, by using this characteristic, it is possible to adjust the ratio of the pixels imaged with the first photoelectric conversion characteristic in the entire image within a predetermined range, and it is possible to obtain a stable and highly sensitive image. .

(2)前記第1光電変換特性は線形特性であり、前記第2光電変換特性は対数特性であり、前記線形特性及び対数特性を基準光電変換特性に変換する特性変換部を更に備え、前記輝度分布検出部は、前記基準光電変換特性に変換された画像の輝度分布を検出することが好ましい。   (2) The first photoelectric conversion characteristic is a linear characteristic, the second photoelectric conversion characteristic is a logarithmic characteristic, and further includes a characteristic conversion unit that converts the linear characteristic and the logarithmic characteristic into a reference photoelectric conversion characteristic, Preferably, the distribution detection unit detects a luminance distribution of the image converted into the reference photoelectric conversion characteristic.

この構成によれば、線形領域の画素の累積度数が度数許容範囲になるように露光時間が調整されるため、線形対数特性を持つ画像において、高感度の画像を得ることができる。   According to this configuration, since the exposure time is adjusted so that the cumulative frequency of the pixels in the linear region falls within the allowable frequency range, a highly sensitive image can be obtained in an image having linear logarithmic characteristics.

(3)前記制御部は、前記線形特性と前記対数特性との変曲点の画素値が前記露光時間の制御の前後で一定となるように前記変曲点の画素値を調整することが好ましい。   (3) It is preferable that the control unit adjusts the pixel value of the inflection point so that the pixel value of the inflection point between the linear characteristic and the logarithmic characteristic is constant before and after the control of the exposure time. .

この構成によれば、変曲点の画素値が露光時間の調整の前後で一定にされるため、露光時間の調整の前後で対数領域を維持することができる。   According to this configuration, since the pixel value of the inflection point is made constant before and after the adjustment of the exposure time, the logarithmic region can be maintained before and after the adjustment of the exposure time.

(4)前記撮像部は、多重露光により前記被写体を撮像して前記第1、第2光電変換特性の第1、第2画像を取得し、所定光量以上の画像が前記第2画像となるように前記第1、第2画像を合成する合成部を更に備え、前記輝度分布検出部は、前記合成部により合成された画像の輝度分布を検出することが好ましい。   (4) The imaging unit captures the subject by multiple exposure to acquire the first and second images of the first and second photoelectric conversion characteristics so that an image having a predetermined light amount or more becomes the second image. It is preferable that a synthesis unit for synthesizing the first and second images is further included, and the luminance distribution detection unit detects a luminance distribution of the image synthesized by the synthesis unit.

この構成によれば、多重露光を採用した場合において、高感度の画像を得ることができる。   According to this configuration, a high-sensitivity image can be obtained when multiple exposure is employed.

(5)前記制御部は、前記第1光電変換特性の露光時間の制御に連動させて前記第2光電変換特性の露光時間を制御することが好ましい。   (5) It is preferable that the control unit controls the exposure time of the second photoelectric conversion characteristic in conjunction with the control of the exposure time of the first photoelectric conversion characteristic.

この構成によれば、第1光電変換特性の露光時間の制御に連動させて第2光電変換特性の露光時間が制御されるため、ダイナミックレンジを維持しつつ、高感度の画像を得ることができる。   According to this configuration, since the exposure time of the second photoelectric conversion characteristic is controlled in conjunction with the control of the exposure time of the first photoelectric conversion characteristic, a highly sensitive image can be obtained while maintaining the dynamic range. .

(6)前記制御部は、前記輝度分布検出部により検出された輝度分布に基づき、前記基準光電変換特性に変換された画像の明るさを一定の明るさにするための感度増幅率を算出し、前記感度増幅率で前記画像の感度を増幅する感度増幅部を更に備えることが好ましい。   (6) The control unit calculates a sensitivity amplification factor for making the brightness of the image converted into the reference photoelectric conversion characteristic constant, based on the luminance distribution detected by the luminance distribution detection unit. It is preferable to further include a sensitivity amplifying unit that amplifies the sensitivity of the image with the sensitivity amplification factor.

この構成によれば、画像全体の明るさが一定になるように画像の感度が増幅されるため、全体的に暗い画像や、全体的に明るすぎる画像になることを防止することができる。   According to this configuration, since the sensitivity of the image is amplified so that the brightness of the entire image is constant, it is possible to prevent the overall image from becoming a dark image or an overall image that is too bright.

(7)前記制御部は、前記輝度分布に基づき、変曲点の画素値以下の画素の画素値の平均値を求め、求めた平均値が所定の目標輝度範囲に入るように前記感度増幅率を設定することが好ましい。   (7) The control unit obtains an average value of pixel values of pixels equal to or less than the pixel value of the inflection point based on the luminance distribution, and the sensitivity amplification factor so that the obtained average value falls within a predetermined target luminance range. Is preferably set.

この構成によれば、変曲点の画素値以下の画素の画素値の平均値が所定の目標輝度範囲に入るように感度増幅率が設定されるため、高感度でありながら、明るすぎず又は暗すぎない画像を得ることができる。   According to this configuration, since the sensitivity amplification factor is set so that the average value of the pixel values of the pixels below the pixel value of the inflection point falls within a predetermined target luminance range, it is not too bright while being highly sensitive. An image that is not too dark can be obtained.

(8)前記制御部は、前記輝度分布において所定の制御点を検出し、前記感度制御部により前記感度増幅率で増幅された画像を入力画像とし、前記入力画像の前記制御点における画素値が規定値になるように前記入力画像の入出力特性を変換する変換特性を求め、前記変換特性で前記入力画像の入出力特性を変換する入出力特性変換部を更に備えることが好ましい。   (8) The control unit detects a predetermined control point in the luminance distribution, uses the image amplified by the sensitivity control unit with the sensitivity amplification factor as an input image, and has a pixel value at the control point of the input image. It is preferable to further include an input / output characteristic conversion unit that obtains a conversion characteristic for converting the input / output characteristic of the input image so as to become a specified value and converts the input / output characteristic of the input image by the conversion characteristic.

この構成によれば、制御点の画素値が規定値になるような変換特性が求められ、その変換特性を用いて入力画像の入出力特性が変換されるため、輝度分布に基づいて入力画像の入出力特性を変換することができる。ここで、変換特性としては、例えばダイナミックレンジ圧縮処理に適用される圧縮特性やガンマ補正に適用される階調特性を採用することができる。   According to this configuration, since the conversion characteristic such that the pixel value of the control point becomes the specified value is obtained and the input / output characteristic of the input image is converted using the conversion characteristic, the input image is converted based on the luminance distribution. Input / output characteristics can be converted. Here, as the conversion characteristic, for example, a compression characteristic applied to dynamic range compression processing or a gradation characteristic applied to gamma correction can be employed.

(9)前記制御点は、変曲点の画素値以下の画素の画素値の平均値と、最大画素値とを少なくとも含むことが好ましい。   (9) It is preferable that the control point includes at least an average pixel value of pixels equal to or less than a pixel value of an inflection point and a maximum pixel value.

この構成によれば、変曲点以下の画素の画素値の平均値と最大画素値とが規定値を維持するように入力画像の入出力特性を変換することができる。   According to this configuration, the input / output characteristics of the input image can be converted so that the average value and the maximum pixel value of the pixels below the inflection point maintain the prescribed values.

(10)前記制御部は、前記輝度分布に基づき撮像シーンを判定し、前記撮像シーンが夜間である場合、撮像シーンが昼間である場合よりも前記度数許容範囲を高く設定することが好ましい。   (10) Preferably, the control unit determines an imaging scene based on the luminance distribution, and when the imaging scene is at night, the frequency allowable range is set higher than when the imaging scene is in daytime.

夜間の場合は、輝度分布において暗部側と明部側との両側に画素が多く分布する傾向にある。一方、昼間では、中間域に画素が分布する傾向にある。したがって、昼間を基準に設定された度数許容範囲を用いて夜間の画像の露光時間を制御した場合、画素最大値が撮像部の飽和レベルを超えて画像が飽和するおそれがある。   In the case of nighttime, there is a tendency that many pixels are distributed on both the dark side and the bright side in the luminance distribution. On the other hand, in the daytime, pixels tend to be distributed in the intermediate area. Therefore, when the exposure time of an image at night is controlled using a frequency allowable range set based on daytime, the maximum pixel value may exceed the saturation level of the imaging unit and the image may be saturated.

本構成では、夜間の場合、昼間の場合よりも度数許容範囲が高い側に設定される。これにより、夜間において画像の飽和を防止することができる。   In this configuration, in the case of nighttime, the frequency tolerance is set to a higher side than in the case of daytime. This can prevent image saturation at night.

本発明によれば、第1光電変換特性で撮像されている画素の画像全体に占める割合を所定範囲内に調整することができ、安定して高感度な画像を得ることができる。   According to the present invention, it is possible to adjust the ratio of the pixels captured with the first photoelectric conversion characteristic to the entire image within a predetermined range, and it is possible to obtain a stable and highly sensitive image.

本発明の実施の形態1による撮像装置の全体構成図である。1 is an overall configuration diagram of an imaging apparatus according to Embodiment 1 of the present invention. (a)は、撮像部が備える画素の回路図であり、(b)は(a)に示す画素が持つ光電変換特性を示したグラフである。(A) is a circuit diagram of the pixel with which an imaging part is provided, (b) is the graph which showed the photoelectric conversion characteristic which the pixel shown to (a) has. 本発明の実施の形態2における画素が持つ光電変換特性を示したグラフである。It is the graph which showed the photoelectric conversion characteristic which the pixel in Embodiment 2 of this invention has. 撮像部の露光時間と光電変換特性との関係を示したグラフである。It is the graph which showed the relationship between the exposure time of an imaging part, and a photoelectric conversion characteristic. 露光時間のみ調整し、変曲点画素値を調整しなかった場合の画素の光電変換特性である。This is a photoelectric conversion characteristic of a pixel when only the exposure time is adjusted and the inflection point pixel value is not adjusted. 図1に示す画像処理部の詳細な構成を示すブロック図である。FIG. 2 is a block diagram illustrating a detailed configuration of an image processing unit illustrated in FIG. 1. 特性変換部の詳細な構成を示したブロック図である。It is the block diagram which showed the detailed structure of the characteristic conversion part. 特性変換部の処理を説明するためのグラフである。It is a graph for demonstrating the process of a characteristic conversion part. (a)は、輝度分布検出部の詳細な構成を示すブロック図であり、(b)は、輝度分布検出部が検出する輝度分布の一例を示したグラフである。(A) is a block diagram which shows the detailed structure of a luminance distribution detection part, (b) is the graph which showed an example of the luminance distribution which a luminance distribution detection part detects. (a)は、感度増幅部の詳細な構成を示すブロック図であり、(b)は感度増幅部による処理を説明するグラフである。(A) is a block diagram which shows the detailed structure of a sensitivity amplification part, (b) is a graph explaining the process by a sensitivity amplification part. DR圧縮部の詳細な構成を示すブロック図である。It is a block diagram which shows the detailed structure of DR compression part. (a)は照明成分抽出部に入力される入力画像を示し、(b)は照明成分抽出部から出力される照明成分画像及び圧縮部から出力される圧縮画像、(c)は反射率成分抽出部から出力される反射率成分画像、(d)は合成部から出力される出力画像の特性を示した図である。(A) shows an input image input to the illumination component extraction unit, (b) an illumination component image output from the illumination component extraction unit and a compressed image output from the compression unit, and (c) a reflectance component extraction. (D) is a diagram showing the characteristics of the output image output from the synthesis unit. 露光時間と光電変換特性との関係を示すグラフであり、縦軸は画素値を示し、横軸は光量を対数で示している。It is a graph which shows the relationship between exposure time and a photoelectric conversion characteristic, a vertical axis | shaft shows a pixel value and the horizontal axis has shown the light quantity in logarithm. 露光時間と輝度分布との関係の説明図である。It is explanatory drawing of the relationship between exposure time and luminance distribution. 本発明の実施の形態1による撮像装置が露光時間を制御する際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the imaging device by Embodiment 1 of this invention controlling exposure time. 変曲点画素値を調整しない場合の光電変換特性を示したグラフである。It is the graph which showed the photoelectric conversion characteristic when not adjusting an inflection point pixel value. (a)は、1フレーム期間中に2つの露光時間を設定し2つの画像データを取得した場合のそれぞれの画像データの光電変換特性を示し、(b)は(a)の光電変換特性の異なる2つの画像データが合成されて1つの画像データにされたときの光電変換特性を示している。(A) shows the photoelectric conversion characteristics of each image data when two exposure times are set during one frame period and two image data are acquired, and (b) shows different photoelectric conversion characteristics of (a). The photoelectric conversion characteristics when two pieces of image data are combined into one piece of image data are shown. 第1、第2画像データの露光時間が制御される様子を説明するグラフである。It is a graph explaining a mode that the exposure time of 1st, 2nd image data is controlled. 本発明の実施の形態2による撮像装置が露光時間を制御する際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the imaging device by Embodiment 2 of this invention controlling exposure time. 夜間と昼間との光量分布の違いを説明する図であり、(a)は夜間における光量分布を示し、(b)は昼間における光量分布を示している。It is a figure explaining the difference in the light quantity distribution of nighttime and daytime, (a) shows the light quantity distribution in nighttime, (b) has shown the light quantity distribution in daytime. 画像データの光電変換特性を示したグラフである。It is the graph which showed the photoelectric conversion characteristic of image data. 撮像シーンの判別処理の説明図であり、(a)はある撮像シーンにおける画像データの輝度分布であり、(b)は別の撮像シーンにおける画像データの輝度分布である。It is explanatory drawing of the imaging scene discrimination | determination process, (a) is a luminance distribution of the image data in one imaging scene, (b) is a luminance distribution of the image data in another imaging scene. 撮像シーンの判別処理のフローチャートである。It is a flowchart of an imaging scene discrimination process. (a)は夜間における輝度分布の一例を示し、(b)は昼間における輝度分布の一例を示している。(A) shows an example of the luminance distribution at night, and (b) shows an example of the luminance distribution at daytime. 本発明の実施の形態1の撮像装置が第1の方策を採用した場合において、露光時間を制御する際の処理を示すフローチャートである。7 is a flowchart illustrating processing when controlling the exposure time when the imaging apparatus according to Embodiment 1 of the present invention adopts the first strategy. 対数特性に変換された画像データの光電変換特性を示すグラフである。It is a graph which shows the photoelectric conversion characteristic of the image data converted into the logarithmic characteristic. (a)は図26に示す光電変換特性2601の輝度分布であり、(b)は図26に示す光電変換特性2602の輝度分布である。(A) is a luminance distribution of the photoelectric conversion characteristic 2601 shown in FIG. 26, and (b) is a luminance distribution of the photoelectric conversion characteristic 2602 shown in FIG. 感度制御のフローチャートである。It is a flowchart of sensitivity control. 圧縮特性を示すグラフである。It is a graph which shows a compression characteristic. 輝度分布検出部により検出された輝度分布を示している。The luminance distribution detected by the luminance distribution detector is shown. 実施の形態1、2における画像処理部の変形例を示すブロック図である。FIG. 10 is a block diagram illustrating a modification of the image processing unit in the first and second embodiments. ガンマ補正部がガンマ補正に使用する階調特性を示したグラフである。It is the graph which showed the gradation characteristic which a gamma correction part uses for gamma correction. 本発明の実施の形態2による画像処理部のブロック図である。It is a block diagram of the image processing part by Embodiment 2 of this invention.

(実施の形態1)
図1は、本発明の実施の形態1による撮像装置の全体構成図である。撮像装置は、撮像部101、制御部102、及び画像処理部103を含む。撮像部101は、感度が異なる複数の光電変換特性で被写体を撮像する。実施の形態1では、複数の光電変換特性として線形特性及び対数特性が採用され、撮像部101は線形特性と対数特性とが変曲点で切り替わる線形対数特性を持つ複数の画素で構成されている。
(Embodiment 1)
FIG. 1 is an overall configuration diagram of an imaging apparatus according to Embodiment 1 of the present invention. The imaging device includes an imaging unit 101, a control unit 102, and an image processing unit 103. The imaging unit 101 images a subject with a plurality of photoelectric conversion characteristics having different sensitivities. In the first embodiment, linear characteristics and logarithmic characteristics are employed as the plurality of photoelectric conversion characteristics, and the imaging unit 101 includes a plurality of pixels having linear logarithmic characteristics in which the linear characteristics and logarithmic characteristics are switched at inflection points. .

制御部102は、例えばCPUと演算用メモリ等で構成され、不図示の記憶部に格納されたプログラムに従って撮像素子を制御するとともに、画像処理部103を制御する。ここで、制御部102は、変曲点を調整するための制御データを撮像部101に出力する。また、制御部102は、画像処理部103から出力される評価データにしたがって、画像処理部103に種々の画像処理を依頼するための制御データを生成し、画像処理部103に出力する。   The control unit 102 includes, for example, a CPU and a calculation memory, and controls the image pickup device and the image processing unit 103 according to a program stored in a storage unit (not shown). Here, the control unit 102 outputs control data for adjusting the inflection point to the imaging unit 101. Further, the control unit 102 generates control data for requesting the image processing unit 103 to perform various image processing in accordance with the evaluation data output from the image processing unit 103, and outputs the control data to the image processing unit 103.

画像処理部103は、撮像部101により撮像された画像データが入力され、制御部102から出力される制御データにしたがって、所定の画像処理を実行する。   The image processing unit 103 receives the image data captured by the imaging unit 101 and executes predetermined image processing according to the control data output from the control unit 102.

図2(a)は、撮像部101が備える画素31aの回路図であり、(b)は(a)に示す画素31aが持つ光電変換特性を示したグラフである。   2A is a circuit diagram of the pixel 31a included in the imaging unit 101, and FIG. 2B is a graph showing the photoelectric conversion characteristics of the pixel 31a shown in FIG.

画素31aは、フォトダイオードPD、転送トランジスタQ1、リセットトランジスタQ2、フローティングディフュージョンFD、出力トランジスタQ3及び選択トランジスタQ4を含む。   The pixel 31a includes a photodiode PD, a transfer transistor Q1, a reset transistor Q2, a floating diffusion FD, an output transistor Q3, and a selection transistor Q4.

PVDDとPVSSとは、画素31aの電源電位であり、PVDDは正側の電源電位を示し、PVSSは負側の電源電位を示し、それぞれ、例えば、図略の電源回路により生成される。   PVDD and PVSS are power supply potentials of the pixel 31a, PVDD indicates a positive power supply potential, PVSS indicates a negative power supply potential, and are generated by, for example, a power supply circuit (not shown).

画素31aの読み出しシーケンスは下記のようになる。露光時間においては、図略の垂直走査回路からφRST=Hiにされ、φTX=Loにされ、リセットトランジスタQ2がオン、転送トランジスタQ1がオフされ、フローティングディフュージョンFDがリセットされている。露光時間が終了すると、φRST=Loにされ、リセットトランジスタQ2がオフされる。   The readout sequence of the pixel 31a is as follows. In the exposure time, φRST = Hi is set from a vertical scanning circuit (not shown), φTX = Lo, the reset transistor Q2 is turned on, the transfer transistor Q1 is turned off, and the floating diffusion FD is reset. When the exposure time ends, φRST = Lo, and the reset transistor Q2 is turned off.

次に、φVSEN=Hiにされ、選択トランジスタQ4がオンする。これにより、フローティングディフュージョンFDのリセット状態の電位が、出力トランジスタQ3を介して、画素31aの垂直列毎に共通の垂直信号線31bに、ノイズ信号31nとして出力される。   Next, φVSEN = Hi, and the selection transistor Q4 is turned on. As a result, the potential in the reset state of the floating diffusion FD is output as a noise signal 31n to the common vertical signal line 31b for each vertical column of the pixels 31a via the output transistor Q3.

次に、φTX=Hiにされて転送トランジスタQ1がオンする。これにより、PDに光電流Ipが流れてPDで蓄積された電荷がフローティングディフュージョンFDに転送されて蓄積される。ここで、露光時間において、φTXはLoとHiとの中間の中間電位に設定されている。そのため、光量が低い場合は、フローティングディフュージョンFDに蓄積される電荷は線形特性となる。一方、光量が高い場合は、転送トランジスタQ1のサブスレショルド特性により、フローティングディフュージョンFDに蓄積される電荷は対数特性となる。線形特性と対数特性との切り替わり点、即ち変曲点Ptの光量Lptは、転送トランジスタQ1の転送信号φTXの設定によって任意に設定できる。   Next, φTX = Hi is set and the transfer transistor Q1 is turned on. As a result, the photocurrent Ip flows through the PD, and the charge accumulated in the PD is transferred to the floating diffusion FD and accumulated. Here, during the exposure time, φTX is set to an intermediate potential between Lo and Hi. Therefore, when the amount of light is low, the charge accumulated in the floating diffusion FD has a linear characteristic. On the other hand, when the amount of light is high, the charge accumulated in the floating diffusion FD has a logarithmic characteristic due to the subthreshold characteristic of the transfer transistor Q1. The switching point between the linear characteristic and the logarithmic characteristic, that is, the light amount Lpt at the inflection point Pt can be arbitrarily set by setting the transfer signal φTX of the transfer transistor Q1.

次に、φVSEN=Hiにされ、選択トランジスタQ4がオンし、フローティングディフュージョンFDの電位が、出力トランジスタQ3を介して、垂直信号線31bに、画素信号31pとして出力される。   Next, φVSEN = Hi is set, the selection transistor Q4 is turned on, and the potential of the floating diffusion FD is output as the pixel signal 31p to the vertical signal line 31b via the output transistor Q3.

出力された画素信号31pは、後段の回路、例えばA/D変換部(図略)等によって、相関二重サンプリング(以下、CDSと言う)法を用いて、画素信号31pとノイズ信号31nとの差分がとられ、ノイズがキャンセルされた撮像信号31s(31s=31p−31n)が得られる。   The output pixel signal 31p is converted between the pixel signal 31p and the noise signal 31n by using a correlated double sampling (hereinafter referred to as CDS) method by a subsequent circuit such as an A / D converter (not shown). An imaging signal 31s (31s = 31p−31n) in which the difference is taken and noise is canceled is obtained.

そして、再度、φRST=Hiにされて露光時間が開始され、次のフレームの撮像が行われる。   Then, again, φRST = Hi is set, the exposure time is started, and the next frame is imaged.

図2(b)のグラフにおいて、横軸は光量を対数で示し、縦軸は画素値(撮像信号31sに相当)を線形で示す。変曲点Ptでの光量Lptよりも低輝度の状態(A1領域)では、画素値は光量に対して線形に変化しており線形特性を持つ。一方、変曲点Ptの光量Lptよりも高輝度の状態(A2領域)では、画素値は光量に対して対数で変化しており対数特性を持つ。よって、画素31aは変曲点Ptを境に低輝度側が線形特性、高輝度側が対数特性を持つ線形対数特性の光電変換特性を持っていることが分かる。   In the graph of FIG. 2B, the horizontal axis indicates the amount of light in logarithm, and the vertical axis indicates the pixel value (corresponding to the imaging signal 31s) linearly. In a state of lower brightness than the light amount Lpt at the inflection point Pt (A1 region), the pixel value changes linearly with respect to the light amount and has a linear characteristic. On the other hand, in a state of higher luminance than the light amount Lpt at the inflection point Pt (A2 region), the pixel value changes logarithmically with respect to the light amount and has logarithmic characteristics. Therefore, it can be seen that the pixel 31a has a linear logarithmic photoelectric conversion characteristic having a linear characteristic on the low luminance side and a logarithmic characteristic on the high luminance side with the inflection point Pt as a boundary.

図4は、撮像部101の露光時間と光電変換特性との関係を示したグラフであり、縦軸は画素値(撮像信号31s)を線形で示し、横軸は光量を対数で示している。   FIG. 4 is a graph showing the relationship between the exposure time of the imaging unit 101 and the photoelectric conversion characteristics. The vertical axis indicates the pixel value (imaging signal 31s) linearly, and the horizontal axis indicates the light quantity in logarithm.

撮像部101の露光時間を制御することにより、撮像部101の光電変換特性において、線形領域の感度を変化させることができる。具体的には、露光時間が短くなるにつれて、光電変換特性である線形対数特性は401→402→403と変化する。線形対数特性401〜403において、線形領域を401_1〜403_1とすると、線形領域は401_1→402_1→403_1の順で傾きが緩やかになっており、感度が減少しているが、その分、線形領域の光量の範囲が対数領域の光量の範囲に比べて増大し、線形領域の画素数が増大する。なお、線形対数特性401〜403において、対数領域を401_2〜403_2とすると、対数領域401_2〜403_2の傾きは全て一定になっている。   By controlling the exposure time of the imaging unit 101, the sensitivity of the linear region can be changed in the photoelectric conversion characteristics of the imaging unit 101. Specifically, as the exposure time becomes shorter, the linear logarithmic characteristic, which is a photoelectric conversion characteristic, changes from 401 → 402 → 403. In the linear logarithmic characteristics 401 to 403, when the linear region is 401_1 to 403_1, the slope of the linear region becomes gentle in the order of 401_1 → 402_1 → 403_1, and the sensitivity decreases. The light quantity range increases compared to the logarithmic area light quantity range, and the number of pixels in the linear region increases. In the linear logarithmic characteristics 401 to 403, when the logarithmic areas are 401_2 to 403_2, the slopes of the logarithmic areas 401_2 to 403_2 are all constant.

このことから、露光時間を短くすると、線形領域の感度は減少するが、線形領域の光量の範囲が増大し、線形領域の画素数が増大することが分かる。一方、露光時間を長くすると、線形領域の感度は増大するが、線形領域の光量の範囲が減少し、線形領域の画素数が減少することが分かる。したがって、露光時間に応じて線形対数特性の線形領域の画素数を調節することができる。   From this, it can be seen that when the exposure time is shortened, the sensitivity of the linear region decreases, but the light amount range of the linear region increases and the number of pixels in the linear region increases. On the other hand, when the exposure time is increased, the sensitivity in the linear region increases, but the light amount range in the linear region decreases, and the number of pixels in the linear region decreases. Therefore, the number of pixels in the linear region having a linear logarithmic characteristic can be adjusted according to the exposure time.

なお、上記のように読出時間が開始されるとφRST=Loとなり、読出時間が終了すると、φRST=Hiとなって、露光時間が開始される。つまり、露光時間においては、φRST=Hiとなっている。よって、例えば、φRST=Hiの時間を調整することで露光時間を調整することができる。   When the readout time is started as described above, φRST = Lo, and when the readout time ends, φRST = Hi, and the exposure time is started. That is, φRST = Hi in the exposure time. Therefore, for example, the exposure time can be adjusted by adjusting the time of φRST = Hi.

図2(b)に示す変曲点Ptの画素値(変曲点画素値A)は、露光時間における転送信号φTXを設定することで制御できる。すなわち、転送信号φTXがHiに近づくにつれて転送トランジスタQ1のゲートの開度が増大するため、変曲点画素値Aは低下して、領域A1が減少してダイナミックレンジが増大する。一方、転送信号φTXがLoに近づくと転送トランジスタQ1のゲートの開度が減少するため、変曲点画素値Aは増大して、領域A1が増大してダイナミックレンジが減少する。よって、転送信号φTXの電圧レベルを調整することで変曲点画素値Aを調整することができる。   The pixel value (inflection point pixel value A) of the inflection point Pt shown in FIG. 2B can be controlled by setting the transfer signal φTX in the exposure time. That is, as the transfer signal φTX approaches Hi, the opening degree of the gate of the transfer transistor Q1 increases, so that the inflection point pixel value A decreases, the area A1 decreases, and the dynamic range increases. On the other hand, when the transfer signal φTX approaches Lo, the opening degree of the gate of the transfer transistor Q1 decreases, so that the inflection point pixel value A increases, the area A1 increases, and the dynamic range decreases. Therefore, the inflection point pixel value A can be adjusted by adjusting the voltage level of the transfer signal φTX.

これを実現するために、例えば、露光時間と、変曲点画素値Aのレベルを一定にするための転送信号φTXの電圧レベルとの関係を予め規定する関数やLUTを制御部102に予め持たせておき、この関数やLUTを用いて転送信号の電圧レベルを決定させればよい。   In order to realize this, for example, the control unit 102 has in advance a function or LUT that prescribes the relationship between the exposure time and the voltage level of the transfer signal φTX for making the level of the inflection point pixel value A constant. In other words, the voltage level of the transfer signal may be determined using this function or LUT.

図5は、露光時間のみ調整し、変曲点画素値を調整しなかった場合の画素31aの光電変換特性であり、縦軸、横軸は図4と同じである。図5に示すように、露光時間が短くなるにつれて、線形対数特性は、401→402→403と変化している。しかしながら、図5では、変曲点画素値が調整されていないため、線形対数特性は401→402→403と変化するにつれて、変曲点画素値がA1→A2→A3と増大している。このことから、変曲点画素値を調整しない場合、露光時間が短くなるにつれて、変曲点画素値が増大することが分かる。そのため、変曲点画素値を調整しない場合、露光時間が短くなるにつれて、対数領域が減少してしまう。   FIG. 5 shows the photoelectric conversion characteristics of the pixel 31a when only the exposure time is adjusted and the inflection point pixel value is not adjusted, and the vertical and horizontal axes are the same as those in FIG. As shown in FIG. 5, as the exposure time becomes shorter, the linear logarithmic characteristic changes from 401 → 402 → 403. However, in FIG. 5, since the inflection point pixel value is not adjusted, the inflection point pixel value increases from A1 to A2 to A3 as the linear logarithmic characteristic changes from 401 to 402 to 403. From this, it is understood that when the inflection point pixel value is not adjusted, the inflection point pixel value increases as the exposure time becomes shorter. Therefore, when the inflection point pixel value is not adjusted, the logarithmic area decreases as the exposure time becomes shorter.

一方、図4の例では、露光時間に関わらず、変曲点画素値Aが一定になるように、変曲点Ptが制御されている。これにより、露光時間を短くしても対数領域が維持されている。但し、図5の制御を採用した場合、変曲点画素値を制御する必要がなくなるため、制御の簡便化を図ることができる。したがって、本実施の形態では、図4に示すように、露光時間に関わらず変曲点を一定にする制御を採用してもよいし、図5に示すように、露光時間のみ調整し、変曲点を調整しない制御を採用してもよい。   On the other hand, in the example of FIG. 4, the inflection point Pt is controlled so that the inflection point pixel value A is constant regardless of the exposure time. Thereby, the logarithmic region is maintained even if the exposure time is shortened. However, when the control of FIG. 5 is employed, it is not necessary to control the inflection point pixel value, so that the control can be simplified. Therefore, in the present embodiment, as shown in FIG. 4, it is possible to adopt a control for making the inflection point constant regardless of the exposure time, or as shown in FIG. You may employ | adopt control which does not adjust a music point.

図6は、図1に示す画像処理部103の詳細な構成を示すブロック図である。画像処理部103は、特性変換部601、輝度分布検出部602、感度増幅部603、DR(ダイナミックレンジ)圧縮部604(入出力特性変換部の一例)を備えている。   FIG. 6 is a block diagram showing a detailed configuration of the image processing unit 103 shown in FIG. The image processing unit 103 includes a characteristic conversion unit 601, a luminance distribution detection unit 602, a sensitivity amplification unit 603, and a DR (dynamic range) compression unit 604 (an example of an input / output characteristic conversion unit).

特性変換部601は、撮像部101から画像データが入力され、入力された画像データの光電変換特性を線形対数特性から対数特性(基準光電変換特性の一例)に変換し、変曲点Ptを境に切り替わる光電変換特性を1つの光電変換特性に統一させる。なお、特性変換部601は、入力された画像データの光電変換特性を線形対数特性から線形特性に変換して、線形特性に統一してもよい。   The characteristic conversion unit 601 receives image data from the imaging unit 101, converts the photoelectric conversion characteristic of the input image data from a linear logarithmic characteristic to a logarithmic characteristic (an example of a reference photoelectric conversion characteristic), and sets an inflection point Pt as a boundary. The photoelectric conversion characteristics to be switched to are unified into one photoelectric conversion characteristic. Note that the characteristic conversion unit 601 may convert the photoelectric conversion characteristic of the input image data from a linear logarithmic characteristic to a linear characteristic to unify the linear characteristic.

輝度分布検出部602は、特性変換部601から出力された画像データの輝度分布を検出し、輝度分布を評価データとして、制御部102に出力する。感度増幅部603は、制御部102から出力された感度増幅率を示す制御データDAを用いて、特性変換部601から出力された画像データの感度を増幅する。ここで、感度増幅率としては、画像データの明るさを一定の明るさにするための値が算出される。   The luminance distribution detection unit 602 detects the luminance distribution of the image data output from the characteristic conversion unit 601 and outputs the luminance distribution to the control unit 102 as evaluation data. The sensitivity amplification unit 603 amplifies the sensitivity of the image data output from the characteristic conversion unit 601 using the control data DA indicating the sensitivity amplification factor output from the control unit 102. Here, as the sensitivity amplification factor, a value for making the brightness of the image data constant is calculated.

DR圧縮部604は、制御部102からの制御データDBに基づいて、感度増幅部603から出力された画像データに対してダイナミックレンジ圧縮処理を実行する。   The DR compression unit 604 executes dynamic range compression processing on the image data output from the sensitivity amplification unit 603 based on the control data DB from the control unit 102.

図7は、特性変換部601の詳細な構成を示したブロック図である。特性変換部601は、LUT701を含む。図8は、特性変換部601の処理を説明するためのグラフであり、(a)は線形対数特性を対数特性に変換する場合を示し、(b)は線形対数特性を線形特性に変換する場合を示している。なお、図8(a)、(b)において、縦軸は特性変換部601に入力される画素値を示し、横軸は光量を対数で示している。   FIG. 7 is a block diagram showing a detailed configuration of the characteristic conversion unit 601. The characteristic conversion unit 601 includes an LUT 701. FIGS. 8A and 8B are graphs for explaining the processing of the characteristic conversion unit 601. FIG. 8A shows a case where a linear logarithmic characteristic is converted into a logarithmic characteristic, and FIG. 8B shows a case where the linear logarithmic characteristic is converted into a linear characteristic. Is shown. 8A and 8B, the vertical axis indicates the pixel value input to the characteristic conversion unit 601, and the horizontal axis indicates the amount of light in logarithm.

特性変換部601には、線形対数特性の画像データが入力される。LUT701は、変換前の線形対数特性の画素値に応じた、変換後の対数特性の画素値を予め記憶している。よって、図8(a)に示すように特性変換部601に入力される線形対数特性の画像データは、LUT701により光量の全範囲において対数特性を持つ画像データに変換される。   The characteristic conversion unit 601 receives linear logarithmic characteristic image data. The LUT 701 stores in advance the logarithmic characteristic pixel value after conversion corresponding to the pixel value of the linear logarithmic characteristic before conversion. Therefore, as shown in FIG. 8A, the linear logarithmic characteristic image data input to the characteristic converting unit 601 is converted into image data having a logarithmic characteristic in the entire light amount range by the LUT 701.

なお、特性変換部601が線形対数特性の画像データを線形特性の画像データに変換する場合、LUT701に、変換前の線形対数特性の画素値に応じた、変換後の線形特性の画素値を予め記憶させればよい。これにより、図8(b)に示すように、特性変換部601に入力される線形対数特性の画像データは、LUT701により光量の全範囲において線形特性を持つ画像データに変換される。   When the characteristic conversion unit 601 converts linear logarithmic characteristic image data into linear characteristic image data, the LUT 701 stores the converted linear characteristic pixel value in advance according to the linear logarithmic characteristic pixel value before conversion. Just remember. As a result, as shown in FIG. 8B, the linear logarithmic characteristic image data input to the characteristic conversion unit 601 is converted into image data having a linear characteristic in the entire light amount range by the LUT 701.

図9(a)は、輝度分布検出部602の詳細な構成を示すブロック図であり、図9(b)は、輝度分布検出部602が検出する輝度分布の一例を示したグラフである。   FIG. 9A is a block diagram illustrating a detailed configuration of the luminance distribution detection unit 602, and FIG. 9B is a graph illustrating an example of the luminance distribution detected by the luminance distribution detection unit 602.

輝度分布検出部602は、ヒストグラム検出部901を含む。ヒストグラム検出部901は、特性変換部601からの画像データが入力され、当該画像データのヒストグラムを検出し、評価データを算出する。ヒストグラム検出部901は、入力された画像データにおいて、各画素の画素値(輝度値)の度数を求め、図9(b)に示すような輝度分布を求める。ここで、度数は同じ画素値を持つ画素の数又は画素値が同じ階級に属する画素の数を表す。したがって、ヒストグラム検出部901は、入力された画像データにおいて、同じ画素値を持つ画素の数をカウントする、或いは、各画素を画素値に応じて複数の階級に分類し、各階級の画素の数をカウントすることでヒストグラムを検出する。これにより、図9(b)に示すように、画素値(輝度値)と度数との関係を示す輝度分布が得られる。そして、ヒストグラム検出部901は、求めた輝度分布を評価データとして、制御部102に出力する。   The luminance distribution detection unit 602 includes a histogram detection unit 901. The histogram detection unit 901 receives image data from the characteristic conversion unit 601, detects a histogram of the image data, and calculates evaluation data. The histogram detection unit 901 obtains the frequency of the pixel value (luminance value) of each pixel in the input image data, and obtains a luminance distribution as shown in FIG. Here, the frequency represents the number of pixels having the same pixel value or the number of pixels having the same pixel value. Therefore, the histogram detection unit 901 counts the number of pixels having the same pixel value in the input image data, or classifies each pixel into a plurality of classes according to the pixel value, and the number of pixels in each class. The histogram is detected by counting. Thereby, as shown in FIG. 9B, a luminance distribution indicating the relationship between the pixel value (luminance value) and the frequency is obtained. Then, the histogram detection unit 901 outputs the obtained luminance distribution to the control unit 102 as evaluation data.

図10(a)は、感度増幅部603の詳細な構成を示すブロック図であり、図10(b)は感度増幅部603による処理を説明するグラフである。なお、図10(b)において、縦軸は、感度増幅部603に入力される画像データの画素値を示し、横軸は光量を対数で示している。   FIG. 10A is a block diagram illustrating a detailed configuration of the sensitivity amplifying unit 603, and FIG. 10B is a graph illustrating processing by the sensitivity amplifying unit 603. In FIG. 10B, the vertical axis indicates the pixel value of the image data input to the sensitivity amplifier 603, and the horizontal axis indicates the amount of light in logarithm.

感度増幅部603は、加減算部1001を含む。加減算部1001は、制御部102から画像データの感度増幅率が制御データDAとして入力され、この感度増幅率を入力された画像データに加算する又は当該画像データから減算することで、画像データの感度を調整する。   The sensitivity amplification unit 603 includes an addition / subtraction unit 1001. The addition / subtraction unit 1001 receives the sensitivity amplification factor of the image data from the control unit 102 as the control data DA, and adds the sensitivity amplification factor to the input image data or subtracts it from the image data, thereby the sensitivity of the image data. Adjust.

図10(b)に示すように、感度増幅率が画像データに加算されると画像データの感度が増大し、感度増幅率が画像データから減算されると画像データの感度が減少する。   As shown in FIG. 10B, the sensitivity of the image data increases when the sensitivity amplification factor is added to the image data, and the sensitivity of the image data decreases when the sensitivity amplification factor is subtracted from the image data.

ここで、感度増幅率を加算又は減算することで画像データの感度が調整されているのは、感度増幅部603に入力される画像データが対数特性だからである。なお、感度増幅部603に線形特性の画像データが入力される場合、感度増幅部603は、感度増幅率を画像データに乗じることで、感度を調節する。   Here, the sensitivity of the image data is adjusted by adding or subtracting the sensitivity amplification factor because the image data input to the sensitivity amplification unit 603 is logarithmic. When linear characteristic image data is input to the sensitivity amplification unit 603, the sensitivity amplification unit 603 adjusts the sensitivity by multiplying the image data by the sensitivity amplification factor.

図11は、DR圧縮部604の詳細な構成を示すブロック図である。DR圧縮部604は、照明成分抽出部1201、圧縮部1202、反射率成分抽出部1203、及び合成部1204を備えている。図12(a)は照明成分抽出部1201に入力される入力画像D1201を示し、図12(b)は照明成分抽出部1201から出力される照明成分画像D1202及び圧縮部1202から出力される圧縮画像D1204、図12(c)は反射率成分抽出部1203から出力される反射率成分画像D1203、図12(d)は合成部1204から出力される出力画像D1205の特性を示した図である。なお、図12(a)〜(d)において、縦軸は画素値を示し、横軸は画素の位置、つまり画素アドレスを示している。   FIG. 11 is a block diagram illustrating a detailed configuration of the DR compression unit 604. The DR compression unit 604 includes an illumination component extraction unit 1201, a compression unit 1202, a reflectance component extraction unit 1203, and a synthesis unit 1204. 12A shows an input image D1201 input to the illumination component extraction unit 1201, and FIG. 12B shows an illumination component image D1202 output from the illumination component extraction unit 1201 and a compressed image output from the compression unit 1202. D1204, FIG. 12C shows the characteristics of the reflectance component image D1203 output from the reflectance component extraction unit 1203, and FIG. 12D shows the characteristics of the output image D1205 output from the synthesis unit 1204. In FIGS. 12A to 12D, the vertical axis indicates the pixel value, and the horizontal axis indicates the pixel position, that is, the pixel address.

照明成分抽出部1201は、低周波抽出フィルタを用いて低周波画像である照明成分画像D1202を、入力画像D1201から抽出する。これにより、図12(b)に示すように入力画像D1201から高周波成分が除去された照明成分画像D1202が抽出される。   The illumination component extraction unit 1201 extracts an illumination component image D1202 that is a low-frequency image from the input image D1201 using a low-frequency extraction filter. As a result, as shown in FIG. 12B, an illumination component image D1202 from which high-frequency components have been removed from the input image D1201 is extracted.

圧縮部1202は、制御データDBとして入力される圧縮特性により照明成分画像D1202を圧縮し、圧縮画像D1204を生成する。これにより、図12(b)に示すように、照明成分画像D1202のダイナミックレンジが圧縮された圧縮画像D1204が得られる。   The compression unit 1202 compresses the illumination component image D1202 based on the compression characteristics input as the control data DB, and generates a compressed image D1204. Thereby, as shown in FIG. 12B, a compressed image D1204 in which the dynamic range of the illumination component image D1202 is compressed is obtained.

反射率成分抽出部1203は、照明成分画像D1202及び入力画像D1201に基づき、反射率成分画像D1203を抽出する。   The reflectance component extraction unit 1203 extracts the reflectance component image D1203 based on the illumination component image D1202 and the input image D1201.

ここで、入力画像D1201が対数特性の場合、反射率成分画像D1203は下記の式により算出される。   Here, when the input image D1201 has logarithmic characteristics, the reflectance component image D1203 is calculated by the following equation.

反射率成分画像D1203=入力画像D1201−照明成分画像D1202   Reflectance component image D1203 = input image D1201-illumination component image D1202

一方、入力画像D1201が線形特性の場合、反射率成分画像D1203は下記の式により算出される。   On the other hand, when the input image D1201 has a linear characteristic, the reflectance component image D1203 is calculated by the following equation.

反射率成分画像D1203=入力画像D1201/照明成分画像D1202   Reflectance component image D1203 = input image D1201 / illumination component image D1202

これにより、図12(c)に示すように、入力画像D1201に含まれている高周波成分である反射率成分画像D1203が抽出される。   Thereby, as shown in FIG.12 (c), the reflectance component image D1203 which is a high frequency component contained in the input image D1201 is extracted.

合成部1204は、圧縮画像D1204と反射率成分画像D1203とを合成し、出力画像D1205を生成する。これにより、DR圧縮処理がされた画像データがDR圧縮部604から出力される。   The combining unit 1204 combines the compressed image D1204 and the reflectance component image D1203 to generate an output image D1205. As a result, the image data subjected to the DR compression process is output from the DR compression unit 604.

入力画像D1201が線形特性の場合、出力画像D1205は下記の式で算出される。   When the input image D1201 has a linear characteristic, the output image D1205 is calculated by the following equation.

出力画像D1205×圧縮画像D1204=反射率成分画像D1203   Output image D1205 × compressed image D1204 = reflectance component image D1203

入力画像D1201が対数特性の場合、出力画像D1205は下記の式で算出される。   When the input image D1201 has logarithmic characteristics, the output image D1205 is calculated by the following equation.

出力画像D1205+圧縮画像D1204=反射率成分画像D1203   Output image D1205 + compressed image D1204 = reflectance component image D1203

これにより、図12(d)に示すように、圧縮画像D1204に反射率成分画像D1203が重畳されたような出力画像D1205が生成される。   As a result, as shown in FIG. 12D, an output image D1205 in which the reflectance component image D1203 is superimposed on the compressed image D1204 is generated.

図13は、露光時間と光電変換特性との関係を示すグラフであり、縦軸は画素値を示し、横軸は光量を対数で示している。   FIG. 13 is a graph showing the relationship between the exposure time and the photoelectric conversion characteristics, where the vertical axis indicates the pixel value and the horizontal axis indicates the amount of light in logarithm.

図14は、露光時間と輝度分布との関係の説明図であり、(a)は図13に示す光電変換特性1301の輝度分布であり、(b)は図13に示す光電変換特性1302の輝度分布である。   14A and 14B are explanatory diagrams of the relationship between the exposure time and the luminance distribution. FIG. 14A is the luminance distribution of the photoelectric conversion characteristic 1301 shown in FIG. 13, and FIG. 14B is the luminance of the photoelectric conversion characteristic 1302 shown in FIG. Distribution.

露光時間が長い場合の光電変換特性1301における輝度分布は図14(a)に示すように、変曲点画素値Aに対して低輝度側の画素、すなわち、線形特性の画素の画像データ全体に占める割合が光電変換特性1302の場合に比べて減少している。   As shown in FIG. 14A, the luminance distribution in the photoelectric conversion characteristic 1301 when the exposure time is long is applied to the entire image data of the pixel on the low luminance side with respect to the inflection point pixel value A, that is, the pixel having the linear characteristic. The proportion occupied is reduced compared to the case of the photoelectric conversion characteristics 1302.

一方、露光時間が短い場合の光電変換特性1302における輝度分布は図14(b)に示すように、変曲点画素値Aに対して低輝度側の画素、すなわち、線形特性の画素の画像データ全体に占める割合が光電変換特性1301の場合に比べて増大している。   On the other hand, as shown in FIG. 14B, the luminance distribution in the photoelectric conversion characteristic 1302 when the exposure time is short is, as shown in FIG. 14B, image data of pixels on the low luminance side with respect to the inflection point pixel value A, that is, pixels with linear characteristics. The proportion of the total is increased compared to the case of the photoelectric conversion characteristic 1301.

よって、露光時間を減少させると、変曲点画素値A以下の画素の画像データ全体に占める割合を増大させることができる。一方、露光時間を増大させると、変曲点画素値A以下の画素の画像データ全体に占める割合を減少させることができる。   Therefore, when the exposure time is decreased, the ratio of the pixels having the inflection point pixel value A or less to the entire image data can be increased. On the other hand, when the exposure time is increased, it is possible to reduce the ratio of pixels having the inflection point pixel value A or less to the entire image data.

したがって、露光時間を制御することで、線形特性の画素の画像データ全体に占める割合を一定の割合にすることができ、高感度の画像データを得ることができる。   Therefore, by controlling the exposure time, the ratio of pixels having linear characteristics to the entire image data can be made constant, and high-sensitivity image data can be obtained.

図15は、本発明の実施の形態1による撮像装置が露光時間を制御する際の処理を示すフローチャートである。まず、制御部102は、輝度分布検出部602から評価データとして出力された画像データの輝度分布を取得し、この輝度分布において変曲点画素値A以下の画素の累積度数をカウントする(S1501)。   FIG. 15 is a flowchart showing processing when the imaging apparatus according to Embodiment 1 of the present invention controls the exposure time. First, the control unit 102 acquires the luminance distribution of the image data output as the evaluation data from the luminance distribution detection unit 602, and counts the cumulative frequency of pixels having an inflection point pixel value A or less in this luminance distribution (S1501). .

次に、制御部102は、累積度数が、下限値Th1、上限値Th2の所定の度数許容範囲の値を持つか否かを判定する(S1502)。ここで、度数許容範囲としては、画像データの感度を高感度にする範囲を採用することができ、例えば、下限値Th1としては、画像データ全体の画素数の85%の画素数を採用し、上限値Th2としては、画像データ全体の画素数の95%の画素数を採用することができる。但し、下限値Th1、上限値Th2としてはこの値に限定されず、別の値を適宜採用してもよい。   Next, the control unit 102 determines whether the cumulative frequency has a value within a predetermined frequency allowable range of the lower limit value Th1 and the upper limit value Th2 (S1502). Here, as the frequency allowable range, a range that makes the sensitivity of the image data high can be adopted. For example, as the lower limit Th1, a number of pixels that is 85% of the number of pixels of the entire image data is adopted, As the upper limit value Th2, the number of pixels that is 95% of the total number of pixels of the image data can be employed. However, the lower limit Th1 and the upper limit Th2 are not limited to these values, and other values may be adopted as appropriate.

次に、制御部102は、累積度数が度数許容範囲内である場合(S1502でYES)、つまり、累積度数が画像データ全体の画素数の85%より大きく、95%未満の値を持つ場合、処理対象の画像データは感度が許容範囲内であるため、露光時間を調整することなく処理を終了する。   Next, when the cumulative frequency is within the frequency allowable range (YES in S1502), that is, when the cumulative frequency has a value that is greater than 85% and less than 95% of the total number of pixels of the image data, Since the sensitivity of the image data to be processed is within the allowable range, the processing is terminated without adjusting the exposure time.

累積度数が下限値Th1以下の場合(S1502でNO且つS1503でYES)、つまり、累積度数が画像データ全体の画素数の85%以下の場合、制御部102は露光時間を短くする(S1506)。これにより、図14(b)に示すように変曲点画素値A以下の画素の画像データ全体に占める割合が増大し、線形特性の画素の占める割合が増大する。   If the cumulative frequency is less than or equal to the lower limit Th1 (NO in S1502 and YES in S1503), that is, if the cumulative frequency is 85% or less of the total number of pixels of the image data, the control unit 102 shortens the exposure time (S1506). As a result, as shown in FIG. 14B, the ratio of pixels with the inflection point pixel value A or less to the entire image data increases, and the ratio of pixels with linear characteristics increases.

一方、累積度数が上限値Th2以上の場合(S1502でNO且つS1503でNO)、制御部102は露光時間を長くする(S1505)。これにより、図14(a)に示すように変曲点画素値A以下の画素の画像データ全体に占める割合が減少し、線形特性の画素の占める割合が減少する。   On the other hand, when the cumulative frequency is equal to or greater than the upper limit value Th2 (NO in S1502 and NO in S1503), the control unit 102 increases the exposure time (S1505). As a result, as shown in FIG. 14A, the ratio of pixels with the inflection point pixel value A or less to the entire image data decreases, and the ratio of pixels with linear characteristics decreases.

ここで、撮像部101が動画像を撮像する場合、制御部102は、1フレームの画像データを撮像する都度、露光時間を所定の分解能で少しずつ増減させてゆき、1又は数フレーム後に変曲点画素値A以下の累積度数を度数許容範囲にすればよい。一方、撮像部101が静止画を撮像する場合、制御部102は、プレ露光で得られた輝度分布から変曲点画素値A以下の累積度数を求め、累積度数と度数許容範囲との差に応じて予め定められた増減値で現在の露光時間を増減させ、本露光の撮像を行えばよい。   Here, when the imaging unit 101 captures a moving image, the control unit 102 gradually increases or decreases the exposure time with a predetermined resolution every time one frame of image data is captured, and the inflection occurs after one or several frames. A cumulative frequency equal to or less than the point pixel value A may be within the frequency allowable range. On the other hand, when the imaging unit 101 captures a still image, the control unit 102 obtains a cumulative frequency equal to or less than the inflection point pixel value A from the luminance distribution obtained by pre-exposure, and determines the difference between the cumulative frequency and the frequency allowable range. Accordingly, the current exposure time may be increased / decreased by a predetermined increase / decrease value, and imaging of the main exposure may be performed.

次に、制御部102は、露光時間を調整することで変化した変曲点画素値Aを調整前の変曲点画素値Aに戻すために変曲点画素値Aを調整する(S1507)。この場合、制御部102は、変曲点画素値Aを一定にするために、露光時間に応じて予め定められた転送信号φTXの電圧レベルを設定し、転送トランジスタQ1のゲートに供給する。これにより、露光時間の調整の前後において、変曲点画素値Aが変化することを防止することができ、対数領域を一定に保つことができる。   Next, the control unit 102 adjusts the inflection point pixel value A in order to return the inflection point pixel value A changed by adjusting the exposure time to the inflection point pixel value A before adjustment (S1507). In this case, in order to make the inflection point pixel value A constant, the control unit 102 sets a voltage level of the transfer signal φTX determined in advance according to the exposure time, and supplies it to the gate of the transfer transistor Q1. Thus, the inflection point pixel value A can be prevented from changing before and after the exposure time adjustment, and the logarithmic region can be kept constant.

なお、図15では、変曲点画素値Aを調整したが、調整しなくてもよい。図16は、変曲点画素値を調整しない場合の光電変換特性を示したグラフであり、縦軸、横軸は図13と同じである。   In FIG. 15, the inflection point pixel value A is adjusted, but it is not necessary to adjust it. FIG. 16 is a graph showing photoelectric conversion characteristics when the inflection point pixel value is not adjusted, and the vertical and horizontal axes are the same as those in FIG.

露光時間が短く調整され、光電変換特性1601が光電変換特性1602にシフトしたとする。変曲点画素値Aを調整しない態様を採用した場合、露光時間に応じて変曲点画素値が変動することになる。この場合、制御部102は、変動後の変曲点画素値AAを画像処理部103に通知し、画像処理部103に変曲点画素値AAを認識させ、種々の画像処理を実行させればよい。   It is assumed that the exposure time is adjusted to be short and the photoelectric conversion characteristic 1601 is shifted to the photoelectric conversion characteristic 1602. When an aspect in which the inflection point pixel value A is not adjusted is employed, the inflection point pixel value varies depending on the exposure time. In this case, the control unit 102 notifies the image processing unit 103 of the inflection point pixel value AA after the change, causes the image processing unit 103 to recognize the inflection point pixel value AA, and executes various image processing. Good.

<撮像シーンに応じた撮像制御>
なお、制御部102は、輝度分布から夜間や昼間といった撮像シーンを判別し、撮像シーンに応じて撮像部101の制御を変更してもよい。
<Imaging control according to imaging scene>
Note that the control unit 102 may determine an imaging scene such as nighttime or daytime from the luminance distribution, and change the control of the imaging unit 101 according to the imaging scene.

図20は、夜間と昼間との光量分布の違いを説明する図であり、(a)は夜間における光量分布を示し、(b)は昼間における光量分布を示している。図21は、画像データの光電変換特性を示したグラフであり、縦軸及び横軸は図13と同じである。   FIG. 20 is a diagram for explaining the difference in light quantity distribution between nighttime and daytime. (A) shows the light quantity distribution at night, and (b) shows the light quantity distribution during daytime. FIG. 21 is a graph showing the photoelectric conversion characteristics of image data, and the vertical and horizontal axes are the same as those in FIG.

屋外の撮影において、夜間では暗部側と光源付近の明部側との2箇所で度数が集中する傾向がある。一方、昼間のシーンでは中間域での度数が比較的多く、暗部から明部にかけて度数の変化が少ない傾向がある。   In outdoor shooting, power tends to concentrate at two locations on the dark side and the bright side near the light source at night. On the other hand, in the daytime scene, the frequency in the intermediate range is relatively large, and the change in the frequency tends to be small from the dark part to the bright part.

このことから、昼間のシーンと夜間のシーンとにおいて同じ制御、つまり、光量が0からの累積度数が同じところに変曲点の光量aを設定して撮像した場合、以下の不具合が起こる可能性がある。   Therefore, the same problems may occur in the daytime scene and the nighttime scene, that is, when the inflection point light amount a is set at the same cumulative frequency from the light amount 0 and the following inconveniences occur. There is.

すなわち、夜間と昼間とにおいて、変曲点の光量aから最高光量d1、d2までの光量範囲Δdが大きく異なるケースが発生する。すなわち、夜間では、暗部側に度数が集中するため、変曲点の光量aが昼間に比べて低いところに設定される。その結果、夜間では、変曲点の光量aから最高光量d1までの光量範囲Δdが昼間に比べて増大する。   That is, there occurs a case where the light amount range Δd from the light amount a at the inflection point to the maximum light amounts d1 and d2 is greatly different between nighttime and daytime. That is, at night, the power is concentrated on the dark side, so that the light amount a at the inflection point is set lower than in the daytime. As a result, at night, the light amount range Δd from the light amount a at the inflection point to the maximum light amount d1 increases compared to the daytime.

一方、昼間では、中間域での度数が比較的多いため、変曲点の光量aが夜間に比べて高いところに設定される。その結果、昼間では変曲点の光量aから最高光量d2までの光量範囲Δdが夜間に比べて減少する。したがって、昼間の光量分布を基準に度数許容範囲を設定すると夜間において、最高光量d1が撮像部101の飽和光量mを超える可能性がある。   On the other hand, since the frequency in the middle region is relatively large during the daytime, the light amount a at the inflection point is set higher than at night. As a result, the light amount range Δd from the light amount a at the inflection point to the maximum light amount d2 is reduced in the daytime compared to that at night. Therefore, if the frequency allowable range is set based on the daytime light amount distribution, the maximum light amount d1 may exceed the saturation light amount m of the imaging unit 101 at night.

以上の不具合を避けるため、本実施の形態では以下2つの方策を採用する。   In order to avoid the above problems, the following two measures are adopted in the present embodiment.

第1の方策:昼間と夜間とにおいて度数許容範囲を変更して露光時間を設定する。   First strategy: The exposure time is set by changing the frequency tolerance between daytime and nighttime.

第1の方策を採用した場合、制御が複雑になるが、高SN比の画像を撮影すると同時に、画像が飽和せず、白飛びの発生を防止することができる。   When the first measure is adopted, the control is complicated, but at the same time as capturing an image with a high S / N ratio, the image is not saturated and the occurrence of overexposure can be prevented.

第2の方策:夜間の光量分布を基準に最高光量d1が飽和光量m以下となるように度数許容範囲を定め、定めた度数許容範囲を用いて夜間と昼間とで度数許容範囲を変更せずに露光時間を制御する。第2の方策では、夜間の光量分布を基準に度数許容範囲が設定されるため、昼間では、撮像シーンよりも広いダイナミックレンジで被写体が撮像される。その結果、昼間、夜間の双方での画像の飽和を防止することができる。   Second Measure: A frequency allowable range is set so that the maximum light amount d1 is equal to or less than the saturated light amount m on the basis of the nighttime light amount distribution, and the frequency allowable range is not changed between nighttime and daytime using the determined frequency allowable range. The exposure time is controlled. In the second measure, since the frequency allowable range is set based on the light distribution at night, the subject is imaged in the daytime with a wider dynamic range than the imaging scene. As a result, image saturation during both daytime and nighttime can be prevented.

第2の方策を採用した場合、制御は簡単ではあるが、常に飽和をせずに比較的高SNな画像を撮影することができる。   When the second measure is adopted, although control is simple, an image with a relatively high SN can be taken without always being saturated.

第1の方策を採用した場合、例えば予め撮像部101に代表的な昼間、夜間の撮像シーンをそれぞれ撮像させて、昼間、夜間の光量分布を測定する。そして、昼間、夜間のそれぞれの光量分布において、最高光量d2、d1が飽和光量m以下であって最高光量d2、d1にできるだけ近い値をとるように、光量aを設定し、光量a以下の累積度数に基づいて度数許容範囲の下限値及び上限値を設定すればよい。また、第2の方策を採用した場合、第1の方策において夜間の撮像シーンで設定された度数許容範囲を採用すればよい。   When the first measure is adopted, for example, the imaging unit 101 is made to capture typical daytime and nighttime imaging scenes in advance, and the light quantity distribution at daytime and nighttime is measured. In each daytime and nighttime light amount distribution, the light amount a is set so that the maximum light amounts d2 and d1 are equal to or less than the saturated light amount m and as close as possible to the maximum light amounts d2 and d1, and the accumulated light amount a or less. The lower limit value and the upper limit value of the frequency allowable range may be set based on the frequency. Further, when the second policy is adopted, the frequency allowable range set in the night-time imaging scene in the first policy may be adopted.

<撮像シーンの判別処理>
図22は、撮像シーンの判別処理の説明図であり、(a)はある撮像シーンにおける画像データの輝度分布であり、(b)は別の撮像シーンにおける画像データの輝度分布である。図23は、撮像シーンの判別処理のフローチャートである。
<Imaging scene discrimination processing>
FIG. 22 is an explanatory diagram of the imaging scene discrimination process, where (a) shows the luminance distribution of the image data in one imaging scene, and (b) shows the luminance distribution of the image data in another imaging scene. FIG. 23 is a flowchart of an imaging scene discrimination process.

まず、制御部102は、輝度分布検出部602により検出された輝度分布(評価データ)を取得し、取得した輝度分布からピークを検出する(S2301)。ここで、ピークの検出方法としては、輝度分布を微分し、上に凸であり微分値が0となる箇所をピークとして検出する手法を採用すればよい。図22(a)では、暗部側の画素値がP1のピークPK1と、明部側の画素値がP2のピークPK2とが検出されている。一方、図22(b)では、暗部側の画素値がP1のピークPK1と、明部側の画素値がP3のピークPK3と、中間域の画素値がP2のピークPK2とが検出される。   First, the control unit 102 acquires the luminance distribution (evaluation data) detected by the luminance distribution detection unit 602, and detects a peak from the acquired luminance distribution (S2301). Here, as a method for detecting a peak, a method may be employed in which a luminance distribution is differentiated and a portion that is convex upward and has a differential value of 0 is detected as a peak. In FIG. 22A, a peak PK1 having a pixel value P1 on the dark side and a peak PK2 having a pixel value P2 on the bright side are detected. On the other hand, in FIG. 22B, a peak PK1 having a pixel value P1 on the dark side, a peak PK3 having a pixel value P3 on the bright side, and a peak PK2 having a pixel value P2 on the intermediate area are detected.

次に、制御部102は、ピークを2つ以上検出した場合(S2302でYES)、ピーク同士の画素値の間隔であるピーク間隔を検出する。この場合、制御部102の複数のピークの全ての組の各々についてピーク間隔を検出する。図22(a)では2つのピークが検出されているため、ピークPK1とピークPK2とのピーク間隔が検出される。一方、図22(b)では、3つのピークが検出されているため、ピークPK1〜PK3の全組み合わせのピーク間隔である、ピーク間隔S12、S23、S13の3つのピーク間隔が検出される。   Next, when two or more peaks are detected (YES in S2302), the control unit 102 detects a peak interval that is a pixel value interval between peaks. In this case, the peak interval is detected for each of all sets of the plurality of peaks of the control unit 102. Since two peaks are detected in FIG. 22A, the peak interval between the peak PK1 and the peak PK2 is detected. On the other hand, in FIG. 22B, since three peaks are detected, three peak intervals of peak intervals S12, S23, and S13, which are peak intervals of all combinations of the peaks PK1 to PK3, are detected.

次に、ピーク間隔が所定の閾値Ths以上の場合(S2304でYES)、制御部102は撮像シーンを夜間と判定し(S2305)、ピーク間隔が閾値Ths未満の場合(S2304でNO)、制御部102は撮像シーンを昼間と判定する(S2306)。   Next, when the peak interval is equal to or greater than the predetermined threshold Ths (YES in S2304), the control unit 102 determines that the imaging scene is night (S2305), and when the peak interval is less than the threshold Ths (NO in S2304), the control unit 102 determines that the imaging scene is daytime (S2306).

図22(a)の場合、1つのピーク間隔Sが検出されているため、ピーク間隔Sが閾値Ths以上であれば夜間と判定される。図22(b)の場合、3つのピーク間隔S12、S13、S23が検出されているため、それぞれのピーク間隔が閾値Ths以上であるか否かが判定され、1つ、2つ、又は全部のピーク間隔が閾値Ths以上であれば夜間と判定される。なお、ピーク間隔を複数検出した場合、制御部102は、最大のピーク間隔を抽出し、この最大のピーク間隔が閾値Ths以上であれば夜間と判定して処理の簡略化を図ってもよい。   In the case of FIG. 22A, since one peak interval S is detected, if the peak interval S is equal to or greater than the threshold Ths, it is determined that the night. In the case of FIG. 22B, since three peak intervals S12, S13, and S23 are detected, it is determined whether or not each peak interval is equal to or greater than the threshold Ths, and one, two, or all If the peak interval is greater than or equal to the threshold Ths, it is determined that the night. When a plurality of peak intervals are detected, the control unit 102 may extract the maximum peak interval, and if the maximum peak interval is equal to or greater than the threshold Ths, the control unit 102 may determine the night and simplify the processing.

一方、2つ以上のピークが検出されない場合(S2302でNO)、制御部102は、撮像シーンを昼間と判定する(S2306)。   On the other hand, when two or more peaks are not detected (NO in S2302), the control unit 102 determines that the imaging scene is daytime (S2306).

このように、夜間においては、暗部側と明部側とにおいて複数のピークが現れる傾向があり、一方、昼間においては、中間域に1つのピークが現れる傾向があるため、ピークの個数やピーク間隔を検出することで、夜間及び昼間を正確に判定することができる。   Thus, at night, there is a tendency for a plurality of peaks to appear on the dark side and on the bright side, while in the daytime, one peak tends to appear in the intermediate region. By detecting, nighttime and daytime can be accurately determined.

<第1の方策>
次に、上述した第1の方策について説明する。図24(a)は夜間における輝度分布の一例を示し、図24(b)は昼間における輝度分布の一例を示している。図25は、本発明の実施の形態1の撮像装置が第1の方策を採用した場合において、露光時間を制御する際の処理を示すフローチャートである。
<First policy>
Next, the first policy described above will be described. FIG. 24A shows an example of the luminance distribution at night, and FIG. 24B shows an example of the luminance distribution at daytime. FIG. 25 is a flowchart showing processing when controlling the exposure time when the imaging apparatus according to Embodiment 1 of the present invention adopts the first strategy.

S2501は図15のS1501と同じである。S2502において、制御部102は、上記の撮像シーンの判別処理を用いて輝度分布から撮像シーンを判別する。そして、制御部102は、撮像シーンを夜間と判定した場合、下限値Th1、上限値Th2として予め定められた夜間の値を設定し(S2503)、S2504以降の処理を行う。ここで、S2504以降の処理は図15のS2502以降の処理と同じであるため、説明を省略する。   S2501 is the same as S1501 in FIG. In step S2502, the control unit 102 determines an imaging scene from the luminance distribution using the imaging scene determination process described above. When determining that the imaging scene is nighttime, the control unit 102 sets predetermined nighttime values as the lower limit value Th1 and the upper limit value Th2 (S2503), and performs the processing after S2504. Here, the processing after S2504 is the same as the processing after S2502 in FIG.

一方、制御部102は撮像シーンを昼間と判定した場合、下限値Th1、上限値Th2として予め定められた昼間の値を設定し(S2503)、S2504以降の処理を行う。   On the other hand, when determining that the imaging scene is daytime, the control unit 102 sets predetermined daytime values as the lower limit value Th1 and the upper limit value Th2 (S2503), and performs the processing after S2504.

ここで、夜間、昼間のそれぞれの下限値Th1及び上限値Th2を下記のようにおく。   Here, the lower limit value Th1 and the upper limit value Th2 of the nighttime and daytime are set as follows.

夜間:Th1=N1、Th2=N2
昼間:Th1=D1、Th2=D2
Nighttime: Th1 = N1, Th2 = N2
Daytime: Th1 = D1, Th2 = D2

すると、N1、N2、D1、D2とは下記の関係を持つ。   Then, N1, N2, D1, and D2 have the following relationship.

D1<N1、D2<N2   D1 <N1, D2 <N2

つまり、夜間の度数許容範囲を昼間の度数許容範囲よりも大きい側に設定する。これにより、図24(a)、(b)に示すように、夜間における変曲点画素値A1は昼間における変曲点画素値A2よりも高くなり、夜間において懸念される高輝度側での飽和の発生を抑制することができる。   That is, the night frequency tolerance range is set to be larger than the daytime frequency tolerance range. Accordingly, as shown in FIGS. 24A and 24B, the inflection point pixel value A1 at night is higher than the inflection point pixel value A2 at daytime, and saturation on the high luminance side, which is a concern at night, is saturated. Can be suppressed.

<感度増幅率の算出>
次に、感度増幅率の算出処理について説明する。図26は、対数特性に変換された画像データの光電変換特性を示すグラフであり、縦軸は画素値、横軸は光量を対数で示している。図27(a)は図26に示す光電変換特性2601の輝度分布であり、図27(b)は図26に示す光電変換特性2602の輝度分布である。
<Calculation of sensitivity gain>
Next, the sensitivity amplification factor calculation process will be described. FIG. 26 is a graph showing the photoelectric conversion characteristics of image data converted into logarithmic characteristics, where the vertical axis indicates pixel values and the horizontal axis indicates the amount of light in logarithm. FIG. 27A shows the luminance distribution of the photoelectric conversion characteristic 2601 shown in FIG. 26, and FIG. 27B shows the luminance distribution of the photoelectric conversion characteristic 2602 shown in FIG.

本実施の形態では、上述したように画像データの輝度分布において、線形特性の画素の画像データ全体に占める割合が一定範囲内に入るように露光時間が制御されている。しかしながら、これのみを優先して行うと、画像データの全体的な明るさが大きく変化する虞がある。そこで、本実施の形態では、画像データの全体的な明るさが一定の明るさになるように画像データの感度を増幅させている。   In the present embodiment, as described above, the exposure time is controlled so that the ratio of the linear characteristic pixels to the entire image data is within a certain range in the luminance distribution of the image data. However, if priority is given only to this, the overall brightness of the image data may change significantly. Therefore, in the present embodiment, the sensitivity of the image data is amplified so that the overall brightness of the image data is constant.

図26に示すように、感度増幅率が増大すると、光電変換特性が2602→2601と変化する。よって、感度増幅率を増大させることで、図27(a)に示すように変曲点画素値A以下の画素の画素値の平均値Bを増大させることができる。   As shown in FIG. 26, when the sensitivity amplification factor increases, the photoelectric conversion characteristics change from 2602 to 2601. Therefore, by increasing the sensitivity amplification factor, the average value B of the pixel values of the inflection point pixel value A or less can be increased as shown in FIG.

一方、感度増幅率が減少すると、光電変換特性が2601→2602と変化する。よって、感度増幅率を減少させることで、図27(b)に示すように変曲点画素値A以下の画素の画素値の平均値Bを増大させることができる。   On the other hand, when the sensitivity amplification factor decreases, the photoelectric conversion characteristics change from 2601 to 2602. Therefore, by reducing the sensitivity amplification factor, the average value B of the pixel values of the inflection point pixel value A or less can be increased as shown in FIG.

図28は感度制御のフローチャートである。まず、制御部102は、輝度分布検出部602により検出された輝度分布から変曲点画素値A以下の画素の輝度の平均値を求める(S2801)。次に、制御部102は、平均値が目標輝度範囲の下限値Th3より大きく、且つ目標輝度範囲の上限値Th4未満であるかを判定する(S2802)。そして、平均値が下限値Th3以下の場合(S2802でNO且つS2803でYES)、制御部102は、感度増幅率を増大させる(S2805)。一方、平均値が上限値Th4以上である場合(S2802でNO且つS2803でNO)、感度増幅率を減少させる(S2804)。なお、制御部102は、S2804、S2805で算出した感度増幅率を制御データDAとして感度増幅部603に供給し、感度増幅部603は、その制御データDAである感度増幅率で画像データの感度を増幅させる。   FIG. 28 is a flowchart of sensitivity control. First, the control unit 102 obtains an average value of luminances of pixels having an inflection point pixel value A or less from the luminance distribution detected by the luminance distribution detection unit 602 (S2801). Next, the control unit 102 determines whether the average value is larger than the lower limit value Th3 of the target luminance range and less than the upper limit value Th4 of the target luminance range (S2802). If the average value is equal to or lower than the lower limit Th3 (NO in S2802 and YES in S2803), the control unit 102 increases the sensitivity amplification factor (S2805). On the other hand, if the average value is equal to or greater than the upper limit value Th4 (NO in S2802 and NO in S2803), the sensitivity amplification factor is decreased (S2804). The control unit 102 supplies the sensitivity amplification factor calculated in S2804 and S2805 to the sensitivity amplification unit 603 as control data DA, and the sensitivity amplification unit 603 increases the sensitivity of the image data with the sensitivity amplification factor that is the control data DA. Amplify.

ここで、撮像部101が動画像を撮像する場合、制御部102は、1フレームの画像データを撮像する都度、感度増幅率を所定の分解能で少しずつ増減させてゆき、1又は数フレーム後に平均値を目標輝度範囲にすればよい。一方、撮像部101が静止画を撮像する場合、制御部102は、プレ露光で得られた平均値と目標輝度範囲との差に応じて予め定められた増減値で現在の感度増幅率を増減させ、本露光の画像データの感度を増幅させればよい。   Here, when the imaging unit 101 captures a moving image, the control unit 102 gradually increases or decreases the sensitivity amplification factor with a predetermined resolution every time one frame of image data is captured, and averages after one or several frames. The value may be set to the target luminance range. On the other hand, when the imaging unit 101 captures a still image, the control unit 102 increases or decreases the current sensitivity gain by a predetermined increase / decrease value according to the difference between the average value obtained by the pre-exposure and the target luminance range. The sensitivity of the image data for the main exposure may be amplified.

<DR圧縮処理>
次に、DR圧縮処理の詳細について説明する。図29は、圧縮特性を示すグラフであり、縦軸は圧縮部1202に入力される照明成分画像D1202の画像データを示し、横軸は圧縮部1202から出力される圧縮画像D1204の画像データを示している。
<DR compression processing>
Next, details of the DR compression processing will be described. FIG. 29 is a graph illustrating compression characteristics, where the vertical axis represents the image data of the illumination component image D1202 input to the compression unit 1202, and the horizontal axis represents the image data of the compressed image D1204 output from the compression unit 1202. ing.

図30は、輝度分布検出部602により検出された輝度分布を示している。まず、制御部102は、輝度分布検出部602により検出された輝度分布から、平均値B、及び最大画素値Cを検出する。ここで、平均値Bは変曲点画素値A以下の画素の輝度の平均値であり、最大画素値Cは画像データの最大の画素値である。また、変曲点画素値Aは既知である。   FIG. 30 shows the luminance distribution detected by the luminance distribution detection unit 602. First, the control unit 102 detects the average value B and the maximum pixel value C from the luminance distribution detected by the luminance distribution detection unit 602. Here, the average value B is the average value of the luminance of the pixels having the inflection point pixel value A or less, and the maximum pixel value C is the maximum pixel value of the image data. Further, the inflection point pixel value A is known.

次に、制御部102は、検出した変曲点画素値A、平均値B、最大画素値Cを、それぞれ、感度増幅率gで増幅させたときの値が、予め定められた目標となる変曲点画素値A´、平均値B´、及び最大画素値C´となるように圧縮特性fを求める。ここで、制御部102は、例えば、図29に示すグラフ上に、変曲点画素値A、平均値B、最大画素値Cを感度増幅率gで増幅させた値と、変曲点画素値A´、平均値B´、及び最大画素値C´との交点CR1〜CR3をプロットし、交点CR1〜CR3を直線で繋ぐ等の線形補間することで、圧縮特性fを求めればよい。   Next, the control unit 102 changes the detected inflection point pixel value A, the average value B, and the maximum pixel value C with the sensitivity amplification factor g, so that the values that become predetermined targets are changed. The compression characteristic f is obtained so as to obtain the curve pixel value A ′, the average value B ′, and the maximum pixel value C ′. Here, for example, on the graph shown in FIG. 29, the control unit 102 amplifies the inflection point pixel value A, the average value B, and the maximum pixel value C with the sensitivity amplification factor g, and the inflection point pixel value. The compression characteristics f may be obtained by plotting the intersection points CR1 to CR3 with A ′, the average value B ′, and the maximum pixel value C ′ and linearly interpolating the intersection points CR1 to CR3 with a straight line.

そして、制御部102は算出した圧縮特性fを制御データDBとしてDR圧縮部604に供給する。なお、感度増幅率gは、制御部102により制御データDAとして算出された感度増幅率である。ここで、感度増幅率gで感度増幅させた値を採用するのは、DR圧縮部604に入力される画像データは感度増幅処理後の画像データであるからである。   Then, the control unit 102 supplies the calculated compression characteristic f to the DR compression unit 604 as a control data DB. Note that the sensitivity amplification factor g is a sensitivity amplification factor calculated as control data DA by the control unit 102. Here, the reason why the sensitivity-amplified value g is used is that the image data input to the DR compression unit 604 is image data after sensitivity amplification processing.

特性変換部601が対数特性に変換する場合、圧縮特性fは下記の条件を満たす。   When the characteristic conversion unit 601 converts to a logarithmic characteristic, the compression characteristic f satisfies the following condition.

A´=f(A+g)
B´=f(B+g)
C´=f(C+g)
A '= f (A + g)
B ′ = f (B + g)
C ′ = f (C + g)

特性変換部601が線形特性に変換する場合、圧縮特性fは下記の条件を満たす。   When the characteristic conversion unit 601 converts to a linear characteristic, the compression characteristic f satisfies the following condition.

A´=f(A×g)
B´=f(B×g)
C´=f(C×g)
A ′ = f (A × g)
B ′ = f (B × g)
C ′ = f (C × g)

このように、平均値B、最大画素値Cを制御点として圧縮特性fを求めることで、画像データの平均値と最大画素値とを常に同じレベルにすることができる。また、変曲点画素値Aを更に制御点として加えて圧縮特性fを求めることにより、高SN比である線形領域と、高ダイナミックレンジである対数領域とを異なる最適な特性で出力することが可能となる。なお、上記説明では、制御点として変曲点画素値Aを考慮して、圧縮特性fを求めたが、変曲点画素値Aを考慮せずに圧縮特性fを求めてもよい。   In this way, by obtaining the compression characteristic f using the average value B and the maximum pixel value C as control points, the average value and the maximum pixel value of the image data can always be at the same level. Further, by adding the inflection point pixel value A as a control point to obtain the compression characteristic f, it is possible to output the linear region having a high S / N ratio and the logarithmic region having a high dynamic range with different optimum characteristics. It becomes possible. In the above description, the compression characteristic f is obtained in consideration of the inflection point pixel value A as the control point. However, the compression characteristic f may be obtained without considering the inflection point pixel value A.

以上説明したように、本実施の形態による撮像装置によれば、撮影シーンの輝度分布に応じて、露光時間及び変曲点画素値が制御されるため、撮像シーンに関わらず、安定した高SN比の画像データを得ることが可能となる。   As described above, according to the imaging apparatus according to the present embodiment, the exposure time and the inflection point pixel value are controlled according to the luminance distribution of the photographic scene. Ratio image data can be obtained.

また、変曲点画素値以下の画素の輝度の平均値が目標輝度範囲になるように感度増幅率が算出されて画像データの感度が増幅されるため、撮像シーンによらず安定した出力レベルの画像データを得ることができる。   In addition, since the sensitivity amplification factor is calculated so that the average value of the luminance of pixels below the inflection point pixel value falls within the target luminance range and the sensitivity of the image data is amplified, the output level is stable regardless of the imaging scene. Image data can be obtained.

更に、輝度分布の所定の制御点と感度増幅率とに基づいて圧縮特性が算出されているため、高SN比であると同時に、出力レベルが安定した、飽和の少ない画像データを得ることができる。   Further, since the compression characteristic is calculated based on a predetermined control point of the luminance distribution and the sensitivity amplification factor, it is possible to obtain image data with a high saturation ratio, a stable output level, and low saturation. .

(実施の形態2)
次に、本発明の実施の形態2による撮像装置について説明する。本実施の形態では画素構成は実施の形態1と同じであり、1フレーム期間中に異なる露光時間で被写体を複数回撮像し、それぞれの露光時間における画像データを出力することで、感度の異なる複数の光電変換特性で被写体を撮像する。なお、本実施の形態において実施の形態1と同じものは同一の符号を付して説明を省く。
(Embodiment 2)
Next, an imaging apparatus according to Embodiment 2 of the present invention will be described. In this embodiment, the pixel configuration is the same as that of the first embodiment, and a subject is imaged a plurality of times with different exposure times during one frame period, and image data at each exposure time is output. The subject is imaged with the photoelectric conversion characteristics. In addition, in this Embodiment, the same thing as Embodiment 1 attaches | subjects the same code | symbol, and abbreviate | omits description.

図3は、本発明の実施の形態2における画素31aが持つ光電変換特性を示したグラフであり、縦軸は画素値を線形で示し、横軸は光量を線形で示している。   FIG. 3 is a graph showing the photoelectric conversion characteristics of the pixel 31a according to the second embodiment of the present invention. The vertical axis indicates the pixel value linearly, and the horizontal axis indicates the light quantity linearly.

図3の例では、1フレーム期間中に3つの露光時間が設定され3種類の画像データが撮像されている。なお、これら3つの画像データの光電変換特性はいずれも線形特性である。これら3つの画像データの光電変換特性は、301→302→303の順で傾きが緩やかになり感度が減少している。これは、301→302→303の順で露光時間が短く設定されているからである。   In the example of FIG. 3, three exposure times are set during one frame period, and three types of image data are captured. Note that the photoelectric conversion characteristics of these three image data are all linear characteristics. The photoelectric conversion characteristics of these three pieces of image data have a gentle slope in the order of 301 → 302 → 303, and the sensitivity is reduced. This is because the exposure time is set shorter in the order of 301 → 302 → 303.

図17(a)は、1フレーム期間中に第1、第2露光時間を設定し、第1、第2画像データを取得した場合のそれぞれの画像データの光電変換特性を示している。図17(b)は図17(a)の第1、第2画像データを合成した合成画像データの光電変換特性を示している。なお、図17(a)、(b)において、縦軸、横軸は図3と同じである。   FIG. 17A shows the photoelectric conversion characteristics of the respective image data when the first and second exposure times are set during one frame period and the first and second image data are acquired. FIG. 17B shows the photoelectric conversion characteristics of the combined image data obtained by combining the first and second image data shown in FIG. 17A and 17B, the vertical axis and the horizontal axis are the same as those in FIG.

多重露光では、撮像部101において異なる2つ以上の露光時間にて撮像を行い、撮像された画像データを合成することにより高ダイナミックレンジの画像データを撮像する。   In multiple exposure, imaging is performed at two or more different exposure times in the imaging unit 101, and image data with a high dynamic range is captured by combining the captured image data.

図17の例では第1、第2露光時間で2回の撮像が行われ、第1露光時間よりも第2露光時間のほうが露光時間が短く設定されている。   In the example of FIG. 17, imaging is performed twice in the first and second exposure times, and the second exposure time is set shorter than the first exposure time.

第1、第2画像データの合成処理は、例えば、所定の変曲点画素値A17以下の領域では第1画像データをそのまま合成画像データとして採用し、変曲点画素値A17より大きい領域では第2画像データにオフセットレベルSSを加えた画像データを合成画像データとして採用することで行われる。ここで、オフセットレベルSSは、光量a17における第1画像データと光量a17における第2画像データとの差分を採用することができる。   The first image data and the second image data are combined, for example, in the area below a predetermined inflection point pixel value A17, the first image data is directly used as the composite image data, and in the area larger than the inflection point pixel value A17. The image data obtained by adding the offset level SS to the two image data is used as the composite image data. Here, as the offset level SS, a difference between the first image data at the light amount a17 and the second image data at the light amount a17 can be adopted.

図33は、本発明の実施の形態2による画像処理部103のブロック図である。本実施の形態では画像処理部103は特性変換部601に代えて合成部3301が設けられている。合成部3301は、上記の合成処理を行う。合成処理以降の処理は実施の形態1と同じであり、変曲点画素値A17が実施の形態1の変曲点画素値Aに相当する。すなわち、輝度分布検出部602は、合成画像データにおける輝度分布を検出し、評価データとして制御部102に供給する。制御部102は、変曲点画素値A17以下の画素の累積度数を検出し、累積度数が所定の度数許容範囲に入るように露光時間を制御する。   FIG. 33 is a block diagram of the image processing unit 103 according to the second embodiment of the present invention. In this embodiment, the image processing unit 103 includes a synthesis unit 3301 instead of the characteristic conversion unit 601. The synthesizing unit 3301 performs the above synthesizing process. The processing after the synthesis processing is the same as that in the first embodiment, and the inflection point pixel value A17 corresponds to the inflection point pixel value A in the first embodiment. That is, the luminance distribution detection unit 602 detects the luminance distribution in the composite image data and supplies it to the control unit 102 as evaluation data. The control unit 102 detects the cumulative frequency of pixels having an inflection point pixel value A17 or less, and controls the exposure time so that the cumulative frequency falls within a predetermined frequency allowable range.

図19は、本発明の実施の形態2による撮像装置が露光時間を制御する際の処理を示すフローチャートである。S1901〜S1903は図15のS1501〜S1503と同じである。   FIG. 19 is a flowchart showing processing when the imaging apparatus according to Embodiment 2 of the present invention controls the exposure time. S1901 to S1903 are the same as S1501 to S1503 in FIG.

変曲点画素値A17以下の画素の累積度数が下限値Th1以下の場合(S1903でYES)、制御部102は、第1露光時間を短くする(S1905)。これにより、第1画像データの感度が減少し、変曲点画素値A17以下の画素の累積度数が増大する。   When the cumulative frequency of the pixels having the inflection point pixel value A17 or less is equal to or less than the lower limit value Th1 (YES in S1903), the control unit 102 shortens the first exposure time (S1905). As a result, the sensitivity of the first image data is reduced, and the cumulative frequency of pixels having an inflection point pixel value A17 or less is increased.

一方、変曲点画素値A17以下の画素の累積度数が上限値Th2以上の場合(S1903でNO)、制御部102は第1露光時間を長くする(S1904)。これにより、第1画像データの感度が増大し、変曲点画素値A17以下の画素の累積度数が減少する。   On the other hand, when the cumulative frequency of pixels having the inflection point pixel value A17 or less is equal to or greater than the upper limit value Th2 (NO in S1903), the control unit 102 increases the first exposure time (S1904). As a result, the sensitivity of the first image data is increased, and the cumulative frequency of pixels having an inflection point pixel value A17 or less is decreased.

次に、制御部102は、第1露光時間の制御に連動させて、第2露光時間を制御する(S1906)。この場合、制御部102は、例えば、第1露光時間を1.5倍に設定した場合、第2露光時間も1.5倍に設定すればよい。   Next, the control unit 102 controls the second exposure time in conjunction with the control of the first exposure time (S1906). In this case, for example, when the first exposure time is set to 1.5 times, the control unit 102 may set the second exposure time to 1.5 times.

図18は、第1、第2画像データの露光時間が制御される様子を説明するグラフであり、縦軸、横軸は図17と同じである。例えば、第1露光時間がα倍に長くされ第1画像データの光電変換特性が1801→1801´に変化したとする。すると、第2露光時間もα倍にされて第2画像データの光電変換特性は、1802→1802´に変化する。   FIG. 18 is a graph illustrating how the exposure times of the first and second image data are controlled, and the vertical and horizontal axes are the same as those in FIG. For example, it is assumed that the first exposure time is increased α times and the photoelectric conversion characteristic of the first image data changes from 1801 to 1801 ′. Then, the second exposure time is also multiplied by α, and the photoelectric conversion characteristic of the second image data changes from 1802 to 1802 ′.

一方、第1露光時間が1/α倍に短くされ、第1画像データの光電変換特性が1801´→1801に変化したとする。すると、第2露光時間も1/α倍に短くされ、第2画像データの光電変換特性は、1802´→1802に変化する。これにより、ダイナミックレンジを維持すると同時に、高SN比な画像データを得ることができる。   On the other hand, it is assumed that the first exposure time is shortened to 1 / α times, and the photoelectric conversion characteristic of the first image data changes from 1801 ′ to 1801. Then, the second exposure time is also shortened to 1 / α times, and the photoelectric conversion characteristic of the second image data changes from 1802 ′ to 1802. Thereby, it is possible to obtain image data with a high S / N ratio while maintaining the dynamic range.

このように、実施の形態2の撮像装置によれば、多重露光方式を採用した場合においても、実施の形態1と同様の効果を得ることができる。   As described above, according to the imaging apparatus of the second embodiment, even when the multiple exposure method is adopted, the same effect as that of the first embodiment can be obtained.

なお、上記説明では、多重露光として2つの画像データを撮像する場合を例に挙げて説明したが、本発明はこれに限定されず、3つ以上の画像データを撮像してもよい。この場合、露光時間が最大の画像データを第1画像データとし、それ以外の複数の画像データを第2画像データとして、これらの画像データを1枚の画像データに合成すればよい。   In the above description, the case where two image data are captured as multiple exposure has been described as an example. However, the present invention is not limited to this, and three or more image data may be captured. In this case, the image data having the longest exposure time is set as the first image data, and a plurality of other image data is set as the second image data, and these image data may be combined into one piece of image data.

(変形例1)
図31は、実施の形態1、2における画像処理部103の変形例を示すブロック図である。実施の形態1、2では、輝度分布検出部602は、特性変換部601(合成部3301)と感度増幅部603との間に設けられていたが、図31(a)に示すように、感度増幅部603とDR圧縮部604との間に設けてもよい。この場合、感度増幅部603は前フレームの画像データの輝度分布から算出された感度増幅率(制御データDA)を用いて現フレームの画像データの感度を増幅する。そして、輝度分布検出部602は、感度増幅部603により感度が増幅された画像データから輝度分布を検出することになる。
(Modification 1)
FIG. 31 is a block diagram illustrating a modification of the image processing unit 103 according to the first and second embodiments. In the first and second embodiments, the luminance distribution detection unit 602 is provided between the characteristic conversion unit 601 (synthesis unit 3301) and the sensitivity amplification unit 603. However, as shown in FIG. You may provide between the amplification part 603 and DR compression part 604. FIG. In this case, the sensitivity amplification unit 603 amplifies the sensitivity of the image data of the current frame using the sensitivity amplification factor (control data DA) calculated from the luminance distribution of the image data of the previous frame. Then, the luminance distribution detection unit 602 detects the luminance distribution from the image data whose sensitivity has been amplified by the sensitivity amplification unit 603.

また、図31(b)に示すように、特性変換部601(合成部3301)と感度増幅部603との間に輝度分布検出部6021を設け、且つ、感度増幅部603とDR圧縮部604との間にも輝度分布検出部6022を設けてもよい。この場合、制御部102は、輝度分布検出部6021により検出された輝度分布を用いて、露光時間及び感度増幅率(制御データDA)を算出し、感度増幅部603に現フレームの画像データの感度を、算出した感度増幅率で増幅させればよい。   Further, as shown in FIG. 31B, a luminance distribution detection unit 6021 is provided between the characteristic conversion unit 601 (synthesis unit 3301) and the sensitivity amplification unit 603, and the sensitivity amplification unit 603 and the DR compression unit 604 are provided. A luminance distribution detector 6022 may be provided between the two. In this case, the control unit 102 calculates the exposure time and the sensitivity amplification factor (control data DA) using the luminance distribution detected by the luminance distribution detection unit 6021, and sends the sensitivity of the image data of the current frame to the sensitivity amplification unit 603. May be amplified at the calculated sensitivity amplification factor.

また、制御部102は、輝度分布検出部6022により検出された輝度分布を用いて圧縮特性f(制御データDB)を求め、DR圧縮部604に現フレームの画像データに対して圧縮処理を行わせればよい。この場合、制御部102は、図29で説明したように、感度増幅率gを用いずに、輝度分布検出部6022から供給された輝度分布から平均値B、及び最大画素値Cを検出し、検出した平均値B及び最大画素値C並びに変曲点画素値Aと、目標とする平均値B´、及び最大画素値C´とを図29に示すグラフにプロットして線形補間することで圧縮特性fを算出すればよい。   Further, the control unit 102 obtains a compression characteristic f (control data DB) using the luminance distribution detected by the luminance distribution detection unit 6022, and causes the DR compression unit 604 to perform compression processing on the image data of the current frame. That's fine. In this case, as described in FIG. 29, the control unit 102 detects the average value B and the maximum pixel value C from the luminance distribution supplied from the luminance distribution detection unit 6022 without using the sensitivity amplification factor g. The detected average value B, maximum pixel value C, inflection point pixel value A, target average value B ′, and maximum pixel value C ′ are plotted on a graph shown in FIG. 29 and compressed by linear interpolation. The characteristic f may be calculated.

(変形例2)
実施の形態1,2では、入出力特性変換部の一例としてDR圧縮部604を画像処理部103に設けた。変形例2では、入出力特性部としてDR圧縮部604に代えてガンマ補正部を採用したことを特徴とする。
(Modification 2)
In the first and second embodiments, the DR compression unit 604 is provided in the image processing unit 103 as an example of the input / output characteristic conversion unit. The modification 2 is characterized in that a gamma correction unit is employed instead of the DR compression unit 604 as the input / output characteristic unit.

図32は、ガンマ補正部がガンマ補正に使用する階調特性hを示したグラフであり、詳細は図29と同じである。   FIG. 32 is a graph showing the gradation characteristic h used by the gamma correction unit for gamma correction, and the details are the same as FIG.

ガンマ補正部は、表示器の表示特性に適合するように入力された画像データの入出力特性を調整するものであるが、基本的な考え方はDR圧縮部604と同じである。すなわち、ガンマ補正部は、制御部102から階調特性hが制御データDBとして供給され、階調特性hにしたがって、入力された画像データの入出力特性を変換する。   The gamma correction unit adjusts the input / output characteristics of the input image data so as to match the display characteristics of the display, but the basic concept is the same as that of the DR compression unit 604. That is, the gamma correction unit is supplied with the gradation characteristic h from the control unit 102 as the control data DB, and converts the input / output characteristics of the input image data according to the gradation characteristic h.

ここで、制御部102は、DR圧縮部604と同様、輝度分布において、変曲点画素値Aと、変曲点画素値A以下の画素値の平均値Bと、最大画素値Cとを目標とする変曲点画素値A´、平均値B´、最大画素値C´となるように、階調特性を求める。ここで、制御部102は、階調特性hを求める場合、目標とする変曲点画素値A´、平均値B´、最大画素値C´が階調特性hを求めるうえで適した値となるものを採用すればよい。   Here, similarly to the DR compression unit 604, the control unit 102 targets the inflection point pixel value A, the average value B of the pixel values below the inflection point pixel value A, and the maximum pixel value C in the luminance distribution. The gradation characteristics are obtained so that the inflection point pixel value A ′, the average value B ′, and the maximum pixel value C ′ are obtained. Here, when the control unit 102 obtains the gradation characteristic h, the target inflection point pixel value A ′, average value B ′, and maximum pixel value C ′ are values suitable for obtaining the gradation characteristic h. What should be adopted.

101 撮像部
102 制御部
103 画像処理部
601 特性変換部
602 輝度分布検出部
603 感度増幅部
604 DR圧縮部
901 ヒストグラム検出部
1001 加減算部
1201 照明成分抽出部
1202 圧縮部
1203 反射率成分抽出部
1204 合成部
DESCRIPTION OF SYMBOLS 101 Image pick-up part 102 Control part 103 Image processing part 601 Characteristic conversion part 602 Luminance distribution detection part 603 Sensitivity amplification part 604 DR compression part 901 Histogram detection part 1001 Addition / subtraction part 1201 Illumination component extraction part 1202 Compression part 1203 Reflectance component extraction part 1204 Composition Part

Claims (10)

第1光電変換特性と、前記第1光電変換特性よりも感度の低い第2光電変換特性とで被写体を撮像する撮像部と、
前記撮像部で撮像された画像の輝度分布を検出する輝度分布検出部と、
前記撮像部の露光時間を制御する制御部とを備え、
前記制御部は、前記輝度分布に基づき、前記第1光電変換特性により撮像されている画素の累積度数を検出し、当該累積度数が所定の度数許容範囲を満たすように前記露光時間を制御する撮像装置。
An imaging unit that images a subject with a first photoelectric conversion characteristic and a second photoelectric conversion characteristic having a lower sensitivity than the first photoelectric conversion characteristic;
A luminance distribution detector that detects a luminance distribution of an image captured by the imaging unit;
A control unit for controlling the exposure time of the imaging unit,
The control unit detects an accumulated frequency of pixels imaged by the first photoelectric conversion characteristic based on the luminance distribution, and controls the exposure time so that the accumulated frequency satisfies a predetermined frequency allowable range. apparatus.
前記第1光電変換特性は線形特性であり、
前記第2光電変換特性は対数特性であり、
前記線形特性及び対数特性を基準光電変換特性に変換する特性変換部を更に備え、
前記輝度分布検出部は、前記基準光電変換特性に変換された画像の輝度分布を検出する請求項1記載の撮像装置。
The first photoelectric conversion characteristic is a linear characteristic,
The second photoelectric conversion characteristic is a logarithmic characteristic,
A characteristic converter that converts the linear characteristic and logarithmic characteristic into a reference photoelectric conversion characteristic;
The imaging apparatus according to claim 1, wherein the luminance distribution detection unit detects a luminance distribution of an image converted into the reference photoelectric conversion characteristic.
前記制御部は、前記線形特性と前記対数特性との変曲点の画素値が前記露光時間の制御の前後で一定となるように前記変曲点の画素値を調整する請求項2記載の撮像装置。   The imaging unit according to claim 2, wherein the control unit adjusts the pixel value of the inflection point so that the pixel value of the inflection point between the linear characteristic and the logarithmic characteristic is constant before and after the control of the exposure time. apparatus. 前記撮像部は、多重露光により前記被写体を撮像して前記第1、第2光電変換特性の第1、第2画像を取得し、
所定光量以上の画像が前記第2画像となるように前記第1、第2画像を合成する合成部を更に備え、
前記輝度分布検出部は、前記合成部により合成された画像の輝度分布を検出する請求項1記載の撮像装置。
The imaging unit captures the subject by multiple exposure to obtain first and second images of the first and second photoelectric conversion characteristics;
A synthesis unit that synthesizes the first and second images so that an image having a predetermined light quantity or more becomes the second image;
The imaging apparatus according to claim 1, wherein the luminance distribution detection unit detects a luminance distribution of the image synthesized by the synthesis unit.
前記制御部は、前記第1光電変換特性の露光時間の制御に連動させて前記第2光電変換特性の露光時間を制御する請求項4記載の撮像装置。   The imaging apparatus according to claim 4, wherein the control unit controls the exposure time of the second photoelectric conversion characteristic in conjunction with the control of the exposure time of the first photoelectric conversion characteristic. 前記制御部は、前記輝度分布検出部により検出された輝度分布に基づき、前記基準光電変換特性に変換された画像の明るさを一定の明るさにするための感度増幅率を算出し、
前記感度増幅率で前記画像の感度を増幅する感度増幅部を更に備える請求項1〜5のいずれかに記載の撮像装置。
The control unit calculates a sensitivity amplification factor for making the brightness of the image converted into the reference photoelectric conversion characteristic constant based on the luminance distribution detected by the luminance distribution detection unit,
The imaging apparatus according to claim 1, further comprising a sensitivity amplification unit that amplifies the sensitivity of the image with the sensitivity amplification factor.
前記制御部は、前記輝度分布に基づき、変曲点の画素値以下の画素の画素値の平均値を求め、求めた平均値が所定の目標輝度範囲に入るように前記感度増幅率を設定する請求項6記載の撮像装置。   The control unit obtains an average value of pixel values of pixels equal to or less than the pixel value of the inflection point based on the luminance distribution, and sets the sensitivity amplification factor so that the obtained average value falls within a predetermined target luminance range. The imaging device according to claim 6. 前記制御部は、前記輝度分布において所定の制御点を検出し、前記感度制御部により前記感度増幅率で増幅された画像を入力画像とし、前記入力画像の前記制御点における画素値が規定値になるように前記入力画像の入出力特性を変換する変換特性を求め、
前記変換特性で前記入力画像の入出力特性を変換する入出力特性変換部を更に備える請求項1〜7のいずれかに記載の撮像装置。
The control unit detects a predetermined control point in the luminance distribution, uses the image amplified by the sensitivity control unit with the sensitivity amplification factor as an input image, and sets a pixel value at the control point of the input image to a specified value. To obtain a conversion characteristic for converting the input / output characteristics of the input image,
The imaging apparatus according to claim 1, further comprising an input / output characteristic conversion unit that converts an input / output characteristic of the input image with the conversion characteristic.
前記制御点は、変曲点の画素値以下の画素の画素値の平均値と、最大画素値とを少なくとも含む請求項8記載の撮像装置。   The imaging device according to claim 8, wherein the control point includes at least an average value of pixel values of pixels equal to or less than a pixel value of an inflection point and a maximum pixel value. 前記制御部は、前記輝度分布に基づき撮像シーンを判定し、前記撮像シーンが夜間である場合、撮像シーンが昼間である場合よりも前記度数許容範囲を高く設定する請求項1〜9のいずれかに記載の撮像装置。   The said control part determines an imaging scene based on the said brightness distribution, and when the said imaging scene is nighttime, the said frequency tolerance range is set higher than the case where an imaging scene is daytime. The imaging device described in 1.
JP2012139561A 2012-06-21 2012-06-21 Imaging apparatus Pending JP2014007437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012139561A JP2014007437A (en) 2012-06-21 2012-06-21 Imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012139561A JP2014007437A (en) 2012-06-21 2012-06-21 Imaging apparatus

Publications (1)

Publication Number Publication Date
JP2014007437A true JP2014007437A (en) 2014-01-16

Family

ID=50104843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012139561A Pending JP2014007437A (en) 2012-06-21 2012-06-21 Imaging apparatus

Country Status (1)

Country Link
JP (1) JP2014007437A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015173393A (en) * 2014-03-12 2015-10-01 株式会社リコー Imaging device and electronic apparatus
WO2016113961A1 (en) * 2015-01-16 2016-07-21 三菱電機株式会社 Image processing device and method, program, and recording medium
JP2018077569A (en) * 2016-11-07 2018-05-17 株式会社デンソー Image processing apparatus
JP2020123930A (en) * 2019-01-31 2020-08-13 キヤノン株式会社 Imaging device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015173393A (en) * 2014-03-12 2015-10-01 株式会社リコー Imaging device and electronic apparatus
WO2016113961A1 (en) * 2015-01-16 2016-07-21 三菱電機株式会社 Image processing device and method, program, and recording medium
JPWO2016113961A1 (en) * 2015-01-16 2017-08-03 三菱電機株式会社 Image processing apparatus and method, program, and recording medium
GB2549642A (en) * 2015-01-16 2017-10-25 Mitsubishi Electric Corp Image processing device and method, program, and recording medium
US10015410B2 (en) 2015-01-16 2018-07-03 Mitsubishi Electric Corporation Image processing device and method, program, and record medium for generating wide dynamic range images
GB2549642B (en) * 2015-01-16 2021-02-03 Mitsubishi Electric Corp Image processing device and method, program, and record medium
JP2018077569A (en) * 2016-11-07 2018-05-17 株式会社デンソー Image processing apparatus
JP2020123930A (en) * 2019-01-31 2020-08-13 キヤノン株式会社 Imaging device
JP7218193B2 (en) 2019-01-31 2023-02-06 キヤノン株式会社 Imaging device

Similar Documents

Publication Publication Date Title
US7948538B2 (en) Image capturing apparatus, image capturing method, exposure control method, and program
US9172889B2 (en) Imaging systems and methods for generating auto-exposed high-dynamic-range images
US8885093B2 (en) Image pickup apparatus, image pickup method, exposure control method, and program
US8194153B2 (en) Imaging apparatus, imaging method and program
US7020353B1 (en) Extended dynamic range imaging system and method
JP4622629B2 (en) Imaging device
US8988561B2 (en) Imaging apparatus having temperature sensor within image sensor wherein apparatus outputs an image whose quality does not degrade if temperature increases within image sensor
US10791288B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
US20100231748A1 (en) Imaging device
JP5645505B2 (en) Imaging apparatus and control method thereof
US20070182845A1 (en) Auto exposure for digital imagers
US20140063294A1 (en) Image processing device, image processing method, and solid-state imaging device
KR20080076004A (en) Image pickup device and method of extending dynamic range thereof
US10158811B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
US10924687B2 (en) Adaptive generation of a high dynamic range image of a scene, on the basis of a plurality of images obtained by non-destructive reading of an image sensor
JP2007082181A (en) Imaging apparatus and image processing method
US9584732B2 (en) Exposure controller
JP3478452B2 (en) Backlight detection method, backlight detection device, and imaging camera
JP2014007437A (en) Imaging apparatus
US7580076B2 (en) Devices and methods for calculating pixel values representative of a scene
US11496688B2 (en) Image capturing apparatus, control method of image capturing apparatus which determines charge accumulation time based on histogram of a pixel value for each area
JP2020096282A (en) Imaging apparatus, control method of the same, and program
JP2020071809A (en) Image processing device and image processing method
JP2010118876A (en) Imaging apparatus, and control method thereof
US20230078758A1 (en) Apparatus, image processing method to combine images based on flicker, and storage medium