JPH0898082A - Electronic still camera - Google Patents

Electronic still camera

Info

Publication number
JPH0898082A
JPH0898082A JP6226328A JP22632894A JPH0898082A JP H0898082 A JPH0898082 A JP H0898082A JP 6226328 A JP6226328 A JP 6226328A JP 22632894 A JP22632894 A JP 22632894A JP H0898082 A JPH0898082 A JP H0898082A
Authority
JP
Japan
Prior art keywords
image data
block
focus
condition
optimum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6226328A
Other languages
Japanese (ja)
Inventor
Jun Yoshida
準 吉田
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.)
JFE Steel Corp
Original Assignee
Kawasaki Steel 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 Kawasaki Steel Corp filed Critical Kawasaki Steel Corp
Priority to JP6226328A priority Critical patent/JPH0898082A/en
Publication of JPH0898082A publication Critical patent/JPH0898082A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To obtain an optimum image over the entire frame by dividing each frame and obtaining optimum focus or exposure for each block and integrating the results. CONSTITUTION: Image data stored in a frame memory 18 are divided into a prescribed block b a division circuit 20, a pulse generating circuit 14 changes an exposed time from a minimum time to a maximum time discretely and a best DC component obtained by a DCT orthogonal transformation circuit 22 and an exposure condition at that time are stored in a buffer memory A26. Then a focus is changed from infinite to a closest point, data in the memory A 26 are referenced and a focus condition evaluation circuit 28 obtains an optimum condition of each focus and exposure for minimum to maximum exposure time and stores the result in a buffer memory B30. Then data of an optimum condition of each block stored in the memories B30 and A26 are stored in a memory C32. Thus, a best image is stored in a memory C32 as consecutive data for each block subjected to orthogonal transformation and a focused image with optimum exposure is obtained over the entire screen.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子デジタルスチルカ
メラの焦点及び露出の制御技術に係り、特に画面内の全
領域において、画面の部分毎に最適な焦点条件及び露出
条件となるような画像を得ることを可能にした全画面条
件最適化電子スチルカメラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus and exposure control technique for an electronic digital still camera, and more particularly to an image in which an optimum focus condition and exposure condition are obtained for each part of the screen in the entire area of the screen. The present invention relates to an electronic still camera with optimized full-screen conditions that makes it possible to obtain an image.

【0002】[0002]

【従来の技術】一般に、明るさを保って倍率の高い画像
を得ようとする場合、光学レンズの特性により、焦点深
度が浅くなるため、顕微鏡等の高倍率が必要となる撮影
条件では、画面の一部の領域しか焦点を合せることがで
きない。又、一般のスナップ撮影での、逆光条件におい
てフラッシュ等を利用しない場合は、影になっている部
分が黒く潰れてしまったり、あるいは白い部分が白く潰
れてしまう。これは画面内の領域によって輝度成分のレ
ベルが大きく異なる場合、どちらか一方に露出条件が合
うと、他方の領域内での局所的な細かなレンジのコント
ラストを表現しきれないためである。
2. Description of the Related Art Generally, when trying to obtain an image with a high magnification while maintaining the brightness, the depth of focus becomes shallow due to the characteristics of the optical lens. Only a small area of can be focused. Further, in the general snap photography, when the flash or the like is not used under the backlight condition, the shadowed portion is crushed black or the white portion is crushed white. This is because, if the level of the luminance component is greatly different depending on the area in the screen and the exposure condition is met in either one, the local fine range contrast cannot be fully expressed in the other area.

【0003】従来、被写体の光学画像情報を、レンズ等
の光学処理系を介してCCD等の固体撮像素子に入力
し、光電変換されて出力する電気信号をデジタル化し、
デジタル画像を情報として処理する電子カメラが実用化
されている。
Conventionally, optical image information of a subject is input to a solid-state image pickup device such as a CCD via an optical processing system such as a lens, and an electric signal photoelectrically converted and output is digitized.
Electronic cameras that process digital images as information have been put into practical use.

【0004】この種の電子カメラでは、デジタルの画像
電気信号の高周波成分を基にフォーカス制御の評価を行
う方式が考えられている(特開平3−216078、特
開平3−214868)。高周波成分は電気画像信号を
バンドパスフィルタ(BPF)等に入力して求める方法
や、直交変換演算を行って求める方法で得られ、この値
が最大になるようにフォーカスレンズを駆動することに
より合焦点位置の画像を得ることができる。
In this kind of electronic camera, a method of evaluating focus control based on a high frequency component of a digital image electric signal has been considered (JP-A-3-216078, JP-A-3-214868). The high-frequency component is obtained by a method of inputting an electric image signal into a bandpass filter (BPF) or the like, or a method of obtaining an orthogonal transformation calculation, and the focus lens is driven so that this value becomes maximum. An image of the focus position can be obtained.

【0005】又、電子カメラでは、電子信号の輝度成分
あるいは直交変換演算によって得られる直流成分を基に
露出制御の評価を行い、それによって露出量の制御を行
う方式が考えられ、これらは画像データそのものをデー
タ処理して評価の対象として用いるため、専用のセンサ
を設ける必要がなく、カメラのコンパクト化と低コスト
化には有利である。
Further, in an electronic camera, a method of evaluating exposure control based on a luminance component of an electronic signal or a direct current component obtained by an orthogonal transformation calculation and controlling the exposure amount by the evaluation can be considered. Since the data itself is processed and used as an evaluation target, there is no need to provide a dedicated sensor, which is advantageous for downsizing and cost reduction of the camera.

【0006】しかし、一般的な従来のオートフォーカス
の方法では、一画面に対して1つの最適焦点位置、ある
いは1つの最適露出を求めるものであり、画面内の全領
域において焦点及び露出条件を最適化した画像を得るこ
とはできない。そこで特開平4−83478において
は、画面を複数の領域に分け、それぞれの領域における
合焦点位置、適切な露出量の条件を求め、そうした各条
件における画像を各一画面分入力し、加え合せ、これに
より得た画像に対して空間周波数フィルタリングによる
回復処理を施し、画面内の各被写体に焦点の合った画像
を合成する方法が開示されている。
However, in the general conventional autofocus method, one optimum focus position or one optimum exposure is obtained for one screen, and the focus and exposure conditions are optimized in the entire area of the screen. It is not possible to obtain a converted image. Therefore, in Japanese Unexamined Patent Publication No. 4-83478, the screen is divided into a plurality of areas, the focus position in each area and the conditions of an appropriate exposure amount are obtained, and an image under each of these conditions is input for one screen and added, A method is disclosed in which a recovery process by spatial frequency filtering is performed on the image obtained in this way to synthesize an image in which each subject in the screen is in focus.

【0007】又、他の技術的手段として、例えば「S.
A.Sugimoto,Y.Ichioka;Appl
ied Optics,vol.24,P.2073〜
P.2080(1985)」あるいは「太田享寿、杉原
厚吉、杉江昇、電子通信学会論文誌(D),vol.J
66−D,No.10,P.1245〜P.1246」
に紹介されているように、大型電子計算機を利用しての
画像処理技術を用いる方法も報告されている。この方法
は、局所的に合焦点となる小部分をピックアップし、合
成するこにとより画面全体に亘って焦点深度の深い画像
を得るものである。
Further, as another technical means, for example, "S.
A. Sugimoto, Y .; Ichioka; Appl
ied Optics, vol. 24, P.I. 2073 ~
P. 2080 (1985) "or" Kouju Ohta, Kokichi Sugihara, Noboru Sugie, IEICE Transactions (D), vol.J.
66-D, No. 10, P.I. 1245-P. 1246 "
, A method using an image processing technique using a large-scale computer has been reported. This method is to pick up a small portion that is a focal point locally and synthesize it to obtain an image with a deep focal depth over the entire screen.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、特開平
4−83478の方法では、全体的にぼけていてどの部
分にも焦点の合っていない画像を加算対象から除外でき
るが、一部の領域のみに合焦点であり、他領域に対して
は非合焦点となる画像を加え合せることになり、後に回
復処理をするにしても、その影響が無視できず最終的に
全体的にややぼけた画像になってしまうという問題があ
った。又、領域の分け方についても明確に説明されてお
らず、粗く分割すれば得る領域に複数の被写体が含まれ
てしまう確率が大きく、その場合その領域内の各被写体
に対する正しい合焦点条件を得ることができない。分割
領域を細かくして画面全体を小ブロックに分割すればこ
の問題は避けられるが、個々の小ブロックに合焦点があ
る画像を多数加え合せることにより、最終的に得られる
画像のぼけが大きくなるという問題がある。画面内の複
数の被写体の位置が既知であり、それに合せて画面を最
適に分割する作業ができたならば、該先願の方法は効果
的に作用すると考えられる。しかしこの処理のためのフ
ォーカススキャン工程を追加する必要があり、係る作業
を自動的に最適化するのは非常に困難である。
However, according to the method of Japanese Patent Laid-Open No. 4-83478, an image that is totally blurred and is not focused on any part can be excluded from the addition target, but only in a part of the area. It is in-focus, so images that are out-of-focus are added to other areas, and even if recovery processing is performed later, the effect cannot be ignored and the result is an overall slightly blurred image. There was a problem of becoming. Also, how to divide the area is not clearly explained, and there is a high probability that a roughly divided area will contain a plurality of subjects, and in that case, a correct focusing condition for each subject in that area is obtained. I can't. This problem can be avoided by dividing the entire screen into small blocks by making the divided area fine, but adding a large number of images with in-focus points to each small block increases the blur of the finally obtained image. There is a problem. It is considered that the method of the prior application works effectively if the positions of a plurality of subjects within the screen are known and the screen can be optimally divided in accordance with the positions. However, it is necessary to add a focus scan process for this process, and it is very difficult to automatically optimize such work.

【0009】又、前述した大型電子計算機を利用しての
画像処理技術を用いるという他の方法においても、極め
て有効な方法ではあるが、装置は大掛りになり、アルゴ
リズムが複雑であり、実用上不都合が多いという問題が
ある。
Further, even in the other method of using the image processing technique utilizing the large-sized computer mentioned above, although it is an extremely effective method, the apparatus becomes large in size, the algorithm is complicated, and it is practically used. There is a problem that there are many inconveniences.

【0010】本発明は、前記従来の問題を解決するべく
なされたもので、比較的簡単な装置でレンズの被写体深
度が浅い条件でも画面の全領域に亘って各点で合焦点で
ある画像を得、又逆光等の条件でも局所的な細かいコン
トラストを表現できる画像を得ることができる電子スチ
ルカメラを提供することを目的とする。
The present invention has been made to solve the above-mentioned conventional problems, and it is possible to obtain an image which is in focus at each point over the entire area of the screen even when the depth of field of the lens is shallow with a relatively simple device. It is an object of the present invention to provide an electronic still camera that can obtain an image that can express a local fine contrast even under conditions such as backlight.

【0011】[0011]

【課題を解決するための手段】本発明は、フォーカスレ
ンズを駆動し、それぞれ焦点条件が離散的に異なる複数
のフレームの画像データを継続的に得る手段と、各フレ
ームにおいて、画像データを複数個のブロックに分割す
る手段と、各分割されたブロックについて、最適焦点条
件を判断し、設定する手段と、前記各ブロック単位で、
該ブロックの最適焦点条件における該ブロックの画像デ
ータを選択的に記憶し、最終的に1フレーム分の画像デ
ータを記憶する記憶手段と、を備えたことにより前記目
的を達成したものである。
According to the present invention, there is provided means for driving a focus lens to continuously obtain image data of a plurality of frames each having a discretely different focus condition, and a plurality of image data for each frame. Means for dividing into blocks, means for determining and setting the optimum focus condition for each divided block, and for each block unit,
The object is achieved by further comprising a storage unit that selectively stores the image data of the block under the optimum focus condition of the block and finally stores the image data of one frame.

【0012】本発明は又、露出条件を変化させて、それ
ぞれ露出条件が離散的に異なる複数のフレームの画像デ
ータを継続的に得る手段と、各フレームにおいて、画像
データを複数個のブロックに分割する手段と、各分割さ
れたブロックについて、最適露出条件を判断し、設定す
る手段と、前記各ブロック単位で、該ブロックの最適露
出条件における該ブロックの画像データを選択的に記憶
し、最終的に1フレーム分の画像データを記憶する記憶
手段と、を備えたことにより同様に前記目的を達成した
ものである。
The present invention also provides a means for continuously obtaining image data of a plurality of frames whose exposure conditions are discretely different by changing the exposure condition, and dividing the image data into a plurality of blocks in each frame. Means for determining and setting the optimum exposure condition for each divided block, and for each block, the image data of the block under the optimum exposure condition for the block is selectively stored and finally set. The above-described object is similarly achieved by including a storage means for storing one frame of image data.

【0013】本発明は又、フォーカスレンズを駆動し、
且つ、露出条件を変化させることにより、焦点条件及び
露出条件が異なる複数のフレーム画像データを得る手段
と、各フレームにおいて、画像データを複数個のブロッ
クに分割する手段と、各分割されたブロックについて、
最適焦点条件及び最適露出条件を判断し設定する条件
と、前記各ブロック単位で、該ブロックの最適焦点条件
及び最適露出条件における該ブロックの画像データを選
択的に記憶し、最終的に1フレーム分の画像データを記
憶する記憶手段と、を備えたことにより同様に前記目的
を達成したものである。
The present invention also drives a focus lens,
Further, a means for obtaining a plurality of frame image data having different focus conditions and exposure conditions by changing the exposure conditions, a means for dividing the image data into a plurality of blocks in each frame, and a method for each divided block. ,
The conditions for determining and setting the optimum focus condition and the optimum exposure condition, and the image data of the block under the optimum focus condition and the optimum exposure condition of the block are selectively stored for each block, and finally one frame worth The above-described object is similarly achieved by including a storage unit for storing the image data.

【0014】本発明は更に、最終的に記憶する1フレー
ム分の画像データの内容が、画像データを圧縮符号化し
たデータであることとしたことにより同様に前記目的を
達成したものである。
The present invention also achieves the above-mentioned object by the fact that the content of the image data for one frame to be finally stored is the data obtained by compression-encoding the image data.

【0015】[0015]

【作用】本発明によれば、フォーカスと露出の双方、あ
るいは片方をスキャンし、各フレームにおいて画像デー
タを複数個のブロックに分割し、各ブロック毎に合焦点
あるいは最適露出の条件を判断し設定することにより、
各ブロック単位で最適条件の画像データを得、これらを
統合することにより最終的に1フレーム分の画像データ
を得、画面の全領域に亘ってフォーカス及び露出の双
方、あるいは片方の条件が最適である画像を得ることが
できる。
According to the present invention, both or one of the focus and the exposure is scanned, the image data is divided into a plurality of blocks in each frame, and the focusing condition or the optimum exposure condition is determined and set for each block. By doing
Image data of optimum conditions is obtained for each block, and image data for one frame is finally obtained by integrating these. Optimum for both focus and exposure, or one condition over the entire screen area. You can get an image.

【0016】又、最終的に記憶するデータの内容を、圧
縮符号化データとなるような構成とした場合には、より
効率的な処理が可能となる。
Further, when the content of the data to be finally stored is configured to be compression-encoded data, more efficient processing becomes possible.

【0017】[0017]

【実施例】以下、図面を参照して発明の実施例を詳細に
説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

【0018】図1は、本発明の第1実施例の概略構成を
示すブロック線図である。
FIG. 1 is a block diagram showing a schematic configuration of the first embodiment of the present invention.

【0019】図1において、2は電子スチルカメラの各
種機能の制御を行うメインCPU、4は焦点制御回路、
6はレンズ駆動回路、10はこれらによって自由に焦点
位置を変えることのできるレンズである。又、12は撮
像回路、16はAD変換回路、18はフレームメモリで
あり、14はこれらを制御するパルス発生回路である。
20は画像をブロックに分割するブロック分割回路、2
2は各ブロックに対しDCT演算を行い、直流成分と交
流成分を得るDCT直交変換回路であり、24は露出条
件評価回路で、26は各ブロック単位の最適露出条件を
記憶するバッファメモリAであり、28は焦点条件評価
回路で、30は各ブロック単位の最適焦点位置を記憶す
るバッファメモリBであり、32は最終的に1フレーム
分の最適条件を満たす画像データが記憶されるバッファ
メモリCである。
In FIG. 1, 2 is a main CPU for controlling various functions of the electronic still camera, 4 is a focus control circuit,
Reference numeral 6 is a lens drive circuit, and 10 is a lens whose focal position can be freely changed. Further, 12 is an image pickup circuit, 16 is an AD conversion circuit, 18 is a frame memory, and 14 is a pulse generation circuit for controlling them.
20 is a block dividing circuit for dividing an image into blocks, 2
Reference numeral 2 is a DCT orthogonal transform circuit that performs DCT calculation on each block to obtain a DC component and an AC component, 24 is an exposure condition evaluation circuit, and 26 is a buffer memory A that stores the optimum exposure condition for each block. , 28 is a focus condition evaluation circuit, 30 is a buffer memory B for storing the optimum focus position of each block unit, and 32 is a buffer memory C for finally storing image data satisfying the optimum condition for one frame. is there.

【0020】一連の処理は「第1前処理」と「第2前処
理」と「本処理」から構成される。そこでまず「第1前
処理」の説明を行う。
A series of processes is composed of "first pre-process", "second pre-process" and "main process". Therefore, the "first preprocessing" will be described first.

【0021】最初に、焦点位置を適当な位置に設定す
る。これはメインCPU2より、焦点制御回路4及びレ
ンズ駆動回路6を通じてレンズ10を駆動することによ
って行われる。レンズ10に入力された画像は、CCD
を用いた撮像回路12上に像を結ぶ。露出時間が予め設
定しておいた最小値となるように、パルス発生回路14
にてCCDのスキャンタイミングを制御する。そうして
得られたアナログの画像データは、AD変換回路16で
デジタルに変換され、フレームメモリ18に蓄えられ
る。このデータの配列はラスタ・スキャンであり、ブロ
ック分割回路20により、8×8画素からなるブロック
・スキャン配列に変換する。各ブロックに対し、DCT
直交変換回路22により、DCT演算を行い、直流成分
(DC)と交流成分(AC)を得る。露出条件評価回路
24を介して、バッファメモリA26の各ブロックに割
当られたアドレスに、直流成分の値と、このときの露出
条件を示す値を記憶する。これが露出条件評価用の初期
値に相当する。
First, the focus position is set to an appropriate position. This is performed by driving the lens 10 from the main CPU 2 through the focus control circuit 4 and the lens drive circuit 6. The image input to the lens 10 is a CCD
An image is formed on the image pickup circuit 12 using. The pulse generation circuit 14 adjusts the exposure time to the preset minimum value.
Controls the scan timing of the CCD. The analog image data thus obtained is converted to digital by the AD conversion circuit 16 and stored in the frame memory 18. The array of this data is raster scan, and is converted by the block division circuit 20 into a block scan array of 8 × 8 pixels. DCT for each block
The DCT operation is performed by the orthogonal transformation circuit 22 to obtain a direct current component (DC) and an alternating current component (AC). Through the exposure condition evaluation circuit 24, the value of the DC component and the value indicating the exposure condition at this time are stored in the address assigned to each block of the buffer memory A26. This corresponds to the initial value for exposure condition evaluation.

【0022】次に、露出条件を最大値までの間で離散的
に変化させ、それぞれの露出条件における画像データを
継続的に得る。そのそれぞれの画像データに対して、以
下の処理を行う。上記と同様にして得られたブロック対
し、DCT演算を行い、直流成分と交流成分を得る。こ
のときの直流成分と既にバッファメモリA26に格納さ
れている直流成分とを比較し、より良い輝度を与えると
評価された方の直流成分の値と、そのときの露出条件を
示す値を改めてバッファメモリA26に記憶する。新し
い方の条件がより良いと評価された場合は、メモリA2
6が更新されることになる。
Next, the exposure condition is discretely changed up to the maximum value, and image data under each exposure condition is continuously obtained. The following processing is performed on each of the image data. A DCT operation is performed on the blocks obtained in the same manner as above to obtain a DC component and an AC component. The direct current component at this time is compared with the direct current component already stored in the buffer memory A26, and the value of the direct current component evaluated to give better brightness and the value indicating the exposure condition at that time are newly buffered. It is stored in the memory A26. If the newer condition is evaluated as better, the memory A2
6 will be updated.

【0023】このときの評価の条件としては、予め設定
しておいた最適直流成分値に近い方を選択するという方
法が考えられる。この場合の最適直流成分値とは、明る
さのダイナミックレンジ0〜100の中間の値50が適
当だと考えられる。このとき50を越える値がきたら、
そこで比較を止め、その値とその前の値の内50に近い
方を取るようにすれば、その後のデータについての処理
を省略することができ、時間を短縮することができる。
このようにして各ブロックにおける露出量の仮の最適値
を求めておく。
As a condition for evaluation at this time, a method of selecting a value closer to a preset optimum DC component value can be considered. It is considered that the optimum DC component value in this case is an intermediate value 50 between the dynamic range of brightness 0 to 100. At this time, if the value exceeds 50,
Therefore, if the comparison is stopped and a value closer to 50 out of the value and the previous value is taken, the processing for the subsequent data can be omitted and the time can be shortened.
In this way, the provisional optimum value of the exposure amount in each block is obtained.

【0024】次に「第2前処理」の説明を行う。最初に
焦点位置を無限遠の位置に設定する。露出条件を、上記
のように求めた各ブロックの仮の最適値の最大から最小
にかけて離散的に変化させ、それぞれの露出条件におけ
る画像データを継続的に得る。そのそれぞれの画像デー
タに対して、以下の処理を行う。バッファメモリA26
を参照して、このときの露出条件を最適値としてもつブ
ロックに対し、DCT変換を行い、直流成分と交流成分
を求める。このときの交流成分を基にしてコントラスト
を評価し、そのスコアを求める。焦点条件評価回路28
を介して、バッファメモリB30の該ブロックに割当て
られたアドレスに、上記スコアと、そのときの焦点位置
を示す値を記憶する。これが焦点条件評価用の初期値に
相当する。スコアの求め方は特に規定しないが、合焦点
であれば交流成分の内、高周波成分の値が大きくなるこ
とを利用して算出する方法が考えられる。
Next, the "second preprocessing" will be described. First, the focus position is set to infinity. The exposure condition is discretely changed from the maximum value to the minimum value of the temporary optimum value of each block obtained as described above, and the image data under each exposure condition is continuously obtained. The following processing is performed on each of the image data. Buffer memory A26
With reference to, the DCT conversion is performed on the block having the exposure condition at this time as the optimum value to obtain the DC component and the AC component. The contrast is evaluated based on the AC component at this time, and the score is obtained. Focus condition evaluation circuit 28
The score and the value indicating the focus position at that time are stored in the address assigned to the block in the buffer memory B30 via. This corresponds to the initial value for focus condition evaluation. The method of obtaining the score is not particularly specified, but a method of calculating by using the fact that the value of the high frequency component in the AC component becomes large if it is the focus point can be considered.

【0025】次に、焦点位置を最近接までの間で離散的
に変化させ、その都度露出条件を上記のように各ブロッ
クの仮の最適値の最大値から最大値にかけて離散的に変
化させて、それぞれの焦点条件及び露出条件における画
像データを得る。バッファメモリA26を参照して、そ
のときの露出条件を最適値としてもつブロックに対し、
上記と同様にブロック毎の画像データの直流成分と交流
成分を得る。このときの交流成分を基にしてコントラス
トを評価し、そのスコアを求める。バッファメモリB3
0の該ブロックに割当てられたアドレスに、既に格納さ
れているスコアと今回のスコアを比較し、より良い方の
スコアであると評価された方のスコアの値と、そのとき
の焦点条件を示す値を改めてバッファメモリB30に記
憶する。このようにして、各ブロックにおける仮の合焦
点位置を求めておく。
Next, the focal position is discretely changed up to the closest point, and the exposure condition is discretely changed from the maximum value of the provisional optimum value of each block to the maximum value as described above. , Image data under each focus condition and exposure condition is obtained. Referring to the buffer memory A26, for the block having the exposure condition at that time as the optimum value,
Similar to the above, the DC component and the AC component of the image data for each block are obtained. The contrast is evaluated based on the AC component at this time, and the score is obtained. Buffer memory B3
The score already stored at the address assigned to the block of 0 is compared with the current score, and the value of the score evaluated as the better score and the focus condition at that time are shown. The value is stored again in the buffer memory B30. In this way, the provisional focus position in each block is obtained.

【0026】個々のブロックでの最適焦点条件をそのま
ま個々のブロックの最終的な焦点条件とする場合は、次
の「本処理」に移るが、その前に上記のように求めた各
ブロックおける露出量の仮の最適値及び各ブロックにお
ける仮の合焦点位置を基にしてメインCPU2より、最
終的な各ブロックの最適露出量及び合焦点位置を求めて
おき、それぞれバッファメモリA及びBに改めて記憶し
ておくことも可能である。その際の処理として、隣接す
るブロック間で焦点条件に差が大きくなりすぎないよう
に平滑化する処理や、その焦点条件の持つブロックの数
が最も大きくなるように焦点条件をそのフレームの唯一
の最適焦点条件とする方法が考えられる。つまり、後者
の方法を取れば本発明の構成を取っても従来のオートフ
ォーカスカメラのように1つのフレームに対して1つの
最適焦点条件を求めることも可能である。
When the optimum focus condition of each block is used as it is as the final focus condition of each block, the process proceeds to the next "main processing", but before that, the exposure in each block obtained as described above is performed. The final optimum exposure amount and focus position of each block are obtained from the main CPU 2 based on the provisional optimum value of the amount and the provisional focus position of each block, and stored again in the buffer memories A and B, respectively. It is also possible to keep it. As the processing at that time, smoothing processing is performed so that the difference in focus condition between adjacent blocks does not become too large, and the focus condition is set only for the frame so that the number of blocks that the focus condition has becomes the largest. A method of setting the optimum focus condition can be considered. That is, if the latter method is adopted, even if the configuration of the present invention is adopted, it is possible to obtain one optimum focus condition for one frame as in the conventional autofocus camera.

【0027】次に、「本処理」について説明する。バッ
ファメモリB30に記憶されている各ブロックの最終的
な合焦点位置の最大値から最小値にかけて離散的に焦点
位置を変化させる。その都度ある焦点位置においてバッ
ファメモリA26に記憶されている各ブロックの最終的
な最適露出条件の最大値から最小値にかけて、離散的に
露出条件を変化させる。このようにして各種条件におけ
る画像データが逐次得られるが、各ブロック毎にそれぞ
れ適した条件のときのデータをバッファメモリC32に
蓄えていく。そして最終的に1フレーム分の画像データ
がバッファメモリC32に記憶されることになる。即
ち、バッファメモリC32には最終的ベスト画像が直交
変換され、ブロック毎に連続したデータが蓄えられる。
本データのブロック順は画像データにおけるブロックの
順番と同じである。
Next, the "main processing" will be described. The focus position is discretely changed from the maximum value to the minimum value of the final focus position of each block stored in the buffer memory B30. At each focus position, the exposure condition is discretely changed from the maximum value to the minimum value of the final optimum exposure condition of each block stored in the buffer memory A26. In this way, image data under various conditions are sequentially obtained, but data under conditions suitable for each block is stored in the buffer memory C32. Finally, the image data for one frame is stored in the buffer memory C32. That is, the final best image is orthogonally transformed in the buffer memory C32, and continuous data is stored for each block.
The block order of this data is the same as the block order of the image data.

【0028】このようにして、画面全体に亘って合焦点
であり、最適露出となっている画像データが得られる。
なお、この実施例では焦点条件と露出条件を双方とも最
適化するもののみを説明したが、どちらかを省略して片
方のみを最適化する構成も容易に達成できる。
In this way, image data is obtained which is in focus and has optimum exposure over the entire screen.
In this embodiment, only the case where both the focus condition and the exposure condition are optimized has been described, but it is possible to easily achieve a configuration in which either one is omitted and only one is optimized.

【0029】次に、本発明の第2実施例について説明す
る。本第2実施例の処理も図1の構成で行われる。上記
第1実施例では少なくとも1つの「前処理」と「本処
理」が必要であったが、この第2実施例は「本処理」の
みで全ての処理を終らせる方法を示すものである。
Next, a second embodiment of the present invention will be described. The processing of the second embodiment is also performed with the configuration of FIG. Although at least one "pretreatment" and "main processing" are required in the first embodiment, this second embodiment shows a method of ending all the processing only by "main processing".

【0030】処理の殆どは第1実施例と同じである。焦
点条件を無限遠から最近接まで離散的に変化させ、その
都度露出条件を最大値から最小値に変化させて全ての条
件での画像データを逐次継続的に得る。
Most of the processing is the same as in the first embodiment. The focus condition is changed discretely from infinity to the closest point, and the exposure condition is changed from the maximum value to the minimum value each time, and image data under all conditions are successively obtained.

【0031】本第2実施例が第1実施例と異なる点は以
下のとおりである。即ち「本処理」で画像データを逐次
入力する過程において、焦点条件又は露出条件が過去の
条件よりも良い場合はそのときの画像データをバッファ
メモリC32に次々と上書していき、同時にバッファメ
モリA26及びバッファメモリB32に格納される焦点
条件及び露出条件のハイスコアも更新する。
The second embodiment differs from the first embodiment in the following points. That is, in the process of sequentially inputting image data in the “main processing”, when the focus condition or the exposure condition is better than the past condition, the image data at that time is overwritten in the buffer memory C32 one after another, and at the same time, the buffer memory C32 is simultaneously overwritten. The high scores of the focus condition and the exposure condition stored in A26 and the buffer memory B32 are also updated.

【0032】なお、このとき、同一焦点条件のときのみ
露出条件の好転によるデータの書替えを認めるなら焦点
優先の処理となるし、同一露出条件のときのみ焦点条件
の好転によるデータ書替えを認めるなら露出優先の処理
となる。このようにすれば1回のフォーカススキャンの
間に画面全体に亘って合焦点であり、最適露出となって
いる画像データが得られる。なお第2実施例では焦点条
件と露出条件を双方とも最適化するもののみを説明した
が、どちらかを省略して片方のみを最適化する構成も容
易に達成できる。
At this time, if the data rewriting due to the improvement of the exposure condition is permitted only under the same focus condition, the focus priority processing is performed, and if the data rewriting due to the improvement of the focus condition is permitted only under the same exposure condition, the exposure is performed. It is a priority process. In this way, the image data in which the focus is over the entire screen and the optimum exposure is obtained during one focus scan can be obtained. In the second embodiment, only the case where both the focus condition and the exposure condition are optimized has been described, but a configuration in which one of them is omitted and only one is optimized can be easily achieved.

【0033】次に、本発明の第3実施例について説明す
る。図2は、第3実施例の概略構成を示すブロック線図
である。本第3実施例は、第1、第2実施例を表す図1
の構成に対し、量子化回路40、ハフマン符号化回路4
2、圧縮データ記憶回路44というデータ圧縮処理のた
め回路を付加したものである。
Next, a third embodiment of the present invention will be described. FIG. 2 is a block diagram showing a schematic configuration of the third embodiment. The third embodiment is shown in FIG. 1 showing the first and second embodiments.
In comparison with the above configuration, the quantization circuit 40 and the Huffman coding circuit 4
2. A compressed data storage circuit 44 is added to the circuit for data compression processing.

【0034】即ち、第3実施例は、第1実施例、第2実
施例ともDCT演算により各ブロックの直流成分及び交
流成分を求めているので、それを利用して画像データを
圧縮符号化データとして蓄えるものである。このときの
圧縮符号化の方法としてはDCT演算を利用したJPE
G方式等が適している。
That is, in the third embodiment, the DC component and the AC component of each block are obtained by the DCT calculation in both the first embodiment and the second embodiment. Therefore, the image data is used as compression encoded data. Is stored as. As the compression encoding method at this time, JPE using DCT operation is used.
G method is suitable.

【0035】即ち、メインCPU2より1フレーム分の
圧縮処理信号を受けて、バッファメモリC32により1
フレーム分の画像データを読み出し、量子化回路40で
量子化を行い、続けてハフマン符号化回路42でハフマ
ン符号化を行い、圧縮データ記憶回路44に記憶する。
又、本発明では画像データを8×8画素からなるブロッ
クに分割しているが、これは上記画像データ圧縮の際の
入力形式と同じであることから、パイプライン処理によ
って、効率的な処理が可能となる。
That is, the compression processing signal for one frame is received from the main CPU 2, and the buffer memory C32 outputs 1
The image data for the frame is read out, the quantization circuit 40 quantizes it, the Huffman coding circuit 42 subsequently performs Huffman coding, and the compressed data storage circuit 44 stores it.
Further, in the present invention, the image data is divided into blocks of 8 × 8 pixels, but since this is the same as the input format at the time of the image data compression, the pipeline processing enables efficient processing. It will be possible.

【0036】[0036]

【発明の効果】以上説明したとおり本発明によれば、各
ブロック毎に、最適焦点あるいは最適露出、あるいは最
適焦点で且つ最適露出の画像データが得られるため、そ
れらを統合することによってフレームの全領域に亘って
前記条件が最適である画像を得ることができる。
As described above, according to the present invention, the optimum focus, the optimum exposure, or the image data of the optimum focus and the optimum exposure can be obtained for each block. It is possible to obtain an image in which the above conditions are optimal over the region.

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

【図1】本発明の第1実施例の概略構成を示すブロック
線図
FIG. 1 is a block diagram showing a schematic configuration of a first embodiment of the present invention.

【図2】本発明の第3実施例の概略構成を示すブロック
線図
FIG. 2 is a block diagram showing a schematic configuration of a third embodiment of the present invention.

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

2…メインCPU 10…レンズ 12…撮像回路 14…パルス発生回路 16…AD変換回路 18…フレームメモリ 20…ブロック分割回路 22…DCT直交変換回路 24…露出条件評価回路 26…バッファメモリA 28…焦点条件評価回路 30…バッファメモリB 32…バッファメモリC 40…量子化回路 42…ハフマン符号化回路 44…圧縮データ記憶回路 2 ... Main CPU 10 ... Lens 12 ... Imaging circuit 14 ... Pulse generation circuit 16 ... AD conversion circuit 18 ... Frame memory 20 ... Block division circuit 22 ... DCT orthogonal transformation circuit 24 ... Exposure condition evaluation circuit 26 ... Buffer memory A 28 ... Focus Condition evaluation circuit 30 ... Buffer memory B 32 ... Buffer memory C 40 ... Quantization circuit 42 ... Huffman coding circuit 44 ... Compressed data storage circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】フォーカスレンズを駆動し、それぞれ焦点
条件が離散的に異なる複数のフレームの画像データを継
続的に得る手段と、 各フレームにおいて、画像データを複数個のブロックに
分割する手段と、 各分割されたブロックについて、最適焦点条件を判断
し、設定する手段と、 前記各ブロック単位で、該ブロックの最適焦点条件にお
ける該ブロックの画像データを選択的に記憶し、最終的
に1フレーム分の画像データを記憶する記憶手段と、 を備えたことを特徴とする電子スチルカメラ。
1. A means for driving a focus lens to continuously obtain image data of a plurality of frames each having a discretely different focus condition, and a means for dividing the image data into a plurality of blocks in each frame. Means for determining and setting the optimum focus condition for each of the divided blocks, and image data of the block under the optimum focus condition of the block is selectively stored for each block, and finally, for one frame. An electronic still camera, comprising: storage means for storing image data of.
【請求項2】露出条件を変化させて、それぞれ露出条件
が離散的に異なる複数のフレームの画像データを継続的
に得る手段と、 各フレームにおいて、画像データを複数個のブロックに
分割する手段と、 各分割されたブロックについて、最適露出条件を判断
し、設定する手段と、 前記各ブロック単位で、該ブロックの最適露出条件にお
ける該ブロックの画像データを選択的に記憶し、最終的
に1フレーム分の画像データを記憶する記憶手段と、 を備えたことを特徴とする電子スチルカメラ。
2. A means for continuously obtaining image data of a plurality of frames whose exposure conditions are discretely different by changing the exposure condition, and a means for dividing the image data into a plurality of blocks in each frame. Means for determining and setting the optimum exposure condition for each of the divided blocks, and image data of the block under the optimum exposure condition of the block is selectively stored for each block, and finally one frame An electronic still camera comprising: a storage unit for storing minute image data.
【請求項3】フォーカスレンズを駆動し、且つ、露出条
件を変化させることにより、焦点条件及び露出条件が異
なる複数のフレーム画像データを得る手段と、 各フレームにおいて、画像データを複数個のブロックに
分割する手段と、 各分割されたブロックについて、最適焦点条件及び最適
露出条件を判断し設定する条件と、 前記各ブロック単位で、該ブロックの最適焦点条件及び
最適露出条件における該ブロックの画像データを選択的
に記憶し、最終的に1フレーム分の画像データを記憶す
る記憶手段と、 を備えたことを特徴とする電子スチルカメラ。
3. A means for obtaining a plurality of frame image data having different focus conditions and exposure conditions by driving a focus lens and changing an exposure condition, and image data is divided into a plurality of blocks in each frame. Dividing means, conditions for determining and setting the optimum focus condition and the optimum exposure condition for each of the divided blocks, and image data of the block under the optimum focus condition and the optimum exposure condition of the block for each block. An electronic still camera, comprising: storage means for selectively storing and finally storing image data for one frame.
【請求項4】請求項1乃至3のいずれか1項において、
最終的に記憶する1フレーム分の画像データの内容が、
画像データを圧縮符号化したデータであることを特徴と
する電子スチルカメラ。
4. The method according to any one of claims 1 to 3,
The content of the image data for one frame to be finally stored is
An electronic still camera, which is data obtained by compression-encoding image data.
JP6226328A 1994-09-21 1994-09-21 Electronic still camera Pending JPH0898082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6226328A JPH0898082A (en) 1994-09-21 1994-09-21 Electronic still camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6226328A JPH0898082A (en) 1994-09-21 1994-09-21 Electronic still camera

Publications (1)

Publication Number Publication Date
JPH0898082A true JPH0898082A (en) 1996-04-12

Family

ID=16843460

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6226328A Pending JPH0898082A (en) 1994-09-21 1994-09-21 Electronic still camera

Country Status (1)

Country Link
JP (1) JPH0898082A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000008507A3 (en) * 1998-08-05 2000-05-11 Tuhh Tech Gmbh Method and device for automatic focusing and illumination in image-recording systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000008507A3 (en) * 1998-08-05 2000-05-11 Tuhh Tech Gmbh Method and device for automatic focusing and illumination in image-recording systems

Similar Documents

Publication Publication Date Title
EP2171685B1 (en) Image processor, image processing method, digital camera, and imaging apparatus
CN100418359C (en) Automatic focusing device and focusing method
US20030174230A1 (en) Digital camera
US8373775B2 (en) Apparatus, method and software stored on a computer-readable storage medium, for reducing noise in an image
CN1212018C (en) Camera integrated video recording and reproducing apparatus, and record control method thereof
WO2007049634A1 (en) Imaging device, image processing device, and program
JPH10271530A (en) Image data compression coder, method therefor and digital camera
US20040085460A1 (en) Imaging apparatus, control method, and a computer program product having computer program code therefor
US20060017835A1 (en) Image compression region of interest selection based on focus information
CN102763405A (en) Imaging device including target tracking function
US6990240B2 (en) Image processing apparatus
JPH11215498A (en) Image processor, image processing method and program storage medium thereof
JP2007052061A (en) Imaging device, focusing operation control method, and electronic information apparatus
JP2009124644A (en) Image processing device, imaging device, and image reproduction device
JP2000155257A (en) Method and device for autofocusing
JP2000152065A (en) Automatic focusing method and device
JP2008109482A (en) Imaging apparatus, image recording processing method and image recording processing program
JPH0898082A (en) Electronic still camera
JP2000209590A (en) Image encoder, image encoding method, storage medium and image pickup device
US20200311893A1 (en) Image processing apparatus with images having different in-focus positions, image pickup apparatus, image processing method, and computer readable storage medium
JP2006203339A (en) Imaging apparatus and contour correction method of image data, noise eliminating method thereof, and recording control method thereof
JPH10150633A (en) Digital still camera
JP2006094419A (en) Image signal processing apparatus and image signal processing method
JP2011135285A (en) Imaging apparatus, and imaging control program
KR20100011288A (en) Method of compressing images, computer-readable medium storing program to perform the same and apparatus of photographing digital images