JP5202919B2 - Characteristic data compression apparatus, characteristic data compression method, characteristic data compression program, characteristic data expansion apparatus, characteristic data expansion method, characteristic data expansion program, information processing apparatus, and image processing apparatus - Google Patents
Characteristic data compression apparatus, characteristic data compression method, characteristic data compression program, characteristic data expansion apparatus, characteristic data expansion method, characteristic data expansion program, information processing apparatus, and image processing apparatus Download PDFInfo
- Publication number
- JP5202919B2 JP5202919B2 JP2007261568A JP2007261568A JP5202919B2 JP 5202919 B2 JP5202919 B2 JP 5202919B2 JP 2007261568 A JP2007261568 A JP 2007261568A JP 2007261568 A JP2007261568 A JP 2007261568A JP 5202919 B2 JP5202919 B2 JP 5202919B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- difference
- characteristic data
- bit length
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
本発明は、圧縮データ構造、特性データ圧縮装置、特性データ圧縮方法、特性データ圧縮プログラム、特性データ伸長装置、特性データ伸長方法、特性データ伸長プログラムおよび情報処理装置に関するものである。 The present invention relates to a compressed data structure, a characteristic data compression apparatus, a characteristic data compression method, a characteristic data compression program, a characteristic data expansion apparatus, a characteristic data expansion method, a characteristic data expansion program, and an information processing apparatus.
印刷装置などの画像処理装置は、色補正を行うために1または複数のガンマ補正テーブルを有する場合がある。例えば、CMYK等のインク処理系では、各色に1つのガンマ補正テーブルが使用されたりする。 An image processing apparatus such as a printing apparatus may have one or more gamma correction tables to perform color correction. For example, in an ink processing system such as CMYK, one gamma correction table is used for each color.
このようなガンマ補正テーブルなどの特性データは、通常、更新可能なように、書き換え可能な不揮発性メモリなどに格納される。各種装置に内蔵される不揮発性メモリの記憶領域は、様々な用途に必要な領域ずつ割り当てられる。不揮発性メモリは比較的高価であるので、記憶領域を節約するために、ガンマ補正テーブルなどの特性データは圧縮された状態で格納される(例えば特許文献1参照)。そして、圧縮され格納されている特性データは伸長された後に使用される。 Characteristic data such as a gamma correction table is usually stored in a rewritable nonvolatile memory or the like so that it can be updated. The storage areas of the nonvolatile memory built in various devices are allocated for each area necessary for various purposes. Since the nonvolatile memory is relatively expensive, characteristic data such as a gamma correction table is stored in a compressed state in order to save a storage area (see, for example, Patent Document 1). The compressed and stored characteristic data is used after being decompressed.
また、各種装置に内蔵される不揮発性メモリの記憶領域では、このような特性データは、予め割り当てられている固定長の領域に記憶される。したがって、固定長を超える特性データは格納できないため、装置内の特性データを更新する場合には、更新後の特性データは、その固定長の領域に格納されなければならない。 Further, in the storage area of the nonvolatile memory incorporated in various devices, such characteristic data is stored in a fixed-length area allocated in advance. Therefore, since characteristic data exceeding the fixed length cannot be stored, when updating characteristic data in the apparatus, the updated characteristic data must be stored in the fixed-length area.
この他、データ圧縮に関する技術としては、特許文献2に記載のものがある。
しかしながら、圧縮後に特性データを固定長の領域に格納する場合、従来の圧縮方法では、圧縮率がデータ内容によって変化するため、更新前の圧縮済特性データが固定長の領域に格納可能であっても、更新後の圧縮済特性データが固定長の領域に格納できない可能性がある。従来の圧縮方法では、圧縮前の特性データのデータ長が一定であっても圧縮後の特性データのデータ長の最大値が既知ではない。このため、同一データ量の特性データの内容のみを更新しても圧縮後の特性データが格納可能なように、元の特性データのデータサイズより短く上述の固定長を決めることが困難である。 However, when storing characteristic data in a fixed-length area after compression, in the conventional compression method, since the compression rate changes depending on the data content, the compressed characteristic data before update can be stored in the fixed-length area. However, there is a possibility that the updated compressed characteristic data cannot be stored in the fixed-length area. In the conventional compression method, even if the data length of the characteristic data before compression is constant, the maximum value of the data length of the characteristic data after compression is not known. For this reason, it is difficult to determine the fixed length shorter than the data size of the original characteristic data so that the compressed characteristic data can be stored even if only the contents of the characteristic data having the same data amount are updated.
本発明は、上述のように問題に鑑みてなされたものであり、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納することができる圧縮データ構造、その圧縮データ構造で特性データを圧縮する特性データ圧縮装置、特性データ圧縮方法および特性データ圧縮プログラム、その圧縮データ構造で圧縮されている特性データを伸長する特性データ伸長装置、特性データ伸長方法および特性データ伸長プログラム、並びに、そのような圧縮データ構造で特性データを有し伸長して使用する情報処理装置および画像処理装置を得ることを目的とする。 The present invention has been made in view of the problems described above, and a compressed data structure capable of compressing characteristic data and storing it in a fixed-length data area regardless of the contents of the characteristic data, and the compressed data Characteristic data compression apparatus, characteristic data compression method and characteristic data compression program for compressing characteristic data in a structure, characteristic data decompression apparatus, characteristic data decompression method and characteristic data decompression program for decompressing characteristic data compressed in the compressed data structure Another object of the present invention is to obtain an information processing apparatus and an image processing apparatus that have characteristic data in such a compressed data structure and that are used by being decompressed.
上記の課題を解決するために、本発明では以下のようにした。 In order to solve the above problems, the present invention is configured as follows.
本発明に係る特性データ圧縮装置は、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮する特性データ圧縮装置である。この装置は、第1の数値について隣接する2つの対データにおける2つの第2の数値から差分値を計算する差分計算手段と、差分値を、第1のビット長で表現可能な差分値と、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類する差分分類手段と、第1のビット長で表現可能な差分値を第1のビット長の差分データとして配列し第2のビット長で表現可能な差分値を第2のビット長の差分データとして配列して、圧縮済特性データの特性データ領域に格納する差分データ配列手段とを備える。 The characteristic data compression apparatus according to the present invention is a characteristic data compression apparatus that compresses characteristic data having a plurality of pair data of a first numerical value and a second numerical value whose minimum value and maximum value are known. The apparatus includes a difference calculation unit that calculates a difference value from two second numerical values in two adjacent pairs of data for the first numerical value, a difference value that can represent the difference value with a first bit length, Difference classifying means for classifying the difference value that is not expressible by the first bit length and that can be expressed by the second bit length, and the difference value that can be expressed by the first bit length is a difference of the first bit length. Difference data arrangement means for arranging the difference values that can be arranged as data and can be expressed by the second bit length as the second bit length difference data and storing the difference values in the characteristic data area of the compressed characteristic data.
これにより、第2のビット長で表現可能と判定される差分値の最大数を特定できるため、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納することができる。 As a result, since the maximum number of difference values determined to be representable by the second bit length can be specified, the characteristic data can be compressed and stored in the fixed-length data area regardless of the contents of the characteristic data. .
また、本発明に係る特性データ圧縮装置は、上記の特性データ圧縮装置に加え、次のようにしてもよい。この場合、第2のビット長は、第1のビット長のN倍(N:整数)倍とされる。 The characteristic data compression apparatus according to the present invention may be as follows in addition to the characteristic data compression apparatus described above. In this case, the second bit length is N times (N: integer) times the first bit length.
これにより、特性データ領域の単位ビット長が第2のビット数である場合、N個の第1のビット長の差分データを隙間なく配列させることで、1つの第2のビット長の差分データと同一ビット長となるため、第1のビット数の差分データを特性データ領域内で効率よく配置させることができる。 As a result, when the unit bit length of the characteristic data area is the second number of bits, by arranging N pieces of difference data of the first bit length without gaps, Since they have the same bit length, the difference data of the first number of bits can be efficiently arranged in the characteristic data area.
また、本発明に係る特性データ圧縮装置は、上記の特性データ圧縮装置のいずれかに加え、次のようにしてもよい。この場合、差分データ配列手段は、1または複数の、第2のビット長の差分データの出現位置を示す位置データを、圧縮済特性データの位置データ領域に格納し、差分データ配列手段は、第1のビット長の差分データを特性データ領域に連続させて格納し、第2のビット長の差分データを特性データ領域に連続させて格納する。 The characteristic data compression apparatus according to the present invention may be as follows in addition to any of the characteristic data compression apparatuses described above. In this case, the difference data arrangement means stores position data indicating the appearance position of one or more second-bit difference data in the position data area of the compressed characteristic data, and the difference data arrangement means Difference data having a bit length of 1 is stored continuously in the characteristic data area, and difference data having a second bit length is stored continuously in the characteristic data area .
これにより、一連の差分値での第2のビット長の差分データの出現位置が位置データにより保持されるため、第1のビット長の差分データと第2のビット長の差分データとを分離して特性データ領域に配置してもデータ伸長時には位置データを参照して、第2のビット長の差分データがどの差分値を有しているかを特定することができる。したがって、第1のビット長の差分データと第2のビット長の差分データとが混在して配置される場合より第1のビット長の差分データを密に配置することができる。 Thereby, since the appearance position of the difference data of the second bit length in the series of difference values is held by the position data, the difference data of the first bit length and the difference data of the second bit length are separated. Even if the data is arranged in the characteristic data area, it is possible to identify which difference value the difference data of the second bit length has by referring to the position data at the time of data expansion. Therefore, the difference data of the first bit length can be arranged more densely than the case where the difference data of the first bit length and the difference data of the second bit length are arranged together.
また、本発明に係る特性データ圧縮装置は、上記の特性データ圧縮装置のいずれかに加え、次のようにしてもよい。この場合、圧縮済特性データは、第1のビット長の差分データの個数または第2のビット長の差分データの個数を示す個数データを格納する個数データ領域を備える。 The characteristic data compression apparatus according to the present invention may be as follows in addition to any of the characteristic data compression apparatuses described above. In this case, the compressed characteristic data includes a number data area for storing number data indicating the number of difference data having the first bit length or the number of difference data having the second bit length.
これにより、第2のビット長の差分データの個数を特定することができるため、固定長の位置データ領域からその個数分の位置データだけを抽出することで、すべての第2のビット長の差分データの出現位置を確実に特定することができる。 As a result, the number of second bit length difference data can be specified, and by extracting only that number of position data from the fixed length position data area, all second bit length differences are extracted. The appearance position of data can be specified reliably.
また、本発明に係る特性データ圧縮装置は、上記の特性データ圧縮装置のいずれかに加え、次のようにしてもよい。この場合、第2のビット数は、すべての第2の数値のいずれも表現可能なビット数とされる。 The characteristic data compression apparatus according to the present invention may be as follows in addition to any of the characteristic data compression apparatuses described above. In this case, the second number of bits is the number of bits that can express any of the second numbers.
これにより、差分値も必ず第2のビット数で表現可能となる。 As a result, the difference value can always be expressed by the second number of bits.
本発明に係る特性データ圧縮方法は、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮する特性データ圧縮方法である。この方法は、第1の数値について隣接する2つの対データにおける2つの第2の数値から差分値を計算するステップと、差分値を、第1のビット長で表現可能な差分値と、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類するステップと、第1のビット長で表現可能な差分値を第1のビット長の差分データとして配列し第2のビット長で表現可能な差分値を第2のビット長の差分データとして配列して、圧縮済特性データの特性データ領域に格納するステップとを備える。ここで、格納するステップは、1または複数の、第2のビット長の差分データの出現位置を示す位置データを、圧縮済特性データの位置データ領域に格納し、格納するステップは、第1のビット長の差分データを特性データ領域に連続させて格納し、第2のビット長の差分データを特性データ領域に連続させて格納する。 The characteristic data compression method according to the present invention is a characteristic data compression method for compressing characteristic data having a plurality of pair data of a first numerical value and a second numerical value whose minimum value and maximum value are known. The method includes calculating a difference value from two second numerical values in two adjacent pairs of data with respect to the first numerical value, a difference value capable of expressing the difference value with a first bit length, A difference value that can be expressed by the second bit length and the difference value that can be expressed by the first bit length are arranged as difference data of the first bit length. Arranging differential values that can be expressed by the second bit length as differential data of the second bit length, and storing them in the characteristic data area of the compressed characteristic data. Here, the storing step stores the position data indicating the appearance position of one or a plurality of second bit length difference data in the position data area of the compressed characteristic data, and the storing step includes: The bit length difference data is continuously stored in the characteristic data area, and the second bit length difference data is continuously stored in the characteristic data area.
これにより、第2のビット長で表現可能と判定される差分値の最大数を特定できるため、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納することができる。 As a result, since the maximum number of difference values determined to be representable by the second bit length can be specified, the characteristic data can be compressed and stored in the fixed-length data area regardless of the contents of the characteristic data. .
本発明に係る特性データ圧縮プログラムは、コンピュータで、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮するための特性データ圧縮プログラムである。このプログラムは、コンピュータを、第1の数値について隣接する2つの対データにおける2つの第2の数値から差分値を計算する差分計算手段、差分値を、第1のビット長で表現可能な差分値と、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類する差分分類手段、および第1のビット長で表現可能な差分値を第1のビット長の差分データとして配列し第2のビット長で表現可能な差分値を第2のビット長の差分データとして配列して、圧縮済特性データの特性データ領域に格納する差分データ配列手段として機能させる。ここで、差分データ配列手段は、1または複数の、第2のビット長の差分データの出現位置を示す位置データを、圧縮済特性データの位置データ領域に格納し、差分データ配列手段は、第1のビット長の差分データを特性データ領域に連続させて格納し、第2のビット長の差分データを特性データ領域に連続させて格納する。 The characteristic data compression program according to the present invention is a characteristic data compression program for compressing characteristic data having a plurality of pair data of a first numerical value and a second numerical value whose minimum value and maximum value are known. is there. This program is a difference calculation means for calculating a difference value from two second numerical values in two pairs of data adjacent to each other with respect to the first numerical value, and a differential value capable of expressing the difference value with a first bit length. Difference classifying means for classifying the differential value into a differential value that is not expressible by the first bit length and that can be expressed by the second bit length, and the differential value that can be expressed by the first bit length is the first bit length The difference value that can be expressed as the difference data of the second bit length and can be expressed as the difference data of the second bit length is arranged as the difference data having the second bit length and is stored in the characteristic data area of the compressed characteristic data. Here, the difference data arrangement means stores position data indicating the appearance position of one or more second-bit difference data in the position data area of the compressed characteristic data, and the difference data arrangement means Difference data having a bit length of 1 is stored continuously in the characteristic data area, and difference data having a second bit length is stored continuously in the characteristic data area.
これにより、第2のビット長で表現可能と判定される差分値の最大数を特定できるため、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納することができる。 As a result, since the maximum number of difference values determined to be representable by the second bit length can be specified, the characteristic data can be compressed and stored in the fixed-length data area regardless of the contents of the characteristic data. .
本発明に係る特性データ伸長装置は、上記の特性データ圧縮装置で生成された圧縮済特性データの特性データ領域における、第1のビット長の差分データから第1ビット長で表現可能な差分値を抽出し、第2のビット長の差分データから第2ビット長で表現可能な差分値を抽出する差分値抽出手段と、抽出された差分値から特性データを復元する特性データ復元手段とを備える。ここで、差分値抽出手段は、1または複数の、第2のビット長の差分データに対応する位置データを、圧縮特性データの位置データ領域から読み出し、未圧縮特性データの配列の、位置データの示す出現位置に、第2のビット長の差分データを挿入して差分値を抽出する。 The characteristic data decompression device according to the present invention provides a difference value that can be expressed by the first bit length from the difference data of the first bit length in the characteristic data area of the compressed characteristic data generated by the characteristic data compression device. A differential value extracting unit that extracts and extracts a differential value that can be expressed by the second bit length from the differential data of the second bit length, and a characteristic data restoring unit that restores the characteristic data from the extracted differential value. Here, the difference value extracting means reads position data corresponding to the difference data of one or more second bit lengths from the position data area of the compressed characteristic data, and stores the position data of the array of uncompressed characteristic data. The difference value is extracted by inserting the difference data of the second bit length at the indicated appearance position.
これにより、固定長のデータ領域に格納されている圧縮された特性データを伸長することができる。 Thereby, the compressed characteristic data stored in the fixed-length data area can be expanded.
また、本発明に係る特性データ伸長装置は、上記の特性データ伸長装置のいずれかに加え、次のようにしてもよい。この場合、差分データ抽出手段は、圧縮済特性データの個数データ領域から個数データを読み出して第2のビット長の差分データの個数を特定し、その個数の第2のビット長の差分データを特性データ領域から読み出し、第2のビット長の差分データの個数から第1の差分データの個数を特定し、その個数の第1のビット長の差分データを特性データ領域から読み出す。 Further, characteristic data decompression device according to the present invention, in addition to one of the above characteristic data decompression apparatus may be as follows. In this case, the difference data extraction means reads the number data from the number data area of the compressed characteristic data, specifies the number of the second bit length difference data, and characterizes the number of the second bit length difference data. The number of first difference data is specified from the number of second bit length difference data, and the number of first bit length difference data is read from the characteristic data region.
本発明に係る特性データ伸長方法は、上記の特性データ圧縮方法により生成された圧縮済特性データの特性データ領域における、第1のビット長の差分データから第1ビット長で表現可能な差分値を抽出し、第2のビット長の差分データから第2ビット長で表現可能な差分値を抽出するステップと、抽出した差分値から特性データを復元するステップとを備える。ここで、抽出するステップは、1または複数の、第2のビット長の差分データに対応する位置データを、圧縮特性データの位置データ領域から読み出し、未圧縮特性データの配列の、位置データの示す出現位置に、第2のビット長の差分データを挿入して差分値を抽出する。 In the characteristic data decompression method according to the present invention, the difference value that can be expressed by the first bit length from the difference data of the first bit length in the characteristic data area of the compressed characteristic data generated by the above characteristic data compression method. Extracting the difference value that can be expressed by the second bit length from the difference data of the second bit length, and restoring the characteristic data from the extracted difference value. Here, the extracting step reads out one or a plurality of position data corresponding to the difference data of the second bit length from the position data area of the compression characteristic data, and indicates the position data of the array of uncompressed characteristic data The difference value is extracted by inserting the difference data of the second bit length at the appearance position.
これにより、固定長のデータ領域に格納されている圧縮された特性データを伸長することができる。 Thereby, the compressed characteristic data stored in the fixed-length data area can be expanded.
本発明に係る特性データ伸長プログラムは、コンピュータを、上記の特性データ圧縮プログラムにより生成された圧縮済特性データの特性データ領域における、第1のビット長の差分データから第1ビット長で表現可能な差分値を抽出し、第2のビット長の差分データから第2ビット長で表現可能な差分値を抽出する差分値抽出手段、並びに抽出された差分値から特性データを復元する特性データ復元手段として機能させる。ここで、差分値抽出手段は、1または複数の、第2のビット長の差分データに対応する位置データを、圧縮特性データの位置データ領域から読み出し、未圧縮特性データの配列の、位置データの示す出現位置に、第2のビット長の差分データを挿入して差分値を抽出する。 The characteristic data decompression program according to the present invention can represent a computer with the first bit length from the difference data of the first bit length in the characteristic data area of the compressed characteristic data generated by the characteristic data compression program. As a difference value extracting means for extracting a difference value and extracting a difference value that can be expressed by the second bit length from the difference data of the second bit length, and a characteristic data restoring means for restoring the characteristic data from the extracted difference value Make it work. Here, the difference value extracting means reads position data corresponding to the difference data of one or more second bit lengths from the position data area of the compressed characteristic data, and stores the position data of the array of uncompressed characteristic data. The difference value is extracted by inserting the difference data of the second bit length at the indicated appearance position.
これにより、固定長のデータ領域に格納されている圧縮された特性データを伸長することができる。 Thereby, the compressed characteristic data stored in the fixed-length data area can be expanded.
本発明に係る情報処理装置は、上記の特性データ圧縮装置で生成された圧縮済特性データの圧縮データ構造で特性データを特性データ領域に有するデータ格納手段と、特性データ領域における圧縮されている特性データを伸長する上記の特性データ伸長装置とを備える。 An information processing apparatus according to the present invention includes a data storage means having characteristic data in a characteristic data area in a compressed data structure of compressed characteristic data generated by the characteristic data compression apparatus, and a characteristic compressed in the characteristic data area And the above characteristic data decompression device for decompressing data.
これにより、第2のビット長で表現可能と判定される差分値の最大数を特定できるため、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納しておくことができる。さらに、その固定長のデータ領域に格納されている圧縮された特性データを伸長して使用することができる。 As a result, the maximum number of difference values determined to be representable by the second bit length can be specified, so that the characteristic data is compressed and stored in the fixed-length data area regardless of the contents of the characteristic data. Can do. Furthermore, the compressed characteristic data stored in the fixed-length data area can be expanded and used.
本発明に係る画像処理装置は、上記の特性データ圧縮装置で生成された圧縮済特性データの圧縮データ構造のいずれかで特性データとしてガンマ補正テーブルを特性データ領域に有するデータ格納手段と、特性データ領域における圧縮されているガンマ補正テーブルを伸長する上記の特性データ伸長装置とを備える。
An image processing apparatus according to the present invention includes a data storage unit having a gamma correction table in a characteristic data area as characteristic data in any one of the compressed data structures of the compressed characteristic data generated by the characteristic data compression apparatus, and characteristic data And the above characteristic data decompression device for decompressing the compressed gamma correction table in the area.
これにより、第2のビット長で表現可能と判定される差分値の最大数を特定できるため、ガンマ補正テーブルの内容に拘わらず、ガンマ補正テーブルを圧縮して固定長のデータ領域に格納しておくことができる。さらに、その固定長のデータ領域に格納されている圧縮されたガンマ補正テーブルを伸長して使用することができる。 As a result, since the maximum number of difference values determined to be expressible by the second bit length can be specified, the gamma correction table is compressed and stored in a fixed-length data area regardless of the contents of the gamma correction table. I can leave. Furthermore, the compressed gamma correction table stored in the fixed-length data area can be expanded and used.
本発明によれば、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納することができる。 According to the present invention, the characteristic data can be compressed and stored in the fixed-length data area regardless of the contents of the characteristic data.
以下、図に基づいて本発明の実施の形態を説明する。
実施の形態1.
図1は、本発明の実施の形態1に係る特性データ圧縮装置の構成を示すブロック図である。図1において、演算処理装置1は、図示せぬコンピュータを内蔵し、図示せぬ記録媒体に格納された特性データ圧縮プログラムを実行し、差分計算部11、差分分類部12および差分データ配列部13を実現する装置である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a characteristic data compression apparatus according to
演算処理装置1は、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮する。特に、実施の形態1では、画像処理に使用されるガンマ補正テーブルを圧縮する。ガンマ補正テーブルは、入力値(第1の数値)と出力値(第2の数値)との対データを複数有する特性データである。例えば、256階調(8ビット)の画像データをガンマ補正するためのガンマ補正テーブルの入力値および出力値の範囲は0〜255である。
The
差分計算部11は、第1の数値について隣接する2つの対データにおける2つの第2の数値から差分値を計算する差分計算手段として機能する処理部である。特性データの第2の数値がNビットのデータである場合、計算された差分値は、Nビットの未圧縮差分データ22として一時的にデータ格納装置2に格納される。第1の数値の昇順または降順に差分値が計算され、その計算順で差分値が未圧縮差分データ22として格納される。実施の形態1では、ガンマ補正テーブルにおける、入力値について隣接する2つの対データの出力値の差分値が計算される。例えば、入力値が0であるときの出力値が0であり、入力値が1であるときの出力が7である場合、差分値は7となる。ガンマ補正テーブルのように単調増加の特性の場合には、すべての差分値はゼロまたは正数となる。そして、入力値の昇順または降順に差分値が計算され、その計算順に配列されて差分値が未圧縮差分データ22として格納される。
The
差分分類部12は、差分計算部11により計算された差分値を、第1のビット長で表現可能な差分値と、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類する差分分類手段として機能する処理部である。差分分類部12は、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値が何番目の差分値であるか(つまり出現位置)を差分属性データ23としてデータ格納装置2に格納する。実施の形態1では、差分値が、4ビットで表現可能な差分値と、4ビットで表現可能ではなくかつ8ビットで表現可能な差分値とに分類される。つまり、15以下の差分値と16以上の差分値とに分類される。したがって、実施の形態1では、16以上の差分値が何番目の差分値であるかが差分属性データ23として格納される。
The
差分データ配列部13は、差分属性データ23に基づき、第1のビット長で表現可能な差分値を含む未圧縮差分データ22と第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値を含む未圧縮差分データ22とを特定し、第1のビット長で表現可能な差分値を第1のビット長の差分データとして連続させて圧縮済特性データ24内の特性データ領域に格納し、それに続けて、第2のビット長で表現可能な差分値を第2のビット長の差分データとして連続させて圧縮済特性データ24内の特性データ領域に格納する差分データ配列手段として機能する処理部である。この実施の形態1では、15以下の差分値は、4ビットの差分データとして特性データ領域に格納され、16以上の差分値を、8ビットの差分データとして特性データ領域に格納される。
The difference
さらに、差分データ配列部13は、差分属性データ23から第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値の出現位置を取得し、その出現位置を位置データとして圧縮済特性データ24内の固定長の位置データ領域に格納する。実施の形態1では、差分データ配列部13は、差分属性データ23から16以上の差分値の出現位置をすべて取得し、その出現位置を位置データとして圧縮済特性データ24内の15バイトの位置データ領域に格納する。ここで、256階調のガンマ補正テーブルの場合、差分値の数は255個であるため、1つの位置データは、0〜254番目のいずれかといった出現位置を表現可能な8ビットのデータとされる。このため、15バイトの位置データ領域には、最大15個の位置データが格納される。
Further, the difference
さらに、差分データ配列部13は、差分属性データ23を参照して第2のビット長の差分データの個数を取得し、個数データとして圧縮済特性データ24内の個数データ領域に格納する。実施の形態1では、差分データ配列部13は、第2のビット長の差分データの個数を1バイトの個数データとして圧縮済特性データ24内の1バイトの個数データ領域に格納する。
Further, the difference
また、データ格納装置2は、圧縮処理の対象となる特性データ21、処理途中で生成される未圧縮差分データ22および差分属性データ23、並びに、処理結果となる圧縮済特性データ24を格納する装置である。データ格納装置2としては、ハードディスクドライブ、RAMなどが適宜使用される。
Further, the
特性データ21は、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有するデータである。この実施の形態1では、特性データ21は、ガンマ補正テーブルとされる。ガンマ補正テーブルは、入力値と出力値との対データを、入力値の個数分、つまり、入力値の範囲分だけ有する。例えば、入力値の範囲が0〜255である場合には、ガンマ補正テーブルは、256個の対データを有する。また、この場合、出力値の範囲は0〜255に限定されるため、出力値の取り得る最小値は0、出力値の取り得る最大値は255と既知である。
The
未圧縮差分データ22は、差分計算部11により計算された差分値を含む第2のビット長のデータである。この実施の形態1では、1つの未圧縮差分データ22は8ビットのデータである。例えば、256階調のガンマ補正テーブルについて差分値が計算された場合、255個の未圧縮差分データ22が発生する。
The
差分属性データ23は、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値が何番目の差分値であるか(つまり出現位置)を含むデータである。差分属性データ23は、1つの出現位置を示す1つの位置データを、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値の個数と同数だけ有する。1つの位置データは、第2のビット長のデータである。この実施の形態1では、1つの位置データは、8ビットのデータである。
The
圧縮済特性データ24は、固定長の特性データ領域に圧縮後の特性データを、固定長の位置データ領域に位置データを、固定長の個数データ領域に個数データを有するデータである。
The compressed
図2は、実施の形態1における圧縮済特性データ24のデータフォーマットの一例を示す図である。この実施の形態1では、256階調(つまり8ビット)のガンマ補正テーブルが圧縮される。ここでは、第1のビット長が4ビットとされ、第2のビット長が8ビットとされ、出力値の最小値が0であり出力値の最大値が255であるので、特性データ領域24aの長さは、135バイトの固定長とされ、位置データ領域24bの長さは、15バイトの固定長とされる。また、個数データ領域24cは、1バイトとされる。
FIG. 2 is a diagram showing an example of the data format of the compressed
出力値の最大値が255であるため、16以上の差分値の数は、最大で15となる。このため、位置データ領域24bの長さは15バイトとされる。16以上の差分値の数が15である場合、16以上の差分値を含む8ビットの差分データを格納するための領域長は、15バイト(=15×8ビット)となり、15以下の差分値を含む4ビットの差分データを格納するための領域長は、120バイト(=(255−15)×4ビット)となる。このため、特性データ領域24aの長さは、135バイト(=15+120バイト)あれば十分となる。また、8ビットの差分データの個数は最大で15であるから、個数データ領域24cは1バイトで十分である。このように、実施の形態1では、圧縮済特性データ24は、151バイト(135+15+1バイト)の固定長のデータとなる。256階調のガンマ補正テーブルを圧縮せずに格納する場合には256バイトの記憶領域が必要になるため、この圧縮データ構造によりガンマ補正テーブルを格納すれば、非圧縮時より約41%少ない固定長の記憶領域があれば済む。
Since the maximum value of the output value is 255, the number of difference values of 16 or more is 15 at the maximum. Therefore, the length of the
次に、上記装置の動作について説明する。図3は、実施の形態1に係る特性データ圧縮装置の動作を説明するフローチャートである。 Next, the operation of the above apparatus will be described. FIG. 3 is a flowchart for explaining the operation of the characteristic data compression apparatus according to the first embodiment.
差分計算部11は、一連の対データにおいて、第1の数値について隣接する2つの対データにおける第2の数値から差分値を順次計算する(ステップS1)。特性の入力値と出力値を有する対データは、入力値の昇順に配列されているため、連続する2つの対データの出力値間の差分値が計算される。これらの差分値は、未圧縮差分データ22としてデータ格納装置2へ一旦格納される。
The
図4は、実施の形態1におけるガンマ補正テーブルによるガンマ補正特性の一例を示す図である。なお、図4では、特性を連続的な曲線で表しているが、実際には、テーブルによる特性データは、離散的な点の集合となる。実施の形態1では、入力値および出力値の範囲が0〜255であるガンマ補正テーブルが特性データとされる。したがって、実施の形態1では、256個の対データが存在するため、255個の差分値が計算される。入力値の昇順に沿って、ガンマ補正テーブルの出力値をG(0),G(1),・・・,G(254),G(255)とし、差分値をDG(0),DG(1),・・・,DG(254)とする場合、各差分値DG(i)は、次式で計算される。 FIG. 4 is a diagram illustrating an example of gamma correction characteristics based on the gamma correction table according to the first embodiment. In FIG. 4, the characteristic is represented by a continuous curve, but actually, the characteristic data by the table is a set of discrete points. In the first embodiment, a gamma correction table having a range of input values and output values of 0 to 255 is used as characteristic data. Therefore, in the first embodiment, since there are 256 pairs of data, 255 difference values are calculated. In the ascending order of input values, the output values of the gamma correction table are G (0), G (1),..., G (254), G (255), and the difference values are DG (0), DG ( In the case of 1),..., DG (254), each difference value DG (i) is calculated by the following equation.
DG(i)=G(i+1)−G(i),i=0,1,・・・,254
次に、差分分類部12は、未圧縮差分データ22内の差分値を、第1のビット長で表現可能な差分値と、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類し、入力値の昇順または降順で配列されている未圧縮差分データ22のうち、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値の出現位置を差分属性データ23としてデータ格納装置2に格納する(ステップS2)。実施の形態1では、差分分類部12は、入力値の昇順または降順で配列されている未圧縮差分データ22を順番に参照していき、16以上の差分値が何番目の差分値であるかを差分属性データ23として格納する。つまり、入力値の昇順または降順に沿って計算された一連の差分値の配列のうち、値が16以上である差分値についての配列内の要素番号が差分属性データ23として格納される。
DG (i) = G (i + 1) −G (i), i = 0, 1,.
Next, the
次に、差分データ配列部13は、差分属性データ23に基づき、第1のビット長で表現可能な差分値を含む未圧縮差分データ22と第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値を含む未圧縮差分データ22とを特定する。そして差分データ配列部13は、第1のビット長で表現可能な差分値を、第1のビット長の差分データとして展開し、連続させて圧縮済特性データ24内の特性データ領域24aに格納し(ステップS3)、第2のビット長で表現可能な差分値を、第2のビット長の差分データとして展開し、連続させて圧縮済特性データ24内の特性データ領域24aに格納する(ステップS4)。図5は、実施の形態1における差分データのビット長を説明する図である。実施の形態1では、15以下の差分値は、図5(A)に示すように4ビットの差分データとして特性データ領域24aに格納され、16以上の差分値は、図5(B)に示すように8ビットの差分データとして特性データ領域24aに格納される。また、図5(C)に示すように、8ビットを単位として、まず4ビットの差分データが2つずつ連続して格納され、4ビットの差分データに続いて8ビットの差分データが連続して格納される。このため、4ビットの差分データが奇数個である場合には、最後の4ビットの差分データの次に4ビットのパディングデータ(全ビット値を1などにした意味のないデータ)が追加される。
Next, based on the
実施の形態1では、図5(A)に示すように、15以下の差分値は、4ビットの差分データとして格納されるため、8ビットの領域に2つの差分値が格納される。実施の形態1では、最小値と最大値との差が255であるため、差分値は、本来、8ビットデータとして表現されるが、図5(A)に示すように、15以下の差分値については、データ量が圧縮される。 In the first embodiment, as shown in FIG. 5A, since a difference value of 15 or less is stored as 4-bit difference data, two difference values are stored in an 8-bit area. In the first embodiment, since the difference between the minimum value and the maximum value is 255, the difference value is originally expressed as 8-bit data. However, as shown in FIG. For, the amount of data is compressed.
さらに、差分データ配列部13は、差分属性データ23から第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値の出現位置を取得し、その出現位置を第2のビット長の位置データに展開し圧縮済特性データ24内の固定長の位置データ領域24bに格納する(ステップS5)。特性データ領域24aにおける第2のビット長の差分データの配列順序と同一順序で、各第2のビット長の差分データに対応する位置データが、位置データ領域24bに格納される。これにより、第2のビット長の差分データと位置データとが関連付けられる。実施の形態1では、差分データ配列部13は、差分属性データ23から16以上の差分値の出現位置をすべて取得し、その出現位置を位置データとして位置データ領域24bに格納する。
Further, the difference
さらに、差分データ配列部13は、差分属性データ23を参照して第2のビット長の差分データの個数を取得し、第2のビット長の個数データに展開し、圧縮済特性データ24内の個数データ領域24cに格納する(ステップS6)。実施の形態1では、差分データ配列部13は、8ビット差分データの個数を1バイトの個数データとして個数データ領域24cに格納する。
Further, the difference
図6は、実施の形態1における圧縮済特性データ24の具体例を示す図である。図6に示す圧縮済特性データ24では、135バイトの特性データ領域24aには、253個の4ビット差分データおよび4ビットのパディングデータがまず格納され、それに続いて2個の8ビット差分データが格納されている。そして、特性データ領域24aの残りの部分は、パディングデータで埋められている。特性データ領域24aに続く15バイトの位置データ領域24bには、2個の8ビット差分データの出現位置を示す2つの位置データが格納されている。そして、位置データ領域24bの残りの部分は、パディングデータで埋められている。位置データ領域24bに続く1バイトの個数データ領域24cには、8ビット差分データの個数(ここでは2個)を示す個数データが格納されている。このように、この圧縮データ構造によれば、256階調のガンマ補正テーブルは、特性の内容に拘わらず、常に、一定長の圧縮済特性データ24とされる。
FIG. 6 is a diagram showing a specific example of the compressed
以上のように、上記実施の形態1によれば、第2のビット長で表現可能と判定される差分値の最大数を特定できるため、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納することができる。 As described above, according to the first embodiment, since the maximum number of difference values determined to be expressible with the second bit length can be specified, the characteristic data is compressed regardless of the contents of the characteristic data. It can be stored in a fixed length data area.
また、上記実施の形態1によれば、圧縮済特性データ24に使用されるデータ構造は、対データの第1の数値について隣接する2つの対データにおける2つの第2の数値から計算された差分値を有する複数の差分データを格納する固定長の特性データ領域24aを備える。そして、このデータ構造は、第1のビット長で表現可能と判定された差分値を、特性データ領域24aに第1のビット長の差分データで格納し、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能と判定された差分値を、特性データ領域24aに第2のビット長の差分データで格納する。これにより、第2のビット長で表現可能と判定される差分値の最大数を特定できるため、特性データの内容に拘わらず、特性データを圧縮して固定長のデータ領域に格納することができる。また、圧縮時に情報量が失われないため、可逆的に圧縮・伸長が可能である。
Further, according to the first embodiment, the data structure used for the compressed
また、上記実施の形態1によれば、第2のビット長は、第1のビット長のN倍とされる。これにより、特性データ領域24aの単位ビット長が第2のビット数である場合、N個の第1のビット長の差分データを隙間なく配列させることで、1つの第2のビット長の差分データと同一ビット長となるため、第1のビット数の差分データを特性データ領域24a内で効率よく配置させることができる。
Further, according to the first embodiment, the second bit length is N times the first bit length. Thereby, when the unit bit length of the
また、上記実施の形態1によれば、固定長の位置データ領域24bに位置データが格納される。そして、特性データ領域24aは、第1のビット長の差分データを連続させて格納し、第2のビット長の差分データを連続させて格納する。これにより、データ伸長時には、出現位置により、第2のビット長の差分データが何番目の差分データかを特定することで差分データの再配列が可能となるため、第1のビット長の差分データと第2のビット長の差分データとの分離が可能となる。このため、第1のビット長の差分データと第2のビット長の差分データとが混在して配置される場合より第1のビット長の差分データを密に配置することができる。
Further, according to the first embodiment, the position data is stored in the fixed-length
また、上記実施の形態1によれば、個数データ領域24cに個数データが格納される。これにより、第2のビット長の差分データの個数を特定することができるため、固定長の位置データ領域24bからその個数分の位置データだけを抽出することで、すべての第2のビット長の差分データの出現位置を確実に特定することができる。
Further, according to the first embodiment, the number data is stored in the
また、上記実施の形態1によれば、第2のビット数は、すべての第2の数値のいずれも表現可能なビット数とされる。これにより、差分値も必ず第2のビット数で表現可能となる。
実施の形態2.
本発明の実施の形態2に係る特性データ伸長装置は、実施の形態1に係る特性データ圧縮装置により生成された圧縮済特性データを伸長し、元の特性データを生成する情報処理装置である。例えば、このような特性データ伸長装置は、ガンマ補正テーブルを使用して画像処理を行う画像処理装置に内蔵されてもよい。
Further, according to the first embodiment, the second number of bits is the number of bits that can represent all the second numerical values. As a result, the difference value can always be expressed by the second number of bits.
The characteristic data decompression apparatus according to the second embodiment of the present invention is an information processing apparatus that decompresses the compressed characteristic data generated by the characteristic data compression apparatus according to the first embodiment and generates original characteristic data. For example, such a characteristic data expansion device may be incorporated in an image processing device that performs image processing using a gamma correction table.
図7は、本発明の実施の形態2に係る特性データ伸長装置の構成を示すブロック図である。図7において、演算処理装置51は、図示せぬコンピュータを内蔵し、図示せぬ記録媒体に格納された特性データ伸長プログラムを実行し、データ抽出部61およびデータ変換部62を実現する装置である。
FIG. 7 is a block diagram showing a configuration of the characteristic data decompression apparatus according to
データ抽出部61は、実施の形態1に係る特性データ圧縮装置により生成された圧縮済特性データにおける、第1のビット長の差分データから第1ビット長で表現可能な差分値を抽出し、第2のビット長の差分データから第2ビット長で表現可能な差分値を抽出する差分値抽出手段として機能する処理部である。実施の形態2では、データ抽出部61は、圧縮済特性データにおける、4ビット差分データから4ビット表現可能な差分値を抽出し、8ビット差分データから8ビット長で表現可能な差分値を抽出する。
The
データ変換部62は、抽出された差分値から特性データを復元する特性データ復元手段として機能する処理部である。
The
また、データ格納装置52は、固定長の記憶領域に格納された、伸長の対象となる圧縮済特性データ71、処理途中で生成される未圧縮差分データ72、および処理結果となる元の特性データ73を格納する装置である。圧縮済特性データ71は、実施の形態1における圧縮済特性データ24と同一のものである。特性データ73は、実施の形態1における特性データ21と同一のものである。データ格納装置52としては、書換可能な不揮発性の記録媒体(ハードディスクドライブ、NVRAM:Non-Volatile RAMなど)、RAMなどが適宜使用される。この実施の形態2では、圧縮済特性データ71は、書換可能な不揮発性メモリであるNVRAM81内の固定長の記憶領域に予め格納されており、未圧縮差分データ72は、RAM82に格納される。特性データ73は、RAM82に格納される。さらに、この実施の形態2では、ガンマ補正テーブルが特性データ73として伸長され、RAM82に格納され、図示せぬ画像処理部により、画像処理に使用される。
The
次に、上記装置の動作について説明する。図8は、実施の形態2に係る特性データ伸長装置の動作を説明するフローチャートである。 Next, the operation of the above apparatus will be described. FIG. 8 is a flowchart for explaining the operation of the characteristic data decompression apparatus according to the second embodiment.
データ抽出部61は、圧縮済特性データ71から個数データを読み出し、第2のビット長の差分データの個数を特定する(ステップS11)。実施の形態2では、データ抽出部61は、8ビット差分データの個数を特定する。図2に示すように、個数データ領域24cの位置は既知であるので、データ抽出部61は、その位置から個数データを読み出せばよい。
The
次に、データ抽出部61は、第2のビット長の差分データの個数から、第1のビット長の差分データの個数を特定し、その個数の、第1のビット長の差分データを特性データ領域24aから読み出す(ステップS12)。第1のビット長の差分データは、第2のビット長の差分データへ変換され、特性データ領域24aに格納されていた順番と同一の順番で、未圧縮差分データ72として格納される。なお、ここでは、ビット長が変換されるだけで、データの値は変化しない。実施の形態2では、データ抽出部61は、全差分データ数から8ビット差分データの個数を減算して4ビット差分データの個数を特定し、その個数の4ビット差分データを特性データ領域24aの先頭から読み出す。このとき、2つの4ビット差分データを8ビットデータとして読み出して、上位4ビットと下位4ビットとから2つの差分値を特定するようにしてもよい。ただし、4ビット差分データの個数が奇数である場合には、最後のパディングデータ部分は破棄する。
Next, the
さらに、データ抽出部61は、特定した個数だけ、第2のビット長の差分データを特性データ領域24aから読み出す(ステップS13)。第2のビット長の差分データは、そのまま未圧縮差分データ72として格納される。このとき、データ抽出部61は、第2のビット長の差分データに対応する位置データを、圧縮済特性データ71の位置データ領域24bから読み出し、未圧縮特性データ72の配列の、その位置データの示す出現位置に、その第2のビット長の差分データを挿入する。これにより、圧縮前の差分データが復元される。つまり、第1の値の昇順または降順に沿った順番で配列された差分データが得られる。
Further, the
そして、データ変換部62は、未圧縮特性データ72から特性データ73を復元する(ステップS14)。復元された特性データ73は、RAM82に格納される。実施の形態2のガンマ補正テーブルの場合では、入力値が0であるときの出力値が0であるため、入力値が1であるときの出力値は、1番目の差分データの値とされる。次に、入力値が2であるときの出力値は、1番目の差分データの値に2番目の差分データの値を加算した値となる。このようにして順次、各入力値での出力値が計算される。なお、このように、最小の入力値に対する出力値が既知ではない特性データの場合には、最小の入力値に対する出力値を格納する領域を圧縮済特性データ71に設け、圧縮時にその出力値をその領域に格納しておき、伸長時にその出力値を参照して、最小の入力値に対する出力値を決定すればよい。
Then, the
以上のように、上記実施の形態2によれば、実施の形態1のようにして、固定長のデータ領域に格納されている圧縮された特性データを伸長することができる。 As described above, according to the second embodiment, the compressed characteristic data stored in the fixed-length data area can be expanded as in the first embodiment.
また、上記実施の形態2によれば、圧縮済特性データ71は固定長のデータフォーマットとなっているため、圧縮済特性データ71の更新時に、記憶領域の長さを変更せずに済む。例えば、ガンマ補正テーブルの出力値、つまり特性が変更されるような場合に、確実に新たなガンマ補正テーブルへ更新することができる。
Further, according to the second embodiment, since the compressed
なお、上述の各実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。 Each embodiment described above is a preferred example of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. It is.
例えば、実施の形態1では、個数データは、第2のビット長の差分データの個数を示すが、第1のビット長の差分データの個数を示すようにしてもよい。その場合、差分データの総数から第1のビット長の差分データの個数を減算することで第2のビット長の差分データの個数を取得すればよい。 For example, in the first embodiment, the number data indicates the number of difference data having the second bit length, but may be the number of difference data having the first bit length. In that case, the number of difference data having the second bit length may be obtained by subtracting the number of difference data having the first bit length from the total number of difference data.
また、上記各実施の形態では、一例として8ビット、つまり256階調のガンマ補正テーブルを特性データ21,73としているが、他の偶数ビット(2Mビット)のガンマ補正テーブルを特性データ21,73としても勿論よい。その場合には、第2のビット長が2Mとなり、第1のビット長がMとなる。また、特性データは、ガンマ補正テーブルに限らず、例えば測定値の補正用テーブル、校正用テーブルなどであってもよい。
In each of the above embodiments, the gamma correction table of 8 bits, that is, 256 gradations is used as the
また、上記実施の形態1では、差分値を未圧縮差分データ22として一旦格納してから、差分値を第1のビット長で表現可能か否かを判定しているが、その代わりに、差分値を未圧縮差分データ22として格納する前に、差分値を第1のビット長で表現可能か否かを判定するようにしてもよい。
In the first embodiment, the difference value is temporarily stored as the
本発明は、例えば、画像処理装置のガンマ補正テーブルに適用可能である。 The present invention is applicable to, for example, a gamma correction table of an image processing apparatus.
11 差分計算部(差分計算手段)
12 差分分類部(差分分類手段)
13 差分データ配列部(差分データ配列手段)
24a 特性データ領域
24b 位置データ領域
24c 個数データ領域
52 データ格納装置(データ格納手段)
61 データ抽出部(差分値抽出手段)
62 データ変換部(特性データ復元手段)
11 Difference calculation part (difference calculation means)
12 Difference classification part (difference classification means)
13 Difference data array part (difference data array means)
24a
61 Data extraction unit (difference value extraction means)
62 Data converter (characteristic data restoration means)
Claims (12)
前記第1の数値について隣接する2つの前記対データにおける2つの前記第2の数値から差分値を計算する差分計算手段と、 Difference calculating means for calculating a difference value from two of the second numerical values in the two pairs of data adjacent to each other with respect to the first numerical value;
前記差分値を、第1のビット長で表現可能な差分値と、前記第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類する差分分類手段と、 A difference classification means for classifying the difference value into a difference value that can be expressed by a first bit length and a difference value that is not expressible by the first bit length and can be expressed by a second bit length;
前記第1のビット長で表現可能な差分値を、前記第1のビット長の差分データとして配列し、前記第2のビット長で表現可能な差分値を、前記第2のビット長の差分データとして配列して、前記圧縮済特性データの特性データ領域に格納する差分データ配列手段と、 The difference value that can be expressed by the first bit length is arranged as difference data of the first bit length, and the difference value that can be expressed by the second bit length is set as difference data of the second bit length. Difference data arrangement means for storing in the characteristic data area of the compressed characteristic data,
を備え、 With
前記差分データ配列手段は、1または複数の、前記第2のビット長の差分データの出現位置を示す位置データを、前記圧縮済特性データの位置データ領域に格納し、 The difference data arrangement means stores position data indicating an appearance position of one or a plurality of difference data of the second bit length in a position data area of the compressed characteristic data,
前記差分データ配列手段は、前記第1のビット長の前記差分データを前記特性データ領域に連続させて格納し、前記第2のビット長の前記差分データを前記特性データ領域に連続させて格納すること、 The difference data arrangement means stores the difference data of the first bit length continuously in the characteristic data area, and stores the difference data of the second bit length continuously in the characteristic data area. about,
を特徴とする特性データ圧縮装置。Characteristic data compression device characterized by
前記第1の数値について隣接する2つの前記対データにおける2つの前記第2の数値から差分値を計算するステップと、 Calculating a difference value from two of the second numerical values in the two pairs of data adjacent to each other for the first numerical value;
前記差分値を、第1のビット長で表現可能な差分値と、前記第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類するステップと、 Classifying the difference value into a difference value that can be represented by a first bit length and a difference value that is not representable by the first bit length and that can be represented by a second bit length;
前記第1のビット長で表現可能な差分値を、前記第1のビット長の差分データとして配列し、前記第2のビット長で表現可能な差分値を、前記第2のビット長の差分データとして配列して、前記圧縮済特性データの特性データ領域に格納するステップと、 The difference value that can be expressed by the first bit length is arranged as difference data of the first bit length, and the difference value that can be expressed by the second bit length is set as difference data of the second bit length. And storing in the characteristic data area of the compressed characteristic data;
を備え、 With
前記格納するステップは、1または複数の、前記第2のビット長の差分データの出現位置を示す位置データを、前記圧縮済特性データの位置データ領域に格納し、 The storing step stores one or a plurality of position data indicating an appearance position of the difference data of the second bit length in a position data area of the compressed characteristic data;
前記格納するステップは、前記第1のビット長の前記差分データを前記特性データ領域に連続させて格納し、前記第2のビット長の前記差分データを前記特性データ領域に連続させて格納すること、 The storing step stores the difference data of the first bit length continuously in the characteristic data area, and stores the difference data of the second bit length continuously in the characteristic data area. ,
ることを特徴とする特性データ圧縮方法。The characteristic data compression method characterized by the above-mentioned.
前記コンピュータを、 The computer,
前記第1の数値について隣接する2つの前記対データにおける2つの前記第2の数値から差分値を計算する差分計算手段、 Difference calculating means for calculating a difference value from two of the second numerical values in the two pairs of data adjacent to each other with respect to the first numerical value;
前記差分値を、第1のビット長で表現可能な差分値と、前記第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類する差分分類手段、および Difference classification means for classifying the difference value into a difference value that can be expressed by a first bit length and a difference value that is not expressible by the first bit length and can be expressed by a second bit length; and
前記第1のビット長で表現可能な差分値を、前記第1のビット長の差分データとして配列し、前記第2のビット長で表現可能な差分値を、前記第2のビット長の差分データとして配列して、前記圧縮済特性データの特性データ領域に格納する差分データ配列手段、 The difference value that can be expressed by the first bit length is arranged as difference data of the first bit length, and the difference value that can be expressed by the second bit length is set as difference data of the second bit length. Difference data array means for storing in the characteristic data area of the compressed characteristic data,
として機能させ、 Function as
前記差分データ配列手段は、1または複数の、前記第2のビット長の差分データの出現位置を示す位置データを、前記圧縮済特性データの位置データ領域に格納し、 The difference data arrangement means stores position data indicating an appearance position of one or a plurality of difference data of the second bit length in a position data area of the compressed characteristic data,
前記差分データ配列手段は、前記第1のビット長の前記差分データを前記特性データ領域に連続させて格納し、前記第2のビット長の前記差分データを前記特性データ領域に連続させて格納すること、 The difference data arrangement means stores the difference data of the first bit length continuously in the characteristic data area, and stores the difference data of the second bit length continuously in the characteristic data area. about,
を特徴とする特性データ圧縮プログラム。Characteristic data compression program characterized by
抽出された前記差分値から前記特性データを復元する特性データ復元手段と、 Characteristic data restoring means for restoring the characteristic data from the extracted difference value;
を備え、 With
前記差分値抽出手段は、1または複数の、前記第2のビット長の差分データに対応する位置データを、前記圧縮特性データの位置データ領域から読み出し、未圧縮特性データの配列の、前記位置データの示す出現位置に、前記第2のビット長の差分データを挿入して前記差分値を抽出する The difference value extraction means reads position data corresponding to one or a plurality of difference data of the second bit length from the position data area of the compressed characteristic data, and the position data of the array of uncompressed characteristic data The difference value is extracted by inserting the difference data of the second bit length at the appearance position indicated by
ことを特徴とする特性データ伸長装置。A characteristic data decompression device characterized by that.
抽出した前記差分値から前記特性データを復元するステップと、 Restoring the characteristic data from the extracted difference value;
を備え、 With
前記抽出するステップは、1または複数の、前記第2のビット長の差分データに対応する位置データを、前記圧縮特性データの位置データ領域から読み出し、未圧縮特性データの配列の、前記位置データの示す出現位置に、前記第2のビット長の差分データを挿入して前記差分値を抽出する The extracting step reads out one or a plurality of position data corresponding to the difference data of the second bit length from the position data area of the compression characteristic data, and extracts the position data of the array of uncompressed characteristic data. The difference value is extracted by inserting the difference data of the second bit length into the appearance position shown
ることを特徴とする特性データ伸長方法。The characteristic data decompression method characterized by the above-mentioned.
請求項6に記載の特性データ圧縮プログラムにより生成された圧縮済特性データの特性データ領域における、前記第1のビット長の前記差分データから前記第1ビット長で表現可能な差分値を抽出し、前記第2のビット長の前記差分データから前記第2ビット長で表現可能な差分値を抽出する差分値抽出手段、並びに Extracting a differential value that can be expressed by the first bit length from the differential data of the first bit length in the characteristic data area of the compressed characteristic data generated by the characteristic data compression program according to claim 6; A differential value extracting means for extracting a differential value that can be expressed by the second bit length from the differential data of the second bit length; and
抽出された前記差分値から前記特性データを復元する特性データ復元手段、 Characteristic data restoring means for restoring the characteristic data from the extracted difference value;
として機能させ、 Function as
前記差分値抽出手段は、1または複数の、前記第2のビット長の差分データに対応する位置データを、前記圧縮特性データの位置データ領域から読み出し、未圧縮特性データの配列の、前記位置データの示す出現位置に、前記第2のビット長の差分データを挿入して前記差分値を抽出する The difference value extraction means reads position data corresponding to one or a plurality of difference data of the second bit length from the position data area of the compressed characteristic data, and the position data of the array of uncompressed characteristic data The difference value is extracted by inserting the difference data of the second bit length at the appearance position indicated by
ことを特徴とする特性データ伸長プログラム。Characteristic data decompression program characterized by that.
前記特性データ領域における圧縮されている前記特性データを伸長する請求項7記載の特性データ伸長装置と、 The characteristic data decompression device according to claim 7, wherein the characteristic data that is compressed in the characteristic data area is decompressed.
を備えることを特徴とする情報処理装置。 An information processing apparatus comprising:
前記特性データ領域における圧縮されている前記ガンマ補正テーブルを伸長する請求項7記載の特性データ伸長装置と、 The characteristic data expansion device according to claim 7, wherein the gamma correction table that is compressed in the characteristic data area is expanded.
を備えることを特徴とする画像処理装置。 An image processing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007261568A JP5202919B2 (en) | 2007-10-05 | 2007-10-05 | Characteristic data compression apparatus, characteristic data compression method, characteristic data compression program, characteristic data expansion apparatus, characteristic data expansion method, characteristic data expansion program, information processing apparatus, and image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007261568A JP5202919B2 (en) | 2007-10-05 | 2007-10-05 | Characteristic data compression apparatus, characteristic data compression method, characteristic data compression program, characteristic data expansion apparatus, characteristic data expansion method, characteristic data expansion program, information processing apparatus, and image processing apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009094664A JP2009094664A (en) | 2009-04-30 |
JP5202919B2 true JP5202919B2 (en) | 2013-06-05 |
Family
ID=40666209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007261568A Expired - Fee Related JP5202919B2 (en) | 2007-10-05 | 2007-10-05 | Characteristic data compression apparatus, characteristic data compression method, characteristic data compression program, characteristic data expansion apparatus, characteristic data expansion method, characteristic data expansion program, information processing apparatus, and image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5202919B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04252569A (en) * | 1991-01-28 | 1992-09-08 | Nec Corp | Picture data compression system |
JPH0564000A (en) * | 1991-08-29 | 1993-03-12 | Hitachi Ltd | Method for compressing and expanding image data |
US7023582B2 (en) * | 2001-08-21 | 2006-04-04 | Kabushiki Kaisha Toshiba | Image processing apparatus |
JP4474153B2 (en) * | 2003-12-04 | 2010-06-02 | 奇美電子股▲ふん▼有限公司 | Data compression apparatus, compressed data decoding apparatus, data compression method, data compression program, and image display system |
-
2007
- 2007-10-05 JP JP2007261568A patent/JP5202919B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009094664A (en) | 2009-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100894002B1 (en) | Device and data method for selective compression and decompression and data format for compressed data | |
KR100224815B1 (en) | Data compression and expansion method | |
JP2008178109A (en) | Method and device for effectively compressing and restoring edge region | |
JP2010074676A (en) | Image compression apparatus and image decompression apparatus | |
CN112118449A (en) | Method and device for compressing and decompressing image | |
JP5202919B2 (en) | Characteristic data compression apparatus, characteristic data compression method, characteristic data compression program, characteristic data expansion apparatus, characteristic data expansion method, characteristic data expansion program, information processing apparatus, and image processing apparatus | |
EP2648408A1 (en) | Image processing device and image processing method | |
JP5523144B2 (en) | Information processing apparatus, control method thereof, program, and storage medium | |
JP6645013B2 (en) | Encoding program, encoding method, encoding device, and decompression method | |
EP0711069A1 (en) | Image processing method and apparatus | |
KR101810863B1 (en) | Method and apparatus for deflate encoding based on accumulated symbol frequency | |
JP5070086B2 (en) | Data compression apparatus and image reading apparatus | |
JP3676078B2 (en) | Run-length encoding method and compression apparatus | |
JP4840462B2 (en) | Image processing apparatus, image processing method, and image processing program | |
US20030085823A1 (en) | Methods for compressing and decompressing data | |
JP3792600B2 (en) | Color image compression apparatus and method | |
JP4462360B2 (en) | Image compression apparatus and image expansion apparatus | |
US8044831B2 (en) | Decoding apparatus and control method thereof | |
US6501395B1 (en) | System, method and computer readable medium for compressing a data sequence | |
JP4352785B2 (en) | Program compression method, program decompression method, and compression program | |
CN114172521A (en) | Decompression chip verification method, device and equipment and readable storage medium | |
JP2006060490A (en) | Image compressor and image compression program | |
JP2011229096A (en) | Image compression apparatus, image compression method, and image compression program | |
JP2008124632A (en) | Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, image encoding program, image decoding program, recording medium recording image encoding program, and recording medium recording image decoding program | |
JP2023170314A (en) | Data processing method and data processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100927 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120119 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120221 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120319 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20121204 |
|
R155 | Notification before disposition of declining of application |
Free format text: JAPANESE INTERMEDIATE CODE: R155 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130213 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5202919 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160222 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |