JP2766528B2 - Electronic camera image data processing device - Google Patents

Electronic camera image data processing device

Info

Publication number
JP2766528B2
JP2766528B2 JP1273770A JP27377089A JP2766528B2 JP 2766528 B2 JP2766528 B2 JP 2766528B2 JP 1273770 A JP1273770 A JP 1273770A JP 27377089 A JP27377089 A JP 27377089A JP 2766528 B2 JP2766528 B2 JP 2766528B2
Authority
JP
Japan
Prior art keywords
blocks
dct
processing device
data processing
image data
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.)
Expired - Fee Related
Application number
JP1273770A
Other languages
Japanese (ja)
Other versions
JPH03136470A (en
Inventor
弘文 阪上
正文 田中
英一 前田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP1273770A priority Critical patent/JP2766528B2/en
Priority to US07/600,371 priority patent/US5142380A/en
Priority to DE4033552A priority patent/DE4033552A1/en
Publication of JPH03136470A publication Critical patent/JPH03136470A/en
Application granted granted Critical
Publication of JP2766528B2 publication Critical patent/JP2766528B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子カメラの画像処理装置に関する。Description: TECHNICAL FIELD The present invention relates to an image processing device for an electronic camera.

〔従来の技術〕[Conventional technology]

従来の銀塩写真システムによるカメラに代わり、CCD
等の固体撮像素子を利用した電子スチルカメラが開発さ
れている。この電子スチルカメラは被写体光を電気信号
に変換し、この変換した電気信号を適宜信号処理したの
ち記録媒体に記録する方式である。
CCD instead of conventional silver halide photography camera
An electronic still camera using a solid-state imaging device such as the one described above has been developed. This electronic still camera converts a subject light into an electric signal, processes the converted electric signal appropriately, and records the processed signal on a recording medium.

第6図は電子スチルカメラの一例を示すブロック図
で、被写体光lをレンズ50およびシャッタ51によって撮
像素子52上に結像させ、駆動回路53によって光電変換し
た後、アナログ画像信号として出力する。アナログ画像
信号は信号処理回路54でテレビジョン信号のような映像
信号とされ、AD変換器55でディジタル映像信号に変換さ
れた後、一画面分の映像信号を蓄積することが出来るバ
ッファメモリ56に一時的に記憶される。バッファメモリ
56に記憶された信号は符号化回路57によってデータ圧縮
されメモリパック58に記録される。
FIG. 6 is a block diagram showing an example of an electronic still camera. An image of subject light 1 is formed on an image pickup device 52 by a lens 50 and a shutter 51, and is photoelectrically converted by a drive circuit 53 and then output as an analog image signal. The analog image signal is converted into a video signal such as a television signal by a signal processing circuit 54, converted into a digital video signal by an AD converter 55, and then stored in a buffer memory 56 capable of storing one screen of video signal. Stored temporarily. Buffer memory
The signal stored in 56 is compressed by an encoding circuit 57 and recorded in a memory pack 58.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

電子スチルカメラで撮影する場合、必要となる調整操
作として焦点調整,露光調整,ホワイトバランス調整で
ある。従来これらの調整には専用のセンサを必要とし、
カメラの低価格化には不向きであった。また、電子スチ
ルカメラは市場における互換性が必要であり、符号化方
式の標準化を図る必要がある。
When shooting with an electronic still camera, necessary adjustment operations include focus adjustment, exposure adjustment, and white balance adjustment. Conventionally, these adjustments require dedicated sensors,
It was not suitable for lowering the price of cameras. In addition, electronic still cameras need to be compatible in the market, and it is necessary to standardize the encoding method.

この発明は符号化方式として市場において互換性の有
る国際標準化方式を用い、カメラの撮影時に必要な各種
調整用のセンサを不要とした低コストで互換性のある電
子スチルカメラ用の画像データ処理装置を提供すること
を目的とする。
The present invention uses an international standardized system that is compatible in the market as an encoding system, and eliminates the need for sensors for various adjustments required when photographing a camera. The purpose is to provide.

〔課題を解決するための手段〕[Means for solving the problem]

第1の発明においては、入力画像をN×N個の画素か
らなる複数のブロックに分割し、この分割した各ブロッ
ク毎に離散コサイン変換(DCT)する変換手段と、 前記変換手段の出力から、焦点調整用として、輝度信
号に対する複数のブロックのDCT係数の任意の次数のAC
成分を出力する出力手段と、 を備える。
In a first aspect, an input image is divided into a plurality of blocks including N × N pixels, and a discrete cosine transform (DCT) is performed for each of the divided blocks. AC of any order of DCT coefficients of multiple blocks for luminance signal for focus adjustment
Output means for outputting a component.

第2の発明においては、入力画像をN×N個の画素か
らなる複数のブロックに分割し、この分割した各ブロッ
ク毎に離散コサイン変換(DCT)する変換手段と、 前記変換手段の出力から、露光調整用として、輝度信
号に対する複数のブロックのDCT係数のDC成分を出力す
る出力手段と、 を備える。
In the second invention, an input image is divided into a plurality of blocks each including N × N pixels, and a discrete cosine transform (DCT) is performed for each of the divided blocks. Output means for outputting DC components of DCT coefficients of a plurality of blocks for a luminance signal for exposure adjustment.

また第3の発明においては、入力画像をN×N個の画
素からなる複数のブロックに分割し、この分割した各ブ
ロック毎に離散コサイン変換(DCT)する変換手段と、 前記変換手段の出力から、ホワイトバランス用とし
て、色差信号に対する複数のブロックDCT係数のDC成分
を出力する出力手段と、 を備える。
Further, in the third aspect, the input image is divided into a plurality of blocks composed of N × N pixels, and a discrete cosine transform (DCT) is performed for each of the divided blocks. And output means for outputting DC components of a plurality of block DCT coefficients for the color difference signal for white balance.

〔作 用〕(Operation)

電子スチルカメラの焦点調整の場合、レンズを前後に
移動させながら得らえるCCD画像の空間周波数が最も高
くなるレンズの位置が合焦点位置と考えることが出来
る。また、露光調整は、輝度信号の平均値を知ることが
出来ればその平均値が所定の範囲内に入るように絞りを
調整することによって行うことが出来る。さらに、ホワ
イトバランス調整については、白い物体を撮影し色差信
号R−Y,B−Yの平均値が零になるようにオフセット調
整することで調整することが出来る。このように、焦
点,露光,ホワイトバランスの各調整には、空間周波数
成分および平均値が分かれば可能となる。
In the case of focus adjustment of an electronic still camera, the position of the lens at which the spatial frequency of the CCD image obtained while moving the lens back and forth is highest can be considered as the focus position. Further, the exposure adjustment can be performed by adjusting the aperture so that the average value of the luminance signal can be found within a predetermined range if the average value can be obtained. Further, the white balance can be adjusted by photographing a white object and adjusting the offset so that the average value of the color difference signals RY and BY becomes zero. As described above, the focus, exposure, and white balance can be adjusted if the spatial frequency component and the average value are known.

この発明において、N×N画素を1ブロックとして2
次元の離散コサイン変換(DCT:Dsscrete Cosine Transf
ormation)を行うと、そのDCT結果のDC成分はN×N画
素分の領域の平均値を表し、AC成分は空間周波数成分に
良く似た値を示す。従って、DCT結果から焦点,露光,
ホワイトバランスの各調整に必要な情報が得られること
になる。
In the present invention, N × N pixels are defined as one block, and
Dimensional Discrete Cosine Transform (DCT: Dsscrete Cosine Transf
When the DCT result is obtained, the DC component of the DCT result represents the average value of the area of N × N pixels, and the AC component shows a value very similar to the spatial frequency component. Therefore, focus, exposure,
Information necessary for each adjustment of the white balance is obtained.

〔実施例〕〔Example〕

まず、電子スチルカメラに使用される静止画像のデー
タ圧縮方式の国際標準化方式について説明する。
First, an international standardization method of a data compression method for a still image used in an electronic still camera will be described.

第2図は国際化標準方式のうちの“Baseline System"
の処理を説明するための概略図である。このシステムは
入力画像を8×8画素からなるブロックに分割し、各ブ
ロック毎に離散コサイン変換(DCT)を行い(処理S
1)、得られたDCT係数を8×8個の閾値からなる量子化
マトリックスの各閾値により割算することで量子化を行
う(処理S2)。量子化されたDCT係数のDC成分は前のブ
ロックで量子化されたDC成分との差分を取り、その差分
のビット数がハフマン符号化される。AC成分はブロック
内でジグザグスキャンを行い一次元の数列に変換したの
ち連続する零(無効係数)の個数と有効係数のビット数
とで2次元のハフマン符号化が行われる(処理S3および
S4)。
Figure 2 shows the “Baseline System” of the international standard system
It is a schematic diagram for explaining processing of. This system divides an input image into blocks of 8 × 8 pixels, and performs discrete cosine transform (DCT) for each block (processing S
1), quantization is performed by dividing the obtained DCT coefficient by each threshold of a quantization matrix composed of 8 × 8 thresholds (process S2). The difference between the DC component of the quantized DCT coefficient and the DC component quantized in the previous block is obtained, and the number of bits of the difference is subjected to Huffman coding. The AC component is subjected to zigzag scanning within the block and converted into a one-dimensional sequence, and then two-dimensional Huffman coding is performed on the number of consecutive zeros (ineffective coefficients) and the number of effective coefficient bits (processing S3 and S3).
S4).

なお、処理2における量子化のときには量子化マトリ
ックスの各閾値に対してある係数(スケールファクタ)
が乗算され量子化が行われる。この係数により圧縮画像
の画質および圧縮率が調整される。第3図に輝度信号Y
用の量子化マトリックスを、第4図に色差信号I,Q用の
量子化マトリックスを、第5図にジグザグスキャンの順
序を示すテーブルをそれぞれ示す。
At the time of the quantization in the process 2, a certain coefficient (scale factor) is set for each threshold value of the quantization matrix.
Is multiplied and quantization is performed. The coefficient adjusts the image quality and compression ratio of the compressed image. FIG. 3 shows the luminance signal Y.
FIG. 4 shows a quantization matrix for color difference signals I and Q, and FIG. 5 shows a table showing the order of zigzag scanning.

なお、ハフマン符号化はDC成分およびAC成分共に量子
化された係数値そのものを使用せず、その値を表現する
のに必要なビット数がハフマン符号化の入力になる。そ
してハフマン符号と別にそのビット数の値が付加情報と
して付け加えられる。例えば、量子化された係数が2
(10進数)とした場合、2進数で表現すると“000…01
0"となるが、これを表現するのに必要なビット数2がこ
の値を代表する値としてハフマン符号化される。そし
て、付加ビットとして2ビットのみのデータ“10"が付
加される。
Note that the Huffman coding does not use the quantized coefficient value itself for both the DC component and the AC component, and the number of bits required to represent the value is input to the Huffman coding. Then, separately from the Huffman code, the value of the number of bits is added as additional information. For example, if the quantized coefficient is 2
(Decimal number), if expressed in binary number, "000… 01
However, the number of bits 2 required to represent the value is Huffman-encoded as a value representative of this value. Then, only two bits of data "10" are added as additional bits.

また、量子化された係数が負の場合は付加ビットから
1を引いたデータが付加される。例えば、量子化された
係数が−2(10進数)とした場合、2進数(2の補数表
示)で表現すると“111…110"となり、下2ビットが付
加ビットとなるが、“10"から「1」を引いた“01"が付
加ビットとして付加される。こうすることにより、量子
化された係数が正のときは付加ビットは1で始まり、負
であれば0で始まることになり、正負の判別が容易に行
える。
If the quantized coefficient is negative, data obtained by subtracting 1 from the additional bit is added. For example, when the quantized coefficient is -2 (decimal number), when expressed in a binary number (two's complement notation), it becomes "111... 110", and the lower two bits become additional bits. “01” obtained by subtracting “1” is added as an additional bit. By doing so, the additional bit starts with 1 when the quantized coefficient is positive, and starts with 0 when the quantized coefficient is negative, so that it is easy to distinguish between positive and negative.

第1図は上述した“Baseline System"のデータ圧縮処
理をハード化した画像データ処理装置の一実施例を示す
ブロック図である。
FIG. 1 is a block diagram showing an embodiment of an image data processing apparatus in which the above-mentioned "Baseline System" data compression processing is hardened.

この装置は8×8画素のブロックを離散コサイン変換
するDCT回路10、変換されたDCT係数を一時記憶する一対
のRAM11aおよび11b、ジグザグスキャンをしながら読み
出すためのアドレス変換テーブルを記憶したROM12、RAM
11a,11bとROM12とにアドレスデータを供給するアドレス
カウンタ13、輝度信号Yおよび色差信号I,Qの量子化マ
トリックスの各閾値を記憶するROM14および15、スケー
ルファクタを乗算うるためのビットシフト回路16および
17、量子化を行う除算器18、量子化された係数のDC成分
の差分を演算する2段レジスタ19および減算器20、DC成
分用のハフマンテーブルを記憶したROM21、量子化され
たAC成分の係数の零を検出するためのコンパレータ22お
よび零の連続性をカウントするカウンタ23、量子化され
たAC成分の係数が零でない場合に、その値とそれまでの
連続する零の個数を保持するためのレジスタ24、AC成分
用のハフマンテーブルを記憶したROM25および全体の動
作を制御するタイミング制御回路26から構成される。
This device includes a DCT circuit 10 for performing discrete cosine transform on a block of 8 × 8 pixels, a pair of RAMs 11a and 11b for temporarily storing the converted DCT coefficients, a ROM 12 for storing an address conversion table for reading out while performing zigzag scanning, and a RAM.
11a, 11b and an address counter 13 for supplying address data to the ROM 12, ROMs 14 and 15 for storing respective threshold values of a quantization matrix of a luminance signal Y and color difference signals I and Q, and a bit shift circuit 16 for multiplying a scale factor. and
17, a divider 18 for performing quantization, a two-stage register 19 and a subtractor 20 for calculating a difference between DC components of quantized coefficients, a ROM 21 storing a Huffman table for DC components, and a quantized AC component. A comparator 22 for detecting the zero of the coefficient and a counter 23 for counting the continuity of the zero, when the coefficient of the quantized AC component is not zero, to hold the value and the number of consecutive zeros up to that point. , A ROM 25 storing a Huffman table for AC components, and a timing control circuit 26 for controlling the overall operation.

また、前述したように、DCT回路10でのDCT結果のDC成
分は8×8画素分の領域の平均値を示し、AC成分は空間
周波数成分によく似た値を示すので、DCT結果から焦
点,露光、ホワイトバランス等の調整に必要な値が得ら
れる。
Further, as described above, the DC component of the DCT result in the DCT circuit 10 indicates the average value of the area of 8 × 8 pixels, and the AC component indicates a value very similar to the spatial frequency component. , Exposure, white balance and the like are obtained.

そこで、この発明では1ブロック内のDCT係数を出力
するためのアドレスを設定するレジスタ27、DCT回路10
から出力されるDCT係数がメモリへ入力されるときのア
ドレスとレジスタ27に設定されたアドレスとを比較する
コンパレータ28、DCT係数がメモリへ入力されるアドレ
スとレジスタ27に設定されているアドレスとが同じとき
にDCT係数を保持するためのレジスタ29を設けている。
Therefore, in the present invention, the register 27 for setting the address for outputting the DCT coefficient in one block, the DCT circuit 10
The comparator 28 compares the address when the DCT coefficient output from the memory is input to the memory with the address set in the register 27, and determines the address where the DCT coefficient is input to the memory and the address set in the register 27. At the same time, a register 29 for holding the DCT coefficient is provided.

この構成において、例えばアドレス設定用レジスタ27
に1ブロック用のDC成分のアドレスを設定すれば、一画
面における全ブロックのDC成分のDCT係数がレジスタ29
から得られ、これらの平均値を求めればDCT回路10の入
力が輝度信号ならば露光調整に、色差信号ならばホワイ
トバランス調整に必要な値が得られる。また、アドレス
設定用レジスタ27に任意の次数のAC成分のアドレスを設
定すれば、AC成分のDCT係数が得られ、その次数のAC成
分の全ブロックについての平均値を求め、その平均値が
大きくなるようにレンズの位置を調整することで焦点を
合わせることが可能である。
In this configuration, for example, the address setting register 27
If the address of the DC component for one block is set in the register 29, the DCT coefficients of the DC components of all blocks in one screen are stored in the register 29.
If the average value of these is obtained, a value necessary for exposure adjustment is obtained if the input of the DCT circuit 10 is a luminance signal, and a value necessary for white balance adjustment is obtained if the input is a color difference signal. Also, if the address of the AC component of any order is set in the address setting register 27, the DCT coefficient of the AC component is obtained, and the average value of all the blocks of the AC component of that order is obtained, and the average value becomes large. It is possible to adjust the focus by adjusting the position of the lens so as to be as follows.

〔発明の効果〕〔The invention's effect〕

この発明によれば、焦点,露光,ホワイトバランスの
各専用のセンサが不要となり、電子スチルカメラの低価
格化が実現できる。また、データ圧縮方式に国際化標準
方式を採用しているので、互換性の保持を必要とする電
子スチルカメラに好適である。
According to the present invention, dedicated sensors for focus, exposure, and white balance are not required, and the cost of the electronic still camera can be reduced. Further, since the international standardization method is adopted as the data compression method, it is suitable for an electronic still camera that needs to maintain compatibility.

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

第1図はこの発明による画像データ処理装置の一実施例
を示すブロック図、 第2図は電子スチルカメラのデータ圧縮方式における国
際化標準方式のうちの“Baseline System"の概略図、 第3図は輝度信号の量子化マトリックス、 第4図は色差信号の量子化マトリックス、 第5図はジグザグスキャンのテーブル、 第6図は電子スチルカメラのブロック図である。
FIG. 1 is a block diagram showing an embodiment of an image data processing device according to the present invention. FIG. 2 is a schematic diagram of a "Baseline System" of an international standardized system in a data compression system of an electronic still camera. FIG. 4 is a quantization matrix of a luminance signal, FIG. 4 is a quantization matrix of a color difference signal, FIG. 5 is a table of a zigzag scan, and FIG. 6 is a block diagram of an electronic still camera.

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H04N 5/225 - 5/238 H04N 9/04 - 9/09 H04N 9/64 - 9/73Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) H04N 5/225-5/238 H04N 9/04-9/09 H04N 9/64-9/73

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力画像をN×N個の画素からなる複数の
ブロックに分割し、この分割した各ブロック毎に離散コ
サイン変換(DCT)する変換手段と、 前記変換手段の出力から、焦点調整用として、輝度信号
に対する複数のブロックのDCT係数の任意の次数のAC成
分を出力する出力手段と、 を備えたことを特徴とする電子カメラの画像データ処理
装置。
An input image is divided into a plurality of blocks each composed of N × N pixels, and a discrete cosine transform (DCT) is performed for each of the divided blocks. Output means for outputting an AC component of an arbitrary order of DCT coefficients of a plurality of blocks with respect to a luminance signal, the image data processing device for an electronic camera.
【請求項2】入力画像をN×N個の画素からなる複数の
ブロックに分割し、この分割した各ブロック毎に離散コ
サイン変換(DCT)する変換手段と、 前記変換手段の出力から、露光調整用として、輝度信号
に対する複数のブロックDCT係数のDC成分を出力する出
力手段と、 を備えたことを特徴とする電子カメラの画像データ処理
装置。
2. A conversion means for dividing an input image into a plurality of blocks each composed of N × N pixels, a discrete cosine transform (DCT) for each of the divided blocks, and an exposure adjustment based on an output of the conversion means. Output means for outputting DC components of a plurality of block DCT coefficients with respect to a luminance signal, for use in an image data processing device for an electronic camera.
【請求項3】入力画像をN×N個の画素からなる複数の
ブロックに分割し、この分割した各ブロック毎に離散コ
サイン変換(DCT)する変換手段と、 前記変換手段の出力から、ホワイトバランス用として、
色差信号に対する複数のブロックのDCT係数のDC成分を
出力する出力手段と、 を備えたことを特徴とする電子カメラの画像データ処理
装置。
3. A conversion means for dividing an input image into a plurality of blocks of N × N pixels, a discrete cosine transform (DCT) for each of the divided blocks, and a white balance based on an output of the conversion means. As for
Output means for outputting DC components of DCT coefficients of a plurality of blocks for a color difference signal, and an image data processing device for an electronic camera.
JP1273770A 1989-10-23 1989-10-23 Electronic camera image data processing device Expired - Fee Related JP2766528B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP1273770A JP2766528B2 (en) 1989-10-23 1989-10-23 Electronic camera image data processing device
US07/600,371 US5142380A (en) 1989-10-23 1990-10-18 Image data processing apparatus
DE4033552A DE4033552A1 (en) 1989-10-23 1990-10-22 IMAGE DATA PROCESSING DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1273770A JP2766528B2 (en) 1989-10-23 1989-10-23 Electronic camera image data processing device

Publications (2)

Publication Number Publication Date
JPH03136470A JPH03136470A (en) 1991-06-11
JP2766528B2 true JP2766528B2 (en) 1998-06-18

Family

ID=17532338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1273770A Expired - Fee Related JP2766528B2 (en) 1989-10-23 1989-10-23 Electronic camera image data processing device

Country Status (1)

Country Link
JP (1) JP2766528B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2849301B2 (en) 1993-03-25 1999-01-20 株式会社日立製作所 Imaging device
US6677989B1 (en) 1993-03-25 2004-01-13 Hitachi, Ltd. Imaging and recording apparatus

Also Published As

Publication number Publication date
JPH03136470A (en) 1991-06-11

Similar Documents

Publication Publication Date Title
US5291282A (en) Image data coding apparatus and method capable of controlling amount of codes
KR100347508B1 (en) Photo Image Pick-Up Device
US5732156A (en) Picture data compression coding device and method thereof
JP4350809B2 (en) Digital camera
US5838379A (en) Image processing apparatus having means for controlling exposure using an orthogonal transformation coefficient
JPH053550A (en) Device and method for encoding image data
JPH0832037B2 (en) Image data compression device
US6677994B1 (en) Image processing apparatus method of the same and camera apparatus
JP2766528B2 (en) Electronic camera image data processing device
JPH02105686A (en) Digital recorder for still picture
JP4256028B2 (en) Compression encoding apparatus and method
JPH07135568A (en) Digital data processor
KR100252677B1 (en) Apparatus and method for controlling a jpeg file
JP3076081B2 (en) Image signal processing device
JP3038020B2 (en) Image data recording method and apparatus
JPH04248769A (en) Picture data coding circuit
JP3055954B2 (en) Electronic still camera
JP3082050B2 (en) Digital electronic still camera
JP3144727B2 (en) Digital electronic still camera
JP3192133B2 (en) Electronic camera device
JP2824255B2 (en) Image signal orthogonal transform coding device
JP3095788B2 (en) Electronic camera device
JPH07115668A (en) Device and method for compressing image
JPH04137879A (en) Electronic still camera device
JPH02113683A (en) Digital electronic still camera

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080403

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090403

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees