JP2002281343A - Black level correcting device - Google Patents

Black level correcting device

Info

Publication number
JP2002281343A
JP2002281343A JP2001349204A JP2001349204A JP2002281343A JP 2002281343 A JP2002281343 A JP 2002281343A JP 2001349204 A JP2001349204 A JP 2001349204A JP 2001349204 A JP2001349204 A JP 2001349204A JP 2002281343 A JP2002281343 A JP 2002281343A
Authority
JP
Japan
Prior art keywords
black level
circuit
average value
data
correction
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.)
Granted
Application number
JP2001349204A
Other languages
Japanese (ja)
Other versions
JP3808349B2 (en
Inventor
Hitoshi Kubota
均 久保田
Narihiro Matoba
成浩 的場
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2001349204A priority Critical patent/JP3808349B2/en
Publication of JP2002281343A publication Critical patent/JP2002281343A/en
Application granted granted Critical
Publication of JP3808349B2 publication Critical patent/JP3808349B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a black level correcting device with high versatility, by which abrupt change of black level between the respective images are prevented and various black level compensating operations are selected without increasing the circuit scale. SOLUTION: Black level reference data is updated from the average value of the black levels per frame or line and black level reference data at the previous time, a black level of a valid image data is corrected by using the black level reference data after update.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、撮像素子により
撮像された画像データの黒レベルを補正する黒レベル補
正装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a black level correction device for correcting a black level of image data captured by an image sensor.

【0002】[0002]

【従来の技術】半導体デバイスでは光を遮断した状態で
も時間の経過とともに電荷が蓄積されてくる。このよう
に光に関係なく蓄積される電荷を暗電流という。この暗
電流を電気的に補正して除去するために、センサ感光部
の一部に遮光部を設けて、暗電流の基準値を検出し、こ
の基準値をクランプしてここからの変化量で信号成分の
みを得る方法が一般的に用いられている。
2. Description of the Related Art In a semiconductor device, charges are accumulated with the passage of time even in a state where light is blocked. The charge accumulated in this way regardless of light is called dark current. In order to electrically correct and remove this dark current, a light-shielding portion is provided in a part of the sensor photosensitive portion, a reference value of the dark current is detected, and this reference value is clamped and the amount of change from this is detected. A method of obtaining only a signal component is generally used.

【0003】図23は例えば特開昭64−18370号
公報に示された従来の黒レベル補正装置を示す構成図で
あり、図において、1は撮像素子により撮像された画像
データをアナログデータからディジタルデータに変換す
るA/D変換器、2はゲート、3は撮像素子の各画素に
対応する黒レベル基準データを記憶するメモリ、4はA
/D変換器1によりディジタルデータに変換された画像
データから黒レベル基準データを減算して、当該画像デ
ータの黒レベルを補正する減算器である。
FIG. 23 is a block diagram showing a conventional black level correction apparatus disclosed in, for example, Japanese Patent Application Laid-Open No. 64-18370. In FIG. 23, reference numeral 1 denotes an image data imaged by an image sensor from analog data to digital data. A / D converter for converting to data, 2 for a gate, 3 for a memory for storing black level reference data corresponding to each pixel of the image sensor, 4 for A
The subtracter subtracts black level reference data from the image data converted into digital data by the / D converter 1 to correct the black level of the image data.

【0004】次に動作について説明する。メモリ3に
は、予め撮像素子の各画素に対応する黒レベル基準デー
タが記憶されており、A/D変換器1が撮像素子により
撮像された画像データをアナログデータからディジタル
データに変換すると、各画素に対応する黒レベル基準デ
ータを減算器4に出力する。
Next, the operation will be described. Black level reference data corresponding to each pixel of the image sensor is stored in the memory 3 in advance. When the A / D converter 1 converts image data captured by the image sensor from analog data to digital data, The black level reference data corresponding to the pixel is output to the subtractor 4.

【0005】減算器4は、A/D変換器1によりディジ
タルデータに変換された画像データから黒レベル基準デ
ータを減算して、当該画像データの黒レベルを補正す
る。これにより、各画素の黒レベルのばらつきを解消す
ることができる。
A subtractor 4 subtracts black level reference data from the image data converted into digital data by the A / D converter 1 to correct the black level of the image data. Thereby, it is possible to eliminate the variation in the black level of each pixel.

【0006】[0006]

【発明が解決しようとする課題】従来の黒レベル補正装
置は以上のように構成されているので、各画素の黒レベ
ルのばらつきを解消することができる。しかし、例え
ば、ディジタルスチルカメラのように連続して画像デー
タを得るような場合、各画像間の黒レベルが急激に変化
することがあるが、急激な変化を防止することができな
い課題があった。また、黒レベルの補正方式が常に同一
方式であり、黒レベル補正装置の汎用性を高めることが
できない課題があった。
Since the conventional black level correction device is configured as described above, it is possible to eliminate the variation in the black level of each pixel. However, for example, in a case where image data is continuously obtained as in a digital still camera, the black level between the images may change suddenly, but there is a problem that the sudden change cannot be prevented. . In addition, there is a problem that the black level correction method is always the same, and the versatility of the black level correction device cannot be improved.

【0007】この発明は上記のような課題を解決するた
めになされたもので、各画像間の黒レベルの急峻な変化
を防止することができる黒レベル補正装置を得ることを
目的とする。また、この発明は回路規模の増大を招くこ
となく、様々な黒レベル補正動作を選択することができ
る汎用性の高い黒レベル補正装置を得ることを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and has as its object to provide a black level correction device capable of preventing a sharp change in black level between images. It is another object of the present invention to provide a highly versatile black level correction device capable of selecting various black level correction operations without increasing the circuit scale.

【0008】[0008]

【課題を解決するための手段】この発明に係る黒レベル
補正装置は、平均値算出手段により算出された平均値と
前回の黒レベル基準データから当該黒レベル基準データ
を更新し、更新後の黒レベル基準データを用いて画像デ
ータの黒レベルを補正するようにしたものである。
A black level correction apparatus according to the present invention updates the black level reference data from the average value calculated by the average value calculation means and the previous black level reference data, and updates the updated black level reference data. The black level of the image data is corrected using the level reference data.

【0009】この発明に係る黒レベル補正装置は、1ラ
イン当たりの黒レベルのデータの平均値を算出するよう
にしたものである。
A black level correction device according to the present invention calculates an average value of black level data per line.

【0010】この発明に係る黒レベル補正装置は、1フ
レーム当たりの黒レベルのデータの平均値を算出するよ
うにしたものである。
[0010] A black level correction apparatus according to the present invention calculates an average value of black level data per frame.

【0011】この発明に係る黒レベル補正装置は、1ラ
イン当たりの黒レベルのデータの平均値を算出するとと
もに、1フレーム当たりの黒レベルのデータの平均値を
算出し、何れか一方の平均値を選択して更新手段に出力
するようにしたものである。
The black level correction apparatus according to the present invention calculates an average value of black level data per line, calculates an average value of black level data per frame, and calculates one of the average values. Is selected and output to the updating means.

【0012】この発明に係る黒レベル補正装置は、前回
の黒レベル基準データに第1の重み付け値を乗算する一
方、平均値算出手段により算出された平均値に第1の重
み付け値より小さい第2の重み付け値を乗算し、双方の
乗算結果を相互に加算して新たな黒レベル基準データを
求めるようにしたものである。
The black level correction device according to the present invention multiplies the previous black level reference data by the first weighting value, while multiplying the average value calculated by the average value calculating means by the second weighting value smaller than the first weighting value. , And the results of the multiplication are added to each other to obtain new black level reference data.

【0013】この発明に係る黒レベル補正装置は、光学
的黒領域内の第1の領域に属する黒レベルのデータの平
均値を算出するとともに、光学的黒領域内の第2の領域
に属する黒レベルのデータの平均値を算出するようにし
たものである。
A black level correction device according to the present invention calculates an average value of black level data belonging to a first region in an optical black region, and calculates a black value belonging to a second region in the optical black region. The average value of the level data is calculated.

【0014】この発明に係る黒レベル補正装置は、平均
値算出手段により算出された何れか一方の平均値又は更
新手段による更新後の黒レベル基準データを選択して補
正手段に出力する第1の選択手段を設けたものである。
The black level correction apparatus according to the present invention selects the one of the average values calculated by the average value calculation means or the black level reference data updated by the update means and outputs the selected data to the correction means. A selection means is provided.

【0015】この発明に係る黒レベル補正装置は、固定
値記憶手段により記憶されている固定値又は更新手段に
よる更新後の黒レベル基準データを選択して補正手段に
出力する第2の選択手段を設けたものである。
The black level correcting device according to the present invention includes a second selecting means for selecting the fixed value stored in the fixed value storing means or the black level reference data updated by the updating means and outputting the same to the correcting means. It is provided.

【0016】この発明に係る黒レベル補正装置は、初期
値記憶手段により記憶されている初期値又は更新手段に
よる更新後の黒レベル基準データを選択して補正手段に
出力する第3の選択手段を設けたものである。
The black level correcting apparatus according to the present invention includes a third selecting means for selecting the initial value stored in the initial value storing means or the black level reference data updated by the updating means and outputting the selected data to the correcting means. It is provided.

【0017】この発明に係る黒レベル補正装置は、光学
的黒領域の水平画素数を設定するとともに、シフト演算
のシフト回数を設定する設定回路と、その設定回路によ
り設定された水平画素数分だけ黒レベルのデータを積分
し、その積分結果を当該シフト回数分だけシフト演算す
る演算回路とから平均値算出手段を構成するようにした
ものである。
A black level correction device according to the present invention sets a horizontal pixel number in an optical black region, sets a shift count of a shift operation, and sets the number of horizontal pixels by the horizontal pixel number set by the setting circuit. An arithmetic circuit for integrating the black level data and performing a shift operation on the integration result by the number of shifts corresponds to an average value calculating means.

【0018】この発明に係る黒レベル補正装置は、光学
的黒領域の垂直ライン数を設定するとともに、シフト演
算のシフト回数を設定する設定回路と、その設定回路に
より設定された垂直ライン数分だけ黒レベルのライン平
均値を積分し、その積分結果を当該シフト回数分だけシ
フト演算する演算回路とから平均値算出手段を構成する
ようにしたものである。
A black level correcting apparatus according to the present invention sets a number of vertical lines in an optical black region, sets a shift number of shift operations, and sets the number of vertical lines by the number of vertical lines set by the setting circuit. An arithmetic circuit for integrating the average value of the black level line and performing a shift operation on the integration result by the number of shifts corresponds to an average value calculating means.

【0019】この発明に係る黒レベル補正装置は、平均
値算出手段が複数の設定回路を備えて、演算回路がいず
れか1つの設定回路を選択するようにしたものである。
In the black level correcting apparatus according to the present invention, the average value calculating means includes a plurality of setting circuits, and the arithmetic circuit selects one of the setting circuits.

【0020】この発明に係る黒レベル補正装置は、黒レ
ベルの補正を行う場合に限り、撮像素子により撮像され
た画像データを平均値算出手段及び補正手段に出力する
接続手段を設けたものである。
The black level correcting device according to the present invention is provided with a connecting means for outputting image data picked up by the image pickup device to the average value calculating means and the correcting means only when correcting the black level. .

【0021】この発明に係る黒レベル補正装置は、補正
開始許可信号が有意な場合には補正後の画像データを出
力し、その補正開始許可信号が無意な場合には補正前の
画像データを出力するようにしたものである。
The black level correction device according to the present invention outputs the corrected image data when the correction start permission signal is significant, and outputs the image data before correction when the correction start permission signal is insignificant. It is something to do.

【0022】この発明に係る黒レベル補正装置は、更新
手段による更新後の黒レベル基準データから指定値を減
算し、画像データから当該減算結果を減算するようにし
たものである。
According to the black level correcting apparatus of the present invention, the specified value is subtracted from the updated black level reference data by the updating means, and the subtraction result is subtracted from the image data.

【0023】この発明に係る黒レベル補正装置は、更新
手段による更新後の黒レベル基準データが指定値より大
きい場合、その黒レベル基準データから指定値を減算し
て、画像データから当該減算結果を減算し、その黒レベ
ル基準データが当該指定値より大きくない場合には、そ
の画像データから当該黒レベル基準データを減算するよ
うにしたものである。
The black level correction device according to the present invention subtracts the specified value from the black level reference data when the updated black level reference data is larger than the specified value by the updating means, and calculates the subtraction result from the image data. If the black level reference data is not larger than the designated value, the black level reference data is subtracted from the image data.

【0024】この発明に係る黒レベル補正装置は、画像
データの黒レベルを補正したのち、ダイナミックレンジ
の補正を行うようにしたものである。
The black level correcting device according to the present invention corrects the dynamic range after correcting the black level of the image data.

【0025】この発明に係る黒レベル補正装置は、光学
的黒領域内の第1の領域に属する黒レベルのデータの平
均値に基づいて更新した黒レベル基準データと、その光
学的黒領域内の第2の領域に属する黒レベルのデータの
平均値に基づいて更新した黒レベル基準データとの平均
値を算出するようにしたものである。
According to the black level correcting apparatus of the present invention, the black level reference data updated based on the average value of the black level data belonging to the first area in the optical black area, and the black level reference data in the optical black area. The average value with the updated black level reference data based on the average value of the black level data belonging to the second area is calculated.

【0026】[0026]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1による黒
レベル補正装置を示す構成図であり、図において、11
は被写体の光学像を結像させるレンズ系、12はレンズ
系11により結像された被写体像を光電変換して電気信
号である画像データを出力する撮像素子、13は撮像素
子12から出力された画像データを増幅するなどのアナ
ログ処理を実施するアナログ処理部、14はアナログ処
理部13から出力された画像データをアナログデータか
らディジタルデータに変換するA/D変換器である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a configuration diagram showing a black level correction device according to Embodiment 1 of the present invention.
Denotes a lens system that forms an optical image of the subject, 12 denotes an image sensor that photoelectrically converts the subject image formed by the lens system 11 and outputs image data that is an electric signal, and 13 denotes an image sensor that is output from the image sensor 12. An analog processing unit 14 performs analog processing such as amplifying image data, and an A / D converter 14 converts the image data output from the analog processing unit 13 from analog data to digital data.

【0027】15はA/D変換器14から出力された画
像データの中から光学的黒領域内の黒レベルクリップ領
域に属するデータをクリップして、水平方向の黒レベル
の積分を実施した後、画素数で除算を行うことにより1
ライン当りの黒レベルの平均値を算出するライン黒レベ
ル算出回路、16はライン黒レベル算出回路15により
算出された1ライン当りの黒レベルの平均値を垂直方向
に積分した後、ライン数で除算を行うことにより1フレ
ーム当りの黒レベルの平均値を算出するフレーム黒レベ
ル算出回路、17は時定数演算回路18により演算され
た黒レベル基準データを時定数演算回路18のA端子に
出力する一方、ライン黒レベル算出回路15又はフレー
ム黒レベル算出回路16により算出された黒レベルの平
均値を選択して時定数演算回路18のB端子に出力する
時定数データ選択回路である。なお、ライン黒レベル算
出回路15,フレーム黒レベル算出回路16及び時定数
データ選択回路17から平均値算出手段が構成されてい
る。
15 clips the data belonging to the black level clip area in the optical black area from the image data output from the A / D converter 14 and performs the integration of the horizontal black level. By dividing by the number of pixels, 1
A line black level calculation circuit 16 for calculating the average value of the black level per line is integrated in the vertical direction with the average value of the black level per line calculated by the line black level calculation circuit 15 and then divided by the number of lines. , A frame black level calculation circuit 17 for calculating the average value of the black level per frame, and outputs the black level reference data calculated by the time constant calculation circuit 18 to the A terminal of the time constant calculation circuit 18. A time constant data selection circuit for selecting an average value of the black levels calculated by the line black level calculation circuit 15 or the frame black level calculation circuit 16 and outputting the average value to the B terminal of the time constant calculation circuit 18. The line black level calculation circuit 15, frame black level calculation circuit 16 and time constant data selection circuit 17 constitute an average value calculation means.

【0028】18はA端子から入力した前回の黒レベル
基準データに第1の重み付け値を乗算する一方、B端子
から入力した黒レベルの平均値に第1の重み付け値より
小さい第2の重み付け値を乗算し、双方の乗算結果を相
互に加算して新たな黒レベル基準データを求める時定数
演算回路(更新手段)、19は時定数演算回路18によ
り演算された黒レベル基準データを用いてA/D変換器
14から出力された画像データの黒レベルを補正する補
正回路(補正手段)である。図2はCCDなどの撮像素
子12のセンサ面を示す説明図であり、図3は時定数デ
ータ選択回路17の選択結果を示す説明図である。
Numeral 18 multiplies the previous black level reference data input from the terminal A by a first weighting value, and multiplies the average value of the black level input from the terminal B by a second weighting value smaller than the first weighting value. And a time constant calculating circuit (updating means) for obtaining new black level reference data by adding the results of both multiplications to each other. A time constant calculating circuit 19 uses the black level reference data calculated by the time constant calculating circuit 18 to generate A. The correction circuit (correction unit) corrects the black level of the image data output from the / D converter 14. FIG. 2 is an explanatory diagram showing a sensor surface of the imaging device 12 such as a CCD, and FIG. 3 is an explanatory diagram showing a selection result of the time constant data selection circuit 17.

【0029】次に動作について説明する。センサ面は、
主に有効画素領域と光学的黒領域に大別される(図2を
参照)。光学的黒領域はセンサ感光部に遮光部が設けら
れ、暗電流の基準値を検出する領域である。この実施の
形態1では、この光学的黒領域のうち、32画素×10
24ラインの黒レベルクリップ領域の暗電流基準値を検
出するものとする。
Next, the operation will be described. The sensor surface is
It is mainly divided into an effective pixel area and an optical black area (see FIG. 2). The optical black area is an area where a light-shielding portion is provided on the sensor photosensitive portion and a dark current reference value is detected. In the first embodiment, 32 pixels × 10
It is assumed that a dark current reference value in a black level clip region of 24 lines is detected.

【0030】最初に黒レベル補正動作のうち、1フレー
ムの黒レベルを検出し、その検出結果を次のフレームの
有効画像データから減算するフレーム伝播黒レベル補正
動作について説明する。
First, of the black level correction operation, the frame propagation black level correction operation of detecting the black level of one frame and subtracting the detection result from the effective image data of the next frame will be described.

【0031】まず、レンズ系11が被写体像を結像する
と、撮像素子12が被写体像を光電変換して電気信号で
ある画像データを出力し、アナログ処理部13が当該画
像データを増幅するなどのアナログ処理を実施する。そ
して、A/D変換器14は、アナログ処理部13から出
力された画像データをアナログデータからディジタルデ
ータに変換し、そのディジタルデータをライン黒レベル
算出回路15及び補正回路19に出力する。
First, when the lens system 11 forms a subject image, the image sensor 12 photoelectrically converts the subject image and outputs image data as an electric signal, and the analog processing unit 13 amplifies the image data. Perform analog processing. The A / D converter 14 converts the image data output from the analog processing unit 13 from analog data to digital data, and outputs the digital data to the line black level calculation circuit 15 and the correction circuit 19.

【0032】ライン黒レベル算出回路15は、A/D変
換器14からディジタルの画像データを受けると、その
画像データの中から光学的黒領域内の黒レベルクリップ
領域に属するデータをクリップする。そして、ライン黒
レベル算出回路15は、撮影開始後、黒レベルクリップ
領域の最初のラインとなる「ア」の走査が開始される
と、32画素の黒レベルを積分し、その積分結果を1ラ
イン分の画素数である“32”で除算を行うことにより
1ライン当りの黒レベルの平均値を算出する。以下、こ
の動作を「イ」、「ウ」の順に1024ラインまで行
う。
When receiving the digital image data from the A / D converter 14, the line black level calculation circuit 15 clips data belonging to the black level clip region in the optical black region from the image data. Then, when the scanning of “A”, which is the first line of the black level clip area, is started after the start of shooting, the line black level calculation circuit 15 integrates the black level of 32 pixels, and outputs the integration result as one line. By dividing by “32” which is the number of pixels per minute, the average value of the black level per line is calculated. Hereinafter, this operation is performed up to 1024 lines in the order of “A” and “U”.

【0033】フレーム黒レベル算出回路16は、ライン
黒レベル算出回路15により算出された1ライン当りの
黒レベルの平均値を垂直方向に1024ライン分だけ積
分する。そして、その積分結果をライン数である“10
24”で除算を行うことにより1フレーム当りの黒レベ
ルの平均値を算出する。
The frame black level calculating circuit 16 integrates the average value of the black level per line calculated by the line black level calculating circuit 15 by 1024 lines in the vertical direction. Then, the integration result is expressed as “10” which is the number of lines.
By dividing by 24 ″, the average value of the black level per frame is calculated.

【0034】次に、時定数データ選択回路17は、a1
端子から時定数演算回路18により演算された前回の黒
レベル基準データを入力し、b1端子からフレーム黒レ
ベル算出回路16により算出された1フレーム当りの黒
レベルの平均値を入力し、c1端子からライン黒レベル
算出回路15により算出された1ライン当りの黒レベル
の平均値を入力する。
Next, the time constant data selection circuit 17 calculates a1
The terminal receives the previous black level reference data calculated by the time constant calculating circuit 18 from the terminal, inputs the average value of the black level per frame calculated by the frame black level calculating circuit 16 from the b1 terminal, and inputs from the c1 terminal The average value of the black level per line calculated by the line black level calculation circuit 15 is input.

【0035】フレーム伝播黒レベル補正動作において
は、図3に示すように、a1端子から入力した前回の黒
レベル基準データを時定数演算回路18のA端子に出力
し、b1端子から入力した1フレーム当りの黒レベルの
平均値を時定数演算回路18のB端子に出力する。
In the frame propagation black level correction operation, as shown in FIG. 3, the previous black level reference data input from the terminal a1 is output to the terminal A of the time constant calculation circuit 18, and one frame input from the terminal b1 is output. The average value of the hit black level is output to the B terminal of the time constant calculation circuit 18.

【0036】時定数演算回路18は、各画像間の黒レベ
ルの急峻な変化を防止するため、下記に示すように、A
端子から入力した前回の黒レベル基準データに第1の重
み付け値(=63/64)を乗算する一方、B端子から
入力した1フレーム当りの黒レベルの平均値に第2の重
み付け値(=1/64)を乗算し、双方の乗算結果を相
互に加算して新たな黒レベル基準データを求める。 C=A×63/64+B/64 ただし、A:A端子から入力した前回の黒レベル基準デ
ータ B:1フレーム当りの黒レベルの平均値 C:新たな黒レベル基準データ
The time-constant calculation circuit 18 controls the A as follows to prevent a sharp change in the black level between the images.
The previous black level reference data input from the terminal is multiplied by the first weight value (= 63/64), while the average value of the black level per frame input from the B terminal is changed by the second weight value (= 1). / 64), and the results of both multiplications are added to each other to obtain new black level reference data. C = A × 63/64 + B / 64 where A: previous black level reference data input from terminal A B: average black level per frame C: new black level reference data

【0037】補正回路19は、次フレームの撮影が開始
されると、A/D変換器14より出力された画像データ
の中から有効画素領域の有効画像データをクリップす
る。そして、その有効画像データから時定数演算回路1
8により演算された黒レベル基準データを減算して、そ
の有効画像データの黒レベルを補正する。なお、ライン
黒レベル算出回路15,フレーム黒レベル算出回路1
6,時定数データ選択回路17及び時定数演算回路18
は、次フレームにおいても、前フレームと同様の動作を
実施する。
When the photographing of the next frame is started, the correction circuit 19 clips the effective image data of the effective pixel area from the image data output from the A / D converter 14. Then, from the effective image data, the time constant calculation circuit 1
The black level reference data calculated in step 8 is subtracted to correct the black level of the effective image data. The line black level calculation circuit 15 and the frame black level calculation circuit 1
6, time constant data selection circuit 17 and time constant calculation circuit 18
Performs the same operation in the next frame as in the previous frame.

【0038】次に、黒レベル補正動作のうち、1ライン
の黒レベルを検出し、その検出結果を次のラインの有効
画像データから減算する面内黒レベル補正動作について
説明する。
Next, among the black level correction operations, an in-plane black level correction operation of detecting the black level of one line and subtracting the detection result from the effective image data of the next line will be described.

【0039】レンズ系11,撮像素子12,アナログ処
理部13,A/D変換器14,ライン黒レベル算出回路
15及びフレーム黒レベル算出回路16の動作は、上述
したフレーム伝播黒レベル補正動作と同様であるため説
明を省略する。
The operations of the lens system 11, the image pickup device 12, the analog processing section 13, the A / D converter 14, the line black level calculation circuit 15, and the frame black level calculation circuit 16 are the same as the above-described frame propagation black level correction operation. Therefore, the description is omitted.

【0040】時定数データ選択回路17は、a1端子か
ら時定数演算回路18により演算された前回の黒レベル
基準データを入力し、b1端子からフレーム黒レベル算
出回路16により算出された1フレーム当りの黒レベル
の平均値を入力し、c1端子からライン黒レベル算出回
路15により算出された1ライン当りの黒レベルの平均
値を入力する。
The time constant data selection circuit 17 receives the previous black level reference data calculated by the time constant calculation circuit 18 from the terminal a1 and inputs the per-frame per frame calculated by the frame black level calculation circuit 16 from the terminal b1. The average value of the black level is input, and the average value of the black level per line calculated by the line black level calculation circuit 15 is input from the terminal c1.

【0041】面内黒レベル補正動作においては、図3に
示すように、a1端子から入力した前回の黒レベル基準
データを時定数演算回路18のA端子に出力し、c1端
子から入力した1ライン当りの黒レベルの平均値を時定
数演算回路18のB端子に出力する。
In the in-plane black level correction operation, as shown in FIG. 3, the previous black level reference data input from the a1 terminal is output to the A terminal of the time constant calculation circuit 18, and one line input from the c1 terminal is output. The average value of the hit black level is output to the B terminal of the time constant calculation circuit 18.

【0042】時定数演算回路18は、各画像間の黒レベ
ルの急峻な変化を防止するため、下記に示すように、A
端子から入力した前回の黒レベル基準データに第1の重
み付け値(=63/64)を乗算する一方、B端子から
入力した1ライン当りの黒レベルの平均値に第2の重み
付け値(=1/64)を乗算し、双方の乗算結果を相互
に加算して新たな黒レベル基準データを求める。 C=A×63/64+B/64 ただし、A:A端子から入力した前回の黒レベル基準デ
ータ B:1ライン当りの黒レベルの平均値 C:新たな黒レベル基準データ
The time-constant operation circuit 18 controls the A as described below in order to prevent a sharp change in the black level between the images.
The previous black level reference data input from the terminal is multiplied by the first weight value (= 63/64), while the average value of the black level per line input from the B terminal is changed by the second weight value (= 1). / 64), and the results of both multiplications are added to each other to obtain new black level reference data. C = A × 63/64 + B / 64 where A: previous black level reference data input from terminal A B: average black level per line C: new black level reference data

【0043】補正回路19は、有効画素領域の1ライン
目の走査が始まると、A/D変換器14より出力された
画像データの中から1ライン目の有効画像データをクリ
ップする。そして、その有効画像データから時定数演算
回路18により演算された黒レベル基準データ(「ア」
のラインまでの黒レベル基準データ)を減算して、その
有効画像データの黒レベルを補正する。
When the scanning of the first line of the effective pixel area starts, the correction circuit 19 clips the effective image data of the first line from the image data output from the A / D converter 14. Then, the black level reference data (“A”) calculated from the effective image data by the time constant calculation circuit 18.
, The black level of the effective image data is corrected.

【0044】なお、有効画素領域の2ライン目の走査が
始まると、2ライン目の有効画像データから「イ」のラ
インまでの黒レベル基準データを減算して、その有効画
像データの黒レベルを補正する。3ライン目以降の有効
画像データについても、同様にして、黒レベル補正を行
う。
When the scanning of the second line of the effective pixel area starts, the black level reference data for the line "A" is subtracted from the effective image data of the second line to change the black level of the effective image data. to correct. Black level correction is similarly performed for the effective image data of the third and subsequent lines.

【0045】以上で明らかなように、この実施の形態1
によれば、1フレーム又は1ライン当りの黒レベルの平
均値と前回の黒レベル基準データから当該黒レベル基準
データを更新し、更新後の黒レベル基準データを用いて
有効画像データの黒レベルを補正するように構成したの
で、各画像間の黒レベルの急峻な変化を防止することが
できる効果を奏する。また、ライン黒レベル算出回路1
5,フレーム黒レベル算出回路16及び時定数データ選
択回路17を設けたので、回路規模の増大を招くことな
く、フレーム伝播黒レベル補正動作と面内黒レベル補正
動作を実施することができる。その結果、汎用性の高い
黒レベル補正装置が得られる効果がある。
As is clear from the above, the first embodiment
According to the method, the black level reference data is updated from the average value of the black level per frame or line and the previous black level reference data, and the black level of the effective image data is updated using the updated black level reference data. Since the correction is made, it is possible to prevent a sharp change in the black level between the images. Also, a line black level calculation circuit 1
5, since the frame black level calculation circuit 16 and the time constant data selection circuit 17 are provided, the frame propagation black level correction operation and the in-plane black level correction operation can be performed without increasing the circuit scale. As a result, there is an effect that a highly versatile black level correction device can be obtained.

【0046】なお、この実施の形態1では、黒レベルク
リップ領域を32画素×1024ラインとしたが、黒レ
ベルクリップ領域は任意でよく、それに応じてライン黒
レベル算出回路15及びフレーム黒レベル算出回路16
の除数を変更すればよい。
Although the black level clip area is 32 pixels × 1024 lines in the first embodiment, the black level clip area may be arbitrary, and accordingly, the line black level calculation circuit 15 and the frame black level calculation circuit 16
May be changed.

【0047】また、この実施の形態1では、時定数を与
える式をC=A×63/64+B/64とするものにつ
いて示したが、これに限定するものではなく、必要に応
じて式を変更すればよい。また、この実施の形態1にお
ける時定数演算回路18の演算及び処理は、マイクロプ
ロセッサでも実現可能である。
In the first embodiment, the equation for giving the time constant is shown as C = A × 63/64 + B / 64. However, the present invention is not limited to this, and the equation may be changed as necessary. do it. The operation and processing of the time constant operation circuit 18 according to the first embodiment can also be realized by a microprocessor.

【0048】実施の形態2.図4はこの発明の実施の形
態2による黒レベル補正装置を示す構成図であり、図に
おいて、図1と同一符号は同一または相当部分を示すの
で説明を省略する。15aはA/D変換器14から出力
された画像データの中から光学的黒領域内の黒レベルク
リップ領域(第1の領域)に属するデータをクリップし
て、水平方向の黒レベルの積分を実施した後、画素数で
除算を行うことにより1ライン当りの黒レベルの平均値
を算出するライン黒レベル算出回路、15bはA/D変
換器14から出力された画像データの中から光学的黒領
域内の黒レベルクリップ領域(第2の領域)に属するデ
ータをクリップして、水平方向の黒レベルの積分を実施
した後、画素数で除算を行うことにより1ライン当りの
黒レベルの平均値を算出するライン黒レベル算出回路で
ある。
Embodiment 2 FIG. 4 is a block diagram showing a black level correcting apparatus according to Embodiment 2 of the present invention. In the figure, the same reference numerals as those in FIG. 1 denote the same or corresponding parts, and a description thereof will be omitted. Reference numeral 15a clips data belonging to a black level clip region (first region) in the optical black region from the image data output from the A / D converter 14, and performs integration of the horizontal black level. After that, a line black level calculation circuit for calculating the average value of the black level per line by performing division by the number of pixels, and 15b is an optical black area from the image data output from the A / D converter 14. After clipping the data belonging to the black level clip area (second area) within, the black level in the horizontal direction is integrated and then divided by the number of pixels, the average value of the black level per line is obtained. This is a line black level calculation circuit to be calculated.

【0049】16aはライン黒レベル算出回路15aに
より算出された1ライン当りの黒レベルの平均値を垂直
方向に積分した後、ライン数で除算を行うことにより1
フレーム当りの黒レベルの平均値を算出するフレーム黒
レベル算出回路、16bはライン黒レベル算出回路15
bにより算出された1ライン当りの黒レベルの平均値を
垂直方向に積分した後、ライン数で除算を行うことによ
り1フレーム当りの黒レベルの平均値を算出するフレー
ム黒レベル算出回路である。
16a is obtained by integrating the average value of the black level per line calculated by the line black level calculation circuit 15a in the vertical direction, and then dividing by the number of lines.
A frame black level calculation circuit for calculating an average value of black levels per frame;
This is a frame black level calculation circuit that calculates the average value of the black level per frame by integrating the average value of the black level per line calculated by b in the vertical direction and then dividing by the number of lines.

【0050】20はフレーム黒レベル算出回路16aに
より算出された1フレーム当りの黒レベルの平均値とフ
レーム黒レベル算出回路16bにより算出された1フレ
ーム当りの黒レベルの平均値との平均値を求めるフレー
ム黒レベル平均回路、21は時定数演算回路18により
演算された黒レベル基準データを時定数演算回路18の
A端子に出力する一方、ライン黒レベル算出回路15
b,フレーム黒レベル算出回路16a又はフレーム黒レ
ベル平均回路20により算出された黒レベルの平均値を
選択して時定数演算回路18のB端子に出力する時定数
データ選択回路である。なお、ライン黒レベル算出回路
15a,15b,フレーム黒レベル算出回路16a,1
6b,フレーム黒レベル平均回路20及び時定数データ
選択回路21から平均値算出手段が構成されている。図
5はCCDなどの撮像素子12のセンサ面を示す説明図
であり、図6は時定数データ選択回路21の選択結果を
示す説明図である。
Reference numeral 20 denotes an average value of the average value of the black level per frame calculated by the frame black level calculation circuit 16a and the average value of the black level per frame calculated by the frame black level calculation circuit 16b. The frame black level averaging circuit 21 outputs the black level reference data calculated by the time constant calculating circuit 18 to the A terminal of the time constant calculating circuit 18 while the line black level calculating circuit 15 outputs the black level reference data.
b, a time constant data selection circuit that selects the average value of the black levels calculated by the frame black level calculation circuit 16a or the frame black level averaging circuit 20 and outputs the selected value to the B terminal of the time constant calculation circuit 18. The line black level calculation circuits 15a and 15b and the frame black level calculation circuits 16a and 1
6b, a frame black level averaging circuit 20 and a time constant data selecting circuit 21 constitute an average value calculating means. FIG. 5 is an explanatory diagram showing a sensor surface of the image pickup device 12 such as a CCD, and FIG. 6 is an explanatory diagram showing a selection result of the time constant data selection circuit 21.

【0051】次に動作について説明する。センサ面は、
主に有効画素領域と光学的黒領域に大別される(図5を
参照)。光学的黒領域はセンサ感光部に遮光部が設けら
れ、暗電流の基準値を検出する領域である。この実施の
形態2では、この光学的黒領域のうち、1600画素×
3ラインの黒レベルクリップ領域(第1の領域)と、3
2画素×1024ラインの黒レベルクリップ領域(第2
の領域)の暗電流基準値を検出するものとする。
Next, the operation will be described. The sensor surface is
It is mainly divided into an effective pixel area and an optical black area (see FIG. 5). The optical black area is an area where a light-shielding portion is provided on the sensor photosensitive portion and a dark current reference value is detected. In the second embodiment, 1600 pixels ×
A three-line black level clip area (first area);
Black level clip area of 2 pixels × 1024 lines (second
Area) is detected.

【0052】最初に黒レベル補正動作のうち、1フレー
ムの黒レベルを検出し、その検出結果を次のフレームの
有効画像データから減算するフレーム伝播黒レベル補正
動作について説明する。
First, of the black level correction operation, the frame propagation black level correction operation of detecting the black level of one frame and subtracting the detection result from the effective image data of the next frame will be described.

【0053】まず、レンズ系11が被写体像を結像する
と、撮像素子12が被写体像を光電変換して電気信号で
ある画像データを出力し、アナログ処理部13が当該画
像データを増幅するなどのアナログ処理を実施する。そ
して、A/D変換器14は、アナログ処理部13から出
力された画像データをアナログデータからディジタルデ
ータに変換し、そのディジタルデータをライン黒レベル
算出回路15a,15b及び補正回路19に出力する。
First, when the lens system 11 forms a subject image, the image sensor 12 photoelectrically converts the subject image and outputs image data as an electric signal, and the analog processing unit 13 amplifies the image data. Perform analog processing. Then, the A / D converter 14 converts the image data output from the analog processing unit 13 from analog data to digital data, and outputs the digital data to the line black level calculation circuits 15a and 15b and the correction circuit 19.

【0054】ライン黒レベル算出回路15aは、撮影開
始後、黒レベルクリップ領域(第1の領域)の最初のラ
インとなる「ア」の走査が開始されると、1600画素
の黒レベルを積分し、その積分結果を1ライン分の画素
数である“1600”で除算を行うことにより1ライン
当りの黒レベルの平均値を算出する。以下、この動作を
「イ」、「ウ」の順に3ラインまで行う。
The line black level calculation circuit 15a integrates the black level of 1600 pixels when the scanning of "A" which is the first line of the black level clip area (first area) is started after the photographing is started. The average of the black level per line is calculated by dividing the integration result by "1600" which is the number of pixels for one line. Hereinafter, this operation is performed up to three lines in the order of “a” and “c”.

【0055】また、ライン黒レベル算出回路15bは、
黒レベルクリップ領域(第2の領域)の最初のラインと
なる「エ」の走査が開始されると、32画素の黒レベル
を積分し、その積分結果を1ライン分の画素数である
“32”で除算を行うことにより1ライン当りの黒レベ
ルの平均値を算出する。以下、この動作を「オ」、
「カ」の順に1024ラインまで行う。
The line black level calculation circuit 15b
When scanning of “d”, which is the first line of the black level clip region (second region), is started, the black level of 32 pixels is integrated, and the integration result is expressed as “32” which is the number of pixels for one line. To calculate the average value of the black level per line. Hereinafter, this operation is referred to as "O",
The processing is performed up to 1024 lines in the order of “f”.

【0056】フレーム黒レベル算出回路16aは、ライ
ン黒レベル算出回路15aにより算出された1ライン当
りの黒レベルの平均値を垂直方向に3ライン分だけ積分
する。そして、その積分結果をライン数である“3”で
除算を行うことにより第1の領域における1フレーム当
りの黒レベルの平均値を算出する。
The frame black level calculation circuit 16a integrates the average value of the black level per line calculated by the line black level calculation circuit 15a for three lines in the vertical direction. Then, the average of the black level per frame in the first area is calculated by dividing the integration result by the number of lines “3”.

【0057】また、フレーム黒レベル算出回路16b
は、ライン黒レベル算出回路15bにより算出された1
ライン当りの黒レベルの平均値を垂直方向に1024ラ
イン分だけ積分する。そして、その積分結果をライン数
である“1024”で除算を行うことにより第2の領域
における1フレーム当りの黒レベルの平均値を算出す
る。
The frame black level calculation circuit 16b
Is 1 calculated by the line black level calculation circuit 15b.
The average value of the black level per line is integrated for 1024 lines in the vertical direction. Then, the average value of the black level per frame in the second area is calculated by dividing the integration result by the number of lines “1024”.

【0058】フレーム黒レベル平均回路20は、第1の
領域における1フレーム当りの黒レベルの平均値と第2
の領域における1フレーム当りの黒レベルの平均値とを
加算して、その加算結果を“2”で除算することによ
り、第1の領域と第2の領域の黒レベルの平均値を求め
る。
The frame black level averaging circuit 20 calculates the average value of the black level per frame in the first area and the second black level.
The average value of the black levels of the first area and the second area is obtained by adding the average value of the black level per frame in the area and dividing the addition result by “2”.

【0059】次に、時定数データ選択回路21は、a2
端子から時定数演算回路18により演算された前回の黒
レベル基準データを入力し、b2端子からフレーム黒レ
ベル算出回路16aにより算出された1フレーム当りの
黒レベルの平均値を入力し、c2端子からライン黒レベ
ル算出回路15bにより算出された1ライン当りの黒レ
ベルの平均値を入力し、d2端子からフレーム黒レベル
平均回路20により算出された第1の領域と第2の領域
の黒レベルの平均値を入力する。
Next, the time constant data selection circuit 21 sets a2
The terminal receives the previous black level reference data calculated by the time constant calculating circuit 18 from the terminal, the average value of the black level per frame calculated by the frame black level calculating circuit 16a from the terminal b2, and the terminal c2 from the terminal c2. The average value of the black level per line calculated by the line black level calculation circuit 15b is input, and the average of the black levels of the first area and the second area calculated by the frame black level averaging circuit 20 from the terminal d2. Enter a value.

【0060】フレーム伝播黒レベル補正動作において
は、図6に示すように、a2端子から入力した前回の黒
レベル基準データを時定数演算回路18のA端子に出力
し、d2端子から入力した第1の領域と第2の領域の黒
レベルの平均値を時定数演算回路18のB端子に出力す
る。
In the frame propagation black level correction operation, as shown in FIG. 6, the previous black level reference data input from the terminal a2 is output to the terminal A of the time constant calculation circuit 18 and the first black level reference data input from the terminal d2 is input. The average value of the black level in the area and the second area is output to the B terminal of the time constant calculation circuit 18.

【0061】時定数演算回路18は、各画像間の黒レベ
ルの急峻な変化を防止するため、下記に示すように、A
端子から入力した前回の黒レベル基準データに第1の重
み付け値(=63/64)を乗算する一方、B端子から
入力した第1の領域と第2の領域の黒レベルの平均値に
第2の重み付け値(=1/64)を乗算し、双方の乗算
結果を相互に加算して新たな黒レベル基準データを求め
る。 C=A×63/64+B/64 ただし、A:A端子から入力した前回の黒レベル基準デ
ータ B:第1の領域と第2の領域の黒レベルの平均値 C:新たな黒レベル基準データ
The time-constant calculation circuit 18 controls the A as follows to prevent a sharp change in the black level between the images.
The previous black level reference data input from the terminal is multiplied by the first weighting value (= 63/64), while the average of the black levels of the first and second areas input from the B terminal is converted to the second value. , And the results of both multiplications are added to each other to obtain new black level reference data. C = A × 63/64 + B / 64 where A: previous black level reference data input from terminal A B: average value of black levels of first and second areas C: new black level reference data

【0062】補正回路19は、次フレームの撮影が開始
されると、A/D変換器14より出力された画像データ
の中から有効画素領域の有効画像データをクリップす
る。そして、その有効画像データから時定数演算回路1
8により演算された黒レベル基準データを減算して、そ
の有効画像データの黒レベルを補正する。なお、ライン
黒レベル算出回路15a,15b,フレーム黒レベル算
出回路16a,16b,フレーム黒レベル平均回路2
0,時定数データ選択回路21及び時定数演算回路18
は、次フレームにおいても、前フレームと同様の動作を
実施する。
When the photographing of the next frame is started, the correction circuit 19 clips the effective image data of the effective pixel area from the image data output from the A / D converter 14. Then, from the effective image data, the time constant calculation circuit 1
The black level reference data calculated in step 8 is subtracted to correct the black level of the effective image data. The line black level calculating circuits 15a and 15b, the frame black level calculating circuits 16a and 16b, and the frame black level averaging circuit 2
0, time constant data selection circuit 21 and time constant calculation circuit 18
Performs the same operation in the next frame as in the previous frame.

【0063】次に、黒レベル補正動作のうち、1ライン
の黒レベルを検出し、その検出結果を次のラインの有効
画像データから減算する面内黒レベル補正動作について
説明する。
Next, the in-plane black level correction operation of detecting the black level of one line and subtracting the detection result from the effective image data of the next line in the black level correction operation will be described.

【0064】レンズ系11,撮像素子12,アナログ処
理部13,A/D変換器14,ライン黒レベル算出回路
15a,15b,フレーム黒レベル算出回路16a,1
6b及びフレーム黒レベル平均回路20の動作は、上述
したフレーム伝播黒レベル補正動作と同様であるため説
明を省略する。
The lens system 11, the image sensor 12, the analog processing section 13, the A / D converter 14, the line black level calculation circuits 15a and 15b, and the frame black level calculation circuits 16a and 1
6b and the operation of the frame black level averaging circuit 20 are the same as the above-described frame propagation black level correction operation, and therefore description thereof is omitted.

【0065】時定数データ選択回路21は、a2端子か
ら時定数演算回路18により演算された前回の黒レベル
基準データを入力し、b2端子からフレーム黒レベル算
出回路16aにより算出された1フレーム当りの黒レベ
ルの平均値を入力し、c2端子からライン黒レベル算出
回路15bにより算出された1ライン当りの黒レベルの
平均値を入力し、d2端子からフレーム黒レベル平均回
路20により算出された第1の領域と第2の領域の黒レ
ベルの平均値を入力する。
The time constant data selection circuit 21 receives the previous black level reference data calculated by the time constant calculation circuit 18 from the terminal a2, and receives the data per frame calculated by the frame black level calculation circuit 16a from the terminal b2. The average value of the black level is input, the average value of the black level per line calculated by the line black level calculation circuit 15b is input from the terminal c2, and the first value calculated by the frame black level average circuit 20 from the terminal d2. The average value of the black levels of the area and the second area is input.

【0066】面内黒レベル補正動作において、第1の領
域の黒レベル検出時は、図6に示すように、a2端子か
ら入力した前回の黒レベル基準データを時定数演算回路
18のA端子に出力し、b2端子から入力した1フレー
ム当りの黒レベルの平均値を時定数演算回路18のB端
子に出力する。また、面内黒レベル補正動作において、
第2の領域の黒レベル検出時は、図6に示すように、a
2端子から入力した前回の黒レベル基準データを時定数
演算回路18のA端子に出力し、c2端子から入力した
1ライン当りの黒レベルの平均値を時定数演算回路18
のB端子に出力する。
In the in-plane black level correction operation, when the black level of the first area is detected, the previous black level reference data input from the terminal a2 is supplied to the A terminal of the time constant calculating circuit 18 as shown in FIG. Then, the average value of the black level per frame input from the terminal b2 is output to the terminal B of the time constant calculation circuit 18. In the in-plane black level correction operation,
When detecting the black level of the second area, as shown in FIG.
The previous black level reference data input from the two terminals is output to the A terminal of the time constant calculation circuit 18, and the average value of the black level per line input from the c2 terminal is calculated by the time constant calculation circuit 18.
To the B terminal.

【0067】時定数演算回路18は、各画像間の黒レベ
ルの急峻な変化を防止するため、下記に示すように、A
端子から入力した前回の黒レベル基準データに第1の重
み付け値(=63/64)を乗算する一方、B端子から
入力した1フレーム又は1ライン当りの黒レベルの平均
値に第2の重み付け値(=1/64)を乗算し、双方の
乗算結果を相互に加算して新たな黒レベル基準データを
求める。 C=A×63/64+B/64 ただし、A:A端子から入力した前回の黒レベル基準デ
ータ B:1フレーム又は1ライン当りの黒レベルの平均値 C:新たな黒レベル基準データ
The time constant calculation circuit 18 controls the A as follows to prevent a sharp change in the black level between the images.
The previous black level reference data input from the terminal is multiplied by the first weight value (= 63/64), while the average of the black level per frame or line input from the B terminal is converted to the second weight value. (= 1/64), and the results of both multiplications are added to each other to obtain new black level reference data. C = A × 63/64 + B / 64 where A: last black level reference data input from terminal A B: average value of black level per frame or line C: new black level reference data

【0068】補正回路19は、有効画素領域の1ライン
目の走査が始まると、A/D変換器14より出力された
画像データの中から1ライン目の有効画像データをクリ
ップする。そして、その有効画像データから時定数演算
回路18により演算された黒レベル基準データ(第1の
領域である「ア、イ、ウ」のラインまでの黒レベル基準
データ)を減算して、その有効画像データの黒レベルを
補正する。
When the scanning of the first line of the effective pixel area starts, the correction circuit 19 clips the effective image data of the first line from the image data output from the A / D converter 14. Then, the black level reference data (black level reference data up to the line of “A, I, C”, which is the first area) calculated by the time constant calculation circuit 18 is subtracted from the effective image data. Correct the black level of the image data.

【0069】また、有効画素領域の2ライン目の走査が
始まると、A/D変換器14より出力された画像データ
の中から2ライン目の有効画像データをクリップする。
そして、その有効画像データから時定数演算回路18に
より演算された黒レベル基準データ(第2の領域である
「エ」のラインまでの黒レベル基準データ)を減算し
て、その有効画像データの黒レベルを補正する。なお、
3ライン目以降の有効画像データについては、2ライン
目の有効画像データと同様にして、黒レベル補正を行
う。
When the scanning of the second line of the effective pixel area starts, the effective image data of the second line is clipped from the image data output from the A / D converter 14.
Then, the black level reference data (black level reference data up to the line “D”, which is the second area) calculated by the time constant calculation circuit 18 is subtracted from the effective image data, and the black of the effective image data is subtracted. Correct the level. In addition,
For the effective image data of the third and subsequent lines, black level correction is performed in the same manner as the effective image data of the second line.

【0070】以上で明らかなように、この実施の形態2
によれば、光学的黒領域内の第1の領域に属する黒レベ
ルのデータの平均値を算出するとともに、光学的黒領域
内の第2の領域に属する黒レベルのデータの平均値を算
出するように構成したので、1つの回路で様々な黒レベ
ル補正動作を選択して、精度の高い黒レベル検出を実現
することが可能となる。その結果、より汎用性の高い黒
レベル補正装置が得られる効果がある。
As is apparent from the above, the second embodiment
According to the method, the average value of the black level data belonging to the first area in the optical black area is calculated, and the average value of the black level data belonging to the second area in the optical black area is calculated. With such a configuration, it is possible to select various black level correction operations with one circuit and realize highly accurate black level detection. As a result, there is an effect that a more versatile black level correction device can be obtained.

【0071】なお、この実施の形態2では、第1の領域
を1600画素×3ラインとし、第2の領域を32画素
×1024ラインとするものについて示したが、黒レベ
ルクリップ領域は任意でよく、それに応じてライン黒レ
ベル算出回路15a,15b及びフレーム黒レベル算出
回路16a,16bの除数を変更すればよい。
In the second embodiment, the first region is 1600 pixels × 3 lines, and the second region is 32 pixels × 1024 lines. However, the black level clip region may be arbitrarily set. The divisors of the line black level calculation circuits 15a and 15b and the frame black level calculation circuits 16a and 16b may be changed accordingly.

【0072】実施の形態3.図7はこの発明の実施の形
態3による黒レベル補正装置を示す構成図であり、図に
おいて、図4と同一符号は同一または相当部分を示すの
で説明を省略する。22はフレーム黒レベル算出回路1
6aにより算出された1フレーム当りの黒レベルの平均
値又は時定数演算回路18により演算された黒レベル基
準データを選択して補正回路19に出力する選択回路
(第1の選択手段)である。図8は時定数データ選択回
路21及び選択回路22の選択結果を示す説明図であ
る。
Embodiment 3 FIG. 7 is a block diagram showing a black level correcting apparatus according to Embodiment 3 of the present invention. In the figure, the same reference numerals as those in FIG. 22 is a frame black level calculation circuit 1
A selection circuit (first selection means) that selects the average value of the black level per frame calculated by 6a or the black level reference data calculated by the time constant calculation circuit 18 and outputs the selected data to the correction circuit 19. FIG. 8 is an explanatory diagram showing selection results of the time constant data selection circuit 21 and the selection circuit 22.

【0073】次に動作について説明する。フレーム伝播
黒レベル補正動作及び面内黒レベル補正動作において
は、選択回路22が常にv端子から入力した黒レベル基
準データを選択して補正回路19に出力する。このた
め、上記実施の形態2と同様な制御となる。
Next, the operation will be described. In the frame propagation black level correction operation and the in-plane black level correction operation, the selection circuit 22 always selects the black level reference data input from the v terminal and outputs it to the correction circuit 19. For this reason, the same control as in the second embodiment is performed.

【0074】ただし、面内黒レベル補正動作のうち、黒
レベルデータをフレーム間で伝播させず、フレーム毎に
独立した黒レベル補正を行う独立面内黒レベル補正動作
については次の通りとする。
However, in the in-plane black level correction operation, the independent in-plane black level correction operation for performing independent black level correction for each frame without transmitting black level data between frames is as follows.

【0075】まず、第1の領域の検出時においては、選
択回路22はu端子から入力した第1の領域の黒レベル
の平均値を選択して補正回路19に出力する。この際、
時定数データ選択回路21は、b2端子から入力した第
1の領域の黒レベルの平均値を時定数演算回路18のA
端子に出力し、c2端子から入力した1ライン当りの黒
レベルの平均値を時定数演算回路18のB端子に出力す
るが、この段階では、ライン黒レベル算出回路15bの
処理が行われていないため、時定数演算が実行されな
い。
First, at the time of detection of the first area, the selection circuit 22 selects the average value of the black level of the first area input from the u terminal and outputs it to the correction circuit 19. On this occasion,
The time constant data selection circuit 21 compares the average value of the black level of the first area inputted from the terminal b2 with
The average value of the black level per line input from the terminal c2 is output to the terminal B of the time constant calculation circuit 18. At this stage, the processing of the line black level calculation circuit 15b is not performed. Therefore, the time constant calculation is not performed.

【0076】次に有効画素領域の1ライン目の走査が始
まると、補正回路19は、有効画像データから選択回路
22により選択された第1の領域の黒レベルの平均値を
減算して、1ライン目の黒レベル補正を行う。次に走査
が第2の領域の黒レベルクリップライン「エ」に達する
と、ライン黒レベル算出回路15bが「エ」の32画素
の黒レベルを積分し、その平均値を時定数データ選択回
路21に出力する。
Next, when the scanning of the first line of the effective pixel area starts, the correction circuit 19 subtracts the average value of the black level of the first area selected by the selection circuit 22 from the effective image data, and The black level of the line is corrected. Next, when the scanning reaches the black level clip line "D" in the second area, the line black level calculation circuit 15b integrates the black levels of the 32 pixels "D", and the average value is used as the time constant data selection circuit 21. Output to

【0077】このとき既にA端子に入力されている第1
の領域の黒レベルの平均値と、c2端子を経由してB端
子に入力された「エ」の黒レベルの平均値との演算が時
定数演算回路18で行われ、その演算結果がC端子から
時定数データ選択回路21及び選択回路22に出力され
る。
At this time, the first signal already input to the A terminal
The average value of the black level in the region and the average value of the black level of "D" input to the B terminal via the c2 terminal are calculated by the time constant calculating circuit 18, and the calculation result is obtained by the C terminal. Are output to the time constant data selection circuit 21 and the selection circuit 22.

【0078】次に、第2の領域の「エ」の黒レベル検出
が完了すると、選択手段22がv端子から入力した時定
数演算回路18の演算結果である黒レベル基準データを
選択して補正回路19に出力する。
Next, when the black level detection of "D" in the second area is completed, the selecting means 22 selects and corrects the black level reference data which is the calculation result of the time constant calculation circuit 18 inputted from the v terminal. Output to the circuit 19.

【0079】次に、画像有効領域の2ライン目の走査が
始まると、補正回路19は、有効画像データから選択回
路22により選択された時定数演算回路18の演算結果
を減算して、2ライン目の黒レベル補正を行う。以降、
2ライン目と同様の制御を行うことにより、最終102
4ラインまでライン毎に黒レベル補正を行う。上記制御
をフレーム毎に繰り返すことにより、黒レベルデータを
フレーム間で伝播させず、フレーム毎に独立した黒レベ
ル補正を行う独立面内黒レベル補正動作が可能となる。
Next, when the scanning of the second line of the image effective area starts, the correction circuit 19 subtracts the operation result of the time constant operation circuit 18 selected by the selection circuit 22 from the effective image data, and Perform eye black level correction. Or later,
By performing the same control as in the second line, the final 102
Black level correction is performed for each line up to four lines. By repeating the above control for each frame, an independent in-plane black level correction operation for performing independent black level correction for each frame without transmitting black level data between frames becomes possible.

【0080】以上で明らかなように、この実施の形態3
によれば、フレーム黒レベル算出回路16aにより算出
された1フレーム当りの黒レベルの平均値又は時定数演
算回路18により演算された黒レベル基準データを選択
して補正回路19に出力する選択回路22を設けたの
で、1つの回路で様々な黒レベル補正動作を選択して、
精度の高い黒レベル検出を実現することが可能となる。
その結果、より汎用性の高い黒レベル補正装置が得られ
る効果がある。
As is clear from the above, the third embodiment
The selection circuit 22 selects the average value of the black level per frame calculated by the frame black level calculation circuit 16a or the black level reference data calculated by the time constant calculation circuit 18 and outputs the selected data to the correction circuit 19. Provided, one circuit can select various black level correction operations,
It is possible to realize highly accurate black level detection.
As a result, there is an effect that a more versatile black level correction device can be obtained.

【0081】実施の形態4.図9はこの発明の実施の形
態4による黒レベル補正装置を示す構成図であり、図に
おいて、図7と同一符号は同一または相当部分を示すの
で説明を省略する。23は所望の黒レベルの固定値を記
憶する黒レベル固定値記憶部(固定値記憶手段)、24
は黒レベル固定値記憶部23により記憶されている固定
値又は選択回路22の出力値を選択して補正回路19に
出力する選択回路(第2の選択手段)である。図10は
時定数データ選択回路21及び選択回路22,24の選
択結果を示す説明図である。
Embodiment 4 FIG. 9 is a block diagram showing a black level correcting apparatus according to Embodiment 4 of the present invention. In the figure, the same reference numerals as those in FIG. 23, a black level fixed value storage unit (fixed value storage unit) for storing a desired black level fixed value;
Is a selection circuit (second selection means) that selects a fixed value stored in the black level fixed value storage unit 23 or an output value of the selection circuit 22 and outputs the selected value to the correction circuit 19. FIG. 10 is an explanatory diagram showing selection results of the time constant data selection circuit 21 and the selection circuits 22 and 24.

【0082】次に動作について説明する。フレーム伝播
黒レベル補正動作,面内黒レベル補正動作及び独立面内
黒レベル補正動作においては、選択回路24が常にx端
子から入力した選択回路22の出力値を選択して補正回
路19に出力する。このため、上記実施の形態3と同様
な制御となる。
Next, the operation will be described. In the frame propagation black level correction operation, the in-plane black level correction operation, and the independent in-plane black level correction operation, the selection circuit 24 always selects the output value of the selection circuit 22 input from the x terminal and outputs it to the correction circuit 19. . Therefore, the control is the same as in the third embodiment.

【0083】一方、黒レベルの検出動作を行わず、予め
設定した黒レベル固定値により黒レベル補正を行う場合
については次の通りとする。
On the other hand, the case where the black level correction is performed with a preset black level fixed value without performing the black level detection operation is as follows.

【0084】固定値黒レベル補正動作においては、選択
回路24はw端子から入力した黒レベル固定値を選択し
て補正回路19に出力する。次に、画像有効領域の1ラ
イン目の走査が始まると、補正回路19は、有効画像デ
ータから選択回路24により選択された黒レベル固定値
を減算して、1ライン目の黒レベル補正を行う。
In the fixed value black level correction operation, the selection circuit 24 selects the black level fixed value input from the w terminal and outputs it to the correction circuit 19. Next, when the scanning of the first line of the image effective area starts, the correction circuit 19 performs the black level correction of the first line by subtracting the black level fixed value selected by the selection circuit 24 from the effective image data. .

【0085】以降、1ライン目と同様の制御を行うこと
により、最終1024ラインまでライン毎に黒レベル補
正を行う。上記制御を繰り返すことにより、黒レベルの
検出動作を行わず、予め設定した黒レベル固定値で黒レ
ベル補正を行う固定値黒レベル補正動作が可能となる。
Thereafter, by performing the same control as that for the first line, black level correction is performed for each line up to the last 1024 lines. By repeating the above control, it is possible to perform a fixed value black level correction operation for performing black level correction with a preset black level fixed value without performing a black level detection operation.

【0086】以上で明らかなように、この実施の形態4
によれば、黒レベル固定値記憶部23により記憶されて
いる固定値又は選択回路22の出力値を選択して補正回
路19に出力する選択回路24を設けたので、1つの回
路で様々な黒レベル補正動作を選択して、精度の高い黒
レベル検出を実現することが可能となる。その結果、よ
り汎用性の高い黒レベル補正装置が得られる効果があ
る。
As is apparent from the above, the fourth embodiment
According to the first embodiment, the selection circuit 24 for selecting the fixed value stored in the black level fixed value storage unit 23 or the output value of the selection circuit 22 and outputting the selected value to the correction circuit 19 is provided. By selecting the level correction operation, it is possible to realize highly accurate black level detection. As a result, there is an effect that a more versatile black level correction device can be obtained.

【0087】なお、この実施の形態4における黒レベル
固定値記憶部23は、予め所望する黒レベルの固定値が
設定されるが、マイクロプロセッサに置き換えるように
すれば、任意の値を設定することが可能となり、更に汎
用性を高めることが可能となる。
In the black level fixed value storage unit 23 in the fourth embodiment, a desired fixed value of the black level is set in advance, but if it is replaced with a microprocessor, an arbitrary value can be set. Is possible, and versatility can be further improved.

【0088】実施の形態5.図11はこの発明の実施の
形態5による黒レベル補正装置を示す構成図であり、図
において、図9と同一符号は同一または相当部分を示す
ので説明を省略する。25は所望の黒レベルの初期値を
記憶する黒レベル初期値記憶部(初期値記憶手段)、2
6は黒レベル初期値記憶部25により記憶されている初
期値又は時定数演算回路18により演算された黒レベル
基準値データを選択して選択回路22に出力する選択回
路(第3の選択手段)である。図12は時定数データ選
択回路21及び選択回路22,24,26の選択結果を
示す説明図である。
Embodiment 5 FIG. 11 is a configuration diagram showing a black level correction device according to Embodiment 5 of the present invention. In the figure, the same reference numerals as those in FIG. 9 denote the same or corresponding parts, and a description thereof will be omitted. Reference numeral 25 denotes a black level initial value storage unit (initial value storage unit) for storing a desired black level initial value;
Reference numeral 6 denotes a selection circuit (third selection means) that selects the initial value stored in the black level initial value storage unit 25 or the black level reference value data calculated by the time constant calculation circuit 18 and outputs it to the selection circuit 22. It is. FIG. 12 is an explanatory diagram showing selection results of the time constant data selection circuit 21 and the selection circuits 22, 24, and 26.

【0089】次に動作について説明する。選択回路26
がy端子から入力する黒レベル基準値データを選択する
場合には、上記実施の形態4と同様であるため説明を省
略する。ただし、フレーム伝播黒レベル補正動作におけ
る第1フレームの黒レベル補正時と、面内黒レベル補正
動作における第1ライン目の黒レベル補正時には、選択
回路26がz端子から入力する初期値を選択する。この
場合、選択回路22はv端子のデータを選択し、選択回
路24はx端子のデータを選択する。
Next, the operation will be described. Selection circuit 26
When selecting the black level reference value data input from the y terminal, the description is omitted because it is the same as in the fourth embodiment. However, during the black level correction of the first frame in the frame propagation black level correction operation and the black level correction of the first line in the in-plane black level correction operation, the selection circuit 26 selects the initial value input from the z terminal. . In this case, the selection circuit 22 selects data at the v terminal, and the selection circuit 24 selects data at the x terminal.

【0090】選択回路26がz端子から入力する初期値
を選択する場合、補正回路19は、有効画像データから
当該初期値を減算して、第1フレーム又は1ライン目の
黒レベル補正を行う。第1フレーム又は1ライン目以降
の黒レベル補正は、上記実施の形態4と同様に行う。
When the selection circuit 26 selects the initial value input from the z terminal, the correction circuit 19 subtracts the initial value from the effective image data and performs the black level correction of the first frame or the first line. The black level correction for the first frame or the first and subsequent lines is performed in the same manner as in the fourth embodiment.

【0091】以上で明らかなように、この実施の形態5
によれば、黒レベル初期値記憶部25により記憶されて
いる初期値又は時定数演算回路18により演算された黒
レベル基準値データを選択して選択回路22に出力する
選択回路26を設けたので、1つの回路で様々な黒レベ
ル補正動作を選択して、精度の高い黒レベル検出を実現
することが可能となる。その結果、より汎用性の高い黒
レベル補正装置が得られる効果がある。
As is clear from the above, the fifth embodiment
According to the present invention, the selection circuit 26 is provided for selecting the initial value stored in the black level initial value storage unit 25 or the black level reference value data calculated by the time constant calculation circuit 18 and outputting it to the selection circuit 22. It is possible to select various black level correction operations with one circuit and realize highly accurate black level detection. As a result, there is an effect that a more versatile black level correction device can be obtained.

【0092】なお、この実施の形態5における黒レベル
初期値記憶部25は、予め所望する黒レベルの初期値が
設定されているが、マイクロプロセッサに置き換えるよ
うにすれば、任意の初期値を設定することが可能とな
り、更に汎用性を高めることが可能となる。
Although the desired black level initial value is set in advance in the black level initial value storage unit 25 in the fifth embodiment, an arbitrary initial value can be set by replacing it with a microprocessor. And the versatility can be further improved.

【0093】実施の形態6.図13はこの発明の実施の
形態6による黒レベル補正装置のライン黒レベル算出回
路15及びフレーム黒レベル算出回路16の内部を示す
構成図であり、図において、31はクリップする光学的
黒領域の水平画素数を設定するとともに、シフト演算回
路33のシフト回数を設定する除数参照回路(設定回
路)、32は除数参照回路31から出力された水平画素
数分だけ1ライン当りの黒レベルのデータを積分する黒
レベル積分回路、33は黒レベル積分回路32の積分結
果を当該シフト回数分だけシフト演算するシフト演算回
路である。なお、黒レベル積分回路32及びシフト演算
回路33から演算回路が構成されている。
Embodiment 6 FIG. FIG. 13 is a configuration diagram showing the insides of the line black level calculation circuit 15 and the frame black level calculation circuit 16 of the black level correction device according to the sixth embodiment of the present invention. A divisor reference circuit (setting circuit) 32 for setting the number of horizontal pixels and for setting the number of shifts of the shift operation circuit 33. The divisor reference circuit 32 outputs black level data per line by the number of horizontal pixels output from the divisor reference circuit 31. A black level integration circuit 33 for integrating is a shift operation circuit for shifting the integration result of the black level integration circuit 32 by the number of shifts. Note that an operation circuit is configured by the black level integration circuit 32 and the shift operation circuit 33.

【0094】34はクリップする光学的黒領域の垂直ラ
イン数を設定するとともに、シフト演算回路36のシフ
ト回数を設定する除数参照回路(設定回路)、35は除
数参照回路34から出力された垂直ライン数分だけ黒レ
ベルのライン平均値を積分する黒レベル積分回路、36
は黒レベル積分回路35の積分結果を当該シフト回数分
だけシフト演算するシフト演算回路である。なお、黒レ
ベル積分回路35及びシフト演算回路36から演算回路
が構成されている。
Reference numeral 34 denotes a divisor reference circuit (setting circuit) for setting the number of vertical lines of the optical black area to be clipped and the number of shifts of the shift operation circuit 36. Reference numeral 35 denotes a vertical line output from the divisor reference circuit 34. A black level integration circuit for integrating the average value of the black level line by several minutes, 36
Is a shift operation circuit that shifts the integration result of the black level integration circuit 35 by the number of shifts. Note that an arithmetic circuit is configured by the black level integration circuit 35 and the shift arithmetic circuit 36.

【0095】次に動作について説明する。上記実施の形
態1等では、ライン黒レベル算出回路15及びフレーム
黒レベル算出回路16の内部構成については特に言及し
ていないが、図13のように構成してもよい。
Next, the operation will be described. In the first embodiment and the like, the internal configurations of the line black level calculation circuit 15 and the frame black level calculation circuit 16 are not particularly mentioned, but may be configured as shown in FIG.

【0096】例えば、センサ面が図14に示すように、
有効画素領域と光学的黒領域が大別され、光学的黒領域
のうち、32画素×512ラインを黒レベルクリップ領
域とする場合、図15に示すように、ライン黒レベル算
出回路15の除数参照回路31には設定値H’5(クリ
ップ画素数“32”、シフト回数“5”)が設定され、
フレーム黒レベル算出回路16の除数参照回路34には
設定値H’9(クリップライン数“512”、シフト回
数“9”)が設定される。
For example, as shown in FIG.
The effective pixel area and the optical black area are roughly classified, and when 32 pixels × 512 lines are set as the black level clip area in the optical black area, as shown in FIG. 15, refer to the divisor of the line black level calculation circuit 15. A set value H′5 (the number of clipped pixels “32”, the number of shifts “5”) is set in the circuit 31.
The set value H′9 (the number of clip lines “512”, the number of shifts “9”) is set in the divisor reference circuit 34 of the frame black level calculation circuit 16.

【0097】ライン黒レベル算出回路15の黒レベル積
分回路32は、除数参照回路31から出力された水平画
素数分だけ1ライン当りの黒レベルのデータを積分す
る。即ち、設定値H’5が除数参照回路31に設定され
た場合、32画素分の黒レベルのデータを積分する。ラ
イン黒レベル算出回路15のシフト演算回路33は、黒
レベル積分回路32の積分結果を当該シフト回数分だけ
シフト演算する。即ち、設定値H’5が除数参照回路3
1に設定された場合、黒レベル積分回路32の積分結果
を5ビット分だけシフト演算する。
The black level integration circuit 32 of the line black level calculation circuit 15 integrates black level data per line by the number of horizontal pixels output from the divisor reference circuit 31. That is, when the set value H'5 is set in the divisor reference circuit 31, the black level data of 32 pixels is integrated. The shift operation circuit 33 of the line black level calculation circuit 15 shifts the integration result of the black level integration circuit 32 by the number of shifts. That is, the set value H′5 is the divisor reference circuit 3
When set to 1, the integration result of the black level integration circuit 32 is shifted by 5 bits.

【0098】これにより、ライン黒レベル算出回路15
のシフト演算回路33では、1ライン当たりの黒レベル
のデータの平均値が算出され、その平均値がフレーム黒
レベル算出回路16及び時定数データ選択回路17のc
1端子に出力される。上記のようにして、「ア」のライ
ンの処理が完了すると、以下、「イ」、「ウ」の順に5
12のラインまで同様の処理が行われる。
Thus, the line black level calculation circuit 15
In the shift operation circuit 33, the average value of the black level data per line is calculated, and the average value is calculated by the c of the frame black level calculation circuit 16 and the time constant data selection circuit 17.
Output to one terminal. As described above, when the processing of the line “A” is completed, the processing of “A” and “U” is performed in the following order.
Similar processing is performed up to 12 lines.

【0099】フレーム黒レベル算出回路16の黒レベル
積分回路35は、ライン黒レベル算出回路15から1ラ
イン当たりの黒レベルのデータの平均値を受けると、除
数参照回路34から出力された垂直ライン数分だけ黒レ
ベルのライン平均値を積分する(1フレーム当りの黒レ
ベルのデータを積分する)。即ち、設定値H’9が除数
参照回路34に設定された場合、512ライン分だけ黒
レベルのライン平均値を積分する。
When the black level integration circuit 35 of the frame black level calculation circuit 16 receives the average value of the black level data per line from the line black level calculation circuit 15, the number of vertical lines output from the divisor reference circuit 34 The line average value of the black level is integrated by the minute (the data of the black level per frame is integrated). That is, when the set value H'9 is set in the divisor reference circuit 34, the line average value of the black level for 512 lines is integrated.

【0100】フレーム黒レベル算出回路16のシフト演
算回路36は、黒レベル積分回路35の積分結果を当該
シフト回数分だけシフト演算する。即ち、設定値H’9
が除数参照回路34に設定された場合、黒レベル積分回
路32の積分結果を9ビット分だけシフト演算する。こ
れにより、フレーム黒レベル算出回路16のシフト演算
回路36では、1フレーム当たりの黒レベルのデータの
平均値が算出され、その平均値が時定数データ選択回路
17のb1端子に出力される。
The shift operation circuit 36 of the frame black level calculation circuit 16 shifts the integration result of the black level integration circuit 35 by the number of shifts. That is, the set value H'9
Is set in the divisor reference circuit 34, the integration result of the black level integration circuit 32 is shifted by 9 bits. Thus, the shift operation circuit 36 of the frame black level calculation circuit 16 calculates the average value of the black level data per frame, and outputs the average value to the b1 terminal of the time constant data selection circuit 17.

【0101】以降は、上記実施の形態1等と同様である
ため説明を省略する。以上で明らかなように、この実施
の形態6によれば、フレーム伝播黒レベル補正動作と面
内黒レベル補正動作を1つの回路で実現することが可能
となり、また、除数参照回路31,34とシフト演算回
路33,36を備えることにより、回路規模の増大を招
くことなく、より汎用性の高い黒レベル補正装置を提供
することができる。
The subsequent steps are the same as those in the first embodiment and the like, and will not be described. As is clear from the above, according to the sixth embodiment, the frame propagation black level correction operation and the in-plane black level correction operation can be realized by one circuit, and the divisor reference circuits 31, 34 and By providing the shift operation circuits 33 and 36, a more versatile black level correction device can be provided without increasing the circuit scale.

【0102】なお、この実施の形態6では、黒レベルク
リップ領域を32画素×512行としたが、黒レベルク
リップ領域は水平/垂直がそれぞれ2nであればよく、
それに応じて除数参照回路31,34に設定する値を変
更すればよい。
[0102] In the sixth embodiment, although the black level clipping region with 32 pixels × 512 lines, black level clipping region may be a respective horizontal / vertical 2 n,
The values set in the divisor reference circuits 31 and 34 may be changed accordingly.

【0103】実施の形態7.図16はこの発明の実施の
形態7による黒レベル補正装置のライン黒レベル算出回
路15及びフレーム黒レベル算出回路16の内部を示す
構成図であり、図において、図13と同一符号は同一ま
たは相当部分を示すので説明を省略する。31aはモー
ド1で使用する除数参照回路31と同様の除数参照回路
(設定回路)、31bはモード2で使用する除数参照回
路31と同様の除数参照回路(設定回路)、41は除数
参照回路31a又は除数参照回路31bにより設定され
た水平画素数を選択する画素数選択回路、42は除数参
照回路31a又は除数参照回路31bにより設定された
シフト回数を選択するシフト数選択回路である。
Embodiment 7 FIG. FIG. 16 is a configuration diagram showing the insides of the line black level calculation circuit 15 and the frame black level calculation circuit 16 of the black level correction device according to the seventh embodiment of the present invention. The description is omitted because the portion is shown. 31a is a divisor reference circuit (setting circuit) similar to the divisor reference circuit 31 used in mode 1, 31b is a divisor reference circuit (setting circuit) similar to the divisor reference circuit 31 used in mode 2, and 41 is a divisor reference circuit 31a. Alternatively, a pixel number selection circuit for selecting the number of horizontal pixels set by the divisor reference circuit 31b, and a shift number selection circuit for selecting the number of shifts set by the divisor reference circuit 31a or the divisor reference circuit 31b.

【0104】34aはモード1で使用する除数参照回路
34と同様の除数参照回路(設定回路)、34bはモー
ド2で使用する除数参照回路34と同様の除数参照回路
(設定回路)、43は除数参照回路34a又は除数参照
回路34bにより設定された垂直ライン数を選択するラ
イン数選択回路、44は除数参照回路34a又は除数参
照回路34bにより設定されたシフト回数を選択するシ
フト数選択回路である。
Reference numeral 34a denotes a divisor reference circuit (setting circuit) similar to the divisor reference circuit 34 used in mode 1, 34b denotes a divisor reference circuit (setting circuit) similar to the divisor reference circuit 34 used in mode 2, and 43 denotes a divisor. A line number selection circuit 44 selects the number of vertical lines set by the reference circuit 34a or the divisor reference circuit 34b, and a shift number selection circuit 44 selects the number of shifts set by the divisor reference circuit 34a or the divisor reference circuit 34b.

【0105】次に動作について説明する。この実施の形
態7は、ライン黒レベル算出回路15及びフレーム黒レ
ベル算出回路16が複数の除数参照回路をそれぞれ有
し、このうち一つの除数参照回路を選択するようにした
ものである。
Next, the operation will be described. In the seventh embodiment, the line black level calculation circuit 15 and the frame black level calculation circuit 16 each have a plurality of divisor reference circuits, and one of the divisor reference circuits is selected.

【0106】近年、撮像素子12の高画素化が進展して
おり、これに伴い撮像素子12からの画像データの読出
し時間も増加する傾向にある。このことは、例えば、デ
ィジタルスチルカメラにおける画角合せ、いわゆるファ
インダ動作時において、レスポンスの低下を招くことに
なる。そこで、最近では、通常撮影時には画質を優先
し、全ての画素データを読み出す全画素読出しモード
と、ファインダ動作時には読み出し速度を優先して、垂
直あるいは水平方向に間引きを行う高速読出しモードの
二つを備えた撮像素子12が存在している。図16にお
けるモード選択信号は、全画素読出しモード又は高速読
出しモードを選択する信号であり、この実施の形態7で
は、モード1を全画素読出しモード、モード2を高速読
出しモードとして説明する。
In recent years, the number of pixels of the image sensor 12 has been increased, and accordingly, the time required to read image data from the image sensor 12 tends to increase. This leads to a decrease in response, for example, when adjusting the angle of view in a digital still camera, that is, during finder operation. Therefore, recently, an all-pixel reading mode in which image quality is prioritized during normal shooting and all pixel data is read out, and a high-speed reading mode in which reading is prioritized in viewfinder operation and vertical or horizontal thinning-out is performed are given. There is an imaging device 12 provided. The mode selection signal in FIG. 16 is a signal for selecting the all-pixel reading mode or the high-speed reading mode. In the seventh embodiment, mode 1 is described as the all-pixel reading mode, and mode 2 is described as the high-speed reading mode.

【0107】また、この実施の形態7では、モード1
(全画素読出しモード)における黒レベルのクリップ領
域を32画素×512ライン(図14を参照)とし、モ
ード2(高速読出しモード)におけるクリップ領域を1
6画素×128ラインとして暗電流基準値を検出するも
のとする。
In the seventh embodiment, mode 1
The clip area of the black level in (all pixel read mode) is set to 32 pixels × 512 lines (see FIG. 14), and the clip area in mode 2 (high-speed read mode) is set to 1
It is assumed that the dark current reference value is detected as 6 pixels × 128 lines.

【0108】この場合、ライン黒レベル算出回路15の
除数参照回路31aには、図15における設定値として
H’5を設定することにより、モード1(全画素読出し
モード)で使用する水平画素数“32”とシフト回数
“5”が設定され、ライン黒レベル算出回路15の除数
参照回路31bには、設定値としてH’4を設定するこ
とにより、モード2(高速読出しモード)で使用する水
平画素数“16”とシフト回数“4”が設定される。
In this case, by setting H′5 as the set value in FIG. 15 in the divisor reference circuit 31a of the line black level calculation circuit 15, the number of horizontal pixels used in mode 1 (all pixel read mode) is set. 32 "and the number of shifts" 5 "are set. In the divisor reference circuit 31b of the line black level calculation circuit 15, H'4 is set as a set value, so that horizontal pixels used in mode 2 (high-speed read mode) are set. The number “16” and the number of shifts “4” are set.

【0109】また、フレーム黒レベル算出回路16の除
数参照回路34aには、設定値としてH’9を設定する
ことにより、モード1(全画素読出しモード)で使用す
る垂直ライン数“512”とシフト回数“9”が設定さ
れ、フレーム黒レベル算出回路16の除数参照回路34
bには、設定値としてH’7を設定することにより、モ
ード2(高速読出しモード)で使用する垂直ライン数
“128”とシフト回数“7”が設定される。
Also, by setting H'9 as a set value in the divisor reference circuit 34a of the frame black level calculation circuit 16, the number of vertical lines used in mode 1 (all pixel reading mode) is shifted to "512". The number “9” is set, and the divisor reference circuit 34 of the frame black level calculation circuit 16 is set.
By setting H'7 as a set value in b, the number of vertical lines “128” and the number of shifts “7” used in mode 2 (high-speed read mode) are set.

【0110】ここで、モード選択信号によってモード1
(全画素読出しモード)が選択されると、ライン黒レベ
ル算出回路15の画素数選択回路41は、水平画素数
“32”を黒レベル積分回路32に出力し、シフト数選
択回路42は、シフト回数“5”をシフト演算回路33
に出力する。また、フレーム黒レベル算出回路16のラ
イン数選択回路43は、垂直ライン数“512”を黒レ
ベル積分回路35に出力し、シフト数選択回路44は、
シフト回数“9”をシフト演算回路36に出力する。こ
のとき黒レベル積分回路32,35、シフト演算回路3
3,36は上記実施の形態6と同様な動作を行うので、
ここでは説明を省略する。
Here, mode 1 is selected by the mode selection signal.
When (all-pixel read mode) is selected, the pixel number selection circuit 41 of the line black level calculation circuit 15 outputs the horizontal pixel number “32” to the black level integration circuit 32, and the shift number selection circuit 42 Shift operation circuit 33
Output to Further, the line number selection circuit 43 of the frame black level calculation circuit 16 outputs the number of vertical lines “512” to the black level integration circuit 35, and the shift number selection circuit 44
The number of shifts “9” is output to the shift operation circuit 36. At this time, the black level integration circuits 32 and 35 and the shift operation circuit 3
3 and 36 perform the same operation as in the sixth embodiment,
Here, the description is omitted.

【0111】一方、モード選択信号によってモード2
(高速読出しモード)が選択されると、ライン黒レベル
算出回路15の画素数選択回路41は、水平画素数“1
6”を黒レベル積分回路32に出力し、シフト数選択回
路42は、シフト回数“4”をシフト演算回路33に出
力する。また、フレーム黒レベル算出回路16のライン
数選択回路43は、垂直ライン数“128”を黒レベル
積分回路35に出力し、シフト数選択回路44は、シフ
ト回数“7”をシフト演算回路36に出力する。
On the other hand, in the mode 2 by the mode selection signal,
When (high-speed read mode) is selected, the pixel number selection circuit 41 of the line black level calculation circuit 15 outputs the horizontal pixel number “1”.
6 "to the black level integration circuit 32, the shift number selection circuit 42 outputs the number of shifts" 4 "to the shift operation circuit 33. The line number selection circuit 43 of the frame black level calculation circuit 16 outputs The number of lines “128” is output to the black level integration circuit 35, and the shift number selection circuit 44 outputs the number of shifts “7” to the shift operation circuit 36.

【0112】以上で明らかなように、この実施の形態7
によれば、モード毎に除数参照回路を備えることによ
り、モード選択信号のみで除数参照回路の出力を選択す
ることが可能となる。これにより、モード変更時におい
て図15の設定値を書き換える必要がなくなり、レジス
タライト動作時間を低減することが可能となる。なお、
この実施の形態7では、モード1及びモード2の二つの
除数参照回路を備えているが、必要に応じてその数は増
やせばよい。
As is clear from the above, this embodiment 7
According to this, by providing the divisor reference circuit for each mode, it is possible to select the output of the divisor reference circuit only by the mode selection signal. This eliminates the need to rewrite the set values in FIG. 15 when changing the mode, and can reduce the register write operation time. In addition,
In the seventh embodiment, two divisor reference circuits of mode 1 and mode 2 are provided, but the number may be increased as necessary.

【0113】実施の形態8.図17はこの発明の実施の
形態8による黒レベル補正装置を示す構成図であり、図
において、図1と同一符号は同一または相当部分を示す
ので説明を省略する。51は黒レベルの補正を行う場合
に限り、A/D変換器14から出力された画像データを
ライン黒レベル算出回路15と補正回路19に出力する
バイパス選択回路(接続手段)である。
Embodiment 8 FIG. FIG. 17 is a block diagram showing a black level correcting apparatus according to Embodiment 8 of the present invention. In the figure, the same reference numerals as those in FIG. Reference numeral 51 denotes a bypass selection circuit (connection means) that outputs the image data output from the A / D converter 14 to the line black level calculation circuit 15 and the correction circuit 19 only when performing black level correction.

【0114】次に動作について説明する。バイパス選択
回路51は、バイパス制御信号が黒レベルの補正を行う
旨を示す場合には、A/D変換器14から出力された画
像データをライン黒レベル算出回路15と補正回路19
に出力する。これにより、上記実施の形態1と同様にし
て、黒レベルの補正が行われる。一方、バイパス制御信
号が黒レベルの補正を行わない旨を示す場合には、A/
D変換器14から出力された画像データは、ライン黒レ
ベル算出回路15に出力されず、補正回路19にのみ出
力される。これにより、黒レベルの補正が行われなくな
るが、ライン黒レベル算出回路15,フレーム黒レベル
算出回路16,時定数データ選択回路17及び時定数演
算回路18がバイパスされて、不必要な動作が回避され
るので、消費電力の低減化を図ることができる。
Next, the operation will be described. When the bypass control signal indicates that the black level is to be corrected, the bypass selection circuit 51 converts the image data output from the A / D converter 14 into the line black level calculation circuit 15 and the correction circuit 19.
Output to Thus, the correction of the black level is performed in the same manner as in the first embodiment. On the other hand, when the bypass control signal indicates that the black level is not corrected, A /
The image data output from the D converter 14 is not output to the line black level calculation circuit 15 but is output only to the correction circuit 19. As a result, the black level is not corrected, but the line black level calculating circuit 15, the frame black level calculating circuit 16, the time constant data selecting circuit 17 and the time constant calculating circuit 18 are bypassed, and unnecessary operations are avoided. Therefore, power consumption can be reduced.

【0115】実施の形態9.図18はこの発明の実施の
形態9による黒レベル補正装置を示す構成図であり、図
において、図17と同一符号は同一または相当部分を示
すので説明を省略する。52は補正開始許可信号が有意
な場合には補正回路19による補正後の画像データを出
力し、その補正開始許可信号が無意な場合にはA/D変
換器14から出力された画像データをそのまま出力する
補正開始選択回路(補正手段)である。
Embodiment 9 FIG. FIG. 18 is a block diagram showing a black level correcting apparatus according to Embodiment 9 of the present invention. In the figure, the same reference numerals as those in FIG. Numeral 52 outputs the image data corrected by the correction circuit 19 when the correction start permission signal is significant, and the image data output from the A / D converter 14 as it is when the correction start permission signal is insignificant. A correction start selection circuit (correction means) for outputting.

【0116】次に動作について説明する。電源投入直後
の撮像素子12は、蓄積される暗電流が不安定な状態に
あるため、黒レベル補正の動作を禁止する必要がある。
黒レベル補正の動作を禁止する場合、補正開始許可信号
を無意にすればよく、補正開始選択回路52は、A/D
変換器14から出力された画像データをそのまま外部に
出力する。
Next, the operation will be described. Immediately after the power is turned on, the dark level stored in the image sensor 12 is in an unstable state, so that it is necessary to prohibit the black level correction operation.
When the operation of the black level correction is prohibited, the correction start permission signal may be made insignificant, and the correction start selection circuit 52 outputs the A / D signal.
The image data output from the converter 14 is output as it is to the outside.

【0117】一方、補正開始選択回路52は、補正開始
許可信号が有意な場合には補正回路19による補正後の
画像データを外部に出力する。以上で明らかなように、
この実施の形態9によれば、黒レベル補正の有無を補正
開始許可信号によって任意に設定することが可能とな
る。
On the other hand, when the correction start permission signal is significant, the correction start selection circuit 52 outputs the image data corrected by the correction circuit 19 to the outside. As is clear above,
According to the ninth embodiment, the presence / absence of black level correction can be arbitrarily set by a correction start permission signal.

【0118】実施の形態10.図19はこの発明の実施
の形態10による黒レベル補正装置の補正回路19の内
部を示す構成図であり、図において、61は撮像素子1
2の暗電流特性に応じた指定値を設定する指定値設定レ
ジスタ、62は時定数演算回路18により演算された黒
レベル基準データから指定値を減算する指定値減算回
路、63はA/D変換器14より出力された画像データ
から指定値減算回路62の減算結果を減算する黒レベル
減算回路である。
Embodiment 10 FIG. FIG. 19 is a configuration diagram showing the inside of the correction circuit 19 of the black level correction device according to the tenth embodiment of the present invention.
2, a designated value setting register for setting a designated value according to the dark current characteristic; 62, a designated value subtracting circuit for subtracting the designated value from the black level reference data calculated by the time constant calculating circuit 18; 63, A / D conversion A black level subtraction circuit for subtracting the subtraction result of the designated value subtraction circuit 62 from the image data output from the unit 14.

【0119】次に動作について説明する。蓄積される暗
電流は撮像素子12の特性に依存し、暗電流の値が高い
場合には、検出する黒レベルのデータも大きくなるた
め、黒レベル補正において画質に影響を及ぼす場合があ
る。このような場合、撮像素子12の暗電流特性に応じ
た値を予め用意しておくことにより、画質の劣化を低減
することが可能となる。
Next, the operation will be described. The accumulated dark current depends on the characteristics of the image sensor 12, and when the value of the dark current is high, the data of the black level to be detected is large, which may affect the image quality in the black level correction. In such a case, by preparing a value corresponding to the dark current characteristic of the image sensor 12 in advance, it is possible to reduce the deterioration of the image quality.

【0120】即ち、指定値設定レジスタ61は、予め撮
像素子12の暗電流特性に応じた指定値を設定し、指定
値減算回路62は、時定数演算回路18から黒レベル基
準データを受けると、その黒レベル基準データから当該
指定値を減算する。これにより、黒レベル基準データか
ら余分な暗電流に相当する値が減算されることになる。
That is, the designated value setting register 61 sets a designated value according to the dark current characteristic of the image sensor 12 in advance, and the designated value subtracting circuit 62 receives the black level reference data from the time constant calculating circuit 18 when The specified value is subtracted from the black level reference data. As a result, a value corresponding to an extra dark current is subtracted from the black level reference data.

【0121】そして、黒レベル減算回路63は、A/D
変換器14より出力された画像データから指定値減算回
路62の減算結果を減算する。以上で明らかなように、
この実施の形態10によれば、暗電流特性の大きい撮像
素子12を使用する場合でも、画質の劣化を招くことな
く黒レベルの補正を行うことができる。
Then, the black level subtraction circuit 63 outputs the A / D
The subtraction result of the designated value subtraction circuit 62 is subtracted from the image data output from the converter 14. As is clear above,
According to the tenth embodiment, even when the image sensor 12 having a large dark current characteristic is used, the black level can be corrected without deteriorating the image quality.

【0122】実施の形態11.図20はこの発明の実施
の形態11による黒レベル補正装置の補正回路19の内
部を示す構成図であり、図において、図19と同一符号
は同一または相当部分を示すので説明を省略する。64
は環境に伴って変動する黒レベルのデータの変動分に相
当する指定値を設定する指定値設定レジスタ、65は時
定数演算回路18により演算された黒レベル基準データ
と指定値設定レジスタ64により設定された指定値を比
較し、その黒レベル基準データが指定値より大きいとき
イネーブル信号を出力する比較回路、66は比較回路6
5からイネーブル信号を受けると、指定値減算回路62
の減算結果を黒レベル減算回路63に出力し、比較回路
65からイネーブル信号を受けていないときは、時定数
演算回路18から出力された黒レベル基準データを黒レ
ベル減算回路63に出力する黒レベル選択回路である。
Embodiment 11 FIG. FIG. 20 is a configuration diagram showing the inside of the correction circuit 19 of the black level correction device according to the eleventh embodiment of the present invention. In the figure, the same reference numerals as those in FIG. 64
Is a designated value setting register for setting a designated value corresponding to the variation of the black level data which fluctuates with the environment, and 65 is set by the black level reference data calculated by the time constant calculating circuit 18 and the designated value setting register 64 The comparison circuit 66 compares the designated value and outputs an enable signal when the black level reference data is larger than the designated value.
5 receives the enable signal from the designated value subtracting circuit 62.
Is output to the black level subtraction circuit 63, and when the enable signal is not received from the comparison circuit 65, the black level reference data output from the time constant calculation circuit 18 is output to the black level subtraction circuit 63. It is a selection circuit.

【0123】次に動作について説明する。撮像を行う環
境によっては、黒レベルのデータが大きく変動すること
があり、黒レベル補正を行う際に画質に影響を及ぼす場
合がある。このようなとき、黒レベルのデータの変動分
に相当する指定値より黒レベル基準データが大きくなる
場合は、その黒レベル基準データから指定値を減算した
ものをもって黒レベル補正を行うことにより、画質の劣
化を低減することが可能となる。
Next, the operation will be described. Depending on the environment in which the image is taken, the data of the black level may fluctuate greatly, which may affect the image quality when performing the black level correction. In such a case, if the black level reference data is larger than the specified value corresponding to the variation of the black level data, the black level correction is performed by subtracting the specified value from the black level reference data to obtain the image quality. Can be reduced.

【0124】即ち、比較回路65は、時定数演算回路1
8により演算された黒レベル基準データと指定値設定レ
ジスタ64により設定された指定値を比較し、その黒レ
ベル基準データが指定値より大きいときイネーブル信号
を出力する。そして、黒レベル選択回路66は、比較回
路65からイネーブル信号を受けると(黒レベル基準デ
ータ>指定値の場合)、指定値減算回路62の減算結果
を黒レベル減算回路63に出力する。一方、比較回路6
5からイネーブル信号を受けていないときは(黒レベル
基準データ≦指定値の場合)、時定数演算回路18から
出力された黒レベル基準データを黒レベル減算回路63
に出力する。
That is, the comparison circuit 65 includes the time constant calculation circuit 1
8 and the designated value set by the designated value setting register 64, and outputs an enable signal when the black level reference data is larger than the designated value. Then, when receiving the enable signal from the comparison circuit 65 (when black level reference data> specified value), the black level selection circuit 66 outputs the subtraction result of the specified value subtraction circuit 62 to the black level subtraction circuit 63. On the other hand, the comparison circuit 6
5 (when black level reference data ≦ designated value), the black level reference data output from the time constant calculation circuit 18 is subtracted from the black level subtraction circuit 63.
Output to

【0125】以上で明らかなように、この実施の形態1
1によれば、環境によって黒レベルのデータが大きく変
動する場合でも、画質の劣化を招くことなく黒レベルの
補正を行うことができる。
As is apparent from the above, the first embodiment
According to 1, even when the black level data greatly fluctuates depending on the environment, the black level can be corrected without deteriorating the image quality.

【0126】実施の形態12.図21はこの発明の実施
の形態12による黒レベル補正装置を示す構成図であ
り、図において、図1と同一符号は同一または相当部分
を示すので説明を省略する。53は補正回路19による
補正後の画像データを入力して、ダイナミックレンジの
補正を行うダイナミックレンジ補正回路(補正手段)で
ある。
Embodiment 12 FIG. FIG. 21 is a block diagram showing a black level correcting apparatus according to Embodiment 12 of the present invention. In the figure, the same reference numerals as those in FIG. 1 denote the same or corresponding parts, and a description thereof will be omitted. Reference numeral 53 denotes a dynamic range correction circuit (correction means) for inputting the image data corrected by the correction circuit 19 and correcting the dynamic range.

【0127】次に動作について説明する。撮像を行う環
境によっては、黒レベルのデータが大きく変動する場合
がある。このような場合、補正回路19からはダイナミ
ックレンジが低下した画像データが出力されることにな
る。そこで、この実施の形態12では、ダイナミックレ
ンジ補正回路53が補正回路19による補正後の画像デ
ータを入力して、ダイナミックレンジの補正を行うこと
により、黒レベル補正による画質の劣化を低減する。
Next, the operation will be described. The black level data may fluctuate greatly depending on the environment in which the image is taken. In such a case, the correction circuit 19 outputs image data with a reduced dynamic range. Therefore, in the twelfth embodiment, the dynamic range correction circuit 53 inputs the image data corrected by the correction circuit 19 and corrects the dynamic range, thereby reducing the deterioration of the image quality due to the black level correction.

【0128】実施の形態13.図22はこの発明の実施
の形態13による黒レベル補正装置を示す構成図であ
り、図において、図1と同一符号は同一または相当部分
を示すので説明を省略する。54は時定数演算回路18
から出力された黒レベル基準データをフィールド識別信
号にしたがって黒レベルレジスタ55又は黒レベルレジ
スタ56に出力するレジスタ選択回路、55は光学的黒
領域内の第1フィールド(第1の領域)に属する黒レベ
ルのデータの平均値に基づいて更新された黒レベル基準
データを格納する黒レベルレジスタ、56は光学的黒領
域内の第2フィールド(第2の領域)に属する黒レベル
のデータの平均値に基づいて更新された黒レベル基準デ
ータを格納する黒レベルレジスタである。
Embodiment 13 FIG. FIG. 22 is a configuration diagram showing a black level correction apparatus according to Embodiment 13 of the present invention. In the figure, the same reference numerals as those in FIG. 54 is a time constant operation circuit 18
A register selecting circuit for outputting the black level reference data output from the black level register 55 or the black level register 56 in accordance with the field identification signal. The register selection circuit 55 includes black belonging to the first field (first area) in the optical black area. A black level register 56 for storing black level reference data updated based on the average value of the level data; a black level register 56 stores the average value of the black level data belonging to the second field (second area) in the optical black area; A black level register for storing black level reference data updated based on the black level reference data.

【0129】57は黒レベルレジスタ55に格納されて
いる黒レベル基準データと黒レベルレジスタ56に格納
されている黒レベル基準データとの平均値を算出する黒
レベル演算回路、58は動作制御信号を参照して時定数
演算回路18から出力された黒レベル基準データ又は黒
レベル演算回路57により算出された平均値を選択して
出力する動作選択回路である。なお、レジスタ選択回路
54,黒レベルレジスタ55,56,黒レベル演算回路
57及び動作選択回路58は更新手段を構成している。
Reference numeral 57 denotes a black level operation circuit for calculating an average value of the black level reference data stored in the black level register 55 and the black level reference data stored in the black level register 56, and 58 denotes an operation control signal. The operation selection circuit selects and outputs the black level reference data output from the time constant operation circuit 18 or the average value calculated by the black level operation circuit 57 with reference to the output. Note that the register selection circuit 54, the black level registers 55 and 56, the black level calculation circuit 57, and the operation selection circuit 58 constitute updating means.

【0130】次に動作について説明する。全画素読出し
モードにおいて、フィールド毎に画像データを出力し
て、1つのフレームを形成する撮像素子12が存在す
る。この実施の形態13では、2つのフィールドを出力
して1つのフレームを形成する撮像素子12を例にして
説明を行う。ここで、フィールド識別信号は、第1フィ
ールドと第2フィールドを識別するために黒レベル補正
装置の外部から与えられる信号であり、フレーム識別信
号は、第2フィールドの終了、即ち、フレームの終了を
通知するために外部から与えられる信号である。また、
動作制御信号は、上記実施の形態1の動作と実施の形態
13の動作を選択するための信号であり、「1」が通知
されているものとして説明する。
Next, the operation will be described. In the all-pixel reading mode, there is an image sensor 12 that outputs image data for each field to form one frame. In the thirteenth embodiment, a description will be given of an image sensor 12 that outputs two fields to form one frame. Here, the field identification signal is a signal provided from outside the black level correction device to identify the first field and the second field, and the frame identification signal indicates the end of the second field, that is, the end of the frame. This is a signal provided from outside to notify. Also,
The operation control signal is a signal for selecting the operation of the first embodiment and the operation of the thirteenth embodiment, and will be described on the assumption that "1" has been notified.

【0131】時定数演算回路18が第1フィールドにお
ける黒レベル基準データを出力すると、レジスタ選択回
路54は、外部から第1フィールドを示すフィールド識
別信号を入力することにより、その黒レベル基準データ
を黒レベルレジスタ55に出力する。次に、時定数演算
回路18が第2フィールドにおける黒レベル基準データ
を出力すると、レジスタ選択回路54は、外部から第2
フィールドを示すフィールド識別信号を入力することに
より、その黒レベル基準データを黒レベルレジスタ56
に出力する。
When the time constant calculation circuit 18 outputs the black level reference data in the first field, the register selection circuit 54 inputs the field identification signal indicating the first field from the outside, thereby converting the black level reference data to black. Output to the level register 55. Next, when the time constant calculation circuit 18 outputs the black level reference data in the second field, the register selection circuit 54
By inputting a field identification signal indicating a field, the black level reference data is stored in a black level register 56.
Output to

【0132】黒レベル演算回路57は、外部からフレー
ム識別信号を入力すると、黒レベルレジスタ55に格納
されている黒レベル基準データと黒レベルレジスタ56
に格納されている黒レベル基準データとの平均値を算出
し、その平均値を動作選択回路58に出力する。動作選
択回路58は、動作制御信号を参照して時定数演算回路
18から出力された黒レベル基準データ又は黒レベル演
算回路57により算出された平均値を選択して補正回路
19に出力する。この例では、上述したように、外部か
ら“1”の動作制御信号が与えられているので、黒レベ
ル演算回路57により算出された平均値を選択して補正
回路19に出力する。
When a frame identification signal is input from the outside, the black level calculation circuit 57 receives the black level reference data stored in the black level register 55 and the black level register 56.
, And outputs the average to the operation selection circuit 58. The operation selection circuit 58 selects the black level reference data output from the time constant calculation circuit 18 or the average calculated by the black level calculation circuit 57 with reference to the operation control signal, and outputs the selected data to the correction circuit 19. In this example, as described above, since the operation control signal of “1” is given from the outside, the average value calculated by the black level calculation circuit 57 is selected and output to the correction circuit 19.

【0133】以上で明らかなように、この実施の形態1
3によれば、2つのフィールド毎に黒レベルの補正を行
うことにより、フィールド毎に検出する黒レベル基準デ
ータが変動する場合でも、安定した黒レベル補正を行う
ことが可能となる。
As is apparent from the above, the first embodiment
According to No. 3, by performing black level correction for every two fields, stable black level correction can be performed even when the black level reference data detected for each field fluctuates.

【0134】[0134]

【発明の効果】以上のように、この発明によれば、平均
値算出手段により算出された平均値と前回の黒レベル基
準データから当該黒レベル基準データを更新し、更新後
の黒レベル基準データを用いて画像データの黒レベルを
補正するように構成したので、各画像間の黒レベルの急
峻な変化を防止することができる効果がある。
As described above, according to the present invention, the black level reference data is updated from the average value calculated by the average value calculation means and the previous black level reference data, and the updated black level reference data is updated. Is used to correct the black level of the image data, so that it is possible to prevent a sharp change in the black level between the images.

【0135】この発明によれば、1ライン当たりの黒レ
ベルのデータの平均値を算出するように構成したので、
面内黒レベル補正動作を実施することができる効果があ
る。
According to the present invention, the average value of the data of the black level per line is calculated.
There is an effect that the in-plane black level correction operation can be performed.

【0136】この発明によれば、1フレーム当たりの黒
レベルのデータの平均値を算出するように構成したの
で、フレーム伝播黒レベル補正動作を実施することがで
きる効果がある。
According to the present invention, since the average value of the black level data per frame is calculated, there is an effect that the frame propagation black level correction operation can be performed.

【0137】この発明によれば、1ライン当たりの黒レ
ベルのデータの平均値を算出するとともに、1フレーム
当たりの黒レベルのデータの平均値を算出し、何れか一
方の平均値を選択して更新手段に出力するように構成し
たので、回路規模の増大を招くことなく、フレーム伝播
黒レベル補正動作と面内黒レベル補正動作を実施するこ
とができる。その結果、汎用性の高い黒レベル補正装置
が得られる効果がある。
According to the present invention, the average value of the black level data per line is calculated, the average value of the black level data per frame is calculated, and one of the average values is selected. Since the output is provided to the updating means, the frame propagation black level correction operation and the in-plane black level correction operation can be performed without increasing the circuit scale. As a result, there is an effect that a highly versatile black level correction device can be obtained.

【0138】この発明によれば、前回の黒レベル基準デ
ータに第1の重み付け値を乗算する一方、平均値算出手
段により算出された平均値に第1の重み付け値より小さ
い第2の重み付け値を乗算し、双方の乗算結果を相互に
加算して新たな黒レベル基準データを求めるように構成
したので、構成の複雑化を招くことなく、各画像間の黒
レベルの急峻な変化を防止することができる効果があ
る。
According to the present invention, while the previous black level reference data is multiplied by the first weighting value, the average value calculated by the average value calculating means is changed by the second weighting value smaller than the first weighting value. Multiplication is performed, and the results of both multiplications are added to each other to obtain new black level reference data. Therefore, it is possible to prevent a sharp change in black level between images without complicating the configuration. There is an effect that can be.

【0139】この発明によれば、光学的黒領域内の第1
の領域に属する黒レベルのデータの平均値を算出すると
ともに、光学的黒領域内の第2の領域に属する黒レベル
のデータの平均値を算出するように構成したので、1つ
の回路で様々な黒レベル補正動作を選択して、精度の高
い黒レベル検出を実現することが可能となる。その結
果、より汎用性の高い黒レベル補正装置が得られる効果
がある。
According to the present invention, the first in the optical black region is provided.
And the average value of the black level data belonging to the second region in the optical black region is calculated, so that one circuit can be used to calculate various values. By selecting the black level correction operation, it is possible to realize highly accurate black level detection. As a result, there is an effect that a more versatile black level correction device can be obtained.

【0140】この発明によれば、平均値算出手段により
算出された何れか一方の平均値又は更新手段による更新
後の黒レベル基準データを選択して補正手段に出力する
第1の選択手段を設けるように構成したので、1つの回
路で様々な黒レベル補正動作を選択して、精度の高い黒
レベル検出を実現することが可能となる。その結果、よ
り汎用性の高い黒レベル補正装置が得られる効果があ
る。
According to the present invention, the first selection means is provided for selecting either one of the average values calculated by the average value calculation means or the black level reference data updated by the update means and outputting the selected data to the correction means. With such a configuration, it is possible to select various black level correction operations with one circuit and realize highly accurate black level detection. As a result, there is an effect that a more versatile black level correction device can be obtained.

【0141】この発明によれば、固定値記憶手段により
記憶されている固定値又は更新手段による更新後の黒レ
ベル基準データを選択して補正手段に出力する第2の選
択手段を設けるように構成したので、1つの回路で様々
な黒レベル補正動作を選択して、精度の高い黒レベル検
出を実現することが可能となる。その結果、より汎用性
の高い黒レベル補正装置が得られる効果がある。
According to the present invention, there is provided the second selecting means for selecting the fixed value stored by the fixed value storing means or the black level reference data updated by the updating means and outputting the same to the correcting means. Therefore, it is possible to select various black level correction operations with one circuit and realize highly accurate black level detection. As a result, there is an effect that a more versatile black level correction device can be obtained.

【0142】この発明によれば、初期値記憶手段により
記憶されている初期値又は更新手段による更新後の黒レ
ベル基準データを選択して補正手段に出力する第3の選
択手段を設けるように構成したので、1つの回路で様々
な黒レベル補正動作を選択して、精度の高い黒レベル検
出を実現することが可能となる。その結果、より汎用性
の高い黒レベル補正装置が得られる効果がある。
According to the present invention, the third selection means for selecting the initial value stored by the initial value storage means or the black level reference data updated by the updating means and outputting the same to the correction means is provided. Therefore, it is possible to select various black level correction operations with one circuit and realize highly accurate black level detection. As a result, there is an effect that a more versatile black level correction device can be obtained.

【0143】この発明によれば、光学的黒領域の水平画
素数を設定するとともに、シフト演算のシフト回数を設
定する設定回路と、その設定回路により設定された水平
画素数分だけ黒レベルのデータを積分し、その積分結果
を当該シフト回数分だけシフト演算する演算回路とから
平均値算出手段を構成するようにしたので、回路規模の
増大を招くことなく、より汎用性の高い黒レベル補正装
置を提供することができる効果がある。
According to the present invention, a setting circuit for setting the number of horizontal pixels in the optical black area and setting the number of shifts of the shift operation, and the black level data corresponding to the number of horizontal pixels set by the setting circuit. And an arithmetic circuit that shifts the integration result by the number of shifts to form the average value calculating means. Therefore, a black level correction device with higher versatility without increasing the circuit scale. There is an effect that can be provided.

【0144】この発明によれば、光学的黒領域の垂直ラ
イン数を設定するとともに、シフト演算のシフト回数を
設定する設定回路と、その設定回路により設定された垂
直ライン数分だけ黒レベルのライン平均値を積分し、そ
の積分結果を当該シフト回数分だけシフト演算する演算
回路とから平均値算出手段を構成するようにしたので、
回路規模の増大を招くことなく、より汎用性の高い黒レ
ベル補正装置を提供することができる効果がある。
According to the present invention, the setting circuit for setting the number of vertical lines in the optical black area and setting the number of shifts in the shift operation, and the black level lines by the number of vertical lines set by the setting circuit Since an average value is integrated by an arithmetic circuit that integrates the average value and shifts the integration result by the number of shifts, an average value calculation unit is configured.
There is an effect that a more versatile black level correction device can be provided without increasing the circuit scale.

【0145】この発明によれば、平均値算出手段が複数
の設定回路を備えて、演算回路がいずれか1つの設定回
路を選択するように構成したので、モード変更時におい
て設定回路の設定値を書き換える必要がなくなり、その
結果、レジスタライト動作時間を低減することができる
効果がある。
According to the present invention, the average value calculating means is provided with a plurality of setting circuits, and the arithmetic circuit is configured to select any one of the setting circuits. There is no need to rewrite, and as a result, there is an effect that the register write operation time can be reduced.

【0146】この発明によれば、黒レベルの補正を行う
場合に限り、撮像素子により撮像された画像データを平
均値算出手段及び補正手段に出力するように構成したの
で、不必要な動作が回避される結果、消費電力の低減化
を図ることができる効果がある。
According to the present invention, only when the black level is corrected, the image data picked up by the image pickup device is output to the average value calculating means and the correcting means, so that unnecessary operations are avoided. As a result, there is an effect that power consumption can be reduced.

【0147】この発明によれば、補正開始許可信号が有
意な場合には補正後の画像データを出力し、その補正開
始許可信号が無意な場合には補正前の画像データを出力
するように構成したので、暗電流が不安定な状態での黒
レベルの補正を禁止することができる効果がある。
According to the present invention, the image data after correction is output when the correction start permission signal is significant, and the image data before correction is output when the correction start permission signal is insignificant. Therefore, there is an effect that the correction of the black level in a state where the dark current is unstable can be prohibited.

【0148】この発明によれば、更新手段による更新後
の黒レベル基準データから指定値を減算し、画像データ
から当該減算結果を減算するように構成したので、暗電
流特性の大きい撮像素子を使用する場合でも、画質の劣
化を招くことなく黒レベルの補正を行うことができる効
果がある。
According to the present invention, the designated value is subtracted from the black level reference data updated by the updating means, and the result of the subtraction is subtracted from the image data. Therefore, an image sensor having a large dark current characteristic is used. In this case, the black level can be corrected without deteriorating the image quality.

【0149】この発明によれば、更新手段による更新後
の黒レベル基準データが指定値より大きい場合、その黒
レベル基準データから指定値を減算して、画像データか
ら当該減算結果を減算し、その黒レベル基準データが当
該指定値より大きくない場合には、その画像データから
当該黒レベル基準データを減算するように構成したの
で、環境によって黒レベルのデータが大きく変動する場
合でも、画質の劣化を招くことなく黒レベルの補正を行
うことができる効果がある。
According to the present invention, when the black level reference data updated by the updating means is larger than the specified value, the specified value is subtracted from the black level reference data, and the subtraction result is subtracted from the image data. When the black level reference data is not larger than the specified value, the black level reference data is subtracted from the image data. There is an effect that the black level can be corrected without inviting.

【0150】この発明によれば、画像データの黒レベル
を補正したのち、ダイナミックレンジの補正を行うよう
に構成したので、黒レベル補正による画質の劣化を低減
することができる効果がある。
According to the present invention, since the dynamic range is corrected after the black level of the image data is corrected, there is an effect that deterioration in image quality due to the black level correction can be reduced.

【0151】この発明によれば、光学的黒領域内の第1
の領域に属する黒レベルのデータの平均値に基づいて更
新した黒レベル基準データと、その光学的黒領域内の第
2の領域に属する黒レベルのデータの平均値に基づいて
更新した黒レベル基準データとの平均値を算出するよう
に構成したので、フィールド毎に検出する黒レベル基準
データが変動する場合でも、安定した黒レベル補正を行
うことができる効果がある。
According to the present invention, the first in the optical black region
And the black level reference data updated based on the average value of the black level data belonging to the second region in the optical black region. Since the average value with the data is calculated, there is an effect that stable black level correction can be performed even when the black level reference data detected for each field varies.

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

【図1】 この発明の実施の形態1による黒レベル補正
装置を示す構成図である。
FIG. 1 is a configuration diagram showing a black level correction device according to a first embodiment of the present invention.

【図2】 CCDなどの撮像素子のセンサ面を示す説明
図である。
FIG. 2 is an explanatory diagram illustrating a sensor surface of an image sensor such as a CCD.

【図3】 時定数データ選択回路の選択結果を示す説明
図である。
FIG. 3 is an explanatory diagram showing a selection result of a time constant data selection circuit.

【図4】 この発明の実施の形態2による黒レベル補正
装置を示す構成図である。
FIG. 4 is a configuration diagram showing a black level correction device according to a second embodiment of the present invention.

【図5】 CCDなどの撮像素子のセンサ面を示す説明
図である。
FIG. 5 is an explanatory diagram showing a sensor surface of an image sensor such as a CCD.

【図6】 時定数データ選択回路の選択結果を示す説明
図である。
FIG. 6 is an explanatory diagram showing a selection result of a time constant data selection circuit.

【図7】 この発明の実施の形態3による黒レベル補正
装置を示す構成図である。
FIG. 7 is a configuration diagram showing a black level correction device according to a third embodiment of the present invention.

【図8】 時定数データ選択回路及び選択回路の選択結
果を示す説明図である。
FIG. 8 is an explanatory diagram illustrating a selection result of a time constant data selection circuit and a selection circuit.

【図9】 この発明の実施の形態4による黒レベル補正
装置を示す構成図である。
FIG. 9 is a configuration diagram illustrating a black level correction device according to a fourth embodiment of the present invention.

【図10】 時定数データ選択回路及び選択回路の選択
結果を示す説明図である。
FIG. 10 is an explanatory diagram showing selection results of a time constant data selection circuit and a selection circuit.

【図11】 この発明の実施の形態5による黒レベル補
正装置を示す構成図である。
FIG. 11 is a configuration diagram showing a black level correction device according to a fifth embodiment of the present invention.

【図12】 時定数データ選択回路及び選択回路の選択
結果を示す説明図である。
FIG. 12 is an explanatory diagram showing selection results of a time constant data selection circuit and a selection circuit.

【図13】 この発明の実施の形態6による黒レベル補
正装置のライン黒レベル算出回路及びフレーム黒レベル
算出回路の内部を示す構成図である。
FIG. 13 is a configuration diagram showing the insides of a line black level calculation circuit and a frame black level calculation circuit of a black level correction device according to a sixth embodiment of the present invention.

【図14】 CCDなどの撮像素子のセンサ面を示す説
明図である。
FIG. 14 is an explanatory diagram showing a sensor surface of an image sensor such as a CCD.

【図15】 除数参照回路の設定値を示す説明図であ
る。
FIG. 15 is an explanatory diagram showing set values of a divisor reference circuit.

【図16】 この発明の実施の形態7による黒レベル補
正装置のライン黒レベル算出回路及びフレーム黒レベル
算出回路の内部を示す構成図である。
FIG. 16 is a configuration diagram showing the insides of a line black level calculation circuit and a frame black level calculation circuit of a black level correction device according to a seventh embodiment of the present invention.

【図17】 この発明の実施の形態8による黒レベル補
正装置を示す構成図である。
FIG. 17 is a configuration diagram showing a black level correction device according to an eighth embodiment of the present invention.

【図18】 この発明の実施の形態9による黒レベル補
正装置を示す構成図である。
FIG. 18 is a configuration diagram showing a black level correction device according to a ninth embodiment of the present invention.

【図19】 この発明の実施の形態10による黒レベル
補正装置の補正回路の内部を示す構成図である。
FIG. 19 is a configuration diagram showing the inside of a correction circuit of a black level correction device according to a tenth embodiment of the present invention.

【図20】 この発明の実施の形態11による黒レベル
補正装置の補正回路の内部を示す構成図である。
FIG. 20 is a configuration diagram showing the inside of a correction circuit of a black level correction device according to Embodiment 11 of the present invention.

【図21】 この発明の実施の形態12による黒レベル
補正装置を示す構成図である。
FIG. 21 is a configuration diagram showing a black level correction device according to a twelfth embodiment of the present invention.

【図22】 この発明の実施の形態13による黒レベル
補正装置を示す構成図である。
FIG. 22 is a configuration diagram showing a black level correction device according to Embodiment 13 of the present invention.

【図23】 従来の黒レベル補正装置を示す構成図であ
る。
FIG. 23 is a configuration diagram showing a conventional black level correction device.

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

11 レンズ系、12 撮像素子、13 アナログ処理
部、14 A/D変換器、15 ライン黒レベル算出回
路(平均値算出手段)、15a,15b ライン黒レベ
ル算出回路(平均値算出手段)、16 フレーム黒レベ
ル算出回路(平均値算出手段)、16a,16b フレ
ーム黒レベル算出回路(平均値算出手段)、17 時定
数データ選択回路(平均値算出手段)、18 時定数演
算回路(更新手段)、19 補正回路(補正手段)、2
0 フレーム黒レベル平均回路(平均値算出手段)、2
1 時定数データ選択回路(平均値算出手段)、22
選択回路(第1の選択手段)、23 黒レベル固定値記
憶部(固定値記憶手段)、24 選択回路(第2の選択
手段)、25 黒レベル初期値記憶部(初期値記憶手
段)、26 選択回路(第3の選択手段)、31,31
a,31b 除数参照回路(設定回路)、32 黒レベ
ル積分回路(演算回路)、33 シフト演算回路(演算
回路)、34,34a,34b 除数参照回路(設定回
路)、35 黒レベル積分回路(演算回路)、36 シ
フト演算回路(演算回路)、41 画素数選択回路、4
2 シフト数選択回路、43 ライン数選択回路、44
シフト数選択回路、51 バイパス選択回路(接続手
段)、52 補正開始選択回路(補正手段)、53 ダ
イナミックレンジ補正回路(補正手段)、54 レジス
タ選択回路(更新手段)、55,56 黒レベルレジス
タ(更新手段)、57 黒レベル演算回路(更新手
段)、58 動作選択回路(更新手段)、61 指定値
設定レジスタ、62 指定値減算回路、63 黒レベル
減算回路、64 指定値設定レジスタ、65 比較回
路、66 黒レベル選択回路。
Reference Signs List 11 lens system, 12 image sensor, 13 analog processing unit, 14 A / D converter, 15 line black level calculation circuit (average value calculation means), 15a, 15b line black level calculation circuit (average value calculation means), 16 frames Black level calculation circuit (average value calculation means), 16a, 16b Frame black level calculation circuit (average value calculation means), 17 time constant data selection circuit (average value calculation means), 18 time constant calculation circuit (update means), 19 Correction circuit (correction means), 2
0 frame black level averaging circuit (mean value calculating means), 2
1 time constant data selection circuit (mean value calculation means), 22
Selection circuit (first selection means), 23 black level fixed value storage section (fixed value storage section), 24 selection circuit (second selection section), 25 black level initial value storage section (initial value storage section), 26 Selection circuit (third selection means), 31, 31
a, 31b divisor reference circuit (setting circuit), 32 black level integration circuit (arithmetic circuit), 33 shift operation circuit (arithmetic circuit), 34, 34a, 34b divisor reference circuit (setting circuit), 35 black level integrator circuit (calculation) Circuit), 36 shift operation circuit (operation circuit), 41 pixel number selection circuit, 4
2 shift number selection circuit, 43 line number selection circuit, 44
Shift number selection circuit, 51 bypass selection circuit (connection means), 52 correction start selection circuit (correction means), 53 dynamic range correction circuit (correction means), 54 register selection circuit (update means), 55, 56 black level registers ( Updating means), 57 black level calculating circuit (updating means), 58 operation selecting circuit (updating means), 61 designated value setting register, 62 designated value subtracting circuit, 63 black level subtracting circuit, 64 designated value setting register, 65 comparing circuit , 66 Black level selection circuit.

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) // H04N 101:00 H04N 1/40 101Z Fターム(参考) 5B057 AA20 BA02 BA29 BA30 CA08 CA12 CA16 CB08 CB12 CB16 CE11 CH08 CH18 5C021 PA76 XA03 YA08 5C022 AC42 AC69 5C024 BX01 CX32 GY01 5C077 LL01 MM03 PP12 PP14 PP45 PP46 PQ08 PQ18 Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat II (reference) // H04N 101: 00 H04N 1/40 101Z F term (reference) 5B057 AA20 BA02 BA29 BA30 CA08 CA12 CA16 CB08 CB12 CB16 CE11 CH08 CH18 5C021 PA76 XA03 YA08 5C022 AC42 AC69 5C024 BX01 CX32 GY01 5C077 LL01 MM03 PP12 PP14 PP45 PP46 PQ08 PQ18

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 撮像素子により撮像された画像データの
うち、光学的黒領域に属する黒レベルのデータの平均値
を算出する平均値算出手段と、上記平均値算出手段によ
り算出された平均値と前回の黒レベル基準データから当
該黒レベル基準データを更新する更新手段と、上記更新
手段による更新後の黒レベル基準データを用いて上記画
像データの黒レベルを補正する補正手段とを備えた黒レ
ベル補正装置。
1. An average value calculating means for calculating an average value of black level data belonging to an optical black area in image data picked up by an image sensor, and an average value calculated by the average value calculating means. A black level comprising: updating means for updating the black level reference data from the previous black level reference data; and correcting means for correcting the black level of the image data using the black level reference data updated by the updating means. Correction device.
【請求項2】 平均値算出手段は、1ライン当たりの黒
レベルのデータの平均値を算出することを特徴とする請
求項1記載の黒レベル補正装置。
2. The black level correction device according to claim 1, wherein the average value calculation means calculates an average value of black level data per line.
【請求項3】 平均値算出手段は、1フレーム当たりの
黒レベルのデータの平均値を算出することを特徴とする
請求項1記載の黒レベル補正装置。
3. The black level correction device according to claim 1, wherein the average value calculation means calculates an average value of black level data per frame.
【請求項4】 平均値算出手段は、1ライン当たりの黒
レベルのデータの平均値を算出するとともに、1フレー
ム当たりの黒レベルのデータの平均値を算出し、何れか
一方の平均値を選択して更新手段に出力することを特徴
とする請求項1記載の黒レベル補正装置。
4. An average value calculating means calculates an average value of black level data per line, calculates an average value of black level data per frame, and selects one of the average values. 2. The black level correction device according to claim 1, wherein the output is output to an updating unit.
【請求項5】 更新手段は、前回の黒レベル基準データ
に第1の重み付け値を乗算する一方、平均値算出手段に
より算出された平均値に第1の重み付け値より小さい第
2の重み付け値を乗算し、双方の乗算結果を相互に加算
して新たな黒レベル基準データを求めることを特徴とす
る請求項1から請求項4のうちのいずれか1項記載の黒
レベル補正装置。
5. The updating means multiplies the previous black level reference data by a first weighting value, and updates the average value calculated by the average value calculating means with a second weighting value smaller than the first weighting value. The black level correction device according to any one of claims 1 to 4, wherein the multiplication is performed, and the results of the multiplication are added to each other to obtain new black level reference data.
【請求項6】 平均値算出手段は、光学的黒領域内の第
1の領域に属する黒レベルのデータの平均値を算出する
とともに、光学的黒領域内の第2の領域に属する黒レベ
ルのデータの平均値を算出することを特徴とする請求項
1から請求項5のうちのいずれか1項記載の黒レベル補
正装置。
6. An average value calculating means calculates an average value of black level data belonging to a first area in the optical black area, and calculates an average value of black level data belonging to a second area in the optical black area. The black level correction device according to any one of claims 1 to 5, wherein an average value of the data is calculated.
【請求項7】 平均値算出手段により算出された何れか
一方の平均値又は更新手段による更新後の黒レベル基準
データを選択して補正手段に出力する第1の選択手段を
設けたことを特徴とする請求項6記載の黒レベル補正装
置。
7. A first selection means for selecting either one of the average values calculated by the average value calculation means or the black level reference data updated by the update means and outputting the selected data to the correction means. The black level correction device according to claim 6, wherein
【請求項8】 所望の黒レベルの固定値を記憶する固定
値記憶手段と、上記固定値記憶手段により記憶されてい
る固定値又は更新手段による更新後の黒レベル基準デー
タを選択して補正手段に出力する第2の選択手段を設け
たことを特徴とする請求項6または請求項7記載の黒レ
ベル補正装置。
8. A fixed value storage means for storing a fixed value of a desired black level, and a correction means for selecting the fixed value stored by the fixed value storage means or the black level reference data updated by the updating means. 8. The black level correction device according to claim 6, further comprising a second selection unit that outputs the data to the black level correction unit.
【請求項9】 所望の黒レベルの初期値を記憶する初期
値記憶手段と、上記初期値記憶手段により記憶されてい
る初期値又は更新手段による更新後の黒レベル基準デー
タを選択して補正手段に出力する第3の選択手段を設け
たことを特徴とする請求項6から請求項8のうちのいず
れか1項記載の黒レベル補正装置。
9. An initial value storing means for storing an initial value of a desired black level, and a correcting means for selecting the initial value stored by the initial value storing means or the black level reference data updated by the updating means. 9. The black level correction apparatus according to claim 6, further comprising a third selection unit that outputs the black level to the black level correction unit.
【請求項10】 光学的黒領域の水平画素数を設定する
とともに、シフト演算のシフト回数を設定する設定回路
と、上記設定回路により設定された水平画素数分だけ黒
レベルのデータを積分し、その積分結果を当該シフト回
数分だけシフト演算する演算回路とから平均値算出手段
を構成することを特徴とする請求項2または請求項4記
載の黒レベル補正装置。
10. A setting circuit for setting the number of horizontal pixels in an optical black area and setting the number of shifts in a shift operation, and integrating black level data by the number of horizontal pixels set by the setting circuit. 5. The black level correction device according to claim 2, wherein an average value calculating means comprises an arithmetic circuit for performing a shift operation of the integration result by the number of shifts.
【請求項11】 光学的黒領域の垂直ライン数を設定す
るとともに、シフト演算のシフト回数を設定する設定回
路と、上記設定回路により設定された垂直ライン数分だ
け黒レベルのライン平均値を積分し、その積分結果を当
該シフト回数分だけシフト演算する演算回路とから平均
値算出手段を構成することを特徴とする請求項3または
請求項4記載の黒レベル補正装置。
11. A setting circuit for setting the number of vertical lines in an optical black region and setting the number of shifts in a shift operation, and integrating a line average value of a black level by the number of vertical lines set by the setting circuit. 5. The black level correction device according to claim 3, wherein an average value calculating means comprises an arithmetic circuit for shifting the integration result by the number of shifts.
【請求項12】 平均値算出手段が複数の設定回路を備
えて、演算回路がいずれか1つの設定回路を選択するこ
とを特徴とする請求項10または請求項11記載の黒レ
ベル補正装置。
12. The black level correction device according to claim 10, wherein the average value calculation means includes a plurality of setting circuits, and the arithmetic circuit selects one of the setting circuits.
【請求項13】 黒レベルの補正を行う場合に限り、撮
像素子により撮像された画像データを平均値算出手段及
び補正手段に出力する接続手段を設けたことを特徴とす
る請求項1から請求項12のうちのいずれか1項記載の
黒レベル補正装置。
13. The image processing apparatus according to claim 1, further comprising a connection unit that outputs image data picked up by the image pickup device to an average value calculation unit and a correction unit only when black level correction is performed. 13. The black level correction device according to claim 12.
【請求項14】 補正手段は、補正開始許可信号が有意
な場合には補正後の画像データを出力し、その補正開始
許可信号が無意な場合には補正前の画像データを出力す
ることを特徴とする請求項1から請求項12のうちのい
ずれか1項記載の黒レベル補正装置。
14. The correction means outputs image data after correction when the correction start permission signal is significant, and outputs image data before correction when the correction start permission signal is insignificant. 13. The black level correction device according to claim 1, wherein:
【請求項15】 補正手段は、更新手段による更新後の
黒レベル基準データから指定値を減算し、画像データか
ら当該減算結果を減算することを特徴とする請求項1か
ら請求項14のうちのいずれか1項記載の黒レベル補正
装置。
15. The method according to claim 1, wherein the correction unit subtracts the designated value from the black level reference data updated by the updating unit, and subtracts the subtraction result from the image data. The black level correction device according to claim 1.
【請求項16】 補正手段は、更新手段による更新後の
黒レベル基準データが指定値より大きい場合、その黒レ
ベル基準データから指定値を減算して、画像データから
当該減算結果を減算し、その黒レベル基準データが当該
指定値より大きくない場合には、その画像データから当
該黒レベル基準データを減算することを特徴とする請求
項1から請求項14のうちのいずれか1項記載の黒レベ
ル補正装置。
16. When the black level reference data updated by the updating means is larger than a specified value, the correction means subtracts the specified value from the black level reference data and subtracts the subtraction result from the image data. The black level according to any one of claims 1 to 14, wherein the black level reference data is subtracted from the image data when the black level reference data is not larger than the designated value. Correction device.
【請求項17】 補正手段は、画像データの黒レベルを
補正したのち、ダイナミックレンジの補正を行うことを
特徴とする請求項1から請求項16のうちのいずれか1
項記載の黒レベル補正装置。
17. The method according to claim 1, wherein the correction means corrects a black level of the image data and then corrects a dynamic range.
Item 6. The black level correction device according to item 1.
【請求項18】 更新手段は、光学的黒領域内の第1の
領域に属する黒レベルのデータの平均値に基づいて更新
した黒レベル基準データと、その光学的黒領域内の第2
の領域に属する黒レベルのデータの平均値に基づいて更
新した黒レベル基準データとの平均値を算出することを
特徴とする請求項6記載の黒レベル補正装置。
18. An updating means for updating black level reference data based on an average value of black level data belonging to a first area in an optical black area and a second level in the optical black area.
7. The black level correction device according to claim 6, wherein the average value with the updated black level reference data is calculated based on the average value of the black level data belonging to the region.
JP2001349204A 2001-01-12 2001-11-14 Black level correction device Expired - Fee Related JP3808349B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001349204A JP3808349B2 (en) 2001-01-12 2001-11-14 Black level correction device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001-5732 2001-01-12
JP2001005732 2001-01-12
JP2001349204A JP3808349B2 (en) 2001-01-12 2001-11-14 Black level correction device

Publications (2)

Publication Number Publication Date
JP2002281343A true JP2002281343A (en) 2002-09-27
JP3808349B2 JP3808349B2 (en) 2006-08-09

Family

ID=26607642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001349204A Expired - Fee Related JP3808349B2 (en) 2001-01-12 2001-11-14 Black level correction device

Country Status (1)

Country Link
JP (1) JP3808349B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005323041A (en) * 2004-05-07 2005-11-17 Nikon Corp Clamp level adjusting device and electronic camera
JP2007104107A (en) * 2005-09-30 2007-04-19 Fujitsu Ltd Semiconductor integrated device and black level correction method of image sensor
JP2007166527A (en) * 2005-12-16 2007-06-28 Fujitsu Ltd Image data processing circuit and image data processing method
JP2007336374A (en) * 2006-06-16 2007-12-27 Canon Inc Imaging device and its processing method
EP1973337A2 (en) 2007-03-20 2008-09-24 Sony Corporation Streaking correction and imaging
CN100426524C (en) * 2003-09-24 2008-10-15 三洋电机株式会社 Signal processing apparatus
US7688356B2 (en) 2004-05-07 2010-03-30 Nikon Corporation Clamp level adjusting apparatus, electronic camera, image processing apparatus, and image processing program
US7956925B2 (en) 2004-11-02 2011-06-07 Panasonic Corporation Method for reading out signal charges from an image sensor having different exposure times
US8098307B2 (en) 2007-05-31 2012-01-17 Fujitsu Semiconductor Limited Imaging device and imaging method
JP2013242371A (en) * 2012-05-18 2013-12-05 Olympus Corp Light detection device
JP2015008448A (en) * 2013-05-30 2015-01-15 パナソニックIpマネジメント株式会社 Clamp processing method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62236273A (en) * 1986-04-08 1987-10-16 Sony Corp Black level correcting circuit for video camera
JPH05244490A (en) * 1992-02-28 1993-09-21 Sanyo Electric Co Ltd Digital camera signal processing circuit
JPH09200605A (en) * 1996-01-12 1997-07-31 Sanyo Electric Co Ltd Digital video camera
JPH09326962A (en) * 1996-06-04 1997-12-16 Sharp Corp Digital camera
JPH1079893A (en) * 1996-09-05 1998-03-24 Sony Corp Clamp circuit for video signal
JPH10304254A (en) * 1997-04-25 1998-11-13 Sony Corp Camera apparatus
JP2000261717A (en) * 1999-03-05 2000-09-22 Olympus Optical Co Ltd Electronic image pickup device
JP2000287120A (en) * 1999-03-30 2000-10-13 Minolta Co Ltd Three-dimensional information input camera

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62236273A (en) * 1986-04-08 1987-10-16 Sony Corp Black level correcting circuit for video camera
JPH05244490A (en) * 1992-02-28 1993-09-21 Sanyo Electric Co Ltd Digital camera signal processing circuit
JPH09200605A (en) * 1996-01-12 1997-07-31 Sanyo Electric Co Ltd Digital video camera
JPH09326962A (en) * 1996-06-04 1997-12-16 Sharp Corp Digital camera
JPH1079893A (en) * 1996-09-05 1998-03-24 Sony Corp Clamp circuit for video signal
JPH10304254A (en) * 1997-04-25 1998-11-13 Sony Corp Camera apparatus
JP2000261717A (en) * 1999-03-05 2000-09-22 Olympus Optical Co Ltd Electronic image pickup device
JP2000287120A (en) * 1999-03-30 2000-10-13 Minolta Co Ltd Three-dimensional information input camera

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100426524C (en) * 2003-09-24 2008-10-15 三洋电机株式会社 Signal processing apparatus
JP2005323041A (en) * 2004-05-07 2005-11-17 Nikon Corp Clamp level adjusting device and electronic camera
US7688356B2 (en) 2004-05-07 2010-03-30 Nikon Corporation Clamp level adjusting apparatus, electronic camera, image processing apparatus, and image processing program
US7956925B2 (en) 2004-11-02 2011-06-07 Panasonic Corporation Method for reading out signal charges from an image sensor having different exposure times
KR100768057B1 (en) 2005-09-30 2007-10-17 후지쯔 가부시끼가이샤 Semiconductor integrated apparatus and black level correction method for image sensor
US7920181B2 (en) 2005-09-30 2011-04-05 Fujitsu Semiconductor Limited Semiconductor integrated apparatus and black level correction method for image sensor
JP2007104107A (en) * 2005-09-30 2007-04-19 Fujitsu Ltd Semiconductor integrated device and black level correction method of image sensor
JP2007166527A (en) * 2005-12-16 2007-06-28 Fujitsu Ltd Image data processing circuit and image data processing method
JP4554504B2 (en) * 2005-12-16 2010-09-29 富士通セミコンダクター株式会社 Image data processing circuit and image data processing method
US8970758B2 (en) 2006-06-16 2015-03-03 Canon Kabushiki Kaisha Image pickup device and signal processing method thereof
JP2007336374A (en) * 2006-06-16 2007-12-27 Canon Inc Imaging device and its processing method
US8169498B2 (en) 2006-06-16 2012-05-01 Canon Kabushiki Kaisha Nonlinear error correction processor for an image sensor
US8451361B2 (en) 2006-06-16 2013-05-28 Canon Kabushiki Kaisha Image pickup device and signal processing method thereof
EP1973337A3 (en) * 2007-03-20 2010-03-31 Sony Corporation Streaking correction and imaging
US7982785B2 (en) 2007-03-20 2011-07-19 Sony Corporation Streaking correction signal generating circuit, streaking correction signal generating method, program, streaking correcting circuit, and imaging device
EP1973337A2 (en) 2007-03-20 2008-09-24 Sony Corporation Streaking correction and imaging
US8098307B2 (en) 2007-05-31 2012-01-17 Fujitsu Semiconductor Limited Imaging device and imaging method
JP2013242371A (en) * 2012-05-18 2013-12-05 Olympus Corp Light detection device
JP2015008448A (en) * 2013-05-30 2015-01-15 パナソニックIpマネジメント株式会社 Clamp processing method

Also Published As

Publication number Publication date
JP3808349B2 (en) 2006-08-09

Similar Documents

Publication Publication Date Title
JP4705664B2 (en) Buffer management for adaptive buffer values using accumulation and averaging
US8290356B2 (en) Imaging device with image blurring reduction function
JP3824237B2 (en) Image processing apparatus and method, recording medium, and program
US8391629B2 (en) Method and apparatus for image noise reduction using noise models
JP3532781B2 (en) Image processing circuit of image input device
US8218036B2 (en) Image sensing apparatus and control method therefor
US7948531B2 (en) Imaging apparatus and correction method of image data
US7030911B1 (en) Digital camera and exposure control method of digital camera
US6882754B2 (en) Image signal processor with adaptive noise reduction and an image signal processing method therefor
JP2003204486A (en) Imaging apparatus
US20100231748A1 (en) Imaging device
US20060187324A1 (en) Reduction of motion-induced blur in images
KR101120966B1 (en) A hand jitter reduction system for cameras
JP2001086398A (en) Image-pickup unit
JP2018207413A (en) Imaging apparatus
JP2002281343A (en) Black level correcting device
JP2023106486A (en) Imaging apparatus and a control method for the same, and program
JP4637812B2 (en) Image signal processing apparatus, image signal processing program, and image signal processing method
US20080297632A1 (en) Imaging apparatus and image processing program
US20070019105A1 (en) Imaging apparatus for performing optimum exposure and color balance control
JP3839429B2 (en) Imaging processing device
US8102446B2 (en) Image capturing system and image processing method for applying grayscale conversion to a video signal, and computer-readable recording medium having recorded thereon an image processing program for applying grayscale conversion to a video signal
EP2632146B1 (en) Image processing apparatus
JP4314898B2 (en) Imaging apparatus and image control method thereof
JP2005159693A (en) Image processing apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060320

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060418

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060517

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3808349

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110526

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110526

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120526

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120526

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130526

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140526

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees