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 PDF

Info

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
Application number
JP2007261568A
Other languages
Japanese (ja)
Other versions
JP2009094664A (en
Inventor
昌 松尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2007261568A priority Critical patent/JP5202919B2/en
Publication of JP2009094664A publication Critical patent/JP2009094664A/en
Application granted granted Critical
Publication of JP5202919B2 publication Critical patent/JP5202919B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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に記載のものがある。
特許第3784577号公報 特開2006−217503号公報
In addition, as a technique related to data compression, there is one described in Patent Document 2.
Japanese Patent No. 3784777 JP 2006-217503 A

しかしながら、圧縮後に特性データを固定長の領域に格納する場合、従来の圧縮方法では、圧縮率がデータ内容によって変化するため、更新前の圧縮済特性データが固定長の領域に格納可能であっても、更新後の圧縮済特性データが固定長の領域に格納できない可能性がある。従来の圧縮方法では、圧縮前の特性データのデータ長が一定であっても圧縮後の特性データのデータ長の最大値が既知ではない。このため、同一データ量の特性データの内容のみを更新しても圧縮後の特性データが格納可能なように、元の特性データのデータサイズより短く上述の固定長を決めることが困難である。   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.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of a characteristic data compression apparatus according to Embodiment 1 of the present invention. In FIG. 1, an arithmetic processing unit 1 includes a computer (not shown), executes a characteristic data compression program stored in a recording medium (not shown), a difference calculation unit 11, a difference classification unit 12, and a difference data arrangement unit 13. It is a device that realizes.

演算処理装置1は、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮する。特に、実施の形態1では、画像処理に使用されるガンマ補正テーブルを圧縮する。ガンマ補正テーブルは、入力値(第1の数値)と出力値(第2の数値)との対データを複数有する特性データである。例えば、256階調(8ビット)の画像データをガンマ補正するためのガンマ補正テーブルの入力値および出力値の範囲は0〜255である。   The arithmetic processing unit 1 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. In particular, in the first embodiment, a gamma correction table used for image processing is compressed. The gamma correction table is characteristic data having a plurality of pairs of input values (first numerical values) and output values (second numerical values). For example, the range of input values and output values of the gamma correction table for gamma correcting 256 gradation (8 bits) image data is 0-255.

差分計算部11は、第1の数値について隣接する2つの対データにおける2つの第2の数値から差分値を計算する差分計算手段として機能する処理部である。特性データの第2の数値がNビットのデータである場合、計算された差分値は、Nビットの未圧縮差分データ22として一時的にデータ格納装置2に格納される。第1の数値の昇順または降順に差分値が計算され、その計算順で差分値が未圧縮差分データ22として格納される。実施の形態1では、ガンマ補正テーブルにおける、入力値について隣接する2つの対データの出力値の差分値が計算される。例えば、入力値が0であるときの出力値が0であり、入力値が1であるときの出力が7である場合、差分値は7となる。ガンマ補正テーブルのように単調増加の特性の場合には、すべての差分値はゼロまたは正数となる。そして、入力値の昇順または降順に差分値が計算され、その計算順に配列されて差分値が未圧縮差分データ22として格納される。   The difference calculation unit 11 is a processing unit that functions as a difference calculation unit that calculates a difference value from two second numerical values in two pairs of data adjacent to each other with respect to the first numerical value. When the second numerical value of the characteristic data is N-bit data, the calculated difference value is temporarily stored in the data storage device 2 as N-bit uncompressed difference data 22. Difference values are calculated in ascending or descending order of the first numerical value, and the difference values are stored as uncompressed difference data 22 in the calculation order. In the first embodiment, the difference value between the output values of two adjacent pairs of data for the input value in the gamma correction table is calculated. For example, when the output value is 0 when the input value is 0 and the output is 7 when the input value is 1, the difference value is 7. In the case of a monotonically increasing characteristic such as a gamma correction table, all difference values are zero or positive. Then, the difference values are calculated in ascending or descending order of the input values, arranged in the calculation order, and the difference values are stored as uncompressed difference data 22.

差分分類部12は、差分計算部11により計算された差分値を、第1のビット長で表現可能な差分値と、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値とに分類する差分分類手段として機能する処理部である。差分分類部12は、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値が何番目の差分値であるか(つまり出現位置)を差分属性データ23としてデータ格納装置2に格納する。実施の形態1では、差分値が、4ビットで表現可能な差分値と、4ビットで表現可能ではなくかつ8ビットで表現可能な差分値とに分類される。つまり、15以下の差分値と16以上の差分値とに分類される。したがって、実施の形態1では、16以上の差分値が何番目の差分値であるかが差分属性データ23として格納される。   The difference classifying unit 12 can express the difference value calculated by the difference calculating unit 11 with a difference value that can be expressed by the first bit length and a second bit length that is not expressible by the first bit length. It is a processing unit that functions as a difference classifying means for classifying the difference values. The difference classification unit 12 stores, as difference attribute data 23, the difference value data 23 that indicates the difference value that is not expressible with the first bit length and that can be expressed with the second bit length (that is, the appearance position). Store in device 2. In the first embodiment, the difference value is classified into a difference value that can be expressed by 4 bits and a difference value that cannot be expressed by 4 bits and can be expressed by 8 bits. That is, it is classified into a difference value of 15 or less and a difference value of 16 or more. Therefore, in the first embodiment, what is the difference value of 16 or more difference values is stored as the difference attribute data 23.

差分データ配列部13は、差分属性データ23に基づき、第1のビット長で表現可能な差分値を含む未圧縮差分データ22と第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値を含む未圧縮差分データ22とを特定し、第1のビット長で表現可能な差分値を第1のビット長の差分データとして連続させて圧縮済特性データ24内の特性データ領域に格納し、それに続けて、第2のビット長で表現可能な差分値を第2のビット長の差分データとして連続させて圧縮済特性データ24内の特性データ領域に格納する差分データ配列手段として機能する処理部である。この実施の形態1では、15以下の差分値は、4ビットの差分データとして特性データ領域に格納され、16以上の差分値を、8ビットの差分データとして特性データ領域に格納される。   The difference data array unit 13 is based on the difference attribute data 23 and is not expressible with the first bit length and the uncompressed difference data 22 including the difference value that can be expressed with the first bit length, and with the second bit length. The characteristic data in the compressed characteristic data 24 is specified by specifying the uncompressed differential data 22 including the differential value that can be expressed, and the differential value that can be expressed by the first bit length is made continuous as the differential data of the first bit length. Difference data arrangement means for storing in the area and subsequently storing the difference value that can be expressed by the second bit length as the difference data of the second bit length in the characteristic data area in the compressed characteristic data 24 It is a processing unit that functions as: In the first embodiment, a difference value of 15 or less is stored in the characteristic data area as 4-bit difference data, and a difference value of 16 or more is stored in the characteristic data area as 8-bit difference data.

さらに、差分データ配列部13は、差分属性データ23から第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値の出現位置を取得し、その出現位置を位置データとして圧縮済特性データ24内の固定長の位置データ領域に格納する。実施の形態1では、差分データ配列部13は、差分属性データ23から16以上の差分値の出現位置をすべて取得し、その出現位置を位置データとして圧縮済特性データ24内の15バイトの位置データ領域に格納する。ここで、256階調のガンマ補正テーブルの場合、差分値の数は255個であるため、1つの位置データは、0〜254番目のいずれかといった出現位置を表現可能な8ビットのデータとされる。このため、15バイトの位置データ領域には、最大15個の位置データが格納される。   Further, the difference data array unit 13 acquires the appearance position of the difference value that cannot be expressed with the first bit length and that can be expressed with the second bit length from the difference attribute data 23, and uses the appearance position as position data. Stored in a fixed-length position data area in the compressed characteristic data 24. In the first embodiment, the difference data array unit 13 acquires all the appearance positions of 16 or more difference values from the difference attribute data 23, and uses the appearance positions as position data for 15 bytes of position data in the compressed characteristic data 24. Store in the area. Here, in the case of the 256 gradation gamma correction table, since the number of difference values is 255, one position data is 8-bit data that can represent the appearance position such as any one of the 0th to 254th. The Therefore, a maximum of 15 pieces of position data are stored in the 15-byte position data area.

さらに、差分データ配列部13は、差分属性データ23を参照して第2のビット長の差分データの個数を取得し、個数データとして圧縮済特性データ24内の個数データ領域に格納する。実施の形態1では、差分データ配列部13は、第2のビット長の差分データの個数を1バイトの個数データとして圧縮済特性データ24内の1バイトの個数データ領域に格納する。   Further, the difference data array unit 13 refers to the difference attribute data 23, acquires the number of difference data having the second bit length, and stores it as number data in the number data area in the compressed characteristic data 24. In the first embodiment, the difference data array unit 13 stores the number of second bit length difference data in the 1-byte number data area in the compressed characteristic data 24 as 1-byte number data.

また、データ格納装置2は、圧縮処理の対象となる特性データ21、処理途中で生成される未圧縮差分データ22および差分属性データ23、並びに、処理結果となる圧縮済特性データ24を格納する装置である。データ格納装置2としては、ハードディスクドライブ、RAMなどが適宜使用される。   Further, the data storage device 2 stores characteristic data 21 to be subjected to compression processing, uncompressed differential data 22 and differential attribute data 23 generated during the processing, and compressed characteristic data 24 that is a processing result. It is. As the data storage device 2, a hard disk drive, RAM, or the like is used as appropriate.

特性データ21は、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有するデータである。この実施の形態1では、特性データ21は、ガンマ補正テーブルとされる。ガンマ補正テーブルは、入力値と出力値との対データを、入力値の個数分、つまり、入力値の範囲分だけ有する。例えば、入力値の範囲が0〜255である場合には、ガンマ補正テーブルは、256個の対データを有する。また、この場合、出力値の範囲は0〜255に限定されるため、出力値の取り得る最小値は0、出力値の取り得る最大値は255と既知である。   The characteristic data 21 is 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. In the first embodiment, the characteristic data 21 is a gamma correction table. The gamma correction table has as many pairs of input values and output values as the number of input values, that is, the range of input values. For example, when the input value range is 0 to 255, the gamma correction table has 256 pairs of data. In this case, since the range of the output value is limited to 0 to 255, it is known that the minimum value that the output value can take is 0 and the maximum value that the output value can take is 255.

未圧縮差分データ22は、差分計算部11により計算された差分値を含む第2のビット長のデータである。この実施の形態1では、1つの未圧縮差分データ22は8ビットのデータである。例えば、256階調のガンマ補正テーブルについて差分値が計算された場合、255個の未圧縮差分データ22が発生する。   The uncompressed difference data 22 is data having a second bit length including the difference value calculated by the difference calculation unit 11. In the first embodiment, one uncompressed differential data 22 is 8-bit data. For example, when a difference value is calculated for a 256-gradation gamma correction table, 255 uncompressed difference data 22 are generated.

差分属性データ23は、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値が何番目の差分値であるか(つまり出現位置)を含むデータである。差分属性データ23は、1つの出現位置を示す1つの位置データを、第1のビット長で表現可能ではなくかつ第2のビット長で表現可能な差分値の個数と同数だけ有する。1つの位置データは、第2のビット長のデータである。この実施の形態1では、1つの位置データは、8ビットのデータである。   The difference attribute data 23 is data including what number difference value (that is, the appearance position) the difference value that cannot be expressed by the first bit length and can be expressed by the second bit length is. The difference attribute data 23 has one piece of position data indicating one appearance position as many as the number of difference values that cannot be expressed by the first bit length and can be expressed by the second bit length. One piece of position data is data having a second bit length. In the first embodiment, one piece of position data is 8-bit data.

圧縮済特性データ24は、固定長の特性データ領域に圧縮後の特性データを、固定長の位置データ領域に位置データを、固定長の個数データ領域に個数データを有するデータである。   The compressed characteristic data 24 is data having compressed characteristic data in a fixed-length characteristic data area, position data in a fixed-length position data area, and number data in a fixed-length number data area.

図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 characteristic data 24 in the first embodiment. In the first embodiment, a gamma correction table having 256 gradations (that is, 8 bits) is compressed. Here, since the first bit length is 4 bits, the second bit length is 8 bits, the minimum value of the output value is 0, and the maximum value of the output value is 255, the characteristic data area 24a The length is a fixed length of 135 bytes, and the length of the position data area 24b is a fixed length of 15 bytes. The number data area 24c is 1 byte.

出力値の最大値が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 position data area 24b is 15 bytes. When the number of difference values of 16 or more is 15, the area length for storing 8-bit difference data including the difference values of 16 or more is 15 bytes (= 15 × 8 bits), and the difference value of 15 or less The area length for storing the 4-bit difference data including is 120 bytes (= (255-15) × 4 bits). For this reason, it is sufficient that the length of the characteristic data area 24a is 135 bytes (= 15 + 120 bytes). Further, since the maximum number of 8-bit difference data is 15, one byte is sufficient for the number data area 24c. As described above, in the first embodiment, the compressed characteristic data 24 is data having a fixed length of 151 bytes (135 + 15 + 1 bytes). When storing a 256-gamma gamma correction table without compression, a 256-byte storage area is required. If the gamma correction table is stored with this compressed data structure, it is fixed at about 41% less than the non-compressed table. A long storage area is sufficient.

次に、上記装置の動作について説明する。図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 difference calculation unit 11 sequentially calculates the difference value from the second numerical value in the two adjacent pairs of data for the first numerical value in the series of paired data (step S1). Since the paired data having the characteristic input value and the output value are arranged in ascending order of the input value, a difference value between the output values of the two consecutive pairs of data is calculated. These difference values are temporarily stored in the data storage device 2 as uncompressed difference data 22.

図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 difference classifying unit 12 uses a difference value that can be expressed in the first bit length as a difference value in the uncompressed difference data 22 and a second bit length that cannot be expressed in the first bit length. Differences that are classified into expressible difference values and that are not expressible with the first bit length and that can be expressed with the second bit length among the uncompressed differential data 22 arranged in ascending or descending order of the input values The appearance position of the value is stored in the data storage device 2 as the difference attribute data 23 (step S2). In the first embodiment, the difference classifying unit 12 sequentially refers to the uncompressed difference data 22 arranged in ascending or descending order of input values, and what is the difference value of 16 or more difference values? Is stored as difference attribute data 23. That is, the element number in the array for the difference value having a value of 16 or more out of a series of difference value arrays calculated along the ascending or descending order of the input values is stored as the difference attribute data 23.

次に、差分データ配列部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 difference attribute data 23, the difference data array unit 13 is not expressible with the first bit length and the uncompressed difference data 22 including the difference value that can be expressed with the first bit length, and the second data The uncompressed differential data 22 including the differential value that can be expressed by the bit length is specified. Then, the differential data array unit 13 expands the differential values that can be expressed by the first bit length as differential data of the first bit length, and stores them continuously in the characteristic data area 24a in the compressed characteristic data 24. (Step S3), the differential value that can be expressed by the second bit length is developed as the differential data of the second bit length, and stored in the characteristic data area 24a in the compressed characteristic data 24 (step S4). ). FIG. 5 is a diagram for explaining the bit length of the difference data in the first embodiment. In the first embodiment, a difference value of 15 or less is stored in the characteristic data area 24a as 4-bit difference data as shown in FIG. 5A, and a difference value of 16 or more is shown in FIG. 5B. Thus, it is stored in the characteristic data area 24a as 8-bit difference data. Further, as shown in FIG. 5C, in units of 8 bits, two 4-bit difference data are stored in succession, followed by 4-bit difference data followed by 8-bit difference data. Stored. For this reason, when there are an odd number of 4-bit difference data, 4-bit padding data (insignificant data with all bit values set to 1 or the like) is added after the last 4-bit difference data. .

実施の形態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 data array unit 13 acquires the appearance position of the difference value that is not expressible with the first bit length and that can be expressed with the second bit length from the difference attribute data 23, and sets the appearance position to the second The data is expanded into bit length position data and stored in the fixed length position data area 24b in the compressed characteristic data 24 (step S5). Position data corresponding to each difference data of the second bit length is stored in the position data area 24b in the same order as the arrangement order of the difference data of the second bit length in the characteristic data area 24a. Thereby, the difference data of the second bit length and the position data are associated with each other. In the first embodiment, the difference data array unit 13 acquires all the appearance positions of 16 or more difference values from the difference attribute data 23, and stores the appearance positions in the position data area 24b as position data.

さらに、差分データ配列部13は、差分属性データ23を参照して第2のビット長の差分データの個数を取得し、第2のビット長の個数データに展開し、圧縮済特性データ24内の個数データ領域24cに格納する(ステップS6)。実施の形態1では、差分データ配列部13は、8ビット差分データの個数を1バイトの個数データとして個数データ領域24cに格納する。   Further, the difference data array unit 13 refers to the difference attribute data 23, acquires the number of second bit length difference data, expands the second bit length number data, and stores the second bit length difference data in the compressed characteristic data 24. The number is stored in the number data area 24c (step S6). In the first embodiment, the difference data array unit 13 stores the number of 8-bit difference data in the number data area 24c as 1-byte number data.

図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 characteristic data 24 in the first embodiment. In the compressed characteristic data 24 shown in FIG. 6, in the 135-byte characteristic data area 24a, 253 pieces of 4-bit difference data and 4-bit padding data are first stored, and subsequently, two pieces of 8-bit difference data are stored. Stored. The remaining part of the characteristic data area 24a is filled with padding data. In the 15-byte position data area 24b following the characteristic data area 24a, two position data indicating the appearance positions of two 8-bit difference data are stored. The remaining portion of the position data area 24b is filled with padding data. In the 1-byte number data area 24c subsequent to the position data area 24b, number data indicating the number of 8-bit difference data (two in this case) is stored. Thus, according to this compressed data structure, the 256-gamma gamma correction table is always the compressed characteristic data 24 having a fixed length regardless of the contents of the characteristics.

以上のように、上記実施の形態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 characteristic data 24 is the difference calculated from the two second numerical values in the two adjacent pair data for the first numerical value of the pair data. A fixed-length characteristic data area 24a for storing a plurality of differential data having values is provided. In this data structure, the difference value determined to be expressible by the first bit length is stored in the characteristic data area 24a as the differential data having the first bit length, and is not expressible by the first bit length. The difference value determined to be expressible with the second bit length is stored in the characteristic data area 24a as the difference data with the second bit length. 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. . Also, since the amount of information is not lost during compression, it can be compressed and decompressed reversibly.

また、上記実施の形態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 characteristic data area 24a is the second number of bits, the difference data of one second bit length is arranged by arranging N pieces of difference data of the first bit length without any gaps. Therefore, the difference data of the first number of bits can be efficiently arranged in the characteristic data area 24a.

また、上記実施の形態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 position data area 24b. The characteristic data area 24a stores the difference data of the first bit length continuously and stores the difference data of the second bit length continuously. As a result, when data is expanded, the difference data can be rearranged by specifying the difference data of the second bit length difference data according to the appearance position. Can be separated from the difference data of the second bit length. For this reason, 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によれば、個数データ領域24cに個数データが格納される。これにより、第2のビット長の差分データの個数を特定することができるため、固定長の位置データ領域24bからその個数分の位置データだけを抽出することで、すべての第2のビット長の差分データの出現位置を確実に特定することができる。   Further, according to the first embodiment, the number data is stored in the number data area 24c. As a result, the number of differential data having the second bit length can be specified. Therefore, by extracting only the number of position data from the fixed-length position data area 24b, all the second bit lengths can be specified. It is possible to reliably specify the appearance position of the difference data.

また、上記実施の形態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.
Embodiment 2. FIG.
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 Embodiment 2 of the present invention. In FIG. 7, an arithmetic processing unit 51 is a device that incorporates a computer (not shown) and executes a characteristic data decompression program stored in a recording medium (not shown) to realize a data extraction unit 61 and a data conversion unit 62. .

データ抽出部61は、実施の形態1に係る特性データ圧縮装置により生成された圧縮済特性データにおける、第1のビット長の差分データから第1ビット長で表現可能な差分値を抽出し、第2のビット長の差分データから第2ビット長で表現可能な差分値を抽出する差分値抽出手段として機能する処理部である。実施の形態2では、データ抽出部61は、圧縮済特性データにおける、4ビット差分データから4ビット表現可能な差分値を抽出し、8ビット差分データから8ビット長で表現可能な差分値を抽出する。   The data extraction unit 61 extracts a difference value that can be expressed by the first bit length from the difference data of the first bit length in the compressed characteristic data generated by the characteristic data compression device according to the first embodiment, 2 is a processing unit that functions as a difference value extraction unit that extracts a difference value that can be expressed by a second bit length from difference data having a bit length of 2. In the second embodiment, the data extraction unit 61 extracts a difference value that can be expressed in 4 bits from the 4-bit difference data in the compressed characteristic data, and extracts a difference value that can be expressed in an 8-bit length from the 8-bit difference data. To do.

データ変換部62は、抽出された差分値から特性データを復元する特性データ復元手段として機能する処理部である。   The data conversion unit 62 is a processing unit that functions as a characteristic data restoration unit that restores characteristic data from the extracted difference value.

また、データ格納装置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 data storage device 52 also stores compressed characteristic data 71 to be decompressed, uncompressed differential data 72 generated in the middle of processing, and original characteristic data as a processing result, stored in a fixed-length storage area. 73 is a device for storing 73. The compressed characteristic data 71 is the same as the compressed characteristic data 24 in the first embodiment. The characteristic data 73 is the same as the characteristic data 21 in the first embodiment. As the data storage device 52, a rewritable nonvolatile recording medium (hard disk drive, NVRAM: Non-Volatile RAM, etc.), RAM, or the like is used as appropriate. In the second embodiment, the compressed characteristic data 71 is stored in advance in a fixed-length storage area in the NVRAM 81 that is a rewritable nonvolatile memory, and the uncompressed differential data 72 is stored in the RAM 82. The characteristic data 73 is stored in the RAM 82. Furthermore, in the second embodiment, the gamma correction table is expanded as the characteristic data 73, stored in the RAM 82, and used for image processing by an image processing unit (not shown).

次に、上記装置の動作について説明する。図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 data extraction unit 61 reads the number data from the compressed characteristic data 71 and specifies the number of difference data having the second bit length (step S11). In Embodiment 2, the data extraction unit 61 specifies the number of 8-bit difference data. As shown in FIG. 2, since the position of the number data area 24c is known, the data extracting unit 61 may read the number data from the position.

次に、データ抽出部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 data extraction unit 61 identifies the number of first bit length difference data from the number of second bit length difference data, and uses the first bit length difference data as characteristic data. Read from the area 24a (step S12). The first bit length difference data is converted into second bit length difference data, and stored as uncompressed difference data 72 in the same order as stored in the characteristic data area 24a. Here, only the bit length is converted, and the data value does not change. In the second embodiment, the data extraction unit 61 subtracts the number of 8-bit difference data from the total difference data number to identify the number of 4-bit difference data, and the number of 4-bit difference data is stored in the characteristic data area 24a. Read from the beginning. At this time, the two 4-bit difference data may be read as 8-bit data, and the two difference values may be specified from the upper 4 bits and the lower 4 bits. However, if the number of 4-bit difference data is an odd number, the last padding data portion is discarded.

さらに、データ抽出部61は、特定した個数だけ、第2のビット長の差分データを特性データ領域24aから読み出す(ステップS13)。第2のビット長の差分データは、そのまま未圧縮差分データ72として格納される。このとき、データ抽出部61は、第2のビット長の差分データに対応する位置データを、圧縮済特性データ71の位置データ領域24bから読み出し、未圧縮特性データ72の配列の、その位置データの示す出現位置に、その第2のビット長の差分データを挿入する。これにより、圧縮前の差分データが復元される。つまり、第1の値の昇順または降順に沿った順番で配列された差分データが得られる。   Further, the data extraction unit 61 reads the difference data having the second bit length from the characteristic data area 24a by the specified number (step S13). The difference data having the second bit length is stored as uncompressed difference data 72 as it is. At this time, the data extraction unit 61 reads the position data corresponding to the difference data of the second bit length from the position data area 24b of the compressed characteristic data 71, and the position data of the position data of the array of the uncompressed characteristic data 72 is read. The difference data having the second bit length is inserted at the indicated appearance position. Thereby, the differential data before compression is restored. That is, difference data arranged in the order along the ascending or descending order of the first values is obtained.

そして、データ変換部62は、未圧縮特性データ72から特性データ73を復元する(ステップS14)。復元された特性データ73は、RAM82に格納される。実施の形態2のガンマ補正テーブルの場合では、入力値が0であるときの出力値が0であるため、入力値が1であるときの出力値は、1番目の差分データの値とされる。次に、入力値が2であるときの出力値は、1番目の差分データの値に2番目の差分データの値を加算した値となる。このようにして順次、各入力値での出力値が計算される。なお、このように、最小の入力値に対する出力値が既知ではない特性データの場合には、最小の入力値に対する出力値を格納する領域を圧縮済特性データ71に設け、圧縮時にその出力値をその領域に格納しておき、伸長時にその出力値を参照して、最小の入力値に対する出力値を決定すればよい。   Then, the data conversion unit 62 restores the characteristic data 73 from the uncompressed characteristic data 72 (step S14). The restored characteristic data 73 is stored in the RAM 82. In the case of the gamma correction table of the second embodiment, since the output value when the input value is 0 is 0, the output value when the input value is 1 is the value of the first difference data. . Next, the output value when the input value is 2 is a value obtained by adding the value of the second difference data to the value of the first difference data. In this way, the output value at each input value is calculated sequentially. In this way, in the case of characteristic data whose output value for the minimum input value is not known, an area for storing the output value for the minimum input value is provided in the compressed characteristic data 71, and the output value is stored at the time of compression. The output value for the minimum input value may be determined by storing in that area and referring to the output value at the time of decompression.

以上のように、上記実施の形態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 characteristic data 71 has a fixed-length data format, it is not necessary to change the length of the storage area when the compressed characteristic data 71 is updated. For example, when the output value of the gamma correction table, that is, the characteristic is changed, it can be surely updated to a new gamma correction table.

なお、上述の各実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。   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 characteristic data 21 and 73 as an example. However, the gamma correction table of other even bits (2M bits) is used as the characteristic data 21 and 73. Of course. In that case, the second bit length is 2M, and the first bit length is M. The characteristic data is not limited to the gamma correction table, and may be, for example, a measurement value correction table or a calibration table.

また、上記実施の形態1では、差分値を未圧縮差分データ22として一旦格納してから、差分値を第1のビット長で表現可能か否かを判定しているが、その代わりに、差分値を未圧縮差分データ22として格納する前に、差分値を第1のビット長で表現可能か否かを判定するようにしてもよい。   In the first embodiment, the difference value is temporarily stored as the uncompressed difference data 22, and then it is determined whether or not the difference value can be expressed by the first bit length. Before storing the value as uncompressed difference data 22, it may be determined whether or not the difference value can be expressed by the first bit length.

本発明は、例えば、画像処理装置のガンマ補正テーブルに適用可能である。   The present invention is applicable to, for example, a gamma correction table of an image processing apparatus.

本発明の実施の形態1に係る特性データ圧縮装置の構成を示すブロック図である。It is a block diagram which shows the structure of the characteristic data compression apparatus which concerns on Embodiment 1 of this invention. 実施の形態1における圧縮済特性データのデータフォーマットの一例を示す図である。6 is a diagram illustrating an example of a data format of compressed characteristic data according to Embodiment 1. FIG. 実施の形態1に係る特性データ圧縮装置の動作を説明するフローチャートである。4 is a flowchart for explaining the operation of the characteristic data compression apparatus according to the first embodiment. 実施の形態1におけるガンマ補正テーブルによるガンマ補正特性の一例を示す図である。6 is a diagram illustrating an example of gamma correction characteristics based on a gamma correction table according to Embodiment 1. FIG. 実施の形態1における差分データのビット長を説明する図である。6 is a diagram for explaining a bit length of difference data in Embodiment 1. FIG. 実施の形態1における圧縮済特性データの具体例を示す図である。6 is a diagram illustrating a specific example of compressed characteristic data according to Embodiment 1. FIG. 本発明の実施の形態2に係る特性データ伸長装置の構成を示すブロック図である。It is a block diagram which shows the structure of the characteristic data expansion | extension apparatus which concerns on Embodiment 2 of this invention. 実施の形態2に係る特性データ伸長装置の動作を説明するフローチャートである。10 is a flowchart for explaining the operation of the characteristic data decompression apparatus according to the second embodiment.

符号の説明Explanation of symbols

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 Characteristic data area 24b Position data area 24c Number data area 52 Data storage device (data storage means)
61 Data extraction unit (difference value extraction means)
62 Data converter (characteristic data restoration means)

Claims (12)

第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮して圧縮済特性データを生成する特性データ圧縮装置において、  In a characteristic data compression apparatus 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 to generate compressed characteristic data,
前記第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のビット長の差分データの個数を示す個数データを前記圧縮済特性データの個数データ領域を備えることを特徴とする請求項1記載の特性データ圧縮装置。  The compressed characteristic data includes a number data area of the compressed characteristic data including number data indicating the number of difference data having the first bit length or the number of difference data having the second bit length. The characteristic data compression apparatus according to claim 1. 前記第2のビット長は、前記第1のビット長の整数倍であることを特徴とする請求項1または2に記載の特性データ圧縮装置。  The characteristic data compression apparatus according to claim 1, wherein the second bit length is an integral multiple of the first bit length. 前記第2のビット数は、すべての前記第2の数値のいずれも表現可能なビット数であることを特徴とする請求項1から3のいずれか1項に記載の特性データ圧縮装置。  4. The characteristic data compression apparatus according to claim 1, wherein the second number of bits is a number of bits that can represent all of the second numerical values. 5. 第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮して圧縮済特性データを生成する特性データ圧縮方法において、  In 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 to generate compressed characteristic data,
前記第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.
コンピュータで、第1の数値と最小値および最大値が既知である第2の数値との対データを複数有する特性データを圧縮して圧縮済特性データを生成するための特性データ圧縮プログラムであって、  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 to generate compressed characteristic data in a computer ,
前記コンピュータを、  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
請求項1から請求項4のうちのいずれか1項に記載の特性データ圧縮装置で生成された圧縮済特性データの特性データ領域における、第1のビット長の差分データから前記第1ビット長で表現可能な差分値を抽出し、第2のビット長の差分データから前記第2ビット長で表現可能な差分値を抽出する差分値抽出手段と、  5. From the first bit length difference data to the first bit length in the characteristic data area of the compressed characteristic data generated by the characteristic data compression device according to claim 1. A differential value extracting means for extracting a differential value that can be expressed and extracting a differential value that can be expressed by the second bit length from the differential data of a second bit length;
抽出された前記差分値から前記特性データを復元する特性データ復元手段と、  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.
前記差分データ抽出手段は、前記圧縮済特性データの個数データ領域から個数データを読み出して前記第2のビット長の差分データの個数を特定し、その個数の第2のビット長の差分データを前記特性データ領域から読み出し、第2のビット長の差分データの個数から第1の差分データの個数を特定し、その個数の第1のビット長の差分データを前記特性データ領域から読み出すことを特徴とする請求項7記載の特定データ伸長装置。  The difference data extraction means reads the number data from the number data area of the compressed characteristic data, identifies the number of the difference data having the second bit length, and determines the number of second bit length difference data as the difference data. It reads from the characteristic data area, specifies the number of first difference data from the number of difference data of the second bit length, and reads the number of difference data of the first bit length from the characteristic data area. The specific data decompression device according to claim 7. 請求項5に記載の特性データ圧縮方法により生成された圧縮済特性データの特性データ領域における、第1のビット長の前記差分データから前記第1ビット長で表現可能な差分値を抽出し、第2のビット長の前記差分データから前記第2ビット長で表現可能な差分値を抽出するステップと、  A differential value that can be expressed by the first bit length is extracted 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 method according to claim 5; Extracting a difference value that can be expressed by the second bit length from the difference data having a bit length of 2;
抽出した前記差分値から前記特性データを復元するステップと、  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.
コンピュータを、  Computer
請求項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.
請求項1から請求項4のうちのいずれか1項に記載の特性データ圧縮装置で生成された圧縮済特性データの圧縮データ構造で特性データを特性データ領域に有するデータ格納手段と、  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 device according to any one of claims 1 to 4,
前記特性データ領域における圧縮されている前記特性データを伸長する請求項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:
請求項1から請求項4のうちのいずれか1項に記載の特性データ圧縮装置で生成された圧縮済特性データの圧縮データ構造で特性データとしてのガンマ補正テーブルを特性データ領域に有するデータ格納手段と、  5. A data storage means having a gamma correction table as characteristic data in a characteristic data area in a compressed data structure of compressed characteristic data generated by the characteristic data compression apparatus according to claim 1. When,
前記特性データ領域における圧縮されている前記ガンマ補正テーブルを伸長する請求項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:
JP2007261568A 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 Expired - Fee Related JP5202919B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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