JPH11205793A - Image compression device, image decompression device and digital still camera - Google Patents
Image compression device, image decompression device and digital still cameraInfo
- Publication number
- JPH11205793A JPH11205793A JP597498A JP597498A JPH11205793A JP H11205793 A JPH11205793 A JP H11205793A JP 597498 A JP597498 A JP 597498A JP 597498 A JP597498 A JP 597498A JP H11205793 A JPH11205793 A JP H11205793A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- decoder
- converter
- quantizer
- 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
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は画像データを圧縮す
る画像圧縮装置および圧縮データから画像データを再生
する画像逆圧縮装置に関し、より詳しくは、デジタルス
チルカメラの画像データの圧縮と再生に関する。[0001] 1. Field of the Invention [0002] The present invention relates to an image compression apparatus for compressing image data and an image decompression apparatus for reproducing image data from compressed data, and more particularly to compression and reproduction of image data of a digital still camera.
【0002】[0002]
【従来の技術】撮影対象からの光を電荷結合素子(CC
D)に結像させて電子的に画像を撮影するデジタルスチ
ルカメラが普及している。撮影された画像を表す画像デ
ータはフラッシュメモリ、メモリカード等の記憶媒体に
記憶され、後刻読み出されて、カメラに設けられた液晶
表示装置(LCD)に表示され、あるいはパーソナルコ
ンピュータ等の他の機器に転送される。2. Description of the Related Art Light from an object to be photographed is transferred to a charge-coupled device (CC).
2. Description of the Related Art A digital still camera that electronically captures an image by forming an image on D) is widely used. Image data representing the captured image is stored in a storage medium such as a flash memory or a memory card, read out at a later time, displayed on a liquid crystal display (LCD) provided in a camera, or used in another personal computer or other computer. Transferred to device.
【0003】撮影される画像はCCDの画素数が多いほ
ど高画質になるが、画素数が多くなるほど記憶すべき画
像データの量は多くなり、記憶媒体への入出力や転送に
要する時間も増大する。そこで、画像データを圧縮して
記憶することが行われている。画像データを圧縮する方
法は種々提案されているが、一般のデジタルスチルカメ
ラでは、JPEG(Joint Photographic image coding
Experts Group)が統一規格として提唱する方式が採用
されている。[0003] The captured image has higher image quality as the number of pixels of the CCD increases, but as the number of pixels increases, the amount of image data to be stored increases, and the time required for input / output and transfer to a storage medium also increases. I do. Therefore, image data is compressed and stored. Various methods for compressing image data have been proposed. In a general digital still camera, JPEG (Joint Photographic image coding) is used.
Experts Group) has adopted the method proposed as a unified standard.
【0004】JPEG方式による画像データの圧縮処理
の流れを図4に示す。まず、画像データを所定の大きさ
(例えば8×8画素)の画素ブロックごとに離散コサイ
ン変換(DCT:Discrete Cosine Transform)して、
直流成分および低周波の交流成分を主に含む画像データ
とする。次いで、変換後の画像データを量子化して、個
々の成分を所定の段階に分類する。さらに、量子化した
画像データをハフマン(Huffman)符号化して、圧縮を
完了する。FIG. 4 shows a flow of a process of compressing image data according to the JPEG system. First, the image data is subjected to discrete cosine transform (DCT) for each pixel block of a predetermined size (for example, 8 × 8 pixels),
The image data mainly includes a DC component and a low-frequency AC component. Next, the converted image data is quantized, and individual components are classified into predetermined stages. Further, the quantized image data is subjected to Huffman coding to complete the compression.
【0005】画像データの再生はハフマン復号化、逆量
子化、および逆離散コサイン変換をこの順に施して行
う。ハフマン符号化は情報の損失のない(ロスレス)処
理であり、復号化によって符号化前の画像データが完全
に再現される。一方、量子化は値の変化を伴う処理であ
り、また画像への寄与の小さな成分が失われるため、再
生された画像データは圧縮前の画像データと微妙に相違
することになる。このため原画像を完全に再生すること
はできないが、画質の劣化は僅かであり、十分に鑑賞に
耐える再生画像が得られる。Reproduction of image data is performed by performing Huffman decoding, inverse quantization, and inverse discrete cosine transform in this order. Huffman encoding is a lossless process in which information is completely lost by decoding. On the other hand, quantization is a process involving a change in value, and a component that contributes little to an image is lost, so that reproduced image data is slightly different from image data before compression. For this reason, the original image cannot be completely reproduced, but the deterioration of the image quality is slight, and a reproduced image that can sufficiently withstand viewing is obtained.
【0006】ファクシミリ等の白黒画像を扱う装置で
は、JBIG(Joint Bi-level Imagecoding experts G
roup)の提唱する方式で画像データの圧縮を行ってい
る。JBIG方式では、画素値の予測に基づいて圧縮を
行い、処理の最終段階である符号化に算術符号化を採用
している。[0006] In a device that handles monochrome images such as a facsimile, JBIG (Joint Bi-level Imagecoding experts G) is used.
image data is compressed by the method proposed by Roup). In the JBIG system, compression is performed based on prediction of a pixel value, and arithmetic coding is used for coding, which is the final stage of processing.
【0007】[0007]
【発明が解決しようとする課題】JPEG方式が採用す
るハフマン符号化はロスレス処理であり、圧縮画像の質
の低下もたらすことがない点で好ましい。ところが、ハ
フマン符号化の圧縮率は、同じくロスレス処理である算
術符号化と比べて一般に低い。また、ハフマン符号化の
圧縮率は画像の種類によって変動し易く、画像データを
良好に圧縮することができないことも多々ある。The Huffman coding adopted by the JPEG method is a lossless process, and is preferable because the quality of a compressed image is not reduced. However, the compression rate of Huffman coding is generally lower than that of arithmetic coding, which is also lossless processing. Further, the compression ratio of Huffman coding tends to fluctuate depending on the type of image, and image data cannot often be satisfactorily compressed.
【0008】算術符号化、ハフマン符号化および他の符
号化の圧縮率を比較した例を図5に示す。図5におい
て、縦軸は圧縮前の画像データの量に対する圧縮後の画
像データの量の比を百分率で表しており、この比率が小
さいほど圧縮率が高いことを意味する。(a)はCCI
TTのテストチャートNo.1(白黒の文字画像)を、
(b)はGENESISのテストチャートのNo.1
(カラーの写真画像)を中間諧調から成る白黒画像とし
て、圧縮したものである。FIG. 5 shows an example in which the compression rates of arithmetic coding, Huffman coding and other coding are compared. In FIG. 5, the vertical axis represents the ratio of the amount of image data after compression to the amount of image data before compression in percentage, and the smaller the ratio, the higher the compression ratio. (A) is CCI
TT test chart No.1 (black and white character image)
(B) is No. 1 of the test chart of GENESIS
(Color photographic image) as a black and white image composed of intermediate gradations.
【0009】MH、MRおよびMMRはそれぞれモディ
ファイドハフマン、モディファイドリード、およびモデ
ィファイド・モディファイドリードの符号化によるもの
であり、JBIG−2およびJBIG−3はそれぞれJ
BIGの2ラインおよび3ラインの算術符号化によるも
のである。この例では、2値画像に対しては、算術符号
化はランレングス符号化に基づく他の符号化よりも圧縮
率が高い。また、中間諧調の画像に対しては、算術符号
化が圧縮の効果を示しているのに対し、ハフマン符号化
を含む他の符号化では、むしろ符号化によりデータ量が
増大する結果となっている。MH, MR and MMR are based on the coding of Modified Huffman, Modified Read and Modified Modified Read, respectively, and JBIG-2 and JBIG-3 are JBIG-3 respectively.
This is based on arithmetic coding of two lines and three lines of BIG. In this example, for binary images, arithmetic coding has a higher compression rate than other coding based on run-length coding. On the other hand, arithmetic coding shows the effect of compression for halftone images, while other coding including Huffman coding results in a larger data amount due to coding. I have.
【0010】圧縮率が低いと、記憶媒体の記憶容量を効
率よく利用するという目的を十分に達成することができ
なくなり、記憶媒体の入出力に要する時間も長くなって
画像の処理能率が低下することになる。圧縮率を高める
方法として、ハフマン符号化した後の画像データを、ロ
スレス符号化処理として知られているLZH法やZIP
法によってさらに符号化することが考えられるが、さら
なる圧縮率の向上は数%程度以下であり、符号化処理に
要する時間が長くなるのみで、効果はほとんどない。[0010] If the compression ratio is low, the purpose of efficiently using the storage capacity of the storage medium cannot be sufficiently achieved, and the time required for input / output of the storage medium becomes longer, thereby lowering the image processing efficiency. Will be. As a method of increasing the compression ratio, image data after Huffman encoding is converted into an LZH method or ZIP which is known as a lossless encoding process.
Although it is conceivable that the encoding is further performed by the method, the improvement of the compression ratio is about several percent or less, and only the time required for the encoding process becomes longer, and there is almost no effect.
【0011】JPEG方式を採用する他の機器に画像デ
ータを提供するためには、最終的にはハフマン符号化に
よって符号化を行わざるを得ない。しかしながら、撮影
した全ての画像の画像データをハフマン符号化によって
圧縮する必要はなく、他の機器に提供しない画像データ
については、より効率のよい符号化を行うことが望まし
い。In order to provide image data to another device employing the JPEG system, encoding must ultimately be performed by Huffman encoding. However, it is not necessary to compress the image data of all captured images by Huffman coding, and it is desirable to perform more efficient coding for image data not provided to other devices.
【0012】本発明は、上記問題点に鑑みてなされたも
のであり、画像データの圧縮を効率よく行い得る画像圧
縮装置とこの装置を備えたデジタルスチルカメラを提供
することを目的とする。また、圧縮データから画像デー
タを再生する画像逆圧縮装置を提供することを目的とす
る。The present invention has been made in view of the above problems, and has as its object to provide an image compression apparatus capable of efficiently compressing image data and a digital still camera provided with the apparatus. Another object of the present invention is to provide an image decompression device for reproducing image data from compressed data.
【0013】[0013]
【課題を解決するための手段】上記目的を達成するため
に、本発明では、画像を表す画像データを圧縮する画像
圧縮装置において、所定の大きさの画素ブロックごとに
画像データを離散コサイン変換する変換器と、変換器に
よって変換された画像データを量子化する量子化器と、
量子化器によって量子化された画像データを算術符号化
する符号化器とを備える。この画像圧縮装置は、量子化
までをJPEG方式に従って行い、最終段階の符号化を
JPEG方式によらずに行うことになる。In order to achieve the above object, according to the present invention, in an image compression apparatus for compressing image data representing an image, discrete cosine transform of the image data is performed for each pixel block of a predetermined size. A converter, a quantizer for quantizing the image data converted by the converter,
An encoder for arithmetically encoding the image data quantized by the quantizer. This image compression apparatus performs up to quantization in accordance with the JPEG system, and performs the final stage of encoding without using the JPEG system.
【0014】本発明ではさらに、上記の画像圧縮装置
に、符号化器によって符号化された画像データを記憶す
るメモリと、メモリに記憶している画像データを算術復
号化する復号化器と、復号化器によって復号化された画
像データをハフマン符号化する再符号化器とを備えるよ
うにする。メモリに記憶している算術符号化された画像
データはJPEG方式を採用する他の機器で利用するこ
とはできないが、復号化されハフマン符号化で再符号化
された画像データは、JPEG方式を採用する他の機器
で利用することが可能である。In the present invention, the image compression apparatus may further include a memory for storing the image data encoded by the encoder, a decoder for arithmetically decoding the image data stored in the memory, And a re-encoder for Huffman-encoding the image data decoded by the encoder. Arithmetic-coded image data stored in memory cannot be used by other devices that use the JPEG method, but image data that has been decoded and re-encoded by Huffman coding uses the JPEG method. It can be used by other devices that do.
【0015】撮像レンズと、撮像レンズを透過した光を
受けて光電変換する撮像素子と、撮像素子が出力する信
号から画像を表す画像データを生成する画像生成回路と
を有するデジタルスチルカメラに、上記の画像圧縮装置
を備えて、画像生成回路が生成した画像データを変換器
に与えるようにしてもよい。撮影された画像を表す画像
データは、離散コサイン変換と量子化の処理を施された
後、算術符号化される。復号化器と再符号化器とを備え
る構成では、ハフマン符号化された画像データを提供す
ることも可能になる。The digital still camera includes an imaging lens, an imaging device that receives light transmitted through the imaging lens, and performs photoelectric conversion, and an image generation circuit that generates image data representing an image from a signal output from the imaging device. May be provided to the converter with the image data generated by the image generation circuit. Image data representing a captured image is subjected to a discrete cosine transform and a quantization process, and then arithmetically coded. With the configuration including the decoder and the re-encoder, it is possible to provide Huffman-encoded image data.
【0016】前記目的を達成するために、本発明ではま
た、所定の大きさの画素ブロックごとに離散コサイン変
換され、量子化され、さらに算術符号化された画像デー
タを算術復号化する復号化器と、復号化器によって復号
化された画像データを逆量子化する逆量子化器と、逆量
子化器によって逆量子化された画像データを逆離散コサ
イン変換する逆変換器とで画像逆圧縮装置を構成する。
この画像逆圧縮装置は、上記の画像圧縮装置が算術符号
化した画像データを伸張する装置となる。逆変換器によ
って逆変換された画像データが表す画像を表示する表示
器を加えて画像表示装置とすることもできる。To achieve the above object, the present invention also provides a decoder for arithmetically decoding image data which has been subjected to discrete cosine transform, quantized and arithmetically encoded for each pixel block of a predetermined size. And an inverse quantizer for inversely quantizing the image data decoded by the decoder, and an inverse transformer for inverse discrete cosine transform of the image data inversely quantized by the inverse quantizer. Is configured.
This image decompression device is a device for decompressing the image data arithmetically encoded by the image compression device. An image display device may be provided by adding a display for displaying an image represented by the image data inversely transformed by the inverse transformer.
【0017】[0017]
【発明の実施の形態】本発明の一実施形態であるデジタ
ルスチルカメラの概略構成を図1に示す。このデジタル
スチルカメラ(以下、単にカメラともいう)1は、撮像
レンズ11、絞り12、撮像素子であるCCD13、ア
ナログ信号処理部(AGC/CDS)14、ADコンバ
ータ(A/D)15、タイミングジェネレータ(TG)
16、デジタル信号処理部(DSP)17、画像圧縮部
18、フラッシュメモリ19、カードドライバ20、画
像逆圧縮部21、表示部22、操作部23および制御部
24を備えている。FIG. 1 shows a schematic configuration of a digital still camera according to an embodiment of the present invention. The digital still camera (hereinafter simply referred to as a camera) 1 includes an imaging lens 11, an aperture 12, a CCD 13 serving as an imaging element, an analog signal processing unit (AGC / CDS) 14, an AD converter (A / D) 15, a timing generator. (TG)
16, a digital signal processing unit (DSP) 17, an image compression unit 18, a flash memory 19, a card driver 20, an image decompression unit 21, a display unit 22, an operation unit 23, and a control unit 24.
【0018】撮像レンズ11は撮影対象からの光をCC
D13の受光面に結像させ、絞り12は撮像レンズ11
からCCD13に至る光束を規制してCCD13の受光
量を調節する。CCD13は、赤(R)、緑(G)、青
(B)の光にそれぞれ感応する3種の画素を交互にマト
リクス状に数十万配列して成り、画素ごとに、受けた光
を電荷に変換して蓄積し、蓄積電荷をアナログ信号とし
て出力する。The imaging lens 11 converts light from the object to be photographed into CC light.
An image is formed on the light receiving surface of D13, and the aperture 12 is
The light flux from the CCD 13 to the CCD 13 is regulated to adjust the amount of light received by the CCD 13. The CCD 13 is composed of hundreds of thousands of pixels alternately arranged in a matrix of three types of pixels that are sensitive to red (R), green (G), and blue (B) light, respectively. And accumulates it, and outputs the accumulated charge as an analog signal.
【0019】アナログ信号処理部14は、CCD13の
出力信号に自動ゲイン制御を施し、2重相関サンプリン
グする。ADコンバータ15は、アナログ信号処理部1
4から入力されるアナログ信号をデジタル信号に変換し
て、デジタル信号処理部17に出力する。タイミングジ
ェネレータ16は、CCD13、アナログ信号処理部1
4およびADコンバータ15に動作のタイミングを知ら
せる駆動信号を与える。The analog signal processor 14 performs automatic gain control on the output signal of the CCD 13 and performs double correlation sampling. The AD converter 15 includes the analog signal processing unit 1
4 is converted into a digital signal and output to the digital signal processing unit 17. The timing generator 16 includes the CCD 13 and the analog signal processing unit 1
4 and a drive signal for notifying the AD converter 15 of the operation timing.
【0020】デジタル信号処理部17は、ADコンバー
タ15によってデジタル化されたCCD13の出力信号
に対して、ホワイトバランス調整、シェーディング、
R、G、Bの3色の信号の補間、ガンマ補正等の処理を
施して、輝度信号および色信号より成る画像データを生
成し、YUV4:1:1のフォーマットで出力する。デジ
タル信号処理部17によって生成される1組の画像デー
タは、撮影された1コマの画像を表すものであり、その
まま表示可能である。The digital signal processing unit 17 applies white balance adjustment, shading, and the like to the output signal of the CCD 13 digitized by the AD converter 15.
Processing such as interpolation of three color signals of R, G, and B and gamma correction are performed to generate image data including a luminance signal and a color signal, and output the image data in a YUV 4: 1: 1 format. One set of image data generated by the digital signal processing unit 17 represents one captured image and can be displayed as it is.
【0021】デジタル信号処理部17は、また、タイミ
ングジェネレータ16に駆動信号の出力時期を指示する
制御信号を与えて、自身の処理の進行状況に応じてCC
D13、アナログ信号処理部14およびADコンバータ
15を動作させる。デジタル信号処理部17は毎秒30
コマの画像データを生成する。The digital signal processing unit 17 also supplies a control signal for instructing the timing of outputting the drive signal to the timing generator 16, and outputs a control signal according to the progress of its own processing.
D13, the analog signal processing unit 14, and the AD converter 15 are operated. The digital signal processing unit 17 is 30
Generate frame image data.
【0022】画像圧縮部18は、デジタル信号処理部1
7によって生成された画像データを圧縮する。画像圧縮
部18の構成を図2に示す。画像圧縮部18は、画像メ
モリ31、変換器(DCT)32、量子化器33、符号
化器34、復号化器35、および再符号化器36より成
る。画像メモリ31はデジタル信号処理部17から供給
される1コマ分の画像データを記憶する。画像データの
圧縮処理には画像の撮影周期である1/30秒以上の時
間を要するため、その間画像データを保持するために画
像メモリ31が設けられている。The image compression section 18 is a digital signal processing section 1
7 is compressed. FIG. 2 shows the configuration of the image compression unit 18. The image compression unit 18 includes an image memory 31, a transformer (DCT) 32, a quantizer 33, an encoder 34, a decoder 35, and a re-encoder 36. The image memory 31 stores one frame of image data supplied from the digital signal processing unit 17. Since the compression processing of the image data requires a time equal to or longer than 1/30 seconds, which is the photographing cycle of the image, an image memory 31 is provided to hold the image data during that time.
【0023】変換器32は、画像データを成す輝度信号
および色信号それぞれに対して、例えば8×8画素の大
きさの画素ブロックごとに、離散コサイン変換を行う。
量子化器33は変換器32によって変換された画像デー
タを量子化する。変換器32および量子化器33による
画像データの変換と量子化は、JPEG方式に従って行
われる。The converter 32 performs a discrete cosine transform on each of a luminance signal and a chrominance signal constituting image data, for example, for each pixel block having a size of 8 × 8 pixels.
The quantizer 33 quantizes the image data converted by the converter 32. The conversion and quantization of the image data by the converter 32 and the quantizer 33 are performed according to the JPEG system.
【0024】符号化器34は、量子化器33によって量
子化された画像データを算術符号化する。ここでは符号
化器34として、JBIG方式のQMコーダを用いてい
る。変換器32、量子化器33および符号化器34によ
って圧縮された画像データは、フラッシュメモリ19に
書き込まれる。The encoder 34 arithmetically encodes the image data quantized by the quantizer 33. Here, a QM coder of the JBIG system is used as the encoder 34. The image data compressed by the converter 32, the quantizer 33, and the encoder 34 is written to the flash memory 19.
【0025】復号化器35は、フラッシュメモリ19に
書き込まれている算術符号化された画像データを読み出
して、算術復号化を行う。復号化器35が行う復号化は
符号化器34による符号化の逆処理であり、量子化器3
3によって量子化された画像データが完全に再現され
る。再符号化器36は、復号化器35によって復号化さ
れた画像データを、JPEG方式によりハフマン符号化
する。再符号化器36によって再符号化された画像デー
タは、カードドライバ20を介してメモリカードに書き
込まれる。この再符号化された画像データはJPEGの
規格に合致するものとなる。The decoder 35 reads the arithmetically encoded image data written in the flash memory 19 and performs arithmetic decoding. The decoding performed by the decoder 35 is a reverse process of the encoding performed by the encoder 34,
3 completely reproduces the image data quantized. The re-encoder 36 performs Huffman encoding on the image data decoded by the decoder 35 according to the JPEG method. The image data re-encoded by the re-encoder 36 is written to the memory card via the card driver 20. The re-encoded image data conforms to the JPEG standard.
【0026】復号化器35および再符号化器36は、J
PEG方式を採用する他の機器に提供するための画像デ
ータを生成するために用いられるものであり、デジタル
信号処理部17が生成した画像データの全てを復号化し
再符号化する必要はない。The decoder 35 and the re-encoder 36
This is used to generate image data to be provided to another device employing the PEG system, and it is not necessary to decode and re-encode all of the image data generated by the digital signal processing unit 17.
【0027】カードドライバ20は、着脱自在なメモリ
カードへの画像データの入出力を行う。フラッシュメモ
リ19は、上述のように、カメラ1で撮影され圧縮され
た画像データを記憶するが、その画像データはカードド
ライバ20によってメモリカードに複写し、他の機器に
提供することができる。逆に、メモリカードに記憶され
ている画像データをフラッシュメモリ19に複写するこ
とも可能であり、フラッシュメモリ19には、他の機器
から提供された画像データも記憶される。他の機器から
提供される画像データには、変換器32、量子化器33
および符号化器34と同じ処理によって圧縮されたもの
と、全てJPEG方式に従って圧縮されたものの両方が
ある。The card driver 20 inputs and outputs image data to and from a removable memory card. The flash memory 19 stores the image data captured and compressed by the camera 1 as described above. The image data can be copied to a memory card by the card driver 20 and provided to other devices. Conversely, image data stored in the memory card can be copied to the flash memory 19, and the flash memory 19 also stores image data provided from other devices. Image data provided from another device includes a converter 32, a quantizer 33
And the one compressed by the same processing as that of the encoder 34, and the one compressed entirely according to the JPEG method.
【0028】画像逆圧縮部21は圧縮された画像データ
を伸張して圧縮前の画像データを再生する逆圧縮処理を
行う。画像逆圧縮部21の構成を図3に示す。画像逆圧
縮部21は、2つの復号化器41、42、逆量子化器4
3、逆変換器(逆DCT)44より成る。復号化器41
は、フラッシュメモリ19に記憶されている算術符号化
された画像データを読み出して算術復合化を行う。復号
化器41は前述の画像圧縮部18の復号化器35と同一
のものであり、いずれか一方のみを備えて、画像圧縮部
18と画像逆圧縮部21とで兼用するようにしても構わ
ない。The image decompression unit 21 performs decompression processing for expanding the compressed image data and reproducing the image data before compression. FIG. 3 shows the configuration of the image decompression unit 21. The image inverse compression unit 21 includes two decoders 41 and 42 and an inverse quantizer 4
3. It comprises an inverse transformer (inverse DCT) 44. Decoder 41
Reads arithmetically encoded image data stored in the flash memory 19 and performs arithmetic decoding. The decoder 41 is the same as the decoder 35 of the image compression unit 18 described above, and may be provided with only one of them, and may be shared by the image compression unit 18 and the image decompression unit 21. Absent.
【0029】もう1つの復号化器42は、フラッシュメ
モリ19に記憶されているハフマン符号化された画像デ
ータを読み出して、ハフマン復号化を行う。復号化器4
2が行う処理は、画像圧縮部18の再符号化器36が行
う処理の逆であり、量子化された画像データが完全に再
現される。他の機器から提供されたJPEG方式の圧縮
画像データは、復号化器42によって復号化することが
できる。Another decoder 42 reads out the Huffman-encoded image data stored in the flash memory 19 and performs Huffman decoding. Decoder 4
2 is the reverse of the process performed by the re-encoder 36 of the image compression unit 18, and the quantized image data is completely reproduced. JPEG-compressed image data provided from another device can be decoded by the decoder 42.
【0030】逆量子化器43は、復号化器41または4
2によって復号化された画像データに対して逆量子化を
行う。逆変換器44は、逆量子化器43によって逆量子
化された画像データを逆離散コサイン変換する。逆量子
化器43および逆変換器44が行う処理は、それぞれ量
子化器33および変換器32の処理の逆処理に相当する
が、量子化によって既に情報が微妙に変化しているた
め、再生された画像データは圧縮前の画像データと完全
には一致しない。ただし、情報の変化量は僅かであり、
再生された画像データが表す画像は撮影された画像に匹
敵する質となる。The inverse quantizer 43 outputs the signal to the decoder 41 or 4
2 performs inverse quantization on the image data decoded. The inverse transformer 44 performs an inverse discrete cosine transform on the image data inversely quantized by the inverse quantizer 43. The processing performed by the inverse quantizer 43 and the inverse transformer 44 corresponds to the inverse processing of the processing of the quantizer 33 and the transformer 32, respectively. However, since the information has already been slightly changed by the quantization, the reproduction is performed. The compressed image data does not completely match the image data before compression. However, the amount of change in the information is small,
The image represented by the reproduced image data has a quality comparable to the captured image.
【0031】表示部22はLCDから成り、デジタル信
号処理部17が生成した画像データまたは画像逆圧縮部
21で再生された画像データを与えられて、その画像を
表示する。操作部23はダイヤル、ボタン等の操作部材
を有しており、使用者がこれらを操作して与える制御に
関する指示を制御部24に伝える。The display unit 22 is composed of an LCD and is provided with image data generated by the digital signal processing unit 17 or image data reproduced by the image decompression unit 21, and displays the image. The operation unit 23 has operation members such as a dial and a button, and transmits an instruction regarding control given by operating the user to the control unit 24.
【0032】制御部24は操作部23を介して与えられ
た指示に応じて、カメラ1の動作を制御する。撮影開始
が指示されると、制御部24はデジタル信号処理部17
に対して処理の開始を命じ、これに応じてデジタル信号
処理部17がタイミングジェネレータ16を介してCC
D13、アナログ信号処理部14、およびADコンバー
タ15に処理を開始させる。これにより画像データの生
成が開始される。ただし、画像データの圧縮やフラッシ
ュメモリ19への記憶は、操作部23に設けられたレリ
ーズボタンが操作されるまではなされない。The control unit 24 controls the operation of the camera 1 in accordance with an instruction given via the operation unit 23. When the photographing start is instructed, the control unit 24 sends the digital signal processing unit 17
, And the digital signal processing unit 17 responds to the
D13, the analog signal processing unit 14, and the AD converter 15 start processing. Thus, the generation of the image data is started. However, the compression of the image data and the storage in the flash memory 19 are not performed until the release button provided on the operation unit 23 is operated.
【0033】レリーズボタンが操作されないとき、制御
部24はデジタル信号処理部17に、生成した画像デー
タを表示部22へ逐次供給させる。これらの画像データ
に基づいて表示部22に表示される画像はファインダー
像として機能する。このため、カメラ1には光学ファイ
ンダーは設けられていないが、光学ファインダーを設け
るようにしてもよい。When the release button is not operated, the control section 24 causes the digital signal processing section 17 to sequentially supply the generated image data to the display section 22. An image displayed on the display unit 22 based on these image data functions as a finder image. For this reason, the camera 1 is not provided with an optical finder, but may be provided with an optical finder.
【0034】レリーズボタンが操作されると、制御部2
4はデジタル信号処理部17に、生成した1コマ分の画
像データを画像圧縮部18へ供給させる。この画像デー
タは画像メモリ31に一旦記憶され、前述の如く圧縮さ
れた後、フラッシュメモリ19に書き込まれる。画像デ
ータの圧縮処理を行っている間も、デジタル信号処理部
17で生成される画像データの表示部22への供給は継
続される。したがって、撮影を行っている間、使用者は
常にファインダー像を観察することができる。When the release button is operated, the control unit 2
4 causes the digital signal processing unit 17 to supply the generated image data for one frame to the image compression unit 18. This image data is temporarily stored in the image memory 31, compressed as described above, and then written into the flash memory 19. The supply of the image data generated by the digital signal processing unit 17 to the display unit 22 is continued even during the compression processing of the image data. Therefore, the user can always observe the finder image while taking a picture.
【0035】撮影を行っていない期間は、フラッシュメ
モリ19に記憶している画像データを読み出して逆圧縮
し、再生した画像を表示部22に表示させることができ
る。このとき、制御部24は、指示された画像データが
算術符号化されたものであるかハフマン符号化されたも
のであるかに応じて、画像逆圧縮部21の2つの復号化
器41、42のうち適する方を動作させて復号化を行わ
せる。撮影を行っていない期間は、フラッシュメモリ1
9に記憶している算術符号化された画像データを復号化
してハフマン符号化により再符号化することや、フラッ
シュメモリ19とメモリカードの相互間で画像データを
複写することも可能である。During a period in which photographing is not performed, image data stored in the flash memory 19 is read out, decompressed, and a reproduced image can be displayed on the display unit 22. At this time, the control unit 24 sets the two decoders 41 and 42 of the image decompression unit 21 according to whether the specified image data is arithmetic-coded or Huffman-coded. The decryption is performed by operating the appropriate one of them. Flash memory 1
It is also possible to decode the arithmetically coded image data stored in 9 and re-encode by Huffman coding, or to copy the image data between the flash memory 19 and the memory card.
【0036】これらの機能により、デジタルスチルカメ
ラ1はJPEGの規格に従う他の機器と画像データを共
用することができる。しかも、カメラ1のみが使用する
圧縮された画像データは算術符号化されたものであって
量が少ないから、より多くのコマの画像データをフラッ
シュメモリ19に記憶しておくことが可能であり、フラ
ッシュメモリ19への書き込みやその読み出しに要する
時間も短くなって、カメラ1の処理動作、例えば再生表
示がより速やかになる。With these functions, the digital still camera 1 can share image data with other devices conforming to the JPEG standard. Moreover, since the compressed image data used only by the camera 1 is arithmetically coded and has a small amount, it is possible to store image data of more frames in the flash memory 19, The time required for writing to and reading from the flash memory 19 is also shortened, and the processing operation of the camera 1, for example, reproduction and display, becomes faster.
【0037】画像逆圧縮部21の復号化器41と同じく
算術復号化を行う機能を他の機器にもたせれば、算術符
号化した画像データをそのまま他の機器に提供すること
も可能になる。このとき、メモリカードへの画像データ
の書き込みや他の機器でのメモリカードからの読み出し
もより迅速に行い得るようになって、処理能率が向上す
る。If the function of performing arithmetic decoding is provided to another device in the same manner as the decoder 41 of the image decompression unit 21, the arithmetically encoded image data can be provided to another device as it is. At this time, writing of image data to the memory card and reading from the memory card by another device can be performed more quickly, and the processing efficiency is improved.
【0038】なお、ここでは、メモリカードによって画
像データを他の機器と授受する構成としたが、ケーブル
を介してあるいは赤外線等の無線通信により画像データ
を授受する構成としてもよい。その場合も、算術符号化
により圧縮された量の少ないデータを送受することで、
通信に要する時間が短縮される。Although the image data is transmitted / received to / from another device by the memory card, the image data may be transmitted / received via a cable or by wireless communication such as infrared rays. Even in that case, by sending and receiving a small amount of data compressed by arithmetic coding,
The time required for communication is reduced.
【0039】[0039]
【発明の効果】請求項1の画像圧縮装置によるときは、
画像の種類に関わらず高い圧縮率で画像データを圧縮す
ることができる。したがって、圧縮後の画像データを記
憶する記憶媒体の利用効率が高まり、記憶の入出力に要
する時間も短縮されて、画像処理の能率も向上する。圧
縮後の画像データがもつ情報量は、JPEG方式によっ
て圧縮した画像データと同等である。According to the image compression apparatus of the first aspect,
Image data can be compressed at a high compression ratio regardless of the type of image. Therefore, the utilization efficiency of the storage medium for storing the compressed image data is improved, the time required for storage input / output is reduced, and the efficiency of image processing is improved. The amount of information of the compressed image data is equivalent to the image data compressed by the JPEG method.
【0040】請求項2の画像圧縮装置では、JPEG方
式を採用する他の機器に圧縮後の画像データを提供する
ことが可能になる。しかも、他の機器に圧縮後の画像デ
ータを提供するときのみにハフマン符号化を行うことが
できるから、他の機器に画像データを提供しないときに
圧縮率が低下する恐れがない。According to the image compression apparatus of the second aspect, it is possible to provide the compressed image data to another device adopting the JPEG system. Moreover, since the Huffman coding can be performed only when the compressed image data is provided to another device, there is no possibility that the compression ratio is reduced when the image data is not provided to another device.
【0041】請求項3のデジタルスチルカメラは、撮影
した画像を表す画像データを効率よく圧縮することがで
きる。しかも、撮影した画像をJPEG方式を採用する
他の機器で再生表示することも可能である。According to the digital still camera of the third aspect, image data representing a captured image can be efficiently compressed. In addition, it is also possible to reproduce and display the photographed image on another device employing the JPEG system.
【0042】請求項4の画像逆圧縮装置や請求項5の表
示装置によるときは、JPEG方式と同等の質の画像
を、より高い圧縮率で圧縮されている画像データから再
生することや表示することができる。According to the image decompression device of the fourth aspect and the display device of the fifth aspect, an image of the same quality as that of the JPEG system is reproduced or displayed from image data compressed at a higher compression ratio. be able to.
【図1】 本発明の一実施形態のデジタルスチルカメラ
の概略構成を示す図。FIG. 1 is a diagram showing a schematic configuration of a digital still camera according to an embodiment of the present invention.
【図2】 上記デジタルスチルカメラの画像圧縮部の構
成を示す図。FIG. 2 is a diagram showing a configuration of an image compression unit of the digital still camera.
【図3】 上記デジタルスチルカメラの画像逆圧縮部の
構成を示す図。FIG. 3 is a diagram showing a configuration of an image decompression unit of the digital still camera.
【図4】 JPEG方式による画像データの圧縮処理の
流れを示す図。FIG. 4 is a view showing the flow of image data compression processing according to the JPEG method.
【図5】 算術符号化と他の符号化の圧縮率の比較例を
示す図。FIG. 5 is a diagram showing a comparative example of a compression ratio between arithmetic coding and another coding.
【符号の説明】 1 デジタルスチルカメラ 11 撮像レンズ 12 絞り 13 CCD 14 アナログ信号処理部 15 ADコンバータ 16 タイミングジェネレータ 17 デジタル信号処理部 18 画像圧縮部 19 フラッシュメモリ 20 カードドライバ 21 画像逆圧縮部 22 表示部 23 操作部 24 制御部 31 画像メモリ 32 離散コサイン変換器 33 量子化器 34 算術符号化器 35 算術復号化器 36 ハフマン符号化器(再符号化器) 41 算術復号化器 42 ハフマン復号化器 43 逆量子化器 44 逆離散コサイン変換器[Description of Signs] 1 Digital still camera 11 Imaging lens 12 Aperture 13 CCD 14 Analog signal processing unit 15 AD converter 16 Timing generator 17 Digital signal processing unit 18 Image compression unit 19 Flash memory 20 Card driver 21 Image decompression unit 22 Display unit Reference Signs List 23 operation unit 24 control unit 31 image memory 32 discrete cosine transformer 33 quantizer 34 arithmetic encoder 35 arithmetic decoder 36 Huffman encoder (re-encoder) 41 arithmetic decoder 42 Huffman decoder 43 Inverse quantizer 44 Inverse discrete cosine transformer
Claims (5)
縮装置において、 所定の大きさの画素ブロックごとに画像データを離散コ
サイン変換する変換器と、 前記変換器によって変換された画像データを量子化する
量子化器と、 前記量子化器によって量子化された画像データを算術符
号化する符号化器とを備えることを特徴とする画像圧縮
装置。1. An image compression apparatus for compressing image data representing an image, comprising: a converter for performing discrete cosine transform of the image data for each pixel block of a predetermined size; and quantizing the image data converted by the converter. An image compression apparatus comprising: a quantizer that performs arithmetic coding on the image data quantized by the quantizer.
データを記憶するメモリと、 前記メモリに記憶している画像データを算術復号化する
復号化器と、 前記復号化器によって復号化された画像データをハフマ
ン符号化する再符号化器とを備えることを特徴とする請
求項1に記載の画像圧縮装置。2. A memory that stores image data encoded by the encoder, a decoder that arithmetically decodes the image data stored in the memory, and a memory that is decoded by the decoder. The image compression apparatus according to claim 1, further comprising: a re-encoder that performs Huffman encoding of the image data.
縮装置と、 撮像レンズと、 前記撮像レンズを透過した光を受けて光電変換する撮像
素子と、 前記撮像素子が出力する信号から画像を表す画像データ
を生成して前記変換器に与える画像生成回路とを備える
ことを特徴とするデジタルスチルカメラ。3. The image compression device according to claim 1, wherein: an image pickup lens; an image pickup device that receives light transmitted through the image pickup lens and performs photoelectric conversion on the light; and an image output from a signal output by the image pickup device. A digital still camera, comprising: an image generation circuit that generates image data representing the following and supplies the image data to the converter.
コサイン変換され、量子化され、さらに算術符号化され
た画像データを算術復号化する復号化器と、 前記復号化器によって復号化された画像データを逆量子
化する逆量子化器と、 前記逆量子化器によって逆量子化された画像データを逆
離散コサイン変換する逆変換器とを備えることを特徴と
する画像逆圧縮装置。4. A decoder for arithmetically decoding image data which has been subjected to discrete cosine transform, quantization and arithmetic coding for each pixel block of a predetermined size, and a decoder which has been decoded by the decoder. An image decompressor comprising: an inverse quantizer for inversely quantizing image data; and an inverse transformer for inverse discrete cosine transform of the image data inversely quantized by the inverse quantizer.
像を表示する表示器とを備えることを特徴とする画像表
示装置。5. An image display device, comprising: the image decompression device according to claim 4; and a display for displaying an image represented by the image data inversely transformed by the inverse transformer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP597498A JPH11205793A (en) | 1998-01-14 | 1998-01-14 | Image compression device, image decompression device and digital still camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP597498A JPH11205793A (en) | 1998-01-14 | 1998-01-14 | Image compression device, image decompression device and digital still camera |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH11205793A true JPH11205793A (en) | 1999-07-30 |
Family
ID=11625832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP597498A Pending JPH11205793A (en) | 1998-01-14 | 1998-01-14 | Image compression device, image decompression device and digital still camera |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH11205793A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009518917A (en) * | 2005-12-07 | 2009-05-07 | イマジネイション テクノロジーズ リミテッド | Data decoding |
-
1998
- 1998-01-14 JP JP597498A patent/JPH11205793A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009518917A (en) * | 2005-12-07 | 2009-05-07 | イマジネイション テクノロジーズ リミテッド | Data decoding |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4350809B2 (en) | Digital camera | |
US8194143B2 (en) | Digital camera apparatus and recording method thereof | |
US20020024602A1 (en) | Electronic camera | |
JPH10336647A (en) | Image compression device and computer readable recording medium recording image compression processing program | |
US7139020B2 (en) | Digital camera including the compression of size-reduced images after picture taking is completed | |
JP2008028534A (en) | Digital camera | |
JP2000244935A (en) | Method for compressing picture data | |
JP2003199019A (en) | Imaging apparatus and method therefor, recording medium and program | |
US20060088106A1 (en) | Method and apparatus for improved increased bit-depth display from a transform decoder by retaining additional inverse transform bits | |
US20060239564A1 (en) | Device and method for generating JPEG file including voice and audio data and medium for storing the same | |
JPH08186814A (en) | Image compressor | |
US20070147510A1 (en) | Method and module for altering color space parameters of video data stream in compressed domain | |
JP2006339842A (en) | Image processing apparatus | |
JP5407651B2 (en) | Image processing apparatus and image processing program | |
US6226445B1 (en) | Image compression and expansion device | |
JPH11205793A (en) | Image compression device, image decompression device and digital still camera | |
JP4430731B2 (en) | Digital camera and photographing method | |
JP2004096354A (en) | Apparatus and method for processing image and imaging apparatus | |
JPH0767032A (en) | Image processor | |
US20130057719A1 (en) | Image pickup apparatus | |
JP4001946B2 (en) | Playback device | |
JP5034717B2 (en) | Decoding device and decoding method | |
KR100530745B1 (en) | Method of displaying a high-resolution digital image on a low-resolution display | |
JPH05176294A (en) | Digital electronic still camera and picture reproduction method | |
JP2984342B2 (en) | Image signal recording device |