JPH044673A - Encoding system for picture data - Google Patents

Encoding system for picture data

Info

Publication number
JPH044673A
JPH044673A JP10534890A JP10534890A JPH044673A JP H044673 A JPH044673 A JP H044673A JP 10534890 A JP10534890 A JP 10534890A JP 10534890 A JP10534890 A JP 10534890A JP H044673 A JPH044673 A JP H044673A
Authority
JP
Japan
Prior art keywords
run length
encoding
length data
conversion table
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10534890A
Other languages
Japanese (ja)
Inventor
Takayuki Matsumoto
隆行 松本
Fumihiro Minamizawa
南沢 文宏
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP10534890A priority Critical patent/JPH044673A/en
Publication of JPH044673A publication Critical patent/JPH044673A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a storage capacity required for an encoding conversion table to 1/2 or below by using sa same encoding conversion table needing less code word bit number so as to apply encoding and compression to a white run length data and a black run length of a binarized picture data. CONSTITUTION:Both a white run length data and a black run length of a binarized picture data obtained by scanning a character or a picture are converted by using a white run length data encoding conversion table. Thus, the encoded bit number for the black run length data is reduced. Then a bit number after the conversion is reduced and the compression efficiency is improved. Moreover, one encoding conversion table for the white run length data is enough for the encoding and the storage capacity required for the encoding conversion table of a storage means is reduced to 1/2 or below in comparison with that of a conventional system.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はファクシミリ装置等に用いられる画像データの
符号化方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image data encoding method used in facsimile machines and the like.

(従来の技術) ファクシミリ装置等で行われているMH符号化方式、M
R符号化方式のMH符号化ライン(1次元圧縮ライン)
は文字、画像を走査して得られる2値化画像データの白
ランレングスデータ、黒ランレングスデータをそれぞれ
別の符号化変換テーブルを用いてコード化圧縮を行って
る。
(Prior art) MH encoding method used in facsimile machines, etc.
MH encoding line (one-dimensional compression line) of R encoding method
In this method, white run length data and black run length data of binary image data obtained by scanning characters and images are encoded and compressed using separate encoding conversion tables.

(発明が解決しようとする課題) しかしながら、MH符号化方式(1次元圧縮力式)は中
間調データのように、走査線上の白黒の反転が多い場合
はデータ圧縮とならず、逆にデータ量が増え、送信時間
が長くなるという問題点があった。
(Problem to be solved by the invention) However, the MH encoding method (one-dimensional compression method) does not compress data when there are many inversions of black and white on the scanning line, such as halftone data, and conversely, the amount of data There was a problem in that the number of transmission times increased and the transmission time became longer.

さらに、白ランレングスデータのコード化と黒ランレン
グスデータのコード化とのためにそれぞれ符号化変換テ
ーブルを別々に用意する必要があり、記憶手段の記憶容
量が大きくなるという問題点もあった。
Furthermore, it is necessary to separately prepare encoding conversion tables for encoding white run length data and encoding black run length data, which poses the problem of increasing the storage capacity of the storage means.

本発明は白ランレングスデータと黒ランレングスデータ
を同一の符号化変換テーブルを用いてコード化すること
により、上記の問題点を解消した画像データの符号化方
式を提供することを目的とする。
An object of the present invention is to provide an image data encoding method that solves the above problems by encoding white run length data and black run length data using the same encoding conversion table.

(課題を解決するための手段) 本発明の画像データの符号化方式は、文字、画像を走査
して得られる2値化画像データを白ランレングスデータ
も黒ランレングスデータも同一の符号化変換テーブルを
用いてコード化圧縮を行うことを特徴とするものである
(Means for Solving the Problems) The image data encoding method of the present invention converts binary image data obtained by scanning characters and images into the same encoding conversion for both white run length data and black run length data. This method is characterized by performing coded compression using a table.

また、符号化変換テーブルは白ランレングスデータに対
する符号語のビット数と黒ランレングスデータに対する
符号語のビット数との少ない方の符号語で形成してもよ
い。
Further, the encoding conversion table may be formed using the smaller number of code words between the number of bits of a code word for white run length data and the number of bits of a code word for black run length data.

(作用) 上記のように構成した本発明の画像データの符号化方式
においては、文字、画像を走査して得られる2値化画像
データの白ランレングスデータも黒ランレングスデータ
も共に同一の符号化変換テーブルを用いることによって
コード化圧縮される。
(Function) In the image data encoding method of the present invention configured as described above, both the white run length data and the black run length data of the binary image data obtained by scanning characters and images have the same code. It is encoded and compressed by using an encoding conversion table.

したがって、符号化変換テーブルは1つでよく、符号化
変換テーブルが格納されている記憶手段の変換テーブル
格納部分の記憶容量は従来の1/2で済むことになる。
Therefore, only one encoding conversion table is required, and the storage capacity of the conversion table storage portion of the storage means in which the encoding conversion table is stored can be reduced to 1/2 of that of the conventional system.

また、符号化変換テーブルは白ランレングスデータに対
する符号語のビット数と黒ランレングスデータに対する
符号語のビット数との少ない方の符号語で形成すれば圧
縮効率が向上する。
Furthermore, if the encoding conversion table is formed using the smaller number of bits of the codeword for the white run length data and the bit number of the codeword for the black run length data, the compression efficiency will be improved.

(実施例) 以下、本発明を実施例により説明する。(Example) The present invention will be explained below with reference to Examples.

第1図は本発明方式による一実施例のコード化圧縮例を
示す模式図である。
FIG. 1 is a schematic diagram showing an example of encoding compression according to an embodiment of the present invention.

本発明の一実施例の符号化方式は、文字、画像を走査し
て得られた2値化画像データの黒ランレングスデータも
白ランレングスデータも共に、白ランレングスデータの
符号化変換テーブルによって変換する。
In the encoding method of an embodiment of the present invention, both black run length data and white run length data of binary image data obtained by scanning characters and images are processed using an encoding conversion table for white run length data. Convert.

まず、CCITTで勧告されたMH符号化方式の白ラン
レングスデータ、黒ランレングスデータのターミネイテ
ィング符号及びメークアップ符号の符号化変換テーブル
を第2図及び第3図に示す。
First, FIGS. 2 and 3 show coding conversion tables for terminating codes and makeup codes for white run length data and black run length data in the MH encoding system recommended by CCITT.

この符号化変換テーブルから判るように黒ランレングス
データが1〜4ビツトの場合を除いて、コード長は黒ラ
ンレングスと白ランレングスと同じか、または黒ランレ
ングスの方が白ランレングスより長い。また、通常のM
H符号化方式では必ず自ランレングスデータから始まり
、白ランレングスデータ、黒ランレングスデータが交互
に来ることに決められている。
As can be seen from this encoding conversion table, except when the black run length data is 1 to 4 bits, the code length is the same as the black run length and white run length, or the black run length is longer than the white run length. . Also, normal M
In the H encoding method, it is determined that the data always starts with own run length data, and that white run length data and black run length data come alternately.

文字、画像を走査して得られる2値化画像データが例え
ば第1図(a)に示す如く、白ランレングスデータ(自
画信号部分Wl)10ビツト、黒ランレングスデータ(
黒画信号部分B2)27ビツト、白ランレングスデータ
(自画信号部分W 2 )50ビツト、黒ランレングス
データ(黒画信号部分B、)40ビツトと続く画信号の
場合を例に、MH符号化方式の白ランレングス符号化変
換テーブルによって白ランレングスデータを変換し、黒
ランレングス符号化変換テーブルによって黒ラン、レン
グスデータを変換した場合は、第1図(b)に示す如く
、それぞれ゛ 00111” 、+ oo。
For example, as shown in FIG. 1(a), the binary image data obtained by scanning characters and images consists of 10-bit white run length data (self-portrait signal portion Wl) and 10-bit black run length data (
Taking as an example the case of a picture signal that includes 27 bits of black picture signal part B2, 50 bits of white run length data (self picture signal part W2), and 40 bits of black run length data (black picture signal part B), MH encoding is performed. When the white run length data is converted using the white run length encoding conversion table of the system, and the black run and length data are converted using the black run length encoding conversion table of the system, as shown in FIG. ” ,+oo.

011001011” 、+ 01010011−1”
 000001101100” 4.m変換される。し
たがって符号化されたビット数は合計37ビツトである
011001011”, +01010011-1”
000001101100” 4. m conversion is performed. Therefore, the total number of encoded bits is 37 bits.

しかるに、本発明の一実施例の符号化方式は、黒ランレ
ングスデータも白ランレングスデータも共に、白ランレ
ングスデータの符号化変換テーブルによって変換される
。したがって上記した2値化画像データの場合、上記に
対応して第1図(c)に示す如く、’0011°、+ 
 0100100”、” 01010011− 、+ 
00101001°に変換され、白ランレングスデータ
に対しては符号化されたビット数は同じであるが、黒ラ
ンレングスデータに対しては符号化されたビット数は減
少し、符号化されたビット数の合計で28ビツトになる
。この結果、変換後のビット数は本例の場合9ビツトの
減少になる。
However, in the encoding method according to the embodiment of the present invention, both the black run length data and the white run length data are converted using the encoding conversion table for the white run length data. Therefore, in the case of the above-described binarized image data, '0011°, +
0100100”,”01010011-,+
00101001°, and the number of coded bits is the same for white run length data, but the number of coded bits decreases for black run length data, and the number of coded bits is reduced for black run length data. The total is 28 bits. As a result, the number of bits after conversion is reduced by 9 bits in this example.

そこで、変換後のビット数を減少させることができ、圧
縮効率を上げることができる。また、符号化変換テーブ
ルを白ランレングスデータに対する符号語のビット数と
黒ランレングスデータに対する符号語のビット数との少
ない方の符号語で形成してもよく、このようにすること
で圧縮効率が向上させれる。
Therefore, the number of bits after conversion can be reduced, and compression efficiency can be increased. Furthermore, the encoding conversion table may be formed using the smaller number of bits of the codeword for the white run length data and the bit number of the codeword for the black run length data, which improves the compression efficiency. can be improved.

また、符号化変換テーブルは白ランレングスデータに対
する符号化変換テーブル−って済み、記憶手段の符号化
変換テーブルのために要する記憶容量は従来の1/2以
下に減少する。
In addition, the encoding conversion table can be used as the encoding conversion table for the white run length data, and the storage capacity required for the encoding conversion table in the storage means is reduced to less than 1/2 that of the conventional one.

(発明の効果) 以上説明したように本発明によれば、文字、画像を走査
して得られる2値化画像データを白ランレングスデータ
も黒ランレングスデータも符号語のビット数の少ない方
の同一の符号化変換テーブルを用いてコード化圧縮を行
うため、記憶手段の符号化変換テーブルのために要する
記憶容量は従来の1/2以下に減少する効果がある。。
(Effects of the Invention) As explained above, according to the present invention, the binary image data obtained by scanning characters and images is converted into white run length data and black run length data, whichever code word has a smaller number of bits. Since encoding and compression are performed using the same encoding conversion table, the storage capacity required for the encoding conversion table in the storage means can be reduced to less than 1/2 of that of the conventional method. .

符号化変換テーブルを白ランレングスデータに対する符
号語のビット数と黒ランレングスデータに対する符号語
のビット数との少ない方の符号語で形成したため、符号
化による圧縮効率は向上する効果もある。
Since the encoding conversion table is formed using the smaller number of bits of the codeword for the white run length data and the bit number of the codeword for the black run length data, the compression efficiency by encoding can also be improved.

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

第1図は本発明方式による一実施例のコード化圧縮例を
示す模式図。 第2図及び第3図はCCITTで勧告されたMH符号化
方式の白ランレングスデータ、黒ランレングスデータの
ターミネイティング符号及びメークアップ符号の符号化
変換テーブルを示す図。 Bo、B21、B、−・・黒画信号部分、W、、w2、
W3・・・白画信号部分。
FIG. 1 is a schematic diagram showing an example of encoding and compression according to an embodiment of the present invention. FIGS. 2 and 3 are diagrams showing coding conversion tables for terminating codes and makeup codes for white run length data and black run length data in the MH encoding method recommended by CCITT. Bo, B21, B, ---black image signal part, W,, w2,
W3...White image signal part.

Claims (2)

【特許請求の範囲】[Claims] (1)文字、画像を走査して得られる2値化画像データ
を白ランレングスデータも黒ランレングスデータも符号
語のビット数の少ない方の同一の符号化変換テーブルを
用いてコード化圧縮を行うことを特徴とする画像データ
の符号化方式。
(1) Binarized image data obtained by scanning characters and images is encoded and compressed using the same encoding conversion table for both white run length data and black run length data, whichever has the smaller number of bits in the code word. An image data encoding method characterized by:
(2)符号化変換テーブルは白ランレングスデータに対
する符号語のビット数と黒ランレングスデータに対する
符号語のビット数との少ない方の符号語で形成された符
号化変換テーブルであることを特徴とする請求項1に記
載の画像データの符号化方式。
(2) The encoding conversion table is characterized in that it is an encoding conversion table formed from the smaller number of codewords between the number of bits of a codeword for white run length data and the number of bits of a codeword for black run length data. The image data encoding method according to claim 1.
JP10534890A 1990-04-23 1990-04-23 Encoding system for picture data Pending JPH044673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10534890A JPH044673A (en) 1990-04-23 1990-04-23 Encoding system for picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10534890A JPH044673A (en) 1990-04-23 1990-04-23 Encoding system for picture data

Publications (1)

Publication Number Publication Date
JPH044673A true JPH044673A (en) 1992-01-09

Family

ID=14405232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10534890A Pending JPH044673A (en) 1990-04-23 1990-04-23 Encoding system for picture data

Country Status (1)

Country Link
JP (1) JPH044673A (en)

Similar Documents

Publication Publication Date Title
JP2621747B2 (en) Image processing device
EP0349677B1 (en) Image coding system
JPH07264417A (en) Image coding method
US6996269B2 (en) Image encoding apparatus and image decoding apparatus
US6078696A (en) HVQ compression of data and printing hints
JPH10271016A (en) Encoder/decoder
US6577768B1 (en) Coding method, code converting method, code converting apparatus, and image forming apparatus
JPH044673A (en) Encoding system for picture data
JP4260908B2 (en) Run-length encoding method and image processing apparatus
JP2925047B2 (en) Data compression device and data decompression device
JP2812064B2 (en) Image processing device
JPS6281880A (en) Data compression system
US6272256B1 (en) Fast compression of periodic halftoned bitonal images
JP2925043B2 (en) Data decompression device
JPH041552B2 (en)
JPS58136172A (en) Facsimile code transmission method
JP2907428B2 (en) Data converter
JPH0134421B2 (en)
JPS5957578A (en) Data compressing system by extended one-dimensional code
JPH036173A (en) Half tone encoding system
JPS61285868A (en) Data compressing system for variable density picture
JPS6069960A (en) Binary picture signal converting system
JPS6382062A (en) Facsimile coding system
JPS6282883A (en) Image encoding device
JPH02254858A (en) Picture storage system for facsimile equipment