JPH06268961A - Digital electronic still camera - Google Patents

Digital electronic still camera

Info

Publication number
JPH06268961A
JPH06268961A JP4889893A JP4889893A JPH06268961A JP H06268961 A JPH06268961 A JP H06268961A JP 4889893 A JP4889893 A JP 4889893A JP 4889893 A JP4889893 A JP 4889893A JP H06268961 A JPH06268961 A JP H06268961A
Authority
JP
Japan
Prior art keywords
block
activity
image
evaluation function
electronic still
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
JP4889893A
Other languages
Japanese (ja)
Other versions
JP3144727B2 (en
Inventor
Kenji Ito
研治 伊藤
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP4889893A priority Critical patent/JP3144727B2/en
Publication of JPH06268961A publication Critical patent/JPH06268961A/en
Application granted granted Critical
Publication of JP3144727B2 publication Critical patent/JP3144727B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To attain quantization matching the 4 characteristic of a picture when picture data subject to orthogonal transformation is quantized. CONSTITUTION:A block activity calculation section 108 obtains a degree of a high frequency component included in each block, that is, a block activity from picture data subject to block processing. An evaluation function generating section 110 obtains an evaluation function such as a variance from the block activity of plural blocks and gives the result to a quantization table setting section 116. A total activity calculation section 112 obtains a total activity and gives it to the setting section 116. The quantization table setting section 116 selects a quantization coefficient based on both the evaluation function representing a characteristic of the picture and the entire characteristic of the picture and sets the result to a quantization section 104. Thus, even when the picture has the same value of the total activity but the distribution of the high frequency component differs, the quantization is executed by a different quantization coefficient and then the quantization matching the picture characteristic is executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル電子スチル
カメラに係り、たとえば、撮影した被写界像の画像デー
タを2次元直交変換符号化して記録媒体に記録するディ
ジタル電子スチルカメラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital electronic still camera and, for example, to a digital electronic still camera which two-dimensionally orthogonally transforms image data of a photographed object scene image and records it on a recording medium.

【0002】[0002]

【従来の技術】周知のように、ディジタル電子スチルカ
メラにおいては撮像された被写界の画像を表わす画像信
号がディジタルデータに変換されて記録される。これら
ディジタルの画像データは、記録を効率的に行なうため
に、たとえば2次元直交変換符号化などの変換方式によ
って所望の量以下のデータ量に圧縮されて、半導体メモ
リや磁気ディスクまたは光ディスクなどの画像データ記
録媒体に記録される。
2. Description of the Related Art As is well known, in a digital electronic still camera, an image signal representing an image of an imaged object field is converted into digital data and recorded. In order to perform recording efficiently, these digital image data are compressed into a data amount less than a desired amount by a conversion method such as two-dimensional orthogonal transform coding, and the image of a semiconductor memory, a magnetic disk, an optical disk, or the like is compressed. It is recorded on the data recording medium.

【0003】このような電子スチルカメラとして、たと
えば、本願と同じ出願人による係属中の特許出願、特願
昭63-309870 などのディジタル電子スチルカメラがあっ
た。このような電子スチルカメラでは、撮像してディジ
タル化された1画面の画像データが所定の数および所定
の大きさのブロックに分割されて、各ブロックの画像デ
ータが2次元直交変換によって周波数領域のデータ、す
なわち変換係数に変換される。
As such an electronic still camera, for example, there is a digital electronic still camera such as a pending patent application by the same applicant as the present application, Japanese Patent Application No. 63-309870. In such an electronic still camera, image data of one screen imaged and digitized is divided into blocks of a predetermined number and a predetermined size, and the image data of each block is converted into a frequency domain image by a two-dimensional orthogonal transformation. It is converted into data, that is, a conversion coefficient.

【0004】この変換係数は、撮影された画像の特性に
応じて量子化係数により除算されて量子化が行なわれ
る。この場合、量子化係数は、それぞれのブロックに含
まれる高域周波数成分の程度を表わすブロックアクティ
ビティの総数、いわゆる撮像された画像の総アクティビ
ティに基づいて決められていた。量子化係数はルックア
ップテーブルに複数用意され、これが画像データの総ア
クティビティに基づいて選択されて読み出されて、変換
係数が除算される。量子化された変換係数はその後、ハ
フマン符号化されて、メモリカードなどの画像データ記
憶媒体に記録される。
The transform coefficient is divided by a quantizing coefficient according to the characteristics of the photographed image to be quantized. In this case, the quantization coefficient has been determined based on the total number of block activities representing the degree of high frequency components included in each block, that is, the total activity of the captured image. A plurality of quantized coefficients are prepared in the look-up table, which is selected and read based on the total activity of the image data, and the transform coefficient is divided. The quantized transform coefficient is then Huffman encoded and recorded in an image data storage medium such as a memory card.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
たように従来の技術においては、画像全体に含まれる高
域周波数成分の程度、つまり総アクティビティに基づい
て量子化係数が決められていたので、同値を示す総アク
ティビティを有する異なる特性の画像でも同じ量子化係
数にて量子化が行なわれており、必ずしも画像の特性に
応じたデータとして量子化されているとはいえなかっ
た。
However, as described above, in the conventional technique, the quantization coefficient is determined based on the degree of the high frequency components included in the entire image, that is, the total activity. Quantization is performed with the same quantization coefficient even for images with different characteristics having the total activity, which is not necessarily quantized as data according to the characteristics of the image.

【0006】たとえば、ある画像にて全体的に高域周波
成分が一様に分布している場合と、他の画像にていくつ
かの部分にて高域周波数成分が多く含まれて分布してい
る場合とでは、画像の特性がまったく異なる。しかし、
双方にて総アクティビティをそれぞれ演算すると、画像
全体では同じ値となる場合があり、これらのように画像
の特性が異なる場合でも同じ量子化係数にて一様に演算
が行なわれていた。これらの場合、たとえば量子化係数
を同じ値にて低く設定した際に、高域周波数成分が一様
に分布している場合はその再生の際に量子化の影響が少
ないが部分的に高域周波数成分が多く含まれている画像
では、その部分の劣化が目立つようになる。したがっ
て、同じ値の総アクティビティであっても量子化係数を
変えて、より画像の特性に合った量子化を行なう必要が
あった。
For example, when a high frequency component is uniformly distributed in an image as a whole, and in another image, a high frequency component is included in a large amount in some parts and distributed. The characteristics of the image are completely different from those in the case where it is present. But,
When the total activity is calculated by both sides, the same value may be obtained for the entire image, and even if the characteristics of the image are different, the same quantization coefficient is used for the calculation. In these cases, for example, when the quantization coefficient is set low at the same value and the high frequency components are evenly distributed, the influence of the quantization is small at the time of reproduction, but the high frequencies are partially In an image containing a large number of frequency components, the deterioration of that portion becomes noticeable. Therefore, even if the total activity has the same value, it is necessary to change the quantization coefficient to perform the quantization more suited to the characteristics of the image.

【0007】本発明は、このような従来の技術の課題を
解決して、より画像の特性に合ったデータを得ることが
できるディジタル電子スチルカメラを提供することを目
的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a digital electronic still camera which solves the problems of the prior art and can obtain data more suitable for image characteristics.

【0008】[0008]

【課題を解決するための手段】本発明は上記課題を解決
するために、被写界を撮像して得られた画像信号をディ
ジタル化し、この画像データを直交変換して、さらに量
子化および符号化して記録するディジタル電子スチルカ
メラにおいて、このカメラは、ディジタル化された画像
データを所定の数および所定の大きさのブロックに分割
するブロック化手段と、このブロック化手段からの画像
データを所定の直交変換方式にて変換する直交変換手段
と、この直交変換手段からの画像データをそれぞれ画像
の特性に応じた量子化係数にて除算して量子化する量子
化手段と、量子化された画像データを所望の符号化方式
にて符号化する符号化手段とを有し、さらに、このカメ
ラは、ブロック化された画像データに含まれる高域周波
数成分の程度を算出するブロックアクティビティ算出手
段と、このブロックアクティビティ算出手段からのブロ
ックアクティビティに基づいて画像のそれぞれの部分で
の周波数特性を表わす評価関数を算出する評価関数算出
手段と、この評価関数算出手段からの評価関数に基づい
て量子化係数を選択し、量子化手段に設定する量子化係
数設定手段とを有することを特徴とする。
In order to solve the above-mentioned problems, the present invention digitizes an image signal obtained by picking up an object field, orthogonally transforms this image data, and further quantizes and codes. In a digital electronic still camera for recording in digitized form, the camera divides the digitized image data into blocks of a predetermined number and a predetermined size, and a block of the image data from the blocking unit. Orthogonal transform means for transforming by the orthogonal transform method, quantizing means for quantizing the image data from this orthogonal transform means by quantizing coefficients according to the characteristics of the image, and quantized image data And a coding means for coding with a desired coding method. Further, the camera calculates the degree of high frequency components included in the blocked image data. Block activity calculating means, an evaluation function calculating means for calculating an evaluation function representing a frequency characteristic in each part of the image based on the block activity from the block activity calculating means, and an evaluation function from the evaluation function calculating means. Quantized coefficient setting means for selecting a quantized coefficient based on the above and setting it in the quantizing means.

【0009】この場合、ブロック化手段は画像データを
縦横に分割して数個毎の画素データをブロック化し、ブ
ロックアクティビティ算出手段は分割されたブロック毎
の画素データに基づいてブロックアクティビティを算出
して、評価関数算出手段は数ブロック毎のアクティビテ
ィの分散値を評価関数として算出するとよい。
In this case, the block forming means divides the image data vertically and horizontally to form a block of several pixel data, and the block activity calculating means calculates the block activity based on the divided pixel data of each block. The evaluation function calculation means may calculate the variance value of the activity for every several blocks as the evaluation function.

【0010】また、ブロックアクティビティ算出手段は
ライン毎のアクティビティを算出して、評価関数算出手
段は、数ライン毎のブロックアクティビティの分散値を
評価関数として算出してもよい。
Further, the block activity calculating means may calculate the activity for each line, and the evaluation function calculating means may calculate the variance value of the block activity for every several lines as the evaluation function.

【0011】さらに、このカメラは、ブロックアクティ
ビティ算出手段にて算出されたそれぞれのブロックアク
ティビティを加算して画像の総アクティビティを算出す
る総アクティビティ算出手段を有し、量子化係数設定手
段は、評価関数および総アクティビティの双方に基づい
て量子化係数を選択するとよい。
Further, the camera has a total activity calculating means for adding the respective block activities calculated by the block activity calculating means to calculate the total activity of the image, and the quantization coefficient setting means is an evaluation function. Quantization coefficients may be selected based on both and total activity.

【0012】この場合、このカメラは、総アクティビテ
ィおよびブロックアクティビティに基づいてそれぞれの
ブロックの符号量を決定するビット配分算出手段を有す
るとよい。
In this case, this camera may have a bit allocation calculating means for determining the code amount of each block based on the total activity and the block activity.

【0013】[0013]

【作用】本発明のディジタル電子スチルカメラによれ
ば、ディジタル化された被写界像を表わす画像データを
ブロック化手段にてブロック化して、それぞれのブロッ
クに含まれる画像データの高周波数成分の程度、いわゆ
るブロックアクティビティをブロックアクティビティ算
出手段にて求め、これらブロックアクティビティから画
像の各部における特性を表わす評価関数を評価関数算出
手段にて求める。量子化係数選択手段は、この評価関数
に基づいて量子化係数を選択する。これにより、量子化
手段は直交変換されたそれぞれのブロックの画像データ
をそのブロックの特性に応じた量子化係数にて量子化す
る。さらに符号化手段は量子化されたそれぞれのデータ
を符号化して記録する。
According to the digital electronic still camera of the present invention, the image data representing the digitized object scene image is divided into blocks by the block forming means, and the degree of the high frequency component of the image data contained in each block. The so-called block activity is obtained by the block activity calculating means, and the evaluation function expressing the characteristic in each part of the image is obtained by the evaluation function calculating means from these block activities. The quantized coefficient selecting means selects a quantized coefficient based on this evaluation function. As a result, the quantizing means quantizes the image data of each block that has been orthogonally transformed by using the quantized coefficient according to the characteristic of the block. Further, the encoding means encodes and records each quantized data.

【0014】[0014]

【実施例】次に、添付図面を参照して本発明によるディ
ジタル電子スチルカメラの一実施例を詳細に説明する。
図2には、本発明におけるディジタル電子スチルカメラ
の一実施例が示されている。この電子スチルカメラは、
レンズ10を介して入射する被写界を撮像デバイス12にて
撮影し、この被写界像を表わす画像信号をディジタルデ
ータの形で圧縮部30に送り、これにより画像データを圧
縮符号化してメモリカード40に蓄積する装置である。特
に本実施例では、2次元直交変換されたディジタルデー
タをより画像の特性に応じた量子化ステップにて量子化
を行なって圧縮を施す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a digital electronic still camera according to the present invention will be described in detail with reference to the accompanying drawings.
FIG. 2 shows an embodiment of the digital electronic still camera according to the present invention. This electronic still camera
An object scene incident through the lens 10 is photographed by the imaging device 12, and an image signal representing this object scene image is sent to the compression unit 30 in the form of digital data, whereby the image data is compression-encoded and stored in the memory. This is a device that stores data in the card 40. In particular, in this embodiment, the two-dimensional orthogonally transformed digital data is quantized and compressed by a quantization step according to the characteristics of the image.

【0015】各部の詳細を説明すると、撮像デバイス12
は、たとえばCCD などの固体撮像素子が有利に適用さ
れ、撮像レンズ10を介して入力する被写界像を撮影し、
被写界を表わすRGB カラー画像信号を出力する。なお、
撮影に必要な露光機構や合焦機構などの他の機能部は本
発明の理解に直接関係ないので、その説明を省略する。
また、メモリカード40は、たとえばSRAM(スタティック
RAM)またはEEPROM(電気的消去可能および書き換え可能
なROM)などの半導体デバイスがカード状の基体に担持さ
れた記憶装置であり、有利には本装置に着脱可能に装着
される。
The image pickup device 12 will be described in detail.
Is advantageously applied to a solid-state imaging device such as a CCD, and captures a scene image input through the imaging lens 10.
Outputs an RGB color image signal that represents the scene. In addition,
Other functional units such as an exposure mechanism and a focusing mechanism necessary for photographing are not directly related to the understanding of the present invention, and thus the description thereof will be omitted.
In addition, the memory card 40 may be, for example, an SRAM (static
A memory device in which a semiconductor device such as RAM) or EEPROM (electrically erasable and rewritable ROM) is carried on a card-shaped substrate, and is preferably detachably attached to the device.

【0016】撮像デバイス12の出力は、アナログ・ディ
ジタル(A/D) 変換器14に接続されている。変換器14は撮
像デバイス12から供給されるアナログの画像信号を対応
するディジタルデータに変換して出力する信号変換回路
である。たとえば、CCD12 からの画像信号はそれぞれ10
ビットのデータにディジタル化される。このA/D 変換器
14のディジタルデータ出力は信号処理部16に接続されて
いる。信号処理部16は本実施例では、白バランス調整お
よび諧調補正などの前処理と、たとえばRGB にて得られ
た各色のデータを輝度信号(Y) と色差信号(C) の画像デ
ータに変換する処理回路である。
The output of the imaging device 12 is connected to an analog / digital (A / D) converter 14. The converter 14 is a signal conversion circuit that converts an analog image signal supplied from the imaging device 12 into corresponding digital data and outputs the digital data. For example, the image signal from CCD12 is 10
Digitized into bit data. This A / D converter
The digital data output of 14 is connected to the signal processing section 16. In this embodiment, the signal processing unit 16 performs preprocessing such as white balance adjustment and gradation correction, and converts each color data obtained in RGB into image data of a luminance signal (Y) and a color difference signal (C). It is a processing circuit.

【0017】信号処理部16の出力はフレームメモリ24に
接続されている。フレームメモリ24はメモリコントロー
ラ18にて制御され、信号処理部16からの画像データが順
次格納され、および格納されたデータが読み出されてデ
ータ圧縮部30へ供給される。メモリコントローラ18およ
びデータ圧縮部30などは、主制御回路(CPU) を有する制
御部20にてそれぞれ制御されている。また、データ圧縮
部30は、入力操作部22の外部入力に応動してメモリカー
ド40へのデータの記録および読み出しが行なわれる。
The output of the signal processing unit 16 is connected to the frame memory 24. The frame memory 24 is controlled by the memory controller 18, the image data from the signal processing unit 16 is sequentially stored, and the stored data is read and supplied to the data compression unit 30. The memory controller 18, the data compression unit 30 and the like are controlled by the control unit 20 having a main control circuit (CPU). Further, the data compression section 30 records and reads data to and from the memory card 40 in response to an external input from the input operation section 22.

【0018】次に、本実施例における特徴部分であるデ
ータ圧縮部30の内部構成を図1を参照して説明する。こ
のデータ圧縮部30は、ブロック化部100 と、2次元直交
変換(DCT) 部102 と、正規化部104 と、ハフマン符号化
部106 とを有し、さらに、正規化部104 の量子化係数α
および符号化部106 のビット配分値を決める係数設定部
として、ブロックアクティビティ算出部108 と、評価関
数作成部110 と、総アクティビティ算出部112 と、ビッ
トファクタ算出部114 と、量子化テーブル設定部116
と、ビット配分算出部118 とを有している。
Next, the internal structure of the data compression section 30, which is a characteristic part of this embodiment, will be described with reference to FIG. The data compression unit 30 includes a blocking unit 100, a two-dimensional orthogonal transform (DCT) unit 102, a normalization unit 104, and a Huffman coding unit 106, and further, a quantization coefficient of the normalization unit 104. α
As a coefficient setting unit that determines the bit allocation value of the encoding unit 106, a block activity calculation unit 108, an evaluation function creation unit 110, a total activity calculation unit 112, a bit factor calculation unit 114, and a quantization table setting unit 116.
And a bit allocation calculation unit 118.

【0019】さらに各部を説明すると、ブロック化部10
0 は、フレームバッファを含み、このフレームバッファ
に入力した1画像分の画像データを複数のブロック、た
とえばそれぞれ8x8 画素のブロックに分割して出力する
回路である。
Each section will be further described. The blocking section 10
Reference numeral 0 denotes a circuit which includes a frame buffer and outputs the image data for one image input to the frame buffer by dividing it into a plurality of blocks, for example, blocks each having 8 × 8 pixels.

【0020】2次元直交変換部102 は、ブロックごとの
画像データを2次元直交変換する回路である。2次元直
交変換としては、ディスクリートコサイン変換、アダマ
ール変換等の周知の直交変換が考えられ、本実施例では
ディスクリートコサイン変換(DCT) が有利に用いられて
いる。2次元直交変換されたブロックごとの画像データ
は低次のデータから高次のデータとなるように縦横に配
列されて順次、出力される。直流成分のデータは最初に
出力される。つまり、2次元直交変換された結果の画像
データすなわち変換係数は、ブロック単位にて直流成分
および、交流成分の低い周波数成分から高い周波数成分
の順に正規化部104 に送られる。
The two-dimensional orthogonal transformation unit 102 is a circuit for performing two-dimensional orthogonal transformation on the image data of each block. Well-known orthogonal transforms such as discrete cosine transform and Hadamard transform can be considered as the two-dimensional orthogonal transform, and discrete cosine transform (DCT) is advantageously used in this embodiment. The image data for each block that has been subjected to the two-dimensional orthogonal transformation is arranged vertically and horizontally so as to be changed from low-order data to high-order data, and is sequentially output. The DC component data is output first. That is, the image data as a result of the two-dimensional orthogonal transformation, that is, the transform coefficient is sent to the normalization unit 104 in order of the DC component and the AC component in the order from the low frequency component to the high frequency component.

【0021】正規化部104 は、変換係数に対して量子化
と係数切り捨てとを行なう。量子化は、変換係数を量子
化係数αに応じた量子化ステップ値にて除算することに
よって量子化を行なう。係数切り捨ては量子化された係
数を所定の閾値と比較し、その閾値以下の部分を四捨五
入して切り捨てるものである。本実施例の量子化係数α
は、後述するように複数のブロックアクティビティから
それらの分散などの評価関数にて演算した値と、画像全
体の合計値すなわち総アクティビティとに基づいて求め
られ、この量子化係数αは量子化テーブル設定部116 か
ら正規化部104に供給される。
The normalizing section 104 performs quantization and coefficient truncation on the transform coefficient. The quantization is performed by dividing the transform coefficient by a quantization step value corresponding to the quantization coefficient α. The coefficient truncation is to compare the quantized coefficient with a predetermined threshold value, and round off the portion below the threshold value. Quantization coefficient α of this embodiment
Is calculated based on a value calculated from a plurality of block activities by an evaluation function such as their variance and the total value of the entire image, that is, the total activity, and the quantization coefficient α is set in the quantization table. It is supplied from the unit 116 to the normalization unit 104.

【0022】量子化部104 にて量子化されたデータは、
ブロック単位で低い周波数から高い周波数の交流成分の
順にジグザグ状に走査されて符号化部106 に供給され
る。符号化部106 は、量子化部104 から入力される変換
係数を符号化する。変換係数の交流成分は零が連続する
ことが多いため、零の値のデータの連続する量すなわち
零のラン長および非零の振幅を求め、これを2次元ハフ
マン符号化する。符号化部106 から出力されるブロック
ごとの画像データはそれぞれのブロック毎に所望のビッ
ト配分にてメモリカード40などの記録媒体に記録され
る。ブロック毎のビット配分値は、ビット配分算出部11
8 からの符号停止信号Sに基づいて符号化が停止され
る。
The data quantized by the quantizer 104 is
Each block is scanned in a zigzag pattern in order from a low frequency to a high frequency AC component and supplied to the encoding unit 106. The encoding unit 106 encodes the transform coefficient input from the quantization unit 104. Since the AC component of the conversion coefficient is often continuous with zeros, a continuous amount of zero-value data, that is, a run length of zeros and a non-zero amplitude are obtained, and these are two-dimensionally Huffman-encoded. The image data for each block output from the encoding unit 106 is recorded on a recording medium such as the memory card 40 in a desired bit allocation for each block. The bit allocation value for each block is calculated by the bit allocation calculation unit 11
The encoding is stopped based on the code stop signal S from 8.

【0023】ブロックアクティビティ算出部108 は、ブ
ロック化部100 にてブロック化されたそれぞれのデータ
に高域周波数成分が含まれている程度を算出する。ブロ
ックアクティビティは本実施例では、1つのブロックを
構成する画素データのそれぞれの値とそのブロックの画
素データの平均値との差の絶対値を求めて加算すること
により求められる。それぞれのブロックのアクティビテ
ィは、評価関数作成部110 、総アクティビティ算出部11
2 およびビットファクタ算出部114 に供給される。
The block activity calculation unit 108 calculates the extent to which each of the data divided into blocks by the blocking unit 100 contains a high frequency component. In this embodiment, the block activity is obtained by obtaining and adding the absolute value of the difference between the respective values of the pixel data forming one block and the average value of the pixel data of the block. The activity of each block includes an evaluation function creation unit 110 and a total activity calculation unit 11
2 and the bit factor calculation unit 114.

【0024】評価関数作成部110 は、ブロックアクティ
ビティの値からその画像に特有の評価値を算出する。本
実施例では、たとえばアクティビティ算出部108 からの
数ブロック毎のブロックアクティビティより分散をと
り、それぞれのブロックの評価値を求める。これによ
り、その画像特有の評価関数f(X1) を算出する。たとえ
ば図3に示すように、画像Aは中央部にてアクティビテ
ィの値が高く、両側にて低い値を示す勾配の多い分散値
が得られ、画像Bは中央部にてアクティビティの値がや
や高く両側にてやや低い値を示すなだらかな分散値が得
られる。このように評価関数作成部110 は画像に特有の
評価関数f(X1) をブロックアクティビティから求めて量
子化テーブル設定部116 に出力する。たとえば、分散値
が大きいラインでは量子化係数を大きくして量子化ステ
ップ数を増しおよび係数切り捨てを少なくして、それぞ
れのブロックでの変換係数をより明確にした方が良く。
また分散値が小さいラインでは量子化係数を小さくして
それぞれのデータを平均化してもよい。
The evaluation function creating unit 110 calculates an evaluation value peculiar to the image from the value of the block activity. In the present embodiment, for example, the activity is calculated from the block activity for every several blocks from the activity calculator 108, and the evaluation value of each block is obtained. Thereby, the evaluation function f (X1) peculiar to the image is calculated. For example, as shown in FIG. 3, the image A has a high activity value in the central part, and a variance value with a large gradient showing low values on both sides is obtained, and the image B has a slightly high activity value in the central part. A gentle variance value is obtained that shows a slightly lower value on both sides. In this way, the evaluation function creation unit 110 obtains the evaluation function f (X1) peculiar to the image from the block activity and outputs it to the quantization table setting unit 116. For example, for a line with a large variance value, it is better to increase the quantization coefficient to increase the number of quantization steps and reduce the coefficient truncation to make the conversion coefficient in each block clearer.
Further, in a line having a small variance value, the quantization coefficient may be reduced to average each data.

【0025】総アクティビティ算出部112 は、ブロック
アクティビティを1画面について加算してその合計値す
なわち画像全体の総アクティビティを算出する加算回路
である。この総アクティビティは、画像全体に含まれる
高域周波数成分の程度を表わす。算出された総アクテイ
ビティは量子化テーブル設定部116 およびビットファク
タ算出部114 に出力される。
The total activity calculating unit 112 is an addition circuit for adding the block activities for one screen and calculating the total value thereof, that is, the total activity of the entire image. This total activity represents the degree of high frequency components included in the entire image. The calculated total activity is output to the quantization table setting unit 116 and the bit factor calculation unit 114.

【0026】ビットファクタ算出部114 は、ブロック毎
のビット配分値を決定する場合にそれぞれのブロックに
おけるビット配分の重みを算出する。これは、総アクテ
ィビティとブロックアクティビティとから求められる。
The bit factor calculating unit 114 calculates the weight of the bit distribution in each block when determining the bit distribution value for each block. This is calculated from the total activity and the block activity.

【0027】ビット配分算出部118 は、ブロックアクテ
ィビティを受けてビットファクタ算出部112 にて算出さ
れたそれぞれのブロックのビットファクタに基づいて、
ブロック毎のビット配分値を算出する。このビット配分
算出部118 は、それぞれのブロックにて算出したビット
配分値を越えたときに符号化部106 に符号停止信号Sを
供給して、それぞれのブロックにおける符号量の制御を
行なう。
The bit allocation calculation unit 118 receives the block activity, and based on the bit factor of each block calculated by the bit factor calculation unit 112,
The bit allocation value for each block is calculated. The bit allocation calculating unit 118 supplies the code stop signal S to the encoding unit 106 when the bit allocation value calculated in each block is exceeded, and controls the code amount in each block.

【0028】以上のような構成において、本実施例にお
ける電子スチルカメラの動作を説明する。まず、操作者
は、図示しないレリーズボタンを押下して所望の被写界
像を撮影する。これにより、カメラの撮像デバイス12に
て被写界が撮像されてアナログのRGB カラー映像信号が
形成されると、これらはアナログディジタル変換部14に
てディジタルデータにそれぞれ変換される。
The operation of the electronic still camera of this embodiment having the above-mentioned structure will be described. First, the operator presses a release button (not shown) to photograph a desired object scene image. As a result, when the field of view is imaged by the imaging device 12 of the camera to form analog RGB color video signals, these are converted into digital data by the analog-to-digital conversion unit 14.

【0029】このRGB のディジタルデータは、信号処理
部16にて輝度信号および色差信号などの画像データに変
換されてメモリコントローラ18を介してフレームメモリ
24にそれぞれ格納される。操作者は、所望の画像データ
がフレームメモリ24に格納されると、入力操作部22の所
定のボタンを押下して画像データをメモリカードに記録
する。このとき、制御部20はメモリコントローラ18を制
御してメモリ24からデータ圧縮部30に画像データを転送
させて記録処理を行なわせる。
The RGB digital data is converted into image data such as a luminance signal and a color difference signal by the signal processing unit 16 and is passed through the memory controller 18 to the frame memory.
Stored in 24 respectively. When the desired image data is stored in the frame memory 24, the operator presses a predetermined button of the input operation unit 22 to record the image data in the memory card. At this time, the control unit 20 controls the memory controller 18 to transfer the image data from the memory 24 to the data compression unit 30 to perform the recording process.

【0030】1画像分の画像データを受けたデータ圧縮
部30では、その被写体像を表わす画像データをブロック
部100 のフレームバッファに順次蓄積する。これを受け
たブロック部100 は、8x8 画素のブロックに分割して順
次2次元直交変換部102 およびブロックアクティビティ
算出部108 へ出力する。これを受けた2次元直交変換部
102 は、順次それぞれのブロックを2次元直交変換す
る。この際に、ブロックアクティビィ算出部108 ではブ
ロック毎の画素データからそれぞれのブロックにおける
高周波数成分の程度すなわちアクティビティを求めて、
これらブロックアクティビティを評価関数作成部110 、
総アクティビティ算出部112 、ビット配分算出部118 の
それぞれに供給する。
The data compression unit 30 which has received the image data for one image sequentially stores the image data representing the subject image in the frame buffer of the block unit 100. Receiving this, the block unit 100 divides the block into 8 × 8 pixel blocks and sequentially outputs the blocks to the two-dimensional orthogonal transformation unit 102 and the block activity calculation unit 108. Two-dimensional orthogonal transformation unit that received this
102 sequentially performs a two-dimensional orthogonal transformation on each block. At this time, the block activity calculation unit 108 obtains the degree of high frequency components in each block, that is, the activity from the pixel data of each block,
These block activities are evaluated function creation unit 110,
The total activity calculation unit 112 and the bit allocation calculation unit 118 are supplied to each.

【0031】これにより、評価関数作成部110 では、ラ
イン毎のブロックアクティビティからその分散値を算出
して、これを画像の評価関数F(X1) として量子化テーブ
ル設定部116 に送る。一方、総アクティビティ算出部11
2 ではブロックアクティビティを加算して1画面分のブ
ロックアクティビティを受けると、その総アクティビテ
ィ値を量子化テーブル設定部116 およびビットファクタ
算出部112 へそれぞれ供給する。この総アクテイビティ
および評価関数を受けた量子化テーブル設定部116 で
は、これらの値より画像に応じた量子化係数を選択して
正規化部104 に設定する。たとえば、分散値が大きいブ
ロックでは量子化係数を高くして量子化ステップ数を増
しおよび係数切り捨てを少なくして、それぞれのブロッ
クでの変換係数をより明確にする。分散値が小さいブロ
ックでは量子化係数を小さくしてそれぞれのデータを平
均化する。
As a result, the evaluation function creating unit 110 calculates the variance value from the block activity for each line and sends it to the quantization table setting unit 116 as the image evaluation function F (X1). On the other hand, the total activity calculation unit 11
In 2, when the block activity is added and the block activity for one screen is received, the total activity value is supplied to the quantization table setting unit 116 and the bit factor calculation unit 112, respectively. The quantization table setting unit 116 that has received the total activity and the evaluation function selects a quantization coefficient according to the image from these values and sets it in the normalization unit 104. For example, in a block having a large variance value, the quantization coefficient is increased to increase the number of quantization steps and the coefficient truncation is decreased to make the transform coefficient in each block clearer. In a block with a small variance value, the quantization coefficient is reduced and each data is averaged.

【0032】次いで、2次元直交変換部102 から正規化
部104 へ順次低次データから高次データへと直交変換さ
れたデータが供給されると、正規化部104 は設定部116
からの量子化係数にてこれらを順次除算して量子化す
る。この量子化された結果のデータは、ハフマン符号化
部106 に順次出力される。これを受けた符号化部106 は
順次、量子化データをハフマン符号化して、これらをメ
モリカード40に順次出力して記録する。
Next, when the data orthogonally transformed from the low-order data to the high-order data are sequentially supplied from the two-dimensional orthogonal transformation unit 102 to the normalization unit 104, the normalization unit 104 sets the setting unit 116.
These are sequentially divided by the quantized coefficients from and quantized. The quantized result data is sequentially output to the Huffman coding unit 106. Receiving this, the encoding unit 106 sequentially Huffman-encodes the quantized data and sequentially outputs these to the memory card 40 for recording.

【0033】一方、ビットファクタ算出部112 とビット
配分算出部118 では画像全体の総アクティビティとブロ
ックアクテビィからいずれのブロックにどの程度のビッ
ト配分を行なえば良いかをそれぞれのブロック毎に算出
している。これによって符号化部106 にて算出値のビッ
ト配分を越えたときに、ビット配分算出部118 から符号
化部106 に符号停止信号を送り出してそれぞれのブロッ
クでの符号量を制御して画像全体での符号量を所定の以
下のデータ量に制さえている。これにより、符号化部10
6 での余分に符号化されたデータのメモリカード40への
出力を禁止してメモリカード40での記録効率を高くす
る。
On the other hand, the bit factor calculation unit 112 and the bit allocation calculation unit 118 calculate for each block which bit and how much bit should be allocated to which block from the total activity of the entire image and the block activity. There is. As a result, when the coding unit 106 exceeds the bit distribution of the calculated value, the bit distribution calculating unit 118 sends a code stop signal to the coding unit 106 to control the code amount in each block to control the entire image. The code amount of is limited to a predetermined amount of data or less. As a result, the encoding unit 10
The recording efficiency of the memory card 40 is increased by prohibiting the output of the extra encoded data in 6 to the memory card 40.

【0034】このように本実施例における電子スチルカ
メラによれば、データ圧縮部30における量子化の際に、
画像全体の総アクティビティとともに画像のそれぞれの
部分の特性を示す評価関数を用いて画像の特性に応じた
量子化係数を選択して量子化を行なっているので、たと
えば図3に示すように総アクティビティが同じ値で画像
の特性が異なっている場合でもより正確に量子化を行な
うことができる。
As described above, according to the electronic still camera of this embodiment, at the time of quantization in the data compression unit 30,
Since the quantization is performed by selecting the quantization coefficient according to the characteristic of the image using the evaluation function indicating the characteristic of each part of the image together with the total activity of the entire image, for example, as shown in FIG. Quantization can be performed more accurately even when the same value is used but the image characteristics are different.

【0035】なお、上記実施例においては、数ブロック
毎のブロックアクティビティから分散を求めて評価関数
としたが、本発明においては、たとえばそれぞれのライ
ンのアクティビティを求めて数ライン毎のアクティビテ
ィからの評価値を算出してもよい。
In the above embodiment, the variance is obtained from the block activity of every several blocks and used as the evaluation function. However, in the present invention, for example, the activity of each line is obtained and evaluated from the activity of every several lines. The value may be calculated.

【0036】[0036]

【発明の効果】以上詳細に説明したように、本発明によ
るディジタル電子スチルカメラによれば、ブロック化さ
れた画像データのブロックアクティビティから画像の評
価関数を求めて、この評価関数に基づいて量子化係数を
設定するので、画像の特性に応じた量子化をより正確に
行なうことができる。特に、画像全体の総アクティビテ
ィが同じ値となる異なる画像であって高周波成分の分布
が異なる場合に、量子化係数を評価関数の違いにより変
化させることにより量子化ステップを変えてより忠実な
量子化を行なうことができる優れた効果を奏する。
As described in detail above, according to the digital electronic still camera of the present invention, an image evaluation function is obtained from the block activity of blocked image data, and quantization is performed based on this evaluation function. Since the coefficient is set, it is possible to perform the quantization more accurately according to the characteristics of the image. Especially, in the case of different images in which the total activity of the entire image has the same value and the distribution of high-frequency components is different, the quantization step is changed by changing the quantization coefficient to obtain a more faithful quantization. There is an excellent effect that can be performed.

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

【図1】本発明によるディジタル電子スチルカメラの主
要部の一実施例の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of a main part of a digital electronic still camera according to the present invention.

【図2】同実施例における電子スチルカメラの機能構成
例を示すブロック図である。
FIG. 2 is a block diagram showing a functional configuration example of an electronic still camera according to the embodiment.

【図3】異なる画像でのアクティビティの分布例を示す
図である。
FIG. 3 is a diagram showing an example of activity distribution in different images.

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

30 データ圧縮部 100 ブロック化部 102 2次元直交変換部 104 正規化部 106 ハフマン符号化部 108 ブロックアクティビティ算出部 110 評価関数作成部 112 総アクティビティ算出部 116 ビットファクタ算出部 118 量子化テーブル設定部 118 ビット配分算出部 30 data compression unit 100 blocking unit 102 two-dimensional orthogonal transformation unit 104 normalization unit 106 Huffman coding unit 108 block activity calculation unit 110 evaluation function creation unit 112 total activity calculation unit 116 bit factor calculation unit 118 quantization table setting unit 118 Bit allocation calculator

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 被写界を撮像して得られた画像信号をデ
ィジタル化し、該画像データを直交変換して、さらに量
子化および符号化して記録するディジタル電子スチルカ
メラにおいて、該カメラは、 ディジタル化された画像データを所定の数および所定の
大きさのブロックに分割するブロック化手段と、 該ブロック化手段からの画像データを所定の直交変換方
式にて変換する直交変換手段と、 該直交変換手段からの画像データをそれぞれ画像の特性
に応じた量子化係数にて除算して量子化する量子化手段
と、 量子化された画像データを所望の符号化方式にて符号化
する符号化手段とを有し、 さらに、該カメラは、前記ブロック化された画像データ
に含まれる高域周波数成分の程度をそれぞれ算出するブ
ロックアクティビティ算出手段と、 該ブロックアクティビティ算出手段からのブロックアク
ティビティに基づいて画像のそれぞれの部分での周波数
特性を表わす評価関数を算出する評価関数算出手段と、 該評価関数算出手段からの評価関数に基づいて量子化係
数を選択し、前記量子化手段に設定する量子化係数設定
手段とを有することを特徴とするディジタル電子スチル
カメラ。
1. A digital electronic still camera for digitizing an image signal obtained by picking up an image of a field, orthogonally transforming the image data, further quantizing and encoding, and recording the digital signal. Blocking means for dividing the converted image data into blocks of a predetermined number and a predetermined size, an orthogonal transformation means for transforming the image data from the blocking means by a predetermined orthogonal transformation method, and the orthogonal transformation Quantizing means for quantizing the image data from the means by a quantizing coefficient according to the characteristics of the image, and encoding means for encoding the quantized image data by a desired encoding method. Further, the camera further comprises block activity calculating means for calculating the degree of high frequency components included in the blocked image data, and the block activity calculating means. Evaluation function calculating means for calculating an evaluation function representing the frequency characteristic in each part of the image based on the block activity from the lock activity calculating means, and selecting a quantization coefficient based on the evaluation function from the evaluation function calculating means. And a quantizing coefficient setting means for setting the quantizing means.
【請求項2】 請求項1に記載のディジタル電子スチル
カメラにおいて、前記ブロック化手段は画像データを縦
横に分割して数個毎の画素データをブロック化し、前記
ブロックアクティビティ算出手段は分割されたブロック
毎の画素データに基づいてブロックアクティビティを算
出して、前記評価関数算出手段は数ブロック毎のアクテ
ィビティの分散値を算出することを特徴とするディジタ
ル電子スチルカメラ。
2. The digital electronic still camera according to claim 1, wherein the block forming unit divides the image data vertically and horizontally to form pixel data for every several pixels, and the block activity calculating unit divides the image data into divided blocks. A digital electronic still camera characterized in that a block activity is calculated on the basis of pixel data for each of the blocks, and the evaluation function calculating means calculates a variance value of the activity for each of several blocks.
【請求項3】 請求項1に記載のディジタル電子スチル
カメラにおいて、前記ブロックアクティビティ算出手段
はライン毎のアクティビティを算出して、前記評価関数
算出手段は、数ライン毎のブロックアクティビティの分
散値を算出することを特徴とするディジタル電子スチル
カメラ。
3. The digital electronic still camera according to claim 1, wherein the block activity calculating means calculates an activity for each line, and the evaluation function calculating means calculates a variance value of the block activity for every several lines. A digital electronic still camera characterized in that.
【請求項4】 請求項1に記載のディジタル電子スチル
カメラにおいて、該カメラは、前記ブロックアクティビ
ティ算出手段にて算出されたそれぞれのブロックアクテ
ィビティを加算して画像の総アクティビティを算出する
総アクティビティ算出手段を有し、 前記量子化係数設定手段は、前記評価関数および総アク
ティビティの双方に基づいて量子化係数を選択すること
を特徴とするディジタル電子スチルカメラ。
4. The digital electronic still camera according to claim 1, wherein the camera adds the respective block activities calculated by the block activity calculating unit to calculate a total activity of an image. The digital electronic still camera, wherein the quantization coefficient setting means selects a quantization coefficient based on both the evaluation function and the total activity.
【請求項5】 請求項4に記載のディジタル電子スチル
カメラにおいて、該カメラは、総アクティビティおよび
ブロックアクティビティに基づいてそれぞれのブロック
のビット配分を決定するビット配分算出手段を有するこ
とを特徴とするディジタル電子スチルカメラ。
5. The digital electronic still camera according to claim 4, wherein the camera has a bit allocation calculating means for determining the bit allocation of each block based on the total activity and the block activity. Electronic still camera.
JP4889893A 1993-03-10 1993-03-10 Digital electronic still camera Expired - Fee Related JP3144727B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4889893A JP3144727B2 (en) 1993-03-10 1993-03-10 Digital electronic still camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4889893A JP3144727B2 (en) 1993-03-10 1993-03-10 Digital electronic still camera

Publications (2)

Publication Number Publication Date
JPH06268961A true JPH06268961A (en) 1994-09-22
JP3144727B2 JP3144727B2 (en) 2001-03-12

Family

ID=12816091

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4889893A Expired - Fee Related JP3144727B2 (en) 1993-03-10 1993-03-10 Digital electronic still camera

Country Status (1)

Country Link
JP (1) JP3144727B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009153138A (en) * 2007-12-19 2009-07-09 Sony Corp Video data compression with no visual loss

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009153138A (en) * 2007-12-19 2009-07-09 Sony Corp Video data compression with no visual loss

Also Published As

Publication number Publication date
JP3144727B2 (en) 2001-03-12

Similar Documents

Publication Publication Date Title
US5291282A (en) Image data coding apparatus and method capable of controlling amount of codes
CA2118189C (en) Image coding method and apparatus therefor
JP3069455B2 (en) Quantization and dequantization circuits in image data compression and decompression equipment
US5838379A (en) Image processing apparatus having means for controlling exposure using an orthogonal transformation coefficient
JPH10271530A (en) Image data compression coder, method therefor and digital camera
KR100504649B1 (en) Device for compressing image data
JP3222780B2 (en) Image compression device
JP3795932B2 (en) Image data compression encoding method and apparatus
US7286165B2 (en) Image pickup apparatus with a variable length encoder and data quantity monitor
JP3335236B2 (en) Digital data processing device
JP3144727B2 (en) Digital electronic still camera
JP2002252759A (en) Image quantization method and device, and image coder utilizing them
JP2793402B2 (en) Image coding device
JPH02105686A (en) Digital recorder for still picture
JP2007020032A (en) Imaging apparatus
JP3306201B2 (en) Data compression device
JP3034933B2 (en) Image data recording device
JPH04144489A (en) Image data recording system
JP3038020B2 (en) Image data recording method and apparatus
JPH1066004A (en) Picture file size controller
JP3012655B2 (en) Digital camera
JP3192133B2 (en) Electronic camera device
JP2023070055A (en) Image encoding device, control method thereof, and program
JPH07115668A (en) Device and method for compressing image
JP2619535B2 (en) Image signal compression encoding apparatus and decoding reproduction apparatus

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001212

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

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

Free format text: PAYMENT UNTIL: 20080105

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20080105

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090105

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090105

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100105

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110105

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110105

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120105

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120105

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130105

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees