[go: up one dir, main page]

JP2015088845A - Data compression device and data compression method - Google Patents

Data compression device and data compression method Download PDF

Info

Publication number
JP2015088845A
JP2015088845A JP2013224549A JP2013224549A JP2015088845A JP 2015088845 A JP2015088845 A JP 2015088845A JP 2013224549 A JP2013224549 A JP 2013224549A JP 2013224549 A JP2013224549 A JP 2013224549A JP 2015088845 A JP2015088845 A JP 2015088845A
Authority
JP
Japan
Prior art keywords
category
code table
magnification
huffman
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.)
Pending
Application number
JP2013224549A
Other languages
Japanese (ja)
Inventor
泰三 松政
Taizo Matsumasa
泰三 松政
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 Imaging Co Ltd
Original Assignee
Ricoh Imaging 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 Imaging Co Ltd filed Critical Ricoh Imaging Co Ltd
Priority to JP2013224549A priority Critical patent/JP2015088845A/en
Publication of JP2015088845A publication Critical patent/JP2015088845A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a data compression method of which the compressibility is high regardless of a magnitude of an amplification factor of data and which employs encoding capable of prompt processing, and a data compression device.SOLUTION: RAW image data obtained by an image sensor 11 are amplified by a digital gain unit 16 while using a magnification that is set in a gain setting unit 21. The amplified RAW image data are coded and compressed by a Huffman coding unit 17 and stored in a memory (SDRAM) 18. In the Huffman coding unit 17, if the magnification that is set by the gain setting unit 21 is less than double, coding is performed while using a standard Huffman table and if equal to or more than double, coding is performed while using a correction Huffman table. In the correction Huffman table, a Huffman code of a larger bit number is allocated to a category where a frequency of appearance is made 0 by amplification.

Description

本発明は、符号化を用いたデータの圧縮方法に関する。   The present invention relates to a data compression method using encoding.

例えばデジタルカメラでは、撮像素子で得られるRAW画像データのゲインを調整することでISO感度を擬似的に変更している。また高画素化にともない、RAW画像データのSDRAMへの一時的な格納に際して、非可逆的にかつ可変長符号化方式を用いて画像データを圧縮する構成も知られている。しかしゲインの増大や、非可逆的かつ可変長符号化によるデータ圧縮はS/N比を悪化させると言う問題がある。このような問題に対しては、設定されたゲインが閾値以上のとき、RAW画像データの圧縮を行わないことで画質の悪化を防止する構成が提案されている(特許文献1参照)。   For example, in a digital camera, the ISO sensitivity is artificially changed by adjusting the gain of RAW image data obtained by the image sensor. As the number of pixels increases, a configuration is also known in which image data is compressed irreversibly and using a variable-length encoding method when RAW image data is temporarily stored in an SDRAM. However, there is a problem that an increase in gain or data compression by irreversible and variable-length coding deteriorates the S / N ratio. To solve such a problem, a configuration has been proposed in which deterioration of image quality is prevented by not compressing RAW image data when a set gain is equal to or greater than a threshold value (see Patent Document 1).

特開2008−113070号公報JP 2008-1113070 A

一方、ハフマン符号を用いてRAW画像データを可逆的に圧縮する方法も知られている。ハフマン符号を用いたデータ圧縮では、データの出現頻度に適合させてハフマン符号の割り付けを行う必要がある。すなわち最適な符号化により圧縮率を高めるには、データのヒストグラムを作成し、更にデータの出現頻度からハフマン符号を割り付けたテーブルを作成し、その後データを符号化する必要がある。しかしRAW画像データの圧縮には、迅速な処理が求められるため同処理をそのまま適用することはできない。   On the other hand, a method of reversibly compressing RAW image data using a Huffman code is also known. In data compression using the Huffman code, it is necessary to assign the Huffman code in accordance with the appearance frequency of the data. That is, in order to increase the compression rate by optimal encoding, it is necessary to create a data histogram, create a table to which Huffman codes are assigned based on the appearance frequency of data, and then encode the data. However, since RAW image data compression requires a quick process, the process cannot be applied as it is.

そのためRAW画像データの圧縮にハフマン圧縮を用いる場合には、典型的な被写体像を標準的なISO感度で撮影したときに得られるデータの出現頻度を予めシミュレートして標準的なハフマンテーブルを1つ作成し、同テーブルを用いてRAW画像データの符号化を行っている。しかし、標準的なハフマンテーブルを用いた可変長符号化処理では、ゲイン(増幅率)が増大すると圧縮効率が大きく損なわれ、場合によっては元のデータよりも容量が多くなってしまう問題がある。   Therefore, when Huffman compression is used for compression of RAW image data, the appearance frequency of data obtained when a typical subject image is taken with standard ISO sensitivity is simulated in advance, and a standard Huffman table is set to 1. And RAW image data is encoded using the table. However, in the variable length encoding process using a standard Huffman table, there is a problem that when the gain (amplification factor) increases, the compression efficiency is greatly impaired, and in some cases, the capacity becomes larger than the original data.

本発明は、データの増幅率の大きさに関わらず、圧縮率が高く、迅速な処理が可能な符号化を用いた圧縮方法およびデータ圧縮装置を提供することを課題としている。   An object of the present invention is to provide a compression method and a data compression apparatus using encoding that can perform a quick process with a high compression ratio regardless of the magnitude of the data amplification factor.

本発明のデータ圧縮装置は、入力されるデジタルデータを所定倍率で増幅する増幅ユニットと、所定倍率の値を設定するゲイン設定手段と、増幅ユニットで増幅されたデジタルデータを符号テーブルに基づき圧縮する圧縮ユニットと、設定された倍率の値に応じて符号テーブルを標準符号テーブルと修正符号テーブルの何れかに切り替える符号テーブル切替手段とを備え、倍率が1のときに標準符号テーブルが用いられ、倍率が2以上のときに修正符号テーブルを用いられることを特徴としている。   The data compression apparatus according to the present invention compresses input digital data based on a code table, an amplification unit that amplifies input digital data at a predetermined magnification, gain setting means that sets a value of the predetermined magnification, and digital data amplified by the amplification unit. A compression unit and code table switching means for switching the code table to either the standard code table or the correction code table according to the set magnification value, and the standard code table is used when the magnification is 1, It is characterized in that the correction code table is used when is 2 or more.

デジタルデータは、デジタル画像データであることが好ましく、符号テーブルは、デジタル画像データの差分値をその大きさに従って分類した複数のカテゴリに分けられる。カテゴリの各々には符号が割り付けられるとともに各カテゴリに含まれる差分値の違いが付加ビットで表される。   The digital data is preferably digital image data, and the code table is divided into a plurality of categories in which the difference values of the digital image data are classified according to their sizes. A code is assigned to each category, and the difference between the difference values included in each category is represented by additional bits.

修正符号テーブルでは、増幅により出現頻度が減少するカテゴリに、よりビット数の大きい符号が割り当てられる。標準符号テーブルは、所定値以下の差分値を含むカテゴリからなる第1カテゴリグループと、所定値よりも大きい差分値を含むカテゴリからなる第2カテゴリグループを含み、第1カテゴリグループでは、より大きい差分値を含むカテゴリほど小さい符号が割り付けられ、第2カテゴリグループでは、より大きい差分値を含むカテゴリほど大きい符号が割り付けられる。   In the correction code table, a code having a larger number of bits is assigned to a category whose appearance frequency decreases due to amplification. The standard code table includes a first category group including a category including a difference value equal to or less than a predetermined value, and a second category group including a category including a difference value larger than the predetermined value. A category including a value is assigned a smaller code, and in the second category group, a category including a larger difference value is assigned a larger code.

修正符号テーブルでは、増幅により出現頻度が0となるカテゴリに、標準符号テーブルにおいて第2カテゴリグループに割り付けられた符号が割り付けられる。増幅により出現頻度が減少するカテゴリに割り付けられる符号には、標準符号テーブルの第2カテゴリテーブルのうち、ビット数のより大きい符号を選択することが好ましい。またカテゴリは、差分値が大きくなるに従ってカテゴリ0〜カテゴリNに分類され、nを0〜Nの整数とするとき、カテゴリnに分類される差分値は、(−2+1)〜(−2n-1)および(2n-1)〜(2−1)の整数であり、mを1以上の整数とするとき、倍率が2上がる毎に、修正符号テーブルが切り替えられる。また、画像データは、例えばRAW画像データである。 In the correction code table, the code assigned to the second category group in the standard code table is assigned to a category whose appearance frequency is 0 by amplification. As a code assigned to a category whose appearance frequency decreases due to amplification, it is preferable to select a code having a larger number of bits from the second category table of the standard code table. The categories are classified into categories 0 to N as the difference value increases. When n is an integer from 0 to N, the difference values classified into the category n are (−2 n +1) to (−2). n-1 ) and (2 n-1 ) to (2 n -1), and when m is an integer of 1 or more, the correction code table is switched every time the magnification increases by 2 m . The image data is, for example, RAW image data.

本発明のデジタルカメラは、上記何れかに記載のデータ圧縮装置を搭載することを特徴としている。   A digital camera according to the present invention includes any one of the data compression apparatuses described above.

また本発明の符号化を用いた圧縮方法は、入力されるデジタル画像データを所定倍率で増幅するステップと、所定倍率の値を設定するステップと、増幅されたデジタル画像データを符号テーブルに基づき圧縮するステップと、設定された倍率の値に応じて符号テーブルを標準符号テーブルと修正符号テーブルの何れかに切り替えるステップとを備えたことを特徴としている。   The compression method using encoding according to the present invention includes a step of amplifying input digital image data at a predetermined magnification, a step of setting a value of the predetermined magnification, and compressing the amplified digital image data based on a code table. And a step of switching the code table to either the standard code table or the correction code table in accordance with the set magnification value.

本発明によれば、データの増幅率の大きさに関わらず、圧縮率が高く、迅速な処理が可能な符号化を用いた圧縮方法およびデータ圧縮装置を提供することができる。   According to the present invention, it is possible to provide a compression method and a data compression apparatus using encoding that can perform high-speed processing and a high compression rate regardless of the magnitude of the data amplification rate.

本実施形態の画像データ圧縮装置における画像データの流れを示すブロック図である。It is a block diagram which shows the flow of the image data in the image data compression apparatus of this embodiment. 本実施形態のハフマン圧縮に用いられるカテゴリと画像データの差分値との関係を示す表である。It is a table | surface which shows the relationship between the category used for the Huffman compression of this embodiment, and the difference value of image data. 本実施形態のハフマン圧縮に用いられる標準ハフマンテーブルである。It is a standard Huffman table used for Huffman compression of this embodiment. 倍率が2倍以上4倍未満のときに用いられる本実施形態の修正ハフマンテーブルである。It is the correction Huffman table of this embodiment used when magnification is 2 times or more and less than 4 times. 倍率が4倍以上8倍未満のときに用いられる本実施形態の修正ハフマンテーブルである。It is the correction Huffman table of this embodiment used when a magnification is 4 times or more and less than 8 times. 倍率が32倍以上のときに用いられる本実施形態の修正ハフマンテーブルである。It is the correction Huffman table of this embodiment used when a magnification is 32 times or more. 標準ハフマンテーブルのみを用いて符号化を行った場合と、修正ハフマンテーブルを用いて符号化を行った場合の圧縮率を示す。A compression rate when encoding is performed using only the standard Huffman table and when encoding is performed using the modified Huffman table is shown. 本実施形態のハフマン圧縮の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the Huffman compression of this embodiment.

以下、本発明の実施の形態を、図面を参照して説明する。図1は、本発明の一実施形態である画像データ圧縮装置における画像データの流れを示すブロック図である。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a flow of image data in an image data compression apparatus according to an embodiment of the present invention.

本実施形態において画像データ圧縮装置は、例えばデジタルカメラ10に搭載される。デジタルカメラ10では、イメージセンサ11で得られた画像信号がイメージセンサI/F(インターフェース)12を介してデジタル画像データに変換され、デジタル信号処理回路13へ入力される。デジタル信号処理回路13は、例えば黒レベル補正ユニット14、AE検波ユニット15、デジタルゲインユニット16、ハフマン符号化ユニット17を備え、SDRAMなどのメモリ18に接続される。メモリ18は、SDカードなどのカードメモリに対応するインターフェース(SDカードI/F)19に接続され、メモリカード(SDカード)20へと画像データを出力して保存することが可能である。またメモリ18からは図示しないモニタ装置などへ画像データを出力可能である。   In this embodiment, the image data compression apparatus is mounted on the digital camera 10, for example. In the digital camera 10, an image signal obtained by the image sensor 11 is converted into digital image data via an image sensor I / F (interface) 12 and input to the digital signal processing circuit 13. The digital signal processing circuit 13 includes, for example, a black level correction unit 14, an AE detection unit 15, a digital gain unit 16, and a Huffman coding unit 17, and is connected to a memory 18 such as an SDRAM. The memory 18 is connected to an interface (SD card I / F) 19 corresponding to a card memory such as an SD card, and can output and store image data to a memory card (SD card) 20. The image data can be output from the memory 18 to a monitor device (not shown).

デジタル信号処理回路13へ入力されたデジタル画像データは、まず黒レベル補正ユニット14においてオプティカルブラック(OB)データのオフセットが減算され黒レベル補正が行われる。黒レベル補正が行われたデジタル画像データは、AE検波ユニット15およびデジタルゲインユニット(増幅回路)16へと出力される。AE検波ユニット15では、ホワイトバランス用のデータが検出され、メモリ(SDRAM)18に保持される。また、デジタルゲインユニット16では、設定された所定の倍率でデジタル画像データが増幅され、増幅されたデジタル画像データはRAW画像データとしてメモリ(SDRAM)18に一時的に保持される。   The digital image data input to the digital signal processing circuit 13 is first subjected to black level correction by subtracting the offset of optical black (OB) data in the black level correction unit 14. The digital image data subjected to the black level correction is output to the AE detection unit 15 and the digital gain unit (amplifier circuit) 16. In the AE detection unit 15, white balance data is detected and held in a memory (SDRAM) 18. Further, the digital gain unit 16 amplifies the digital image data at a set predetermined magnification, and the amplified digital image data is temporarily held in the memory (SDRAM) 18 as RAW image data.

なお、デジタルゲインユニット16における倍率(増幅率)は、ISO感度に対応し、ゲイン設定ユニット21において設定される。ISO感度(倍率)は、ゲイン設定ユニット21において、マニュアルモードではユーザによって手動で設定され、オートモードでは自動測光の結果に基づき自動で設定される。   Note that the magnification (amplification factor) in the digital gain unit 16 corresponds to the ISO sensitivity and is set in the gain setting unit 21. In the gain setting unit 21, the ISO sensitivity (magnification) is manually set by the user in the manual mode, and is automatically set in the auto mode based on the result of automatic photometry.

デジタルゲインユニット16を介してメモリ(SDRAM)18に一時的に保持されたデジタル画像データ(RAWデータ)は、ハフマン符号化ユニット17へ送られ、後述するハフマン圧縮処理が施されるとともに、メモリ(SDRAM)18に圧縮RAWデータとして保持され、必要に応じてSDカードI/F19を介してSDカード20に保存される。   The digital image data (RAW data) temporarily held in the memory (SDRAM) 18 via the digital gain unit 16 is sent to the Huffman encoding unit 17 and subjected to Huffman compression processing, which will be described later, and the memory ( (SDRAM) 18 is stored as compressed RAW data, and is stored in the SD card 20 via the SD card I / F 19 as necessary.

次に図2〜図6を参照して、本実施形態のハフマン符号を用いた画像データ圧縮方法(ハフマン圧縮処理)の原理について説明する。   Next, the principle of the image data compression method (Huffman compression processing) using the Huffman code of this embodiment will be described with reference to FIGS.

図2は、本実施形態のハフマン圧縮処理における画像データの差分値とカテゴリの関係を示す。図2において差分値は、同色において隣り合う画素(以下隣接画素)の間の画像データ(画素値)の差分であり、隣接画素としては例えば左隣りの画素が用いられる(通常は、他の色の画素を間に挟んで隣り合う同色画素)。なお、隣接画素として左隣りの画素を用いる場合、左端の画素の差分値としては、予め与えられた所定値からの差分値や、上の画素の画素値からの差分値、あるいは前のラインの右端の画素値からの差分値などが用いられるが、これらに限定されるものではない。   FIG. 2 shows the relationship between image data difference values and categories in the Huffman compression processing of this embodiment. In FIG. 2, the difference value is a difference in image data (pixel value) between adjacent pixels (hereinafter referred to as adjacent pixels) in the same color, and for example, the left adjacent pixel is used as the adjacent pixel (usually other colors) Adjacent pixels of the same color). When the left adjacent pixel is used as the adjacent pixel, the difference value of the leftmost pixel is a difference value from a predetermined value given in advance, a difference value from the pixel value of the upper pixel, or the previous line. A difference value from the pixel value on the right end is used, but is not limited thereto.

図2に示されるように、本実施形態では、カテゴリ0は差分値が0の場合、カテゴリ1は差分値が{−1,1}の場合、カテゴリ2は差分値が{−3,−2,2,3}の場合、カテゴリ3は差分値が{−7,−6,−5,−4,4,5,6,7}とされ、差分値が大きいほど番号が大きいカテゴリに分類される。そして、本実施形態では、カテゴリ14に差が最も大きい差分値、{−16383〜−8192,8192〜16383}の整数が割り振られる。すなわち、カテゴリnに分類される差分値は、{(−2+1)〜(−2n-1),(2n-1)〜(2−1)}の整数とされる(ここで、n=0〜14の整数)。 As shown in FIG. 2, in this embodiment, category 0 has a difference value of 0, category 1 has a difference value of {-1, 1}, category 2 has a difference value of {-3, -2. , 2, 3}, category 3 has a difference value of {−7, −6, −5, −4, 4, 5, 6, 7}, and the larger the difference value, the higher the number. The In this embodiment, the difference value having the largest difference, that is, an integer of {−16383 to −8192, 8192 to 16383}, is assigned to the category 14. That is, the difference value is categorized n is, {(- 2 n +1) ~ (-2 n-1), (2 n-1) ~ (2 n -1)} is an integer (here N is an integer of 0 to 14).

図3は、図2のカテゴリに基づき設定された本実施形態の標準ハフマンテーブルである。ここで標準ハフマンテーブルは、ゲイン設定ユニット21において設定される倍率(増幅率)が2未満の場合に使用され、典型的な被写体像を想定し、これを倍率1で増幅した場合(すなわち増幅しない場合)の差分値の出現頻度に合わせて、各カテゴリにハフマン符号を割り付けたものである。   FIG. 3 is a standard Huffman table of the present embodiment set based on the category of FIG. Here, the standard Huffman table is used when the magnification (amplification factor) set in the gain setting unit 21 is less than 2, assuming a typical subject image and amplifying it with a magnification of 1 (that is, not amplifying). The Huffman code is assigned to each category in accordance with the appearance frequency of the difference value.

図3の標準ハフマンテーブルでは、後述する理由から、カテゴリ0に8ビットのハフマン符号が割り付けられ、その後カテゴリ1〜5までは、それぞれ7〜3ビットのハフマン符号が順次割り付けられる。カテゴリ5〜7では、それぞれ3ビットのハフマン符号が割り付けられ、カテゴリ8、9には最少ビット数である2ビットのハフマン符号が割り付けられる。その後、カテゴリ10〜12には、9〜11ビットのハフマン符号が割り付けられ、カテゴリ13、14には最大ビット数である12ビットのハフマン符号が割り付けられる。   In the standard Huffman table of FIG. 3, for reasons described later, an 8-bit Huffman code is assigned to category 0, and then a 7- to 3-bit Huffman code is sequentially assigned to categories 1 to 5, respectively. In categories 5 to 7, a 3-bit Huffman code is assigned, and in categories 8 and 9, a 2-bit Huffman code that is the minimum number of bits is assigned. Thereafter, 9 to 11-bit Huffman codes are assigned to categories 10 to 12, and 12-bit Huffman codes that are the maximum number of bits are assigned to categories 13 and 14.

また図3における付加ビットは、各カテゴリに含まれる差分値の各々を識別するためのビットである。例えばカテゴリ0は、差分値が0の場合のみなので、付加ビットを必要とせず、付加ビットは割り当てられない。カテゴリ1に含まれる差分値は{−1,1}と2通りあるので、両者の違いを表すのに必要十分なビット数は1であり、1ビットが付加ビットとして割り付けられる。またカテゴリ2に含まれる差分値は{−3,−2,2,3}の4通りがあり、その識別に必要十分な付加ビット数は2ビットである。本実施形態では、カテゴリnに、2・(2−2n−1)=2通りの差分値が含まれ、これらを表すのに必要十分な付加ビット数は、nビットとなる。 The additional bits in FIG. 3 are bits for identifying each of the difference values included in each category. For example, since category 0 is only when the difference value is 0, no additional bit is required and no additional bit is assigned. Since there are two kinds of difference values included in category 1, {-1, 1}, the number of bits necessary and sufficient to express the difference between the two is 1, and 1 bit is allocated as an additional bit. Further, there are four types of difference values {-3, -2, 2, 3} included in category 2, and the number of additional bits necessary and sufficient for identification is 2 bits. In this embodiment, the category n includes 2 · (2 n −2 n−1 ) = 2 n difference values, and the number of additional bits necessary and sufficient to represent these is n bits.

すなわち、ハフマンテーブルを用いて画像データが符号化されとき、各カテゴリに含まれる画像データの符号化後の合計ビット数は、そのカテゴリに割り付けられたハフマン符号のビット数と、そのカテゴリの付加ビット数の和となる。図3では、各カテゴリの画像データが符号化されたときの合計ビット数が一番右の欄に示される。   That is, when the image data is encoded using the Huffman table, the total number of bits after encoding of the image data included in each category is the number of bits of the Huffman code assigned to the category and the additional bits of the category. The sum of numbers. In FIG. 3, the total number of bits when the image data of each category is encoded is shown in the rightmost column.

ハフマンテーブルを用いた符号化では、出現頻度が高いデータをより小さい合計ビット数の符号に変換し、出現頻度が低いデータをより大きい合計ビット数の符号に変換することによりデータの圧縮率を高めることができる。しかし撮影された任意の画像における上記差分値の出現頻度は、撮影後に差分値のヒストグラムを作成しなければ把握できない。RAW画像データの一時保存においては、高速な処理が求められるため、撮影する度に差分値のヒストグラムを作成することは現実的ではない。   In encoding using the Huffman table, data with a high appearance frequency is converted into a code with a smaller total number of bits, and data with a low appearance frequency is converted into a code with a larger total number of bits, thereby increasing the data compression rate. be able to. However, the frequency of appearance of the difference value in any photographed image cannot be grasped unless a histogram of difference values is created after photographing. Since temporary processing of RAW image data requires high-speed processing, it is not realistic to create a histogram of difference values each time an image is taken.

そのため、デジタルカメラにおいて、RAW画像データにハフマン圧縮を用いる場合には、典型的な被写体像に対する各カテゴリの出現頻度を予め算定し、標準的なハフマンテーブルを作成し、同ハフマンテーブルを用いてRAW画像データのハフマン圧縮を行っている。   Therefore, when Huffman compression is used for RAW image data in a digital camera, the appearance frequency of each category with respect to a typical subject image is calculated in advance, a standard Huffman table is created, and the RAW image is generated using the Huffman table. Huffman compression of image data is performed.

図3の例では、差分値の出現頻度は、カテゴリ0から漸次増大し、カテゴリ9において、その差分値の出現頻度が略最大となる。そして、カテゴリ10では、その出現頻度は急激に減少し、カテゴリ10からカテゴリ14までは、差分値の出現頻度が漸次減少する。なお差分値を図2のような方法でカテゴリに分類するとき、一般的に画像データの差分値の出現頻度は、概ねカテゴリ番号が0から大きくなるに従い漸次増大し、特定のカテゴリで略最大値に達する(第1カテゴリグループ)。そしてその直後のカテゴリでは、出現頻度が急激に減少し、その後はカテゴリ番号が大きくなるに従い出現頻度は漸次減少する(第2カテゴリグループ)傾向を示す。なお図3の標準ハフマンテーブルでは、カテゴリ0〜カテゴリ9が第1カテゴリグループであり、カテゴリ10〜カテゴリ14が第2カテゴリグループに分類される。   In the example of FIG. 3, the appearance frequency of the difference value gradually increases from the category 0, and in the category 9, the appearance frequency of the difference value becomes substantially maximum. And in category 10, the appearance frequency decreases rapidly, and from category 10 to category 14, the appearance frequency of the difference value gradually decreases. When the difference values are classified into categories by the method as shown in FIG. 2, the appearance frequency of the difference values of the image data generally increases gradually as the category number increases from 0, and is almost the maximum value in a specific category. (First category group). In the category immediately after that, the appearance frequency decreases rapidly, and thereafter, the appearance frequency tends to gradually decrease (second category group) as the category number increases. In the standard Huffman table of FIG. 3, categories 0 to 9 are classified as first category groups, and categories 10 to 14 are classified as second category groups.

したがって、図3の標準ハフマンテーブルでは、各カテゴリの付加ビット数と、典型被写体像のゲイン倍率1の画像データにおける各カテゴリの差分値出現頻度の関係から、出現頻度が大きいカテゴリの合計ビット数がなるべく小さくなるようにハフマン符号を各カテゴリに割り付け、RAW画像データの圧縮率を高めている。なお、一般に第2カテゴリグループに含まれる各カテゴリの出現頻度は、第1カテゴリグループに含まれる各カテゴリの出現頻度よりも低いため、標準ハフマンテーブルでは、第1カテゴリグループに比べ第2カテゴリグループに、よりビット数の大きいハフマン符号が割り付けられる。したがって、標準ハフマンテーブルでは、最大のビット数を有するハフマン符号は、カテゴリ番号が最大のカテゴリに割り付けられる。   Therefore, in the standard Huffman table of FIG. 3, the total number of bits of a category having a high appearance frequency is calculated from the relationship between the number of additional bits of each category and the difference value appearance frequency of each category in the image data of the gain magnification 1 of the typical subject image. A Huffman code is assigned to each category so as to be as small as possible, and the compression rate of the RAW image data is increased. In general, since the appearance frequency of each category included in the second category group is lower than the appearance frequency of each category included in the first category group, in the standard Huffman table, the second category group is compared with the first category group. A Huffman code having a larger number of bits is allocated. Therefore, in the standard Huffman table, the Huffman code having the maximum number of bits is assigned to the category having the largest category number.

しかし、デジタルゲインユニット16において画像データが例えば2倍に増幅されるとき、ゲイン処理が施されたデジタル画像データの各値は全て2倍されるので、差分値も全て2以上または−2以下となり、カテゴリ1に含まれる±1の差分値は原理的に存在しない。同様に倍率が4以上のときには、カテゴリ1、2に含まれる{±1,±2、±3}の差分値の出現頻度が0となる。一般的には、倍率が2以上のとき(m:1以上の整数)、カテゴリ1からカテゴリmに含まれる差分値の出現頻度は0となる。 However, when the image data is amplified, for example, twice in the digital gain unit 16, all the values of the digital image data subjected to gain processing are all doubled, so that all the difference values are 2 or more or -2 or less. The difference value of ± 1 included in category 1 does not exist in principle. Similarly, when the magnification is 4 or more, the appearance frequency of the difference values {± 1, ± 2, ± 3} included in categories 1 and 2 is zero. Generally, when the magnification is 2 m or more (m: an integer of 1 or more), the appearance frequency of the difference values included in category 1 to category m is 0.

したがって、従来のデジタルカメラのように、ISO感度(倍率)が変更されているにも関わらず、倍率が1のときの標準ハフマンテーブルを使用すると、第2カテゴリグループに割り付けられるハフマン符号のビット数の方が、ISO感度(倍率)の変更により原理的に出現頻度が0となった第1カテゴリグループに含まれるカテゴリに割り付けられたハフマン符号のビット数よりも大きくなり、効率的な圧縮が行われない。   Therefore, the number of bits of the Huffman code assigned to the second category group using the standard Huffman table when the magnification is 1 even though the ISO sensitivity (magnification) is changed as in the conventional digital camera. Is larger than the number of bits of the Huffman code assigned to the category included in the first category group whose appearance frequency becomes 0 in principle due to the change in ISO sensitivity (magnification), and efficient compression is performed. I will not.

以上のことから、本実施形態では、ISO感度により設定される倍率が2以上の場合には、標準ハフマンテーブルに対してハフマン符号の各カテゴリへの割り付けを変更した修正ハフマンテーブルを用いて符号化を行うことで、画像データの圧縮率を高めている。すなわち、増幅により、その差分値の出現頻度が0となるカテゴリに割り付けられるハフマン符号を、標準ハフマンテーブルにおいて第2カテゴリグループに割り付けられていたハフマン符号の何れかで置き換えるとともに、ハフマン符号が置き換えられたカテゴリ以降のカテゴリに割り付けられていたハフマン符号は順次、置き換えが行われた分、カテゴリ番号が大きい方へシフトして割り付けられる。なお、このとき第1カテゴリグループと、第2カテゴリグループの境界に当たる上記特定のカテゴリも、ハフマン符号がシフトした分、カテゴリ番号が大きい方へとシフトする。   From the above, in this embodiment, when the magnification set by the ISO sensitivity is 2 or more, encoding is performed using a modified Huffman table in which the allocation of Huffman codes to each category is changed with respect to the standard Huffman table. As a result, the compression rate of the image data is increased. That is, the Huffman code assigned to the category whose difference value appearance frequency is 0 by amplification is replaced with one of the Huffman codes assigned to the second category group in the standard Huffman table, and the Huffman code is replaced. The Huffman codes assigned to the categories after the above category are sequentially assigned by shifting to the larger category number by the amount of replacement. At this time, the specific category corresponding to the boundary between the first category group and the second category group is also shifted to the larger category number as the Huffman code is shifted.

特に本実施形態では、倍率が2上がる毎に、第2カテゴリグループにおける最大のハフマン符号が、出現頻度が0となった第1カテゴリグループのカテゴリに割り付けられる。図4に、設定ゲイン(倍率)が2倍以上〜4倍未満のとき、図5には設定ゲインが4倍以上〜8倍未満のとき、図6には設定ゲインが32倍以上のときの本実施形態の修正ハフマンテーブルが示される。なお設定ゲインが、8倍以上〜16倍未満、16倍以上〜32倍未満の場合の修正ハフマンテーブルは省略されるが、同様方法で定義される。 In particular, in the present embodiment, every time the magnification is increased by 2 m , the maximum Huffman code in the second category group is assigned to the category of the first category group in which the appearance frequency is zero. 4 shows that when the set gain (magnification) is 2 times or more and less than 4 times, FIG. 5 shows when the set gain is 4 times or more and less than 8 times, and FIG. 6 shows when the set gain is 32 times or more. A modified Huffman table of the present embodiment is shown. Note that the modified Huffman table in the case where the set gain is 8 times or more to less than 16 times or 16 times or more to less than 32 times is omitted, but is defined by the same method.

倍率が2倍以上4倍未満のときには、前述したように、カテゴリ1の出現頻度が0になるので、図4の修正ハフマンテーブルでは、図3の標準ハフマンテーブルにおいてカテゴリ14に割り付けられていたハフマン符号111111111111が、カテゴリ1に割り付けられ、標準ハフマンテーブルにおいて、カテゴリ1〜カテゴリ13に割り付けられていたハフマン符号が、それぞれカテゴリ2〜カテゴリ14に割り付けられる。なお、図4において第1カテゴリグループはカテゴリ0〜カテゴリ10、第2カテゴリグループはカテゴリ11〜カテゴリ14となる。   When the magnification is 2 times or more and less than 4 times, the appearance frequency of category 1 is 0 as described above. Therefore, in the modified Huffman table of FIG. 4, the Huffman assigned to category 14 in the standard Huffman table of FIG. Codes 111111111111 are assigned to category 1, and Huffman codes assigned to category 1 to category 13 in the standard Huffman table are assigned to category 2 to category 14, respectively. In FIG. 4, the first category group is category 0 to category 10, and the second category group is category 11 to category 14.

倍率が4倍以上8倍未満のときには、前述したように、図4のときのカテゴリ1に加えカテゴリ2の出現頻度が0になるので、図5の修正ハフマンテーブルでは、標準ハフマンテーブルのカテゴリ13のハフマン符号111111111110が、カテゴリ2のハフマン符号として更に割り付けられ、標準ハフマンテーブルにおいてカテゴリ1〜カテゴリ12に割り付けられていたハフマン符号が、それぞれカテゴリ3〜カテゴリ14に割り付けられる。なお、図5において第1カテゴリグループはカテゴリ0〜カテゴリ11、第2カテゴリグループはカテゴリ12〜カテゴリ14となる。   When the magnification is 4 times or more and less than 8 times, as described above, the appearance frequency of category 2 becomes 0 in addition to category 1 in FIG. 4, so in the modified Huffman table in FIG. Huffman codes 111111111110 are further assigned as category 2 Huffman codes, and the Huffman codes assigned to categories 1 to 12 in the standard Huffman table are assigned to categories 3 to 14, respectively. In FIG. 5, the first category group is category 0 to category 11, and the second category group is category 12 to category 14.

そして、倍率が32倍以上のときには、カテゴリ1〜カテゴリ5の出現頻度が0になり、カテゴリ1〜カテゴリ5には、図3の標準ハフマンテーブルにおける第2カテゴリグループのカテゴリ14〜カテゴリ12に割り付けられていたハフマン符号111111111111、111111111110、11111111110、1111111110、111111110が、それぞれカテゴリ1〜カテゴリ5に割り付けられ、標準ハフマンテーブルにおいてカテゴリ1〜カテゴリ9に割り付けられていたハフマン符号が、それぞれカテゴリ6〜カテゴリ14に割り付けられる。なお、このときには、カテゴリ0〜カテゴリ14の全てが第1カテゴリグループに属する。   When the magnification is 32 times or more, the appearance frequency of category 1 to category 5 is 0, and category 1 to category 5 are assigned to category 14 to category 12 of the second category group in the standard Huffman table of FIG. Huffman codes 111111111111, 111111111110, 11111111110, 11111111110, and 111111110 that have been assigned are assigned to categories 1 to 5, respectively, and Huffman codes assigned to categories 1 to 9 in the standard Huffman table are assigned to categories 6 to 14 respectively. Assigned. At this time, all of category 0 to category 14 belong to the first category group.

すなわち、標準ハフマンテーブルでのカテゴリnのハフマン符号をC(n)で表するとき、倍率が2倍に対応する修正ハフマンテーブルでは、iを1以上の整数として、カテゴリ(m+i)にはハフマン符号はC(i)が割り付けられる。なお、カテゴリ番号の最大値をNとすれば、倍率が2倍に対応する修正ハフマンテーブルにおけるカテゴリNのハフマン符号はC(N−m)となる。また、本実施形態においてカテゴリ0のハフマン符号は、標準ハフマンテーブル、修正ハフマンテーブルの何れにおいても同じである。そして修正ハフマンテーブルのカテゴリ1〜カテゴリmに割り付けられるハフマン符号は、本実施形態において、C(N)〜C(N−m−1)であるが、カテゴリ1〜カテゴリmの出現頻度は全て0であるので、これらの割り付けは順不同である。 That is, when the Huffman code of category n in the standard Huffman table is represented by C (n), in the modified Huffman table corresponding to a magnification of 2 m , i is an integer equal to or greater than 1, and the category (m + i) has Huffman The code is assigned C (i). If the maximum value of the category number is N, the Huffman code of category N in the modified Huffman table corresponding to the magnification of 2 m is C (N−m). In the present embodiment, the category 0 Huffman code is the same in both the standard Huffman table and the modified Huffman table. The Huffman codes assigned to categories 1 to m in the modified Huffman table are C (N) to C (N−m−1) in this embodiment, but the appearance frequencies of categories 1 to m are all 0. So these assignments are out of order.

図7に、標準ハフマンテーブルのみを用いて符号化を行った場合(テーブル固定時)の圧縮率と、本実施形態の修正ハフマンテーブルを用いて符号化を行った場合(テーブル切替時)の圧縮率が示される。図7では、画像データの倍率(増幅率)が、1倍、2倍、4倍、8倍、16倍、32倍のときのテーブル固定時の倍率およびテーブル切替時の倍率が各々示される。ここで、倍率は(圧縮後のデータ量)/(元のデータ量)によって定義される。図7に示されるように、2倍以上の倍率では、何れも標準ハフマンテーブルを用いたときよりも、修正ハフマンテーブルを用いたときの方が、圧縮率が高いことが分かる。   FIG. 7 shows the compression rate when encoding is performed using only the standard Huffman table (when the table is fixed), and compression when encoding is performed using the modified Huffman table of the present embodiment (when switching the table). The rate is indicated. In FIG. 7, when the magnification (amplification factor) of the image data is 1, 2, 4, 8, 16, and 32 times, the magnification when the table is fixed and the magnification when the table is switched are shown. Here, the magnification is defined by (data amount after compression) / (original data amount). As shown in FIG. 7, it can be seen that at a magnification of 2 or more, the compression rate is higher when the modified Huffman table is used than when the standard Huffman table is used.

図8は、本実施形態のハフマン圧縮処理のフローチャートである。図1、図8を参照し本実施形態のハフマン圧縮処理について説明する。なお同処理は、例えばレリーズ操作がなされ、図1のメモリ(SDRAM)18にRAW画像データを一時的に保持する際にハフマン符号化ユニット17において実行される。   FIG. 8 is a flowchart of the Huffman compression processing of this embodiment. The Huffman compression processing of this embodiment will be described with reference to FIGS. This process is executed by the Huffman encoding unit 17 when, for example, a release operation is performed and the RAW image data is temporarily stored in the memory (SDRAM) 18 of FIG.

ステップS100では、ISO感度により、ゲイン設定ユニット21において設定されたゲイン(倍率)が取得され、ステップS102では、得られた倍率に基づき圧縮処理(符号化)に利用するハフマンテーブルの選択が行われる。すなわち、本実施形態では、ゲイン(倍率)が2倍未満のときには、図3の標準ハフマンテーブルが選択され、2倍以上4倍未満のときには図4の修正ハフマンテーブルが、4倍以上8倍未満のときには、図5の修正ハフマンテーブルが、8倍以上16倍未満、16倍以上32倍未満のときにはそれぞれの倍率に適合した修正ハフマンテーブルが選択される。そして32倍以上のときには図6の修正ハフマンテーブルが選択される。   In step S100, the gain (magnification) set in the gain setting unit 21 is acquired based on the ISO sensitivity. In step S102, a Huffman table used for compression processing (encoding) is selected based on the obtained magnification. . That is, in this embodiment, when the gain (magnification) is less than 2 times, the standard Huffman table of FIG. 3 is selected, and when it is 2 times or more and less than 4 times, the modified Huffman table of FIG. When the correction Huffman table of FIG. 5 is 8 times or more and less than 16 times, or 16 times or more and less than 32 times, the correction Huffman table suitable for each magnification is selected. When it is 32 times or more, the modified Huffman table shown in FIG. 6 is selected.

ステップS104では、デジタルゲインユニット16を介し、メモリ(SDRAM)18に一時的に保持されたRAW画像データにおける画素の差分値が順次算出され、ステップS106において同差分値が選択されたハフマンテーブルのどのカテゴリに含まれるかが決定される。そして、ステップS108において、選択されたハフマンテーブルに基づき同画素のRAW画像データの符号化が行われメモリ(SDRAM)18に順次保存される。ステップS110では、ステップS104〜ステップS108の処理が全ての画素のRAW画像データに対して行われたかが判定され、終了していなければ、ステップS104に戻り、次の画素に対し同様の処理が繰り返され、符号化されたデータは、前のデータに次のアドレスに書き込まれる。一方、ステップS110において、全ての画素に対してステップS104〜ステップS108の処理が終了していると判定されると、本ハフマン圧縮処理は終了する。なお、同処理は色データ毎に行われる。   In step S104, pixel difference values in the RAW image data temporarily stored in the memory (SDRAM) 18 are sequentially calculated via the digital gain unit 16, and which of the Huffman tables in which the difference value is selected in step S106. Whether it is included in the category is determined. In step S108, the RAW image data of the same pixel is encoded based on the selected Huffman table and sequentially stored in the memory (SDRAM) 18. In step S110, it is determined whether the processing in steps S104 to S108 has been performed on the RAW image data of all the pixels. If not completed, the processing returns to step S104, and the same processing is repeated for the next pixel. The encoded data is written to the next address in the previous data. On the other hand, if it is determined in step S110 that the processes in steps S104 to S108 have been completed for all pixels, the Huffman compression process is terminated. This process is performed for each color data.

以上のように、本実施形態によれば、増幅された画像データをハフマン圧縮する場合にも、増幅率(倍率)に関わらず修正ハフマンテーブルを用いて高い圧縮率で迅速に画像データを圧縮できるので、ハフマン圧縮を有効にRAW画像データの圧縮にも用いることができる。   As described above, according to the present embodiment, even when the amplified image data is Huffman-compressed, the image data can be quickly compressed at a high compression rate using the modified Huffman table regardless of the amplification factor (magnification). Therefore, the Huffman compression can be used effectively to compress the RAW image data.

修正ハフマンテーブルは各倍率に対して予め用意してもよいが、本実施形態では、極めて簡単に各倍率に適合する修正ハフマンテーブルを作成できるので、標準ハフマンテーブルのみを予め用意し、修正ハフマンテーブルは、選択された倍率に合わせその都度制作することも可能である。   Although a modified Huffman table may be prepared in advance for each magnification, in this embodiment, a modified Huffman table that can be adapted to each magnification can be created very easily. Can be produced each time according to the selected magnification.

なお、本発明は、複数の倍率で増幅されるデータを、迅速、可逆的、効率的に圧縮する必要がある用途において有効であり、デジタルカメラの用途に限定されるものではなく、RAW画像データの圧縮、更には画像データの圧縮に限定されるものでもない。また、本実施形態のデジタルカメラは、携帯電話やスマートホンなどに搭載されるものであってもよい。   The present invention is effective in applications where data amplified at a plurality of magnifications needs to be compressed quickly, reversibly, and efficiently, and is not limited to digital camera applications. RAW image data However, the present invention is not limited to compression of image data, and further compression of image data. Further, the digital camera of the present embodiment may be mounted on a mobile phone, a smart phone, or the like.

標準ハフマンテーブルは、本実施形態に限定されるものではなく、想定される典型画像に応じて決定される。また、ISO感度(倍率)以外の撮影条件(撮影モード)の下、複数の標準ハフマンテーブルを用意してもよく、その場合には、倍率に応じて各標準ハフマンテーブルに対して本実施形態と同様の処理が施される。なお撮影モードとしては例えば風景を撮影するモードや、人物を撮影するモード、夜景を撮影するモードなど、被写体や撮影環境に対応したモードが考えられる。   The standard Huffman table is not limited to this embodiment, and is determined according to an assumed typical image. In addition, a plurality of standard Huffman tables may be prepared under shooting conditions (shooting modes) other than ISO sensitivity (magnification). In this case, the present embodiment is applied to each standard Huffman table according to the magnification. Similar processing is performed. Note that, as the shooting mode, for example, a mode corresponding to the subject and the shooting environment such as a mode for shooting a landscape, a mode for shooting a person, and a mode for shooting a night view can be considered.

本実施形態では、カテゴリ0〜カテゴリ14の15個のカテゴリに分けられたが、カテゴリの数はこれに限定されるものではなく、修正ハフマンテーブルの数も増幅率とカテゴリ数に応じて増減する。なお、倍率が所定値を超えたらハフマン圧縮を行わない構成とすることもできる。   In this embodiment, the category is divided into 15 categories of category 0 to category 14, but the number of categories is not limited to this, and the number of modified Huffman tables is increased or decreased according to the amplification factor and the number of categories. . Note that a configuration in which Huffman compression is not performed when the magnification exceeds a predetermined value may be employed.

10 デジタルカメラ
11 イメージセンサ
13 デジタル信号処理回路
16 デジタルゲインユニット
17 ハフマン符号化ユニット
18 メモリ
21 ゲイン設定ユニット
DESCRIPTION OF SYMBOLS 10 Digital camera 11 Image sensor 13 Digital signal processing circuit 16 Digital gain unit 17 Huffman encoding unit 18 Memory 21 Gain setting unit

Claims (10)

入力されるデジタルデータを所定倍率で増幅する増幅ユニットと、
前記所定倍率の値を設定するゲイン設定手段と、
前記増幅ユニットで増幅されたデジタルデータを符号テーブルに基づき圧縮する圧縮ユニットと、
設定された前記倍率の値に応じて符号テーブルを標準符号テーブルと修正符号テーブルの何れかに切り替える符号テーブル切替手段とを備え、
前記倍率が1のときに前記標準符号テーブルが用いられ、前記倍率が2以上のときに修正符号テーブルを用いられる
ことを特徴とするデータ圧縮装置。
An amplification unit for amplifying input digital data at a predetermined magnification;
Gain setting means for setting a value of the predetermined magnification;
A compression unit for compressing the digital data amplified by the amplification unit based on a code table;
A code table switching means for switching the code table to either a standard code table or a correction code table according to the set magnification value;
The data compression apparatus, wherein the standard code table is used when the magnification is 1, and a correction code table is used when the magnification is 2 or more.
前記デジタルデータは、デジタル画像データであって、前記符号テーブルは、デジタル画像データの差分値をその大きさに従って分類した複数のカテゴリに分けられ、前記カテゴリの各々に符号が割り付けられるとともに各カテゴリに含まれる差分値の違いが付加ビットで表されたものであることを特徴とする請求項1に記載のデータ圧縮装置。   The digital data is digital image data, and the code table is divided into a plurality of categories in which the difference values of the digital image data are classified according to their sizes, and a code is assigned to each of the categories and each category is assigned. 2. The data compression apparatus according to claim 1, wherein the difference between the difference values included is represented by additional bits. 前記修正符号テーブルでは、前記増幅により出現頻度が減少したカテゴリに、よりビット数の大きい符号が割り当てられることを特徴とする請求項1または2に記載のデータ圧縮装置。   3. The data compression apparatus according to claim 1, wherein a code having a larger number of bits is assigned to a category whose appearance frequency has decreased due to the amplification in the correction code table. 前記標準符号テーブルは、所定値以下の差分値を含むカテゴリからなる第1カテゴリグループと、前記所定値よりも大きい差分値を含むカテゴリからなる第2カテゴリグループを含み、前記第1カテゴリグループでは、より大きい差分値を含むカテゴリほど小さい符号が割り付けられ、前記第2カテゴリグループでは、より大きい差分値を含むカテゴリほど大きい符号が割り付けられることを特徴とする請求項1〜3の何れか一項に記載のデータ圧縮装置。   The standard code table includes a first category group including a category including a difference value equal to or less than a predetermined value, and a second category group including a category including a difference value larger than the predetermined value. In the first category group, The category including a larger difference value is assigned a smaller code, and the category including a larger difference value is assigned a larger code in the second category group. The data compression apparatus described. 前記修正符号テーブルは、前記増幅により出現頻度が0となるカテゴリに、前記標準符号テーブルにおいて前記第2カテゴリグループに割り付けられた符号を割り付けることを特徴とする請求項4に記載のデータ圧縮装置。   5. The data compression apparatus according to claim 4, wherein the correction code table assigns a code assigned to the second category group in the standard code table to a category whose appearance frequency is 0 by the amplification. 前記増幅により出現頻度が0となるカテゴリに割り付けられる符号には、前記標準符号テーブルの第2カテゴリテーブルのうち、ビット数のより大きい符号が選択されることを特徴とする請求項5に記載のデータ圧縮装置。   6. The code having a larger number of bits is selected from the second category table of the standard code table as a code assigned to a category whose appearance frequency is 0 by the amplification. Data compression device. 前記カテゴリは、前記差分値が大きくなるに従ってカテゴリ0〜カテゴリNに分類され、nを0〜Nの整数とするとき、カテゴリnに分類される前記差分値は、(−2+1)〜(−2n-1)および(2n-1)〜(2−1)の整数であり、mを1以上の整数とするとき、前記倍率が2上がる毎に、前記修正符号テーブルが切り替えられることを特徴とする請求項2〜6の何れか一項に記載のデータ圧縮装置。 The category is classified into category 0 to category N as the difference value increases. When n is an integer from 0 to N, the difference value classified into category n is (−2 n +1) to (−2). -2 n-1 ) and (2 n-1 ) to (2 n -1), where m is an integer of 1 or more, the correction code table is switched every time the magnification is increased by 2 m. The data compression apparatus according to claim 2, wherein the data compression apparatus is a data compression apparatus. 前記画像データがRAW画像データであることを特徴とする請求項2〜8の何れか一項に記載のデータ圧縮装置。   The data compression apparatus according to any one of claims 2 to 8, wherein the image data is RAW image data. 請求項1〜請求項8の何れかに記載のデータ圧縮装置を搭載することを特徴とするデジタルカメラ。   A digital camera equipped with the data compression device according to claim 1. 入力されるデジタル画像データを所定倍率で増幅するステップと、
前記所定倍率の値を設定するステップと、
増幅されたデジタル画像データを符号テーブルに基づき圧縮するステップと、
設定された前記倍率の値に応じて符号テーブルを標準符号テーブルと修正符号テーブルの何れかに切り替えるステップと
を備えることを特徴とする符号化を用いた圧縮方法。
Amplifying input digital image data at a predetermined magnification;
Setting a value of the predetermined magnification;
Compressing the amplified digital image data based on a code table;
And a step of switching the code table to either a standard code table or a modified code table in accordance with the set value of the magnification.
JP2013224549A 2013-10-29 2013-10-29 Data compression device and data compression method Pending JP2015088845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013224549A JP2015088845A (en) 2013-10-29 2013-10-29 Data compression device and data compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013224549A JP2015088845A (en) 2013-10-29 2013-10-29 Data compression device and data compression method

Publications (1)

Publication Number Publication Date
JP2015088845A true JP2015088845A (en) 2015-05-07

Family

ID=53051233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013224549A Pending JP2015088845A (en) 2013-10-29 2013-10-29 Data compression device and data compression method

Country Status (1)

Country Link
JP (1) JP2015088845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018110300A (en) * 2016-12-28 2018-07-12 キヤノン株式会社 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018110300A (en) * 2016-12-28 2018-07-12 キヤノン株式会社 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM

Similar Documents

Publication Publication Date Title
CN107209929B (en) Method and apparatus for processing high dynamic range images
RU2710873C2 (en) Method and device for colour image decoding
CN103081469B (en) Method for encoding images, picture decoding method, picture coding device and picture decoding apparatus
US9635212B2 (en) Dynamic compression ratio selection
JP2018014707A (en) Method and apparatus for encoding / decoding a high dynamic range picture into a coded bitstream
US20070196023A1 (en) Image processing device
JP6685198B2 (en) Imaging device, control method thereof, and program
CN114467298B (en) Image signal conversion processing method and device and terminal equipment
JP2012222453A5 (en)
US10497093B2 (en) Image processing apparatus for minimizing deterioration of image quality of a raw image
CN110418133A (en) Method and apparatus for encoding image data
JP2015088845A (en) Data compression device and data compression method
RU2705013C2 (en) Method and device for colour image encoding and decoding
KR101871946B1 (en) Apparatus, method and program of image processing
US10375348B2 (en) Image capturing apparatus operable to store captured image data in image memory, method of controlling same, and storage medium
JP2010074263A (en) Image compression apparatus
KR20160135670A (en) A method for encoding/decoding a picture block
CN115150624B (en) Image compression methods and circuit systems
US9560364B2 (en) Encoding image data with quantizing and inverse-quantizing pixel values
KR102282464B1 (en) Image processing apparatus and image processing method
JP2007215073A (en) Image compression apparatus, image compression program and image compression method, HDR image generation apparatus, HDR image generation program and HDR image generation method, image processing system, image processing program and image processing method
KR100888986B1 (en) Recording medium recording method, apparatus and program for setting image compression rate
EP4058976B1 (en) Device and method for pre-processing image data for a computer vision application
US9591332B2 (en) Image processing apparatus performing preprocessing to prevent boundary positions of divided rectangular regions of image data from being separated into dense and sparse portions
CN107533768A (en) Image histogram compression end points based on targeted colorspace scope is to selection

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20150327