JPH04165765A - Picture storage device - Google Patents

Picture storage device

Info

Publication number
JPH04165765A
JPH04165765A JP2292396A JP29239690A JPH04165765A JP H04165765 A JPH04165765 A JP H04165765A JP 2292396 A JP2292396 A JP 2292396A JP 29239690 A JP29239690 A JP 29239690A JP H04165765 A JPH04165765 A JP H04165765A
Authority
JP
Japan
Prior art keywords
data
image
length
encoding
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2292396A
Other languages
Japanese (ja)
Inventor
Mikito Itakura
板倉 幹人
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2292396A priority Critical patent/JPH04165765A/en
Publication of JPH04165765A publication Critical patent/JPH04165765A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To store the amount of data less than the amount of data of original data by converting a photograph and a picture into pseudo halftone by an image input device encoding them with an encoder and selecting the data with shorter data length with a data length comparing device to turned to be data storing image information. CONSTITUTION:An image input device 11 converts the photograph and picture into a digital electric signal, further, converts them into pseudo halftone by a dither method so as to express the gradation by binary. This pseudo halftone signal is inputted to an input buffer 121 of an MH encoder 12. An encoding part 120 reads out data from the input buffer 121 to be encoded by a run length method, and stores encoding data in an output buffer 122. A data length comparing device 13 compares the data length of the data stored in the input buffer 121 with the data length of the encoding data of the original data stored in the output buffer 122, and decides the data with shorter data length as data to be stored. Thus, the storage can be performed by the encoding to the amount of data not exceeding the amount of data of the original image.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はパーソナルコンピュータ、ワークステーション
およびワードプロセッサなどに利用する画像蓄積装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an image storage device used in personal computers, workstations, word processors, and the like.

従来の技術 近年、画像を蓄積する装置の応用機器が増加してきた。Conventional technology In recent years, the number of applied devices for image storage devices has increased.

従来、この種の画像蓄積方法はイメージ入力装置によっ
て読み取ったデータ量が膨大になるため、符号器を備え
、読み取ったデータをMH,MR。
Conventionally, in this type of image storage method, since the amount of data read by an image input device is enormous, an encoder is provided to convert the read data into MH and MR.

MMRなどのランレングス符号化方式を用いて符号化し
、データ量を圧縮して蓄積できるように構成されている
The data is encoded using a run-length encoding method such as MMR, and the amount of data is compressed and stored.

第3図は従来の画像蓄積装置の構成を示すブロック図で
ある。図において、31はイメージ入力装置であり、読
み取る写真や絵をディジタル電気信号に変換し、符号器
32に接続されている。
FIG. 3 is a block diagram showing the configuration of a conventional image storage device. In the figure, numeral 31 is an image input device, which converts a photograph or picture to be read into a digital electrical signal, and is connected to an encoder 32.

符号器32は、原データを符号化し符号化データを蓄積
装置33に送出してイメージデータを蓄積する。
The encoder 32 encodes the original data and sends the encoded data to the storage device 33 to store image data.

上記構成の従来の画像蓄積装置についてその動作を説明
する。第3図において、写真や絵をイメージ入力装置3
1によりディジタル電気信号に変換し、符号器32に入
力する。符号器32は、例えばMH符号化を行う。MH
符号化されたデータは蓄積装置33に送出され蓄積され
る。蓄積装置としては、ランダムアクセスやスタティク
メモリ、ハードディスク装置、フロッピーディスク装置
などがある。
The operation of the conventional image storage device having the above configuration will be explained. In Figure 3, photos and pictures are input to the image input device 3.
1 into a digital electrical signal and input it to the encoder 32. The encoder 32 performs MH encoding, for example. M.H.
The encoded data is sent to the storage device 33 and stored therein. Storage devices include random access and static memories, hard disk drives, floppy disk drives, and the like.

発明が解決しようとする課題 しかしながら、このような従来の画像蓄積装置では、階
調を有する写真をイメージ入力装置において2値で表現
するために分散型デイザ法や集中型デイザ法などを用い
て疑似中間調データに変換する。この疑似中間調データ
は周期的に0と1の組み合わせパターンを持つためにラ
ンレングス符号化を行うと原データに比べ符号化データ
のデータ量の方が原データより大きくなり、符号化の目
的を達成できないという問題があった。
Problems to be Solved by the Invention However, in such conventional image storage devices, a distributed dither method, a concentrated dither method, etc. are used to express a photograph with gradations in binary format in an image input device. Convert to halftone data. This pseudo-halftone data has a pattern of combinations of 0 and 1 periodically, so when run-length encoding is performed, the amount of encoded data becomes larger than the original data, which defeats the purpose of encoding. The problem was that it could not be achieved.

本発明は上記課題を解決するもので、原イメージのデー
タ量を越えないデータ量に符号化して蓄積することので
きる画像蓄積方法を提供することを目的とする。
The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide an image storage method that can encode and store an amount of data that does not exceed the amount of data of the original image.

課題を解決するための手段 本発明は上記の目的を達成するために、画像を入力して
疑似中間調を含むイメージデータを出力するイメージ入
力装置と、前記イメージデータを入力して符号化データ
を出力する符号器と、前記イメージデータと符号化デー
タのデータ長を比較して短い方のデータを出力するデー
タ長比較手段と、前記比較手段の出力データを蓄積する
データ蓄積手段とを備えた画像蓄積装置とする。
Means for Solving the Problems In order to achieve the above object, the present invention provides an image input device that inputs an image and outputs image data including pseudo halftones, and an image input device that inputs the image data and outputs encoded data. An image comprising an encoder for outputting, a data length comparison means for comparing the data lengths of the image data and the encoded data and outputting the shorter data, and a data storage means for accumulating the output data of the comparison means. Use it as a storage device.

作用 本発明は上記の構成により、データ長比較手段が符号化
前のイメージデータと符号化後の符号化データとのデー
タ長を比較して短い方のデータを蓄積データとする。
Effect of the Invention With the above configuration, the data length comparison means compares the data lengths of the image data before encoding and the encoded data after encoding, and selects the shorter data as the stored data.

実施例 第1図は本発明の一実施例の画像蓄積装置の構成を示す
ブロック図である。図において、11は、疑似中間調処
理手段を有するイメージ入力装置であり、MH符号器1
2に接続されている。MH符号器12は、データ長比較
器13に接続されている。MH符号器12はイメージ入
力装置11から受信した原データを1ライン記憶する大
力バッファ121と、そのデータをMH符号化する符号
化部120と、符号化したデータを1ライン記憶する出
力バッファ122から構成されている。14はデータを
蓄積するための蓄積装置であり、データ長比較器13と
接続されている。上記構成において、その動作を説明す
る。イメージ入力装置11は写真や絵をディジタル電気
信号に変換し、さらに階調を2値で表現するためデイザ
法により疑似中間調に変換する。疑似中間調に変換する
ことは既知であるのでここでは省略する。この疑似中間
調信号は、MH符号器12の入力バッファ121に入力
される。符号化部120は入力バッファ121からデー
タを読み出し、ランレングス法、たとえばMH符号化方
式により符号化し、出力バッファ122に符号化データ
を記憶する。データ長比較器13は、入力バッファ12
1に記憶されている当該データのデータ調と出力バッフ
ァ122に記憶されている原データの符号化データのデ
ータ長とを比較し、データ長の短い方のデータを蓄積す
るデータと決定する。データ長の比較は、カウンタ13
1およびカウンタ132で1ラインを構成するデータの
ビット数を計測し、計測結果を比較器133で比較する
。比較器133は、原データが短い時に“1”を出力し
符号化データが短いときに“O”を出力する。出力デー
タ切替器134は、比較器133の出力により原データ
と符号化データの切替を行う。データ長比較器13は計
測結果からデータ長の短いデータを蓄積装置14に蓄積
させる。このとき、復号化するための情報として蓄積さ
れたデータが原データか符号化データかの識別符号とし
て比較器133の出力データを付加して蓄積装置14に
データを蓄積する。
Embodiment FIG. 1 is a block diagram showing the configuration of an image storage device according to an embodiment of the present invention. In the figure, 11 is an image input device having a pseudo halftone processing means, and an MH encoder 1
Connected to 2. The MH encoder 12 is connected to a data length comparator 13. The MH encoder 12 includes a large power buffer 121 that stores one line of original data received from the image input device 11, an encoding unit 120 that performs MH encoding on the data, and an output buffer 122 that stores one line of encoded data. It is configured. 14 is a storage device for storing data, and is connected to the data length comparator 13. The operation of the above configuration will be explained. The image input device 11 converts a photograph or picture into a digital electrical signal, and further converts it into a pseudo halftone using a dither method in order to express the gradation in binary. Conversion to pseudo halftones is well known and will therefore be omitted here. This pseudo halftone signal is input to the input buffer 121 of the MH encoder 12. The encoding unit 120 reads data from the input buffer 121, encodes it using a run-length method, for example, the MH encoding method, and stores the encoded data in the output buffer 122. The data length comparator 13 is connected to the input buffer 12.
1 and the data length of the encoded data of the original data stored in the output buffer 122, and the data with the shorter data length is determined as the data to be stored. Comparison of data length is performed using counter 13.
1 and a counter 132 measure the number of bits of data constituting one line, and a comparator 133 compares the measurement results. The comparator 133 outputs "1" when the original data is short, and outputs "O" when the encoded data is short. The output data switch 134 switches between original data and encoded data based on the output of the comparator 133. The data length comparator 13 causes the storage device 14 to store data with a short data length from the measurement results. At this time, the output data of the comparator 133 is added as an identification code indicating whether the data stored as information for decoding is original data or encoded data, and the data is stored in the storage device 14.

第2図は本発明の一実施例の画像蓄積装置における蓄積
情報の配置を示す模式図である。図において、21は識
別符号ビット、22は蓄積される1ラインのデータであ
る。21の識別符号ビットが“1”の場合は原データを
、“0”の場合は符号化データであることを示す。
FIG. 2 is a schematic diagram showing the arrangement of stored information in an image storage device according to an embodiment of the present invention. In the figure, 21 is an identification code bit, and 22 is one line of data to be accumulated. When the identification code bit 21 is "1", it indicates original data, and when it is "0", it indicates encoded data.

以上の実施例の画像蓄積装置によれば、疑似中間調処理
手段を有するイメージ入力装置によって写真や絵を疑似
中間調に変換し、MH符号器によってMH符号化を行い
、そのデータをデータ長比較器でデータ長の短い方を選
択してイメージ惰報の蓄積すべきデータとすることによ
り最適化されたデータを1ラインごと蓄積することがで
き、原データのデータ量よりすくないデータ量を蓄積で
きる。
According to the image storage device of the above embodiment, a photograph or picture is converted into pseudo halftone by the image input device having pseudo halftone processing means, MH encoding is performed by the MH encoder, and the data length is compared. Optimized data can be stored line by line by selecting the shorter data length on the device as the data to be stored in the image information, and the amount of data that is less than the amount of original data can be stored. .

発明の効果 以上の実施例から明らかなように、本発明は画像を入力
して疑似中間調を含むイメージデータを出力するイメー
ジ入力装置と、前記イメージデータを入力して符号化デ
ータを出力するする符号器と、前記イメージデータと符
号化データのデータ調を比較して短い方のデータを出力
するデータ長比較手段と、前記比較手段の出力データを
蓄積するデータ蓄積手段とを備えた画像蓄積装置とする
ことにより、蓄積するデータはもとのイメージデータよ
りデータ長が、長(なることなく符号化したものとなり
、データ蓄積装置の記憶容量を少なくすることができる
Effects of the Invention As is clear from the above embodiments, the present invention provides an image input device that inputs an image and outputs image data including pseudo halftones, and an image input device that inputs the image data and outputs encoded data. An image storage device comprising an encoder, data length comparison means for comparing data tones of the image data and encoded data and outputting the shorter data, and data storage means for accumulating output data of the comparison means. By doing this, the data to be stored is coded without having a longer data length than the original image data, and the storage capacity of the data storage device can be reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の画像記憶装置の構成を示す
ブロック図、第2図は本発明の一実施例の画像記憶装置
における蓄積データの構造を示す模式図、第3図は従来
の画像記憶装置の構成を示すブロック図である。 11・・・・・・イメージ入力装置、12・・・・・・
符号器、13・・・・・・データ長比較手段、14・・
・・・・データ蓄積手段。 代理人の氏名 弁理士小蝦治明 はが2名第2図 第3図
FIG. 1 is a block diagram showing the configuration of an image storage device according to an embodiment of the present invention, FIG. 2 is a schematic diagram showing the structure of accumulated data in the image storage device according to an embodiment of the invention, and FIG. 3 is a conventional 1 is a block diagram showing the configuration of an image storage device of FIG. 11... Image input device, 12...
Encoder, 13...Data length comparison means, 14...
...Data storage means. Name of agent: Patent attorney Haruaki Koebi (2 persons) Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] 画像を入力して疑似中間調を含むイメージデータを出力
するイメージ入力装置と、前記イメージデータを入力し
て符号化データを出力する符号器と、前記イメージデー
タと符号化データのデータ長を比較して短い方のデータ
を出力するデータ長比較手段と、前記比較手段の出力デ
ータを蓄積するデータ蓄積手段とを備えた画像蓄積装置
An image input device that inputs an image and outputs image data including pseudo halftones, an encoder that inputs the image data and outputs encoded data, and compares data lengths of the image data and encoded data. An image storage device comprising: data length comparison means for outputting shorter data; and data storage means for storing output data of said comparison means.
JP2292396A 1990-10-29 1990-10-29 Picture storage device Pending JPH04165765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2292396A JPH04165765A (en) 1990-10-29 1990-10-29 Picture storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2292396A JPH04165765A (en) 1990-10-29 1990-10-29 Picture storage device

Publications (1)

Publication Number Publication Date
JPH04165765A true JPH04165765A (en) 1992-06-11

Family

ID=17781248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2292396A Pending JPH04165765A (en) 1990-10-29 1990-10-29 Picture storage device

Country Status (1)

Country Link
JP (1) JPH04165765A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01245762A (en) * 1988-03-28 1989-09-29 Toshiba Corp Facsimile equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01245762A (en) * 1988-03-28 1989-09-29 Toshiba Corp Facsimile equipment

Similar Documents

Publication Publication Date Title
TW420908B (en) Lossless encoding and decoding system
JPS61161871A (en) Apparatus for compression of data of binary bit indicating pixel of image dithered in digital picture processing process
JP2003289543A (en) Method and equipment for decoding data
JPH10271016A (en) Encoder/decoder
JP3005385B2 (en) Huffman decoding circuit
JPH04165765A (en) Picture storage device
JP2812064B2 (en) Image processing device
JP3009993B2 (en) Huffman decoding device
JPH08116268A (en) Information processing unit
JP2627927B2 (en) Image data compression rate conversion method
JP3015001B2 (en) Huffman decoding device
JPS63155957A (en) Binary picture information compressing device
JPH06245200A (en) Method and device for scanning two-dimensional data by energy distribution
KR930003201B1 (en) Bit image data compressing method and apparatus
JP3239664B2 (en) Variable length code decoding method
JP3005384B2 (en) Huffman decoding circuit
JPS60251763A (en) Magnifying and reducing circuit of facsimile information
JPS63220672A (en) Compression-encoding method for half tone picture signal
JP2838964B2 (en) Variable length coding circuit
JPH01108861A (en) Picture coder
JPH0461548B2 (en)
JPH036066Y2 (en)
JPS6325749B2 (en)
JPS63280576A (en) Compression coding method
JPS6325748B2 (en)