JPH0654290A - Data compressing and filing system - Google Patents

Data compressing and filing system

Info

Publication number
JPH0654290A
JPH0654290A JP4202104A JP20210492A JPH0654290A JP H0654290 A JPH0654290 A JP H0654290A JP 4202104 A JP4202104 A JP 4202104A JP 20210492 A JP20210492 A JP 20210492A JP H0654290 A JPH0654290 A JP H0654290A
Authority
JP
Japan
Prior art keywords
data
compression
code
image data
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4202104A
Other languages
Japanese (ja)
Other versions
JP2710897B2 (en
Inventor
Masafumi Akimoto
政文 秋本
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.)
Rhythm Watch Co Ltd
Original Assignee
Rhythm Watch Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rhythm Watch Co Ltd filed Critical Rhythm Watch Co Ltd
Priority to JP4202104A priority Critical patent/JP2710897B2/en
Publication of JPH0654290A publication Critical patent/JPH0654290A/en
Application granted granted Critical
Publication of JP2710897B2 publication Critical patent/JP2710897B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Storing Facsimile Image Data (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To record data in a prescribed file area as much as possible at the time of compressing data to record it in a recording medium. CONSTITUTION:A compression restoring program is preliminarily stored in a microcomputer, and a recognition code is imparted to the compression restoring program, and a file 10 which is provided with a recognition code recording part 13, a version number recording part 15, a compression mode code recording part 17, and a header end code recording part 19 of this program in a header part 11 and consists of the recognition code, the version number, the compression mode code, and compressed picture data is prepared and is recorded in the recording medium.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータで取り扱
う画像データをフレキシブルディスクやメモリカード等
の記録媒体に記録する方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for recording image data handled by a computer on a recording medium such as a flexible disk or a memory card.

【0002】[0002]

【従来の技術】今日、マイクロコンピュータやパーソナ
ルコンピュータ等の小型コンピュータでは、コンピュー
タ相互間のデータの移動にはフレキシブルディスクが多
用されており、又、メモリカード等の記録媒体も使用さ
れるようになってきた。これら、フレキシブルディスク
やメモリカード等の記録媒体にデータを記録させるに際
し、小型コンピュータで多用されているオペレーション
ソフトでは、図3に示す様にファイル10の中にヘッダ
部11を設け、ヘッダ部11の後ろのエリアに圧縮した
データを記憶させるものがある。
2. Description of the Related Art Today, in a small computer such as a microcomputer or a personal computer, a flexible disk is often used for moving data between computers, and a recording medium such as a memory card is also used. Came. When recording data on a recording medium such as a flexible disk or a memory card, operation software often used in small computers includes a header portion 11 in a file 10 as shown in FIG. Some store compressed data in the back area.

【0003】即ち、データを圧縮することにより、所定
のメモリエリアに極力多くのデータを記録させて他のマ
イクロコンピュータに移し、この圧縮データを圧縮プロ
グラムに対応した復元プログラムによって解凍し、復元
データを他のコンピュータで利用することが今日では普
及している。これらデータの圧縮や解凍において、画像
データの圧縮解凍では、例えば特定の系列符号化テーブ
ルやハフマン符号化テーブル等を用いて圧縮し、これら
の各テーブル及び画像サイズや階調数等、圧縮の手法に
関するデータをも画像データと共にファイルに記録し、
圧縮の手法に関するデータをヘッダ部に記録し、圧縮さ
れた画像データをヘッダ部の後ろに記録して画像データ
と共に各種変換テーブルをも記録したファイルを作成
し、解凍時にはこのヘッダ部に記録した情報に基づいて
画像データを復元することによりデータの解凍を行なっ
ていた。
That is, by compressing the data, as much data as possible is recorded in a predetermined memory area and transferred to another microcomputer, and the compressed data is decompressed by a decompression program corresponding to the compression program to restore the decompressed data. Utilization on other computers is widespread today. In the compression and decompression of these data, in the compression and decompression of the image data, for example, the compression is performed using a specific sequence coding table, a Huffman coding table, etc. Also record the data related to the image data in a file,
The data related to the compression method is recorded in the header part, the compressed image data is recorded after the header part to create a file that also records various conversion tables together with the image data, and the information recorded in this header part when decompressing. Data is decompressed by restoring the image data based on.

【0004】[0004]

【発明が解決しようとする課題】データの圧縮解凍に際
しては、圧縮時に用いたアルゴリズムや圧縮モード及び
種々の符号化テーブルに基づいて圧縮データからもとの
データに復元しなければならない為、前述のように、圧
縮プログラムに関する各種のテーブルやデータがヘッダ
部に記録され、このヘッダ部のデータ量が大きくなると
画像データを圧縮記録した場合でも1枚のフレキシブル
ディスク等の媒体に記録し得る画像データの量を大きく
できない場合が生じることがある。
When compressing and decompressing data, it is necessary to restore the original data from the compressed data based on the algorithm, compression mode and various encoding tables used at the time of compression. As described above, various tables and data relating to the compression program are recorded in the header part, and when the data amount of the header part becomes large, even if the image data is compressed and recorded, the image data which can be recorded in one medium such as a flexible disk is stored. In some cases, the amount cannot be increased.

【0005】即ち、多量のデータを一定の領域に記録さ
せる為にデータの圧縮を行なっても、圧縮の手法に関す
るデータもファイルに記録する為に画像データを記録す
る領域が減少し、結果として記録し得る画像データ量が
あまり増加しないという欠点が生じることがある。
That is, even if the data is compressed to record a large amount of data in a certain area, the area for recording the image data is reduced because the data related to the compression method is also recorded in the file. There is a drawback that the amount of possible image data does not increase so much.

【0006】[0006]

【課題を解決するための手段】本発明は、圧縮プログラ
ムに認識コードを付与し、圧縮モードに段階が有れば段
階を識別するモードコードを定め、前記認識コードと圧
縮モードコード、圧縮プログラムのバージョンナンバー
をファイルのヘッダ部に記憶させることとし、圧縮プロ
グラム及び復元プログラムは別途コンピュータに予め読
み込ませておくこととする。
SUMMARY OF THE INVENTION According to the present invention, a recognition code is added to a compression program, a mode code for identifying a stage if the compression mode has a stage is defined, and the recognition code, the compression mode code, and the compression program The version number is stored in the header part of the file, and the compression program and the decompression program are separately loaded in the computer beforehand.

【0007】[0007]

【作 用】本発明は、ヘッダ部に認識コード、バージョ
ンナンバー、モードコードを記録するものである故、ヘ
ッダ部は終了コードを含み、10バイト(16進数)程
度に納めることができ、ファイルにおける画像データの
記録領域を広く取ることができる。
[Operation] Since the present invention records the identification code, version number, and mode code in the header part, the header part can contain about 10 bytes (hexadecimal number) including the end code. A wide recording area for image data can be obtained.

【0008】[0008]

【実施例】本発明に係るファイリング方法の実施例は、
図2に示す様に、5インチ程度の液晶表示板21の周辺
に複数の操作スイッチ23を有するブック型にして、側
方又は裏面に設けたCCDカメラの視野を前記液晶表示
板21に16階調の単色画像として映し出し、操作スイ
ッチ23を操作することにより、この画像を停止させ、
又、ICカード挿入口25に挿入するICカード等のラ
ンダムアクセスメモリに記憶させ、更に、シリアル送信
により他のマイクロコンピュータやプリンタ等に画像デ
ータを送ることができる画像処理を主として取り扱うマ
イクロコンピュータに採用した画像データの記録方法で
ある。
EXAMPLES Examples of the filing method according to the present invention are as follows:
As shown in FIG. 2, a book type having a plurality of operation switches 23 around a liquid crystal display plate 21 of about 5 inches is provided, and the field of view of a CCD camera provided on the side or the back is displayed on the liquid crystal display plate 21 on the 16th floor. The image is displayed as a monotone image of tones, and this image is stopped by operating the operation switch 23,
Also, it is used in a microcomputer mainly handling image processing in which it is stored in a random access memory such as an IC card to be inserted into the IC card insertion slot 25, and further, image data can be sent to another microcomputer or printer by serial transmission. This is a method of recording the image data.

【0009】この記録方法は、画像データを圧縮解凍す
る圧縮処理プログラムと画像データとを別ファイルと
し、画像データとこの画像データを圧縮解凍する圧縮処
理プログラム及び処理に必要なデータを特定する為のコ
ードデータとを1つのファイルとしてランダムアクセス
メモリや他のインタフェースを介してフレキシブルディ
スク等の記録媒体に記録するものである。
In this recording method, the compression processing program for compressing and decompressing image data and the image data are stored in different files, and the image data and the compression processing program for compressing and decompressing the image data and the data necessary for the processing are specified. The code data is recorded as one file on a recording medium such as a flexible disk via a random access memory or another interface.

【0010】この画像データを処理する処理プログラム
の一例として、本実施例では、固定した16階調のハフ
マン符号化テーブルを用い、圧縮率を3段階とし、画質
が多少低下しても高圧縮率として多量のデータを記録さ
せるか、画質の低下を防止して圧縮率を低く押えるかを
選択可能とする圧縮プログラムを用いた。即ち、この圧
縮処理プログラムでは、画像サイズとしては液晶表示板
21の大きさに合わせて縦横各々のドット数を一定と
し、且つ、単色16階調の4ビット信号による画像デー
タを処理するものとし、画像データのサンプリング確率
により画像データの100%を符号化する場合、50%
を符号化する場合、25%を符号化する場合の3段階と
し、このサンプリングにより抜き出した画像データを最
初の予測値は固定した階調8とし、以後は前の画素のデ
ータの値を予測値としつつ予測値との格差を求めて予測
符号化を行ない、予測符号化した各画素のデータを系列
変換テーブルにより系列符号化し、更に、ハフマン符号
化テーブルによりハフマン符号化するものである。
As an example of a processing program for processing this image data, in the present embodiment, a fixed 16-gradation Huffman coding table is used, and the compression rate is set to 3 levels, so that the high compression rate is obtained even if the image quality is slightly deteriorated. As the above, a compression program that allows selection of recording a large amount of data or preventing compression of the image quality and keeping the compression rate low was used. That is, in this compression processing program, the number of dots in each of the vertical and horizontal directions is fixed according to the size of the liquid crystal display panel 21 as the image size, and the image data is processed by a 4-bit signal of monochromatic 16 gradations. If 100% of the image data is encoded by the sampling probability of the image data, 50%
, The image data extracted by this sampling has a fixed gradation of 8 for the first predictive value, and thereafter the value of the data of the previous pixel is the predictive value. While predicting the difference between the predicted value and the predicted value, the predictive coding is performed, the predictive coded data of each pixel is serially coded by the series conversion table, and further, the Huffman coding is performed by the Huffman coding table.

【0011】尚、圧縮プログラムは、符号化によりサン
プリングしたデータを40%程度のデータ量に圧縮する
ことができる。そして前記予測符号化に際しては、サン
プリングしたデータにより新たに形成する行(L)と順
番(N)が定められた画像データの行列に基づいて、1
行目の画像データにおける先頭の画素の予測値は階調中
心の8とし、1行目における2番目以降の画素のデータ
は前の画素のデータの値を予測値とする1次元の予測符
号化(L1NB−L1NB-1)を行ない、2行目以降は、最
初の画素のデータのみ前行の最初の画素のデータの値に
よる1次元符号化(LAN1−LA-1N1)としつつ前行に
おける同番目の画素のデータの値と同行における前の画
素のデータの値とを参照する2次元予測符号化(LANB
−(LA-1NB+LANB-1)÷2)を行なっており、又、
前記サンプリングに際して50%をデータ化する場合
は、例えば複数行では偶数番目の画素のデータをサンプ
リングし、奇数行では奇数番目の画素のデータをサンプ
リングし、25%をデータ化する場合は、例えば奇数行
の奇数番目の画素のデータをサンプリングすることとし
て画像の劣化を極力防止している。
The compression program can compress the data sampled by encoding to a data amount of about 40%. Then, in the predictive coding, based on the matrix of the image data in which the row (L) and the order (N) to be newly formed by the sampled data are set, 1
The prediction value of the first pixel in the image data of the row is 8 centered on the gradation, and the data of the second and subsequent pixels in the first row is a one-dimensional predictive encoding in which the value of the data of the previous pixel is the prediction value. (L1NB-L1NB-1) is performed, and in the second and subsequent rows, only the data of the first pixel is one-dimensionally encoded by the value of the data of the first pixel in the previous row (LAN1-LA-1N1), and the same in the previous row. The two-dimensional predictive coding (LANB) that refers to the data value of the th pixel and the data value of the previous pixel in the same row
-(LA-1NB + LANB-1) ÷ 2), and
When data of 50% is sampled at the time of sampling, data of even-numbered pixels is sampled in a plurality of rows, data of pixel of an odd-numbered pixel is sampled in odd-numbered rows, and data of 25% is sampled in an odd number, for example. Image deterioration is prevented as much as possible by sampling the data of the odd-numbered pixels in the row.

【0012】又、系列変換テーブルとしては、予測値と
の格差により順次0から15(10進数)の系列符号を
与え、系列符号化した画像データの0は1とし、1から
7は2から14の順次増加偶数とし、8は15に、9か
ら15は15から3の順次減少奇数とするハフマン符号
に変換している。この圧縮処理プログラム及び圧縮処理
プログラムに対応した復元処理プログラムは、各テーブ
ルと共に当該マイクロコンピュータのリードオンリーメ
モリに予め記憶させておき、画像データを圧縮してIC
カードやフレキシブルディスクに記録するに際しては、
例えば図1のAに示す様に、上記プログラムの認識コー
ドを7バイトで認識コード記録部13に記録し、該プロ
グラムのバージョンナンバーを4バイトでバージョンナ
ンバー記録部15に記録し、更に、圧縮モードのコード
を4バイトで圧縮モード記録部17に記録し、最後にヘ
ッダ部終了コードを1バイトで終了コード記録部19に
記録し、ファイル10のその後の領域にハフマン符号化
した画像データを記録するものであり、ヘッダ部11を
16バイト(16進数の10バイト)と短くし、復元時
はこのコードデータに基づいてリードオンリーメモリに
記憶した復元プログラムにより画像データを解凍する。
As the sequence conversion table, the sequence code of 0 to 15 (decimal number) is sequentially given according to the difference from the predicted value, and 0 of the sequence encoded image data is 1 and 1 to 7 is 2 to 14. Are sequentially increased, and 8 is converted to 15, and 9 to 15 are converted to Huffman codes, which are sequentially decreased from 15 to 3. The compression processing program and the decompression processing program corresponding to the compression processing program are stored in advance in the read-only memory of the microcomputer together with each table, and the image data is compressed to IC.
When recording on a card or flexible disk,
For example, as shown in FIG. 1A, the recognition code of the program is recorded in 7 bytes in the recognition code recording unit 13, the version number of the program is recorded in 4 bytes in the version number recording unit 15, and the compression mode Is recorded in the compression mode recording unit 17 with 4 bytes, finally the header end code is recorded with 1 byte in the end code recording unit 19, and the Huffman-coded image data is recorded in the subsequent area of the file 10. The header section 11 is shortened to 16 bytes (10 hexadecimal bytes), and at the time of restoration, the image data is decompressed by the restoration program stored in the read-only memory based on this code data.

【0013】尚、ヘッダ部には、日付等の画像にはめ込
む文字コード及びはめ込み位置のコードをも定め、この
文字コードは圧縮モード記録部17の後ろに続けた文字
コード記録部18(図1のB参照)に記録するものと
し、ヘッダ部11の大きさを前記10バイト(16進
数)又は20バイト(16進数)の可変長とすることも
できる。
The header section also defines a character code to be inserted into an image such as a date and a code of an inset position, and this character code is followed by a character code recording section 18 (shown in FIG. 1) following the compression mode recording section 17. The size of the header portion 11 may be a variable length of 10 bytes (hexadecimal number) or 20 bytes (hexadecimal number).

【0014】本実施例は、この様に圧縮処理プログラム
及び圧縮解凍に必要となるテーブル等のデータは別途マ
イクロコンピュータに記憶させ、画像データを圧縮する
プログラムの認識コード等をファイル10のヘッダ部1
1に記録する方法を採用している故、同種のコンピュー
タ相互間で画像データを移す際、多量の画像データを容
易に移動させることができることになる。
In this embodiment, the data such as the compression processing program and the table necessary for the compression / decompression are separately stored in the microcomputer, and the identification code of the program for compressing the image data is stored in the header portion 1 of the file 10.
Since the method of recording in No. 1 is adopted, a large amount of image data can be easily moved when transferring image data between computers of the same type.

【0015】[0015]

【発明の効果】本発明は、圧縮復元プログラムをマイク
ロコンピュータに予め記憶させ、圧縮プログラムの認識
コード、バージョンナンバー、圧縮モードコードのみを
ファイルのヘッダ部に記録する故、画像圧縮ファイル中
に形成するヘッダ部の占有率を小さくし、記録媒体に効
率よく画像データを記録させて他のコンピュータにデー
タを移すことができる。
According to the present invention, the compression / decompression program is stored in the microcomputer in advance, and only the recognition code, version number and compression mode code of the compression program are recorded in the header portion of the file. It is possible to reduce the occupation ratio of the header portion, efficiently record the image data on the recording medium, and transfer the data to another computer.

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

【図1】ヘッダ部の模式図。FIG. 1 is a schematic diagram of a header section.

【図2】本発明の実施例に用いたマイクロコンピュータ
の外観図。
FIG. 2 is an external view of a microcomputer used in an embodiment of the present invention.

【図3】ファイル構造を示す模式図。FIG. 3 is a schematic diagram showing a file structure.

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

10 ファイル 11 ヘッダ部 13 認識コード記録部 15 バージョン
ナンバー記録部 17 圧縮モード記録部 19 終了コード
記録部 18 文字コード記録部 21 液晶表示板 23 操作スイッチ 25 ICカード
挿入口
10 files 11 header section 13 recognition code recording section 15 version number recording section 17 compression mode recording section 19 end code recording section 18 character code recording section 21 liquid crystal display panel 23 operation switch 25 IC card insertion slot

フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/21 2109−5C Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI Technical display area H04N 1/21 2109-5C

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 圧縮復元プログラムを予めマイクロコン
ピュータに記憶させ、圧縮復元プログラムの認識コー
ド、バージョンナンバー、圧縮モードコード及びヘッダ
終了コードによるヘッダ部を圧縮画像データを記録する
ファイルの先頭に形成する様にして記録媒体に記録する
ことを特徴とするデータ圧縮ファイリング方式。
1. A compression restoration program is stored in a microcomputer in advance, and a header section based on a recognition code, a version number, a compression mode code and a header end code of the compression restoration program is formed at the head of a file for recording compressed image data. A data compression filing method characterized in that the data is recorded on a recording medium.
JP4202104A 1992-07-29 1992-07-29 Data compression filing method Expired - Fee Related JP2710897B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4202104A JP2710897B2 (en) 1992-07-29 1992-07-29 Data compression filing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4202104A JP2710897B2 (en) 1992-07-29 1992-07-29 Data compression filing method

Publications (2)

Publication Number Publication Date
JPH0654290A true JPH0654290A (en) 1994-02-25
JP2710897B2 JP2710897B2 (en) 1998-02-10

Family

ID=16452033

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4202104A Expired - Fee Related JP2710897B2 (en) 1992-07-29 1992-07-29 Data compression filing method

Country Status (1)

Country Link
JP (1) JP2710897B2 (en)

Also Published As

Publication number Publication date
JP2710897B2 (en) 1998-02-10

Similar Documents

Publication Publication Date Title
US5327254A (en) Method and apparatus for compressing and decompressing image data
US5287420A (en) Method for image compression on a personal computer
US5153936A (en) Dual density digital image system
US6741746B2 (en) Method and apparatus for processing image files
US5619591A (en) Encoding and decoding color image data based on mean luminance and an upper and a lower color value
US6381371B1 (en) Method and apparatus for processing image files
JPH0636182B2 (en) Image filing / search method and device
GB2345603A (en) Apparatus and method for compressing huffman encoded data
JP3013089B2 (en) Natural picture expression method
JPH0654290A (en) Data compressing and filing system
JP2905133B2 (en) Digital encoding device
EP0348651A2 (en) Dual density digital image system
KR100530745B1 (en) Method of displaying a high-resolution digital image on a low-resolution display
JP3559419B2 (en) Method and apparatus for decompressing compressed image data
US6456742B1 (en) Method for image processing
JP3152772B2 (en) Image data restoration device
JP2945553B2 (en) High-speed restoration of image data
JPS5840989A (en) Coding processing method and transmission controlling method of picture information
JPH1130978A (en) Color image encoding method and its encoder and color image decoding method and its decoder
JPS61184974A (en) Picture data converting device
JPH05167857A (en) Image data restoring device
JP2841643B2 (en) Image processing device
JPH10136363A (en) Compressed data decoder and compressed data decoding method
JPH0787487A (en) Method and device for coding and decoding picture data
JPH10200715A (en) Picture data storage method/device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees